@carefirst/library 8.0.1 → 8.1.0
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/package.json
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Carefirst Shared Global Interfaces
|
|
3
|
-
*
|
|
4
3
|
* @file carefirst.shared.interfaces
|
|
5
|
-
* @description
|
|
6
|
-
* @author Jacques Coetzee
|
|
7
|
-
* @since 2021 - 11 - 16
|
|
4
|
+
* @description Interfaces for various globally shared data sets used in Carefirst
|
|
8
5
|
*/
|
|
9
6
|
|
|
10
|
-
|
|
11
|
-
* @name globalVariablesC
|
|
7
|
+
/** =============================================
|
|
12
8
|
* @description Globally accessible variables used throughout various parts
|
|
13
9
|
*/
|
|
14
10
|
export const globalVariablesC = {
|
|
@@ -36,8 +32,7 @@ export const globalVariablesC = {
|
|
|
36
32
|
fnbAccountTypesC: ['0', '1', '2', '3', '4', '6', 'D', 'S', 'F', 'W'],
|
|
37
33
|
} as const;
|
|
38
34
|
|
|
39
|
-
|
|
40
|
-
* @name GlobalTypesT
|
|
35
|
+
/** =============================================
|
|
41
36
|
* @description Globally accessible types used throughout various parts
|
|
42
37
|
*/
|
|
43
38
|
export interface GlobalTypesT {
|
|
@@ -60,9 +55,8 @@ export interface GlobalTypesT {
|
|
|
60
55
|
fnbAccountTypesT: (typeof globalVariablesC.fnbAccountTypesC)[number];
|
|
61
56
|
}
|
|
62
57
|
|
|
63
|
-
|
|
64
|
-
* @
|
|
65
|
-
* @description Available identifiers as defined in DB
|
|
58
|
+
/** =============================================
|
|
59
|
+
* @description Available identifiers as defined in DB
|
|
66
60
|
*/
|
|
67
61
|
// eslint-disable-next-line @typescript-eslint/no-unused-vars
|
|
68
62
|
const availableUserRoleIdentifiersC = [
|
|
@@ -94,16 +88,18 @@ const availableUserRoleIdentifiersC = [
|
|
|
94
88
|
'routeToolLMSErrors',
|
|
95
89
|
'routeDashboardLMSOverview',
|
|
96
90
|
] as const;
|
|
91
|
+
|
|
92
|
+
/** =============================================
|
|
93
|
+
* @description Access identifiers type
|
|
94
|
+
*/
|
|
97
95
|
export type AccessIdentifiersT = (typeof availableUserRoleIdentifiersC)[number];
|
|
98
96
|
|
|
99
|
-
|
|
100
|
-
* @
|
|
101
|
-
* @description Generic type created from dashboardTimeFrames
|
|
97
|
+
/** =============================================
|
|
98
|
+
* @description Generic type created from dashboardTimeFrames
|
|
102
99
|
*/
|
|
103
100
|
export type GenericHistoricTimeFrames<Type> = Record<GlobalTypesT['dashboardHistoricTimeframeTypeT']['property'], Type>;
|
|
104
101
|
|
|
105
|
-
|
|
106
|
-
* @interface SingleValueDataI
|
|
102
|
+
/** =============================================
|
|
107
103
|
* @description SingeValue data type
|
|
108
104
|
*/
|
|
109
105
|
export interface SingleValueDataI {
|
|
@@ -124,16 +120,14 @@ export interface SingleValueDataI {
|
|
|
124
120
|
};
|
|
125
121
|
}
|
|
126
122
|
|
|
127
|
-
|
|
128
|
-
* @interface SingleValueTimeFrameDataI
|
|
123
|
+
/** =============================================
|
|
129
124
|
* @description SingeValue data type with timeframe breakdown
|
|
130
125
|
*/
|
|
131
126
|
export interface SingleValueTimeFrameDataI extends Omit<SingleValueDataI, 'value'> {
|
|
132
127
|
value: GenericHistoricTimeFrames<SingleValueDataI['value']>;
|
|
133
128
|
}
|
|
134
129
|
|
|
135
|
-
|
|
136
|
-
* @interface PatientRatingDataI
|
|
130
|
+
/** =============================================
|
|
137
131
|
* @description Patient rating type
|
|
138
132
|
*/
|
|
139
133
|
export interface PatientRatingDataI extends Omit<SingleValueDataI, 'value'> {
|
|
@@ -144,16 +138,14 @@ export interface PatientRatingDataI extends Omit<SingleValueDataI, 'value'> {
|
|
|
144
138
|
};
|
|
145
139
|
}
|
|
146
140
|
|
|
147
|
-
|
|
148
|
-
* @interface PatientRatingTimeFrameDataI
|
|
141
|
+
/** =============================================
|
|
149
142
|
* @description Patient rating per timeframe type
|
|
150
143
|
*/
|
|
151
144
|
export interface PatientRatingTimeFrameDataI extends Omit<PatientRatingDataI, 'value'> {
|
|
152
145
|
value: GenericHistoricTimeFrames<PatientRatingDataI['value']>;
|
|
153
146
|
}
|
|
154
147
|
|
|
155
|
-
|
|
156
|
-
* @interface ChartDataI
|
|
148
|
+
/** =============================================
|
|
157
149
|
* @description Chart data type
|
|
158
150
|
*/
|
|
159
151
|
export interface ChartDataI {
|
|
@@ -162,16 +154,14 @@ export interface ChartDataI {
|
|
|
162
154
|
source: [string, ...number[]][]; //--- Each element contains a data point of type ['label', number1, number2, ...]
|
|
163
155
|
}
|
|
164
156
|
|
|
165
|
-
|
|
166
|
-
* @interface ChartTimeFrameDataI
|
|
157
|
+
/** =============================================
|
|
167
158
|
* @description Chart data type with timeframe breakdown
|
|
168
159
|
*/
|
|
169
160
|
export interface ChartTimeFrameDataI extends Omit<ChartDataI, 'source'> {
|
|
170
161
|
source: GenericHistoricTimeFrames<ChartDataI['source']>;
|
|
171
162
|
}
|
|
172
163
|
|
|
173
|
-
|
|
174
|
-
* @interface GanttChartTemplateDataI
|
|
164
|
+
/** =============================================
|
|
175
165
|
* @description Gantt chart data type as sent by backend directly to frontend template
|
|
176
166
|
*/
|
|
177
167
|
export interface GanttChartTemplateDataI {
|
|
@@ -193,8 +183,7 @@ export interface GanttChartTemplateDataI {
|
|
|
193
183
|
};
|
|
194
184
|
}
|
|
195
185
|
|
|
196
|
-
|
|
197
|
-
* @interface TableDiagnosesProceduresDataI
|
|
186
|
+
/** =============================================
|
|
198
187
|
* @description Table entry data type for both diagnoses and procedures
|
|
199
188
|
*/
|
|
200
189
|
export type TableDiagnosesProceduresDataI = {
|
|
@@ -204,15 +193,13 @@ export type TableDiagnosesProceduresDataI = {
|
|
|
204
193
|
percentageOfTotal: number;
|
|
205
194
|
}[];
|
|
206
195
|
|
|
207
|
-
|
|
208
|
-
* @interface TableDiagnosesProceduresTimeFrameDataI
|
|
196
|
+
/** =============================================
|
|
209
197
|
* @description Table data type for Diagnoses and Procedures with timeframe breakdown
|
|
210
198
|
*/
|
|
211
199
|
export type TableDiagnosesProceduresTimeFrameDataI = GenericHistoricTimeFrames<TableDiagnosesProceduresDataI>;
|
|
212
200
|
|
|
213
|
-
|
|
214
|
-
* @
|
|
215
|
-
* @description Table data type as sent by backend directly to frontend template
|
|
201
|
+
/** =============================================
|
|
202
|
+
* @description Table data type as sent by backend directly to frontend template
|
|
216
203
|
*/
|
|
217
204
|
export interface DataTableTemplateDataI {
|
|
218
205
|
tableSetup: {
|
|
@@ -233,18 +220,29 @@ export interface DataTableTemplateDataI {
|
|
|
233
220
|
rowData: Record<string, unknown>[]; //--- Array of objects containing row data
|
|
234
221
|
}
|
|
235
222
|
|
|
236
|
-
|
|
237
|
-
* @interface FileUploadFormDataFieldPayloadI
|
|
223
|
+
/** =============================================
|
|
238
224
|
* @description Defines the field payload part of the FormData sent to the backend for uploading files
|
|
239
225
|
*/
|
|
240
226
|
export type FileUploadFormDataFieldPayloadI = FileUploadFormDataFieldUnitsPayloadI[] | FileUploadFormDataFieldUsersPayloadI[];
|
|
227
|
+
|
|
228
|
+
/** =============================================
|
|
229
|
+
* @description Defines the base fields for the file upload form data field payload
|
|
230
|
+
*/
|
|
241
231
|
interface FileUploadFieldBaseI {
|
|
242
232
|
fileName: string;
|
|
243
233
|
fileType: number;
|
|
244
234
|
}
|
|
235
|
+
|
|
236
|
+
/** =============================================
|
|
237
|
+
* @description Defines the base fields for the file upload form data field payload
|
|
238
|
+
*/
|
|
245
239
|
export interface FileUploadFormDataFieldUnitsPayloadI extends FileUploadFieldBaseI {
|
|
246
240
|
unitId: number;
|
|
247
241
|
}
|
|
242
|
+
|
|
243
|
+
/** =============================================
|
|
244
|
+
* @description Defines the base fields for the file upload form data field payload
|
|
245
|
+
*/
|
|
248
246
|
export interface FileUploadFormDataFieldUsersPayloadI extends FileUploadFieldBaseI {
|
|
249
247
|
userId: number;
|
|
250
248
|
}
|
package/public/styles/index.scss
CHANGED
|
@@ -2,10 +2,7 @@
|
|
|
2
2
|
* CareFirst CSS Index File
|
|
3
3
|
*
|
|
4
4
|
* @file index.scss
|
|
5
|
-
* @description
|
|
6
|
-
* @author Jacques Coetzee
|
|
7
|
-
* @since 2023 - 09 - 04
|
|
8
|
-
* @usage @forward "../node_modules/@carefirst/library/styles/index.scss";
|
|
5
|
+
* @description Contains all the base CSS files pertaining to the CareFirst Design theme
|
|
9
6
|
Add to angular.json - "stylePreprocessorOptions": {"includePaths": ["node_modules/@carefirst/library/public/styles/stylePreprocessorOptions"]}
|
|
10
7
|
*/
|
|
11
8
|
|