@instructure/platform-rubrics 0.3.0 → 0.5.0
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/_internal/RubricAssessment/rubricUtils.d.ts +14 -0
- package/dist/_internal/RubricAssessment/rubricUtils.d.ts.map +1 -1
- package/dist/_internal/RubricAssignment/hooks/useAssignmentRubric.d.ts +4 -0
- package/dist/_internal/RubricAssignment/hooks/useAssignmentRubric.d.ts.map +1 -0
- package/dist/_internal/RubricAssignment/queries/gql.d.ts +4 -0
- package/dist/_internal/RubricAssignment/queries/gql.d.ts.map +1 -0
- package/dist/_internal/RubricAssignment/queries/mutations.d.ts +22 -0
- package/dist/_internal/RubricAssignment/queries/mutations.d.ts.map +1 -0
- package/dist/_internal/RubricAssignment/queries/queries.d.ts +92 -0
- package/dist/_internal/RubricAssignment/queries/queries.d.ts.map +1 -0
- package/dist/_internal/RubricAssignment/types.d.ts +6 -0
- package/dist/_internal/RubricAssignment/types.d.ts.map +1 -0
- package/dist/_internal/RubricForm/useSaveRubricForm.d.ts.map +1 -1
- package/dist/_internal/ViewRubrics/queries/gql.d.ts.map +1 -1
- package/dist/_internal/ViewRubrics/queries/queries.d.ts +3 -29
- package/dist/_internal/ViewRubrics/queries/queries.d.ts.map +1 -1
- package/dist/_internal/ViewRubrics/useRubricsQuery.d.ts.map +1 -1
- package/dist/_internal/constants/i18n.d.ts +61 -0
- package/dist/_internal/constants/i18n.d.ts.map +1 -1
- package/dist/_internal/hooks/useRubricsPlatformUiContext.d.ts +1 -0
- package/dist/_internal/hooks/useRubricsPlatformUiContext.d.ts.map +1 -1
- package/dist/_internal/utils/rubricMapping.d.ts +8 -8
- package/dist/_internal/utils/rubricMapping.d.ts.map +1 -1
- package/dist/canvas/RubricAssessment/AssessmentHeader.d.ts +1 -2
- package/dist/canvas/RubricAssessment/AssessmentHeader.d.ts.map +1 -1
- package/dist/canvas/RubricAssessment/InstructorScore.d.ts.map +1 -1
- package/dist/canvas/RubricAssessment/RubricAssessmentContainer.d.ts.map +1 -1
- package/dist/canvas/RubricAssessment/TraditionalView.d.ts.map +1 -1
- package/dist/canvas/RubricAssessment/TraditionalViewCriterionRating.d.ts +2 -0
- package/dist/canvas/RubricAssessment/TraditionalViewCriterionRating.d.ts.map +1 -1
- package/dist/canvas/RubricAssessment/TraditionalViewCriterionRatings.d.ts.map +1 -1
- package/dist/canvas/RubricAssessment/TraditionalViewTableFooter.d.ts +14 -0
- package/dist/canvas/RubricAssessment/TraditionalViewTableFooter.d.ts.map +1 -0
- package/dist/canvas/RubricAssessment/ViewModeSelect.d.ts +1 -2
- package/dist/canvas/RubricAssessment/ViewModeSelect.d.ts.map +1 -1
- package/dist/canvas/RubricAssignment/components/DeleteConfirmModal.d.ts +8 -0
- package/dist/canvas/RubricAssignment/components/DeleteConfirmModal.d.ts.map +1 -0
- package/dist/canvas/{RubricForm → RubricAssignment}/components/EditConfirmModal.d.ts +1 -2
- package/dist/canvas/RubricAssignment/components/EditConfirmModal.d.ts.map +1 -0
- package/dist/canvas/RubricAssignment/components/RubricAssignmentContainer.d.ts +29 -0
- package/dist/canvas/RubricAssignment/components/RubricAssignmentContainer.d.ts.map +1 -0
- package/dist/canvas/RubricAssignment/components/RubricCreateModal.d.ts +15 -0
- package/dist/canvas/RubricAssignment/components/RubricCreateModal.d.ts.map +1 -0
- package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricContextSelect.d.ts +9 -0
- package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricContextSelect.d.ts.map +1 -0
- package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricSearchFooter.d.ts +7 -0
- package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricSearchFooter.d.ts.map +1 -0
- package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricSearchRow.d.ts +9 -0
- package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricSearchRow.d.ts.map +1 -0
- package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricSearchTray.d.ts +10 -0
- package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricSearchTray.d.ts.map +1 -0
- package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricsForContext.d.ts +12 -0
- package/dist/canvas/RubricAssignment/components/RubricSearchTray/RubricsForContext.d.ts.map +1 -0
- package/dist/canvas/RubricAssignment/components/RubricSelfAssessmentSettings.d.ts +14 -0
- package/dist/canvas/RubricAssignment/components/RubricSelfAssessmentSettings.d.ts.map +1 -0
- package/dist/canvas/RubricForm/components/RubricCriteriaContainer.d.ts +2 -1
- package/dist/canvas/RubricForm/components/RubricCriteriaContainer.d.ts.map +1 -1
- package/dist/canvas/RubricForm/components/RubricCriteriaRow.d.ts +4 -1
- package/dist/canvas/RubricForm/components/RubricCriteriaRow.d.ts.map +1 -1
- package/dist/canvas/RubricForm/components/RubricFormFooter.d.ts +1 -2
- package/dist/canvas/RubricForm/components/RubricFormFooter.d.ts.map +1 -1
- package/dist/canvas/RubricForm/index.d.ts +7 -10
- package/dist/canvas/RubricForm/index.d.ts.map +1 -1
- package/dist/canvas/ViewRubrics/ImportRubric/ImportFailuresModal.d.ts +9 -0
- package/dist/canvas/ViewRubrics/ImportRubric/ImportFailuresModal.d.ts.map +1 -0
- package/dist/canvas/ViewRubrics/ImportRubric/ImportRubricTray.d.ts +11 -0
- package/dist/canvas/ViewRubrics/ImportRubric/ImportRubricTray.d.ts.map +1 -0
- package/dist/canvas/ViewRubrics/ImportRubric/ImportTable.d.ts +8 -0
- package/dist/canvas/ViewRubrics/ImportRubric/ImportTable.d.ts.map +1 -0
- package/dist/canvas/ViewRubrics/ImportRubric/index.d.ts +11 -0
- package/dist/canvas/ViewRubrics/ImportRubric/index.d.ts.map +1 -0
- package/dist/canvas/ViewRubrics/RubricPopover.d.ts +1 -0
- package/dist/canvas/ViewRubrics/RubricPopover.d.ts.map +1 -1
- package/dist/canvas/ViewRubrics/RubricTable.d.ts +1 -0
- package/dist/canvas/ViewRubrics/RubricTable.d.ts.map +1 -1
- package/dist/canvas/ViewRubrics/ViewRubricsPaginated.d.ts.map +1 -1
- package/dist/canvas/ViewRubrics/shared.d.ts +10 -24
- package/dist/canvas/ViewRubrics/shared.d.ts.map +1 -1
- package/dist/canvas/index.d.ts +5 -0
- package/dist/canvas/index.d.ts.map +1 -1
- package/dist/canvas.js +6298 -5171
- package/dist/chunks/{useRubricsPlatformUiContext-BAUrpHCz.js → useRubricsPlatformUiContext-ChUFxfgb.js} +151 -70
- package/dist/foundation.js +1 -1
- package/locales/en.json +61 -0
- package/package.json +11 -3
- package/dist/canvas/RubricForm/components/EditConfirmModal.d.ts.map +0 -1
|
@@ -37,7 +37,7 @@ const d = {
|
|
|
37
37
|
rubricFormCannotUpdate: "Rubrics cannot be modified once they have been used in more than one place. Any saved changes will create a new rubric.",
|
|
38
38
|
rubricFormLimitedEdit: "This rubric has already been used for grading. Any changes made may impact existing student scores or grading data.",
|
|
39
39
|
rubricFormSaveError: "There was an error saving the rubric."
|
|
40
|
-
},
|
|
40
|
+
}, R = {
|
|
41
41
|
footerCreateRubric: "Create Rubric",
|
|
42
42
|
footerPreviewRubric: "Preview Rubric",
|
|
43
43
|
footerSaveAsDraft: "Save as Draft",
|
|
@@ -59,14 +59,14 @@ const d = {
|
|
|
59
59
|
scoringTypeScored: "Scored",
|
|
60
60
|
scoringTypeSelectLabel: "Scoring",
|
|
61
61
|
scoringTypeUnscored: "Unscored"
|
|
62
|
-
},
|
|
62
|
+
}, v = {
|
|
63
63
|
hideOutcomeResultsLabel: "Don't post to Learning Mastery Gradebook",
|
|
64
64
|
hideScoreTotalLabel: "Hide rubric score total from students",
|
|
65
65
|
useForGradingLabel: "Use this rubric for assignment grading"
|
|
66
|
-
},
|
|
66
|
+
}, S = {
|
|
67
67
|
confirmToContinueHeader: "Confirm to continue",
|
|
68
68
|
gradingHistoryWarning: "This rubric has already been used for grading. Saving changes may alter student scores or grading history. Are you sure you want to proceed?"
|
|
69
|
-
},
|
|
69
|
+
}, L = {
|
|
70
70
|
saveConfirmModalLabel: "Rubric Save Confirmation Dialog",
|
|
71
71
|
saveConfirmModalSave: "Save"
|
|
72
72
|
}, M = {
|
|
@@ -82,7 +82,7 @@ const d = {
|
|
|
82
82
|
duplicateCriterionLabel: "Duplicate Criterion",
|
|
83
83
|
editCriterionLabel: "Edit Criterion",
|
|
84
84
|
viewOutcomeCriterionLabel: "View Outcome Criterion"
|
|
85
|
-
},
|
|
85
|
+
}, A = {
|
|
86
86
|
outcomeCriterionModalCriterionName: "Criterion Name",
|
|
87
87
|
outcomeCriterionModalDescription: "Description",
|
|
88
88
|
outcomeCriterionModalDisplay: "Display",
|
|
@@ -107,7 +107,7 @@ const d = {
|
|
|
107
107
|
errorPageWhatHappened: "What happened?",
|
|
108
108
|
errorPageYourEmailAddress: "Your Email Address",
|
|
109
109
|
rubricErrorPageCategory: "Edit Rubric Error Page"
|
|
110
|
-
},
|
|
110
|
+
}, P = {
|
|
111
111
|
criterionModalCreateTitle: "Create New Criterion",
|
|
112
112
|
criterionModalEditTitle: "Edit Criterion",
|
|
113
113
|
criterionModalEnableRange: "Enable Range",
|
|
@@ -117,12 +117,12 @@ const d = {
|
|
|
117
117
|
criterionModalPointsPossible: "Points Possible",
|
|
118
118
|
criterionModalRatingScaleHeading: "Rating Scale",
|
|
119
119
|
criterionModalSaveCriterion: "Save Criterion"
|
|
120
|
-
},
|
|
120
|
+
}, F = {
|
|
121
121
|
criterionLongDescriptionLabel: "Criterion Description",
|
|
122
122
|
criterionLongDescriptionPlaceholder: "Enter the description",
|
|
123
123
|
criterionNameLabel: "Criterion Name",
|
|
124
124
|
criterionNamePlaceholder: "Enter the name"
|
|
125
|
-
},
|
|
125
|
+
}, D = {
|
|
126
126
|
pointRangeLabel: "Point Range",
|
|
127
127
|
pointsLabel: "Points",
|
|
128
128
|
rangeStartPrefix: ">%{rangeStart} to ",
|
|
@@ -132,7 +132,7 @@ const d = {
|
|
|
132
132
|
ratingsHeaderDisplay: "Display",
|
|
133
133
|
removeRatingAriaLabel: "Remove %{ratingName} Rating",
|
|
134
134
|
reorderRatingAriaLabel: "Reorder %{ratingName} Rating"
|
|
135
|
-
},
|
|
135
|
+
}, E = {
|
|
136
136
|
addRatingButtonLabel: "Add Rating",
|
|
137
137
|
addRatingRowLabel: "Add New Rating",
|
|
138
138
|
addRatingScreenReaderLabel: "Add new rating"
|
|
@@ -141,37 +141,37 @@ const d = {
|
|
|
141
141
|
moveDownLabel: "Move Down",
|
|
142
142
|
moveUpLabel: "Move Up",
|
|
143
143
|
ratingOptionsLabel: "Rating Options"
|
|
144
|
-
},
|
|
144
|
+
}, N = {
|
|
145
145
|
ratingScaleColRating: "Rating",
|
|
146
146
|
ratingScaleColScale: "Scale",
|
|
147
147
|
ratingScaleSummary: "Rating Scale: %{ratingsLength}"
|
|
148
148
|
}, H = {
|
|
149
149
|
criterionMovedAnnouncement: "Criterion moved to position %{position}"
|
|
150
|
-
},
|
|
150
|
+
}, x = {
|
|
151
151
|
aiGeneratedIconTitle: "Ignite AI Generated",
|
|
152
152
|
freeformCommentAreaHint: "This area will be used by the assessor to leave comments related to this criterion.",
|
|
153
153
|
outcomeCannotEditTooltip: "An outcome can't be edited",
|
|
154
154
|
reorderCriterionAriaLabel: "Reorder %{criterionName} Criterion"
|
|
155
|
-
}, B = {
|
|
156
|
-
criterionOptionsLabel: "Criterion Options"
|
|
157
155
|
}, k = {
|
|
156
|
+
criterionOptionsLabel: "Criterion Options"
|
|
157
|
+
}, B = {
|
|
158
158
|
createFromOutcomeButton: "Create From Outcome",
|
|
159
159
|
draftNewCriterionButton: "Draft New Criterion",
|
|
160
160
|
newCriteriaActionsHeader: "New Criteria Actions",
|
|
161
161
|
numberColumnHeader: "Number",
|
|
162
162
|
reorderColumnHeader: "Reorder"
|
|
163
|
-
},
|
|
163
|
+
}, O = {
|
|
164
164
|
assessmentRatingButtonLabel: "Rating Button %{buttonLabel} %{selectedText}",
|
|
165
165
|
assessmentRatingSelected: "Selected",
|
|
166
166
|
assessmentRatingSelectedAndSelfAssessment: "Selected and Self Assessment",
|
|
167
167
|
assessmentRatingSelfAssessment: "Self Assessment"
|
|
168
|
-
},
|
|
168
|
+
}, U = {
|
|
169
169
|
assessmentComment: "Comment",
|
|
170
170
|
assessmentCommentAriaLabel: "Assessment Comment",
|
|
171
171
|
assessmentCommentLibraryAssistiveText: "Select from saved comments",
|
|
172
172
|
assessmentCommentLibraryEllipsis: "…",
|
|
173
173
|
assessmentLongDescriptionHeader: "Criterion Long Description"
|
|
174
|
-
},
|
|
174
|
+
}, G = {
|
|
175
175
|
assessmentSelfAssessmentCommentedAt: ", %{dueDate} at %{time}",
|
|
176
176
|
assessmentSelfAssessmentEvaluate: "Evaluate your work as you believe your instructor would.",
|
|
177
177
|
assessmentSelfAssessmentPrompt: "How well did you do?",
|
|
@@ -190,7 +190,7 @@ const d = {
|
|
|
190
190
|
}, q = {
|
|
191
191
|
assessmentAiUsageButton: "AI Assisted",
|
|
192
192
|
assessmentAiUsageDescription: "To support more fair and consistent grading, AI was used to assist in the grading process. All final grades are determined by your instructor."
|
|
193
|
-
},
|
|
193
|
+
}, z = {
|
|
194
194
|
assessmentOutcomeCalculationMethod: "Calculation Method",
|
|
195
195
|
assessmentOutcomeExample: "Example",
|
|
196
196
|
assessmentOutcomePopoverLabel: "Rubric Outcome Popover",
|
|
@@ -199,15 +199,17 @@ const d = {
|
|
|
199
199
|
outcomeContextTagCourseLevel: "This is a course-level outcome",
|
|
200
200
|
outcomeContextTagInstitution: "Institution",
|
|
201
201
|
outcomeContextTagInstitutionLevel: "This is an institution-level outcome"
|
|
202
|
-
},
|
|
202
|
+
}, Y = {
|
|
203
203
|
assessmentCommentsHeader: "Comments",
|
|
204
204
|
assessmentCriteriaHeader: "Criteria",
|
|
205
205
|
assessmentPointsHeader: "Points",
|
|
206
206
|
assessmentRatingsHeader: "Ratings",
|
|
207
207
|
assessmentRubricCaption: "Rubric",
|
|
208
208
|
assessmentThreshold: "Threshold: %{threshold}",
|
|
209
|
+
assessmentTotalPointsAriaLabel: "Total Points %{assigned} out of %{possible}",
|
|
210
|
+
assessmentTotalPointsLabel: "Total Points",
|
|
209
211
|
assessmentViewLongerDescription: "view longer description"
|
|
210
|
-
},
|
|
212
|
+
}, j = {
|
|
211
213
|
assessmentClear: "Clear",
|
|
212
214
|
assessmentCommentLibrary: "Comment Library",
|
|
213
215
|
assessmentCriterionComment: "Criterion Comment",
|
|
@@ -305,14 +307,14 @@ const d = {
|
|
|
305
307
|
}, ee = {
|
|
306
308
|
criteriaAutoGeneratedLabel: "Criteria Auto-Generated",
|
|
307
309
|
noCriteriaForRegenerationTooltip: "There are no criteria available for regeneration"
|
|
308
|
-
},
|
|
310
|
+
}, re = {
|
|
309
311
|
nutritionFactsCurrentFeatureLabel: "Current Feature:",
|
|
310
312
|
nutritionFactsModalLabel: "This is a modal for AI facts",
|
|
311
313
|
nutritionFactsPermissionLevelsModalLabel: "This is a Data Permission Levels modal",
|
|
312
314
|
nutritionFactsPermissionLevelsTitle: "Data Permission Levels",
|
|
313
315
|
nutritionFactsTitle: "Nutrition Facts",
|
|
314
316
|
nutritionFactsTriggerLabel: "Nutrition facts"
|
|
315
|
-
},
|
|
317
|
+
}, te = {
|
|
316
318
|
generateCriteriaAdditionalPromptLabel: "Additional Prompt Information",
|
|
317
319
|
generateCriteriaAdditionalPromptPlaceholder: 'Optional. For example, "Target a college-level seminar." or "Focus on argument substance." or "Be lenient."',
|
|
318
320
|
generateCriteriaAdditionalPromptTooLong: "Additional prompt information must be less than 1000 characters",
|
|
@@ -340,13 +342,13 @@ const d = {
|
|
|
340
342
|
standardObjectiveLabel: "Standard / Outcome Information",
|
|
341
343
|
standardObjectivePlaceholder: 'Optional. Place standard or outcome here. For example, "Students will analyze primary sources".',
|
|
342
344
|
standardObjectiveTooLong: "Standard and Outcome information must be less than 1000 characters"
|
|
343
|
-
},
|
|
345
|
+
}, ie = {
|
|
344
346
|
deleteRubricModalBody: "Are you sure you want to delete this rubric?",
|
|
345
347
|
deleteRubricModalError: "There was an error deleting the rubric.",
|
|
346
348
|
deleteRubricModalLabel: "Delete Rubric Modal",
|
|
347
349
|
deleteRubricModalSuccess: "Rubric deleted successfully",
|
|
348
350
|
deleteRubricModalTitle: "Delete %{title}"
|
|
349
|
-
},
|
|
351
|
+
}, ae = {
|
|
350
352
|
duplicateRubricModalBody: "Are you sure you want to duplicate this rubric?",
|
|
351
353
|
duplicateRubricModalError: "There was an error duplicating the rubric.",
|
|
352
354
|
duplicateRubricModalLabel: "Duplicate Rubric Modal",
|
|
@@ -398,6 +400,75 @@ const d = {
|
|
|
398
400
|
viewRubricsUnarchiveError: "Error Un-Archiving Rubric",
|
|
399
401
|
viewRubricsUnarchiveSuccess: "Rubric un-archived successfully"
|
|
400
402
|
}, ue = {
|
|
403
|
+
importFailuresModalFileListHeader: "The import failed for the following file(s):",
|
|
404
|
+
importFailuresModalHeading: "Import Failed",
|
|
405
|
+
importFailuresModalLabel: "Import Failures",
|
|
406
|
+
importFailuresModalReasonHeader: "This import failure was due to the following:",
|
|
407
|
+
importRubricError: "Error Importing rubric",
|
|
408
|
+
importRubricNoneImported: "No rubrics were successfully imported",
|
|
409
|
+
importRubricStarted: "Rubric import started. This may take a few seconds to complete.",
|
|
410
|
+
importRubricStatusError: "Error retrieving import status",
|
|
411
|
+
importRubricSuccess: {
|
|
412
|
+
one: "%{count} rubric was successfully imported",
|
|
413
|
+
other: "%{count} rubrics were successfully imported"
|
|
414
|
+
},
|
|
415
|
+
importRubricTrayChooseFile: "Choose a file to upload",
|
|
416
|
+
importRubricTrayDownloadTemplate: "Download Template",
|
|
417
|
+
importRubricTrayDragFile: "Drag a file here, or",
|
|
418
|
+
importRubricTrayHeading: "Import Rubrics",
|
|
419
|
+
importRubricTrayLabel: "Import Rubrics Tray",
|
|
420
|
+
importRubricTrayTemplateAlert: "This feature requires the use of our rubric template.",
|
|
421
|
+
importRubricUnknownError: "Unknown error occurred",
|
|
422
|
+
importTableCaption: "Table of Imports in Progress",
|
|
423
|
+
importTableFileNameHeader: "File Name",
|
|
424
|
+
importTableProgressLabel: "Loading completion",
|
|
425
|
+
importTableSizeHeader: "Size"
|
|
426
|
+
}, me = {
|
|
427
|
+
rubricAssignmentDeleteBody: "Are you sure you want to delete this rubric?",
|
|
428
|
+
rubricAssignmentDeleteTitle: "Delete Rubric?",
|
|
429
|
+
rubricAssignmentUnlink: "Unlink",
|
|
430
|
+
rubricAssignmentUnlinkBody: "The rubric is associated with an account, course, or another assignment. You can remove this rubric from the assignment without impacting other assignments by unlinking it.",
|
|
431
|
+
rubricAssignmentUnlinkTitle: "Unlink Rubric"
|
|
432
|
+
}, be = {
|
|
433
|
+
rubricAssignmentSelfAssessmentInfoButtonLabel: "Why is self assessment disabled?",
|
|
434
|
+
rubricAssignmentSelfAssessmentInfoText: "This toggle will be disabled if the due date has passed OR there have already been self-assessments made on this assignment OR if the assignment is a group assignment.",
|
|
435
|
+
rubricAssignmentSelfAssessmentLabel: "Enable self assessment",
|
|
436
|
+
rubricAssignmentSelfAssessmentUpdateError: "Failed to update self assessment settings"
|
|
437
|
+
}, ge = {
|
|
438
|
+
rubricSearchTrayHeading: "Find Rubric",
|
|
439
|
+
rubricSearchTrayInputLabel: "search rubrics input",
|
|
440
|
+
rubricSearchTrayInputPlaceholder: "Search rubrics",
|
|
441
|
+
rubricSearchTrayLabel: "Rubric Search Tray"
|
|
442
|
+
}, he = {
|
|
443
|
+
rubricContextSelectAccountPrefix: "Account",
|
|
444
|
+
rubricContextSelectCoursePrefix: "Course",
|
|
445
|
+
rubricContextSelectEmptyHeading: "No Rubrics Found",
|
|
446
|
+
rubricContextSelectLabel: "select account or course"
|
|
447
|
+
}, pe = {
|
|
448
|
+
rubricSearchFooterAdd: "Add"
|
|
449
|
+
}, Re = {
|
|
450
|
+
rubricSearchRowCriterion: "criterion",
|
|
451
|
+
rubricSearchRowPreviewLabel: "Preview Rubric",
|
|
452
|
+
rubricSearchRowSelectLabel: "select %{title}",
|
|
453
|
+
rubricSearchRowUnscored: "Unscored"
|
|
454
|
+
}, Ce = {
|
|
455
|
+
rubricsForContextNextPage: "Next Page",
|
|
456
|
+
rubricsForContextPrevPage: "Previous Page"
|
|
457
|
+
}, fe = {
|
|
458
|
+
rubricCreateModalCreateHeader: "Create Rubric",
|
|
459
|
+
rubricCreateModalEditHeader: "Edit Rubric"
|
|
460
|
+
}, ve = {
|
|
461
|
+
rubricAssignmentContainerAddError: "Failed to add rubric to assignment",
|
|
462
|
+
rubricAssignmentContainerAddSuccess: "Rubric added to assignment",
|
|
463
|
+
rubricAssignmentContainerCreateRubric: "Create Rubric",
|
|
464
|
+
rubricAssignmentContainerDeleteRubric: "Delete Rubric",
|
|
465
|
+
rubricAssignmentContainerEditRubric: "Edit Rubric",
|
|
466
|
+
rubricAssignmentContainerFindRubric: "Find Rubric",
|
|
467
|
+
rubricAssignmentContainerLoadError: "Failed to load rubric for this assignment",
|
|
468
|
+
rubricAssignmentContainerPreviewRubric: "Preview Rubric",
|
|
469
|
+
rubricAssignmentContainerReplaceRubric: "Replace Rubric",
|
|
470
|
+
rubricAssignmentContainerUnlinkRubric: "Unlink Rubric"
|
|
471
|
+
}, Se = {
|
|
401
472
|
...d,
|
|
402
473
|
...u,
|
|
403
474
|
...m,
|
|
@@ -405,36 +476,36 @@ const d = {
|
|
|
405
476
|
...g,
|
|
406
477
|
...h,
|
|
407
478
|
...p,
|
|
408
|
-
...
|
|
479
|
+
...R,
|
|
409
480
|
...C,
|
|
410
481
|
...f,
|
|
411
|
-
...
|
|
412
|
-
...R,
|
|
482
|
+
...v,
|
|
413
483
|
...S,
|
|
484
|
+
...L,
|
|
414
485
|
...M,
|
|
415
486
|
...w,
|
|
416
487
|
...y,
|
|
417
|
-
...P,
|
|
418
|
-
...T,
|
|
419
488
|
...A,
|
|
420
|
-
...
|
|
489
|
+
...T,
|
|
490
|
+
...P,
|
|
421
491
|
...F,
|
|
422
|
-
...
|
|
423
|
-
...I,
|
|
492
|
+
...D,
|
|
424
493
|
...E,
|
|
494
|
+
...I,
|
|
495
|
+
...N,
|
|
425
496
|
...H,
|
|
426
|
-
...O,
|
|
427
|
-
...B,
|
|
428
|
-
...k,
|
|
429
497
|
...x,
|
|
430
|
-
...
|
|
498
|
+
...k,
|
|
499
|
+
...B,
|
|
500
|
+
...O,
|
|
431
501
|
...U,
|
|
502
|
+
...G,
|
|
432
503
|
...V,
|
|
433
504
|
...W,
|
|
434
505
|
...q,
|
|
435
|
-
...j,
|
|
436
506
|
...z,
|
|
437
507
|
...Y,
|
|
508
|
+
...j,
|
|
438
509
|
...K,
|
|
439
510
|
..._,
|
|
440
511
|
...Q,
|
|
@@ -443,59 +514,69 @@ const d = {
|
|
|
443
514
|
...Z,
|
|
444
515
|
...$,
|
|
445
516
|
...ee,
|
|
446
|
-
...re,
|
|
447
517
|
...te,
|
|
448
|
-
...
|
|
518
|
+
...re,
|
|
449
519
|
...ie,
|
|
520
|
+
...ae,
|
|
450
521
|
...oe,
|
|
451
522
|
...ne,
|
|
452
523
|
...se,
|
|
453
524
|
...ce,
|
|
454
525
|
...le,
|
|
455
|
-
...de
|
|
526
|
+
...de,
|
|
527
|
+
...me,
|
|
528
|
+
...be,
|
|
529
|
+
...ge,
|
|
530
|
+
...he,
|
|
531
|
+
...pe,
|
|
532
|
+
...Re,
|
|
533
|
+
...Ce,
|
|
534
|
+
...fe,
|
|
535
|
+
...ve,
|
|
536
|
+
...ue
|
|
456
537
|
}, s = n.createContext(
|
|
457
538
|
void 0
|
|
458
539
|
);
|
|
459
|
-
function
|
|
460
|
-
translations:
|
|
540
|
+
function Te({
|
|
541
|
+
translations: r,
|
|
461
542
|
translate: e,
|
|
462
|
-
children:
|
|
543
|
+
children: t
|
|
463
544
|
}) {
|
|
464
|
-
const
|
|
465
|
-
return /* @__PURE__ */ c(s.Provider, { value:
|
|
545
|
+
const i = { translations: r, translate: e };
|
|
546
|
+
return /* @__PURE__ */ c(s.Provider, { value: i, children: t });
|
|
466
547
|
}
|
|
467
|
-
function
|
|
468
|
-
const
|
|
469
|
-
if (!
|
|
548
|
+
function Pe() {
|
|
549
|
+
const r = n.useContext(s);
|
|
550
|
+
if (!r)
|
|
470
551
|
throw new Error("useTranslations must be used within TranslationsProvider");
|
|
471
552
|
const e = n.useCallback(
|
|
472
|
-
(
|
|
473
|
-
[
|
|
553
|
+
(t) => Le(t, r.translate),
|
|
554
|
+
[r.translate]
|
|
474
555
|
);
|
|
475
|
-
return { ...
|
|
556
|
+
return { ...r, resolveToken: e };
|
|
476
557
|
}
|
|
477
|
-
const
|
|
478
|
-
if (typeof
|
|
479
|
-
const { key:
|
|
480
|
-
return
|
|
481
|
-
},
|
|
482
|
-
const
|
|
483
|
-
let
|
|
484
|
-
if (typeof
|
|
485
|
-
const
|
|
486
|
-
|
|
558
|
+
const Le = (r, e) => {
|
|
559
|
+
if (typeof r == "string") return e(r);
|
|
560
|
+
const { key: t, count: i, vars: a } = r;
|
|
561
|
+
return i !== void 0 ? e(t, { count: i, ...a }) : e(t, a);
|
|
562
|
+
}, Fe = (r, e) => {
|
|
563
|
+
const t = Se[r];
|
|
564
|
+
let i;
|
|
565
|
+
if (typeof t == "object" && "one" in t && "other" in t) {
|
|
566
|
+
const a = t, o = Number((e == null ? void 0 : e.count) ?? 0);
|
|
567
|
+
i = new Intl.PluralRules("en").select(o) === "one" ? a.one : a.other;
|
|
487
568
|
} else
|
|
488
|
-
|
|
489
|
-
return e ?
|
|
569
|
+
i = t || r;
|
|
570
|
+
return e ? i.replace(/%\{([^}]+)}/g, (a, o) => o in e ? String(e[o]) : a) : i;
|
|
490
571
|
};
|
|
491
|
-
function
|
|
492
|
-
const { executeQuery:
|
|
493
|
-
return { executeQuery:
|
|
572
|
+
function De() {
|
|
573
|
+
const { executeQuery: r, currentUserId: e, locale: t } = l();
|
|
574
|
+
return { executeQuery: r, currentUserId: e, locale: t };
|
|
494
575
|
}
|
|
495
576
|
export {
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
577
|
+
Te as T,
|
|
578
|
+
Pe as a,
|
|
579
|
+
Se as i,
|
|
580
|
+
Fe as t,
|
|
581
|
+
De as u
|
|
501
582
|
};
|
package/dist/foundation.js
CHANGED
|
@@ -9,7 +9,7 @@ import { SimpleSelect as b } from "@instructure/ui-simple-select";
|
|
|
9
9
|
import { Spinner as C } from "@instructure/ui-spinner";
|
|
10
10
|
import { Text as u } from "@instructure/ui-text";
|
|
11
11
|
import { useQuery as T } from "@tanstack/react-query";
|
|
12
|
-
import { u as I, T as y, t as _, i as P, a as E } from "./chunks/useRubricsPlatformUiContext-
|
|
12
|
+
import { u as I, T as y, t as _, i as P, a as E } from "./chunks/useRubricsPlatformUiContext-ChUFxfgb.js";
|
|
13
13
|
import L from "graphql-tag";
|
|
14
14
|
const j = () => /* @__PURE__ */ e(o, { as: "div", padding: "small", children: /* @__PURE__ */ e(v, { level: "h2", children: R("foundation") }) }), U = L`
|
|
15
15
|
query CourseRubricsList($courseId: ID!, $first: Int) {
|
package/locales/en.json
CHANGED
|
@@ -168,6 +168,8 @@
|
|
|
168
168
|
"assessmentRatingsHeader": "Ratings",
|
|
169
169
|
"assessmentRubricCaption": "Rubric",
|
|
170
170
|
"assessmentThreshold": "Threshold: %{threshold}",
|
|
171
|
+
"assessmentTotalPointsAriaLabel": "Total Points %{assigned} out of %{possible}",
|
|
172
|
+
"assessmentTotalPointsLabel": "Total Points",
|
|
171
173
|
"assessmentViewLongerDescription": "view longer description",
|
|
172
174
|
"assessmentClear": "Clear",
|
|
173
175
|
"assessmentCommentLibrary": "Comment Library",
|
|
@@ -328,6 +330,61 @@
|
|
|
328
330
|
"viewRubricsSavedTabLabel": "Saved",
|
|
329
331
|
"viewRubricsUnarchiveError": "Error Un-Archiving Rubric",
|
|
330
332
|
"viewRubricsUnarchiveSuccess": "Rubric un-archived successfully",
|
|
333
|
+
"importFailuresModalFileListHeader": "The import failed for the following file(s):",
|
|
334
|
+
"importFailuresModalHeading": "Import Failed",
|
|
335
|
+
"importFailuresModalLabel": "Import Failures",
|
|
336
|
+
"importFailuresModalReasonHeader": "This import failure was due to the following:",
|
|
337
|
+
"importRubricError": "Error Importing rubric",
|
|
338
|
+
"importRubricNoneImported": "No rubrics were successfully imported",
|
|
339
|
+
"importRubricStarted": "Rubric import started. This may take a few seconds to complete.",
|
|
340
|
+
"importRubricStatusError": "Error retrieving import status",
|
|
341
|
+
"importRubricTrayChooseFile": "Choose a file to upload",
|
|
342
|
+
"importRubricTrayDownloadTemplate": "Download Template",
|
|
343
|
+
"importRubricTrayDragFile": "Drag a file here, or",
|
|
344
|
+
"importRubricTrayHeading": "Import Rubrics",
|
|
345
|
+
"importRubricTrayLabel": "Import Rubrics Tray",
|
|
346
|
+
"importRubricTrayTemplateAlert": "This feature requires the use of our rubric template.",
|
|
347
|
+
"importRubricUnknownError": "Unknown error occurred",
|
|
348
|
+
"importTableCaption": "Table of Imports in Progress",
|
|
349
|
+
"importTableFileNameHeader": "File Name",
|
|
350
|
+
"importTableProgressLabel": "Loading completion",
|
|
351
|
+
"importTableSizeHeader": "Size",
|
|
352
|
+
"rubricAssignmentDeleteBody": "Are you sure you want to delete this rubric?",
|
|
353
|
+
"rubricAssignmentDeleteTitle": "Delete Rubric?",
|
|
354
|
+
"rubricAssignmentUnlink": "Unlink",
|
|
355
|
+
"rubricAssignmentUnlinkBody": "The rubric is associated with an account, course, or another assignment. You can remove this rubric from the assignment without impacting other assignments by unlinking it.",
|
|
356
|
+
"rubricAssignmentUnlinkTitle": "Unlink Rubric",
|
|
357
|
+
"rubricAssignmentSelfAssessmentInfoButtonLabel": "Why is self assessment disabled?",
|
|
358
|
+
"rubricAssignmentSelfAssessmentInfoText": "This toggle will be disabled if the due date has passed OR there have already been self-assessments made on this assignment OR if the assignment is a group assignment.",
|
|
359
|
+
"rubricAssignmentSelfAssessmentLabel": "Enable self assessment",
|
|
360
|
+
"rubricAssignmentSelfAssessmentUpdateError": "Failed to update self assessment settings",
|
|
361
|
+
"rubricSearchTrayHeading": "Find Rubric",
|
|
362
|
+
"rubricSearchTrayInputLabel": "search rubrics input",
|
|
363
|
+
"rubricSearchTrayInputPlaceholder": "Search rubrics",
|
|
364
|
+
"rubricSearchTrayLabel": "Rubric Search Tray",
|
|
365
|
+
"rubricContextSelectAccountPrefix": "Account",
|
|
366
|
+
"rubricContextSelectCoursePrefix": "Course",
|
|
367
|
+
"rubricContextSelectEmptyHeading": "No Rubrics Found",
|
|
368
|
+
"rubricContextSelectLabel": "select account or course",
|
|
369
|
+
"rubricSearchFooterAdd": "Add",
|
|
370
|
+
"rubricSearchRowCriterion": "criterion",
|
|
371
|
+
"rubricSearchRowPreviewLabel": "Preview Rubric",
|
|
372
|
+
"rubricSearchRowSelectLabel": "select %{title}",
|
|
373
|
+
"rubricSearchRowUnscored": "Unscored",
|
|
374
|
+
"rubricsForContextNextPage": "Next Page",
|
|
375
|
+
"rubricsForContextPrevPage": "Previous Page",
|
|
376
|
+
"rubricCreateModalCreateHeader": "Create Rubric",
|
|
377
|
+
"rubricCreateModalEditHeader": "Edit Rubric",
|
|
378
|
+
"rubricAssignmentContainerAddError": "Failed to add rubric to assignment",
|
|
379
|
+
"rubricAssignmentContainerAddSuccess": "Rubric added to assignment",
|
|
380
|
+
"rubricAssignmentContainerCreateRubric": "Create Rubric",
|
|
381
|
+
"rubricAssignmentContainerDeleteRubric": "Delete Rubric",
|
|
382
|
+
"rubricAssignmentContainerEditRubric": "Edit Rubric",
|
|
383
|
+
"rubricAssignmentContainerFindRubric": "Find Rubric",
|
|
384
|
+
"rubricAssignmentContainerLoadError": "Failed to load rubric for this assignment",
|
|
385
|
+
"rubricAssignmentContainerPreviewRubric": "Preview Rubric",
|
|
386
|
+
"rubricAssignmentContainerReplaceRubric": "Replace Rubric",
|
|
387
|
+
"rubricAssignmentContainerUnlinkRubric": "Unlink Rubric",
|
|
331
388
|
"calculationMethodAchieveMastery": {
|
|
332
389
|
"one": "Achieve mastery %{count} time",
|
|
333
390
|
"other": "Achieve mastery %{count} times"
|
|
@@ -339,5 +396,9 @@
|
|
|
339
396
|
"viewRubricsLoadedMoreAnnouncement": {
|
|
340
397
|
"one": "Loaded %{count} more rubric",
|
|
341
398
|
"other": "Loaded %{count} more rubrics"
|
|
399
|
+
},
|
|
400
|
+
"importRubricSuccess": {
|
|
401
|
+
"one": "%{count} rubric was successfully imported",
|
|
402
|
+
"other": "%{count} rubrics were successfully imported"
|
|
342
403
|
}
|
|
343
404
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@instructure/platform-rubrics",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "0.5.0",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -35,7 +35,7 @@
|
|
|
35
35
|
"big.js": "^6.2.1",
|
|
36
36
|
"es-toolkit": "^1.0.0",
|
|
37
37
|
"@instructure/platform-generic-error-page": "1.2.0",
|
|
38
|
-
"@instructure/platform-images": "0.
|
|
38
|
+
"@instructure/platform-images": "0.4.0",
|
|
39
39
|
"@instructure/platform-nutrition-facts": "0.4.0",
|
|
40
40
|
"@instructure/platform-outcomes": "0.1.0",
|
|
41
41
|
"@instructure/platform-query": "0.2.2",
|
|
@@ -47,6 +47,7 @@
|
|
|
47
47
|
"@instructure/ui-avatar": "^11.0.0",
|
|
48
48
|
"@instructure/ui-buttons": "^11.0.0",
|
|
49
49
|
"@instructure/ui-checkbox": "^11.0.0",
|
|
50
|
+
"@instructure/ui-file-drop": "^11.0.0",
|
|
50
51
|
"@instructure/ui-flex": "^11.0.0",
|
|
51
52
|
"@instructure/ui-form-field": "^11.0.0",
|
|
52
53
|
"@instructure/ui-heading": "^11.0.0",
|
|
@@ -57,11 +58,14 @@
|
|
|
57
58
|
"@instructure/ui-menu": "^11.0.0",
|
|
58
59
|
"@instructure/ui-modal": "^11.0.0",
|
|
59
60
|
"@instructure/ui-number-input": "^11.0.0",
|
|
61
|
+
"@instructure/ui-pagination": "^11.0.0",
|
|
60
62
|
"@instructure/ui-pill": "^11.0.0",
|
|
61
63
|
"@instructure/ui-popover": "^11.0.0",
|
|
64
|
+
"@instructure/ui-radio-input": "^11.0.0",
|
|
62
65
|
"@instructure/ui-responsive": "^11.0.0",
|
|
63
66
|
"@instructure/ui-simple-select": "^11.0.0",
|
|
64
67
|
"@instructure/ui-spinner": "^11.0.0",
|
|
68
|
+
"@instructure/ui-progress": "^11.0.0",
|
|
65
69
|
"@instructure/ui-table": "^11.0.0",
|
|
66
70
|
"@instructure/ui-tabs": "^11.0.0",
|
|
67
71
|
"@instructure/ui-tag": "^11.0.0",
|
|
@@ -93,6 +97,7 @@
|
|
|
93
97
|
"@instructure/ui-avatar": "11.7.4",
|
|
94
98
|
"@instructure/ui-buttons": "11.7.4",
|
|
95
99
|
"@instructure/ui-checkbox": "11.7.4",
|
|
100
|
+
"@instructure/ui-file-drop": "11.7.4",
|
|
96
101
|
"@instructure/ui-flex": "11.7.4",
|
|
97
102
|
"@instructure/ui-form-field": "11.7.4",
|
|
98
103
|
"@instructure/ui-heading": "11.7.4",
|
|
@@ -103,11 +108,14 @@
|
|
|
103
108
|
"@instructure/ui-menu": "11.7.4",
|
|
104
109
|
"@instructure/ui-modal": "11.7.4",
|
|
105
110
|
"@instructure/ui-number-input": "11.7.4",
|
|
111
|
+
"@instructure/ui-pagination": "11.7.4",
|
|
106
112
|
"@instructure/ui-pill": "11.7.4",
|
|
107
113
|
"@instructure/ui-popover": "11.7.4",
|
|
114
|
+
"@instructure/ui-radio-input": "11.7.4",
|
|
108
115
|
"@instructure/ui-responsive": "11.7.4",
|
|
109
116
|
"@instructure/ui-simple-select": "11.7.4",
|
|
110
117
|
"@instructure/ui-spinner": "11.7.4",
|
|
118
|
+
"@instructure/ui-progress": "11.7.4",
|
|
111
119
|
"@instructure/ui-table": "11.7.4",
|
|
112
120
|
"@instructure/ui-tabs": "11.7.4",
|
|
113
121
|
"@instructure/ui-tag": "11.7.4",
|
|
@@ -143,7 +151,7 @@
|
|
|
143
151
|
"@instructure/platform-alerts": "1.0.1",
|
|
144
152
|
"@instructure/platform-canvas-fetch": "0.1.3",
|
|
145
153
|
"@instructure/platform-get-cookie": "0.2.1",
|
|
146
|
-
"@instructure/platform-graphql-types": "0.2.
|
|
154
|
+
"@instructure/platform-graphql-types": "0.2.2",
|
|
147
155
|
"@instructure/platform-instui-bindings": "0.7.0",
|
|
148
156
|
"@instructure/platform-loading-indicator": "0.3.0",
|
|
149
157
|
"@instructure/platform-provider": "0.5.2",
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"EditConfirmModal.d.ts","sourceRoot":"","sources":["../../../../src/canvas/RubricForm/components/EditConfirmModal.tsx"],"names":[],"mappings":"AAuBA,KAAK,qBAAqB,GAAG;IAC3B,MAAM,EAAE,OAAO,CAAA;IACf,SAAS,EAAE,MAAM,IAAI,CAAA;IACrB,SAAS,EAAE,MAAM,IAAI,CAAA;CACtB,CAAA;AAKD,eAAO,MAAM,gBAAgB,GAAI,kCAAkC,qBAAqB,4CAgCvF,CAAA"}
|