analytica-frontend-lib 1.2.19 → 1.2.22

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 (41) hide show
  1. package/dist/AlertManager/index.css +10 -3
  2. package/dist/AlertManager/index.css.map +1 -1
  3. package/dist/AlertManager/index.d.mts +2 -1
  4. package/dist/AlertManager/index.d.ts +2 -1
  5. package/dist/AlertManagerView/index.d.mts +2 -1
  6. package/dist/AlertManagerView/index.d.ts +2 -1
  7. package/dist/AlertManagerView/index.js +347 -159
  8. package/dist/AlertManagerView/index.js.map +1 -1
  9. package/dist/AlertManagerView/index.mjs +346 -159
  10. package/dist/AlertManagerView/index.mjs.map +1 -1
  11. package/dist/CheckBoxGroup-9n5C0OH4.d.mts +24 -0
  12. package/dist/CheckBoxGroup-9n5C0OH4.d.ts +24 -0
  13. package/dist/Table/index.d.mts +23 -24
  14. package/dist/Table/index.d.ts +23 -24
  15. package/dist/Table/index.js +328 -140
  16. package/dist/Table/index.js.map +1 -1
  17. package/dist/Table/index.mjs +323 -136
  18. package/dist/Table/index.mjs.map +1 -1
  19. package/dist/TableProvider/index.css +19140 -0
  20. package/dist/TableProvider/index.css.map +1 -0
  21. package/dist/TableProvider/index.d.mts +4 -0
  22. package/dist/TableProvider/index.d.ts +4 -0
  23. package/dist/TableProvider/index.js +5562 -0
  24. package/dist/TableProvider/index.js.map +1 -0
  25. package/dist/TableProvider/index.mjs +5583 -0
  26. package/dist/TableProvider/index.mjs.map +1 -0
  27. package/dist/TableProvider-48a6wb7j.d.ts +231 -0
  28. package/dist/TableProvider-DyhwEkPT.d.mts +231 -0
  29. package/dist/index.css +10 -3
  30. package/dist/index.css.map +1 -1
  31. package/dist/index.d.mts +5 -42
  32. package/dist/index.d.ts +5 -42
  33. package/dist/index.js +1711 -1377
  34. package/dist/index.js.map +1 -1
  35. package/dist/index.mjs +1604 -1272
  36. package/dist/index.mjs.map +1 -1
  37. package/dist/styles.css +10 -3
  38. package/dist/styles.css.map +1 -1
  39. package/dist/{types-BXzeefgf.d.mts → types-DqZRjqxh.d.ts} +2 -23
  40. package/dist/{types-BXzeefgf.d.ts → types-pd3QVhSu.d.mts} +2 -23
  41. package/package.json +2 -1
package/dist/index.d.mts CHANGED
@@ -12,10 +12,10 @@ 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-BXzeefgf.mjs';
16
- export { a as AlertData, A as AlertsConfig, b as CheckboxGroup, I as Item } from './types-BXzeefgf.mjs';
15
+ export { C as CategoryConfig, a as CheckboxGroup, I as Item } from './CheckBoxGroup-9n5C0OH4.mjs';
17
16
  export { AlertsManager } from './AlertManager/index.mjs';
18
17
  export { AlertViewData, AlertsManagerView, RecipientStatus } from './AlertManagerView/index.mjs';
18
+ export { a as AlertData, A as AlertsConfig } from './types-pd3QVhSu.mjs';
19
19
  export { default as Radio, RadioGroup, RadioGroupItem } from './Radio/index.mjs';
20
20
  export { default as TextArea } from './TextArea/index.mjs';
21
21
  export { default as Toast } from './Toast/index.mjs';
@@ -39,6 +39,8 @@ export { d as SubjectData, e as SubjectEnum, I as SubjectIconProps, S as Subject
39
39
  export { c as ThemeActions, T as ThemeMode, b as ThemeState, a as ThemeStore, u as useThemeStore } from './themeStore-P2X64zC-.mjs';
40
40
  export { default as DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, MenuLabel, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuInfo, ProfileMenuSection, ProfileMenuTrigger, ProfileToggleTheme } from './DropdownMenu/index.mjs';
41
41
  export { SortDirection, default as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, UseTableSortOptions, useTableSort } from './Table/index.mjs';
42
+ import { F as FilterConfig } from './TableProvider-DyhwEkPT.mjs';
43
+ export { C as ColumnConfig, E as EmptyStateConfig, P as PaginationConfig, b as TableParams, T as TableProvider, c as TableProviderProps, U as UseTableFilterOptions, a as UseTableFilterReturn, u as useTableFilter } from './TableProvider-DyhwEkPT.mjs';
42
44
  export { default as Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './Select/index.mjs';
43
45
  export { default as Menu, MenuContent, MenuItem, MenuOverflow } from './Menu/index.mjs';
44
46
  export { CardActivitiesResults, CardAudio, CardPerformance, CardProgress, CardQuestions, CardResults, CardSimulado, CardSimulationHistory, CardStatus, CardTest, CardTopic } from './Card/index.mjs';
@@ -478,45 +480,6 @@ declare const createNotificationsHook: (apiClient: NotificationApiClient) => ()
478
480
  }[];
479
481
  };
480
482
 
481
- type FilterConfig = {
482
- key: string;
483
- label: string;
484
- categories: CategoryConfig[];
485
- };
486
- type UseTableFilterOptions = {
487
- syncWithUrl?: boolean;
488
- };
489
- type UseTableFilterReturn = {
490
- filterConfigs: FilterConfig[];
491
- activeFilters: Record<string, string[]>;
492
- hasActiveFilters: boolean;
493
- updateFilters: (configs: FilterConfig[]) => void;
494
- applyFilters: () => void;
495
- clearFilters: () => void;
496
- };
497
- /**
498
- * Hook for managing table filters with URL synchronization
499
- *
500
- * @param initialConfigs - Initial filter configurations
501
- * @param options - Hook options including URL sync
502
- * @returns Filter state and management functions
503
- *
504
- * @example
505
- * ```tsx
506
- * const { filterConfigs, activeFilters, updateFilters, applyFilters } = useTableFilter(
507
- * [
508
- * {
509
- * key: 'academic',
510
- * label: 'Dados Acadêmicos',
511
- * categories: [...]
512
- * }
513
- * ],
514
- * { syncWithUrl: true }
515
- * );
516
- * ```
517
- */
518
- declare const useTableFilter: (initialConfigs: FilterConfig[], options?: UseTableFilterOptions) => UseTableFilterReturn;
519
-
520
483
  type FilterModalProps = {
521
484
  /**
522
485
  * Controls modal visibility
@@ -815,4 +778,4 @@ declare const useAppStore: zustand.UseBoundStore<Omit<zustand.StoreApi<AppState>
815
778
  };
816
779
  }>;
817
780
 
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 };
781
+ export { AccordionGroup, type AuthState, CheckboxList, CheckboxListItem, FetchNotificationsParams, 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, createNotificationStore, createNotificationsHook, createUseNotificationStore, createUseNotifications, formatTimeAgo, getStatusBadge, useAlertFormStore, useAppContent, useAppInitialization, useAppStore, useAuthStore, useInstitutionId };
package/dist/index.d.ts CHANGED
@@ -12,10 +12,10 @@ 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-BXzeefgf.js';
16
- export { a as AlertData, A as AlertsConfig, b as CheckboxGroup, I as Item } from './types-BXzeefgf.js';
15
+ export { C as CategoryConfig, a as CheckboxGroup, I as Item } from './CheckBoxGroup-9n5C0OH4.js';
17
16
  export { AlertsManager } from './AlertManager/index.js';
18
17
  export { AlertViewData, AlertsManagerView, RecipientStatus } from './AlertManagerView/index.js';
18
+ export { a as AlertData, A as AlertsConfig } from './types-DqZRjqxh.js';
19
19
  export { default as Radio, RadioGroup, RadioGroupItem } from './Radio/index.js';
20
20
  export { default as TextArea } from './TextArea/index.js';
21
21
  export { default as Toast } from './Toast/index.js';
@@ -39,6 +39,8 @@ export { d as SubjectData, e as SubjectEnum, I as SubjectIconProps, S as Subject
39
39
  export { c as ThemeActions, T as ThemeMode, b as ThemeState, a as ThemeStore, u as useThemeStore } from './themeStore-P2X64zC-.js';
40
40
  export { default as DropdownMenu, DropdownMenuContent, DropdownMenuItem, DropdownMenuSeparator, DropdownMenuTrigger, MenuLabel, ProfileMenuFooter, ProfileMenuHeader, ProfileMenuInfo, ProfileMenuSection, ProfileMenuTrigger, ProfileToggleTheme } from './DropdownMenu/index.js';
41
41
  export { SortDirection, default as Table, TableBody, TableCaption, TableCell, TableFooter, TableHead, TableHeader, TableRow, UseTableSortOptions, useTableSort } from './Table/index.js';
42
+ import { F as FilterConfig } from './TableProvider-48a6wb7j.js';
43
+ export { C as ColumnConfig, E as EmptyStateConfig, P as PaginationConfig, b as TableParams, T as TableProvider, c as TableProviderProps, U as UseTableFilterOptions, a as UseTableFilterReturn, u as useTableFilter } from './TableProvider-48a6wb7j.js';
42
44
  export { default as Select, SelectContent, SelectItem, SelectTrigger, SelectValue } from './Select/index.js';
43
45
  export { default as Menu, MenuContent, MenuItem, MenuOverflow } from './Menu/index.js';
44
46
  export { CardActivitiesResults, CardAudio, CardPerformance, CardProgress, CardQuestions, CardResults, CardSimulado, CardSimulationHistory, CardStatus, CardTest, CardTopic } from './Card/index.js';
@@ -478,45 +480,6 @@ declare const createNotificationsHook: (apiClient: NotificationApiClient) => ()
478
480
  }[];
479
481
  };
480
482
 
481
- type FilterConfig = {
482
- key: string;
483
- label: string;
484
- categories: CategoryConfig[];
485
- };
486
- type UseTableFilterOptions = {
487
- syncWithUrl?: boolean;
488
- };
489
- type UseTableFilterReturn = {
490
- filterConfigs: FilterConfig[];
491
- activeFilters: Record<string, string[]>;
492
- hasActiveFilters: boolean;
493
- updateFilters: (configs: FilterConfig[]) => void;
494
- applyFilters: () => void;
495
- clearFilters: () => void;
496
- };
497
- /**
498
- * Hook for managing table filters with URL synchronization
499
- *
500
- * @param initialConfigs - Initial filter configurations
501
- * @param options - Hook options including URL sync
502
- * @returns Filter state and management functions
503
- *
504
- * @example
505
- * ```tsx
506
- * const { filterConfigs, activeFilters, updateFilters, applyFilters } = useTableFilter(
507
- * [
508
- * {
509
- * key: 'academic',
510
- * label: 'Dados Acadêmicos',
511
- * categories: [...]
512
- * }
513
- * ],
514
- * { syncWithUrl: true }
515
- * );
516
- * ```
517
- */
518
- declare const useTableFilter: (initialConfigs: FilterConfig[], options?: UseTableFilterOptions) => UseTableFilterReturn;
519
-
520
483
  type FilterModalProps = {
521
484
  /**
522
485
  * Controls modal visibility
@@ -815,4 +778,4 @@ declare const useAppStore: zustand.UseBoundStore<Omit<zustand.StoreApi<AppState>
815
778
  };
816
779
  }>;
817
780
 
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 };
781
+ export { AccordionGroup, type AuthState, CheckboxList, CheckboxListItem, FetchNotificationsParams, 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, createNotificationStore, createNotificationsHook, createUseNotificationStore, createUseNotifications, formatTimeAgo, getStatusBadge, useAlertFormStore, useAppContent, useAppInitialization, useAppStore, useAuthStore, useInstitutionId };