@bahmni/widgets 0.0.1-dev.53 → 0.0.1-dev.55

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,10 @@
1
+ import { ComponentType, LazyExoticComponent } from 'react';
2
+ import { WidgetConfig, WidgetProps } from './model';
3
+ export declare const registerWidget: (config: WidgetConfig) => void;
4
+ export declare const getWidget: (type: string) => LazyExoticComponent<ComponentType<WidgetProps>> | undefined;
5
+ export declare const getWidgetConfig: (type: string) => WidgetConfig | undefined;
6
+ export declare const hasWidget: (type: string) => boolean;
7
+ export declare const getAllWidgetTypes: () => string[];
8
+ export declare const getAllWidgetConfigs: () => WidgetConfig[];
9
+ export declare const resetWidgetRegistry: () => void;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/registry/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAC3D,OAAO,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,SAAS,CAAC;AAsEpD,eAAO,MAAM,cAAc,GAAI,QAAQ,YAAY,KAAG,IAErD,CAAC;AAEF,eAAO,MAAM,SAAS,GACpB,MAAM,MAAM,KACX,mBAAmB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,GAAG,SAEpD,CAAC;AAEF,eAAO,MAAM,eAAe,GAAI,MAAM,MAAM,KAAG,YAAY,GAAG,SAE7D,CAAC;AAEF,eAAO,MAAM,SAAS,GAAI,MAAM,MAAM,KAAG,OAExC,CAAC;AAEF,eAAO,MAAM,iBAAiB,QAAO,MAAM,EAE1C,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,YAAY,EAElD,CAAC;AAEF,eAAO,MAAM,mBAAmB,QAAO,IAEtC,CAAC"}
@@ -0,0 +1,9 @@
1
+ import { ComponentType, LazyExoticComponent } from 'react';
2
+ export interface WidgetProps {
3
+ config?: Record<string, unknown>;
4
+ }
5
+ export interface WidgetConfig {
6
+ type: string;
7
+ component: LazyExoticComponent<ComponentType<WidgetProps>>;
8
+ }
9
+ //# sourceMappingURL=model.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"model.d.ts","sourceRoot":"","sources":["../../src/registry/model.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,mBAAmB,EAAE,MAAM,OAAO,CAAC;AAE3D,MAAM,WAAW,WAAW;IAC1B,MAAM,CAAC,EAAE,MAAM,CAAC,MAAM,EAAE,OAAO,CAAC,CAAC;CAClC;AACD,MAAM,WAAW,YAAY;IAC3B,IAAI,EAAE,MAAM,CAAC;IACb,SAAS,EAAE,mBAAmB,CAAC,aAAa,CAAC,WAAW,CAAC,CAAC,CAAC;CAC5D"}
@@ -0,0 +1,3 @@
1
+ import { WidgetConfig } from './model';
2
+ export declare const builtInWidgets: WidgetConfig[];
3
+ //# sourceMappingURL=widgetMap.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"widgetMap.d.ts","sourceRoot":"","sources":["../../src/registry/widgetMap.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,YAAY,EAAE,MAAM,SAAS,CAAC;AAEvC,eAAO,MAAM,cAAc,EAAE,YAAY,EA+BxC,CAAC"}
@@ -1,9 +1,12 @@
1
1
  import { default as React } from 'react';
2
- interface VitalFlowSheetProps {
2
+ interface VitalFlowSheetConfig {
3
3
  latestCount: number;
4
4
  obsConcepts: string[];
5
5
  groupBy?: string;
6
6
  }
7
+ interface VitalFlowSheetProps {
8
+ config: VitalFlowSheetConfig;
9
+ }
7
10
  declare const VitalFlowSheet: React.FC<VitalFlowSheetProps>;
8
11
  export default VitalFlowSheet;
9
12
  //# sourceMappingURL=VitalFlowSheet.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"VitalFlowSheet.d.ts","sourceRoot":"","sources":["../../src/vitalFlowSheet/VitalFlowSheet.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAYvC,UAAU,mBAAmB;IAC3B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AA0BD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA+NjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"VitalFlowSheet.d.ts","sourceRoot":"","sources":["../../src/vitalFlowSheet/VitalFlowSheet.tsx"],"names":[],"mappings":"AAMA,OAAO,KAAkB,MAAM,OAAO,CAAC;AAavC,UAAU,oBAAoB;IAC5B,WAAW,EAAE,MAAM,CAAC;IACpB,WAAW,EAAE,MAAM,EAAE,CAAC;IACtB,OAAO,CAAC,EAAE,MAAM,CAAC;CAClB;AAED,UAAU,mBAAmB;IAC3B,MAAM,EAAE,oBAAoB,CAAC;CAC9B;AA0BD,QAAA,MAAM,cAAc,EAAE,KAAK,CAAC,EAAE,CAAC,mBAAmB,CA6NjD,CAAC;AAEF,eAAe,cAAc,CAAC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@bahmni/widgets",
3
- "version": "0.0.1-dev.53",
3
+ "version": "0.0.1-dev.55",
4
4
  "type": "module",
5
5
  "main": "./dist/index.js",
6
6
  "module": "./dist/index.js",