mario-education 2.4.90-beta → 2.4.91-beta
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.
|
@@ -8,4 +8,5 @@ export declare const renderQuestionText: (params: any) => JSX.Element;
|
|
|
8
8
|
export declare const renderActions: ({ params, edit, remove }: ActionProps) => JSX.Element;
|
|
9
9
|
export declare const renderCategory: (params: any) => JSX.Element;
|
|
10
10
|
export declare const renderType: (params: any) => JSX.Element;
|
|
11
|
+
export declare const renderUserQuestion: (params: any) => JSX.Element;
|
|
11
12
|
export {};
|
package/dist/index.js
CHANGED
|
@@ -11216,6 +11216,11 @@ var renderType = function renderType(params) {
|
|
|
11216
11216
|
});
|
|
11217
11217
|
return type ? React__default.createElement("div", null, type.label) : React__default.createElement("div", null);
|
|
11218
11218
|
};
|
|
11219
|
+
var renderUserQuestion = function renderUserQuestion(params) {
|
|
11220
|
+
var _params$data10;
|
|
11221
|
+
|
|
11222
|
+
return React__default.createElement("div", null, params === null || params === void 0 ? void 0 : (_params$data10 = params.data) === null || _params$data10 === void 0 ? void 0 : _params$data10.userForQuestion);
|
|
11223
|
+
};
|
|
11219
11224
|
|
|
11220
11225
|
var QUESTION_URL$1 = "/admin/question-bank";
|
|
11221
11226
|
var CREATE_QUESTION_URL = "/admin/create-question";
|
|
@@ -11282,6 +11287,12 @@ var useQuestionList$1 = function useQuestionList(isDefaultQuestion, isDefaultCla
|
|
|
11282
11287
|
dispatch(marioCore.setLoading(true));
|
|
11283
11288
|
|
|
11284
11289
|
var _temp4 = _catch(function () {
|
|
11290
|
+
var filter = filters;
|
|
11291
|
+
|
|
11292
|
+
if (!!isDefaultClassReflection && !isDefaultQuestion) {
|
|
11293
|
+
delete filter.isDefaultQuestion;
|
|
11294
|
+
}
|
|
11295
|
+
|
|
11285
11296
|
return Promise.resolve(get$2(filters)).then(function (res) {
|
|
11286
11297
|
var _res$data = res.data,
|
|
11287
11298
|
items = _res$data.items,
|
|
@@ -11374,7 +11385,7 @@ var useQuestionList$1 = function useQuestionList(isDefaultQuestion, isDefaultCla
|
|
|
11374
11385
|
|
|
11375
11386
|
if (isDefaultQuestion && !isDefaultClassReflection) {
|
|
11376
11387
|
type = TYPE_QUESTION.OneToOne;
|
|
11377
|
-
} else if (
|
|
11388
|
+
} else if (isDefaultClassReflection) {
|
|
11378
11389
|
type = TYPE_QUESTION.ClassReflection;
|
|
11379
11390
|
} else if (isDefaultConference) {
|
|
11380
11391
|
type = TYPE_QUESTION.Conference;
|
|
@@ -11426,7 +11437,15 @@ var useQuestionList$1 = function useQuestionList(isDefaultQuestion, isDefaultCla
|
|
|
11426
11437
|
}
|
|
11427
11438
|
}];
|
|
11428
11439
|
var gridOptions = {
|
|
11429
|
-
columnDefs: isDefaultQuestion
|
|
11440
|
+
columnDefs: isDefaultQuestion && !isDefaultClassReflection ? [].concat(columnDefs, [{
|
|
11441
|
+
headerName: "Order",
|
|
11442
|
+
rowDrag: true
|
|
11443
|
+
}]) : isDefaultClassReflection ? [].concat(columnDefs, [{
|
|
11444
|
+
headerName: "User for",
|
|
11445
|
+
cellRendererFramework: function cellRendererFramework(params) {
|
|
11446
|
+
return renderUserQuestion(params);
|
|
11447
|
+
}
|
|
11448
|
+
}, {
|
|
11430
11449
|
headerName: "Order",
|
|
11431
11450
|
rowDrag: true
|
|
11432
11451
|
}]) : columnDefs,
|
|
@@ -15084,7 +15103,7 @@ var tabs$3 = [{
|
|
|
15084
15103
|
title: "Class Reflection Question",
|
|
15085
15104
|
component: function component() {
|
|
15086
15105
|
return React__default.createElement(QuestionBankList, {
|
|
15087
|
-
isDefaultQuestion:
|
|
15106
|
+
isDefaultQuestion: false,
|
|
15088
15107
|
isDefaultClassReflection: true
|
|
15089
15108
|
});
|
|
15090
15109
|
}
|