pat-shared-components 0.1.0-beta.9 → 0.2.0-beta.1

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.
Files changed (39) hide show
  1. package/README.md +1 -50
  2. package/dist/index.es.js +27275 -37102
  3. package/dist/index.umd.js +92 -202
  4. package/dist/style.css +1 -1
  5. package/dist/types/components/Shared/CtaButton.vue.d.ts +31 -0
  6. package/dist/types/components/Shared/index.d.ts +1 -0
  7. package/dist/types/components/TestResult/BookAppointmentModal/BookAppointment/BookAppointment.vue.d.ts +26 -0
  8. package/dist/types/components/TestResult/{CtaButton.vue.d.ts → BookAppointmentModal/BookAppointment/DateItem.vue.d.ts} +3 -1
  9. package/dist/types/components/TestResult/BookAppointmentModal/BookAppointment/DayPartItem.vue.d.ts +24 -0
  10. package/dist/types/components/TestResult/BookAppointmentModal/BookAppointment/TimeSlotItem.vue.d.ts +30 -0
  11. package/dist/types/components/TestResult/BookAppointmentModal/BookAppointmentModal.vue.d.ts +27 -0
  12. package/dist/types/components/TestResult/CheckOthersButton.vue.d.ts +2 -0
  13. package/dist/types/components/TestResult/Desktop/ResultReady.vue.d.ts +1 -1
  14. package/dist/types/components/TestResult/Mobile/BookingTab/BookingDetail/BookingDetail.vue.d.ts +11 -2
  15. package/dist/types/components/TestResult/Mobile/BookingTab/BookingDetail/BookingNumber.vue.d.ts +22 -1
  16. package/dist/types/components/TestResult/Mobile/BookingTab/BookingDetail/BookingPrescription.vue.d.ts +22 -1
  17. package/dist/types/components/TestResult/Mobile/BookingTab/BookingDetail/PatientInfo.vue.d.ts +22 -1
  18. package/dist/types/components/TestResult/Mobile/BookingTab/BookingList.vue.d.ts +9 -2
  19. package/dist/types/components/TestResult/Mobile/MyProfile.vue.d.ts +13 -4
  20. package/dist/types/components/TestResult/Mobile/ResultTab/TestResultDetail/ResultOverview.vue.d.ts +1 -1
  21. package/dist/types/components/TestResult/Mobile/ResultTab/TestResultDetail/ResultReadyV2.vue.d.ts +1 -1
  22. package/dist/types/components/TestResult/Mobile/ResultTab/TestResultDetail/TestResultDetail.vue.d.ts +23 -12
  23. package/dist/types/components/TestResult/Mobile/ResultTab/TestResultList.vue.d.ts +13 -3
  24. package/dist/types/components/TestResult/PatientFullInfo.vue.d.ts +1 -1
  25. package/dist/types/components/TestResult/PatientShortInfo.vue.d.ts +2 -9
  26. package/dist/types/components/TestResult/{TestResultHistoryDetail.vue.d.ts → TestResultHistoryDetailModal/TestResultHistoryDetail.vue.d.ts} +0 -0
  27. package/dist/types/components/TestResult/{TestResultHistoryDetailModal.vue.d.ts → TestResultHistoryDetailModal/TestResultHistoryDetailModal.vue.d.ts} +1 -2
  28. package/dist/types/components/TestResult/index.d.ts +6 -4
  29. package/dist/types/constants/Common.d.ts +13 -0
  30. package/dist/types/constants/Enums.d.ts +61 -0
  31. package/dist/types/index.d.ts +7 -4
  32. package/dist/types/plugin.d.ts +8 -0
  33. package/dist/types/types/Appointment.d.ts +14 -0
  34. package/dist/types/types/Booking.d.ts +1 -2
  35. package/dist/types/types/TestResult.d.ts +60 -1
  36. package/dist/types/types/TestResultHistory.d.ts +2 -1
  37. package/dist/types/types/index.d.ts +1 -0
  38. package/package.json +6 -7
  39. package/dist/types/components/TestResult/CheckAnotherResultButton.vue.d.ts +0 -4
@@ -0,0 +1,31 @@
1
+ /**
2
+ * Props
3
+ */
4
+ export interface Props {
5
+ url: string;
6
+ title: string;
7
+ subtitle: string;
8
+ hideIcon?: boolean;
9
+ }
10
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ hideIcon: boolean;
12
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
+ hideIcon: boolean;
14
+ }>>>, {
15
+ hideIcon: boolean;
16
+ }>;
17
+ export default _default;
18
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
19
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
20
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
21
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
22
+ } : {
23
+ type: import('vue').PropType<T[K]>;
24
+ required: true;
25
+ };
26
+ };
27
+ declare type __VLS_WithDefaults<P, D> = {
28
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
29
+ default: D[K];
30
+ } : P[K];
31
+ };
@@ -1,2 +1,3 @@
1
1
  export { default as LoadingSkeleton } from './LoadingSkeleton.vue';
2
2
  export { default as NoItemsFound } from './NoItemsFound.vue';
3
+ export { default as CtaButton } from './CtaButton.vue';
@@ -0,0 +1,26 @@
1
+ /**
2
+ * Props
3
+ */
4
+ export interface Props {
5
+ timeSlots: string[];
6
+ }
7
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {
8
+ resetAll: () => void;
9
+ }, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "book"[], "book", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & {
10
+ onBook?: (...args: any[]) => any;
11
+ }, {}>;
12
+ export default _default;
13
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
14
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
15
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
16
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
17
+ } : {
18
+ type: import('vue').PropType<T[K]>;
19
+ required: true;
20
+ };
21
+ };
22
+ declare type __VLS_WithDefaults<P, D> = {
23
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
24
+ default: D[K];
25
+ } : P[K];
26
+ };
@@ -2,7 +2,9 @@
2
2
  * Props
3
3
  */
4
4
  export interface Props {
5
- url: string;
5
+ value: Date;
6
+ disabled: boolean;
7
+ selected: boolean;
6
8
  }
7
9
  declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>>, {}>;
8
10
  export default _default;
@@ -0,0 +1,24 @@
1
+ /**
2
+ * Props
3
+ */
4
+ export interface Props {
5
+ text: string;
6
+ disabled: boolean;
7
+ selected: boolean;
8
+ }
9
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>>, {}>;
10
+ export default _default;
11
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
12
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
13
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
14
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
15
+ } : {
16
+ type: import('vue').PropType<T[K]>;
17
+ required: true;
18
+ };
19
+ };
20
+ declare type __VLS_WithDefaults<P, D> = {
21
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
22
+ default: D[K];
23
+ } : P[K];
24
+ };
@@ -0,0 +1,30 @@
1
+ /**
2
+ * Props
3
+ */
4
+ export interface Props {
5
+ timeSlot: Date;
6
+ selected: boolean;
7
+ icon?: string;
8
+ }
9
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
10
+ icon: string;
11
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
12
+ icon: string;
13
+ }>>>, {
14
+ icon: string;
15
+ }>;
16
+ export default _default;
17
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
19
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
20
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
21
+ } : {
22
+ type: import('vue').PropType<T[K]>;
23
+ required: true;
24
+ };
25
+ };
26
+ declare type __VLS_WithDefaults<P, D> = {
27
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
28
+ default: D[K];
29
+ } : P[K];
30
+ };
@@ -0,0 +1,27 @@
1
+ /**
2
+ * Props
3
+ */
4
+ export interface Props {
5
+ modelValue: boolean;
6
+ timeSlots: string[];
7
+ loading: boolean;
8
+ }
9
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("book" | "update:modelValue")[], "book" | "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & {
10
+ onBook?: (...args: any[]) => any;
11
+ "onUpdate:modelValue"?: (...args: any[]) => any;
12
+ }, {}>;
13
+ export default _default;
14
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
16
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
17
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
18
+ } : {
19
+ type: import('vue').PropType<T[K]>;
20
+ required: true;
21
+ };
22
+ };
23
+ declare type __VLS_WithDefaults<P, D> = {
24
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
25
+ default: D[K];
26
+ } : P[K];
27
+ };
@@ -0,0 +1,2 @@
1
+ declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
2
+ export default _default;
@@ -1,4 +1,4 @@
1
- import { type TestResult } from 'diag-shared-business-components';
1
+ import type { TestResult } from '@/types';
2
2
  export interface Props {
3
3
  testResult: TestResult;
4
4
  }
@@ -4,10 +4,19 @@ import type { Booking } from '@/types';
4
4
  */
5
5
  export interface Props {
6
6
  bookingDetail: Booking;
7
+ loading: boolean;
8
+ hideBackToList?: boolean;
7
9
  }
8
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "click:find-branch"[], "click:find-branch", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & {
10
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
11
+ hideBackToList: boolean;
12
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("click:find-branch" | "switch-to-list")[], "click:find-branch" | "switch-to-list", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
+ hideBackToList: boolean;
14
+ }>>> & {
9
15
  "onClick:find-branch"?: (...args: any[]) => any;
10
- }, {}>;
16
+ "onSwitch-to-list"?: (...args: any[]) => any;
17
+ }, {
18
+ hideBackToList: boolean;
19
+ }>;
11
20
  export default _default;
12
21
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
22
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,2 +1,23 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ import type { Booking } from '@/types';
2
+ /**
3
+ * Props
4
+ */
5
+ export interface Props {
6
+ bookingDetail: Booking;
7
+ }
8
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>>, {}>;
2
9
  export default _default;
10
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
19
+ declare type __VLS_WithDefaults<P, D> = {
20
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
21
+ default: D[K];
22
+ } : P[K];
23
+ };
@@ -1,2 +1,23 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ import type { Booking } from '@/types';
2
+ /**
3
+ * Props
4
+ */
5
+ export interface Props {
6
+ bookingDetail: Booking;
7
+ }
8
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>>, {}>;
2
9
  export default _default;
10
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
19
+ declare type __VLS_WithDefaults<P, D> = {
20
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
21
+ default: D[K];
22
+ } : P[K];
23
+ };
@@ -1,2 +1,23 @@
1
- declare const _default: import("vue").DefineComponent<{}, {}, {}, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<{}>>, {}>;
1
+ import type { Booking } from '@/types';
2
+ /**
3
+ * Props
4
+ */
5
+ export interface Props {
6
+ bookingDetail: Booking;
7
+ }
8
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>>, {}>;
2
9
  export default _default;
10
+ declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
11
+ declare type __VLS_TypePropsToRuntimeProps<T> = {
12
+ [K in keyof T]-?: {} extends Pick<T, K> ? {
13
+ type: import('vue').PropType<__VLS_NonUndefinedable<T[K]>>;
14
+ } : {
15
+ type: import('vue').PropType<T[K]>;
16
+ required: true;
17
+ };
18
+ };
19
+ declare type __VLS_WithDefaults<P, D> = {
20
+ [K in keyof Pick<P, keyof P>]: K extends keyof D ? P[K] & {
21
+ default: D[K];
22
+ } : P[K];
23
+ };
@@ -7,11 +7,18 @@ export interface Props {
7
7
  loading: boolean;
8
8
  skeletonCount: number;
9
9
  hideLoadMore: boolean;
10
+ bookingButtonUrl?: string;
10
11
  }
11
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("switch-to-detail" | "click:load-more")[], "switch-to-detail" | "click:load-more", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & {
12
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
+ bookingButtonUrl: string;
14
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("switch-to-detail" | "click:load-more")[], "switch-to-detail" | "click:load-more", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
15
+ bookingButtonUrl: string;
16
+ }>>> & {
12
17
  "onSwitch-to-detail"?: (...args: any[]) => any;
13
18
  "onClick:load-more"?: (...args: any[]) => any;
14
- }, {}>;
19
+ }, {
20
+ bookingButtonUrl: string;
21
+ }>;
15
22
  export default _default;
16
23
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
17
24
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,13 +1,22 @@
1
- import { type TestResult } from 'diag-shared-business-components';
1
+ import { Gender } from '@/constants/Enums';
2
2
  /**
3
3
  * Props
4
4
  */
5
5
  export interface Props {
6
- testResult: TestResult;
6
+ fullName: string;
7
+ dob: string;
8
+ gender: Gender;
9
+ phoneNumber: string;
7
10
  loading: boolean;
8
- ctaButtonUrl: string;
11
+ ctaButtonUrl?: string;
9
12
  }
10
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>>, {}>;
13
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
+ ctaButtonUrl: string;
15
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
16
+ ctaButtonUrl: string;
17
+ }>>>, {
18
+ ctaButtonUrl: string;
19
+ }>;
11
20
  export default _default;
12
21
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
13
22
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,4 +1,4 @@
1
- import type { TestResultOverview } from 'diag-shared-business-components';
1
+ import type { TestResultOverview } from '@/types';
2
2
  /**
3
3
  * Props
4
4
  */
@@ -1,4 +1,4 @@
1
- import { type TestResult } from 'diag-shared-business-components';
1
+ import type { TestResult } from '@/types';
2
2
  /**
3
3
  * Props
4
4
  */
@@ -1,4 +1,4 @@
1
- import { type TestResult } from 'diag-shared-business-components';
1
+ import type { TestResult } from '@/types';
2
2
  /**
3
3
  * Props
4
4
  */
@@ -6,21 +6,27 @@ export interface Props {
6
6
  testResult: TestResult;
7
7
  loading: boolean;
8
8
  ctaButtonUrl: string;
9
- pdf?: string;
10
- attachment?: string;
9
+ hidePatientInfo?: boolean;
10
+ hideCheckOtherButton?: boolean;
11
+ hideViewAllButton?: boolean;
11
12
  }
12
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
13
- pdf: string;
14
- attachment: string;
15
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("switch-to-list" | "click:show-trend")[], "switch-to-list" | "click:show-trend", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
16
- pdf: string;
17
- attachment: string;
13
+ declare const _default: __VLS_WithTemplateSlots<import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
+ hidePatientInfo: boolean;
15
+ hideCheckOtherButton: boolean;
16
+ hideViewAllButton: boolean;
17
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("switch-to-list" | "click:check-others")[], "switch-to-list" | "click:check-others", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
18
+ hidePatientInfo: boolean;
19
+ hideCheckOtherButton: boolean;
20
+ hideViewAllButton: boolean;
18
21
  }>>> & {
19
22
  "onSwitch-to-list"?: (...args: any[]) => any;
20
- "onClick:show-trend"?: (...args: any[]) => any;
23
+ "onClick:check-others"?: (...args: any[]) => any;
21
24
  }, {
22
- pdf: string;
23
- attachment: string;
25
+ hidePatientInfo: boolean;
26
+ hideCheckOtherButton: boolean;
27
+ hideViewAllButton: boolean;
28
+ }>, {
29
+ default: (_: {}) => any;
24
30
  }>;
25
31
  export default _default;
26
32
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -37,3 +43,8 @@ declare type __VLS_WithDefaults<P, D> = {
37
43
  default: D[K];
38
44
  } : P[K];
39
45
  };
46
+ declare type __VLS_WithTemplateSlots<T, S> = T & {
47
+ new (): {
48
+ $slots: S;
49
+ };
50
+ };
@@ -6,13 +6,23 @@ export interface Props {
6
6
  items: TestResultCompact[];
7
7
  loading: boolean;
8
8
  skeletonCount: number;
9
- ctaButtonUrl: string;
9
+ ctaButtonUrl?: string;
10
10
  hideLoadMore: boolean;
11
+ bookingButtonUrl?: string;
11
12
  }
12
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("switch-to-detail" | "click:load-more")[], "switch-to-detail" | "click:load-more", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & {
13
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
14
+ ctaButtonUrl: string;
15
+ bookingButtonUrl: string;
16
+ }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("switch-to-detail" | "click:load-more")[], "switch-to-detail" | "click:load-more", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
17
+ ctaButtonUrl: string;
18
+ bookingButtonUrl: string;
19
+ }>>> & {
13
20
  "onSwitch-to-detail"?: (...args: any[]) => any;
14
21
  "onClick:load-more"?: (...args: any[]) => any;
15
- }, {}>;
22
+ }, {
23
+ bookingButtonUrl: string;
24
+ ctaButtonUrl: string;
25
+ }>;
16
26
  export default _default;
17
27
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
18
28
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -1,4 +1,4 @@
1
- import type { TestResult } from 'diag-shared-business-components';
1
+ import type { TestResult } from '@/types';
2
2
  export interface Props {
3
3
  isGreeting?: boolean;
4
4
  testResult: TestResult;
@@ -1,15 +1,8 @@
1
- import { type TestResult } from 'diag-shared-business-components';
1
+ import type { TestResult } from '@/types';
2
2
  export interface Props {
3
3
  testResult: TestResult;
4
- hasTooltip?: boolean;
5
4
  }
6
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
7
- hasTooltip: boolean;
8
- }>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {
9
- hasTooltip: boolean;
10
- }>>>, {
11
- hasTooltip: boolean;
12
- }>;
5
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, {}, string, import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>>, {}>;
13
6
  export default _default;
14
7
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
15
8
  declare type __VLS_TypePropsToRuntimeProps<T> = {
@@ -7,9 +7,8 @@ export interface Props {
7
7
  historyData: TestResultHistory;
8
8
  loading: boolean;
9
9
  }
10
- declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, ("update:modelValue" | "no_save")[], "update:modelValue" | "no_save", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & {
10
+ declare const _default: import("vue").DefineComponent<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>, {}, unknown, {}, {}, import("vue").ComponentOptionsMixin, import("vue").ComponentOptionsMixin, "update:modelValue"[], "update:modelValue", import("vue").VNodeProps & import("vue").AllowedComponentProps & import("vue").ComponentCustomProps, Readonly<import("vue").ExtractPropTypes<__VLS_WithDefaults<__VLS_TypePropsToRuntimeProps<Props>, {}>>> & {
11
11
  "onUpdate:modelValue"?: (...args: any[]) => any;
12
- onNo_save?: (...args: any[]) => any;
13
12
  }, {}>;
14
13
  export default _default;
15
14
  declare type __VLS_NonUndefinedable<T> = T extends undefined ? never : T;
@@ -1,16 +1,18 @@
1
1
  export { default as CallUsFilledButton } from './CallUsFilledButton.vue';
2
- export { default as CheckAnotherResultButton } from './CheckAnotherResultButton.vue';
3
- export { default as CtaButton } from './CtaButton.vue';
2
+ export { default as CheckOthersButton } from './CheckOthersButton.vue';
4
3
  export { default as PatientFullInfo } from './PatientFullInfo.vue';
5
4
  export { default as PatientShortInfo } from './PatientShortInfo.vue';
6
5
  export { default as PatientShortInfoV2 } from './PatientShortInfoV2.vue';
7
6
  export { default as PendingResult } from './PendingResult.vue';
8
7
  export { default as RejectedResult } from './RejectedResult.vue';
9
- export { default as TestResultHistoryDetail } from './TestResultHistoryDetail.vue';
10
- export { default as TestResultHistoryDetailModal } from './TestResultHistoryDetailModal.vue';
8
+ export { default as TestResultHistoryDetail } from './TestResultHistoryDetailModal/TestResultHistoryDetail.vue';
9
+ export { default as TestResultHistoryDetailModal } from './TestResultHistoryDetailModal/TestResultHistoryDetailModal.vue';
10
+ export { default as BookAppointment } from './BookAppointmentModal/BookAppointment/BookAppointment.vue';
11
+ export { default as BookAppointmentModal } from './BookAppointmentModal/BookAppointmentModal.vue';
11
12
  export { default as BookingDetail } from './Mobile/BookingTab/BookingDetail/BookingDetail.vue';
12
13
  export { default as BookingList } from './Mobile/BookingTab/BookingList.vue';
13
14
  export { default as BookingListItem } from './Mobile/BookingTab/BookingListItem.vue';
15
+ export { default as TestResultDetail } from './Mobile/ResultTab/TestResultDetail/TestResultDetail.vue';
14
16
  export { default as TestResultList } from './Mobile/ResultTab/TestResultList.vue';
15
17
  export { default as TestResultListItem } from './Mobile/ResultTab/TestResultListItem.vue';
16
18
  export { default as MyProfile } from './Mobile/MyProfile.vue';
@@ -1,2 +1,15 @@
1
1
  export declare const SupportPhone = "19001717";
2
2
  export declare const SupportEmail = "customersupport@diag.vn";
3
+ export declare enum LsKey {
4
+ Locale = "DiagPatientPortalLocale"
5
+ }
6
+ export declare const EventBusName: {
7
+ Container: string;
8
+ MicroTestResult: string;
9
+ };
10
+ export declare const EventType: {
11
+ ChangeRoute: string;
12
+ };
13
+ export declare const CookieName: {
14
+ AccessToken: string;
15
+ };
@@ -1,3 +1,6 @@
1
+ /**
2
+ * Booking
3
+ */
1
4
  export declare enum BookingStatus {
2
5
  Pending = "pending",
3
6
  Canceled = "canceled",
@@ -8,3 +11,61 @@ export declare enum PaymentStatus {
8
11
  Refunded = "refunded",
9
12
  Unpaid = "unpaid"
10
13
  }
14
+ /**
15
+ * Test Result
16
+ */
17
+ export declare enum TestResultStatus {
18
+ Ordered = "ordered",
19
+ Ready = "ready",
20
+ PartiallyComplete = "partial",
21
+ InProgress = "in-progress",
22
+ Canceled = "canceled",
23
+ Rejected = "rejected"
24
+ }
25
+ export declare enum TestResultTemplate {
26
+ Default = "default",
27
+ GXNT1 = "GXNT1",
28
+ HPV = "HPV",
29
+ STD = "STD"
30
+ }
31
+ export declare enum TestResultConclusion {
32
+ Abnormal = "A",
33
+ LowerAbnormal = "L",
34
+ Panic = "P",
35
+ Normal = "N"
36
+ }
37
+ export declare enum TestStatus {
38
+ SampleCollected = "SampleCollected",
39
+ SampleReceived = "SampleReceived",
40
+ YetToTransfer = "Yet to Transfer",
41
+ Completed = "Completed",
42
+ Cancel = "Cancel",
43
+ Approve = "Approve"
44
+ }
45
+ export declare enum ResultType {
46
+ Numberic = "numeric",
47
+ Text = "text",
48
+ XML = "XML"
49
+ }
50
+ export declare enum ResultSegmentNormalType {
51
+ Normal = "normal",
52
+ Attention = "attention",
53
+ Critical = "critical"
54
+ }
55
+ export declare enum ResultSegmentValueOPR {
56
+ GreaterThan = ">",
57
+ GreaterThanOrEqualTo = "\u2265",
58
+ LessThan = "<",
59
+ LessThanOrEqualTo = "\u2264",
60
+ BTW = "btw",
61
+ Txt = "txt"
62
+ }
63
+ export declare enum Gender {
64
+ Male = "Male",
65
+ Female = "Female"
66
+ }
67
+ export declare enum DayPartType {
68
+ Morning = "morning",
69
+ Afternoon = "afternoon",
70
+ Evening = "evening"
71
+ }
@@ -1,9 +1,12 @@
1
- import 'pat-design-system/style.css';
2
- import 'diag-shared-business-components/dist/index.css';
1
+ import './assets/styles/main.scss';
3
2
  export * from './types';
4
3
  export * from './components/Shared';
5
4
  export * from './components/TestResult';
6
- import './assets/styles/main.scss';
7
- import './assets/icons/style.css';
5
+ export * from './constants/Common';
6
+ export * from './constants/Enums';
7
+ /**
8
+ * Localizations
9
+ */
8
10
  export { default as vi } from './locales/vi.json';
9
11
  export { default as en } from './locales/en.json';
12
+ export { default as default } from './plugin';
@@ -0,0 +1,8 @@
1
+ import type { App } from 'vue';
2
+ import type { I18n } from 'vue-i18n';
3
+ declare const _default: {
4
+ install: (app: App<Element>, options: {
5
+ i18n: I18n;
6
+ }) => void;
7
+ };
8
+ export default _default;
@@ -0,0 +1,14 @@
1
+ import type { DayPartType } from '@/constants/Enums';
2
+ export interface ApptDateOption {
3
+ value: any;
4
+ disabled: boolean;
5
+ dayParts: ApptDayPart[];
6
+ }
7
+ export interface ApptDayPart {
8
+ text: string;
9
+ value: DayPartType;
10
+ start: string;
11
+ end: string;
12
+ timeSlots: Date[];
13
+ disabled: boolean;
14
+ }
@@ -1,5 +1,4 @@
1
- import type { Gender } from 'diag-shared-business-components';
2
- import type { BookingStatus, PaymentStatus } from '@/constants/Enums';
1
+ import type { BookingStatus, Gender, PaymentStatus } from '@/constants/Enums';
3
2
  export interface BookingCompact {
4
3
  booking_code: string;
5
4
  booking_status: BookingStatus;