@openmrs/esm-framework 11.0.1-pre.5825 → 11.0.1-pre.5836
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/variables/ActionMenuButton2.md +1 -1
- package/mock-jest.tsx +11 -5
- package/mock.tsx +11 -5
- package/package.json +19 -19
package/.turbo/turbo-build.log
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
|
|
5
5
|
> `const` **ActionMenuButton2**: `React.FC`\<`ActionMenuButtonProps2`\>
|
|
6
6
|
|
|
7
|
-
Defined in: [packages/framework/esm-styleguide/src/workspaces2/action-menu2/action-menu-button2.component.tsx:
|
|
7
|
+
Defined in: [packages/framework/esm-styleguide/src/workspaces2/action-menu2/action-menu-button2.component.tsx:82](https://github.com/openmrs/openmrs-esm-core/blob/main/packages/framework/esm-styleguide/src/workspaces2/action-menu2/action-menu-button2.component.tsx#L82)
|
|
8
8
|
|
|
9
9
|
The ActionMenuButton2 component is used to render a button in the action menu of a workspace group.
|
|
10
10
|
The button is associated with a specific workspace window, defined in routes.json of the app with the button.
|
package/mock-jest.tsx
CHANGED
|
@@ -116,11 +116,17 @@ export const usePatientPhoto = jest.fn(() => ({
|
|
|
116
116
|
error: null,
|
|
117
117
|
}));
|
|
118
118
|
|
|
119
|
-
export const ActionMenuButton2 = jest.fn(({ label, tagContent,
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
119
|
+
export const ActionMenuButton2 = jest.fn(({ icon: getIcon, label, tagContent, hidden, disabled }) => {
|
|
120
|
+
if (hidden?.([])) {
|
|
121
|
+
return null;
|
|
122
|
+
}
|
|
123
|
+
|
|
124
|
+
return (
|
|
125
|
+
<button disabled={disabled?.([])}>
|
|
126
|
+
{getIcon?.({ size: 16 })} {tagContent} {label}
|
|
127
|
+
</button>
|
|
128
|
+
);
|
|
129
|
+
});
|
|
124
130
|
export const ActionMenu = jest.fn(() => <div>Action Menu</div>);
|
|
125
131
|
export const ExportedWorkspace = jest.fn(() => <div>Exported Workspace</div>);
|
|
126
132
|
export const launchWorkspace2 = jest.fn();
|
package/mock.tsx
CHANGED
|
@@ -117,11 +117,17 @@ export const usePatientPhoto = vi.fn(() => ({
|
|
|
117
117
|
error: null,
|
|
118
118
|
}));
|
|
119
119
|
|
|
120
|
-
export const ActionMenuButton2 = vi.fn(({ label, tagContent,
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
120
|
+
export const ActionMenuButton2 = vi.fn(({ icon: getIcon, label, tagContent, hidden, disabled }) => {
|
|
121
|
+
if (hidden?.([])) {
|
|
122
|
+
return null;
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
return (
|
|
126
|
+
<button disabled={disabled?.([])}>
|
|
127
|
+
{getIcon?.({ size: 16 })} {tagContent} {label}
|
|
128
|
+
</button>
|
|
129
|
+
);
|
|
130
|
+
});
|
|
125
131
|
export const ActionMenu = vi.fn(() => <div>Action Menu</div>);
|
|
126
132
|
export const ExportedWorkspace = vi.fn(() => <div>Exported Workspace</div>);
|
|
127
133
|
export const launchWorkspace2 = vi.fn();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@openmrs/esm-framework",
|
|
3
|
-
"version": "11.0.1-pre.
|
|
3
|
+
"version": "11.0.1-pre.5836",
|
|
4
4
|
"license": "MPL-2.0",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"module": "dist/index.js",
|
|
@@ -60,23 +60,23 @@
|
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
62
|
"dependencies": {
|
|
63
|
-
"@openmrs/esm-api": "11.0.1-pre.
|
|
64
|
-
"@openmrs/esm-config": "11.0.1-pre.
|
|
65
|
-
"@openmrs/esm-context": "11.0.1-pre.
|
|
66
|
-
"@openmrs/esm-dynamic-loading": "11.0.1-pre.
|
|
67
|
-
"@openmrs/esm-emr-api": "11.0.1-pre.
|
|
68
|
-
"@openmrs/esm-error-handling": "11.0.1-pre.
|
|
69
|
-
"@openmrs/esm-expression-evaluator": "11.0.1-pre.
|
|
70
|
-
"@openmrs/esm-extensions": "11.0.1-pre.
|
|
71
|
-
"@openmrs/esm-feature-flags": "11.0.1-pre.
|
|
72
|
-
"@openmrs/esm-globals": "11.0.1-pre.
|
|
73
|
-
"@openmrs/esm-navigation": "11.0.1-pre.
|
|
74
|
-
"@openmrs/esm-react-utils": "11.0.1-pre.
|
|
75
|
-
"@openmrs/esm-routes": "11.0.1-pre.
|
|
76
|
-
"@openmrs/esm-state": "11.0.1-pre.
|
|
77
|
-
"@openmrs/esm-styleguide": "11.0.1-pre.
|
|
78
|
-
"@openmrs/esm-translations": "11.0.1-pre.
|
|
79
|
-
"@openmrs/esm-utils": "11.0.1-pre.
|
|
63
|
+
"@openmrs/esm-api": "11.0.1-pre.5836",
|
|
64
|
+
"@openmrs/esm-config": "11.0.1-pre.5836",
|
|
65
|
+
"@openmrs/esm-context": "11.0.1-pre.5836",
|
|
66
|
+
"@openmrs/esm-dynamic-loading": "11.0.1-pre.5836",
|
|
67
|
+
"@openmrs/esm-emr-api": "11.0.1-pre.5836",
|
|
68
|
+
"@openmrs/esm-error-handling": "11.0.1-pre.5836",
|
|
69
|
+
"@openmrs/esm-expression-evaluator": "11.0.1-pre.5836",
|
|
70
|
+
"@openmrs/esm-extensions": "11.0.1-pre.5836",
|
|
71
|
+
"@openmrs/esm-feature-flags": "11.0.1-pre.5836",
|
|
72
|
+
"@openmrs/esm-globals": "11.0.1-pre.5836",
|
|
73
|
+
"@openmrs/esm-navigation": "11.0.1-pre.5836",
|
|
74
|
+
"@openmrs/esm-react-utils": "11.0.1-pre.5836",
|
|
75
|
+
"@openmrs/esm-routes": "11.0.1-pre.5836",
|
|
76
|
+
"@openmrs/esm-state": "11.0.1-pre.5836",
|
|
77
|
+
"@openmrs/esm-styleguide": "11.0.1-pre.5836",
|
|
78
|
+
"@openmrs/esm-translations": "11.0.1-pre.5836",
|
|
79
|
+
"@openmrs/esm-utils": "11.0.1-pre.5836"
|
|
80
80
|
},
|
|
81
81
|
"peerDependencies": {
|
|
82
82
|
"dayjs": "1.x",
|
|
@@ -88,7 +88,7 @@
|
|
|
88
88
|
"swr": "2.x"
|
|
89
89
|
},
|
|
90
90
|
"devDependencies": {
|
|
91
|
-
"@openmrs/typedoc-plugin-file-categories": "11.0.1-pre.
|
|
91
|
+
"@openmrs/typedoc-plugin-file-categories": "11.0.1-pre.5836",
|
|
92
92
|
"@swc/cli": "0.8.1",
|
|
93
93
|
"@swc/core": "1.15.21",
|
|
94
94
|
"@vitest/coverage-v8": "^4.1.2",
|