@openmrs/esm-framework 6.2.1-pre.2752 → 6.2.1-pre.2762
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 +1 -1
- package/dist/openmrs-esm-framework.js +1 -1
- package/dist/openmrs-esm-framework.js.map +1 -1
- package/docs/API.md +36 -157
- package/docs/interfaces/OpenmrsDatePickerProps.md +14 -14
- package/docs/interfaces/StyleguideConfigObject.md +15 -0
- package/mock.tsx +2 -4
- package/package.json +18 -18
package/docs/API.md
CHANGED
@@ -83,18 +83,12 @@
|
|
83
83
|
- [formatDatetime](API.md#formatdatetime)
|
84
84
|
- [formatTime](API.md#formattime)
|
85
85
|
- [getDefaultCalendar](API.md#getdefaultcalendar)
|
86
|
-
- [getLocale](API.md#getlocale)
|
87
86
|
- [isOmrsDateStrict](API.md#isomrsdatestrict)
|
88
87
|
- [isOmrsDateToday](API.md#isomrsdatetoday)
|
89
88
|
- [parseDate](API.md#parsedate)
|
90
89
|
- [registerDefaultCalendar](API.md#registerdefaultcalendar)
|
91
90
|
- [toDateObjectStrict](API.md#todateobjectstrict)
|
92
|
-
- [toOmrsDateFormat](API.md#toomrsdateformat)
|
93
|
-
- [toOmrsDayDateFormat](API.md#toomrsdaydateformat)
|
94
91
|
- [toOmrsIsoString](API.md#toomrsisostring)
|
95
|
-
- [toOmrsTimeString](API.md#toomrstimestring)
|
96
|
-
- [toOmrsTimeString24](API.md#toomrstimestring24)
|
97
|
-
- [toOmrsYearlessDateFormat](API.md#toomrsyearlessdateformat)
|
98
92
|
|
99
93
|
### Dynamic Loading Functions
|
100
94
|
|
@@ -191,6 +185,7 @@
|
|
191
185
|
- [evaluateAsTypeAsync](API.md#evaluateastypeasync)
|
192
186
|
- [evaluateAsync](API.md#evaluateasync)
|
193
187
|
- [extractVariableNames](API.md#extractvariablenames)
|
188
|
+
- [getLocale](API.md#getlocale)
|
194
189
|
- [isOnline](API.md#isonline)
|
195
190
|
- [useFhirFetchAll](API.md#usefhirfetchall)
|
196
191
|
- [useFhirInfinite](API.md#usefhirinfinite)
|
@@ -382,7 +377,7 @@ ___
|
|
382
377
|
|
383
378
|
#### Defined in
|
384
379
|
|
385
|
-
[packages/framework/esm-utils/src/
|
380
|
+
[packages/framework/esm-utils/src/dates/date-util.ts:27](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L27)
|
386
381
|
|
387
382
|
___
|
388
383
|
|
@@ -392,7 +387,7 @@ ___
|
|
392
387
|
|
393
388
|
#### Defined in
|
394
389
|
|
395
|
-
[packages/framework/esm-utils/src/
|
390
|
+
[packages/framework/esm-utils/src/dates/date-util.ts:101](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L101)
|
396
391
|
|
397
392
|
___
|
398
393
|
|
@@ -416,7 +411,7 @@ ___
|
|
416
411
|
|
417
412
|
#### Defined in
|
418
413
|
|
419
|
-
[packages/framework/esm-utils/src/
|
414
|
+
[packages/framework/esm-utils/src/dates/date-util.ts:103](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L103)
|
420
415
|
|
421
416
|
___
|
422
417
|
|
@@ -546,7 +541,7 @@ A type for any of the acceptable date formats
|
|
546
541
|
|
547
542
|
#### Defined in
|
548
543
|
|
549
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
544
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:79](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L79)
|
550
545
|
|
551
546
|
___
|
552
547
|
|
@@ -1879,7 +1874,7 @@ A date picker component to select a single date. Based on React Aria, but styled
|
|
1879
1874
|
|
1880
1875
|
#### Defined in
|
1881
1876
|
|
1882
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
1877
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:430](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L430)
|
1883
1878
|
|
1884
1879
|
___
|
1885
1880
|
|
@@ -3991,7 +3986,7 @@ CalendarDate
|
|
3991
3986
|
|
3992
3987
|
#### Defined in
|
3993
3988
|
|
3994
|
-
[packages/framework/esm-utils/src/
|
3989
|
+
[packages/framework/esm-utils/src/dates/date-util.ts:350](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L350)
|
3995
3990
|
|
3996
3991
|
___
|
3997
3992
|
|
@@ -4030,7 +4025,7 @@ locales.
|
|
4030
4025
|
|
4031
4026
|
#### Defined in
|
4032
4027
|
|
4033
|
-
[packages/framework/esm-utils/src/
|
4028
|
+
[packages/framework/esm-utils/src/dates/date-util.ts:239](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L239)
|
4034
4029
|
|
4035
4030
|
___
|
4036
4031
|
|
@@ -4059,7 +4054,7 @@ output of `Date.prototype.toLocaleString` for *most* locales.
|
|
4059
4054
|
|
4060
4055
|
#### Defined in
|
4061
4056
|
|
4062
|
-
[packages/framework/esm-utils/src/
|
4057
|
+
[packages/framework/esm-utils/src/dates/date-util.ts:342](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L342)
|
4063
4058
|
|
4064
4059
|
___
|
4065
4060
|
|
@@ -4082,7 +4077,7 @@ Formats the input as a time, according to the current locale.
|
|
4082
4077
|
|
4083
4078
|
#### Defined in
|
4084
4079
|
|
4085
|
-
[packages/framework/esm-utils/src/
|
4080
|
+
[packages/framework/esm-utils/src/dates/date-util.ts:326](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L326)
|
4086
4081
|
|
4087
4082
|
___
|
4088
4083
|
|
@@ -4104,25 +4099,7 @@ Retrieves the default calendar for the specified locale if any.
|
|
4104
4099
|
|
4105
4100
|
#### Defined in
|
4106
4101
|
|
4107
|
-
[packages/framework/esm-utils/src/
|
4108
|
-
|
4109
|
-
___
|
4110
|
-
|
4111
|
-
### getLocale
|
4112
|
-
|
4113
|
-
▸ **getLocale**(): `string`
|
4114
|
-
|
4115
|
-
Returns the current locale of the application.
|
4116
|
-
|
4117
|
-
#### Returns
|
4118
|
-
|
4119
|
-
`string`
|
4120
|
-
|
4121
|
-
string
|
4122
|
-
|
4123
|
-
#### Defined in
|
4124
|
-
|
4125
|
-
[packages/framework/esm-utils/src/omrs-dates.ts:389](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/omrs-dates.ts#L389)
|
4102
|
+
[packages/framework/esm-utils/src/dates/date-util.ts:213](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L213)
|
4126
4103
|
|
4127
4104
|
___
|
4128
4105
|
|
@@ -4145,7 +4122,7 @@ The format should be YYYY-MM-DDTHH:mm:ss.SSSZZ
|
|
4145
4122
|
|
4146
4123
|
#### Defined in
|
4147
4124
|
|
4148
|
-
[packages/framework/esm-utils/src/
|
4125
|
+
[packages/framework/esm-utils/src/dates/date-util.ts:35](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L35)
|
4149
4126
|
|
4150
4127
|
___
|
4151
4128
|
|
@@ -4165,7 +4142,7 @@ ___
|
|
4165
4142
|
|
4166
4143
|
#### Defined in
|
4167
4144
|
|
4168
|
-
[packages/framework/esm-utils/src/
|
4145
|
+
[packages/framework/esm-utils/src/dates/date-util.ts:64](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L64)
|
4169
4146
|
|
4170
4147
|
___
|
4171
4148
|
|
@@ -4188,7 +4165,7 @@ Uses `dayjs(dateString)`.
|
|
4188
4165
|
|
4189
4166
|
#### Defined in
|
4190
4167
|
|
4191
|
-
[packages/framework/esm-utils/src/
|
4168
|
+
[packages/framework/esm-utils/src/dates/date-util.ts:97](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L97)
|
4192
4169
|
|
4193
4170
|
___
|
4194
4171
|
|
@@ -4216,7 +4193,7 @@ registerDefaultCalendar('en', 'buddhist') // sets the default calendar for the '
|
|
4216
4193
|
|
4217
4194
|
#### Defined in
|
4218
4195
|
|
4219
|
-
[packages/framework/esm-utils/src/
|
4196
|
+
[packages/framework/esm-utils/src/dates/date-util.ts:204](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L204)
|
4220
4197
|
|
4221
4198
|
___
|
4222
4199
|
|
@@ -4239,54 +4216,7 @@ Otherwise returns null.
|
|
4239
4216
|
|
4240
4217
|
#### Defined in
|
4241
4218
|
|
4242
|
-
[packages/framework/esm-utils/src/
|
4243
|
-
|
4244
|
-
___
|
4245
|
-
|
4246
|
-
### toOmrsDateFormat
|
4247
|
-
|
4248
|
-
▸ **toOmrsDateFormat**(`date`, `format?`): `string`
|
4249
|
-
|
4250
|
-
**`deprecated`** use `formatDate(date)`
|
4251
|
-
Formats the input as a date string. By default the format "YYYY-MMM-DD" is used.
|
4252
|
-
|
4253
|
-
#### Parameters
|
4254
|
-
|
4255
|
-
| Name | Type | Default value |
|
4256
|
-
| :------ | :------ | :------ |
|
4257
|
-
| `date` | [`DateInput`](API.md#dateinput) | `undefined` |
|
4258
|
-
| `format` | `string` | `'YYYY-MMM-DD'` |
|
4259
|
-
|
4260
|
-
#### Returns
|
4261
|
-
|
4262
|
-
`string`
|
4263
|
-
|
4264
|
-
#### Defined in
|
4265
|
-
|
4266
|
-
[packages/framework/esm-utils/src/omrs-dates.ts:128](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/omrs-dates.ts#L128)
|
4267
|
-
|
4268
|
-
___
|
4269
|
-
|
4270
|
-
### toOmrsDayDateFormat
|
4271
|
-
|
4272
|
-
▸ **toOmrsDayDateFormat**(`date`): `string`
|
4273
|
-
|
4274
|
-
**`deprecated`** use `formatDate(date, "wide")`
|
4275
|
-
Formats the input as a date string using the format "DD - MMM - YYYY".
|
4276
|
-
|
4277
|
-
#### Parameters
|
4278
|
-
|
4279
|
-
| Name | Type |
|
4280
|
-
| :------ | :------ |
|
4281
|
-
| `date` | [`DateInput`](API.md#dateinput) |
|
4282
|
-
|
4283
|
-
#### Returns
|
4284
|
-
|
4285
|
-
`string`
|
4286
|
-
|
4287
|
-
#### Defined in
|
4288
|
-
|
4289
|
-
[packages/framework/esm-utils/src/omrs-dates.ts:112](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/omrs-dates.ts#L112)
|
4219
|
+
[packages/framework/esm-utils/src/dates/date-util.ts:72](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L72)
|
4290
4220
|
|
4291
4221
|
___
|
4292
4222
|
|
@@ -4309,76 +4239,7 @@ Formats the input to OpenMRS ISO format: "YYYY-MM-DDTHH:mm:ss.SSSZZ".
|
|
4309
4239
|
|
4310
4240
|
#### Defined in
|
4311
4241
|
|
4312
|
-
[packages/framework/esm-utils/src/
|
4313
|
-
|
4314
|
-
___
|
4315
|
-
|
4316
|
-
### toOmrsTimeString
|
4317
|
-
|
4318
|
-
▸ **toOmrsTimeString**(`date`): `string`
|
4319
|
-
|
4320
|
-
**`deprecated`** use `formatTime`
|
4321
|
-
Formats the input as a time string using the format "HH:mm A".
|
4322
|
-
|
4323
|
-
#### Parameters
|
4324
|
-
|
4325
|
-
| Name | Type |
|
4326
|
-
| :------ | :------ |
|
4327
|
-
| `date` | [`DateInput`](API.md#dateinput) |
|
4328
|
-
|
4329
|
-
#### Returns
|
4330
|
-
|
4331
|
-
`string`
|
4332
|
-
|
4333
|
-
#### Defined in
|
4334
|
-
|
4335
|
-
[packages/framework/esm-utils/src/omrs-dates.ts:104](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/omrs-dates.ts#L104)
|
4336
|
-
|
4337
|
-
___
|
4338
|
-
|
4339
|
-
### toOmrsTimeString24
|
4340
|
-
|
4341
|
-
▸ **toOmrsTimeString24**(`date`): `string`
|
4342
|
-
|
4343
|
-
**`deprecated`** use `formatTime`
|
4344
|
-
Formats the input as a time string using the format "HH:mm".
|
4345
|
-
|
4346
|
-
#### Parameters
|
4347
|
-
|
4348
|
-
| Name | Type |
|
4349
|
-
| :------ | :------ |
|
4350
|
-
| `date` | [`DateInput`](API.md#dateinput) |
|
4351
|
-
|
4352
|
-
#### Returns
|
4353
|
-
|
4354
|
-
`string`
|
4355
|
-
|
4356
|
-
#### Defined in
|
4357
|
-
|
4358
|
-
[packages/framework/esm-utils/src/omrs-dates.ts:96](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/omrs-dates.ts#L96)
|
4359
|
-
|
4360
|
-
___
|
4361
|
-
|
4362
|
-
### toOmrsYearlessDateFormat
|
4363
|
-
|
4364
|
-
▸ **toOmrsYearlessDateFormat**(`date`): `string`
|
4365
|
-
|
4366
|
-
**`deprecated`** use `formatDate(date, "no year")`
|
4367
|
-
Formats the input as a date string using the format "DD-MMM".
|
4368
|
-
|
4369
|
-
#### Parameters
|
4370
|
-
|
4371
|
-
| Name | Type |
|
4372
|
-
| :------ | :------ |
|
4373
|
-
| `date` | [`DateInput`](API.md#dateinput) |
|
4374
|
-
|
4375
|
-
#### Returns
|
4376
|
-
|
4377
|
-
`string`
|
4378
|
-
|
4379
|
-
#### Defined in
|
4380
|
-
|
4381
|
-
[packages/framework/esm-utils/src/omrs-dates.ts:120](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/omrs-dates.ts#L120)
|
4242
|
+
[packages/framework/esm-utils/src/dates/date-util.ts:83](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L83)
|
4382
4243
|
|
4383
4244
|
___
|
4384
4245
|
|
@@ -6508,6 +6369,24 @@ on these expressions.
|
|
6508
6369
|
|
6509
6370
|
___
|
6510
6371
|
|
6372
|
+
### getLocale
|
6373
|
+
|
6374
|
+
▸ **getLocale**(): `string`
|
6375
|
+
|
6376
|
+
Returns the current locale of the application.
|
6377
|
+
|
6378
|
+
#### Returns
|
6379
|
+
|
6380
|
+
`string`
|
6381
|
+
|
6382
|
+
string
|
6383
|
+
|
6384
|
+
#### Defined in
|
6385
|
+
|
6386
|
+
[packages/framework/esm-utils/src/get-locale.ts:5](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/get-locale.ts#L5)
|
6387
|
+
|
6388
|
+
___
|
6389
|
+
|
6511
6390
|
### isOnline
|
6512
6391
|
|
6513
6392
|
▸ **isOnline**(`online?`): `boolean`
|
@@ -7820,7 +7699,7 @@ A human-readable string version of the age.
|
|
7820
7699
|
|
7821
7700
|
#### Defined in
|
7822
7701
|
|
7823
|
-
[packages/framework/esm-utils/src/age-helpers.ts:
|
7702
|
+
[packages/framework/esm-utils/src/age-helpers.ts:16](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/age-helpers.ts#L16)
|
7824
7703
|
|
7825
7704
|
___
|
7826
7705
|
|
@@ -173,7 +173,7 @@ Any CSS classes to add to the outer div of the date picker
|
|
173
173
|
|
174
174
|
#### Defined in
|
175
175
|
|
176
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
176
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:88](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L88)
|
177
177
|
|
178
178
|
___
|
179
179
|
|
@@ -201,7 +201,7 @@ The default value (uncontrolled)
|
|
201
201
|
|
202
202
|
#### Defined in
|
203
203
|
|
204
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
204
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:90](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L90)
|
205
205
|
|
206
206
|
___
|
207
207
|
|
@@ -295,7 +295,7 @@ Whether the input value is invalid.
|
|
295
295
|
|
296
296
|
#### Defined in
|
297
297
|
|
298
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
298
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:92](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L92)
|
299
299
|
|
300
300
|
___
|
301
301
|
|
@@ -307,7 +307,7 @@ Text to show if the input is invalid e.g. an error message
|
|
307
307
|
|
308
308
|
#### Defined in
|
309
309
|
|
310
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
310
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:94](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L94)
|
311
311
|
|
312
312
|
___
|
313
313
|
|
@@ -401,7 +401,7 @@ The label for this DatePicker element
|
|
401
401
|
|
402
402
|
#### Defined in
|
403
403
|
|
404
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
404
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:99](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L99)
|
405
405
|
|
406
406
|
___
|
407
407
|
|
@@ -413,7 +413,7 @@ The label for this DatePicker element.
|
|
413
413
|
|
414
414
|
#### Defined in
|
415
415
|
|
416
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
416
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:101](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L101)
|
417
417
|
|
418
418
|
___
|
419
419
|
|
@@ -425,7 +425,7 @@ ___
|
|
425
425
|
|
426
426
|
#### Defined in
|
427
427
|
|
428
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
428
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:103](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L103)
|
429
429
|
|
430
430
|
___
|
431
431
|
|
@@ -437,7 +437,7 @@ The latest date it is possible to select
|
|
437
437
|
|
438
438
|
#### Defined in
|
439
439
|
|
440
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
440
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:105](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L105)
|
441
441
|
|
442
442
|
___
|
443
443
|
|
@@ -465,7 +465,7 @@ The earliest date it is possible to select
|
|
465
465
|
|
466
466
|
#### Defined in
|
467
467
|
|
468
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
468
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:107](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L107)
|
469
469
|
|
470
470
|
___
|
471
471
|
|
@@ -543,7 +543,7 @@ ___
|
|
543
543
|
|
544
544
|
#### Defined in
|
545
545
|
|
546
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
546
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:115](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L115)
|
547
547
|
|
548
548
|
___
|
549
549
|
|
@@ -590,7 +590,7 @@ Specifies the size of the input. Currently supports either `sm`, `md`, or `lg` a
|
|
590
590
|
|
591
591
|
#### Defined in
|
592
592
|
|
593
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
593
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:113](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L113)
|
594
594
|
|
595
595
|
___
|
596
596
|
|
@@ -655,7 +655,7 @@ The value (controlled)
|
|
655
655
|
|
656
656
|
#### Defined in
|
657
657
|
|
658
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
658
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:117](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L117)
|
659
659
|
|
660
660
|
## Methods
|
661
661
|
|
@@ -729,7 +729,7 @@ Handler that is called when the value changes.
|
|
729
729
|
|
730
730
|
#### Defined in
|
731
731
|
|
732
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
732
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:109](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L109)
|
733
733
|
|
734
734
|
___
|
735
735
|
|
@@ -751,7 +751,7 @@ Handler that is called when the value changes. Note that this provides types fro
|
|
751
751
|
|
752
752
|
#### Defined in
|
753
753
|
|
754
|
-
[packages/framework/esm-styleguide/src/datepicker/index.tsx:
|
754
|
+
[packages/framework/esm-styleguide/src/datepicker/index.tsx:111](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/datepicker/index.tsx#L111)
|
755
755
|
|
756
756
|
___
|
757
757
|
|
@@ -13,6 +13,7 @@
|
|
13
13
|
- [implementationName](StyleguideConfigObject.md#implementationname)
|
14
14
|
- [patientPhotoConceptUuid](StyleguideConfigObject.md#patientphotoconceptuuid)
|
15
15
|
- [preferredCalendar](StyleguideConfigObject.md#preferredcalendar)
|
16
|
+
- [preferredDateLocale](StyleguideConfigObject.md#preferreddatelocale)
|
16
17
|
|
17
18
|
## Properties
|
18
19
|
|
@@ -93,3 +94,17 @@ ___
|
|
93
94
|
#### Defined in
|
94
95
|
|
95
96
|
[packages/framework/esm-styleguide/src/config-schema.ts:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/config-schema.ts#L12)
|
97
|
+
|
98
|
+
___
|
99
|
+
|
100
|
+
### preferredDateLocale
|
101
|
+
|
102
|
+
• **preferredDateLocale**: `Object`
|
103
|
+
|
104
|
+
#### Index signature
|
105
|
+
|
106
|
+
▪ [key: `string`]: `string`
|
107
|
+
|
108
|
+
#### Defined in
|
109
|
+
|
110
|
+
[packages/framework/esm-styleguide/src/config-schema.ts:15](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/config-schema.ts#L15)
|
package/mock.tsx
CHANGED
@@ -16,6 +16,8 @@ export * from '@openmrs/esm-state/mock';
|
|
16
16
|
export * from '@openmrs/esm-styleguide/mock';
|
17
17
|
export * from '@openmrs/esm-translations/mock';
|
18
18
|
|
19
|
+
export { parseDate, formatDate, formatDatetime, formatTime } from '@openmrs/esm-utils';
|
20
|
+
|
19
21
|
/* esm-globals */
|
20
22
|
|
21
23
|
export function setupPaths(config: any) {
|
@@ -97,10 +99,6 @@ export const useWorkspaces = jest.fn();
|
|
97
99
|
/* esm-utils */
|
98
100
|
export {
|
99
101
|
getDefaultsFromConfigSchema,
|
100
|
-
parseDate,
|
101
|
-
formatDate,
|
102
|
-
formatDatetime,
|
103
|
-
formatTime,
|
104
102
|
getPatientName,
|
105
103
|
formatPatientName,
|
106
104
|
selectPreferredName,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@openmrs/esm-framework",
|
3
|
-
"version": "6.2.1-pre.
|
3
|
+
"version": "6.2.1-pre.2762",
|
4
4
|
"license": "MPL-2.0",
|
5
5
|
"browser": "dist/openmrs-esm-framework.js",
|
6
6
|
"main": "src/index.ts",
|
@@ -37,23 +37,23 @@
|
|
37
37
|
"access": "public"
|
38
38
|
},
|
39
39
|
"dependencies": {
|
40
|
-
"@openmrs/esm-api": "6.2.1-pre.
|
41
|
-
"@openmrs/esm-config": "6.2.1-pre.
|
42
|
-
"@openmrs/esm-context": "6.2.1-pre.
|
43
|
-
"@openmrs/esm-dynamic-loading": "6.2.1-pre.
|
44
|
-
"@openmrs/esm-error-handling": "6.2.1-pre.
|
45
|
-
"@openmrs/esm-expression-evaluator": "6.2.1-pre.
|
46
|
-
"@openmrs/esm-extensions": "6.2.1-pre.
|
47
|
-
"@openmrs/esm-feature-flags": "6.2.1-pre.
|
48
|
-
"@openmrs/esm-globals": "6.2.1-pre.
|
49
|
-
"@openmrs/esm-navigation": "6.2.1-pre.
|
50
|
-
"@openmrs/esm-offline": "6.2.1-pre.
|
51
|
-
"@openmrs/esm-react-utils": "6.2.1-pre.
|
52
|
-
"@openmrs/esm-routes": "6.2.1-pre.
|
53
|
-
"@openmrs/esm-state": "6.2.1-pre.
|
54
|
-
"@openmrs/esm-styleguide": "6.2.1-pre.
|
55
|
-
"@openmrs/esm-translations": "6.2.1-pre.
|
56
|
-
"@openmrs/esm-utils": "6.2.1-pre.
|
40
|
+
"@openmrs/esm-api": "6.2.1-pre.2762",
|
41
|
+
"@openmrs/esm-config": "6.2.1-pre.2762",
|
42
|
+
"@openmrs/esm-context": "6.2.1-pre.2762",
|
43
|
+
"@openmrs/esm-dynamic-loading": "6.2.1-pre.2762",
|
44
|
+
"@openmrs/esm-error-handling": "6.2.1-pre.2762",
|
45
|
+
"@openmrs/esm-expression-evaluator": "6.2.1-pre.2762",
|
46
|
+
"@openmrs/esm-extensions": "6.2.1-pre.2762",
|
47
|
+
"@openmrs/esm-feature-flags": "6.2.1-pre.2762",
|
48
|
+
"@openmrs/esm-globals": "6.2.1-pre.2762",
|
49
|
+
"@openmrs/esm-navigation": "6.2.1-pre.2762",
|
50
|
+
"@openmrs/esm-offline": "6.2.1-pre.2762",
|
51
|
+
"@openmrs/esm-react-utils": "6.2.1-pre.2762",
|
52
|
+
"@openmrs/esm-routes": "6.2.1-pre.2762",
|
53
|
+
"@openmrs/esm-state": "6.2.1-pre.2762",
|
54
|
+
"@openmrs/esm-styleguide": "6.2.1-pre.2762",
|
55
|
+
"@openmrs/esm-translations": "6.2.1-pre.2762",
|
56
|
+
"@openmrs/esm-utils": "6.2.1-pre.2762",
|
57
57
|
"dayjs": "^1.10.7"
|
58
58
|
},
|
59
59
|
"peerDependencies": {
|