@openmrs/esm-stock-management-app 1.0.1-pre.327 → 1.0.1-pre.329

Sign up to get free protection for your applications and to get access to all the features.
@@ -86,10 +86,10 @@
86
86
  "initial": true,
87
87
  "entry": true,
88
88
  "recorded": false,
89
- "size": 4312836,
89
+ "size": 4313069,
90
90
  "sizes": {
91
91
  "consume-shared": 252,
92
- "javascript": 4290887,
92
+ "javascript": 4291120,
93
93
  "share-init": 252,
94
94
  "runtime": 21445
95
95
  },
@@ -106,7 +106,7 @@
106
106
  "auxiliaryFiles": [
107
107
  "main.js.map"
108
108
  ],
109
- "hash": "1552a1194aa3a3ac",
109
+ "hash": "42dca93609521f69",
110
110
  "childrenByOrder": {}
111
111
  },
112
112
  {
@@ -333,9 +333,9 @@
333
333
  "initial": false,
334
334
  "entry": false,
335
335
  "recorded": false,
336
- "size": 903022,
336
+ "size": 903255,
337
337
  "sizes": {
338
- "javascript": 902812,
338
+ "javascript": 903045,
339
339
  "consume-shared": 210
340
340
  },
341
341
  "names": [],
@@ -349,7 +349,7 @@
349
349
  "auxiliaryFiles": [
350
350
  "979.js.map"
351
351
  ],
352
- "hash": "ef1449bb81e85997",
352
+ "hash": "b615a24cc4b7a8ee",
353
353
  "childrenByOrder": {}
354
354
  }
355
355
  ]
package/dist/routes.json CHANGED
@@ -1 +1 @@
1
- {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":"^1.2.0","webservices.rest":"^2.24.0"},"extensions":[{"name":"stock-management-dashboard","slot":"stock-management-dashboard-slot","component":"stockManagementDashboard"},{"name":"stock-management-admin-card-link","slot":"system-admin-page-card-link-slot","component":"stockManagementAdminCardLink"},{"name":"stock-operation-dialog","component":"stockOperationDialog"},{"name":"import-bulk-stock-items","component":"importBulkStockItemsDialog"},{"name":"delete-stock-modal","component":"deleteStockModal"},{"name":"delete-stock-user-scope-modal","component":"deleteUserScopeModal"},{"name":"stock-management-app-menu-item","component":"stockManagementAppMenuItem","slot":"app-menu-item-slot","meta":{"name":" Stock Management"}},{"name":"delete-stock-rule-modal","component":"deleteStockRuleModal"}],"pages":[{"component":"stockManagement","route":"stock-management"}],"version":"1.0.1-pre.327"}
1
+ {"$schema":"https://json.openmrs.org/routes.schema.json","backendDependencies":{"fhir2":"^1.2.0","webservices.rest":"^2.24.0"},"extensions":[{"name":"stock-management-dashboard","slot":"stock-management-dashboard-slot","component":"stockManagementDashboard"},{"name":"stock-management-admin-card-link","slot":"system-admin-page-card-link-slot","component":"stockManagementAdminCardLink"},{"name":"stock-operation-dialog","component":"stockOperationDialog"},{"name":"import-bulk-stock-items","component":"importBulkStockItemsDialog"},{"name":"delete-stock-modal","component":"deleteStockModal"},{"name":"delete-stock-user-scope-modal","component":"deleteUserScopeModal"},{"name":"stock-management-app-menu-item","component":"stockManagementAppMenuItem","slot":"app-menu-item-slot","meta":{"name":" Stock Management"}},{"name":"delete-stock-rule-modal","component":"deleteStockRuleModal"}],"pages":[{"component":"stockManagement","route":"stock-management"}],"version":"1.0.1-pre.329"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@openmrs/esm-stock-management-app",
3
- "version": "1.0.1-pre.327",
3
+ "version": "1.0.1-pre.329",
4
4
  "license": "MPL-2.0",
5
5
  "description": "Stock management microfrontend for OpenMRS 3.x",
6
6
  "browser": "dist/openmrs-esm-stock-management-app.js",
@@ -162,17 +162,25 @@ const StockItemDetails = forwardRef<never, StockItemDetailsProps>(
162
162
  </FormGroup>
163
163
 
164
164
  {hasExpiration && (
165
- <ControlledNumberInput
166
- id="expiryNotice"
167
- name="expiryNotice"
168
- control={control}
169
- controllerName="expiryNotice"
170
- size={"md"}
171
- allowEmpty={true}
172
- label={t("expiryNoticeDays", "Expiration Notice (days)")}
173
- invalid={!!errors.expiryNotice}
174
- invalidText={errors.expiryNotice && errors?.expiryNotice?.message}
175
- />
165
+ <FormGroup
166
+ className="clear-margin-bottom"
167
+ legendText={t("expirationNotice", "Expiration Notice (days)")}
168
+ title={t("expirationNotice", "Expiration Notice (days)")}
169
+ >
170
+ <ControlledNumberInput
171
+ id="expiryNotice"
172
+ name="expiryNotice"
173
+ control={control}
174
+ controllerName="expiryNotice"
175
+ size={"md"}
176
+ allowEmpty={true}
177
+ label={t("expiryNoticeDays", "Expiration Notice (days)")}
178
+ invalid={!!errors.expiryNotice}
179
+ invalidText={
180
+ errors.expiryNotice && errors?.expiryNotice?.message
181
+ }
182
+ />
183
+ </FormGroup>
176
184
  )}
177
185
  </div>
178
186
  <PreferredVendorSelector