@photonhealth/elements 0.13.1 → 0.13.3
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/README.md +1 -7
- package/dist/index.js +1090 -1000
- package/dist/index.mjs +36000 -29310
- package/dist/photon-dropdown/photon-dropdown.d.ts +18 -18
- package/dist/photon-medication-dropdown/photon-medication-dropdown.d.ts +17 -17
- package/dist/photon-medication-dropdown-full-width/photon-medication-dropdown-full-width.d.ts +17 -17
- package/dist/photon-medication-search/MedicationSearch.stories.d.ts +2 -2
- package/dist/photon-multirx-form/PrescribeWorkflow.stories.d.ts +1 -1
- package/dist/photon-multirx-form/components/AddPrescriptionCard.d.ts +7 -7
- package/dist/photon-multirx-form/components/DraftPrescriptionCard.d.ts +1 -1
- package/dist/photon-multirx-form/components/OrderCard.d.ts +1 -1
- package/dist/photon-multirx-form/components/PatientCard.d.ts +9 -9
- package/dist/photon-phone-input/PhoneInput.stories.d.ts +1 -1
- package/dist/photon-treatment-select/TreatmentSelect.stories.d.ts +2 -2
- package/dist/photon-update-patient-dialog/UpdatePatientDialog.stories.d.ts +2 -2
- package/dist/store.d.ts +3 -3
- package/dist/stores/catalog.d.ts +3 -3
- package/dist/stores/dispenseUnit.d.ts +2 -2
- package/dist/stores/form.d.ts +1 -1
- package/dist/stores/patient.d.ts +3 -3
- package/dist/stores/pharmacy.d.ts +4 -5
- package/package.json +1 -3
|
@@ -8,30 +8,30 @@ import '@shoelace-style/shoelace/dist/components/spinner/spinner';
|
|
|
8
8
|
export declare const PhotonDropdown: <T extends {
|
|
9
9
|
id: string;
|
|
10
10
|
}>(props: {
|
|
11
|
-
data: T
|
|
12
|
-
label?: string
|
|
11
|
+
data: Array<T>;
|
|
12
|
+
label?: string;
|
|
13
13
|
required: boolean;
|
|
14
|
-
placeholder?: string
|
|
15
|
-
forceLabelSize?: boolean
|
|
16
|
-
invalid?: boolean
|
|
17
|
-
onSearchChange?: (
|
|
14
|
+
placeholder?: string;
|
|
15
|
+
forceLabelSize?: boolean;
|
|
16
|
+
invalid?: boolean;
|
|
17
|
+
onSearchChange?: (search: string) => void;
|
|
18
18
|
displayAccessor: (selected: T, groupDisplay: boolean) => string | JSXElement;
|
|
19
|
-
disabled?: boolean
|
|
20
|
-
onOpen?: (
|
|
21
|
-
onHide?: (
|
|
19
|
+
disabled?: boolean;
|
|
20
|
+
onOpen?: () => void;
|
|
21
|
+
onHide?: () => void;
|
|
22
22
|
isLoading: boolean;
|
|
23
23
|
hasMore: boolean;
|
|
24
|
-
noDataMsg?: string
|
|
25
|
-
helpText?: string
|
|
26
|
-
fetchMore?: (
|
|
24
|
+
noDataMsg?: string;
|
|
25
|
+
helpText?: string;
|
|
26
|
+
fetchMore?: () => void;
|
|
27
27
|
selectedData?: T | undefined;
|
|
28
|
-
groups?: {
|
|
28
|
+
groups?: Array<{
|
|
29
29
|
label: string;
|
|
30
30
|
filter: (arr: T) => boolean | undefined;
|
|
31
|
-
}
|
|
32
|
-
showOverflow?: boolean
|
|
33
|
-
optional?: boolean
|
|
34
|
-
clearable?: boolean
|
|
31
|
+
}>;
|
|
32
|
+
showOverflow?: boolean;
|
|
33
|
+
optional?: boolean;
|
|
34
|
+
clearable?: boolean;
|
|
35
35
|
actionRef?: any;
|
|
36
|
-
onInputFocus?: (
|
|
36
|
+
onInputFocus?: () => void;
|
|
37
37
|
}) => import("solid-js").JSX.Element;
|
|
@@ -10,30 +10,30 @@ export declare const PhotonMedicationDropdown: <T extends {
|
|
|
10
10
|
id: string;
|
|
11
11
|
}>(props: {
|
|
12
12
|
data: Array<Treatment | PrescriptionTemplate | TreatmentOption>;
|
|
13
|
-
label?: string
|
|
13
|
+
label?: string;
|
|
14
14
|
required: boolean;
|
|
15
|
-
placeholder?: string
|
|
16
|
-
forceLabelSize?: boolean
|
|
17
|
-
invalid?: boolean
|
|
18
|
-
onSearchChange?: (
|
|
15
|
+
placeholder?: string;
|
|
16
|
+
forceLabelSize?: boolean;
|
|
17
|
+
invalid?: boolean;
|
|
18
|
+
onSearchChange?: (search: string) => void;
|
|
19
19
|
displayAccessor: (selected: T, groupDisplay: boolean) => string | JSXElement;
|
|
20
|
-
disabled?: boolean
|
|
21
|
-
onOpen?: (
|
|
22
|
-
onHide?: (
|
|
20
|
+
disabled?: boolean;
|
|
21
|
+
onOpen?: () => void;
|
|
22
|
+
onHide?: () => void;
|
|
23
23
|
isLoading: boolean;
|
|
24
24
|
hasMore: boolean;
|
|
25
|
-
noDataMsg?: string
|
|
26
|
-
helpText?: string
|
|
27
|
-
fetchMore?: (
|
|
25
|
+
noDataMsg?: string;
|
|
26
|
+
helpText?: string;
|
|
27
|
+
fetchMore?: () => void;
|
|
28
28
|
selectedData?: T | undefined;
|
|
29
|
-
groups?: {
|
|
29
|
+
groups?: Array<{
|
|
30
30
|
label: string;
|
|
31
31
|
filter: (arr: T) => boolean | undefined;
|
|
32
|
-
}
|
|
33
|
-
showOverflow?: boolean
|
|
34
|
-
optional?: boolean
|
|
35
|
-
clearable?: boolean
|
|
32
|
+
}>;
|
|
33
|
+
showOverflow?: boolean;
|
|
34
|
+
optional?: boolean;
|
|
35
|
+
clearable?: boolean;
|
|
36
36
|
actionRef?: any;
|
|
37
37
|
searchText: string;
|
|
38
|
-
onInputFocus?: (
|
|
38
|
+
onInputFocus?: () => void;
|
|
39
39
|
}) => import("solid-js").JSX.Element;
|
package/dist/photon-medication-dropdown-full-width/photon-medication-dropdown-full-width.d.ts
CHANGED
|
@@ -7,29 +7,29 @@ import '@shoelace-style/shoelace/dist/components/menu/menu';
|
|
|
7
7
|
import '@shoelace-style/shoelace/dist/components/spinner/spinner';
|
|
8
8
|
import { Treatment, PrescriptionTemplate, TreatmentOption } from '@photonhealth/sdk/dist/types';
|
|
9
9
|
export declare const PhotonMedicationDropdownFullWidth: <T extends Treatment | PrescriptionTemplate | TreatmentOption>(props: {
|
|
10
|
-
data: T
|
|
11
|
-
label?: string
|
|
12
|
-
required?: boolean
|
|
13
|
-
placeholder?: string
|
|
14
|
-
forceLabelSize?: boolean
|
|
15
|
-
invalid?: boolean
|
|
16
|
-
onSearchChange?: (
|
|
10
|
+
data: Array<T>;
|
|
11
|
+
label?: string;
|
|
12
|
+
required?: boolean;
|
|
13
|
+
placeholder?: string;
|
|
14
|
+
forceLabelSize?: boolean;
|
|
15
|
+
invalid?: boolean;
|
|
16
|
+
onSearchChange?: (search: string) => void;
|
|
17
17
|
displayAccessor: (selected: T, groupDisplay: boolean) => string | JSXElement;
|
|
18
|
-
disabled?: boolean
|
|
19
|
-
onOpen?: (
|
|
20
|
-
onHide?: (
|
|
18
|
+
disabled?: boolean;
|
|
19
|
+
onOpen?: () => void;
|
|
20
|
+
onHide?: () => void;
|
|
21
21
|
isLoading: boolean;
|
|
22
22
|
hasMore: boolean;
|
|
23
|
-
helpText?: string
|
|
24
|
-
fetchMore?: (
|
|
23
|
+
helpText?: string;
|
|
24
|
+
fetchMore?: () => void;
|
|
25
25
|
selectedData?: T | undefined;
|
|
26
|
-
groups?: {
|
|
26
|
+
groups?: Array<{
|
|
27
27
|
label: string;
|
|
28
28
|
filter: (arr: T) => boolean | undefined;
|
|
29
|
-
}
|
|
30
|
-
showOverflow?: boolean
|
|
31
|
-
optional?: boolean
|
|
32
|
-
clearable?: boolean
|
|
29
|
+
}>;
|
|
30
|
+
showOverflow?: boolean;
|
|
31
|
+
optional?: boolean;
|
|
32
|
+
clearable?: boolean;
|
|
33
33
|
actionRef?: any;
|
|
34
34
|
open: boolean;
|
|
35
35
|
searchText: string;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Story, Meta } from '@storybook/html';
|
|
2
2
|
import '../photon-client';
|
|
3
3
|
import '.';
|
|
4
|
-
declare const _default: Meta
|
|
4
|
+
declare const _default: Meta;
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const MedicationSearch: Story
|
|
6
|
+
export declare const MedicationSearch: Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Meta } from '@storybook/html';
|
|
2
2
|
import '../photon-client';
|
|
3
3
|
import '.';
|
|
4
|
-
declare const _default: Meta
|
|
4
|
+
declare const _default: Meta;
|
|
5
5
|
export default _default;
|
|
6
6
|
export declare const PrescribeWorkflow: () => HTMLDivElement;
|
|
@@ -1,18 +1,18 @@
|
|
|
1
1
|
import '@shoelace-style/shoelace/dist/components/icon/icon';
|
|
2
2
|
import '@shoelace-style/shoelace/dist/components/button/button';
|
|
3
|
-
import { ScreeningAlertType } from '@photonhealth/components
|
|
3
|
+
import { ScreeningAlertType } from '@photonhealth/components';
|
|
4
4
|
export declare const AddPrescriptionCard: (props: {
|
|
5
5
|
hideAddToTemplates: boolean;
|
|
6
6
|
actions: Record<string, (...args: any) => any>;
|
|
7
7
|
store: Record<string, any>;
|
|
8
|
-
weight?: number
|
|
9
|
-
weightUnit?: string
|
|
10
|
-
prefillNotes?: string
|
|
11
|
-
enableCombineAndDuplicate?: boolean
|
|
8
|
+
weight?: number;
|
|
9
|
+
weightUnit?: string;
|
|
10
|
+
prefillNotes?: string;
|
|
11
|
+
enableCombineAndDuplicate?: boolean;
|
|
12
12
|
screenDraftedPrescriptions: () => void;
|
|
13
13
|
draftedPrescriptionChanged: () => void;
|
|
14
14
|
screeningAlerts: ScreeningAlertType[];
|
|
15
|
-
catalogId?: string
|
|
16
|
-
allowOffCatalogSearch?: boolean
|
|
15
|
+
catalogId?: string;
|
|
16
|
+
allowOffCatalogSearch?: boolean;
|
|
17
17
|
enableOrder: boolean;
|
|
18
18
|
}) => import("solid-js").JSX.Element;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { TemplateOverrides } from '@photonhealth/components';
|
|
2
|
-
import { ScreeningAlertType } from '@photonhealth/components
|
|
2
|
+
import { ScreeningAlertType } from '@photonhealth/components';
|
|
3
3
|
export declare const DraftPrescriptionCard: (props: {
|
|
4
4
|
templateIds: string[];
|
|
5
5
|
templateOverrides: TemplateOverrides;
|
|
@@ -12,14 +12,14 @@ interface PatientCardStoreProp {
|
|
|
12
12
|
export declare const PatientCard: (props: {
|
|
13
13
|
store: PatientCardStoreProp;
|
|
14
14
|
actions: Record<string, (...args: any) => any>;
|
|
15
|
-
patientId?: string
|
|
16
|
-
client?: PhotonClientStore
|
|
17
|
-
enableOrder?: boolean
|
|
18
|
-
address?: Address
|
|
19
|
-
weight?: number
|
|
20
|
-
weightUnit?: string
|
|
21
|
-
enableMedHistory?: boolean
|
|
22
|
-
enableMedHistoryLinks?: boolean
|
|
23
|
-
hidePatientCard?: boolean
|
|
15
|
+
patientId?: string;
|
|
16
|
+
client?: PhotonClientStore;
|
|
17
|
+
enableOrder?: boolean;
|
|
18
|
+
address?: Address;
|
|
19
|
+
weight?: number;
|
|
20
|
+
weightUnit?: string;
|
|
21
|
+
enableMedHistory?: boolean;
|
|
22
|
+
enableMedHistoryLinks?: boolean;
|
|
23
|
+
hidePatientCard?: boolean;
|
|
24
24
|
}) => import("solid-js").JSX.Element;
|
|
25
25
|
export {};
|
|
@@ -2,6 +2,6 @@ import { Story, Meta } from '@storybook/html';
|
|
|
2
2
|
import '../photon-client';
|
|
3
3
|
import './photon-phone-input-component';
|
|
4
4
|
import type { PhoneInputProps } from './photon-phone-input-component';
|
|
5
|
-
declare const _default: Meta
|
|
5
|
+
declare const _default: Meta;
|
|
6
6
|
export default _default;
|
|
7
7
|
export declare const PhoneInput: Story<PhoneInputProps>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Story, Meta } from '@storybook/html';
|
|
2
2
|
import '../photon-client';
|
|
3
3
|
import '.';
|
|
4
|
-
declare const _default: Meta
|
|
4
|
+
declare const _default: Meta;
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const TreatmentSelect: Story
|
|
6
|
+
export declare const TreatmentSelect: Story;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Story, Meta } from '@storybook/html';
|
|
2
2
|
import '../photon-client';
|
|
3
3
|
import '.';
|
|
4
|
-
declare const _default: Meta
|
|
4
|
+
declare const _default: Meta;
|
|
5
5
|
export default _default;
|
|
6
|
-
export declare const UpdatePatientDialog: Story
|
|
6
|
+
export declare const UpdatePatientDialog: Story;
|
package/dist/store.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { PhotonClient } from '@photonhealth/sdk';
|
|
2
2
|
import { Catalog, DispenseUnit, MutationCreatePrescriptionArgs, Patient, Permission, Prescription, PrescriptionTemplate, Treatment } from '@photonhealth/sdk/dist/types';
|
|
3
|
-
import {
|
|
3
|
+
import { GraphQLFormattedError } from 'graphql';
|
|
4
4
|
export declare class PhotonClientStore {
|
|
5
5
|
readonly sdk: PhotonClient;
|
|
6
6
|
private setStore;
|
|
@@ -73,14 +73,14 @@ export declare class PhotonClientStore {
|
|
|
73
73
|
state: {
|
|
74
74
|
isLoading: boolean;
|
|
75
75
|
data?: Prescription;
|
|
76
|
-
errors:
|
|
76
|
+
errors: readonly GraphQLFormattedError[];
|
|
77
77
|
error?: any;
|
|
78
78
|
};
|
|
79
79
|
createPrescription: (args: MutationCreatePrescriptionArgs) => Promise<{
|
|
80
80
|
data: {
|
|
81
81
|
createPrescription: Prescription;
|
|
82
82
|
} | null | undefined;
|
|
83
|
-
errors: readonly
|
|
83
|
+
errors: readonly GraphQLFormattedError[] | undefined;
|
|
84
84
|
}>;
|
|
85
85
|
};
|
|
86
86
|
};
|
package/dist/stores/catalog.d.ts
CHANGED
|
@@ -1,16 +1,16 @@
|
|
|
1
1
|
import { PhotonClient } from '@photonhealth/sdk';
|
|
2
2
|
import { Catalog } from '@photonhealth/sdk/dist/types';
|
|
3
|
-
import {
|
|
3
|
+
import { GraphQLFormattedError } from 'graphql';
|
|
4
4
|
export declare const CatalogStore: {
|
|
5
5
|
store: {
|
|
6
6
|
catalogs: {
|
|
7
7
|
data: Catalog[];
|
|
8
|
-
errors: readonly
|
|
8
|
+
errors: readonly GraphQLFormattedError[];
|
|
9
9
|
isLoading: boolean;
|
|
10
10
|
};
|
|
11
11
|
catalog: {
|
|
12
12
|
data?: Catalog;
|
|
13
|
-
errors: readonly
|
|
13
|
+
errors: readonly GraphQLFormattedError[];
|
|
14
14
|
isLoading: boolean;
|
|
15
15
|
};
|
|
16
16
|
};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { PhotonClient } from '@photonhealth/sdk';
|
|
2
|
-
import {
|
|
2
|
+
import { GraphQLFormattedError } from 'graphql';
|
|
3
3
|
import { DispenseUnit } from '@photonhealth/sdk/dist/types';
|
|
4
4
|
export type StoreDispenseUnit = {
|
|
5
5
|
id: string;
|
|
@@ -8,7 +8,7 @@ export declare const DispenseUnitStore: {
|
|
|
8
8
|
store: {
|
|
9
9
|
dispenseUnits: {
|
|
10
10
|
data: StoreDispenseUnit[];
|
|
11
|
-
errors: readonly
|
|
11
|
+
errors: readonly GraphQLFormattedError[];
|
|
12
12
|
isLoading: boolean;
|
|
13
13
|
};
|
|
14
14
|
};
|
package/dist/stores/form.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export type FormError = {
|
|
|
6
6
|
export declare const createFormStore: (initalValue?: Record<string, any>) => {
|
|
7
7
|
store: Record<string, {
|
|
8
8
|
value: any;
|
|
9
|
-
error?: string
|
|
9
|
+
error?: string;
|
|
10
10
|
} | undefined>;
|
|
11
11
|
actions: {
|
|
12
12
|
updateFormValue: ({ key, value }: {
|
package/dist/stores/patient.d.ts
CHANGED
|
@@ -1,17 +1,17 @@
|
|
|
1
1
|
import { PhotonClient } from '@photonhealth/sdk';
|
|
2
2
|
import { Patient } from '@photonhealth/sdk/dist/types';
|
|
3
|
-
import {
|
|
3
|
+
import { GraphQLFormattedError } from 'graphql';
|
|
4
4
|
export declare const PatientStore: {
|
|
5
5
|
store: {
|
|
6
6
|
patients: {
|
|
7
7
|
data: Patient[];
|
|
8
|
-
errors: readonly
|
|
8
|
+
errors: readonly GraphQLFormattedError[];
|
|
9
9
|
isLoading: boolean;
|
|
10
10
|
finished: boolean;
|
|
11
11
|
};
|
|
12
12
|
selectedPatient: {
|
|
13
13
|
data?: Patient;
|
|
14
|
-
errors: readonly
|
|
14
|
+
errors: readonly GraphQLFormattedError[];
|
|
15
15
|
isLoading: boolean;
|
|
16
16
|
};
|
|
17
17
|
};
|
|
@@ -1,23 +1,22 @@
|
|
|
1
|
-
/// <reference types="@types/google.maps" />
|
|
2
1
|
import { PhotonClient } from '@photonhealth/sdk';
|
|
3
2
|
import { Pharmacy } from '@photonhealth/sdk/dist/types';
|
|
4
|
-
import {
|
|
3
|
+
import { GraphQLFormattedError } from 'graphql';
|
|
5
4
|
export declare const PharmacyStore: {
|
|
6
5
|
store: {
|
|
7
6
|
pharmacies: {
|
|
8
7
|
data: Pharmacy[];
|
|
9
8
|
address?: string;
|
|
10
|
-
errors: readonly
|
|
9
|
+
errors: readonly GraphQLFormattedError[];
|
|
11
10
|
isLoading: boolean;
|
|
12
11
|
};
|
|
13
12
|
selectedPharmacy: {
|
|
14
13
|
data?: Pharmacy;
|
|
15
|
-
errors: readonly
|
|
14
|
+
errors: readonly GraphQLFormattedError[];
|
|
16
15
|
isLoading: boolean;
|
|
17
16
|
};
|
|
18
17
|
preferredPharmacies: {
|
|
19
18
|
data?: Pharmacy[];
|
|
20
|
-
errors: readonly
|
|
19
|
+
errors: readonly GraphQLFormattedError[];
|
|
21
20
|
isLoading: boolean;
|
|
22
21
|
};
|
|
23
22
|
};
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@photonhealth/elements",
|
|
3
|
-
"version": "0.13.
|
|
3
|
+
"version": "0.13.3",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -47,8 +47,6 @@
|
|
|
47
47
|
"postcss": "^8.4.31",
|
|
48
48
|
"postcss-custom-media": "^8.0.2",
|
|
49
49
|
"postcss-jit-props": "^1.0.7",
|
|
50
|
-
"rimraf": "^3.0.2",
|
|
51
|
-
"vite": "^3.0.6",
|
|
52
50
|
"vite-plugin-solid": "^2.3.0",
|
|
53
51
|
"vite-plugin-static-copy": "^0.13.1"
|
|
54
52
|
},
|