analytica-frontend-lib 1.2.11 → 1.2.13

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 (58) hide show
  1. package/dist/AlertManager/index.css +19114 -0
  2. package/dist/AlertManager/index.css.map +1 -0
  3. package/dist/AlertManager/index.d.mts +12 -0
  4. package/dist/AlertManager/index.d.ts +12 -0
  5. package/dist/AlertManager/index.js +6018 -0
  6. package/dist/AlertManager/index.js.map +1 -0
  7. package/dist/AlertManager/index.mjs +6045 -0
  8. package/dist/AlertManager/index.mjs.map +1 -0
  9. package/dist/AlertManagerView/index.d.mts +25 -0
  10. package/dist/AlertManagerView/index.d.ts +25 -0
  11. package/dist/AlertManagerView/index.js +835 -0
  12. package/dist/AlertManagerView/index.js.map +1 -0
  13. package/dist/AlertManagerView/index.mjs +815 -0
  14. package/dist/AlertManagerView/index.mjs.map +1 -0
  15. package/dist/DropdownMenu/index.js +3 -2
  16. package/dist/DropdownMenu/index.js.map +1 -1
  17. package/dist/DropdownMenu/index.mjs +3 -2
  18. package/dist/DropdownMenu/index.mjs.map +1 -1
  19. package/dist/Modal/index.d.mts +2 -1
  20. package/dist/Modal/index.d.ts +2 -1
  21. package/dist/Modal/index.js +3 -2
  22. package/dist/Modal/index.js.map +1 -1
  23. package/dist/Modal/index.mjs +3 -2
  24. package/dist/Modal/index.mjs.map +1 -1
  25. package/dist/NotificationCard/index.js +3 -2
  26. package/dist/NotificationCard/index.js.map +1 -1
  27. package/dist/NotificationCard/index.mjs +3 -2
  28. package/dist/NotificationCard/index.mjs.map +1 -1
  29. package/dist/Quiz/index.js +3 -2
  30. package/dist/Quiz/index.js.map +1 -1
  31. package/dist/Quiz/index.mjs +3 -2
  32. package/dist/Quiz/index.mjs.map +1 -1
  33. package/dist/Search/index.js +3 -2
  34. package/dist/Search/index.js.map +1 -1
  35. package/dist/Search/index.mjs +3 -2
  36. package/dist/Search/index.mjs.map +1 -1
  37. package/dist/Stepper/index.js +1 -1
  38. package/dist/Stepper/index.js.map +1 -1
  39. package/dist/Stepper/index.mjs +1 -1
  40. package/dist/Stepper/index.mjs.map +1 -1
  41. package/dist/Table/index.d.mts +1 -1
  42. package/dist/Table/index.d.ts +1 -1
  43. package/dist/Table/index.js.map +1 -1
  44. package/dist/Table/index.mjs.map +1 -1
  45. package/dist/index.css +32 -0
  46. package/dist/index.css.map +1 -1
  47. package/dist/index.d.mts +121 -19
  48. package/dist/index.d.ts +121 -19
  49. package/dist/index.js +3341 -2200
  50. package/dist/index.js.map +1 -1
  51. package/dist/index.mjs +3272 -2129
  52. package/dist/index.mjs.map +1 -1
  53. package/dist/notification-TD7ZFRLL.png +0 -0
  54. package/dist/styles.css +32 -0
  55. package/dist/styles.css.map +1 -1
  56. package/dist/types-DMycdI4U.d.mts +88 -0
  57. package/dist/types-DMycdI4U.d.ts +88 -0
  58. package/package.json +1 -1
@@ -0,0 +1,88 @@
1
+ import { ComponentType } from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+
4
+ type Item = {
5
+ id: string;
6
+ name: string;
7
+ [key: string]: unknown;
8
+ };
9
+ type CategoryConfig = {
10
+ key: string;
11
+ label: string;
12
+ selectedIds?: string[];
13
+ dependsOn?: string[];
14
+ itens?: Item[];
15
+ filteredBy?: {
16
+ key: string;
17
+ internalField: string;
18
+ }[];
19
+ };
20
+ declare const CheckboxGroup: ({ categories, onCategoriesChange, }: {
21
+ categories: CategoryConfig[];
22
+ onCategoriesChange: (categories: CategoryConfig[]) => void;
23
+ }) => react_jsx_runtime.JSX.Element;
24
+
25
+ interface StepConfig {
26
+ id: string;
27
+ label: string;
28
+ component?: ComponentType<StepComponentProps>;
29
+ validate?: (formData: unknown) => boolean | string;
30
+ shouldShow?: (formData: unknown) => boolean;
31
+ }
32
+ interface StepComponentProps {
33
+ onNext?: () => void;
34
+ onPrevious?: () => void;
35
+ formData?: unknown;
36
+ }
37
+ interface LabelsConfig {
38
+ pageTitle?: string;
39
+ modalTitle?: string;
40
+ sendButton?: string;
41
+ cancelButton?: string;
42
+ nextButton?: string;
43
+ previousButton?: string;
44
+ finishButton?: string;
45
+ titleLabel?: string;
46
+ titlePlaceholder?: string;
47
+ messageLabel?: string;
48
+ messagePlaceholder?: string;
49
+ imageLabel?: string;
50
+ recipientsTitle?: string;
51
+ recipientsDescription?: string;
52
+ dateLabel?: string;
53
+ timeLabel?: string;
54
+ sendTodayLabel?: string;
55
+ sendCopyToEmailLabel?: string;
56
+ previewTitle?: string;
57
+ previewWarning?: string;
58
+ noRecipientsSelected?: string;
59
+ titleNotDefined?: string;
60
+ messageNotDefined?: string;
61
+ dateNotDefined?: string;
62
+ }
63
+ interface AlertsConfig {
64
+ categories: CategoryConfig[];
65
+ steps?: StepConfig[];
66
+ labels?: LabelsConfig;
67
+ behavior?: {
68
+ showAlertsTable?: boolean;
69
+ allowImageAttachment?: boolean;
70
+ allowScheduling?: boolean;
71
+ allowEmailCopy?: boolean;
72
+ onSendAlert?: (alertData: AlertData) => Promise<void>;
73
+ };
74
+ }
75
+ interface AlertData {
76
+ title: string;
77
+ message: string;
78
+ image?: File | null;
79
+ date: string;
80
+ time: string;
81
+ sendToday: boolean;
82
+ recipientCategories: Record<string, {
83
+ selectedIds: string[];
84
+ allSelected: boolean;
85
+ }>;
86
+ }
87
+
88
+ export { type AlertsConfig as A, type CategoryConfig as C, type Item as I, type AlertData as a, CheckboxGroup as b };
@@ -0,0 +1,88 @@
1
+ import { ComponentType } from 'react';
2
+ import * as react_jsx_runtime from 'react/jsx-runtime';
3
+
4
+ type Item = {
5
+ id: string;
6
+ name: string;
7
+ [key: string]: unknown;
8
+ };
9
+ type CategoryConfig = {
10
+ key: string;
11
+ label: string;
12
+ selectedIds?: string[];
13
+ dependsOn?: string[];
14
+ itens?: Item[];
15
+ filteredBy?: {
16
+ key: string;
17
+ internalField: string;
18
+ }[];
19
+ };
20
+ declare const CheckboxGroup: ({ categories, onCategoriesChange, }: {
21
+ categories: CategoryConfig[];
22
+ onCategoriesChange: (categories: CategoryConfig[]) => void;
23
+ }) => react_jsx_runtime.JSX.Element;
24
+
25
+ interface StepConfig {
26
+ id: string;
27
+ label: string;
28
+ component?: ComponentType<StepComponentProps>;
29
+ validate?: (formData: unknown) => boolean | string;
30
+ shouldShow?: (formData: unknown) => boolean;
31
+ }
32
+ interface StepComponentProps {
33
+ onNext?: () => void;
34
+ onPrevious?: () => void;
35
+ formData?: unknown;
36
+ }
37
+ interface LabelsConfig {
38
+ pageTitle?: string;
39
+ modalTitle?: string;
40
+ sendButton?: string;
41
+ cancelButton?: string;
42
+ nextButton?: string;
43
+ previousButton?: string;
44
+ finishButton?: string;
45
+ titleLabel?: string;
46
+ titlePlaceholder?: string;
47
+ messageLabel?: string;
48
+ messagePlaceholder?: string;
49
+ imageLabel?: string;
50
+ recipientsTitle?: string;
51
+ recipientsDescription?: string;
52
+ dateLabel?: string;
53
+ timeLabel?: string;
54
+ sendTodayLabel?: string;
55
+ sendCopyToEmailLabel?: string;
56
+ previewTitle?: string;
57
+ previewWarning?: string;
58
+ noRecipientsSelected?: string;
59
+ titleNotDefined?: string;
60
+ messageNotDefined?: string;
61
+ dateNotDefined?: string;
62
+ }
63
+ interface AlertsConfig {
64
+ categories: CategoryConfig[];
65
+ steps?: StepConfig[];
66
+ labels?: LabelsConfig;
67
+ behavior?: {
68
+ showAlertsTable?: boolean;
69
+ allowImageAttachment?: boolean;
70
+ allowScheduling?: boolean;
71
+ allowEmailCopy?: boolean;
72
+ onSendAlert?: (alertData: AlertData) => Promise<void>;
73
+ };
74
+ }
75
+ interface AlertData {
76
+ title: string;
77
+ message: string;
78
+ image?: File | null;
79
+ date: string;
80
+ time: string;
81
+ sendToday: boolean;
82
+ recipientCategories: Record<string, {
83
+ selectedIds: string[];
84
+ allSelected: boolean;
85
+ }>;
86
+ }
87
+
88
+ export { type AlertsConfig as A, type CategoryConfig as C, type Item as I, type AlertData as a, CheckboxGroup as b };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "analytica-frontend-lib",
3
- "version": "1.2.11",
3
+ "version": "1.2.13",
4
4
  "description": "Repositório público dos componentes utilizados nas plataformas da Analytica Ensino",
5
5
  "main": "dist/index.cjs",
6
6
  "module": "./dist/index.js",