@appcorp/fusion-storybook 0.3.61 → 0.3.63
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/base-modules/attendance/form.js +3 -3
- package/base-modules/push-campaign/context/module-base.d.ts +10 -0
- package/base-modules/push-campaign/context/module-base.js +2 -0
- package/base-modules/push-campaign/context/use-push-campaign-module.d.ts +2 -0
- package/base-modules/push-campaign/context/use-push-campaign-module.js +8 -2
- package/package.json +1 -1
- package/tsconfig.build.tsbuildinfo +1 -1
|
@@ -16,7 +16,7 @@ export const AttendanceForm = () => {
|
|
|
16
16
|
var _a, _b;
|
|
17
17
|
const workspace = getCachedWorkspaceSync();
|
|
18
18
|
const { state, handleChange } = useAttendanceModule();
|
|
19
|
-
const { date, enabled, errors, remarks, status } = state;
|
|
19
|
+
const { date, enabled, errors, remarks, status, studentProfileId } = state;
|
|
20
20
|
const t = useTranslations("attendance");
|
|
21
21
|
const { fetchNow, data: studentProfileData } = useFetch(STUDENT_PROFILE_API_ROUTES.UNIT, {
|
|
22
22
|
method: API_METHODS.GET,
|
|
@@ -63,7 +63,7 @@ export const AttendanceForm = () => {
|
|
|
63
63
|
id: "studentProfile",
|
|
64
64
|
info: t("formStudentProfileInfo"),
|
|
65
65
|
label: t("formStudentProfileLabel"),
|
|
66
|
-
onValueChange: (value) => handleChange("
|
|
66
|
+
onValueChange: (value) => handleChange("studentProfileId", value),
|
|
67
67
|
options: ((studentProfileData === null || studentProfileData === void 0 ? void 0 : studentProfileData.items) || []).map((opt) => {
|
|
68
68
|
var _a, _b, _c;
|
|
69
69
|
return ({
|
|
@@ -83,7 +83,7 @@ export const AttendanceForm = () => {
|
|
|
83
83
|
value: item.id,
|
|
84
84
|
});
|
|
85
85
|
},
|
|
86
|
-
value:
|
|
86
|
+
value: studentProfileId,
|
|
87
87
|
});
|
|
88
88
|
return (_jsxs("div", { className: "space-y-4", children: [_jsx(EnhancedInput, { error: errors.date, id: "date", info: t("formDateInfo"), label: t("formDateLabel"), onChange: (e) => handleChange("date", e.target.value), onClick: (e) => { var _a, _b; return (_b = (_a = e.currentTarget).showPicker) === null || _b === void 0 ? void 0 : _b.call(_a); }, placeholder: t("formDatePlaceholder"), required: true, type: "date", value: date }), statusCombo, studentProfile, _jsx(EnhancedTextarea, { error: errors.remarks, id: "remarks", info: t("formRemarksInfo"), label: t("formRemarksLabel"), onChange: (e) => handleChange("remarks", e.target.value), placeholder: t("formRemarksPlaceholder"), rows: 3, value: remarks !== null && remarks !== void 0 ? remarks : "" }), _jsx(EnhancedCheckbox, { defaultChecked: enabled, label: t("formActiveRecordLabel"), onCheckedChange: (checked) => handleChange("enabled", checked) })] }));
|
|
89
89
|
};
|
|
@@ -44,6 +44,8 @@ export declare const PUSH_CAMPAIGN_ACTION_TYPES: {
|
|
|
44
44
|
}>;
|
|
45
45
|
filterEnabled: boolean | undefined;
|
|
46
46
|
filterStatus: string | undefined;
|
|
47
|
+
filterStartDate: string;
|
|
48
|
+
filterEndDate: string;
|
|
47
49
|
aiCheckPassed: boolean;
|
|
48
50
|
aiCheckLoading: boolean;
|
|
49
51
|
aiCheckScore: number | null;
|
|
@@ -76,6 +78,8 @@ export declare const PUSH_CAMPAIGN_ACTION_TYPES: {
|
|
|
76
78
|
}>;
|
|
77
79
|
filterEnabled: boolean | undefined;
|
|
78
80
|
filterStatus: string | undefined;
|
|
81
|
+
filterStartDate: string;
|
|
82
|
+
filterEndDate: string;
|
|
79
83
|
aiCheckPassed: boolean;
|
|
80
84
|
aiCheckLoading: boolean;
|
|
81
85
|
aiCheckScore: number | null;
|
|
@@ -110,6 +114,8 @@ export declare const PUSH_CAMPAIGN_ACTION_TYPES: {
|
|
|
110
114
|
}>;
|
|
111
115
|
filterEnabled: boolean | undefined;
|
|
112
116
|
filterStatus: string | undefined;
|
|
117
|
+
filterStartDate: string;
|
|
118
|
+
filterEndDate: string;
|
|
113
119
|
aiCheckPassed: boolean;
|
|
114
120
|
aiCheckLoading: boolean;
|
|
115
121
|
aiCheckScore: number | null;
|
|
@@ -142,6 +148,8 @@ export declare const PUSH_CAMPAIGN_ACTION_TYPES: {
|
|
|
142
148
|
}>;
|
|
143
149
|
filterEnabled: boolean | undefined;
|
|
144
150
|
filterStatus: string | undefined;
|
|
151
|
+
filterStartDate: string;
|
|
152
|
+
filterEndDate: string;
|
|
145
153
|
aiCheckPassed: boolean;
|
|
146
154
|
aiCheckLoading: boolean;
|
|
147
155
|
aiCheckScore: number | null;
|
|
@@ -174,6 +182,8 @@ export declare const PUSH_CAMPAIGN_ACTION_TYPES: {
|
|
|
174
182
|
}>;
|
|
175
183
|
filterEnabled: boolean | undefined;
|
|
176
184
|
filterStatus: string | undefined;
|
|
185
|
+
filterStartDate: string;
|
|
186
|
+
filterEndDate: string;
|
|
177
187
|
aiCheckPassed: boolean;
|
|
178
188
|
aiCheckLoading: boolean;
|
|
179
189
|
aiCheckScore: number | null;
|
|
@@ -60,6 +60,8 @@ export declare const usePushCampaignModule: () => {
|
|
|
60
60
|
}>;
|
|
61
61
|
filterEnabled: boolean | undefined;
|
|
62
62
|
filterStatus: string | undefined;
|
|
63
|
+
filterStartDate: string;
|
|
64
|
+
filterEndDate: string;
|
|
63
65
|
aiCheckPassed: boolean;
|
|
64
66
|
aiCheckLoading: boolean;
|
|
65
67
|
aiCheckScore: number | null;
|
|
@@ -22,13 +22,17 @@ export const usePushCampaignModule = () => {
|
|
|
22
22
|
const debouncedQuery = useDebounce(state.searchQuery, 800);
|
|
23
23
|
const listParams = useMemo(() => {
|
|
24
24
|
var _a;
|
|
25
|
-
return (Object.assign(Object.assign(Object.assign({ currentPage: state.currentPage, pageLimit: state.pageLimit, schoolId: ((_a = workspace === null || workspace === void 0 ? void 0 : workspace.school) === null || _a === void 0 ? void 0 : _a.id) || "" }, (debouncedQuery ? { searchQuery: debouncedQuery } : {})), (state.filterEnabled !== undefined
|
|
25
|
+
return (Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({ currentPage: state.currentPage, pageLimit: state.pageLimit, schoolId: ((_a = workspace === null || workspace === void 0 ? void 0 : workspace.school) === null || _a === void 0 ? void 0 : _a.id) || "" }, (debouncedQuery ? { searchQuery: debouncedQuery } : {})), (state.filterEnabled !== undefined
|
|
26
26
|
? { filterEnabled: String(state.filterEnabled) }
|
|
27
|
-
: {})), (state.filterStatus ? { filterStatus: state.filterStatus } : {}))
|
|
27
|
+
: {})), (state.filterStatus ? { filterStatus: state.filterStatus } : {})), (state.filterStartDate
|
|
28
|
+
? { filterStartDate: state.filterStartDate }
|
|
29
|
+
: {})), (state.filterEndDate ? { filterEndDate: state.filterEndDate } : {})));
|
|
28
30
|
}, [
|
|
29
31
|
state.currentPage,
|
|
30
32
|
state.filterEnabled,
|
|
31
33
|
state.filterStatus,
|
|
34
|
+
state.filterStartDate,
|
|
35
|
+
state.filterEndDate,
|
|
32
36
|
state.pageLimit,
|
|
33
37
|
debouncedQuery,
|
|
34
38
|
(_a = workspace === null || workspace === void 0 ? void 0 : workspace.school) === null || _a === void 0 ? void 0 : _a.id,
|
|
@@ -343,6 +347,8 @@ export const usePushCampaignModule = () => {
|
|
|
343
347
|
filters: {
|
|
344
348
|
filterEnabled: undefined,
|
|
345
349
|
filterStatus: undefined,
|
|
350
|
+
filterStartDate: undefined,
|
|
351
|
+
filterEndDate: undefined,
|
|
346
352
|
},
|
|
347
353
|
},
|
|
348
354
|
});
|