analytica-frontend-lib 1.2.19 → 1.2.21
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.css +10 -0
- package/dist/AlertManager/index.css.map +1 -1
- package/dist/AlertManager/index.d.mts +2 -1
- package/dist/AlertManager/index.d.ts +2 -1
- package/dist/AlertManagerView/index.d.mts +2 -1
- package/dist/AlertManagerView/index.d.ts +2 -1
- package/dist/CheckBoxGroup-9n5C0OH4.d.mts +24 -0
- package/dist/CheckBoxGroup-9n5C0OH4.d.ts +24 -0
- package/dist/Radio/index.d.mts +1 -1
- package/dist/Radio/index.d.ts +1 -1
- package/dist/TableProvider/index.css +19143 -0
- package/dist/TableProvider/index.css.map +1 -0
- package/dist/TableProvider/index.d.mts +4 -0
- package/dist/TableProvider/index.d.ts +4 -0
- package/dist/TableProvider/index.js +5365 -0
- package/dist/TableProvider/index.js.map +1 -0
- package/dist/TableProvider/index.mjs +5387 -0
- package/dist/TableProvider/index.mjs.map +1 -0
- package/dist/TableProvider-CDcL1tDj.d.mts +192 -0
- package/dist/TableProvider-D4Ak7ofz.d.ts +192 -0
- package/dist/index.css +10 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +6 -43
- package/dist/index.d.ts +6 -43
- package/dist/index.js +1069 -780
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +988 -700
- package/dist/index.mjs.map +1 -1
- package/dist/styles.css +10 -0
- package/dist/styles.css.map +1 -1
- package/dist/{types-BXzeefgf.d.mts → types-DqZRjqxh.d.ts} +2 -23
- package/dist/{types-BXzeefgf.d.ts → types-pd3QVhSu.d.mts} +2 -23
- 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
|
-
|
|
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-CDcL1tDj.mjs';
|
|
43
|
+
export { C as ColumnConfig, P as PaginationConfig, b as TableParams, T as TableProvider, c as TableProviderProps, U as UseTableFilterOptions, a as UseTableFilterReturn, u as useTableFilter } from './TableProvider-CDcL1tDj.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';
|
|
@@ -188,7 +190,7 @@ declare const CheckboxListItem: react.ForwardRefExoticComponent<{
|
|
|
188
190
|
state?: CheckboxListState;
|
|
189
191
|
/** Additional CSS classes */
|
|
190
192
|
className?: string;
|
|
191
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "
|
|
193
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "name" | "type" | "value" | "checked"> & react.RefAttributes<HTMLInputElement>>;
|
|
192
194
|
|
|
193
195
|
interface RecipientItem {
|
|
194
196
|
id: string;
|
|
@@ -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,
|
|
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
|
-
|
|
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-D4Ak7ofz.js';
|
|
43
|
+
export { C as ColumnConfig, P as PaginationConfig, b as TableParams, T as TableProvider, c as TableProviderProps, U as UseTableFilterOptions, a as UseTableFilterReturn, u as useTableFilter } from './TableProvider-D4Ak7ofz.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';
|
|
@@ -188,7 +190,7 @@ declare const CheckboxListItem: react.ForwardRefExoticComponent<{
|
|
|
188
190
|
state?: CheckboxListState;
|
|
189
191
|
/** Additional CSS classes */
|
|
190
192
|
className?: string;
|
|
191
|
-
} & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "
|
|
193
|
+
} & Omit<InputHTMLAttributes<HTMLInputElement>, "size" | "onChange" | "name" | "type" | "value" | "checked"> & react.RefAttributes<HTMLInputElement>>;
|
|
192
194
|
|
|
193
195
|
interface RecipientItem {
|
|
194
196
|
id: string;
|
|
@@ -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,
|
|
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 };
|