@clickview/reports 0.15.2-dev.0 → 0.15.2-rc.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.
Files changed (78) hide show
  1. package/dist/bundles.json +2 -2
  2. package/dist/css/{192-reports-c27f8fabe4.chunk.css → 192-reports-2c6e6f885b.chunk.css} +2 -2
  3. package/dist/css/{20-reports-64a382fd36.chunk.css → 301-reports-e09d36d56b.chunk.css} +11 -2
  4. package/dist/css/{407-reports-39e857f9af.chunk.css → 407-reports-3e3a77ba66.chunk.css} +1 -1
  5. package/dist/css/{416-reports-ccd54fe0b8.chunk.css → 416-reports-ac6d0c3bb3.chunk.css} +1 -1
  6. package/dist/css/{582-reports-1c29a4e452.chunk.css → 457-reports-b74f9c3998.chunk.css} +11 -2
  7. package/dist/css/{895-reports-09b753fd7b.chunk.css → 590-reports-254816ede7.chunk.css} +10 -1
  8. package/dist/css/{760-reports-40b8f7f10d.chunk.css → 760-reports-bedfc8bb5a.chunk.css} +1 -1
  9. package/dist/css/{837-reports-560e289dd3.chunk.css → 837-reports-2883e8d5dd.chunk.css} +1 -1
  10. package/dist/css/{310-reports-efb704444d.chunk.css → 899-reports-caf6df01c8.chunk.css} +10 -1
  11. package/dist/css/{909-reports-b341ee7f77.chunk.css → 909-reports-fa737e4cc1.chunk.css} +1 -1
  12. package/dist/css/{reports-app-c90b65b97d.css → reports-app-5f8f414d98.css} +1 -1
  13. package/dist/languages/en.json +1 -1
  14. package/dist/scripts/112-0af8a4839a-reports.chunk.js +1 -0
  15. package/dist/scripts/{128-f1f4840cba-reports.chunk.js → 128-ed90a14555-reports.chunk.js} +1 -1
  16. package/dist/scripts/{178-379f67dd4a-reports.chunk.js → 178-6ea1b8eea6-reports.chunk.js} +1 -1
  17. package/dist/scripts/192-16c0b62583-reports.chunk.js +2 -0
  18. package/dist/scripts/231-b3aa05d2cc-reports.chunk.js +1 -0
  19. package/dist/scripts/280-ba6e694567-reports.chunk.js +1 -0
  20. package/dist/scripts/301-faf7a0db38-reports.chunk.js +1 -0
  21. package/dist/scripts/335-3ff4010b70-reports.chunk.js +1 -0
  22. package/dist/scripts/34-47d1d39fa2-reports.chunk.js +1 -0
  23. package/dist/scripts/407-ec9deb9bbb-reports.chunk.js +1 -0
  24. package/dist/scripts/432-2b0aea9251-reports.chunk.js +1 -0
  25. package/dist/scripts/453-0f269fa95a-reports.chunk.js +1 -0
  26. package/dist/scripts/{582-e2c2b70d90-reports.chunk.js → 457-d4c2db0f9b-reports.chunk.js} +1 -1
  27. package/dist/scripts/511-aa04ed29ba-reports.chunk.js +1 -0
  28. package/dist/scripts/523-c851c65f8a-reports.chunk.js +1 -0
  29. package/dist/scripts/53-3e5c9438d1-reports.chunk.js +1 -0
  30. package/dist/scripts/590-bdb21bd2a6-reports.chunk.js +1 -0
  31. package/dist/scripts/{648-ff723d408e-reports.chunk.js → 648-58d1102ee1-reports.chunk.js} +1 -1
  32. package/dist/scripts/672-dfe741153b-reports.chunk.js +1 -0
  33. package/dist/scripts/{760-6e270f88e6-reports.chunk.js → 760-a177cfa9c3-reports.chunk.js} +1 -1
  34. package/dist/scripts/772-bad55b6689-reports.chunk.js +1 -0
  35. package/dist/scripts/786-7ae6855346-reports.chunk.js +1 -0
  36. package/dist/scripts/802-3e21e738f4-reports.chunk.js +1 -0
  37. package/dist/scripts/{806-6777c80ab9-reports.chunk.js → 806-383ddb76cc-reports.chunk.js} +1 -1
  38. package/dist/scripts/815-3dcec79c50-reports.chunk.js +1 -0
  39. package/dist/scripts/837-8fbbeddeab-reports.chunk.js +1 -0
  40. package/dist/scripts/843-5884cb4bef-reports.chunk.js +1 -0
  41. package/dist/scripts/899-440f4d0cc3-reports.chunk.js +1 -0
  42. package/dist/scripts/{909-deafdcf289-reports.chunk.js → 909-dc26c4c9a4-reports.chunk.js} +1 -1
  43. package/dist/scripts/{998-0e1d3c05b2-reports.chunk.js → 998-2aa6347e50-reports.chunk.js} +1 -1
  44. package/dist/scripts/bundle-983f849192.min.js +2 -0
  45. package/package.json +2 -2
  46. package/typings/libs/CVLanguages.d.ts +24 -0
  47. package/dist/scripts/112-3050f94b14-reports.chunk.js +0 -1
  48. package/dist/scripts/192-3469ff6961-reports.chunk.js +0 -2
  49. package/dist/scripts/20-1ea4c9adc3-reports.chunk.js +0 -1
  50. package/dist/scripts/231-98c78077c2-reports.chunk.js +0 -1
  51. package/dist/scripts/280-ec8efe8a39-reports.chunk.js +0 -1
  52. package/dist/scripts/310-92054083a9-reports.chunk.js +0 -1
  53. package/dist/scripts/335-4f1818951c-reports.chunk.js +0 -1
  54. package/dist/scripts/407-ac5b2d801c-reports.chunk.js +0 -1
  55. package/dist/scripts/432-66a43560d5-reports.chunk.js +0 -1
  56. package/dist/scripts/511-1850867acd-reports.chunk.js +0 -1
  57. package/dist/scripts/523-c45561b500-reports.chunk.js +0 -1
  58. package/dist/scripts/53-9b4d4d1675-reports.chunk.js +0 -1
  59. package/dist/scripts/672-2db3ce0bf5-reports.chunk.js +0 -1
  60. package/dist/scripts/731-cc859ece82-reports.chunk.js +0 -1
  61. package/dist/scripts/772-2a7a6884a6-reports.chunk.js +0 -1
  62. package/dist/scripts/786-7454259497-reports.chunk.js +0 -1
  63. package/dist/scripts/797-993e5c0cc5-reports.chunk.js +0 -1
  64. package/dist/scripts/802-1224c17c5f-reports.chunk.js +0 -1
  65. package/dist/scripts/815-36a68eeeea-reports.chunk.js +0 -1
  66. package/dist/scripts/837-5e4d3cb6fe-reports.chunk.js +0 -1
  67. package/dist/scripts/843-40edd3d567-reports.chunk.js +0 -1
  68. package/dist/scripts/895-8d1235a9ae-reports.chunk.js +0 -1
  69. package/dist/scripts/bundle-9587c00a51.min.js +0 -2
  70. /package/dist/scripts/{192-3469ff6961-reports.chunk.js.LICENSE.txt → 192-16c0b62583-reports.chunk.js.LICENSE.txt} +0 -0
  71. /package/dist/scripts/{271-55a3fd1105-reports.chunk.js → 271-47546270a2-reports.chunk.js} +0 -0
  72. /package/dist/scripts/{312-16d718e860-reports.chunk.js → 312-1aea78f0de-reports.chunk.js} +0 -0
  73. /package/dist/scripts/{416-f1c418ca54-reports.chunk.js → 416-cc30ec6aa4-reports.chunk.js} +0 -0
  74. /package/dist/scripts/{438-2355d2d26c-reports.chunk.js → 438-c07559cf44-reports.chunk.js} +0 -0
  75. /package/dist/scripts/{647-9bd60630c9-reports.chunk.js → 647-a3432d56c8-reports.chunk.js} +0 -0
  76. /package/dist/scripts/{925-550fac111b-reports.chunk.js → 925-120ed11cec-reports.chunk.js} +0 -0
  77. /package/dist/scripts/{998-0e1d3c05b2-reports.chunk.js.LICENSE.txt → 998-2aa6347e50-reports.chunk.js.LICENSE.txt} +0 -0
  78. /package/dist/scripts/{bundle-9587c00a51.min.js.LICENSE.txt → bundle-983f849192.min.js.LICENSE.txt} +0 -0
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@clickview/reports",
3
- "version": "0.15.2-dev.0",
3
+ "version": "0.15.2-rc.0",
4
4
  "description": "ClickView Reports",
5
5
  "main": "dist/reports-app.js",
6
6
  "scripts": {
@@ -26,7 +26,7 @@
26
26
  "redux-devtools-extension": "2.13.8"
27
27
  },
28
28
  "dependencies": {
29
- "@clickview/styles": "1.15.1-dev.0",
29
+ "@clickview/styles": "1.15.1-rc.0",
30
30
  "chroma-js": "2.1.2",
31
31
  "highcharts": "9.1.0",
32
32
  "highcharts-react-official": "3.0.0",
@@ -0,0 +1,24 @@
1
+ interface SetLanguageOptions {
2
+ validate: boolean;
3
+ }
4
+
5
+ interface LanguageSet {
6
+ [languagecode: string]: Language;
7
+ }
8
+
9
+ interface Language {
10
+ englishName: string;
11
+ nativeName: string;
12
+ }
13
+
14
+ interface ICVLanguages {
15
+ VERSION: string;
16
+
17
+ getEnglishName(languageCode: string): string;
18
+ getNativeName(languageCode: string): string;
19
+ getFullEnglishName(languageCode: string): string;
20
+ getFullNativeName(languageCode: string): string;
21
+ getEnglishNameContains(englishName: string): Language[];
22
+ }
23
+
24
+ declare let CVLanguages: ICVLanguages;
@@ -1 +0,0 @@
1
- "use strict";(self.webpackChunk_clickview_reports=self.webpackChunk_clickview_reports||[]).push([[112],{85436:(e,t,n)=>{n.r(t),n.d(t,{InteractiveStudentResultsView:()=>x});var r=n(1024),a=n.n(r),i=n(20354),s=n(23481),l=n(2948),o=n(39151),u=n(639),c=n(52622),d=n(69775),m=n(94884),f=n(95601),v=n(99827),b=n(79489),p=n(39709),y=n(36630),k=n(39553),w=n(28972),h=n(86572),g=n(83140),S=n(80845),A=n(20650),E=n(22628),C=n(2102),I=s.T.encloseNamespace("interactives.studentResponseList");function N(e){var t=Object.keys(e.markedAnswers).length;return a().createElement("div",{className:"d-flex justify-content-between pb-3"},a().createElement("div",{className:"d-flex"},!!e.summary.unanswered&&a().createElement("div",{className:"bg-light rounded p-2 mr-2"},a().createElement("strong",{className:"mr-2"},I("unanswered")),e.summary.unanswered),a().createElement("div",{className:"bg-light rounded p-2 mr-2"},a().createElement("strong",{className:"mr-2"},I("score")),e.summary.awaitingMarking?a().createElement("em",null,I("pending")):"".concat(Math.round(100*e.summary.percentCorrect),"%"))),a().createElement("div",null,!!e.interactionsToMark.length&&a().createElement(C.m,{variant:"outline-dark",onClick:e.onClickSubmit,disabled:!t,showSpinner:e.showSubmitButtonSpinner},I("submitAnswers"))))}var M=s.T.encloseNamespace("interactives.studentResponseList");function R(e){var t=Object.keys(e.markedAnswers).length;return a().createElement("div",{className:"d-flex justify-content-end pt-3"},a().createElement("div",null,!e.showSubmitButtonSpinner&&a().createElement("button",{className:"btn btn-link",onClick:e.onClickClose},M("close")),!!e.interactionsToMark.length&&a().createElement(C.m,{variant:"outline-dark",onClick:e.onClickSubmit,disabled:!t,showSpinner:e.showSubmitButtonSpinner},M("submitAnswers"))))}function j(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],s=!0,l=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{s||null==n.return||n.return()}finally{if(l)throw a}}return i}}(e,t)||function(e,t){if(e){if("string"==typeof e)return B(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?B(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O(e){var t,n,r,i,s=j(a().useState(!1),2),o=s[0],u=s[1],c=(t=a().useRef(),n=j(a().useState(!1),2),r=n[0],i=n[1],a().useEffect((function(){t.current&&!r&&(i(!0),t.current.scrollIntoView({behavior:"smooth",block:"center"}))}),[t.current,r]),t),d=j((0,l.D)(b.y.ANONYMISE_USERS),1)[0],m=(0,E.Rt)(e.interactive,e.studentResults),f=(0,S.Q)(e.interactive),v=function(e,t){return e.filter((function(e){return g.A.isInteractionCorrect(e,(0,S.j_)(t))===w.w.AwaitingMarking}))}(f,e.studentResults);function y(){u(!0),e.submitMarkedAnswers()}return a().createElement(a().Fragment,null,a().createElement(N,{summary:m,interactionsToMark:v,markedAnswers:e.markedAnswers,onClickSubmit:y,showSubmitButtonSpinner:o}),a().createElement("ul",{className:"list-unstyled"},f.map((function(t,n){var r,i=t.id.toString()===(null===(r=e.selectedInteractionId)||void 0===r?void 0:r.toString()),s="p-2 mb-3 rounded";return i&&(s+=" shadow"),s+=v.some((function(e){return e.id===t.id}))?" ".concat("JQvFG"):" border",a().createElement("li",{key:n,className:s,ref:i?c:null},a().createElement("div",{className:"d-flex mb-2"},a().createElement(h.y,{interaction:t,iconClassName:"flex-shrink-0"})),a().createElement(A.O,{interaction:t,studentResults:e.studentResults,markedStatus:(0,E.HI)(t.id,e.studentResults,e.markedAnswers),markInteraction:e.addMarkedAnswers,imageCdnUrl:e.imageCdnUrl,anonymisedUserName:d?(0,p.B)(e.studentResults.user,!0):null,className:"bg-light",showFeedback:!0,reportsStyling:!0}))}))),a().createElement(R,{interactionsToMark:v,markedAnswers:e.markedAnswers,onClickSubmit:y,onClickClose:e.onClickClose,showSubmitButtonSpinner:o}))}function T(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}var U=s.T.encloseNamespace("interactives.interactiveStudentResults");function x(e){var t,n,r,s,w,h,g=(0,v.R)(),S=(w=(0,l.D)(b.y.ANONYMISE_USERS),h=1,function(e){if(Array.isArray(e))return e}(w)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,a,i=[],s=!0,l=!1;try{for(n=n.call(e);!(s=(r=n.next()).done)&&(i.push(r.value),!t||i.length!==t);s=!0);}catch(e){l=!0,a=e}finally{try{s||null==n.return||n.return()}finally{if(l)throw a}}return i}}(w,h)||function(e,t){if(e){if("string"==typeof e)return T(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?T(e,t):void 0}}(w,h)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],A=i.a.useBasicFetch(m.b.interactiveMetadata(e.interactiveMetadataId)),E=i.a.useBasicFetch((null===(t=A.data)||void 0===t?void 0:t.interactiveId)?m.b.interactive(A.data.interactiveId):null),C=(0,k.W)(e.interactiveMetadataId,{start:g.start,end:g.end,userId:e.userId}),I=i.a.useBasicFetch(o.L.config());(0,y.M)(A),(0,c.v)([A,C]),(0,d.b)(A);var N=(0,f.D)(null===(n=E.data)||void 0===n?void 0:n.id,null===(r=A.data)||void 0===r?void 0:r.id,e.closePopup),M=N.markedAnswers,R=N.addMarkedAnswers,j=N.submitMarkedAnswers,B=null===(s=C.data)||void 0===s?void 0:s.students.find((function(t){return t.user.id.toString()===e.userId.toString()})),x=B?U("heading",{studentName:(0,p.B)(B.user,S)}):"",_=!!E.data&&!!C.data&&!!I.data;return a().createElement(u.G,{title:x,showLoadingSpinner:!_,closePopup:e.closePopup,size:"lg"},_&&a().createElement(O,{interactive:E.data,studentResults:B,markedAnswers:M,addMarkedAnswers:R,submitMarkedAnswers:j,imageCdnUrl:I.data.imageCdnUrl,selectedInteractionId:e.interactionId,onClickClose:e.closePopup}))}}}]);