analytica-frontend-lib 1.2.16 → 1.2.18

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/index.d.ts CHANGED
@@ -12,8 +12,8 @@ import * as react from 'react';
12
12
  import react__default, { ReactNode, HTMLAttributes, InputHTMLAttributes } from 'react';
13
13
  import * as zustand from 'zustand';
14
14
  import { StoreApi } from 'zustand';
15
- import { C as CategoryConfig } from './types-DMycdI4U.js';
16
- export { a as AlertData, A as AlertsConfig, b as CheckboxGroup, I as Item } from './types-DMycdI4U.js';
15
+ import { C as CategoryConfig } from './types-BXzeefgf.js';
16
+ export { a as AlertData, A as AlertsConfig, b as CheckboxGroup, I as Item } from './types-BXzeefgf.js';
17
17
  export { AlertsManager } from './AlertManager/index.js';
18
18
  export { AlertViewData, AlertsManagerView, RecipientStatus } from './AlertManagerView/index.js';
19
19
  export { default as Radio, RadioGroup, RadioGroupItem } from './Radio/index.js';
@@ -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 | string | 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 | string | 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 };