catchup-library-web 2.7.1 → 2.7.3
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/index.js +92 -70
- package/dist/index.mjs +92 -70
- package/package.json +1 -1
- package/src/components/groups/InputGroup.tsx +52 -19
- package/src/utilization/ManagementUtilization.ts +38 -28
package/dist/index.js
CHANGED
|
@@ -4106,73 +4106,95 @@ var InputGroup = ({
|
|
|
4106
4106
|
},
|
|
4107
4107
|
children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "bg-catchup-white rounded-lg overflow-hidden", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("div", { className: "space-y-6", children: [
|
|
4108
4108
|
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("p", { className: "text-md text-catchup-gray-400 pl-2", children: i18n_default.t("write_equation_in_double_dollars") }),
|
|
4109
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.
|
|
4110
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("
|
|
4111
|
-
|
|
4112
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.
|
|
4118
|
-
|
|
4119
|
-
|
|
4120
|
-
|
|
4121
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.
|
|
4122
|
-
|
|
4123
|
-
|
|
4124
|
-
|
|
4125
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.
|
|
4126
|
-
|
|
4127
|
-
|
|
4128
|
-
|
|
4129
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.
|
|
4130
|
-
|
|
4131
|
-
|
|
4132
|
-
] }),
|
|
4133
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.
|
|
4134
|
-
|
|
4135
|
-
|
|
4136
|
-
|
|
4137
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.
|
|
4138
|
-
|
|
4139
|
-
|
|
4140
|
-
|
|
4141
|
-
|
|
4142
|
-
|
|
4143
|
-
|
|
4144
|
-
|
|
4145
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.
|
|
4146
|
-
|
|
4147
|
-
|
|
4148
|
-
|
|
4149
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.
|
|
4150
|
-
|
|
4151
|
-
|
|
4152
|
-
|
|
4153
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.
|
|
4154
|
-
|
|
4155
|
-
|
|
4156
|
-
|
|
4157
|
-
/* @__PURE__ */ (0, import_jsx_runtime25.
|
|
4158
|
-
|
|
4159
|
-
|
|
4160
|
-
|
|
4161
|
-
|
|
4162
|
-
|
|
4163
|
-
|
|
4164
|
-
|
|
4165
|
-
|
|
4166
|
-
|
|
4167
|
-
|
|
4168
|
-
|
|
4169
|
-
|
|
4170
|
-
|
|
4171
|
-
|
|
4172
|
-
|
|
4109
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("div", { className: "bg-catchup-gray-50 border border-catchup-gray-100 rounded-catchup-large p-4", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("table", { className: "w-full text-md", children: [
|
|
4110
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("thead", { children: /* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { className: "text-left text-catchup-gray-400", children: [
|
|
4111
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("th", { className: "pb-2 font-semibold", children: "LaTeX" }),
|
|
4112
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("th", { className: "pb-2 font-semibold" })
|
|
4113
|
+
] }) }),
|
|
4114
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tbody", { className: "font-mono text-catchup-gray-400", children: [
|
|
4115
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { children: [
|
|
4116
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: "\\frac{a}{b}" }),
|
|
4117
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(InputWithSpecialExpression_default, { value: "$$\\frac{a}{b}$$" }) })
|
|
4118
|
+
] }),
|
|
4119
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { children: [
|
|
4120
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: "x^{2}" }),
|
|
4121
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(InputWithSpecialExpression_default, { value: "$$x^{2}$$" }) })
|
|
4122
|
+
] }),
|
|
4123
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { children: [
|
|
4124
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: "x_{i}" }),
|
|
4125
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(InputWithSpecialExpression_default, { value: "$$x_{i}$$" }) })
|
|
4126
|
+
] }),
|
|
4127
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { children: [
|
|
4128
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: "\\sqrt{x}" }),
|
|
4129
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(InputWithSpecialExpression_default, { value: "$$\\sqrt{x}$$" }) })
|
|
4130
|
+
] }),
|
|
4131
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { children: [
|
|
4132
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: "\\sqrt[3]{x}" }),
|
|
4133
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(InputWithSpecialExpression_default, { value: "$$\\sqrt[3]{x}$$" }) })
|
|
4134
|
+
] }),
|
|
4135
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { children: [
|
|
4136
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: "\\sum_{i=1}^{n}" }),
|
|
4137
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4138
|
+
InputWithSpecialExpression_default,
|
|
4139
|
+
{
|
|
4140
|
+
value: "$$\\sum_{i=1}^{n}$$"
|
|
4141
|
+
}
|
|
4142
|
+
) })
|
|
4143
|
+
] }),
|
|
4144
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { children: [
|
|
4145
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: "\\int_{a}^{b}" }),
|
|
4146
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(InputWithSpecialExpression_default, { value: "$$\\int_{a}^{b}$$" }) })
|
|
4147
|
+
] }),
|
|
4148
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { children: [
|
|
4149
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: "\\infty" }),
|
|
4150
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(InputWithSpecialExpression_default, { value: "$$\\infty$$" }) })
|
|
4151
|
+
] }),
|
|
4152
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { children: [
|
|
4153
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: "\\pi" }),
|
|
4154
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(InputWithSpecialExpression_default, { value: "$$\\pi$$" }) })
|
|
4155
|
+
] }),
|
|
4156
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { children: [
|
|
4157
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: "\\alpha \\beta \\gamma" }),
|
|
4158
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4159
|
+
InputWithSpecialExpression_default,
|
|
4160
|
+
{
|
|
4161
|
+
value: "$$\\alpha \\beta \\gamma$$"
|
|
4162
|
+
}
|
|
4163
|
+
) })
|
|
4164
|
+
] }),
|
|
4165
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { children: [
|
|
4166
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: "\\leq \\geq \\neq" }),
|
|
4167
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4168
|
+
InputWithSpecialExpression_default,
|
|
4169
|
+
{
|
|
4170
|
+
value: "$$\\leq \\geq \\neq$$"
|
|
4171
|
+
}
|
|
4172
|
+
) })
|
|
4173
|
+
] }),
|
|
4174
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { children: [
|
|
4175
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: "\\pm \\times \\div" }),
|
|
4176
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4177
|
+
InputWithSpecialExpression_default,
|
|
4178
|
+
{
|
|
4179
|
+
value: "$$\\pm \\times \\div$$"
|
|
4180
|
+
}
|
|
4181
|
+
) })
|
|
4182
|
+
] }),
|
|
4183
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { children: [
|
|
4184
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: "\\log_{a}{b}" }),
|
|
4185
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(InputWithSpecialExpression_default, { value: "$$\\log_{a}{b}$$" }) })
|
|
4186
|
+
] }),
|
|
4187
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsxs)("tr", { children: [
|
|
4188
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: "\\sin \\cos \\tan" }),
|
|
4189
|
+
/* @__PURE__ */ (0, import_jsx_runtime25.jsx)("td", { className: "py-1", children: /* @__PURE__ */ (0, import_jsx_runtime25.jsx)(
|
|
4190
|
+
InputWithSpecialExpression_default,
|
|
4191
|
+
{
|
|
4192
|
+
value: "$$\\sin \\cos \\tan$$"
|
|
4193
|
+
}
|
|
4194
|
+
) })
|
|
4173
4195
|
] })
|
|
4174
4196
|
] })
|
|
4175
|
-
] })
|
|
4197
|
+
] }) })
|
|
4176
4198
|
] }) })
|
|
4177
4199
|
}
|
|
4178
4200
|
);
|
|
@@ -8418,14 +8440,14 @@ var retrieveCampusDTOOptionList = (campusDTOList) => {
|
|
|
8418
8440
|
value: campusDTO.id,
|
|
8419
8441
|
text: `${campusDTO.name} (${campusDTO.brandDTO.name})`,
|
|
8420
8442
|
fullValue: campusDTO
|
|
8421
|
-
}));
|
|
8443
|
+
})).sort((a, b) => a.text.localeCompare(b.text, void 0, { numeric: true }));
|
|
8422
8444
|
};
|
|
8423
8445
|
var retrieveInstitutionDTOOptionList = (institutionDTOList) => {
|
|
8424
8446
|
return institutionDTOList.map((institutionDTO) => ({
|
|
8425
8447
|
value: institutionDTO.id,
|
|
8426
8448
|
text: `${institutionDTO.name} (${institutionDTO.campusDTO.name} - ${institutionDTO.campusDTO.brandDTO.name})`,
|
|
8427
8449
|
fullValue: institutionDTO
|
|
8428
|
-
}));
|
|
8450
|
+
})).sort((a, b) => a.text.localeCompare(b.text, void 0, { numeric: true }));
|
|
8429
8451
|
};
|
|
8430
8452
|
var retrieveSeasonDTOOptionList = (seasonDTOList) => {
|
|
8431
8453
|
return seasonDTOList.map((seasonDTO) => ({
|
|
@@ -8433,7 +8455,7 @@ var retrieveSeasonDTOOptionList = (seasonDTOList) => {
|
|
|
8433
8455
|
text: `${seasonDTO.name} (${seasonDTO.institutionDTO.name})`,
|
|
8434
8456
|
fullValue: seasonDTO
|
|
8435
8457
|
// text: `${seasonDTO.name} (${seasonDTO.institutionDTO.name} - ${seasonDTO.institutionDTO.campusDTO.name}/${seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
|
|
8436
|
-
}));
|
|
8458
|
+
})).sort((a, b) => a.text.localeCompare(b.text, void 0, { numeric: true }));
|
|
8437
8459
|
};
|
|
8438
8460
|
var retrieveGradeDTOOptionList = (gradeDTOList) => {
|
|
8439
8461
|
return gradeDTOList.map((gradeDTO) => ({
|
|
@@ -8441,7 +8463,7 @@ var retrieveGradeDTOOptionList = (gradeDTOList) => {
|
|
|
8441
8463
|
text: `${gradeDTO.name} (${gradeDTO.seasonDTO.name} - ${gradeDTO.seasonDTO.institutionDTO.name})`,
|
|
8442
8464
|
fullValue: gradeDTO
|
|
8443
8465
|
// text: `${gradeDTO.name} (${gradeDTO.seasonDTO.name} ${gradeDTO.seasonDTO.institutionDTO.name} - ${gradeDTO.seasonDTO.institutionDTO.campusDTO.name}/${gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
|
|
8444
|
-
}));
|
|
8466
|
+
})).sort((a, b) => a.text.localeCompare(b.text, void 0, { numeric: true }));
|
|
8445
8467
|
};
|
|
8446
8468
|
var retrieveBranchDTOOptionList = (branchDTOList) => {
|
|
8447
8469
|
return branchDTOList.map((branchDTO) => ({
|
|
@@ -8449,7 +8471,7 @@ var retrieveBranchDTOOptionList = (branchDTOList) => {
|
|
|
8449
8471
|
text: `${branchDTO.name} (${branchDTO.gradeDTO.name} - ${branchDTO.gradeDTO.seasonDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.name})`,
|
|
8450
8472
|
fullValue: branchDTO
|
|
8451
8473
|
// text: `${branchDTO.name} (${branchDTO.gradeDTO.name} - ${branchDTO.gradeDTO.seasonDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
|
|
8452
|
-
}));
|
|
8474
|
+
})).sort((a, b) => a.text.localeCompare(b.text, void 0, { numeric: true }));
|
|
8453
8475
|
};
|
|
8454
8476
|
var retrieveCampusDTOByUserProfileOptionList = (userProfile, selectedBrandId) => {
|
|
8455
8477
|
const campusDTOOptionList = [];
|
package/dist/index.mjs
CHANGED
|
@@ -3866,73 +3866,95 @@ var InputGroup = ({
|
|
|
3866
3866
|
},
|
|
3867
3867
|
children: /* @__PURE__ */ jsx25("div", { className: "bg-catchup-white rounded-lg overflow-hidden", children: /* @__PURE__ */ jsxs15("div", { className: "space-y-6", children: [
|
|
3868
3868
|
/* @__PURE__ */ jsx25("p", { className: "text-md text-catchup-gray-400 pl-2", children: i18n_default.t("write_equation_in_double_dollars") }),
|
|
3869
|
-
/* @__PURE__ */
|
|
3870
|
-
/* @__PURE__ */ jsx25("
|
|
3871
|
-
|
|
3872
|
-
/* @__PURE__ */ jsx25("
|
|
3873
|
-
|
|
3874
|
-
|
|
3875
|
-
|
|
3876
|
-
|
|
3877
|
-
/* @__PURE__ */
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
/* @__PURE__ */
|
|
3882
|
-
|
|
3883
|
-
|
|
3884
|
-
|
|
3885
|
-
/* @__PURE__ */
|
|
3886
|
-
|
|
3887
|
-
|
|
3888
|
-
|
|
3889
|
-
/* @__PURE__ */
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
] }),
|
|
3893
|
-
/* @__PURE__ */
|
|
3894
|
-
|
|
3895
|
-
|
|
3896
|
-
|
|
3897
|
-
/* @__PURE__ */
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
/* @__PURE__ */
|
|
3906
|
-
|
|
3907
|
-
|
|
3908
|
-
|
|
3909
|
-
/* @__PURE__ */
|
|
3910
|
-
|
|
3911
|
-
|
|
3912
|
-
|
|
3913
|
-
/* @__PURE__ */
|
|
3914
|
-
|
|
3915
|
-
|
|
3916
|
-
|
|
3917
|
-
/* @__PURE__ */
|
|
3918
|
-
|
|
3919
|
-
|
|
3920
|
-
|
|
3921
|
-
|
|
3922
|
-
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3869
|
+
/* @__PURE__ */ jsx25("div", { className: "bg-catchup-gray-50 border border-catchup-gray-100 rounded-catchup-large p-4", children: /* @__PURE__ */ jsxs15("table", { className: "w-full text-md", children: [
|
|
3870
|
+
/* @__PURE__ */ jsx25("thead", { children: /* @__PURE__ */ jsxs15("tr", { className: "text-left text-catchup-gray-400", children: [
|
|
3871
|
+
/* @__PURE__ */ jsx25("th", { className: "pb-2 font-semibold", children: "LaTeX" }),
|
|
3872
|
+
/* @__PURE__ */ jsx25("th", { className: "pb-2 font-semibold" })
|
|
3873
|
+
] }) }),
|
|
3874
|
+
/* @__PURE__ */ jsxs15("tbody", { className: "font-mono text-catchup-gray-400", children: [
|
|
3875
|
+
/* @__PURE__ */ jsxs15("tr", { children: [
|
|
3876
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: "\\frac{a}{b}" }),
|
|
3877
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: /* @__PURE__ */ jsx25(InputWithSpecialExpression_default, { value: "$$\\frac{a}{b}$$" }) })
|
|
3878
|
+
] }),
|
|
3879
|
+
/* @__PURE__ */ jsxs15("tr", { children: [
|
|
3880
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: "x^{2}" }),
|
|
3881
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: /* @__PURE__ */ jsx25(InputWithSpecialExpression_default, { value: "$$x^{2}$$" }) })
|
|
3882
|
+
] }),
|
|
3883
|
+
/* @__PURE__ */ jsxs15("tr", { children: [
|
|
3884
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: "x_{i}" }),
|
|
3885
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: /* @__PURE__ */ jsx25(InputWithSpecialExpression_default, { value: "$$x_{i}$$" }) })
|
|
3886
|
+
] }),
|
|
3887
|
+
/* @__PURE__ */ jsxs15("tr", { children: [
|
|
3888
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: "\\sqrt{x}" }),
|
|
3889
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: /* @__PURE__ */ jsx25(InputWithSpecialExpression_default, { value: "$$\\sqrt{x}$$" }) })
|
|
3890
|
+
] }),
|
|
3891
|
+
/* @__PURE__ */ jsxs15("tr", { children: [
|
|
3892
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: "\\sqrt[3]{x}" }),
|
|
3893
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: /* @__PURE__ */ jsx25(InputWithSpecialExpression_default, { value: "$$\\sqrt[3]{x}$$" }) })
|
|
3894
|
+
] }),
|
|
3895
|
+
/* @__PURE__ */ jsxs15("tr", { children: [
|
|
3896
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: "\\sum_{i=1}^{n}" }),
|
|
3897
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: /* @__PURE__ */ jsx25(
|
|
3898
|
+
InputWithSpecialExpression_default,
|
|
3899
|
+
{
|
|
3900
|
+
value: "$$\\sum_{i=1}^{n}$$"
|
|
3901
|
+
}
|
|
3902
|
+
) })
|
|
3903
|
+
] }),
|
|
3904
|
+
/* @__PURE__ */ jsxs15("tr", { children: [
|
|
3905
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: "\\int_{a}^{b}" }),
|
|
3906
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: /* @__PURE__ */ jsx25(InputWithSpecialExpression_default, { value: "$$\\int_{a}^{b}$$" }) })
|
|
3907
|
+
] }),
|
|
3908
|
+
/* @__PURE__ */ jsxs15("tr", { children: [
|
|
3909
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: "\\infty" }),
|
|
3910
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: /* @__PURE__ */ jsx25(InputWithSpecialExpression_default, { value: "$$\\infty$$" }) })
|
|
3911
|
+
] }),
|
|
3912
|
+
/* @__PURE__ */ jsxs15("tr", { children: [
|
|
3913
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: "\\pi" }),
|
|
3914
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: /* @__PURE__ */ jsx25(InputWithSpecialExpression_default, { value: "$$\\pi$$" }) })
|
|
3915
|
+
] }),
|
|
3916
|
+
/* @__PURE__ */ jsxs15("tr", { children: [
|
|
3917
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: "\\alpha \\beta \\gamma" }),
|
|
3918
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: /* @__PURE__ */ jsx25(
|
|
3919
|
+
InputWithSpecialExpression_default,
|
|
3920
|
+
{
|
|
3921
|
+
value: "$$\\alpha \\beta \\gamma$$"
|
|
3922
|
+
}
|
|
3923
|
+
) })
|
|
3924
|
+
] }),
|
|
3925
|
+
/* @__PURE__ */ jsxs15("tr", { children: [
|
|
3926
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: "\\leq \\geq \\neq" }),
|
|
3927
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: /* @__PURE__ */ jsx25(
|
|
3928
|
+
InputWithSpecialExpression_default,
|
|
3929
|
+
{
|
|
3930
|
+
value: "$$\\leq \\geq \\neq$$"
|
|
3931
|
+
}
|
|
3932
|
+
) })
|
|
3933
|
+
] }),
|
|
3934
|
+
/* @__PURE__ */ jsxs15("tr", { children: [
|
|
3935
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: "\\pm \\times \\div" }),
|
|
3936
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: /* @__PURE__ */ jsx25(
|
|
3937
|
+
InputWithSpecialExpression_default,
|
|
3938
|
+
{
|
|
3939
|
+
value: "$$\\pm \\times \\div$$"
|
|
3940
|
+
}
|
|
3941
|
+
) })
|
|
3942
|
+
] }),
|
|
3943
|
+
/* @__PURE__ */ jsxs15("tr", { children: [
|
|
3944
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: "\\log_{a}{b}" }),
|
|
3945
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: /* @__PURE__ */ jsx25(InputWithSpecialExpression_default, { value: "$$\\log_{a}{b}$$" }) })
|
|
3946
|
+
] }),
|
|
3947
|
+
/* @__PURE__ */ jsxs15("tr", { children: [
|
|
3948
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: "\\sin \\cos \\tan" }),
|
|
3949
|
+
/* @__PURE__ */ jsx25("td", { className: "py-1", children: /* @__PURE__ */ jsx25(
|
|
3950
|
+
InputWithSpecialExpression_default,
|
|
3951
|
+
{
|
|
3952
|
+
value: "$$\\sin \\cos \\tan$$"
|
|
3953
|
+
}
|
|
3954
|
+
) })
|
|
3933
3955
|
] })
|
|
3934
3956
|
] })
|
|
3935
|
-
] })
|
|
3957
|
+
] }) })
|
|
3936
3958
|
] }) })
|
|
3937
3959
|
}
|
|
3938
3960
|
);
|
|
@@ -8178,14 +8200,14 @@ var retrieveCampusDTOOptionList = (campusDTOList) => {
|
|
|
8178
8200
|
value: campusDTO.id,
|
|
8179
8201
|
text: `${campusDTO.name} (${campusDTO.brandDTO.name})`,
|
|
8180
8202
|
fullValue: campusDTO
|
|
8181
|
-
}));
|
|
8203
|
+
})).sort((a, b) => a.text.localeCompare(b.text, void 0, { numeric: true }));
|
|
8182
8204
|
};
|
|
8183
8205
|
var retrieveInstitutionDTOOptionList = (institutionDTOList) => {
|
|
8184
8206
|
return institutionDTOList.map((institutionDTO) => ({
|
|
8185
8207
|
value: institutionDTO.id,
|
|
8186
8208
|
text: `${institutionDTO.name} (${institutionDTO.campusDTO.name} - ${institutionDTO.campusDTO.brandDTO.name})`,
|
|
8187
8209
|
fullValue: institutionDTO
|
|
8188
|
-
}));
|
|
8210
|
+
})).sort((a, b) => a.text.localeCompare(b.text, void 0, { numeric: true }));
|
|
8189
8211
|
};
|
|
8190
8212
|
var retrieveSeasonDTOOptionList = (seasonDTOList) => {
|
|
8191
8213
|
return seasonDTOList.map((seasonDTO) => ({
|
|
@@ -8193,7 +8215,7 @@ var retrieveSeasonDTOOptionList = (seasonDTOList) => {
|
|
|
8193
8215
|
text: `${seasonDTO.name} (${seasonDTO.institutionDTO.name})`,
|
|
8194
8216
|
fullValue: seasonDTO
|
|
8195
8217
|
// text: `${seasonDTO.name} (${seasonDTO.institutionDTO.name} - ${seasonDTO.institutionDTO.campusDTO.name}/${seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
|
|
8196
|
-
}));
|
|
8218
|
+
})).sort((a, b) => a.text.localeCompare(b.text, void 0, { numeric: true }));
|
|
8197
8219
|
};
|
|
8198
8220
|
var retrieveGradeDTOOptionList = (gradeDTOList) => {
|
|
8199
8221
|
return gradeDTOList.map((gradeDTO) => ({
|
|
@@ -8201,7 +8223,7 @@ var retrieveGradeDTOOptionList = (gradeDTOList) => {
|
|
|
8201
8223
|
text: `${gradeDTO.name} (${gradeDTO.seasonDTO.name} - ${gradeDTO.seasonDTO.institutionDTO.name})`,
|
|
8202
8224
|
fullValue: gradeDTO
|
|
8203
8225
|
// text: `${gradeDTO.name} (${gradeDTO.seasonDTO.name} ${gradeDTO.seasonDTO.institutionDTO.name} - ${gradeDTO.seasonDTO.institutionDTO.campusDTO.name}/${gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
|
|
8204
|
-
}));
|
|
8226
|
+
})).sort((a, b) => a.text.localeCompare(b.text, void 0, { numeric: true }));
|
|
8205
8227
|
};
|
|
8206
8228
|
var retrieveBranchDTOOptionList = (branchDTOList) => {
|
|
8207
8229
|
return branchDTOList.map((branchDTO) => ({
|
|
@@ -8209,7 +8231,7 @@ var retrieveBranchDTOOptionList = (branchDTOList) => {
|
|
|
8209
8231
|
text: `${branchDTO.name} (${branchDTO.gradeDTO.name} - ${branchDTO.gradeDTO.seasonDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.name})`,
|
|
8210
8232
|
fullValue: branchDTO
|
|
8211
8233
|
// text: `${branchDTO.name} (${branchDTO.gradeDTO.name} - ${branchDTO.gradeDTO.seasonDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
|
|
8212
|
-
}));
|
|
8234
|
+
})).sort((a, b) => a.text.localeCompare(b.text, void 0, { numeric: true }));
|
|
8213
8235
|
};
|
|
8214
8236
|
var retrieveCampusDTOByUserProfileOptionList = (userProfile, selectedBrandId) => {
|
|
8215
8237
|
const campusDTOOptionList = [];
|
package/package.json
CHANGED
|
@@ -8,7 +8,6 @@ import { IOptionProps } from "../../properties/CommonProperties";
|
|
|
8
8
|
import BaseModal from "../modals/BaseModal";
|
|
9
9
|
import InputWithSpecialExpression from "../texts/InputWithSpecialExpression";
|
|
10
10
|
|
|
11
|
-
|
|
12
11
|
const InputGroup = ({
|
|
13
12
|
type,
|
|
14
13
|
title,
|
|
@@ -47,7 +46,6 @@ const InputGroup = ({
|
|
|
47
46
|
}
|
|
48
47
|
}, [textAreaRef, value]);
|
|
49
48
|
|
|
50
|
-
|
|
51
49
|
const retrieveNullableOptionList = () => {
|
|
52
50
|
if (!optionList) return [];
|
|
53
51
|
const currentOptionList = {
|
|
@@ -109,9 +107,6 @@ const InputGroup = ({
|
|
|
109
107
|
{i18n.t("write_equation_in_double_dollars")}
|
|
110
108
|
</p>
|
|
111
109
|
<div className="bg-catchup-gray-50 border border-catchup-gray-100 rounded-catchup-large p-4">
|
|
112
|
-
<p className="text-md font-semibold pl-2 py-1 text-catchup-blue-400">
|
|
113
|
-
{i18n.t("latex_cheat_sheet")}
|
|
114
|
-
</p>
|
|
115
110
|
<table className="w-full text-md">
|
|
116
111
|
<thead>
|
|
117
112
|
<tr className="text-left text-catchup-gray-400">
|
|
@@ -122,59 +117,97 @@ const InputGroup = ({
|
|
|
122
117
|
<tbody className="font-mono text-catchup-gray-400">
|
|
123
118
|
<tr>
|
|
124
119
|
<td className="py-1">{"\\frac{a}{b}"}</td>
|
|
125
|
-
<td className="py-1"
|
|
120
|
+
<td className="py-1">
|
|
121
|
+
<InputWithSpecialExpression value={"$$\\frac{a}{b}$$"} />
|
|
122
|
+
</td>
|
|
126
123
|
</tr>
|
|
127
124
|
<tr>
|
|
128
125
|
<td className="py-1">{"x^{2}"}</td>
|
|
129
|
-
<td className="py-1"
|
|
126
|
+
<td className="py-1">
|
|
127
|
+
<InputWithSpecialExpression value={"$$x^{2}$$"} />
|
|
128
|
+
</td>
|
|
130
129
|
</tr>
|
|
131
130
|
<tr>
|
|
132
131
|
<td className="py-1">{"x_{i}"}</td>
|
|
133
|
-
<td className="py-1"
|
|
132
|
+
<td className="py-1">
|
|
133
|
+
<InputWithSpecialExpression value={"$$x_{i}$$"} />
|
|
134
|
+
</td>
|
|
134
135
|
</tr>
|
|
135
136
|
<tr>
|
|
136
137
|
<td className="py-1">{"\\sqrt{x}"}</td>
|
|
137
|
-
<td className="py-1"
|
|
138
|
+
<td className="py-1">
|
|
139
|
+
<InputWithSpecialExpression value={"$$\\sqrt{x}$$"} />
|
|
140
|
+
</td>
|
|
138
141
|
</tr>
|
|
139
142
|
<tr>
|
|
140
143
|
<td className="py-1">{"\\sqrt[3]{x}"}</td>
|
|
141
|
-
<td className="py-1"
|
|
144
|
+
<td className="py-1">
|
|
145
|
+
<InputWithSpecialExpression value={"$$\\sqrt[3]{x}$$"} />
|
|
146
|
+
</td>
|
|
142
147
|
</tr>
|
|
143
148
|
<tr>
|
|
144
149
|
<td className="py-1">{"\\sum_{i=1}^{n}"}</td>
|
|
145
|
-
<td className="py-1"
|
|
150
|
+
<td className="py-1">
|
|
151
|
+
<InputWithSpecialExpression
|
|
152
|
+
value={"$$\\sum_{i=1}^{n}$$"}
|
|
153
|
+
/>
|
|
154
|
+
</td>
|
|
146
155
|
</tr>
|
|
147
156
|
<tr>
|
|
148
157
|
<td className="py-1">{"\\int_{a}^{b}"}</td>
|
|
149
|
-
<td className="py-1"
|
|
158
|
+
<td className="py-1">
|
|
159
|
+
<InputWithSpecialExpression value={"$$\\int_{a}^{b}$$"} />
|
|
160
|
+
</td>
|
|
150
161
|
</tr>
|
|
151
162
|
<tr>
|
|
152
163
|
<td className="py-1">{"\\infty"}</td>
|
|
153
|
-
<td className="py-1"
|
|
164
|
+
<td className="py-1">
|
|
165
|
+
<InputWithSpecialExpression value={"$$\\infty$$"} />
|
|
166
|
+
</td>
|
|
154
167
|
</tr>
|
|
155
168
|
<tr>
|
|
156
169
|
<td className="py-1">{"\\pi"}</td>
|
|
157
|
-
<td className="py-1"
|
|
170
|
+
<td className="py-1">
|
|
171
|
+
<InputWithSpecialExpression value={"$$\\pi$$"} />
|
|
172
|
+
</td>
|
|
158
173
|
</tr>
|
|
159
174
|
<tr>
|
|
160
175
|
<td className="py-1">{"\\alpha \\beta \\gamma"}</td>
|
|
161
|
-
<td className="py-1"
|
|
176
|
+
<td className="py-1">
|
|
177
|
+
<InputWithSpecialExpression
|
|
178
|
+
value={"$$\\alpha \\beta \\gamma$$"}
|
|
179
|
+
/>
|
|
180
|
+
</td>
|
|
162
181
|
</tr>
|
|
163
182
|
<tr>
|
|
164
183
|
<td className="py-1">{"\\leq \\geq \\neq"}</td>
|
|
165
|
-
<td className="py-1"
|
|
184
|
+
<td className="py-1">
|
|
185
|
+
<InputWithSpecialExpression
|
|
186
|
+
value={"$$\\leq \\geq \\neq$$"}
|
|
187
|
+
/>
|
|
188
|
+
</td>
|
|
166
189
|
</tr>
|
|
167
190
|
<tr>
|
|
168
191
|
<td className="py-1">{"\\pm \\times \\div"}</td>
|
|
169
|
-
<td className="py-1"
|
|
192
|
+
<td className="py-1">
|
|
193
|
+
<InputWithSpecialExpression
|
|
194
|
+
value={"$$\\pm \\times \\div$$"}
|
|
195
|
+
/>
|
|
196
|
+
</td>
|
|
170
197
|
</tr>
|
|
171
198
|
<tr>
|
|
172
199
|
<td className="py-1">{"\\log_{a}{b}"}</td>
|
|
173
|
-
<td className="py-1"
|
|
200
|
+
<td className="py-1">
|
|
201
|
+
<InputWithSpecialExpression value={"$$\\log_{a}{b}$$"} />
|
|
202
|
+
</td>
|
|
174
203
|
</tr>
|
|
175
204
|
<tr>
|
|
176
205
|
<td className="py-1">{"\\sin \\cos \\tan"}</td>
|
|
177
|
-
<td className="py-1"
|
|
206
|
+
<td className="py-1">
|
|
207
|
+
<InputWithSpecialExpression
|
|
208
|
+
value={"$$\\sin \\cos \\tan$$"}
|
|
209
|
+
/>
|
|
210
|
+
</td>
|
|
178
211
|
</tr>
|
|
179
212
|
</tbody>
|
|
180
213
|
</table>
|
|
@@ -119,46 +119,56 @@ export const retrieveBrandDTOOptionList = (brandDTOList: any) => {
|
|
|
119
119
|
};
|
|
120
120
|
|
|
121
121
|
export const retrieveCampusDTOOptionList = (campusDTOList: any) => {
|
|
122
|
-
return campusDTOList
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
122
|
+
return campusDTOList
|
|
123
|
+
.map((campusDTO: any) => ({
|
|
124
|
+
value: campusDTO.id,
|
|
125
|
+
text: `${campusDTO.name} (${campusDTO.brandDTO.name})`,
|
|
126
|
+
fullValue: campusDTO,
|
|
127
|
+
}))
|
|
128
|
+
.sort((a: any, b: any) => a.text.localeCompare(b.text, undefined, { numeric: true }));
|
|
127
129
|
};
|
|
128
130
|
|
|
129
131
|
export const retrieveInstitutionDTOOptionList = (institutionDTOList: any) => {
|
|
130
|
-
return institutionDTOList
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
132
|
+
return institutionDTOList
|
|
133
|
+
.map((institutionDTO: any) => ({
|
|
134
|
+
value: institutionDTO.id,
|
|
135
|
+
text: `${institutionDTO.name} (${institutionDTO.campusDTO.name} - ${institutionDTO.campusDTO.brandDTO.name})`,
|
|
136
|
+
fullValue: institutionDTO,
|
|
137
|
+
}))
|
|
138
|
+
.sort((a: any, b: any) => a.text.localeCompare(b.text, undefined, { numeric: true }));
|
|
135
139
|
};
|
|
136
140
|
|
|
137
141
|
export const retrieveSeasonDTOOptionList = (seasonDTOList: any) => {
|
|
138
|
-
return seasonDTOList
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
142
|
+
return seasonDTOList
|
|
143
|
+
.map((seasonDTO: any) => ({
|
|
144
|
+
value: seasonDTO.id,
|
|
145
|
+
text: `${seasonDTO.name} (${seasonDTO.institutionDTO.name})`,
|
|
146
|
+
fullValue: seasonDTO,
|
|
147
|
+
// text: `${seasonDTO.name} (${seasonDTO.institutionDTO.name} - ${seasonDTO.institutionDTO.campusDTO.name}/${seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
|
|
148
|
+
}))
|
|
149
|
+
.sort((a: any, b: any) => a.text.localeCompare(b.text, undefined, { numeric: true }));
|
|
144
150
|
};
|
|
145
151
|
|
|
146
152
|
export const retrieveGradeDTOOptionList = (gradeDTOList: any) => {
|
|
147
|
-
return gradeDTOList
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
+
return gradeDTOList
|
|
154
|
+
.map((gradeDTO: any) => ({
|
|
155
|
+
value: gradeDTO.id,
|
|
156
|
+
text: `${gradeDTO.name} (${gradeDTO.seasonDTO.name} - ${gradeDTO.seasonDTO.institutionDTO.name})`,
|
|
157
|
+
fullValue: gradeDTO,
|
|
158
|
+
// text: `${gradeDTO.name} (${gradeDTO.seasonDTO.name} ${gradeDTO.seasonDTO.institutionDTO.name} - ${gradeDTO.seasonDTO.institutionDTO.campusDTO.name}/${gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
|
|
159
|
+
}))
|
|
160
|
+
.sort((a: any, b: any) => a.text.localeCompare(b.text, undefined, { numeric: true }));
|
|
153
161
|
};
|
|
154
162
|
|
|
155
163
|
export const retrieveBranchDTOOptionList = (branchDTOList: any) => {
|
|
156
|
-
return branchDTOList
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
164
|
+
return branchDTOList
|
|
165
|
+
.map((branchDTO: any) => ({
|
|
166
|
+
value: branchDTO.id,
|
|
167
|
+
text: `${branchDTO.name} (${branchDTO.gradeDTO.name} - ${branchDTO.gradeDTO.seasonDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.name})`,
|
|
168
|
+
fullValue: branchDTO,
|
|
169
|
+
// text: `${branchDTO.name} (${branchDTO.gradeDTO.name} - ${branchDTO.gradeDTO.seasonDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.name}/${branchDTO.gradeDTO.seasonDTO.institutionDTO.campusDTO.brandDTO.name})`,
|
|
170
|
+
}))
|
|
171
|
+
.sort((a: any, b: any) => a.text.localeCompare(b.text, undefined, { numeric: true }));
|
|
162
172
|
};
|
|
163
173
|
|
|
164
174
|
export const retrieveCampusDTOByUserProfileOptionList = (
|