@openmrs/esm-stock-management-app 3.2.2-pre.1816 → 3.3.0
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/coverage/__mocks__/index.html +161 -0
- package/coverage/__mocks__/index.ts.html +91 -0
- package/coverage/__mocks__/operation-type.mock.ts.html +1681 -0
- package/coverage/__mocks__/react-i18next.js.html +259 -0
- package/coverage/__mocks__/workspace2-props.mock.ts.html +145 -0
- package/coverage/base.css +224 -0
- package/coverage/block-navigation.js +87 -0
- package/coverage/clover.xml +1659 -0
- package/coverage/coverage-final.json +69 -0
- package/coverage/favicon.png +0 -0
- package/coverage/index.html +611 -0
- package/coverage/prettify.css +1 -0
- package/coverage/prettify.js +2 -0
- package/coverage/sort-arrow-sprite.png +0 -0
- package/coverage/sorter.js +210 -0
- package/coverage/src/constants.ts.html +598 -0
- package/coverage/src/core/api/api.ts.html +181 -0
- package/coverage/src/core/api/index.html +116 -0
- package/coverage/src/core/api/types/BatchJob.ts.html +415 -0
- package/coverage/src/core/api/types/index.html +116 -0
- package/coverage/src/core/api/types/stockOperation/StockOperationStatus.ts.html +139 -0
- package/coverage/src/core/api/types/stockOperation/StockOperationType.ts.html +460 -0
- package/coverage/src/core/api/types/stockOperation/index.html +131 -0
- package/coverage/src/core/components/carbon/controlled-number-input.component.tsx.html +226 -0
- package/coverage/src/core/components/carbon/controlled-radio-button-group.component.tsx.html +253 -0
- package/coverage/src/core/components/carbon/controlled-text-input.component.tsx.html +202 -0
- package/coverage/src/core/components/carbon/index.html +146 -0
- package/coverage/src/core/hooks/debounce-hook.ts.html +181 -0
- package/coverage/src/core/hooks/index.html +116 -0
- package/coverage/src/core/utils/datetimeUtils.ts.html +289 -0
- package/coverage/src/core/utils/index.html +131 -0
- package/coverage/src/core/utils/utils.ts.html +382 -0
- package/coverage/src/index.html +131 -0
- package/coverage/src/stock-items/add-bulk-stock-item/add-stock-items-bulk-import-action-button.component.tsx.html +151 -0
- package/coverage/src/stock-items/add-bulk-stock-item/index.html +131 -0
- package/coverage/src/stock-items/add-bulk-stock-item/stock-items-bulk-import.modal.tsx.html +340 -0
- package/coverage/src/stock-items/add-stock-item/add-stock-action-button.component.tsx.html +145 -0
- package/coverage/src/stock-items/add-stock-item/add-stock-item.component.tsx.html +376 -0
- package/coverage/src/stock-items/add-stock-item/batch-information/batch-information.resource.ts.html +262 -0
- package/coverage/src/stock-items/add-stock-item/batch-information/index.html +116 -0
- package/coverage/src/stock-items/add-stock-item/concepts-selector/concepts-selector.component.tsx.html +301 -0
- package/coverage/src/stock-items/add-stock-item/concepts-selector/index.html +116 -0
- package/coverage/src/stock-items/add-stock-item/drug-selector/drug-selector.component.tsx.html +454 -0
- package/coverage/src/stock-items/add-stock-item/drug-selector/index.html +116 -0
- package/coverage/src/stock-items/add-stock-item/index.html +131 -0
- package/coverage/src/stock-items/add-stock-item/stock-item-category-selector/index.html +116 -0
- package/coverage/src/stock-items/add-stock-item/stock-item-category-selector/stock-item-category-selector.component.tsx.html +319 -0
- package/coverage/src/stock-items/add-stock-item/stock-item-details/index.html +131 -0
- package/coverage/src/stock-items/add-stock-item/stock-item-details/stock-item-details.component.tsx.html +862 -0
- package/coverage/src/stock-items/add-stock-item/stock-item-details/stock-item-details.resource.ts.html +142 -0
- package/coverage/src/stock-items/components/filter-stock-items/filter-stock-items.component.tsx.html +166 -0
- package/coverage/src/stock-items/components/filter-stock-items/index.html +116 -0
- package/coverage/src/stock-items/edit-stock-item/edit-stock-item-action-menu.component.tsx.html +169 -0
- package/coverage/src/stock-items/edit-stock-item/index.html +116 -0
- package/coverage/src/stock-items/index.html +161 -0
- package/coverage/src/stock-items/stock-item.utils.tsx.html +103 -0
- package/coverage/src/stock-items/stock-items-table.component.tsx.html +910 -0
- package/coverage/src/stock-items/stock-items.resource.ts.html +1342 -0
- package/coverage/src/stock-items/validationSchema.ts.html +325 -0
- package/coverage/src/stock-locations/add-location.modal.tsx.html +289 -0
- package/coverage/src/stock-locations/index.html +146 -0
- package/coverage/src/stock-locations/location-admin-form.component.tsx.html +574 -0
- package/coverage/src/stock-locations/stock-locations-table.resource.ts.html +370 -0
- package/coverage/src/stock-lookups/index.html +116 -0
- package/coverage/src/stock-lookups/stock-lookups.resource.ts.html +997 -0
- package/coverage/src/stock-operations/index.html +131 -0
- package/coverage/src/stock-operations/stock-operation.utils.tsx.html +184 -0
- package/coverage/src/stock-operations/stock-operations-forms/hooks/index.html +161 -0
- package/coverage/src/stock-operations/stock-operations-forms/hooks/useFilterableStockItems.ts.html +211 -0
- package/coverage/src/stock-operations/stock-operations-forms/hooks/useOperationTypePermisions.ts.html +172 -0
- package/coverage/src/stock-operations/stock-operations-forms/hooks/useSearchUser.ts.html +226 -0
- package/coverage/src/stock-operations/stock-operations-forms/hooks/useStockItemBatchNumbers.ts.html +208 -0
- package/coverage/src/stock-operations/stock-operations-forms/index.html +116 -0
- package/coverage/src/stock-operations/stock-operations-forms/input-components/batch-no-selector.component.tsx.html +439 -0
- package/coverage/src/stock-operations/stock-operations-forms/input-components/index.html +176 -0
- package/coverage/src/stock-operations/stock-operations-forms/input-components/quantity-uom-selector.component.tsx.html +259 -0
- package/coverage/src/stock-operations/stock-operations-forms/input-components/stock-item-search.component.tsx.html +319 -0
- package/coverage/src/stock-operations/stock-operations-forms/input-components/stock-operation-reason-selector.component.tsx.html +286 -0
- package/coverage/src/stock-operations/stock-operations-forms/input-components/users-selector.component.tsx.html +412 -0
- package/coverage/src/stock-operations/stock-operations-forms/steps/base-operation-details-form-step.tsx.html +868 -0
- package/coverage/src/stock-operations/stock-operations-forms/steps/index.html +236 -0
- package/coverage/src/stock-operations/stock-operations-forms/steps/quantity-uom-cell.component.tsx.html +184 -0
- package/coverage/src/stock-operations/stock-operations-forms/steps/received-items.component.tsx.html +433 -0
- package/coverage/src/stock-operations/stock-operations-forms/steps/stock-availability-cell.component.tsx.html +238 -0
- package/coverage/src/stock-operations/stock-operations-forms/steps/stock-operation-item-batch-no-cell.component.tsx.html +205 -0
- package/coverage/src/stock-operations/stock-operations-forms/steps/stock-operation-item-cell.component.tsx.html +232 -0
- package/coverage/src/stock-operations/stock-operations-forms/steps/stock-operation-item-expiry-cell.component.tsx.html +208 -0
- package/coverage/src/stock-operations/stock-operations-forms/steps/stock-operation-items-form-step.component.tsx.html +910 -0
- package/coverage/src/stock-operations/stock-operations-forms/steps/stock-operation-submission-form-step.component.tsx.html +850 -0
- package/coverage/src/stock-operations/stock-operations-forms/stock-item-form/index.html +116 -0
- package/coverage/src/stock-operations/stock-operations-forms/stock-item-form/stock-item-form.workspace.tsx.html +781 -0
- package/coverage/src/stock-operations/stock-operations-forms/stock-operation-form.component.tsx.html +973 -0
- package/coverage/src/stock-operations/stock-operations-forms/stock-operation-stepper/index.html +116 -0
- package/coverage/src/stock-operations/stock-operations-forms/stock-operation-stepper/stock-operation-stepper.component.tsx.html +238 -0
- package/coverage/src/stock-operations/validation-schema.ts.html +847 -0
- package/coverage/src/stock-reports/report-list/index.html +116 -0
- package/coverage/src/stock-reports/report-list/stock-report-status.utils.ts.html +130 -0
- package/coverage/src/stock-sources/add-stock-source-button.component.tsx.html +145 -0
- package/coverage/src/stock-sources/add-stock-sources/add-stock-sources.workspace.tsx.html +550 -0
- package/coverage/src/stock-sources/add-stock-sources/index.html +116 -0
- package/coverage/src/stock-sources/edit-stock-source/edit-stock-source.component.tsx.html +175 -0
- package/coverage/src/stock-sources/edit-stock-source/index.html +116 -0
- package/coverage/src/stock-sources/index.html +146 -0
- package/coverage/src/stock-sources/stock-sources-delete/index.html +116 -0
- package/coverage/src/stock-sources/stock-sources-delete/stock-sources-delete.component.tsx.html +277 -0
- package/coverage/src/stock-sources/stock-sources-filter/index.html +116 -0
- package/coverage/src/stock-sources/stock-sources-filter/stock-sources-filter.component.tsx.html +235 -0
- package/coverage/src/stock-sources/stock-sources-items-table.component.tsx.html +661 -0
- package/coverage/src/stock-sources/stock-sources.resource.ts.html +295 -0
- package/coverage/src/stock-user-role-scopes/delete-stock-user-scope.modal.tsx.html +214 -0
- package/coverage/src/stock-user-role-scopes/index.html +116 -0
- package/coverage/src/utils.ts.html +133 -0
- package/dist/openmrs-esm-stock-management-app.js +1 -1
- package/dist/openmrs-esm-stock-management-app.js.map +1 -1
- package/dist/routes.json +1 -1
- package/package.json +2 -3
|
@@ -0,0 +1,87 @@
|
|
|
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);
|