@openmrs/esm-framework 9.0.3-pre.4178 → 9.0.3-pre.4195
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/docs/functions/PatientPhoto.md +1 -1
- package/docs/functions/age.md +1 -1
- package/docs/functions/convertToLocaleCalendar.md +1 -1
- package/docs/functions/defineConfigSchema.md +1 -1
- package/docs/functions/defineExtensionConfigSchema.md +1 -1
- package/docs/functions/formatDate.md +1 -1
- package/docs/functions/formatDatetime.md +1 -1
- package/docs/functions/formatDuration.md +1 -1
- package/docs/functions/formatPartialDate.md +1 -1
- package/docs/functions/formatTime.md +1 -1
- package/docs/functions/getConfig.md +1 -1
- package/docs/functions/getCoreTranslation.md +1 -1
- package/docs/functions/getDefaultCalendar.md +1 -1
- package/docs/functions/isOmrsDateStrict.md +1 -1
- package/docs/functions/isOmrsDateToday.md +1 -1
- package/docs/functions/parseDate.md +1 -1
- package/docs/functions/provide.md +1 -1
- package/docs/functions/registerDefaultCalendar.md +1 -1
- package/docs/functions/toDateObjectStrict.md +1 -1
- package/docs/functions/toOmrsIsoString.md +1 -1
- package/docs/interfaces/ExtensionSlotProps.md +1 -1
- package/docs/interfaces/PatientPhotoProps.md +4 -4
- package/docs/type-aliases/DateInput.md +1 -1
- package/docs/type-aliases/FormatDateMode.md +1 -1
- package/docs/type-aliases/FormatDateOptions.md +10 -10
- package/mock-jest.tsx +1 -1
- package/mock.tsx +1 -1
- package/package.json +20 -20
package/.turbo/turbo-build.log
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **PatientPhoto**(`__namedParameters`): `Element`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx:28](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx#L28)
|
|
8
8
|
|
|
9
9
|
A component which displays the patient photo https://zeroheight.com/23a080e38/p/6663f3-patient-header. If there is no photo, it will display a generated avatar. The default size is 56px.
|
|
10
10
|
|
package/docs/functions/age.md
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **age**(`birthDate`, `currentDate`): `null` \| `string`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/age-helpers.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-utils/src/age-helpers.ts:20](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/age-helpers.ts#L20)
|
|
8
8
|
|
|
9
9
|
Gets a human readable and locale supported representation of a person's age, given their birthDate,
|
|
10
10
|
The representation logic follows the guideline here:
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **convertToLocaleCalendar**(`date`, `locale`): `CalendarDate` \| `CalendarDateTime` \| `ZonedDateTime`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:424](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L424)
|
|
8
8
|
|
|
9
9
|
Converts a calendar date to the equivalent locale calendar date.
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **defineConfigSchema**(`moduleName`, `schema`): `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-config/src/module-config/module-config.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-config/src/module-config/module-config.ts:190](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-config/src/module-config/module-config.ts#L190)
|
|
8
8
|
|
|
9
9
|
This defines a configuration schema for a module. The schema tells the
|
|
10
10
|
configuration system how the module can be configured. It specifies
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **defineExtensionConfigSchema**(`extensionName`, `schema`): `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-config/src/module-config/module-config.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-config/src/module-config/module-config.ts:266](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-config/src/module-config/module-config.ts#L266)
|
|
8
8
|
|
|
9
9
|
This defines a configuration schema for an extension. When a schema is defined
|
|
10
10
|
for an extension, that extension will receive the configuration corresponding
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **formatDate**(`date`, `options?`): `string`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:306](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L306)
|
|
8
8
|
|
|
9
9
|
Formats the input date according to the current locale and the
|
|
10
10
|
given options.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **formatDatetime**(`date`, `options?`): `string`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:416](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L416)
|
|
8
8
|
|
|
9
9
|
Formats the input into a string showing the date and time, according
|
|
10
10
|
to the current locale. The `mode` parameter is as described for
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **formatDuration**(`duration`, `options?`): `string`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:441](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L441)
|
|
8
8
|
|
|
9
9
|
Formats the input duration according to the current locale.
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **formatPartialDate**(`dateString`, `options`): `null` \| `string`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:241](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L241)
|
|
8
8
|
|
|
9
9
|
Formats the string representing a date, including partial representations of dates, according to the current
|
|
10
10
|
locale and the given options.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **formatTime**(`date`): `string`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:396](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L396)
|
|
8
8
|
|
|
9
9
|
Formats the input as a time, according to the current locale.
|
|
10
10
|
12-hour or 24-hour clock depends on locale.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **getConfig**\<`T`\>(`moduleName`): `Promise`\<`T`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-config/src/module-config/module-config.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-config/src/module-config/module-config.ts:308](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-config/src/module-config/module-config.ts#L308)
|
|
8
8
|
|
|
9
9
|
A promise-based way to access the config as soon as it is fully loaded.
|
|
10
10
|
If it is already loaded, resolves the config in its present state.
|
|
@@ -19,7 +19,7 @@ invalid key to this function will result in a type error.
|
|
|
19
19
|
|
|
20
20
|
The translation key from the set of core translations.
|
|
21
21
|
|
|
22
|
-
`"cancel"` | `"change"` | `"close"` | `"error"` | `"unknown"` | `"
|
|
22
|
+
`"cancel"` | `"change"` | `"close"` | `"error"` | `"unknown"` | `"Clinic"` | `"abnormalValue"` | `"actions"` | `"actionableNotification"` | `"address"` | `"age"` | `"closesActionableNotification"` | `"closeSnackbar"` | `"confirm"` | `"contactAdministratorIfIssuePersists"` | `"contactDetails"` | `"delete"` | `"discardChanges"` | `"edit"` | `"emptyStateText"` | `"errorCopy"` | `"errorLoadingLoginLocations"` | `"female"` | `"leftNavigation"` | `"loading"` | `"male"` | `"noResultsToDisplay"` | `"notAvailable"` | `"other"` | `"paginationItemsCount"` | `"paginationOfPages"` | `"patientAvatarAlt"` | `"patientIdentifierSticker"` | `"patientLists"` | `"patientPhotoAlt"` | `"patientPhotoPlaceholder"` | `"print"` | `"printError"` | `"printErrorExplainer"` | `"printIdentifierSticker"` | `"printing"` | `"recordNewEntry"` | `"relationships"` | `"resetOverrides"` | `"save"` | `"scriptLoadingFailed"` | `"scriptLoadingError"` | `"searchForLocation"` | `"seeAll"` | `"seeMoreLists"` | `"sex"` | `"showLess"` | `"showMore"` | `"snackbarNotification"` | `"toggleDevTools"` | `"yearAbbreviation"` | `"yearsAbbreviation"` | `"closeWorkspaces2PromptTitle"` | `"closeWorkspaces2PromptBody"` | `"closeAllOpenedWorkspaces"` | `"closingAllWorkspacesPromptBody"` | `"closingAllWorkspacesPromptTitle"` | `"discard"` | `"hide"` | `"maximize"` | `"minimize"` | `"openAnyway"` | `"unsavedChangesInOpenedWorkspace"` | `"unsavedChangesInWorkspace"` | `"unsavedChangesTitleText"` | `"workspaceHeader"` | `"address1"` | `"address2"` | `"address3"` | `"address4"` | `"address5"` | `"address6"` | `"city"` | `"cityVillage"` | `"country"` | `"countyDistrict"` | `"district"` | `"postalCode"` | `"state"` | `"stateProvince"`
|
|
23
23
|
|
|
24
24
|
### defaultText?
|
|
25
25
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **getDefaultCalendar**(`locale`): `undefined` \| `CalendarIdentifier`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:164](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L164)
|
|
8
8
|
|
|
9
9
|
Retrieves the default calendar for the specified locale if any.
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **isOmrsDateStrict**(`omrsPayloadString`): `boolean`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:33](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L33)
|
|
8
8
|
|
|
9
9
|
This function checks whether a date string is the OpenMRS ISO format.
|
|
10
10
|
The format should be YYYY-MM-DDTHH:mm:ss.SSSZZ
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **isOmrsDateToday**(`date`): `boolean`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [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)
|
|
8
8
|
|
|
9
9
|
Checks if the provided date is today.
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **parseDate**(`dateString`): `Date`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [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)
|
|
8
8
|
|
|
9
9
|
Utility function to parse an arbitrary string into a date.
|
|
10
10
|
Uses `dayjs(dateString)`.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **provide**(`config`, `sourceName`): `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-config/src/module-config/module-config.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-config/src/module-config/module-config.ts:292](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-config/src/module-config/module-config.ts#L292)
|
|
8
8
|
|
|
9
9
|
Provides configuration values programmatically. This is an alternative to
|
|
10
10
|
providing configuration through the config-file. Configuration provided this
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **registerDefaultCalendar**(`locale`, `calendar`): `void`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:155](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L155)
|
|
8
8
|
|
|
9
9
|
Provides the name of the calendar to associate, as a default, with the given base locale.
|
|
10
10
|
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **toDateObjectStrict**(`omrsDateString`): `null` \| `Date`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [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)
|
|
8
8
|
|
|
9
9
|
Converts the object to a date object if it is an OpenMRS ISO date time string.
|
|
10
10
|
Otherwise returns null.
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **toOmrsIsoString**(`date`, `toUTC`): `string`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [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)
|
|
8
8
|
|
|
9
9
|
Formats the input to OpenMRS ISO format: "YYYY-MM-DDTHH:mm:ss.SSSZZ".
|
|
10
10
|
|
|
@@ -1105,7 +1105,7 @@ Defined in: node\_modules/@types/react/index.d.ts:2919
|
|
|
1105
1105
|
|
|
1106
1106
|
### enterKeyHint?
|
|
1107
1107
|
|
|
1108
|
-
> `optional` **enterKeyHint**: `"search"` \| `"
|
|
1108
|
+
> `optional` **enterKeyHint**: `"search"` \| `"enter"` \| `"done"` \| `"go"` \| `"next"` \| `"previous"` \| `"send"`
|
|
1109
1109
|
|
|
1110
1110
|
Defined in: node\_modules/@types/react/index.d.ts:2920
|
|
1111
1111
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
# Interface: PatientPhotoProps
|
|
4
4
|
|
|
5
|
-
Defined in: [packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx:
|
|
5
|
+
Defined in: [packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx:10](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx#L10)
|
|
6
6
|
|
|
7
7
|
## Properties
|
|
8
8
|
|
|
@@ -10,7 +10,7 @@ Defined in: [packages/framework/esm-styleguide/src/patient-photo/patient-photo.c
|
|
|
10
10
|
|
|
11
11
|
> `optional` **alt**: `string`
|
|
12
12
|
|
|
13
|
-
Defined in: [packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx:
|
|
13
|
+
Defined in: [packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx:13](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx#L13)
|
|
14
14
|
|
|
15
15
|
***
|
|
16
16
|
|
|
@@ -18,7 +18,7 @@ Defined in: [packages/framework/esm-styleguide/src/patient-photo/patient-photo.c
|
|
|
18
18
|
|
|
19
19
|
> **patientName**: `string`
|
|
20
20
|
|
|
21
|
-
Defined in: [packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx:
|
|
21
|
+
Defined in: [packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx:11](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx#L11)
|
|
22
22
|
|
|
23
23
|
***
|
|
24
24
|
|
|
@@ -26,4 +26,4 @@ Defined in: [packages/framework/esm-styleguide/src/patient-photo/patient-photo.c
|
|
|
26
26
|
|
|
27
27
|
> **patientUuid**: `string`
|
|
28
28
|
|
|
29
|
-
Defined in: [packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx:
|
|
29
|
+
Defined in: [packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx:12](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/patient-photo/patient-photo.component.tsx#L12)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> **DateInput** = `string` \| `number` \| `Date`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:25](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L25)
|
|
@@ -4,4 +4,4 @@
|
|
|
4
4
|
|
|
5
5
|
> **FormatDateMode** = `"standard"` \| `"wide"`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:170](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L170)
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> **FormatDateOptions** = `object`
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
7
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:172](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L172)
|
|
8
8
|
|
|
9
9
|
## Properties
|
|
10
10
|
|
|
@@ -12,7 +12,7 @@ Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:174](https://gi
|
|
|
12
12
|
|
|
13
13
|
> `optional` **calendar**: `string`
|
|
14
14
|
|
|
15
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
15
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:176](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L176)
|
|
16
16
|
|
|
17
17
|
The calendar to use when formatting this date.
|
|
18
18
|
|
|
@@ -22,7 +22,7 @@ The calendar to use when formatting this date.
|
|
|
22
22
|
|
|
23
23
|
> **day**: `boolean`
|
|
24
24
|
|
|
25
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
25
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:192](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L192)
|
|
26
26
|
|
|
27
27
|
Whether to include the day number
|
|
28
28
|
|
|
@@ -32,7 +32,7 @@ Whether to include the day number
|
|
|
32
32
|
|
|
33
33
|
> `optional` **locale**: `string`
|
|
34
34
|
|
|
35
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
35
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:180](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L180)
|
|
36
36
|
|
|
37
37
|
The locale to use when formatting this date
|
|
38
38
|
|
|
@@ -42,7 +42,7 @@ The locale to use when formatting this date
|
|
|
42
42
|
|
|
43
43
|
> **mode**: [`FormatDateMode`](FormatDateMode.md)
|
|
44
44
|
|
|
45
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
45
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:185](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L185)
|
|
46
46
|
|
|
47
47
|
- `standard`: "03 Feb 2022"
|
|
48
48
|
- `wide`: "03 — Feb — 2022"
|
|
@@ -53,7 +53,7 @@ Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:187](https://gi
|
|
|
53
53
|
|
|
54
54
|
> **month**: `boolean`
|
|
55
55
|
|
|
56
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
56
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:194](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L194)
|
|
57
57
|
|
|
58
58
|
Whether to include the month number
|
|
59
59
|
|
|
@@ -63,7 +63,7 @@ Whether to include the month number
|
|
|
63
63
|
|
|
64
64
|
> **noToday**: `boolean`
|
|
65
65
|
|
|
66
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
66
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:205](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L205)
|
|
67
67
|
|
|
68
68
|
Disables the special handling of dates that are today. If false
|
|
69
69
|
(the default), then dates that are today will be formatted as "Today"
|
|
@@ -76,7 +76,7 @@ formatted the same as all other dates.
|
|
|
76
76
|
|
|
77
77
|
> `optional` **numberingSystem**: `string`
|
|
78
78
|
|
|
79
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
79
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:198](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L198)
|
|
80
80
|
|
|
81
81
|
The unicode numbering system to use
|
|
82
82
|
|
|
@@ -86,7 +86,7 @@ The unicode numbering system to use
|
|
|
86
86
|
|
|
87
87
|
> **time**: `true` \| `false` \| `"for today"`
|
|
88
88
|
|
|
89
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
89
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:190](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L190)
|
|
90
90
|
|
|
91
91
|
Whether the time should be included in the output always (`true`),
|
|
92
92
|
never (`false`), or only when the input date is today (`for today`).
|
|
@@ -97,6 +97,6 @@ never (`false`), or only when the input date is today (`for today`).
|
|
|
97
97
|
|
|
98
98
|
> **year**: `boolean`
|
|
99
99
|
|
|
100
|
-
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:
|
|
100
|
+
Defined in: [packages/framework/esm-utils/src/dates/date-util.ts:196](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-utils/src/dates/date-util.ts#L196)
|
|
101
101
|
|
|
102
102
|
Whether to include the year
|
package/mock-jest.tsx
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import React, { useState } from 'react';
|
|
2
2
|
import { NEVER } from 'rxjs';
|
|
3
3
|
import type {} from '@openmrs/esm-globals';
|
|
4
|
-
import * as utils from '@openmrs/esm-utils';
|
|
4
|
+
import * as utils from '@openmrs/esm-utils/mock';
|
|
5
5
|
import dayjs from 'dayjs';
|
|
6
6
|
|
|
7
7
|
window.i18next = { ...window.i18next, language: 'en' };
|
package/mock.tsx
CHANGED
|
@@ -3,7 +3,7 @@ import dayjs from 'dayjs';
|
|
|
3
3
|
import { NEVER } from 'rxjs';
|
|
4
4
|
import { vi } from 'vitest';
|
|
5
5
|
import type {} from '@openmrs/esm-globals';
|
|
6
|
-
import * as utils from '@openmrs/esm-utils';
|
|
6
|
+
import * as utils from '@openmrs/esm-utils/mock';
|
|
7
7
|
|
|
8
8
|
window.i18next = { ...window.i18next, language: 'en' };
|
|
9
9
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-framework",
|
|
3
|
-
"version": "9.0.3-pre.
|
|
3
|
+
"version": "9.0.3-pre.4195",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -59,24 +59,24 @@
|
|
|
59
59
|
"access": "public"
|
|
60
60
|
},
|
|
61
61
|
"dependencies": {
|
|
62
|
-
"@openmrs/esm-api": "9.0.3-pre.
|
|
63
|
-
"@openmrs/esm-config": "9.0.3-pre.
|
|
64
|
-
"@openmrs/esm-context": "9.0.3-pre.
|
|
65
|
-
"@openmrs/esm-dynamic-loading": "9.0.3-pre.
|
|
66
|
-
"@openmrs/esm-emr-api": "9.0.3-pre.
|
|
67
|
-
"@openmrs/esm-error-handling": "9.0.3-pre.
|
|
68
|
-
"@openmrs/esm-expression-evaluator": "9.0.3-pre.
|
|
69
|
-
"@openmrs/esm-extensions": "9.0.3-pre.
|
|
70
|
-
"@openmrs/esm-feature-flags": "9.0.3-pre.
|
|
71
|
-
"@openmrs/esm-globals": "9.0.3-pre.
|
|
72
|
-
"@openmrs/esm-navigation": "9.0.3-pre.
|
|
73
|
-
"@openmrs/esm-offline": "9.0.3-pre.
|
|
74
|
-
"@openmrs/esm-react-utils": "9.0.3-pre.
|
|
75
|
-
"@openmrs/esm-routes": "9.0.3-pre.
|
|
76
|
-
"@openmrs/esm-state": "9.0.3-pre.
|
|
77
|
-
"@openmrs/esm-styleguide": "9.0.3-pre.
|
|
78
|
-
"@openmrs/esm-translations": "9.0.3-pre.
|
|
79
|
-
"@openmrs/esm-utils": "9.0.3-pre.
|
|
62
|
+
"@openmrs/esm-api": "9.0.3-pre.4195",
|
|
63
|
+
"@openmrs/esm-config": "9.0.3-pre.4195",
|
|
64
|
+
"@openmrs/esm-context": "9.0.3-pre.4195",
|
|
65
|
+
"@openmrs/esm-dynamic-loading": "9.0.3-pre.4195",
|
|
66
|
+
"@openmrs/esm-emr-api": "9.0.3-pre.4195",
|
|
67
|
+
"@openmrs/esm-error-handling": "9.0.3-pre.4195",
|
|
68
|
+
"@openmrs/esm-expression-evaluator": "9.0.3-pre.4195",
|
|
69
|
+
"@openmrs/esm-extensions": "9.0.3-pre.4195",
|
|
70
|
+
"@openmrs/esm-feature-flags": "9.0.3-pre.4195",
|
|
71
|
+
"@openmrs/esm-globals": "9.0.3-pre.4195",
|
|
72
|
+
"@openmrs/esm-navigation": "9.0.3-pre.4195",
|
|
73
|
+
"@openmrs/esm-offline": "9.0.3-pre.4195",
|
|
74
|
+
"@openmrs/esm-react-utils": "9.0.3-pre.4195",
|
|
75
|
+
"@openmrs/esm-routes": "9.0.3-pre.4195",
|
|
76
|
+
"@openmrs/esm-state": "9.0.3-pre.4195",
|
|
77
|
+
"@openmrs/esm-styleguide": "9.0.3-pre.4195",
|
|
78
|
+
"@openmrs/esm-translations": "9.0.3-pre.4195",
|
|
79
|
+
"@openmrs/esm-utils": "9.0.3-pre.4195"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"dayjs": "1.x",
|
|
@@ -89,7 +89,7 @@
|
|
|
89
89
|
"swr": "2.x"
|
|
90
90
|
},
|
|
91
91
|
"devDependencies": {
|
|
92
|
-
"@openmrs/typedoc-plugin-file-categories": "9.0.3-pre.
|
|
92
|
+
"@openmrs/typedoc-plugin-file-categories": "9.0.3-pre.4195",
|
|
93
93
|
"@swc/cli": "0.8.0",
|
|
94
94
|
"@swc/core": "1.15.18",
|
|
95
95
|
"@vitest/coverage-v8": "^4.0.18",
|