@coorpacademy/components 11.32.20 → 11.32.22

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 (235) hide show
  1. package/es/atom/radio-with-title/index.d.ts +9 -0
  2. package/es/atom/radio-with-title/index.d.ts.map +1 -1
  3. package/es/atom/radio-with-title/types.d.ts +9 -0
  4. package/es/atom/radio-with-title/types.d.ts.map +1 -1
  5. package/es/atom/tag/index.d.ts +5 -1
  6. package/es/atom/tag/index.d.ts.map +1 -1
  7. package/es/atom/tag/index.js +6 -3
  8. package/es/atom/tag/index.js.map +1 -1
  9. package/es/atom/tag/style.css +2 -1
  10. package/es/atom/title/index.d.ts +9 -0
  11. package/es/atom/title/index.d.ts.map +1 -1
  12. package/es/atom/title/index.js +16 -4
  13. package/es/atom/title/index.js.map +1 -1
  14. package/es/atom/title/style.css +13 -0
  15. package/es/molecule/cm-popin/types.d.ts +13 -0
  16. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  17. package/es/molecule/dashboard/cards-list/index.d.ts +8 -2
  18. package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  19. package/es/molecule/dashboard/cards-list/index.js +28 -27
  20. package/es/molecule/dashboard/cards-list/index.js.map +1 -1
  21. package/es/molecule/dashboard/cards-list/prop-types.d.ts +1 -0
  22. package/es/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
  23. package/es/molecule/dashboard/cards-list/prop-types.js.map +1 -1
  24. package/es/molecule/dashboard/cards-list/style.css +12 -29
  25. package/es/molecule/draggable-list/index.d.ts +12 -0
  26. package/es/molecule/draggable-list/index.d.ts.map +1 -1
  27. package/es/molecule/draggable-list/index.js +4 -2
  28. package/es/molecule/draggable-list/index.js.map +1 -1
  29. package/es/molecule/learning-priority-card/index.d.ts +1 -3
  30. package/es/molecule/learning-priority-card/index.d.ts.map +1 -1
  31. package/es/molecule/learning-priority-card/index.js +1 -3
  32. package/es/molecule/learning-priority-card/index.js.map +1 -1
  33. package/es/molecule/learning-priority-card/style.css +2 -0
  34. package/es/molecule/learning-priority-card/types.d.ts +2 -6
  35. package/es/molecule/learning-priority-card/types.d.ts.map +1 -1
  36. package/es/molecule/learning-priority-card/types.js +1 -3
  37. package/es/molecule/learning-priority-card/types.js.map +1 -1
  38. package/es/molecule/learning-priority-modal/index.d.ts +30 -0
  39. package/es/molecule/learning-priority-modal/index.d.ts.map +1 -0
  40. package/es/molecule/learning-priority-modal/index.js +242 -0
  41. package/es/molecule/learning-priority-modal/index.js.map +1 -0
  42. package/es/molecule/learning-priority-modal/style.css +70 -0
  43. package/es/molecule/learning-priority-setup-item/index.d.ts +18 -0
  44. package/es/molecule/learning-priority-setup-item/index.d.ts.map +1 -0
  45. package/es/molecule/learning-priority-setup-item/index.js +83 -0
  46. package/es/molecule/learning-priority-setup-item/index.js.map +1 -0
  47. package/es/molecule/learning-priority-setup-item/style.css +47 -0
  48. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +9 -0
  49. package/es/molecule/title-radio-wrapper/index.d.ts +9 -0
  50. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  51. package/es/molecule/title-radio-wrapper/types.d.ts +9 -0
  52. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  53. package/es/organism/brand-learning-priorities/index.d.ts +167 -0
  54. package/es/organism/brand-learning-priorities/index.d.ts.map +1 -0
  55. package/es/organism/brand-learning-priorities/index.js +128 -0
  56. package/es/organism/brand-learning-priorities/index.js.map +1 -0
  57. package/es/organism/brand-learning-priorities/style.css +40 -0
  58. package/es/organism/list-item/index.d.ts +34 -2
  59. package/es/organism/list-item/index.d.ts.map +1 -1
  60. package/es/organism/list-item/index.js +58 -14
  61. package/es/organism/list-item/index.js.map +1 -1
  62. package/es/organism/list-item/style.css +25 -1
  63. package/es/organism/list-items/index.d.ts +4 -0
  64. package/es/organism/rewards-form/index.d.ts +9 -0
  65. package/es/organism/select-opponents/index.d.ts +9 -0
  66. package/es/organism/select-opponents/index.d.ts.map +1 -1
  67. package/es/organism/select-opponents/types.d.ts +9 -0
  68. package/es/organism/select-opponents/types.d.ts.map +1 -1
  69. package/es/organism/title-and-input/index.d.ts +18 -0
  70. package/es/organism/title-and-input/index.d.ts.map +1 -1
  71. package/es/organism/title-and-input/types.d.ts +18 -0
  72. package/es/organism/title-and-input/types.d.ts.map +1 -1
  73. package/es/organism/wizard-contents/index.d.ts +9 -0
  74. package/es/template/app-player/loading/index.d.ts +13 -0
  75. package/es/template/app-player/player/index.d.ts +26 -0
  76. package/es/template/app-player/player/slides/index.d.ts +13 -0
  77. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  78. package/es/template/app-player/popin-correction/index.d.ts +13 -0
  79. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  80. package/es/template/app-player/popin-end/index.d.ts +21 -2
  81. package/es/template/app-player/popin-end/summary.d.ts +8 -2
  82. package/es/template/app-review/index.d.ts +13 -0
  83. package/es/template/app-review/index.d.ts.map +1 -1
  84. package/es/template/app-review/player/prop-types.d.ts +13 -0
  85. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  86. package/es/template/app-review/prop-types.d.ts +13 -0
  87. package/es/template/app-review/prop-types.d.ts.map +1 -1
  88. package/es/template/back-office/brand-update/index.d.ts +155 -0
  89. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  90. package/es/template/back-office/brand-update/index.js +7 -0
  91. package/es/template/back-office/brand-update/index.js.map +1 -1
  92. package/es/template/common/dashboard/index.d.ts +26 -0
  93. package/es/template/common/dashboard/index.d.ts.map +1 -1
  94. package/es/template/common/dashboard/index.js +27 -1
  95. package/es/template/common/dashboard/index.js.map +1 -1
  96. package/es/template/common/search-page/index.d.ts +21 -2
  97. package/es/template/external-course/index.d.ts +13 -0
  98. package/es/template/my-learning/index.d.ts +151 -1
  99. package/es/template/my-learning/index.d.ts.map +1 -1
  100. package/es/template/my-learning/index.js +35 -3
  101. package/es/template/my-learning/index.js.map +1 -1
  102. package/es/template/my-learning/style.css +18 -3
  103. package/es/template/teams-dashboard/index.d.ts +8 -2
  104. package/lib/atom/radio-with-title/index.d.ts +9 -0
  105. package/lib/atom/radio-with-title/index.d.ts.map +1 -1
  106. package/lib/atom/radio-with-title/types.d.ts +9 -0
  107. package/lib/atom/radio-with-title/types.d.ts.map +1 -1
  108. package/lib/atom/tag/index.d.ts +5 -1
  109. package/lib/atom/tag/index.d.ts.map +1 -1
  110. package/lib/atom/tag/index.js +6 -3
  111. package/lib/atom/tag/index.js.map +1 -1
  112. package/lib/atom/tag/style.css +2 -1
  113. package/lib/atom/title/index.d.ts +9 -0
  114. package/lib/atom/title/index.d.ts.map +1 -1
  115. package/lib/atom/title/index.js +18 -4
  116. package/lib/atom/title/index.js.map +1 -1
  117. package/lib/atom/title/style.css +13 -0
  118. package/lib/molecule/cm-popin/types.d.ts +13 -0
  119. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  120. package/lib/molecule/dashboard/cards-list/index.d.ts +8 -2
  121. package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
  122. package/lib/molecule/dashboard/cards-list/index.js +29 -27
  123. package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
  124. package/lib/molecule/dashboard/cards-list/prop-types.d.ts +1 -0
  125. package/lib/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
  126. package/lib/molecule/dashboard/cards-list/prop-types.js.map +1 -1
  127. package/lib/molecule/dashboard/cards-list/style.css +12 -29
  128. package/lib/molecule/draggable-list/index.d.ts +12 -0
  129. package/lib/molecule/draggable-list/index.d.ts.map +1 -1
  130. package/lib/molecule/draggable-list/index.js +5 -2
  131. package/lib/molecule/draggable-list/index.js.map +1 -1
  132. package/lib/molecule/learning-priority-card/index.d.ts +1 -3
  133. package/lib/molecule/learning-priority-card/index.d.ts.map +1 -1
  134. package/lib/molecule/learning-priority-card/index.js +1 -3
  135. package/lib/molecule/learning-priority-card/index.js.map +1 -1
  136. package/lib/molecule/learning-priority-card/style.css +2 -0
  137. package/lib/molecule/learning-priority-card/types.d.ts +2 -6
  138. package/lib/molecule/learning-priority-card/types.d.ts.map +1 -1
  139. package/lib/molecule/learning-priority-card/types.js +1 -3
  140. package/lib/molecule/learning-priority-card/types.js.map +1 -1
  141. package/lib/molecule/learning-priority-modal/index.d.ts +30 -0
  142. package/lib/molecule/learning-priority-modal/index.d.ts.map +1 -0
  143. package/lib/molecule/learning-priority-modal/index.js +265 -0
  144. package/lib/molecule/learning-priority-modal/index.js.map +1 -0
  145. package/lib/molecule/learning-priority-modal/style.css +70 -0
  146. package/lib/molecule/learning-priority-setup-item/index.d.ts +18 -0
  147. package/lib/molecule/learning-priority-setup-item/index.d.ts.map +1 -0
  148. package/lib/molecule/learning-priority-setup-item/index.js +100 -0
  149. package/lib/molecule/learning-priority-setup-item/index.js.map +1 -0
  150. package/lib/molecule/learning-priority-setup-item/style.css +47 -0
  151. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +9 -0
  152. package/lib/molecule/title-radio-wrapper/index.d.ts +9 -0
  153. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  154. package/lib/molecule/title-radio-wrapper/types.d.ts +9 -0
  155. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  156. package/lib/organism/brand-learning-priorities/index.d.ts +167 -0
  157. package/lib/organism/brand-learning-priorities/index.d.ts.map +1 -0
  158. package/lib/organism/brand-learning-priorities/index.js +147 -0
  159. package/lib/organism/brand-learning-priorities/index.js.map +1 -0
  160. package/lib/organism/brand-learning-priorities/style.css +40 -0
  161. package/lib/organism/list-item/index.d.ts +34 -2
  162. package/lib/organism/list-item/index.d.ts.map +1 -1
  163. package/lib/organism/list-item/index.js +62 -16
  164. package/lib/organism/list-item/index.js.map +1 -1
  165. package/lib/organism/list-item/style.css +25 -1
  166. package/lib/organism/list-items/index.d.ts +4 -0
  167. package/lib/organism/rewards-form/index.d.ts +9 -0
  168. package/lib/organism/select-opponents/index.d.ts +9 -0
  169. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  170. package/lib/organism/select-opponents/types.d.ts +9 -0
  171. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  172. package/lib/organism/title-and-input/index.d.ts +18 -0
  173. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  174. package/lib/organism/title-and-input/types.d.ts +18 -0
  175. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  176. package/lib/organism/wizard-contents/index.d.ts +9 -0
  177. package/lib/template/app-player/loading/index.d.ts +13 -0
  178. package/lib/template/app-player/player/index.d.ts +26 -0
  179. package/lib/template/app-player/player/slides/index.d.ts +13 -0
  180. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  181. package/lib/template/app-player/popin-correction/index.d.ts +13 -0
  182. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  183. package/lib/template/app-player/popin-end/index.d.ts +21 -2
  184. package/lib/template/app-player/popin-end/summary.d.ts +8 -2
  185. package/lib/template/app-review/index.d.ts +13 -0
  186. package/lib/template/app-review/index.d.ts.map +1 -1
  187. package/lib/template/app-review/player/prop-types.d.ts +13 -0
  188. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  189. package/lib/template/app-review/prop-types.d.ts +13 -0
  190. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  191. package/lib/template/back-office/brand-update/index.d.ts +155 -0
  192. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  193. package/lib/template/back-office/brand-update/index.js +8 -0
  194. package/lib/template/back-office/brand-update/index.js.map +1 -1
  195. package/lib/template/common/dashboard/index.d.ts +26 -0
  196. package/lib/template/common/dashboard/index.d.ts.map +1 -1
  197. package/lib/template/common/dashboard/index.js +29 -1
  198. package/lib/template/common/dashboard/index.js.map +1 -1
  199. package/lib/template/common/search-page/index.d.ts +21 -2
  200. package/lib/template/external-course/index.d.ts +13 -0
  201. package/lib/template/my-learning/index.d.ts +151 -1
  202. package/lib/template/my-learning/index.d.ts.map +1 -1
  203. package/lib/template/my-learning/index.js +42 -4
  204. package/lib/template/my-learning/index.js.map +1 -1
  205. package/lib/template/my-learning/style.css +18 -3
  206. package/lib/template/teams-dashboard/index.d.ts +8 -2
  207. package/locales/bs/global.json +13 -1
  208. package/locales/cs/global.json +13 -1
  209. package/locales/de/global.json +13 -1
  210. package/locales/en/global.json +12 -0
  211. package/locales/es/global.json +13 -1
  212. package/locales/et/global.json +13 -1
  213. package/locales/fi/global.json +13 -1
  214. package/locales/fr/global.json +13 -1
  215. package/locales/hr/global.json +13 -1
  216. package/locales/hu/global.json +13 -1
  217. package/locales/hy/global.json +13 -1
  218. package/locales/it/global.json +13 -1
  219. package/locales/ja/global.json +13 -1
  220. package/locales/ko/global.json +13 -1
  221. package/locales/nl/global.json +13 -1
  222. package/locales/pl/global.json +13 -1
  223. package/locales/pt/global.json +13 -1
  224. package/locales/ro/global.json +13 -1
  225. package/locales/ru/global.json +13 -1
  226. package/locales/sk/global.json +13 -1
  227. package/locales/sl/global.json +13 -1
  228. package/locales/sv/global.json +13 -1
  229. package/locales/tl/global.json +13 -1
  230. package/locales/tr/global.json +13 -1
  231. package/locales/uk/global.json +13 -1
  232. package/locales/vi/global.json +13 -1
  233. package/locales/zh/global.json +13 -1
  234. package/locales/zh_TW/global.json +13 -1
  235. package/package.json +2 -2
@@ -1 +1 @@
1
- {"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3C,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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.InferProps<{
363
363
  title: PropTypes.Validator<string>;
364
+ subtitle: PropTypes.Requireable<string>;
365
+ selected: PropTypes.Requireable<boolean>;
364
366
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
365
367
  label: PropTypes.Requireable<string>;
366
368
  type: PropTypes.Requireable<string>;
@@ -403,6 +405,8 @@ declare namespace BrandUpdate {
403
405
  label: PropTypes.Requireable<string>;
404
406
  type: PropTypes.Requireable<string>;
405
407
  }> | null | undefined)[]>;
408
+ disabled: PropTypes.Requireable<boolean>;
409
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
406
410
  isBulkStyle: PropTypes.Requireable<boolean>;
407
411
  isOverflowHidden: PropTypes.Requireable<boolean>;
408
412
  order: PropTypes.Requireable<number>;
@@ -729,6 +733,144 @@ declare namespace BrandUpdate {
729
733
  label: PropTypes.Requireable<string>;
730
734
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
731
735
  }>>;
736
+ }> | PropTypes.InferProps<{
737
+ key: PropTypes.Requireable<string>;
738
+ type: PropTypes.Requireable<string>;
739
+ content: PropTypes.Requireable<PropTypes.InferProps<{
740
+ items: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
741
+ title: PropTypes.Validator<string>;
742
+ onUp: PropTypes.Requireable<(...args: any[]) => any>;
743
+ onDown: PropTypes.Requireable<(...args: any[]) => any>;
744
+ display: PropTypes.Requireable<PropTypes.InferProps<{
745
+ title: PropTypes.Requireable<string>;
746
+ name: PropTypes.Requireable<string>;
747
+ id: PropTypes.Requireable<string>;
748
+ value: PropTypes.Requireable<boolean>;
749
+ disabled: PropTypes.Requireable<boolean>;
750
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
751
+ description: PropTypes.Requireable<string>;
752
+ 'aria-labelledby': PropTypes.Requireable<string>;
753
+ 'aria-label': PropTypes.Requireable<string>;
754
+ modified: PropTypes.Requireable<boolean>;
755
+ titlePosition: PropTypes.Requireable<string>;
756
+ theme: PropTypes.Requireable<string>;
757
+ details: PropTypes.Requireable<string>;
758
+ 'data-name': PropTypes.Requireable<string>;
759
+ requiredSelection: PropTypes.Requireable<boolean>;
760
+ }>>;
761
+ contentTypes: PropTypes.Requireable<PropTypes.InferProps<{
762
+ modified: PropTypes.Requireable<boolean>;
763
+ color: PropTypes.Requireable<string>;
764
+ theme: PropTypes.Requireable<string>;
765
+ className: PropTypes.Requireable<string>;
766
+ list: PropTypes.Requireable<(PropTypes.InferProps<{
767
+ color: PropTypes.Requireable<string>;
768
+ value: PropTypes.Validator<string>;
769
+ name: PropTypes.Requireable<string>;
770
+ theme: PropTypes.Requireable<string>;
771
+ checked: PropTypes.Requireable<boolean>;
772
+ label: PropTypes.Requireable<string>;
773
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
774
+ }> | null | undefined)[]>;
775
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
776
+ }>>;
777
+ }> | PropTypes.InferProps<{
778
+ 'aria-label': PropTypes.Requireable<PropTypes.InferProps<{
779
+ title: PropTypes.Requireable<string>;
780
+ author: PropTypes.Requireable<string>;
781
+ modules: PropTypes.Requireable<string>;
782
+ position: PropTypes.Requireable<string>;
783
+ }>>;
784
+ image: PropTypes.Requireable<string>;
785
+ badgeList: PropTypes.Requireable<(PropTypes.InferProps<{
786
+ category: PropTypes.Requireable<string>;
787
+ label: PropTypes.Requireable<string>;
788
+ }> | null | undefined)[]>;
789
+ title: PropTypes.Requireable<string>;
790
+ author: PropTypes.Requireable<string>;
791
+ position: PropTypes.Requireable<number>;
792
+ id: PropTypes.Requireable<string>;
793
+ }> | PropTypes.InferProps<{
794
+ title: PropTypes.Validator<string>;
795
+ subtitle: PropTypes.Requireable<string>;
796
+ selected: PropTypes.Requireable<boolean>;
797
+ dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
798
+ label: PropTypes.Requireable<string>;
799
+ type: PropTypes.Requireable<string>;
800
+ className: PropTypes.Requireable<string>;
801
+ }> | null | undefined)[]>;
802
+ buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
803
+ type: PropTypes.Requireable<string>;
804
+ label: PropTypes.Requireable<string>;
805
+ ariaLabel: PropTypes.Requireable<string>;
806
+ dataName: PropTypes.Requireable<string>;
807
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
808
+ position: PropTypes.Requireable<string>;
809
+ type: PropTypes.Requireable<string>;
810
+ }>>;
811
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
812
+ }>>;
813
+ secondButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
814
+ type: PropTypes.Requireable<string>;
815
+ label: PropTypes.Requireable<string>;
816
+ ariaLabel: PropTypes.Requireable<string>;
817
+ dataName: PropTypes.Requireable<string>;
818
+ icon: PropTypes.Requireable<PropTypes.InferProps<{
819
+ position: PropTypes.Requireable<string>;
820
+ type: PropTypes.Requireable<string>;
821
+ }>>;
822
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
823
+ }>>;
824
+ bulletPointMenuButton: PropTypes.Requireable<PropTypes.InferProps<{
825
+ buttonAriaLabel: PropTypes.Requireable<string>;
826
+ menuAriaLabel: PropTypes.Requireable<string>;
827
+ buttons: PropTypes.Requireable<(PropTypes.InferProps<{
828
+ 'data-name': PropTypes.Requireable<string>;
829
+ label: PropTypes.Requireable<string>;
830
+ type: PropTypes.Requireable<string>;
831
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
832
+ }> | null | undefined)[]>;
833
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
834
+ }>>;
835
+ tags: PropTypes.Requireable<(PropTypes.InferProps<{
836
+ label: PropTypes.Requireable<string>;
837
+ type: PropTypes.Requireable<string>;
838
+ }> | null | undefined)[]>;
839
+ disabled: PropTypes.Requireable<boolean>;
840
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
841
+ isBulkStyle: PropTypes.Requireable<boolean>;
842
+ isOverflowHidden: PropTypes.Requireable<boolean>;
843
+ order: PropTypes.Requireable<number>;
844
+ 'aria-label': PropTypes.Requireable<string>;
845
+ contentType: PropTypes.Requireable<string>;
846
+ id: PropTypes.Requireable<string>;
847
+ }> | PropTypes.InferProps<{
848
+ 'aria-label': PropTypes.Requireable<string>;
849
+ id: PropTypes.Requireable<string>;
850
+ priorityRef: PropTypes.Requireable<string>;
851
+ title: PropTypes.Requireable<string>;
852
+ courses: PropTypes.Requireable<number>;
853
+ type: PropTypes.Requireable<string>;
854
+ onRemove: PropTypes.Requireable<(...args: any[]) => any>;
855
+ }> | null | undefined> | null | undefined)[]>;
856
+ onDrop: PropTypes.Requireable<(...args: any[]) => any>;
857
+ itemType: PropTypes.Requireable<string>;
858
+ }>>;
859
+ priorities: PropTypes.Requireable<(PropTypes.InferProps<{
860
+ ref: PropTypes.Requireable<string>;
861
+ title: PropTypes.Requireable<string>;
862
+ courses: PropTypes.Requireable<number>;
863
+ type: PropTypes.Requireable<string>;
864
+ }> | null | undefined)[]>;
865
+ filters: PropTypes.Requireable<(PropTypes.InferProps<{
866
+ count: PropTypes.Requireable<number>;
867
+ name: PropTypes.Validator<string>;
868
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
869
+ selected: PropTypes.Requireable<boolean>;
870
+ validOption: PropTypes.Requireable<boolean>;
871
+ }> | null | undefined)[]>;
872
+ isLoading: PropTypes.Requireable<boolean>;
873
+ onAdd: PropTypes.Requireable<(...args: any[]) => any>;
732
874
  }> | null | undefined>>;
733
875
  export const documentation: PropTypes.Requireable<PropTypes.InferProps<{
734
876
  content: PropTypes.Requireable<string>;
@@ -746,6 +888,15 @@ declare namespace BrandUpdate {
746
888
  'data-name': PropTypes.Requireable<string>;
747
889
  titleSize: PropTypes.Requireable<string>;
748
890
  subtitleSize: PropTypes.Requireable<string>;
891
+ icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
892
+ tag: PropTypes.Requireable<PropTypes.InferProps<{
893
+ label: PropTypes.Requireable<string>;
894
+ type: PropTypes.Requireable<string>;
895
+ size: PropTypes.Requireable<string>;
896
+ customStyle: PropTypes.Requireable<{
897
+ [x: string]: string | null | undefined;
898
+ }>;
899
+ }>>;
749
900
  }>>;
750
901
  headerIcon: PropTypes.Requireable<string>;
751
902
  backgroundImage: PropTypes.Requireable<string>;
@@ -856,6 +1007,8 @@ declare namespace BrandUpdate {
856
1007
  content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
857
1008
  items: PropTypes.Requireable<(PropTypes.InferProps<{
858
1009
  title: PropTypes.Validator<string>;
1010
+ subtitle: PropTypes.Requireable<string>;
1011
+ selected: PropTypes.Requireable<boolean>;
859
1012
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
860
1013
  label: PropTypes.Requireable<string>;
861
1014
  type: PropTypes.Requireable<string>;
@@ -898,6 +1051,8 @@ declare namespace BrandUpdate {
898
1051
  label: PropTypes.Requireable<string>;
899
1052
  type: PropTypes.Requireable<string>;
900
1053
  }> | null | undefined)[]>;
1054
+ disabled: PropTypes.Requireable<boolean>;
1055
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
901
1056
  isBulkStyle: PropTypes.Requireable<boolean>;
902
1057
  isOverflowHidden: PropTypes.Requireable<boolean>;
903
1058
  order: PropTypes.Requireable<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-update/index.js"],"names":[],"mappings":";AAoMA,sDA6CC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-update/index.js"],"names":[],"mappings":";AAuMA,sDA6CC"}
@@ -37,6 +37,8 @@ var _wizardContents = _interopRequireDefault(require("../../../organism/wizard-c
37
37
 
38
38
  var _listItems = _interopRequireDefault(require("../../../organism/list-items"));
39
39
 
40
+ var _brandLearningPriorities = _interopRequireDefault(require("../../../organism/brand-learning-priorities"));
41
+
40
42
  var _banner = _interopRequireDefault(require("../../../molecule/banner"));
41
43
 
42
44
  var _setupHeader = _interopRequireDefault(require("../../../organism/setup-header"));
@@ -221,6 +223,9 @@ const buildContentView = content => {
221
223
 
222
224
  case 'table-pending':
223
225
  return /*#__PURE__*/_react.default.createElement(_expandibleActionableTable.default, content);
226
+
227
+ case 'learning-priorities':
228
+ return /*#__PURE__*/_react.default.createElement(_brandLearningPriorities.default, content);
224
229
  }
225
230
  };
226
231
 
@@ -320,6 +325,9 @@ BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
320
325
  content: _propTypes.default.shape(_extends({}, _expandibleActionableTable.default.propTypes, _wizardContents.default.propTypes.content.propTypes)),
321
326
  key: _propTypes.default.string,
322
327
  type: _propTypes.default.oneOf(['expandible-table'])
328
+ })), _propTypes.default.shape(_extends({}, _brandLearningPriorities.default.propTypes, {
329
+ key: _propTypes.default.string,
330
+ type: _propTypes.default.oneOf(['learning-priorities'])
323
331
  }))]),
324
332
  documentation: _propTypes.default.shape({
325
333
  content: _propTypes.default.string,
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["getStyle","isSelected","style","selectedElement","unselectedElement","subTabsView","_subTabs","map","convert","cap","subTab","_index","title","type","selected","buildLeftNavigation","logo","items","onItemClick","formattedTabs","key","href","index","children","iconType","formattedTabsViews","tab","tabs","navigation","buildNotifications","notifications","isEmpty","notificationsList","notification","temporary","permanentNotification","find","permanentNotifications","buildHeader","header","buildPopin","popin","buildDocumentation","documentation","show","onClose","content","classNames","open","documentationContent","__html","closeButton","buildTabs","selectedTab","pipe","e","get","showTabs","subTabs","undefined","buildContentView","loaderContainer","loader","buildDetailsView","details","BrandUpdate","props","contentFixHeight","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","PropTypes","arrayOf","shape","Banner","Header","string","isRequired","bool","oneOfType","BrandForm","oneOf","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","BulkInfos","ExpandibleActionableTable","func","CmPopin"],"sources":["../../../../src/template/back-office/brand-update/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\nimport ButtonLinkIconOnly from '../../../atom/button-link-icon-only';\nimport ExpandibleActionableTable from '../../../molecule/expandible-actionable-table';\nimport BulkInfos from '../../../molecule/bulk-infos';\nimport style from './style.css';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n setChildrenAsHtml={false}\n />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={!notification.temporary ? style.permanentNotification : null} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return (\n <div className={!find({temporary: true}, notifications) ? style.permanentNotifications : null}>\n {notificationsList}\n </div>\n );\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n <Header {...header} />\n </div>\n );\n};\n\nconst buildPopin = popin => {\n return popin ? (\n <div className={style.popin}>\n <CmPopin {...popin} />\n </div>\n ) : null;\n};\n\nconst buildDocumentation = documentation => {\n if (!documentation) return null;\n const {show = false, onClose, content = ''} = documentation;\n return (\n <div className={classNames(style.documentation, show && style.open)}>\n <div\n className={style.documentationContent}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {onClose ? (\n <ButtonLinkIconOnly\n className={style.closeButton}\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab ? find(e => e.selected, selectedTab.subTabs) : undefined;\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'list-content':\n case 'expandible-actionable-table':\n return <ListItems {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n case 'expandible-table':\n return <WizardContents {...content} />;\n case 'bulk-empty-dashboard':\n return <BulkInfos {...content} />;\n case 'table-pending':\n return <ExpandibleActionableTable {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst BrandUpdate = props => {\n const {\n notifications,\n header,\n items,\n content,\n details,\n popin,\n onItemClick,\n documentation,\n contentFixHeight\n } = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const documentationView = buildDocumentation(documentation);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {tabsView}\n {contentView}\n {detailsView}\n {documentationView}\n </div>\n </div>\n {popinView}\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n }),\n PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content', 'expandible-actionable-table'])\n }),\n PropTypes.shape({\n ...BulkInfos.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['bulk-empty-dashboard'])\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['table-pending'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n content: PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n ...WizardContents.propTypes.content.propTypes\n }),\n key: PropTypes.string,\n type: PropTypes.oneOf(['expandible-table'])\n })\n ]),\n documentation: PropTypes.shape({\n content: PropTypes.string,\n show: PropTypes.bool,\n onClose: PropTypes.func\n }),\n popin: PropTypes.shape({...CmPopin.propTypes}),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func,\n contentFixHeight: PropTypes.bool\n};\n\nexport default BrandUpdate;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,QAAQ,GAAGC,UAAU,IAAKA,UAAU,GAAGC,cAAA,CAAMC,eAAT,GAA2BD,cAAA,CAAME,iBAA3E;;AAEA,MAAMC,WAAW,GAAG,CAACC,QAAQ,GAAG,EAAZ,KAClBC,YAAA,CAAIC,OAAJ,CAAY;EAACC,GAAG,EAAE;AAAN,CAAZ,EAA0B,CAACC,MAAD,EAASC,MAAT,kBACxB;EAAK,GAAG,EAAED,MAAM,CAACE;AAAjB,GACGF,MAAM,CAACG,IAAP,KAAgB,UAAhB,gBACC,6BAAC,qBAAD,eACMH,MADN;EAEE,MAAM,EAAEV,QAAQ,CAACU,MAAM,CAACI,QAAR,CAFlB;EAGE,SAAS,EAAE,KAHb;EAIE,MAAM,EAAE;AAJV,GADD,gBAQC,6BAAC,iBAAD,eACMJ,MADN;EAEE,MAAM,EAAEV,QAAQ,CAACU,MAAM,CAACI,QAAR,CAFlB;EAGE,SAAS,EAAE,KAHb;EAIE,iBAAiB,EAAE;AAJrB,GATJ,CADF,EAkBGR,QAlBH,CADF,C,CAqBA;;;AACA,MAAMS,mBAAmB,GAAG,CAACC,IAAD,EAAOC,KAAP,EAAcC,WAAd,KAA8B;EACxD,MAAMC,aAAa,GAAGF,KAAK,CAACV,GAAN,CAAU,CAAC;IAACa,GAAD;IAAMR,KAAN;IAAaS,IAAb;IAAmBP,QAAnB;IAA6BD,IAAI,GAAG;EAApC,CAAD,EAAmDS,KAAnD,MAA8D;IAC5FV,KAD4F;IAE5FE,QAF4F;IAG5FD,IAH4F;IAI5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ADU;IAE7B7C,IAAI,EAAEwC,kBAAA,CAAUO,IAFa;IAG7B9C,OAAO,EAAEuC,kBAAA,CAAUmB;EAHU,CAAhB,CAxFO;EA6FtB9D,KAAK,EAAE2C,kBAAA,CAAUE,KAAV,cAAoBkB,gBAAA,CAAQrB,SAA5B,EA7Fe;EA8FtBnB,OAAO,EAAEoB,kBAAA,CAAUE,KAAV,cACJS,mBAAA,CAAWZ,SADP;IAEP/D,GAAG,EAAEgE,kBAAA,CAAUK,MAFR;IAGP5E,IAAI,EAAEuE,kBAAA,CAAUU,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAHC,GA9Fa;EAmGtB5E,WAAW,EAAEkE,kBAAA,CAAUmB,IAnGD;EAoGtBpC,gBAAgB,EAAEiB,kBAAA,CAAUO;AApGN,CAAxB;eAuGe1B,W"}
1
+ {"version":3,"file":"index.js","names":["getStyle","isSelected","style","selectedElement","unselectedElement","subTabsView","_subTabs","map","convert","cap","subTab","_index","title","type","selected","buildLeftNavigation","logo","items","onItemClick","formattedTabs","key","href","index","children","iconType","formattedTabsViews","tab","tabs","navigation","buildNotifications","notifications","isEmpty","notificationsList","notification","temporary","permanentNotification","find","permanentNotifications","buildHeader","header","buildPopin","popin","buildDocumentation","documentation","show","onClose","content","classNames","open","documentationContent","__html","closeButton","buildTabs","selectedTab","pipe","e","get","showTabs","subTabs","undefined","buildContentView","loaderContainer","loader","buildDetailsView","details","BrandUpdate","props","contentFixHeight","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","PropTypes","arrayOf","shape","Banner","Header","string","isRequired","bool","oneOfType","BrandForm","oneOf","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","BulkInfos","ExpandibleActionableTable","BrandLearningPriorities","func","CmPopin"],"sources":["../../../../src/template/back-office/brand-update/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport BrandLearningPriorities from '../../../organism/brand-learning-priorities';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\nimport ButtonLinkIconOnly from '../../../atom/button-link-icon-only';\nimport ExpandibleActionableTable from '../../../molecule/expandible-actionable-table';\nimport BulkInfos from '../../../molecule/bulk-infos';\nimport style from './style.css';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n setChildrenAsHtml={false}\n />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={!notification.temporary ? style.permanentNotification : null} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return (\n <div className={!find({temporary: true}, notifications) ? style.permanentNotifications : null}>\n {notificationsList}\n </div>\n );\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n <Header {...header} />\n </div>\n );\n};\n\nconst buildPopin = popin => {\n return popin ? (\n <div className={style.popin}>\n <CmPopin {...popin} />\n </div>\n ) : null;\n};\n\nconst buildDocumentation = documentation => {\n if (!documentation) return null;\n const {show = false, onClose, content = ''} = documentation;\n return (\n <div className={classNames(style.documentation, show && style.open)}>\n <div\n className={style.documentationContent}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {onClose ? (\n <ButtonLinkIconOnly\n className={style.closeButton}\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab ? find(e => e.selected, selectedTab.subTabs) : undefined;\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'list-content':\n case 'expandible-actionable-table':\n return <ListItems {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n case 'expandible-table':\n return <WizardContents {...content} />;\n case 'bulk-empty-dashboard':\n return <BulkInfos {...content} />;\n case 'table-pending':\n return <ExpandibleActionableTable {...content} />;\n case 'learning-priorities':\n return <BrandLearningPriorities {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst BrandUpdate = props => {\n const {\n notifications,\n header,\n items,\n content,\n details,\n popin,\n onItemClick,\n documentation,\n contentFixHeight\n } = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const documentationView = buildDocumentation(documentation);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {tabsView}\n {contentView}\n {detailsView}\n {documentationView}\n </div>\n </div>\n {popinView}\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n }),\n PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content', 'expandible-actionable-table'])\n }),\n PropTypes.shape({\n ...BulkInfos.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['bulk-empty-dashboard'])\n }),\n PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['table-pending'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n content: PropTypes.shape({\n ...ExpandibleActionableTable.propTypes,\n ...WizardContents.propTypes.content.propTypes\n }),\n key: PropTypes.string,\n type: PropTypes.oneOf(['expandible-table'])\n }),\n PropTypes.shape({\n ...BrandLearningPriorities.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['learning-priorities'])\n })\n ]),\n documentation: PropTypes.shape({\n content: PropTypes.string,\n show: PropTypes.bool,\n onClose: PropTypes.func\n }),\n popin: PropTypes.shape({...CmPopin.propTypes}),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func,\n contentFixHeight: PropTypes.bool\n};\n\nexport default BrandUpdate;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,QAAQ,GAAGC,UAAU,IAAKA,UAAU,GAAGC,cAAA,CAAMC,eAAT,GAA2BD,cAAA,CAAME,iBAA3E;;AAEA,MAAMC,WAAW,GAAG,CAACC,QAAQ,GAAG,EAAZ,KAClBC,YAAA,CAAIC,OAAJ,CAAY;EAACC,GAAG,EAAE;AAAN,CAAZ,EAA0B,CAACC,MAAD,EAASC,MAAT,kBACxB;EAAK,GAAG,EAAED,MAAM,CAACE;AAAjB,GACGF,MAAM,CAACG,IAAP,KAAgB,UAAhB,gBACC,6BAAC,qBAAD,eACMH,MADN;EAEE,MAAM,EAAEV,QAAQ,CAACU,MAAM,CAACI,QAAR,CAFlB;EAGE,SAAS,EAAE,KAHb;EAIE,MAAM,EAAE;AAJV,GADD,gBAQC,6BAAC,iBAAD,eACMJ,MADN;EAEE,MAAM,EAAEV,QAAQ,CAACU,MAAM,CAACI,QAAR,CAFlB;EAGE,SAAS,EAAE,KAHb;EAIE,iBAAiB,EAAE;AAJrB,GATJ,CADF,EAkBGR,QAlBH,CADF,C,CAqBA;;;AACA,MAAMS,mBAAmB,GAAG,CAACC,IAAD,EAAOC,KAAP,EAAcC,WAAd,KAA8B;EACxD,MAAMC,aAAa,GAAGF,KAAK,CAACV,GAAN,CAAU,CAAC;IA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,GAAG,EAAEgE,kBAAA,CAAUK,MANjB;IAOE5E,IAAI,EAAEuE,kBAAA,CAAUU,KAAV,CAAgB,CAAC,kBAAD,CAAhB;EAPR,GA9C2B,EAuD3BV,kBAAA,CAAUE,KAAV,cACKiB,gCAAA,CAAwBpB,SAD7B;IAEE/D,GAAG,EAAEgE,kBAAA,CAAUK,MAFjB;IAGE5E,IAAI,EAAEuE,kBAAA,CAAUU,KAAV,CAAgB,CAAC,qBAAD,CAAhB;EAHR,GAvD2B,CAApB,CAhCa;EA6FtBnD,aAAa,EAAEyC,kBAAA,CAAUE,KAAV,CAAgB;IAC7BxC,OAAO,EAAEsC,kBAAA,CAAUK,MADU;IAE7B7C,IAAI,EAAEwC,kBAAA,CAAUO,IAFa;IAG7B9C,OAAO,EAAEuC,kBAAA,CAAUoB;EAHU,CAAhB,CA7FO;EAkGtB/D,KAAK,EAAE2C,kBAAA,CAAUE,KAAV,cAAoBmB,gBAAA,CAAQtB,SAA5B,EAlGe;EAmGtBnB,OAAO,EAAEoB,kBAAA,CAAUE,KAAV,cACJS,mBAAA,CAAWZ,SADP;IAEP/D,GAAG,EAAEgE,kBAAA,CAAUK,MAFR;IAGP5E,IAAI,EAAEuE,kBAAA,CAAUU,KAAV,CAAgB,CAAC,MAAD,CAAhB;EAHC,GAnGa;EAwGtB5E,WAAW,EAAEkE,kBAAA,CAAUoB,IAxGD;EAyGtBrC,gBAAgB,EAAEiB,kBAAA,CAAUO;AAzGN,CAAxB;eA4Ge1B,W"}
@@ -16,6 +16,15 @@ declare namespace Dashboard {
16
16
  'data-name': PropTypes.Requireable<string>;
17
17
  titleSize: PropTypes.Requireable<string>;
18
18
  subtitleSize: PropTypes.Requireable<string>;
19
+ icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
20
+ tag: PropTypes.Requireable<PropTypes.InferProps<{
21
+ label: PropTypes.Requireable<string>;
22
+ type: PropTypes.Requireable<string>;
23
+ size: PropTypes.Requireable<string>;
24
+ customStyle: PropTypes.Requireable<{
25
+ [x: string]: string | null | undefined;
26
+ }>;
27
+ }>>;
19
28
  }>>;
20
29
  headerIcon: PropTypes.Requireable<string>;
21
30
  backgroundImage: PropTypes.Requireable<string>;
@@ -126,6 +135,8 @@ declare namespace Dashboard {
126
135
  content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
127
136
  items: PropTypes.Requireable<(PropTypes.InferProps<{
128
137
  title: PropTypes.Validator<string>;
138
+ subtitle: PropTypes.Requireable<string>;
139
+ selected: PropTypes.Requireable<boolean>;
129
140
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
130
141
  label: PropTypes.Requireable<string>;
131
142
  type: PropTypes.Requireable<string>;
@@ -168,6 +179,8 @@ declare namespace Dashboard {
168
179
  label: PropTypes.Requireable<string>;
169
180
  type: PropTypes.Requireable<string>;
170
181
  }> | null | undefined)[]>;
182
+ disabled: PropTypes.Requireable<boolean>;
183
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
171
184
  isBulkStyle: PropTypes.Requireable<boolean>;
172
185
  isOverflowHidden: PropTypes.Requireable<boolean>;
173
186
  order: PropTypes.Requireable<number>;
@@ -296,6 +309,15 @@ declare namespace Dashboard {
296
309
  'data-name': PropTypes.Requireable<string>;
297
310
  titleSize: PropTypes.Requireable<string>;
298
311
  subtitleSize: PropTypes.Requireable<string>;
312
+ icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
313
+ tag: PropTypes.Requireable<PropTypes.InferProps<{
314
+ label: PropTypes.Requireable<string>;
315
+ type: PropTypes.Requireable<string>;
316
+ size: PropTypes.Requireable<string>;
317
+ customStyle: PropTypes.Requireable<{
318
+ [x: string]: string | null | undefined;
319
+ }>;
320
+ }>>;
299
321
  }>>;
300
322
  headerIcon: PropTypes.Requireable<string>;
301
323
  backgroundImage: PropTypes.Requireable<string>;
@@ -406,6 +428,8 @@ declare namespace Dashboard {
406
428
  content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
407
429
  items: PropTypes.Requireable<(PropTypes.InferProps<{
408
430
  title: PropTypes.Validator<string>;
431
+ subtitle: PropTypes.Requireable<string>;
432
+ selected: PropTypes.Requireable<boolean>;
409
433
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
410
434
  label: PropTypes.Requireable<string>;
411
435
  type: PropTypes.Requireable<string>;
@@ -448,6 +472,8 @@ declare namespace Dashboard {
448
472
  label: PropTypes.Requireable<string>;
449
473
  type: PropTypes.Requireable<string>;
450
474
  }> | null | undefined)[]>;
475
+ disabled: PropTypes.Requireable<boolean>;
476
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
451
477
  isBulkStyle: PropTypes.Requireable<boolean>;
452
478
  isOverflowHidden: PropTypes.Requireable<boolean>;
453
479
  order: PropTypes.Requireable<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/dashboard/index.js"],"names":[],"mappings":";AAsBA,oDAmDC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/dashboard/index.js"],"names":[],"mappings":";AAyBA,oDA8EC"}
@@ -3,6 +3,8 @@
3
3
  exports.__esModule = true;
4
4
  exports.default = void 0;
5
5
 
6
+ var _size2 = _interopRequireDefault(require("lodash/fp/size"));
7
+
6
8
  var _react = _interopRequireDefault(require("react"));
7
9
 
8
10
  var _propTypes = _interopRequireDefault(require("prop-types"));
@@ -25,6 +27,10 @@ var _reviewBanner = _interopRequireDefault(require("../../../molecule/dashboard/
25
27
 
26
28
  var _learningProfileBanner = _interopRequireDefault(require("../../../molecule/dashboard/learning-profile-banner"));
27
29
 
30
+ var _title = _interopRequireDefault(require("../../../atom/title"));
31
+
32
+ var _myLearning = require("../../my-learning");
33
+
28
34
  var _style = _interopRequireDefault(require("./style.css"));
29
35
 
30
36
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
@@ -70,6 +76,28 @@ const Dashboard = props => {
70
76
  case 'battleRequests':
71
77
  return /*#__PURE__*/_react.default.createElement(_battleRequestList.default, section);
72
78
 
79
+ case 'learningPrioritiesCards':
80
+ {
81
+ return /*#__PURE__*/_react.default.createElement(_cardsList.default, _extends({}, section, {
82
+ title: /*#__PURE__*/_react.default.createElement(_title.default, {
83
+ type: 'form-group',
84
+ title: section.title,
85
+ subtitle: section.subtitle,
86
+ icon: {
87
+ iconName: 'sign-post',
88
+ iconColor: '#A32700',
89
+ borderRadius: '12px',
90
+ backgroundColor: '#FFDCD1'
91
+ },
92
+ tag: {
93
+ label: `${(0, _size2.default)(section.cards)}`,
94
+ size: 'S'
95
+ }
96
+ }),
97
+ "arrows-aria-label": showMoreOnLeftOrRightAriaLabel
98
+ }));
99
+ }
100
+
73
101
  case 'cards':
74
102
  return /*#__PURE__*/_react.default.createElement(_cardsList.default, _extends({}, section, {
75
103
  "arrows-aria-label": showMoreOnLeftOrRightAriaLabel
@@ -116,7 +144,7 @@ const Dashboard = props => {
116
144
  Dashboard.propTypes = process.env.NODE_ENV !== "production" ? {
117
145
  hero: Hero.propTypes.hero,
118
146
  welcome: Hero.propTypes.welcome,
119
- sections: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape(_battleRequestList.default.propTypes), _propTypes.default.shape(_cardsList.default.propTypes), _propTypes.default.shape(_newsList.default.propTypes), _propTypes.default.shape(_startBattle.default.propTypes), _propTypes.default.shape(_reviewBanner.default.propTypes), _propTypes.default.shape(_learningProfileBanner.default.propTypes)])),
147
+ sections: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape(_battleRequestList.default.propTypes), _propTypes.default.shape(_cardsList.default.propTypes), _propTypes.default.shape(_myLearning.learningPrioritiesPropTypes), _propTypes.default.shape(_newsList.default.propTypes), _propTypes.default.shape(_startBattle.default.propTypes), _propTypes.default.shape(_reviewBanner.default.propTypes), _propTypes.default.shape(_learningProfileBanner.default.propTypes)])),
120
148
  cookie: _propTypes.default.shape(_cmPopin.default.propTypes),
121
149
  'arrows-aria-label': _cardsList.default.propTypes['arrows-aria-label'],
122
150
  popinWithCards: _propTypes.default.shape(_cmPopin.default.propTypes)
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["Hero","React","memo","hero","welcome","style","propTypes","PropTypes","shape","HeroCard","Slide","Dashboard","props","sections","cookie","popinWithCards","showMoreOnLeftOrRightAriaLabel","buildSectionComponent","section","type","buildSection","index","sectionView","sectionsList","key","map","wrapper","arrayOf","oneOfType","BattleRequestList","CardsList","NewsList","StartBattle","ReviewBanner","LearningProfileBanner","CMPopin"],"sources":["../../../../src/template/common/dashboard/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport Slide from '../../../atom/slide';\nimport HeroCard from '../../../molecule/hero';\nimport BattleRequestList from '../../../molecule/dashboard/battle-request-list';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport NewsList from '../../../molecule/dashboard/news-list';\nimport StartBattle from '../../../molecule/dashboard/start-battle';\nimport CMPopin from '../../../molecule/cm-popin';\nimport ReviewBanner from '../../../molecule/dashboard/review-banner';\nimport LearningProfileBanner from '../../../molecule/dashboard/learning-profile-banner';\nimport style from './style.css';\n\nconst Hero = React.memo(function Hero({hero, welcome}) {\n return <div className={style.hero}>{hero ? <HeroCard {...hero} /> : <Slide {...welcome} />}</div>;\n});\n\nHero.propTypes = {\n hero: PropTypes.shape(HeroCard.propTypes),\n welcome: PropTypes.shape(Slide.propTypes)\n};\n\nconst Dashboard = props => {\n const {\n sections = [],\n hero,\n welcome,\n cookie,\n popinWithCards,\n 'arrows-aria-label': showMoreOnLeftOrRightAriaLabel\n } = props;\n const buildSectionComponent = section => {\n const {type} = section;\n switch (type) {\n case 'hero':\n return <Hero hero={hero} welcome={welcome} />;\n case 'battleRequests':\n return <BattleRequestList {...section} />;\n case 'cards':\n return <CardsList {...section} arrows-aria-label={showMoreOnLeftOrRightAriaLabel} />;\n case 'news':\n return <NewsList {...section} />;\n case 'battle':\n return <StartBattle {...section} />;\n case 'review':\n return <ReviewBanner {...section} />;\n case 'learningProfile':\n return <LearningProfileBanner {...section} />;\n default:\n return null;\n }\n };\n\n const buildSection = (section, index) => {\n const sectionView = buildSectionComponent(section);\n\n return <div key={index}>{sectionView}</div>;\n };\n\n const sectionsList = [{type: 'hero', key: 'hero'}, ...sections].map(section => (\n <div key={section.key}>{buildSection(section)}</div>\n ));\n return (\n <div className={style.wrapper} data-name=\"dashboard\">\n {sectionsList}\n {cookie ? <CMPopin {...cookie} /> : null}\n {popinWithCards ? (\n <div className={style.popinWithCards}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nDashboard.propTypes = {\n hero: Hero.propTypes.hero,\n welcome: Hero.propTypes.welcome,\n sections: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(BattleRequestList.propTypes),\n PropTypes.shape(CardsList.propTypes),\n PropTypes.shape(NewsList.propTypes),\n PropTypes.shape(StartBattle.propTypes),\n PropTypes.shape(ReviewBanner.propTypes),\n PropTypes.shape(LearningProfileBanner.propTypes)\n ])\n ),\n cookie: PropTypes.shape(CMPopin.propTypes),\n 'arrows-aria-label': CardsList.propTypes['arrows-aria-label'],\n popinWithCards: PropTypes.shape(CMPopin.propTypes)\n};\nexport default Dashboard;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,IAAI,gBAAGC,cAAA,CAAMC,IAAN,CAAW,SAASF,IAAT,CAAc;EAACG,IAAD;EAAOC;AAAP,CAAd,EAA+B;EACrD,oBAAO;IAAK,SAAS,EAAEC,cAAA,CAAMF;EAAtB,GAA6BA,IAAI,gBAAG,6BAAC,aAAD,EAAcA,IAAd,CAAH,gBAA4B,6BAAC,cAAD,EAAWC,OAAX,CAA7D,CAAP;AACD,CAFY,CAAb;;AAIAJ,IAAI,CAACM,SAAL,2CAAiB;EACfH,IAAI,EAAEI,kBAAA,CAAUC,KAAV,CAAgBC,aAAA,CA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AgB2B,gBAAA,CAAQ7B,SAAxB;AAfI,CAAtB;eAiBeK,S"}
1
+ {"version":3,"file":"index.js","names":["Hero","React","memo","hero","welcome","style","propTypes","PropTypes","shape","HeroCard","Slide","Dashboard","props","sections","cookie","popinWithCards","showMoreOnLeftOrRightAriaLabel","buildSectionComponent","section","type","title","subtitle","icon","iconName","iconColor","borderRadius","backgroundColor","tag","label","cards","size","buildSection","index","sectionView","sectionsList","key","map","wrapper","arrayOf","oneOfType","BattleRequestList","CardsList","learningPrioritiesPropTypes","NewsList","StartBattle","ReviewBanner","LearningProfileBanner","CMPopin"],"sources":["../../../../src/template/common/dashboard/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {size} from 'lodash/fp';\nimport Slide from '../../../atom/slide';\nimport HeroCard from '../../../molecule/hero';\nimport BattleRequestList from '../../../molecule/dashboard/battle-request-list';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport NewsList from '../../../molecule/dashboard/news-list';\nimport StartBattle from '../../../molecule/dashboard/start-battle';\nimport CMPopin from '../../../molecule/cm-popin';\nimport ReviewBanner from '../../../molecule/dashboard/review-banner';\nimport LearningProfileBanner from '../../../molecule/dashboard/learning-profile-banner';\nimport Title from '../../../atom/title';\nimport {learningPrioritiesPropTypes} from '../../my-learning';\nimport style from './style.css';\n\nconst Hero = React.memo(function Hero({hero, welcome}) {\n return <div className={style.hero}>{hero ? <HeroCard {...hero} /> : <Slide {...welcome} />}</div>;\n});\n\nHero.propTypes = {\n hero: PropTypes.shape(HeroCard.propTypes),\n welcome: PropTypes.shape(Slide.propTypes)\n};\n\nconst Dashboard = props => {\n const {\n sections = [],\n hero,\n welcome,\n cookie,\n popinWithCards,\n 'arrows-aria-label': showMoreOnLeftOrRightAriaLabel\n } = props;\n const buildSectionComponent = section => {\n const {type} = section;\n switch (type) {\n case 'hero':\n return <Hero hero={hero} welcome={welcome} />;\n case 'battleRequests':\n return <BattleRequestList {...section} />;\n case 'learningPrioritiesCards': {\n return (\n <CardsList\n {...section}\n title={\n <Title\n {...{\n type: 'form-group',\n title: section.title,\n subtitle: section.subtitle,\n icon: {\n iconName: 'sign-post',\n iconColor: '#A32700',\n borderRadius: '12px',\n backgroundColor: '#FFDCD1'\n },\n tag: {\n label: `${size(section.cards)}`,\n size: 'S'\n }\n }}\n />\n }\n arrows-aria-label={showMoreOnLeftOrRightAriaLabel}\n />\n );\n }\n case 'cards':\n return <CardsList {...section} arrows-aria-label={showMoreOnLeftOrRightAriaLabel} />;\n case 'news':\n return <NewsList {...section} />;\n case 'battle':\n return <StartBattle {...section} />;\n case 'review':\n return <ReviewBanner {...section} />;\n case 'learningProfile':\n return <LearningProfileBanner {...section} />;\n default:\n return null;\n }\n };\n\n const buildSection = (section, index) => {\n const sectionView = buildSectionComponent(section);\n\n return <div key={index}>{sectionView}</div>;\n };\n\n const sectionsList = [{type: 'hero', key: 'hero'}, ...sections].map(section => (\n <div key={section.key}>{buildSection(section)}</div>\n ));\n return (\n <div className={style.wrapper} data-name=\"dashboard\">\n {sectionsList}\n {cookie ? <CMPopin {...cookie} /> : null}\n {popinWithCards ? (\n <div className={style.popinWithCards}>\n <CMPopin {...popinWithCards} />\n </div>\n ) : null}\n </div>\n );\n};\n\nDashboard.propTypes = {\n hero: Hero.propTypes.hero,\n welcome: Hero.propTypes.welcome,\n sections: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(BattleRequestList.propTypes),\n PropTypes.shape(CardsList.propTypes),\n PropTypes.shape(learningPrioritiesPropTypes),\n PropTypes.shape(NewsList.propTypes),\n PropTypes.shape(StartBattle.propTypes),\n PropTypes.shape(ReviewBanner.propTypes),\n PropTypes.shape(LearningProfileBanner.propTypes)\n ])\n ),\n cookie: PropTypes.shape(CMPopin.propTypes),\n 'arrows-aria-label': CardsList.propTypes['arrows-aria-label'],\n popinWithCards: PropTypes.shape(CMPopin.propTypes)\n};\nexport default Dashboard;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;A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AK,SAAS,EAAEV,cAAA,CAAMU;EAAtB,gBACE,6BAAC,gBAAD,EAAaA,cAAb,CADF,CADa,GAIX,IAPN,CADF;AAWD,CA9ED;;AAgFAJ,SAAS,CAACL,SAAV,2CAAsB;EACpBH,IAAI,EAAEH,IAAI,CAACM,SAAL,CAAeH,IADD;EAEpBC,OAAO,EAAEJ,IAAI,CAACM,SAAL,CAAeF,OAFJ;EAGpBS,QAAQ,EAAEN,kBAAA,CAAU+B,OAAV,CACR/B,kBAAA,CAAUgC,SAAV,CAAoB,CAClBhC,kBAAA,CAAUC,KAAV,CAAgBgC,0BAAA,CAAkBlC,SAAlC,CADkB,EAElBC,kBAAA,CAAUC,KAAV,CAAgBiC,kBAAA,CAAUnC,SAA1B,CAFkB,EAGlBC,kBAAA,CAAUC,KAAV,CAAgBkC,uCAAhB,CAHkB,EAIlBnC,kBAAA,CAAUC,KAAV,CAAgBmC,iBAAA,CAASrC,SAAzB,CAJkB,EAKlBC,kBAAA,CAAUC,KAAV,CAAgBoC,oBAAA,CAAYtC,SAA5B,CALkB,EAMlBC,kBAAA,CAAUC,KAAV,CAAgBqC,qBAAA,CAAavC,SAA7B,CANkB,EAOlBC,kBAAA,CAAUC,KAAV,CAAgBsC,8BAAA,CAAsBxC,SAAtC,CAPkB,CAApB,CADQ,CAHU;EAcpBQ,MAAM,EAAEP,kBAAA,CAAUC,KAAV,CAAgBuC,gBAAA,CAAQzC,SAAxB,CAdY;EAepB,qBAAqBmC,kBAAA,CAAUnC,SAAV,CAAoB,mBAApB,CAfD;EAgBpBS,cAAc,EAAER,kBAAA,CAAUC,KAAV,CAAgBuC,gBAAA,CAAQzC,SAAxB;AAhBI,CAAtB;eAkBeK,S"}
@@ -116,7 +116,7 @@ declare namespace SearchPage {
116
116
  dataName: PropTypes.Requireable<string>;
117
117
  title: PropTypes.Requireable<NonNullable<PropTypes.ReactNodeLike>>;
118
118
  showMore: PropTypes.Requireable<string>;
119
- cards: PropTypes.Requireable<(PropTypes.InferProps<{
119
+ cards: PropTypes.Requireable<(NonNullable<PropTypes.InferProps<{
120
120
  badge: PropTypes.Requireable<string>;
121
121
  image: PropTypes.Requireable<string>;
122
122
  disabled: PropTypes.Requireable<boolean>;
@@ -167,7 +167,12 @@ declare namespace SearchPage {
167
167
  progression: PropTypes.Requireable<string>;
168
168
  adaptive: PropTypes.Requireable<string>;
169
169
  }>>;
170
- }> | null | undefined)[]>;
170
+ }> | PropTypes.InferProps<{
171
+ title: PropTypes.Requireable<string>;
172
+ tagLabel: PropTypes.Requireable<string>;
173
+ progression: PropTypes.Requireable<number>;
174
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
175
+ }> | null | undefined> | null | undefined)[]>;
171
176
  customStyle: PropTypes.Requireable<{
172
177
  [x: string]: string | null | undefined;
173
178
  }>;
@@ -177,6 +182,7 @@ declare namespace SearchPage {
177
182
  showMoreOnLeftAriaLabel: PropTypes.Requireable<string>;
178
183
  showMoreOnRightAriaLabel: PropTypes.Requireable<string>;
179
184
  }>>;
185
+ type: PropTypes.Requireable<string>;
180
186
  testingSizes: PropTypes.Requireable<any>;
181
187
  }>>;
182
188
  const moreSortAriaLabel: PropTypes.Requireable<string>;
@@ -194,6 +200,15 @@ declare namespace SearchPage {
194
200
  'data-name': PropTypes.Requireable<string>;
195
201
  titleSize: PropTypes.Requireable<string>;
196
202
  subtitleSize: PropTypes.Requireable<string>;
203
+ icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
204
+ tag: PropTypes.Requireable<PropTypes.InferProps<{
205
+ label: PropTypes.Requireable<string>;
206
+ type: PropTypes.Requireable<string>;
207
+ size: PropTypes.Requireable<string>;
208
+ customStyle: PropTypes.Requireable<{
209
+ [x: string]: string | null | undefined;
210
+ }>;
211
+ }>>;
197
212
  }>>;
198
213
  headerIcon: PropTypes.Requireable<string>;
199
214
  backgroundImage: PropTypes.Requireable<string>;
@@ -304,6 +319,8 @@ declare namespace SearchPage {
304
319
  content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
305
320
  items: PropTypes.Requireable<(PropTypes.InferProps<{
306
321
  title: PropTypes.Validator<string>;
322
+ subtitle: PropTypes.Requireable<string>;
323
+ selected: PropTypes.Requireable<boolean>;
307
324
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
308
325
  label: PropTypes.Requireable<string>;
309
326
  type: PropTypes.Requireable<string>;
@@ -346,6 +363,8 @@ declare namespace SearchPage {
346
363
  label: PropTypes.Requireable<string>;
347
364
  type: PropTypes.Requireable<string>;
348
365
  }> | null | undefined)[]>;
366
+ disabled: PropTypes.Requireable<boolean>;
367
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
349
368
  isBulkStyle: PropTypes.Requireable<boolean>;
350
369
  isOverflowHidden: PropTypes.Requireable<boolean>;
351
370
  order: PropTypes.Requireable<number>;
@@ -33,6 +33,15 @@ declare namespace ExternalCourse {
33
33
  'data-name': PropTypes.Requireable<string>;
34
34
  titleSize: PropTypes.Requireable<string>;
35
35
  subtitleSize: PropTypes.Requireable<string>;
36
+ icon: PropTypes.Requireable<PropTypes.InferProps<any>>;
37
+ tag: PropTypes.Requireable<PropTypes.InferProps<{
38
+ label: PropTypes.Requireable<string>;
39
+ type: PropTypes.Requireable<string>;
40
+ size: PropTypes.Requireable<string>;
41
+ customStyle: PropTypes.Requireable<{
42
+ [x: string]: string | null | undefined;
43
+ }>;
44
+ }>>;
36
45
  }>>;
37
46
  headerIcon: PropTypes.Requireable<string>;
38
47
  backgroundImage: PropTypes.Requireable<string>;
@@ -143,6 +152,8 @@ declare namespace ExternalCourse {
143
152
  content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
144
153
  items: PropTypes.Requireable<(PropTypes.InferProps<{
145
154
  title: PropTypes.Validator<string>;
155
+ subtitle: PropTypes.Requireable<string>;
156
+ selected: PropTypes.Requireable<boolean>;
146
157
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
147
158
  label: PropTypes.Requireable<string>;
148
159
  type: PropTypes.Requireable<string>;
@@ -185,6 +196,8 @@ declare namespace ExternalCourse {
185
196
  label: PropTypes.Requireable<string>;
186
197
  type: PropTypes.Requireable<string>;
187
198
  }> | null | undefined)[]>;
199
+ disabled: PropTypes.Requireable<boolean>;
200
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
188
201
  isBulkStyle: PropTypes.Requireable<boolean>;
189
202
  isOverflowHidden: PropTypes.Requireable<boolean>;
190
203
  order: PropTypes.Requireable<number>;