@bahmni/widgets 0.0.1-dev.424 → 0.0.1-dev.425

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.
@@ -0,0 +1,7 @@
1
+ export declare const defaultProps: {
2
+ id: string;
3
+ label: string;
4
+ icon: string;
5
+ url: string;
6
+ };
7
+ //# sourceMappingURL=AppTileMocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"AppTileMocks.d.ts","sourceRoot":"","sources":["../../../../../src/moduleTiles/AppTile/__tests__/__mocks__/AppTileMocks.ts"],"names":[],"mappings":"AAAA,eAAO,MAAM,YAAY;;;;;CAKxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { AppTile } from './AppTile';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/moduleTiles/AppTile/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC"}
@@ -0,0 +1,25 @@
1
+ import { default as React } from 'react';
2
+ interface ModuleTileGridProps {
3
+ /** Extension point to read tiles from, e.g. `org.bahmni.home.dashboard`. */
4
+ extensionPointId: string;
5
+ /** Config app directory under `/bahmni_config/openmrs/apps`. */
6
+ appName?: string;
7
+ /** i18n keys, supplied by the host app so each app owns its own namespace. */
8
+ loadingLabelKey: string;
9
+ errorMessageKey: string;
10
+ emptyMessageKey: string;
11
+ /** Lets the host control outer spacing (e.g. offsetting a fixed header). */
12
+ className?: string;
13
+ testId?: string;
14
+ }
15
+ /**
16
+ * Renders the config-driven module tiles for an extension point.
17
+ *
18
+ * Shared by the home dashboard and the admin dashboard: both read
19
+ * `extension.json` from deployment config, filter by the user's privileges,
20
+ * and render the same tile design. The extension point and the config app
21
+ * are the only things that differ.
22
+ */
23
+ export declare const ModuleTileGrid: React.FC<ModuleTileGridProps>;
24
+ export {};
25
+ //# sourceMappingURL=ModuleTileGrid.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"ModuleTileGrid.d.ts","sourceRoot":"","sources":["../../../src/moduleTiles/ModuleTileGrid/ModuleTileGrid.tsx"],"names":[],"mappings":"AAOA,OAAO,KAAK,MAAM,OAAO,CAAC;AAM1B,UAAU,mBAAmB;IAC3B,4EAA4E;IAC5E,gBAAgB,EAAE,MAAM,CAAC;IACzB,gEAAgE;IAChE,OAAO,CAAC,EAAE,MAAM,CAAC;IACjB,8EAA8E;IAC9E,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,eAAe,EAAE,MAAM,CAAC;IACxB,4EAA4E;IAC5E,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB,MAAM,CAAC,EAAE,MAAM,CAAC;CACjB;AAED;;;;;;;GAOG;AACH,eAAO,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA2GxD,CAAC"}
@@ -0,0 +1,12 @@
1
+ import { Module } from '@bahmni/services';
2
+ export declare const mockModules: Module[];
3
+ export declare const mockEmptyModules: Module[];
4
+ export declare const mockPublicModule: Module;
5
+ export declare const mockAdminModules: Module[];
6
+ export declare const defaultProps: {
7
+ extensionPointId: string;
8
+ loadingLabelKey: string;
9
+ errorMessageKey: string;
10
+ emptyMessageKey: string;
11
+ };
12
+ //# sourceMappingURL=moduleTileGridMocks.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"moduleTileGridMocks.d.ts","sourceRoot":"","sources":["../../../../../src/moduleTiles/ModuleTileGrid/__tests__/__mocks__/moduleTileGridMocks.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,kBAAkB,CAAC;AAE1C,eAAO,MAAM,WAAW,EAAE,MAAM,EAkC/B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAAO,CAAC;AAE7C,eAAO,MAAM,gBAAgB,EAAE,MAQ9B,CAAC;AAEF,eAAO,MAAM,gBAAgB,EAAE,MAAM,EAYpC,CAAC;AAEF,eAAO,MAAM,YAAY;;;;;CAKxB,CAAC"}
@@ -0,0 +1,2 @@
1
+ export { ModuleTileGrid } from './ModuleTileGrid';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/moduleTiles/ModuleTileGrid/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC"}
@@ -0,0 +1,3 @@
1
+ /** Placeholder tiles shown while deployment config is being fetched. */
2
+ export declare const MODULE_TILES_SKELETON_COUNT = 6;
3
+ //# sourceMappingURL=constants.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"constants.d.ts","sourceRoot":"","sources":["../../src/moduleTiles/constants.ts"],"names":[],"mappings":"AAAA,wEAAwE;AACxE,eAAO,MAAM,2BAA2B,IAAI,CAAC"}
@@ -0,0 +1,4 @@
1
+ export { AppTile } from './AppTile';
2
+ export { ModuleTileGrid } from './ModuleTileGrid';
3
+ export { MODULE_TILES_SKELETON_COUNT } from './constants';
4
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/moduleTiles/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,WAAW,CAAC;AACpC,OAAO,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAC;AAClD,OAAO,EAAE,2BAA2B,EAAE,MAAM,aAAa,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.424",
3
+ "version": "0.0.1-dev.425",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",