analytica-frontend-lib 1.2.16 → 1.2.17
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/dist/AlertManager/index.js +108 -108
- package/dist/AlertManager/index.js.map +1 -1
- package/dist/AlertManager/index.mjs +101 -101
- package/dist/AlertManager/index.mjs.map +1 -1
- package/dist/AlertManagerView/index.js +13 -3
- package/dist/AlertManagerView/index.js.map +1 -1
- package/dist/AlertManagerView/index.mjs +13 -3
- package/dist/AlertManagerView/index.mjs.map +1 -1
- package/dist/Table/index.d.mts +1 -1
- package/dist/Table/index.d.ts +1 -1
- package/dist/Table/index.js +13 -3
- package/dist/Table/index.js.map +1 -1
- package/dist/Table/index.mjs +13 -3
- package/dist/Table/index.mjs.map +1 -1
- package/dist/index.d.mts +35 -1
- package/dist/index.d.ts +35 -1
- package/dist/index.js +15 -3
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +14 -3
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.d.ts
CHANGED
|
@@ -195,6 +195,40 @@ interface RecipientItem {
|
|
|
195
195
|
name: string;
|
|
196
196
|
[key: string]: unknown;
|
|
197
197
|
}
|
|
198
|
+
interface RecipientCategory {
|
|
199
|
+
key: string;
|
|
200
|
+
label: string;
|
|
201
|
+
availableItems: RecipientItem[];
|
|
202
|
+
selectedIds: string[];
|
|
203
|
+
allSelected: boolean;
|
|
204
|
+
parentKey?: string;
|
|
205
|
+
dependsOn?: string[];
|
|
206
|
+
}
|
|
207
|
+
interface AlertFormData {
|
|
208
|
+
title: string;
|
|
209
|
+
message: string;
|
|
210
|
+
image: File | null;
|
|
211
|
+
date: string;
|
|
212
|
+
time: string;
|
|
213
|
+
sendToday: boolean;
|
|
214
|
+
sendCopyToEmail: boolean;
|
|
215
|
+
recipientCategories: Record<string, RecipientCategory>;
|
|
216
|
+
}
|
|
217
|
+
interface AlertFormStore extends AlertFormData {
|
|
218
|
+
setTitle: (title: string) => void;
|
|
219
|
+
setMessage: (message: string) => void;
|
|
220
|
+
setImage: (image: File | null) => void;
|
|
221
|
+
setDate: (date: string) => void;
|
|
222
|
+
setTime: (time: string) => void;
|
|
223
|
+
setSendToday: (sendToday: boolean) => void;
|
|
224
|
+
setSendCopyToEmail: (sendCopyToEmail: boolean) => void;
|
|
225
|
+
initializeCategory: (category: RecipientCategory) => void;
|
|
226
|
+
updateCategoryItems: (key: string, items: RecipientItem[]) => void;
|
|
227
|
+
updateCategorySelection: (key: string, selectedIds: string[], allSelected: boolean) => void;
|
|
228
|
+
clearCategorySelection: (key: string) => void;
|
|
229
|
+
resetForm: () => void;
|
|
230
|
+
}
|
|
231
|
+
declare const useAlertFormStore: zustand.UseBoundStore<zustand.StoreApi<AlertFormStore>>;
|
|
198
232
|
|
|
199
233
|
/**
|
|
200
234
|
* Notification store state interface
|
|
@@ -781,4 +815,4 @@ declare const useAppStore: zustand.UseBoundStore<Omit<zustand.StoreApi<AppState>
|
|
|
781
815
|
};
|
|
782
816
|
}>;
|
|
783
817
|
|
|
784
|
-
export { AccordionGroup, type AuthState, CategoryConfig, CheckboxList, CheckboxListItem, FetchNotificationsParams, type FilterConfig, FilterModal, type FilterModalProps, ImageUpload, type ImageUploadProps, Notification, type NotificationActions, NotificationApiClient, NotificationEntityType, NotificationGroup, type NotificationState, type NotificationStore, NotificationType, Question, QuizAlternative, QuizConnectDots, QuizDissertative, QuizHeaderResult, QuizImageQuestion, QuizListResult, QuizListResultByMateria, QuizMultipleChoice, QuizResultHeaderTitle, QuizResultPerformance, QuizResultTitle, QuizTrueOrFalse, type RecipientItem, type UseTableFilterOptions, type UseTableFilterReturn, createNotificationStore, createNotificationsHook, createUseNotificationStore, createUseNotifications, formatTimeAgo, getStatusBadge, useAppContent, useAppInitialization, useAppStore, useAuthStore, useInstitutionId, useTableFilter };
|
|
818
|
+
export { AccordionGroup, type AuthState, CategoryConfig, CheckboxList, CheckboxListItem, FetchNotificationsParams, type FilterConfig, FilterModal, type FilterModalProps, ImageUpload, type ImageUploadProps, Notification, type NotificationActions, NotificationApiClient, NotificationEntityType, NotificationGroup, type NotificationState, type NotificationStore, NotificationType, Question, QuizAlternative, QuizConnectDots, QuizDissertative, QuizHeaderResult, QuizImageQuestion, QuizListResult, QuizListResultByMateria, QuizMultipleChoice, QuizResultHeaderTitle, QuizResultPerformance, QuizResultTitle, QuizTrueOrFalse, type RecipientItem, type UseTableFilterOptions, type UseTableFilterReturn, createNotificationStore, createNotificationsHook, createUseNotificationStore, createUseNotifications, formatTimeAgo, getStatusBadge, useAlertFormStore, useAppContent, useAppInitialization, useAppStore, useAuthStore, useInstitutionId, useTableFilter };
|
package/dist/index.js
CHANGED
|
@@ -171,6 +171,7 @@ __export(src_exports, {
|
|
|
171
171
|
getSubjectInfo: () => getSubjectInfo,
|
|
172
172
|
getSubjectName: () => getSubjectName,
|
|
173
173
|
syncDropdownState: () => syncDropdownState,
|
|
174
|
+
useAlertFormStore: () => useAlertFormStore,
|
|
174
175
|
useApiConfig: () => useApiConfig,
|
|
175
176
|
useAppContent: () => useAppContent,
|
|
176
177
|
useAppInitialization: () => useAppInitialization,
|
|
@@ -3282,7 +3283,9 @@ var Table = (0, import_react15.forwardRef)(
|
|
|
3282
3283
|
{
|
|
3283
3284
|
ref,
|
|
3284
3285
|
className: cn(
|
|
3285
|
-
|
|
3286
|
+
variant === "default" && "analytica-table",
|
|
3287
|
+
variant === "default" && "border-separate border-spacing-0",
|
|
3288
|
+
"w-full caption-bottom text-sm",
|
|
3286
3289
|
className
|
|
3287
3290
|
),
|
|
3288
3291
|
...props,
|
|
@@ -3309,11 +3312,15 @@ var TableHeader = (0, import_react15.forwardRef)(({ className, ...props }, ref)
|
|
|
3309
3312
|
));
|
|
3310
3313
|
TableHeader.displayName = "TableHeader";
|
|
3311
3314
|
var TableBody = (0, import_react15.forwardRef)(
|
|
3312
|
-
({ className, ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3315
|
+
({ className, variant = "default", ...props }, ref) => /* @__PURE__ */ (0, import_jsx_runtime24.jsx)(
|
|
3313
3316
|
"tbody",
|
|
3314
3317
|
{
|
|
3315
3318
|
ref,
|
|
3316
|
-
className: cn(
|
|
3319
|
+
className: cn(
|
|
3320
|
+
"[&_tr:last-child]:border-border-200",
|
|
3321
|
+
variant === "default" && "border-t border-border-200",
|
|
3322
|
+
className
|
|
3323
|
+
),
|
|
3317
3324
|
...props
|
|
3318
3325
|
}
|
|
3319
3326
|
)
|
|
@@ -3337,18 +3344,22 @@ TableFooter.displayName = "TableFooter";
|
|
|
3337
3344
|
var VARIANT_STATES_ROW = {
|
|
3338
3345
|
default: {
|
|
3339
3346
|
default: "border border-border-200",
|
|
3347
|
+
defaultBorderless: "border-b border-border-200",
|
|
3340
3348
|
borderless: ""
|
|
3341
3349
|
},
|
|
3342
3350
|
selected: {
|
|
3343
3351
|
default: "border-b-2 border-indicator-primary",
|
|
3352
|
+
defaultBorderless: "border-b border-indicator-primary",
|
|
3344
3353
|
borderless: "bg-indicator-primary/10"
|
|
3345
3354
|
},
|
|
3346
3355
|
invalid: {
|
|
3347
3356
|
default: "border-b-2 border-indicator-error",
|
|
3357
|
+
defaultBorderless: "border-b border-indicator-error",
|
|
3348
3358
|
borderless: "bg-indicator-error/10"
|
|
3349
3359
|
},
|
|
3350
3360
|
disabled: {
|
|
3351
3361
|
default: "border-b border-border-100 bg-background-50 opacity-50 cursor-not-allowed",
|
|
3362
|
+
defaultBorderless: "border-b border-border-100 bg-background-50 opacity-50 cursor-not-allowed",
|
|
3352
3363
|
borderless: "bg-background-50 opacity-50 cursor-not-allowed"
|
|
3353
3364
|
}
|
|
3354
3365
|
};
|
|
@@ -15685,6 +15696,7 @@ function useAppContent(config) {
|
|
|
15685
15696
|
getSubjectInfo,
|
|
15686
15697
|
getSubjectName,
|
|
15687
15698
|
syncDropdownState,
|
|
15699
|
+
useAlertFormStore,
|
|
15688
15700
|
useApiConfig,
|
|
15689
15701
|
useAppContent,
|
|
15690
15702
|
useAppInitialization,
|