analytica-frontend-lib 1.2.12 → 1.2.14
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 +19117 -0
- package/dist/AlertManager/index.css.map +1 -0
- package/dist/AlertManager/index.d.mts +12 -0
- package/dist/AlertManager/index.d.ts +12 -0
- package/dist/AlertManager/index.js +6018 -0
- package/dist/AlertManager/index.js.map +1 -0
- package/dist/AlertManager/index.mjs +6045 -0
- package/dist/AlertManager/index.mjs.map +1 -0
- package/dist/AlertManagerView/index.d.mts +25 -0
- package/dist/AlertManagerView/index.d.ts +25 -0
- package/dist/AlertManagerView/index.js +975 -0
- package/dist/AlertManagerView/index.js.map +1 -0
- package/dist/AlertManagerView/index.mjs +958 -0
- package/dist/AlertManagerView/index.mjs.map +1 -0
- package/dist/CheckBox/index.d.mts +1 -1
- package/dist/CheckBox/index.d.ts +1 -1
- package/dist/DropdownMenu/index.js +3 -2
- package/dist/DropdownMenu/index.js.map +1 -1
- package/dist/DropdownMenu/index.mjs +3 -2
- package/dist/DropdownMenu/index.mjs.map +1 -1
- package/dist/Modal/index.d.mts +2 -1
- package/dist/Modal/index.d.ts +2 -1
- package/dist/Modal/index.js +3 -2
- package/dist/Modal/index.js.map +1 -1
- package/dist/Modal/index.mjs +3 -2
- package/dist/Modal/index.mjs.map +1 -1
- package/dist/NotificationCard/index.js +3 -2
- package/dist/NotificationCard/index.js.map +1 -1
- package/dist/NotificationCard/index.mjs +3 -2
- package/dist/NotificationCard/index.mjs.map +1 -1
- package/dist/Quiz/index.js +3 -2
- package/dist/Quiz/index.js.map +1 -1
- package/dist/Quiz/index.mjs +3 -2
- package/dist/Quiz/index.mjs.map +1 -1
- package/dist/Radio/index.d.mts +2 -2
- package/dist/Radio/index.d.ts +2 -2
- package/dist/Search/index.d.mts +1 -1
- package/dist/Search/index.d.ts +1 -1
- package/dist/Search/index.js +3 -2
- package/dist/Search/index.js.map +1 -1
- package/dist/Search/index.mjs +3 -2
- package/dist/Search/index.mjs.map +1 -1
- package/dist/Stepper/index.js +1 -1
- package/dist/Stepper/index.js.map +1 -1
- package/dist/Stepper/index.mjs +1 -1
- package/dist/Stepper/index.mjs.map +1 -1
- package/dist/Table/index.d.mts +14 -0
- package/dist/Table/index.d.ts +14 -0
- package/dist/Table/index.js +279 -30
- package/dist/Table/index.js.map +1 -1
- package/dist/Table/index.mjs +284 -32
- package/dist/Table/index.mjs.map +1 -1
- package/dist/index.css +32 -0
- package/dist/index.css.map +1 -1
- package/dist/index.d.mts +8 -19
- package/dist/index.d.ts +8 -19
- package/dist/index.js +3229 -2246
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +3182 -2192
- package/dist/index.mjs.map +1 -1
- package/dist/notification-TD7ZFRLL.png +0 -0
- package/dist/styles.css +32 -0
- package/dist/styles.css.map +1 -1
- package/dist/types-DMycdI4U.d.mts +88 -0
- package/dist/types-DMycdI4U.d.ts +88 -0
- 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