@coorpacademy/components 11.32.21 → 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 (171) hide show
  1. package/es/atom/radio-with-title/index.d.ts +3 -0
  2. package/es/atom/radio-with-title/index.d.ts.map +1 -1
  3. package/es/atom/radio-with-title/types.d.ts +3 -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/title/index.d.ts +3 -0
  10. package/es/molecule/cm-popin/types.d.ts +7 -0
  11. package/es/molecule/cm-popin/types.d.ts.map +1 -1
  12. package/es/molecule/draggable-list/index.d.ts +12 -0
  13. package/es/molecule/draggable-list/index.d.ts.map +1 -1
  14. package/es/molecule/draggable-list/index.js +4 -2
  15. package/es/molecule/draggable-list/index.js.map +1 -1
  16. package/es/molecule/learning-priority-modal/index.d.ts +30 -0
  17. package/es/molecule/learning-priority-modal/index.d.ts.map +1 -0
  18. package/es/molecule/learning-priority-modal/index.js +242 -0
  19. package/es/molecule/learning-priority-modal/index.js.map +1 -0
  20. package/es/molecule/learning-priority-modal/style.css +70 -0
  21. package/es/molecule/learning-priority-setup-item/index.d.ts +18 -0
  22. package/es/molecule/learning-priority-setup-item/index.d.ts.map +1 -0
  23. package/es/molecule/learning-priority-setup-item/index.js +83 -0
  24. package/es/molecule/learning-priority-setup-item/index.js.map +1 -0
  25. package/es/molecule/learning-priority-setup-item/style.css +47 -0
  26. package/es/molecule/title-and-checkbox-wrapper/index.d.ts +3 -0
  27. package/es/molecule/title-radio-wrapper/index.d.ts +3 -0
  28. package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  29. package/es/molecule/title-radio-wrapper/types.d.ts +3 -0
  30. package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  31. package/es/organism/brand-learning-priorities/index.d.ts +167 -0
  32. package/es/organism/brand-learning-priorities/index.d.ts.map +1 -0
  33. package/es/organism/brand-learning-priorities/index.js +128 -0
  34. package/es/organism/brand-learning-priorities/index.js.map +1 -0
  35. package/es/organism/brand-learning-priorities/style.css +40 -0
  36. package/es/organism/list-item/index.d.ts +34 -2
  37. package/es/organism/list-item/index.d.ts.map +1 -1
  38. package/es/organism/list-item/index.js +58 -14
  39. package/es/organism/list-item/index.js.map +1 -1
  40. package/es/organism/list-item/style.css +25 -1
  41. package/es/organism/list-items/index.d.ts +4 -0
  42. package/es/organism/rewards-form/index.d.ts +3 -0
  43. package/es/organism/select-opponents/index.d.ts +3 -0
  44. package/es/organism/select-opponents/index.d.ts.map +1 -1
  45. package/es/organism/select-opponents/types.d.ts +3 -0
  46. package/es/organism/select-opponents/types.d.ts.map +1 -1
  47. package/es/organism/title-and-input/index.d.ts +6 -0
  48. package/es/organism/title-and-input/index.d.ts.map +1 -1
  49. package/es/organism/title-and-input/types.d.ts +6 -0
  50. package/es/organism/title-and-input/types.d.ts.map +1 -1
  51. package/es/organism/wizard-contents/index.d.ts +3 -0
  52. package/es/template/app-player/loading/index.d.ts +7 -0
  53. package/es/template/app-player/player/index.d.ts +14 -0
  54. package/es/template/app-player/player/slides/index.d.ts +7 -0
  55. package/es/template/app-player/player/slides/index.d.ts.map +1 -1
  56. package/es/template/app-player/popin-correction/index.d.ts +7 -0
  57. package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
  58. package/es/template/app-player/popin-end/index.d.ts +7 -0
  59. package/es/template/app-review/index.d.ts +7 -0
  60. package/es/template/app-review/index.d.ts.map +1 -1
  61. package/es/template/app-review/player/prop-types.d.ts +7 -0
  62. package/es/template/app-review/player/prop-types.d.ts.map +1 -1
  63. package/es/template/app-review/prop-types.d.ts +7 -0
  64. package/es/template/app-review/prop-types.d.ts.map +1 -1
  65. package/es/template/back-office/brand-update/index.d.ts +149 -0
  66. package/es/template/back-office/brand-update/index.d.ts.map +1 -1
  67. package/es/template/back-office/brand-update/index.js +7 -0
  68. package/es/template/back-office/brand-update/index.js.map +1 -1
  69. package/es/template/common/dashboard/index.d.ts +14 -0
  70. package/es/template/common/search-page/index.d.ts +7 -0
  71. package/es/template/external-course/index.d.ts +7 -0
  72. package/lib/atom/radio-with-title/index.d.ts +3 -0
  73. package/lib/atom/radio-with-title/index.d.ts.map +1 -1
  74. package/lib/atom/radio-with-title/types.d.ts +3 -0
  75. package/lib/atom/radio-with-title/types.d.ts.map +1 -1
  76. package/lib/atom/tag/index.d.ts +5 -1
  77. package/lib/atom/tag/index.d.ts.map +1 -1
  78. package/lib/atom/tag/index.js +6 -3
  79. package/lib/atom/tag/index.js.map +1 -1
  80. package/lib/atom/title/index.d.ts +3 -0
  81. package/lib/molecule/cm-popin/types.d.ts +7 -0
  82. package/lib/molecule/cm-popin/types.d.ts.map +1 -1
  83. package/lib/molecule/draggable-list/index.d.ts +12 -0
  84. package/lib/molecule/draggable-list/index.d.ts.map +1 -1
  85. package/lib/molecule/draggable-list/index.js +5 -2
  86. package/lib/molecule/draggable-list/index.js.map +1 -1
  87. package/lib/molecule/learning-priority-modal/index.d.ts +30 -0
  88. package/lib/molecule/learning-priority-modal/index.d.ts.map +1 -0
  89. package/lib/molecule/learning-priority-modal/index.js +265 -0
  90. package/lib/molecule/learning-priority-modal/index.js.map +1 -0
  91. package/lib/molecule/learning-priority-modal/style.css +70 -0
  92. package/lib/molecule/learning-priority-setup-item/index.d.ts +18 -0
  93. package/lib/molecule/learning-priority-setup-item/index.d.ts.map +1 -0
  94. package/lib/molecule/learning-priority-setup-item/index.js +100 -0
  95. package/lib/molecule/learning-priority-setup-item/index.js.map +1 -0
  96. package/lib/molecule/learning-priority-setup-item/style.css +47 -0
  97. package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +3 -0
  98. package/lib/molecule/title-radio-wrapper/index.d.ts +3 -0
  99. package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
  100. package/lib/molecule/title-radio-wrapper/types.d.ts +3 -0
  101. package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
  102. package/lib/organism/brand-learning-priorities/index.d.ts +167 -0
  103. package/lib/organism/brand-learning-priorities/index.d.ts.map +1 -0
  104. package/lib/organism/brand-learning-priorities/index.js +147 -0
  105. package/lib/organism/brand-learning-priorities/index.js.map +1 -0
  106. package/lib/organism/brand-learning-priorities/style.css +40 -0
  107. package/lib/organism/list-item/index.d.ts +34 -2
  108. package/lib/organism/list-item/index.d.ts.map +1 -1
  109. package/lib/organism/list-item/index.js +62 -16
  110. package/lib/organism/list-item/index.js.map +1 -1
  111. package/lib/organism/list-item/style.css +25 -1
  112. package/lib/organism/list-items/index.d.ts +4 -0
  113. package/lib/organism/rewards-form/index.d.ts +3 -0
  114. package/lib/organism/select-opponents/index.d.ts +3 -0
  115. package/lib/organism/select-opponents/index.d.ts.map +1 -1
  116. package/lib/organism/select-opponents/types.d.ts +3 -0
  117. package/lib/organism/select-opponents/types.d.ts.map +1 -1
  118. package/lib/organism/title-and-input/index.d.ts +6 -0
  119. package/lib/organism/title-and-input/index.d.ts.map +1 -1
  120. package/lib/organism/title-and-input/types.d.ts +6 -0
  121. package/lib/organism/title-and-input/types.d.ts.map +1 -1
  122. package/lib/organism/wizard-contents/index.d.ts +3 -0
  123. package/lib/template/app-player/loading/index.d.ts +7 -0
  124. package/lib/template/app-player/player/index.d.ts +14 -0
  125. package/lib/template/app-player/player/slides/index.d.ts +7 -0
  126. package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
  127. package/lib/template/app-player/popin-correction/index.d.ts +7 -0
  128. package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
  129. package/lib/template/app-player/popin-end/index.d.ts +7 -0
  130. package/lib/template/app-review/index.d.ts +7 -0
  131. package/lib/template/app-review/index.d.ts.map +1 -1
  132. package/lib/template/app-review/player/prop-types.d.ts +7 -0
  133. package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
  134. package/lib/template/app-review/prop-types.d.ts +7 -0
  135. package/lib/template/app-review/prop-types.d.ts.map +1 -1
  136. package/lib/template/back-office/brand-update/index.d.ts +149 -0
  137. package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
  138. package/lib/template/back-office/brand-update/index.js +8 -0
  139. package/lib/template/back-office/brand-update/index.js.map +1 -1
  140. package/lib/template/common/dashboard/index.d.ts +14 -0
  141. package/lib/template/common/search-page/index.d.ts +7 -0
  142. package/lib/template/external-course/index.d.ts +7 -0
  143. package/locales/bs/global.json +13 -1
  144. package/locales/cs/global.json +13 -1
  145. package/locales/de/global.json +13 -1
  146. package/locales/en/global.json +12 -0
  147. package/locales/es/global.json +13 -1
  148. package/locales/et/global.json +13 -1
  149. package/locales/fi/global.json +13 -1
  150. package/locales/fr/global.json +13 -1
  151. package/locales/hr/global.json +13 -1
  152. package/locales/hu/global.json +13 -1
  153. package/locales/hy/global.json +13 -1
  154. package/locales/it/global.json +13 -1
  155. package/locales/ja/global.json +13 -1
  156. package/locales/ko/global.json +13 -1
  157. package/locales/nl/global.json +13 -1
  158. package/locales/pl/global.json +13 -1
  159. package/locales/pt/global.json +13 -1
  160. package/locales/ro/global.json +13 -1
  161. package/locales/ru/global.json +13 -1
  162. package/locales/sk/global.json +13 -1
  163. package/locales/sl/global.json +13 -1
  164. package/locales/sv/global.json +13 -1
  165. package/locales/tl/global.json +13 -1
  166. package/locales/tr/global.json +13 -1
  167. package/locales/uk/global.json +13 -1
  168. package/locales/vi/global.json +13 -1
  169. package/locales/zh/global.json +13 -1
  170. package/locales/zh_TW/global.json +13 -1
  171. package/package.json +2 -2
@@ -15,6 +15,9 @@ declare const RadioWithTitle: {
15
15
  label: import("prop-types").Requireable<string>;
16
16
  type: import("prop-types").Requireable<string>;
17
17
  size: import("prop-types").Requireable<string>;
18
+ customStyle: import("prop-types").Requireable<{
19
+ [x: string]: string | null | undefined;
20
+ }>;
18
21
  }>>;
19
22
  }>>>;
20
23
  name: import("prop-types").Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-with-title/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAY,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAEvD,QAAA,MAAM,cAAc;YAAW,mBAAmB;;;;;;;;;;;;;;;;;;;;;;CAwBjD,CAAC;AAIF,eAAe,cAAc,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-with-title/index.tsx"],"names":[],"mappings":";AAIA,OAAO,EAAY,mBAAmB,EAAC,MAAM,SAAS,CAAC;AAEvD,QAAA,MAAM,cAAc;YAAW,mBAAmB;;;;;;;;;;;;;;;;;;;;;;;;;CAwBjD,CAAC;AAIF,eAAe,cAAc,CAAC"}
@@ -12,6 +12,9 @@ export declare const propTypes: {
12
12
  label: PropTypes.Requireable<string>;
13
13
  type: PropTypes.Requireable<string>;
14
14
  size: PropTypes.Requireable<string>;
15
+ customStyle: PropTypes.Requireable<{
16
+ [x: string]: string | null | undefined;
17
+ }>;
15
18
  }>>;
16
19
  }>>>;
17
20
  name: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-with-title/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;CAOrB,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
1
+ {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/atom/radio-with-title/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;CAOrB,CAAC;AAEF,oBAAY,mBAAmB,GAAG;IAChC,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;QACpB,YAAY,EAAE,MAAM,CAAC;KACtB,CAAC;IACF,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,OAAO,EAAE,OAAO,CAAC;IACjB,QAAQ,EAAE,CAAC,KAAK,EAAE,OAAO,KAAK,IAAI,CAAC;IACnC,YAAY,EAAE,MAAM,CAAC;IACrB,WAAW,CAAC,EAAE,MAAM,CAAC;CACtB,CAAC"}
@@ -1,14 +1,18 @@
1
1
  export default Tag;
2
- declare function Tag({ label, type, size }: {
2
+ declare function Tag({ label, type, size, customStyle }: {
3
3
  label: any;
4
4
  type?: string | undefined;
5
5
  size?: string | undefined;
6
+ customStyle?: {} | undefined;
6
7
  }): JSX.Element;
7
8
  declare namespace Tag {
8
9
  namespace propTypes {
9
10
  const label: PropTypes.Requireable<string>;
10
11
  const type: PropTypes.Requireable<string>;
11
12
  const size: PropTypes.Requireable<string>;
13
+ const customStyle: PropTypes.Requireable<{
14
+ [x: string]: string | null | undefined;
15
+ }>;
12
16
  }
13
17
  }
14
18
  import PropTypes from "prop-types";
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/tag/index.js"],"names":[],"mappings":";AAoBA;;;;gBAIC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/atom/tag/index.js"],"names":[],"mappings":";AAoBA;;;;;gBAQC"}
@@ -19,16 +19,19 @@ const TAG_SIZE = {
19
19
  const Tag = ({
20
20
  label,
21
21
  type = 'default',
22
- size = 'M'
22
+ size = 'M',
23
+ customStyle = {}
23
24
  }) => /*#__PURE__*/React.createElement("span", {
24
25
  className: classnames(TAG_STYLES[type], TAG_SIZE[size]),
25
- "data-name": `content-tag-${label}`
26
+ "data-name": `content-tag-${label}`,
27
+ style: customStyle
26
28
  }, label);
27
29
 
28
30
  Tag.propTypes = process.env.NODE_ENV !== "production" ? {
29
31
  label: PropTypes.string,
30
32
  type: PropTypes.oneOf(_keys(TAG_STYLES)),
31
- size: PropTypes.oneOf(['S', 'M', 'L'])
33
+ size: PropTypes.oneOf(['S', 'M', 'L']),
34
+ customStyle: PropTypes.objectOf(PropTypes.string)
32
35
  } : {};
33
36
  export default Tag;
34
37
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","classnames","style","TAG_STYLES","default","success","failure","warning","progress","TAG_SIZE","S","small","M","medium","L","large","Tag","label","type","size","propTypes","string","oneOf"],"sources":["../../../src/atom/tag/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {keys} from 'lodash/fp';\nimport style from './style.css';\n\nconst TAG_STYLES = {\n default: style.default,\n success: style.success,\n failure: style.failure,\n warning: style.warning,\n progress: style.progress\n};\n\nconst TAG_SIZE = {\n S: style.small,\n M: style.medium,\n L: style.large\n};\n\nconst Tag = ({label, type = 'default', size = 'M'}) => (\n <span className={classnames(TAG_STYLES[type], TAG_SIZE[size])} data-name={`content-tag-${label}`}>\n {label}\n </span>\n);\n\nTag.propTypes = {\n label: PropTypes.string,\n type: PropTypes.oneOf(keys(TAG_STYLES)),\n size: PropTypes.oneOf(['S', 'M', 'L'])\n};\n\nexport default Tag;\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,MAAMC,UAAU,GAAG;EACjBC,OAAO,EAAEF,KAAK,CAACE,OADE;EAEjBC,OAAO,EAAEH,KAAK,CAACG,OAFE;EAGjBC,OAAO,EAAEJ,KAAK,CAACI,OAHE;EAIjBC,OAAO,EAAEL,KAAK,CAACK,OAJE;EAKjBC,QAAQ,EAAEN,KAAK,CAACM;AALC,CAAnB;AAQA,MAAMC,QAAQ,GAAG;EACfC,CAAC,EAAER,KAAK,CAACS,KADM;EAEfC,CAAC,EAAEV,KAAK,CAACW,MAFM;EAGfC,CAAC,EAAEZ,KAAK,CAACa;AAHM,CAAjB;;AAMA,MAAMC,GAAG,GAAG,CAAC;EAACC,KAAD;EAAQC,IAAI,GAAG,SAAf;EAA0BC,IAAI,GAAG;AAAjC,CAAD,kBACV;EAAM,SAAS,EAAElB,UAAU,CAACE,UAAU,CAACe,IAAD,CAAX,EAAmBT,QAAQ,CAACU,IAAD,CAA3B,CAA3B;EAA+D,aAAY,eAAcF,KAAM;AAA/F,GACGA,KADH,CADF;;AAMAD,GAAG,CAACI,SAAJ,2CAAgB;EACdH,KAAK,EAAEjB,SAAS,CAACqB,MADH;EAEdH,IAAI,EAAElB,SAAS,CAACsB,KAAV,CAAgB,MAAKnB,UAAL,CAAhB,CAFQ;EAGdgB,IAAI,EAAEnB,SAAS,CAACsB,KAAV,CAAgB,CAAC,GAAD,EAAM,GAAN,EAAW,GAAX,CAAhB;AAHQ,CAAhB;AAMA,eAAeN,GAAf"}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","classnames","style","TAG_STYLES","default","success","failure","warning","progress","TAG_SIZE","S","small","M","medium","L","large","Tag","label","type","size","customStyle","propTypes","string","oneOf","objectOf"],"sources":["../../../src/atom/tag/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {keys} from 'lodash/fp';\nimport style from './style.css';\n\nconst TAG_STYLES = {\n default: style.default,\n success: style.success,\n failure: style.failure,\n warning: style.warning,\n progress: style.progress\n};\n\nconst TAG_SIZE = {\n S: style.small,\n M: style.medium,\n L: style.large\n};\n\nconst Tag = ({label, type = 'default', size = 'M', customStyle = {}}) => (\n <span\n className={classnames(TAG_STYLES[type], TAG_SIZE[size])}\n data-name={`content-tag-${label}`}\n style={customStyle}\n >\n {label}\n </span>\n);\n\nTag.propTypes = {\n label: PropTypes.string,\n type: PropTypes.oneOf(keys(TAG_STYLES)),\n size: PropTypes.oneOf(['S', 'M', 'L']),\n customStyle: PropTypes.objectOf(PropTypes.string)\n};\n\nexport default Tag;\n"],"mappings":";AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AAEA,OAAOC,KAAP,MAAkB,aAAlB;AAEA,MAAMC,UAAU,GAAG;EACjBC,OAAO,EAAEF,KAAK,CAACE,OADE;EAEjBC,OAAO,EAAEH,KAAK,CAACG,OAFE;EAGjBC,OAAO,EAAEJ,KAAK,CAACI,OAHE;EAIjBC,OAAO,EAAEL,KAAK,CAACK,OAJE;EAKjBC,QAAQ,EAAEN,KAAK,CAACM;AALC,CAAnB;AAQA,MAAMC,QAAQ,GAAG;EACfC,CAAC,EAAER,KAAK,CAACS,KADM;EAEfC,CAAC,EAAEV,KAAK,CAACW,MAFM;EAGfC,CAAC,EAAEZ,KAAK,CAACa;AAHM,CAAjB;;AAMA,MAAMC,GAAG,GAAG,CAAC;EAACC,KAAD;EAAQC,IAAI,GAAG,SAAf;EAA0BC,IAAI,GAAG,GAAjC;EAAsCC,WAAW,GAAG;AAApD,CAAD,kBACV;EACE,SAAS,EAAEnB,UAAU,CAACE,UAAU,CAACe,IAAD,CAAX,EAAmBT,QAAQ,CAACU,IAAD,CAA3B,CADvB;EAEE,aAAY,eAAcF,KAAM,EAFlC;EAGE,KAAK,EAAEG;AAHT,GAKGH,KALH,CADF;;AAUAD,GAAG,CAACK,SAAJ,2CAAgB;EACdJ,KAAK,EAAEjB,SAAS,CAACsB,MADH;EAEdJ,IAAI,EAAElB,SAAS,CAACuB,KAAV,CAAgB,MAAKpB,UAAL,CAAhB,CAFQ;EAGdgB,IAAI,EAAEnB,SAAS,CAACuB,KAAV,CAAgB,CAAC,GAAD,EAAM,GAAN,EAAW,GAAX,CAAhB,CAHQ;EAIdH,WAAW,EAAEpB,SAAS,CAACwB,QAAV,CAAmBxB,SAAS,CAACsB,MAA7B;AAJC,CAAhB;AAOA,eAAeN,GAAf"}
@@ -13,6 +13,9 @@ declare namespace Title {
13
13
  label: PropTypes.Requireable<string>;
14
14
  type: PropTypes.Requireable<string>;
15
15
  size: PropTypes.Requireable<string>;
16
+ customStyle: PropTypes.Requireable<{
17
+ [x: string]: string | null | undefined;
18
+ }>;
16
19
  }>>;
17
20
  };
18
21
  }
@@ -19,6 +19,9 @@ declare const propTypes: {
19
19
  label: PropTypes.Requireable<string>;
20
20
  type: PropTypes.Requireable<string>;
21
21
  size: PropTypes.Requireable<string>;
22
+ customStyle: PropTypes.Requireable<{
23
+ [x: string]: string | null | undefined;
24
+ }>;
22
25
  }>>;
23
26
  }>>;
24
27
  headerIcon: PropTypes.Requireable<string>;
@@ -130,6 +133,8 @@ declare const propTypes: {
130
133
  content: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
131
134
  items: PropTypes.Requireable<(PropTypes.InferProps<{
132
135
  title: PropTypes.Validator<string>;
136
+ subtitle: PropTypes.Requireable<string>;
137
+ selected: PropTypes.Requireable<boolean>;
133
138
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
134
139
  label: PropTypes.Requireable<string>;
135
140
  type: PropTypes.Requireable<string>;
@@ -172,6 +177,8 @@ declare const propTypes: {
172
177
  label: PropTypes.Requireable<string>;
173
178
  type: PropTypes.Requireable<string>;
174
179
  }> | null | undefined)[]>;
180
+ disabled: PropTypes.Requireable<boolean>;
181
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
175
182
  isBulkStyle: PropTypes.Requireable<boolean>;
176
183
  isOverflowHidden: PropTypes.Requireable<boolean>;
177
184
  order: PropTypes.Requireable<number>;
@@ -1 +1 @@
1
- {"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/molecule/cm-popin/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,IAAI,MAAM,iBAAiB,CAAC;AACnC,OAAO,EAAC,UAAU,EAAC,MAAM,wBAAwB,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAClD,OAAO,SAAS,MAAM,2BAA2B,CAAC;AAGlD,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoDd,CAAC;AAEF,aAAK,gBAAgB,GAAG;IACtB,KAAK,EAAE,UAAU,CAAC;IAClB,eAAe,EAAE,MAAM,CAAC;IACxB,UAAU,EAAE,MAAM,CAAC;CACpB,CAAC;AAEF,oBAAY,eAAe,GAAG;IAC5B,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;IACd,IAAI,EAAE,MAAM,CAAC;IACb,WAAW,CAAC,EAAE;QACZ,eAAe,CAAC,EAAE,MAAM,CAAC;QACzB,KAAK,CAAC,EAAE,MAAM,CAAC;KAChB,CAAC;IACF,aAAa,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,oBAAY,YAAY,GAAG;I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Types.Requireable<string>;
62
62
  }> | PropTypes.InferProps<{
63
63
  title: PropTypes.Validator<string>;
64
+ subtitle: PropTypes.Requireable<string>;
65
+ selected: PropTypes.Requireable<boolean>;
64
66
  dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
65
67
  label: PropTypes.Requireable<string>;
66
68
  type: PropTypes.Requireable<string>;
@@ -103,12 +105,22 @@ declare namespace DraggableList {
103
105
  label: PropTypes.Requireable<string>;
104
106
  type: PropTypes.Requireable<string>;
105
107
  }> | null | undefined)[]>;
108
+ disabled: PropTypes.Requireable<boolean>;
109
+ onClick: PropTypes.Requireable<(...args: any[]) => any>;
106
110
  isBulkStyle: PropTypes.Requireable<boolean>;
107
111
  isOverflowHidden: PropTypes.Requireable<boolean>;
108
112
  order: PropTypes.Requireable<number>;
109
113
  'aria-label': PropTypes.Requireable<string>;
110
114
  contentType: PropTypes.Requireable<string>;
111
115
  id: PropTypes.Requireable<string>;
116
+ }> | PropTypes.InferProps<{
117
+ 'aria-label': PropTypes.Requireable<string>;
118
+ id: PropTypes.Requireable<string>;
119
+ priorityRef: PropTypes.Requireable<string>;
120
+ title: PropTypes.Requireable<string>;
121
+ courses: PropTypes.Requireable<number>;
122
+ type: PropTypes.Requireable<string>;
123
+ onRemove: PropTypes.Requireable<(...args: any[]) => any>;
112
124
  }> | null | undefined> | null | undefined)[]>;
113
125
  const onDrop: PropTypes.Requireable<(...args: any[]) => any>;
114
126
  const itemType: PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/draggable-list/index.js"],"names":[],"mappings":";AAaA;;;;gBAmDC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/draggable-list/index.js"],"names":[],"mappings":";AAeA;;;;gBAmDC"}
@@ -6,10 +6,12 @@ import Draggable from '../draggable';
6
6
  import SetupSection from '../setup-section';
7
7
  import CourseSection from '../course-section';
8
8
  import ListItem from '../../organism/list-item';
9
+ import LearningPrioritySetupItem from '../learning-priority-setup-item';
9
10
  const ITEMS = {
10
11
  'setup-section': SetupSection,
11
12
  'course-section': CourseSection,
12
- 'list-item': ListItem
13
+ 'list-item': ListItem,
14
+ 'learning-priority-setup-item': LearningPrioritySetupItem
13
15
  };
14
16
 
15
17
  const DraggableList = ({
@@ -51,7 +53,7 @@ const DraggableList = ({
51
53
  };
52
54
 
53
55
  DraggableList.propTypes = process.env.NODE_ENV !== "production" ? {
54
- items: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape(SetupSection.propTypes), PropTypes.shape(CourseSection.propTypes), PropTypes.shape(ListItem.propTypes)])),
56
+ items: PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.shape(SetupSection.propTypes), PropTypes.shape(CourseSection.propTypes), PropTypes.shape(ListItem.propTypes), PropTypes.shape(LearningPrioritySetupItem.propTypes)])),
55
57
  onDrop: PropTypes.func,
56
58
  itemType: PropTypes.string
57
59
  } : {};
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","useState","useCallback","PropTypes","Draggable","SetupSection","CourseSection","ListItem","ITEMS","DraggableList","items","onDrop","itemType","dragTo","setDragTo","dragFrom","setDragFrom","dragStartHandler","id","dragOverHandler","dragLeaveHandler","dropHandler","Item","itemsView","map","item","index","propTypes","arrayOf","oneOfType","shape","func","string"],"sources":["../../../src/molecule/draggable-list/index.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport Draggable from '../draggable';\nimport SetupSection from '../setup-section';\nimport CourseSection from '../course-section';\nimport ListItem from '../../organism/list-item';\n\nconst ITEMS = {\n 'setup-section': SetupSection,\n 'course-section': CourseSection,\n 'list-item': ListItem\n};\n\nconst DraggableList = ({items, onDrop, itemType}) => {\n const [dragTo, setDragTo] = useState(null);\n const [dragFrom, setDragFrom] = useState(null);\n\n const dragStartHandler = useCallback(\n id => {\n setDragFrom(id);\n },\n [setDragFrom]\n );\n\n const dragOverHandler = useCallback(\n id => {\n if (dragTo === id) return;\n setDragTo(id);\n },\n [dragTo, setDragTo]\n );\n\n const dragLeaveHandler = useCallback(\n id => {\n setDragTo(null);\n },\n [setDragTo]\n );\n\n const dropHandler = useCallback(\n id => {\n if (onDrop && dragFrom) onDrop(dragFrom, id);\n\n setDragTo(null);\n setDragFrom(null);\n },\n [onDrop, setDragTo, setDragFrom, dragFrom]\n );\n\n const Item = ITEMS[itemType];\n const itemsView = items.map((item, index) => (\n <Draggable\n key={item.id}\n id={item.id}\n dragging={dragTo === item.id}\n onDragStart={dragStartHandler}\n onDragOver={dragOverHandler}\n onDragLeave={dragLeaveHandler}\n onDrop={dropHandler}\n >\n <Item {...item} key={item.id} order={index} />\n </Draggable>\n ));\n return <div>{itemsView}</div>;\n};\n\nDraggableList.propTypes = {\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(SetupSection.propTypes),\n PropTypes.shape(CourseSection.propTypes),\n PropTypes.shape(ListItem.propTypes)\n ])\n ),\n onDrop: PropTypes.func,\n itemType: PropTypes.string\n};\n\nexport default DraggableList;\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,QAAf,EAAyBC,WAAzB,QAA2C,OAA3C;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,SAAP,MAAsB,cAAtB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,QAAP,MAAqB,0BAArB;AAEA,MAAMC,KAAK,GAAG;EACZ,iBAAiBH,YADL;EAEZ,kBAAkBC,aAFN;EAGZ,aAAaC;AAHD,CAAd;;AAMA,MAAME,aAAa,GAAG,CAAC;EAACC,KAAD;EAAQC,MAAR;EAAgBC;AAAhB,CAAD,KAA+B;EACnD,MAAM,CAACC,MAAD,EAASC,SAAT,IAAsBb,QAAQ,CAAC,IAAD,CAApC;EACA,MAAM,CAACc,QAAD,EAAWC,WAAX,IAA0Bf,QAAQ,CAAC,IAAD,CAAx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AO,iCAAMH,SAAN,CAAP;AACD,CAnDD;;AAqDAd,aAAa,CAACkB,SAAd,2CAA0B;EACxBjB,KAAK,EAAEP,SAAS,CAACyB,OAAV,CACLzB,SAAS,CAAC0B,SAAV,CAAoB,CAClB1B,SAAS,CAAC2B,KAAV,CAAgBzB,YAAY,CAACsB,SAA7B,CADkB,EAElBxB,SAAS,CAAC2B,KAAV,CAAgBxB,aAAa,CAACqB,SAA9B,CAFkB,EAGlBxB,SAAS,CAAC2B,KAAV,CAAgBvB,QAAQ,CAACoB,SAAzB,CAHkB,CAApB,CADK,CADiB;EAQxBhB,MAAM,EAAER,SAAS,CAAC4B,IARM;EASxBnB,QAAQ,EAAET,SAAS,CAAC6B;AATI,CAA1B;AAYA,eAAevB,aAAf"}
1
+ {"version":3,"file":"index.js","names":["React","useState","useCallback","PropTypes","Draggable","SetupSection","CourseSection","ListItem","LearningPrioritySetupItem","ITEMS","DraggableList","items","onDrop","itemType","dragTo","setDragTo","dragFrom","setDragFrom","dragStartHandler","id","dragOverHandler","dragLeaveHandler","dropHandler","Item","itemsView","map","item","index","propTypes","arrayOf","oneOfType","shape","func","string"],"sources":["../../../src/molecule/draggable-list/index.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport Draggable from '../draggable';\nimport SetupSection from '../setup-section';\nimport CourseSection from '../course-section';\nimport ListItem from '../../organism/list-item';\nimport LearningPrioritySetupItem from '../learning-priority-setup-item';\n\nconst ITEMS = {\n 'setup-section': SetupSection,\n 'course-section': CourseSection,\n 'list-item': ListItem,\n 'learning-priority-setup-item': LearningPrioritySetupItem\n};\n\nconst DraggableList = ({items, onDrop, itemType}) => {\n const [dragTo, setDragTo] = useState(null);\n const [dragFrom, setDragFrom] = useState(null);\n\n const dragStartHandler = useCallback(\n id => {\n setDragFrom(id);\n },\n [setDragFrom]\n );\n\n const dragOverHandler = useCallback(\n id => {\n if (dragTo === id) return;\n setDragTo(id);\n },\n [dragTo, setDragTo]\n );\n\n const dragLeaveHandler = useCallback(\n id => {\n setDragTo(null);\n },\n [setDragTo]\n );\n\n const dropHandler = useCallback(\n id => {\n if (onDrop && dragFrom) onDrop(dragFrom, id);\n\n setDragTo(null);\n setDragFrom(null);\n },\n [onDrop, setDragTo, setDragFrom, dragFrom]\n );\n\n const Item = ITEMS[itemType];\n const itemsView = items.map((item, index) => (\n <Draggable\n key={item.id}\n id={item.id}\n dragging={dragTo === item.id}\n onDragStart={dragStartHandler}\n onDragOver={dragOverHandler}\n onDragLeave={dragLeaveHandler}\n onDrop={dropHandler}\n >\n <Item {...item} key={item.id} order={index} />\n </Draggable>\n ));\n return <div>{itemsView}</div>;\n};\n\nDraggableList.propTypes = {\n items: PropTypes.arrayOf(\n PropTypes.oneOfType([\n PropTypes.shape(SetupSection.propTypes),\n PropTypes.shape(CourseSection.propTypes),\n PropTypes.shape(ListItem.propTypes),\n PropTypes.shape(LearningPrioritySetupItem.propTypes)\n ])\n ),\n onDrop: PropTypes.func,\n itemType: PropTypes.string\n};\n\nexport default DraggableList;\n"],"mappings":";;AAAA,OAAOA,KAAP,IAAeC,QAAf,EAAyBC,WAAzB,QAA2C,OAA3C;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,SAAP,MAAsB,cAAtB;AACA,OAAOC,YAAP,MAAyB,kBAAzB;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,QAAP,MAAqB,0BAArB;AACA,OAAOC,yBAAP,MAAsC,iCAAtC;AAEA,MAAMC,KAAK,GAAG;EACZ,iBAAiBJ,YADL;EAEZ,kBAAkBC,aAFN;EAGZ,aAAaC,QAHD;EAIZ,gCAAgCC;AAJpB,CAAd;;AAOA,MAAME,aAAa,GAAG,CAAC;EAACC,KAAD;EAAQC,MAAR;EAAgBC;AAAhB,CAAD,KAA+B;EACnD,MAAM,CAACC,MAAD,EAASC,SAAT,IAAsBd,QAAQ,CAAC,IAAD,CAApC;EACA,MAAM,CAACe,QAAD,EAAWC,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AAEQ;EAArC,GATF,CADgB,CAAlB;EAaA,oBAAO,iCAAMH,SAAN,CAAP;AACD,CAnDD;;AAqDAd,aAAa,CAACkB,SAAd,2CAA0B;EACxBjB,KAAK,EAAER,SAAS,CAAC0B,OAAV,CACL1B,SAAS,CAAC2B,SAAV,CAAoB,CAClB3B,SAAS,CAAC4B,KAAV,CAAgB1B,YAAY,CAACuB,SAA7B,CADkB,EAElBzB,SAAS,CAAC4B,KAAV,CAAgBzB,aAAa,CAACsB,SAA9B,CAFkB,EAGlBzB,SAAS,CAAC4B,KAAV,CAAgBxB,QAAQ,CAACqB,SAAzB,CAHkB,EAIlBzB,SAAS,CAAC4B,KAAV,CAAgBvB,yBAAyB,CAACoB,SAA1C,CAJkB,CAApB,CADK,CADiB;EASxBhB,MAAM,EAAET,SAAS,CAAC6B,IATM;EAUxBnB,QAAQ,EAAEV,SAAS,CAAC8B;AAVI,CAA1B;AAaA,eAAevB,aAAf"}
@@ -0,0 +1,30 @@
1
+ export default LearningPriorityModal;
2
+ declare function LearningPriorityModal(props: any, context: any): JSX.Element | null;
3
+ declare namespace LearningPriorityModal {
4
+ namespace contextTypes {
5
+ const translate: PropTypes.Requireable<(...args: any[]) => any>;
6
+ }
7
+ namespace propTypes {
8
+ const priorities: PropTypes.Requireable<(PropTypes.InferProps<{
9
+ priorityRef: PropTypes.Requireable<string>;
10
+ title: PropTypes.Requireable<string>;
11
+ courses: PropTypes.Requireable<number>;
12
+ type: PropTypes.Requireable<string>;
13
+ }> | null | undefined)[]>;
14
+ const preselected: PropTypes.Requireable<(string | null | undefined)[]>;
15
+ const isOpen: PropTypes.Requireable<boolean>;
16
+ const isLoading: PropTypes.Requireable<boolean>;
17
+ const filters: PropTypes.Requireable<(PropTypes.InferProps<{
18
+ count: PropTypes.Requireable<number>;
19
+ name: PropTypes.Validator<string>;
20
+ value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
21
+ selected: PropTypes.Requireable<boolean>;
22
+ validOption: PropTypes.Requireable<boolean>;
23
+ }> | null | undefined)[]>;
24
+ const onCancel: PropTypes.Requireable<(...args: any[]) => any>;
25
+ const onAdd: PropTypes.Requireable<(...args: any[]) => any>;
26
+ const onClose: PropTypes.Requireable<(...args: any[]) => any>;
27
+ }
28
+ }
29
+ import PropTypes from "prop-types";
30
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/learning-priority-modal/index.js"],"names":[],"mappings":";AAgEA,qFAuKC"}
@@ -0,0 +1,242 @@
1
+ import _pick from "lodash/fp/pick";
2
+ import _assign from "lodash/fp/assign";
3
+ import _get from "lodash/fp/get";
4
+
5
+ function _extends() { _extends = Object.assign ? Object.assign.bind() : function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
6
+
7
+ import React, { useEffect, useMemo, useState, useCallback } from 'react';
8
+ import PropTypes from 'prop-types';
9
+ import { convert } from 'css-color-function';
10
+ import BaseModal from '../base-modal';
11
+ import ListItem from '../../organism/list-item';
12
+ import ButtonLink from '../../atom/button-link';
13
+ import Loader from '../../atom/loader';
14
+ import Provider from '../../atom/provider';
15
+ import { SelectOptionPropTypes } from '../../atom/select';
16
+ import SearchForm from '../search-form';
17
+ import searchValueIncluded from '../../util/search-value-included';
18
+ import style from './style.css';
19
+
20
+ const FilterButton = (props, context) => {
21
+ const {
22
+ active,
23
+ filter,
24
+ itemTotal,
25
+ onClick
26
+ } = props;
27
+ const {
28
+ skin
29
+ } = context;
30
+
31
+ const primarySkinColor = _get('common.primary', skin);
32
+
33
+ const Content = useCallback(() => /*#__PURE__*/React.createElement("div", null, filter, /*#__PURE__*/React.createElement("span", {
34
+ className: active ? style.skillFilterNumber : style.skillFilterNumberInActive,
35
+ style: {
36
+ backgroundColor: active ? convert(`color(${primarySkinColor} a(0.07))`) : '#EAEAEB',
37
+ color: active ? primarySkinColor : '#515161'
38
+ }
39
+ }, itemTotal)), [filter, itemTotal, active, primarySkinColor]);
40
+ const buttonProps = {
41
+ customStyle: {
42
+ backgroundColor: active ? convert(`color(${primarySkinColor} a(0.07))`) : 'transparent',
43
+ color: active ? primarySkinColor : '#9999A8',
44
+ transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out',
45
+ width: 'fit-content'
46
+ },
47
+ onClick,
48
+ content: /*#__PURE__*/React.createElement(Content, null),
49
+ 'data-name': 'change-skill-focus-button'
50
+ };
51
+ return /*#__PURE__*/React.createElement(ButtonLink, buttonProps);
52
+ };
53
+
54
+ FilterButton.contextTypes = {
55
+ skin: Provider.childContextTypes.skin,
56
+ translate: Provider.childContextTypes.translate
57
+ };
58
+ FilterButton.propTypes = process.env.NODE_ENV !== "production" ? {
59
+ active: PropTypes.bool,
60
+ filter: PropTypes.string,
61
+ itemTotal: PropTypes.number,
62
+ onClick: PropTypes.func
63
+ } : {};
64
+
65
+ const LearningPriorityModal = (props, context) => {
66
+ const {
67
+ priorities,
68
+ preselected,
69
+ isOpen,
70
+ isLoading,
71
+ filters,
72
+ onCancel,
73
+ onAdd,
74
+ onClose
75
+ } = props;
76
+ const {
77
+ translate
78
+ } = context;
79
+ const [selectedPriority, setSelectedPriority] = useState('');
80
+ const [selectedPriorityType, setSelectedPriorityType] = useState('');
81
+ const [searchValue, setSearchValue] = useState('');
82
+ const [filterValue, setFilterValue] = useState('all');
83
+ const [searchResults, setSearchResults] = useState(priorities);
84
+ const handleCancel = useCallback(() => {
85
+ setSelectedPriority('');
86
+ setSelectedPriorityType('');
87
+ onCancel();
88
+ }, [setSelectedPriority, setSelectedPriorityType, onCancel]);
89
+ const handleClose = useCallback(() => {
90
+ setSelectedPriority('');
91
+ setSelectedPriorityType('');
92
+ onClose();
93
+ }, [setSelectedPriority, setSelectedPriorityType, onClose]);
94
+ const handleSearch = useCallback(value => {
95
+ setSearchValue(value);
96
+ setSearchResults(priorities.filter(priority => searchValueIncluded(priority.title, value)));
97
+ }, [priorities, setSearchValue, setSearchResults]);
98
+ const handleSearchReset = useCallback(() => {
99
+ setSearchValue('');
100
+ setSearchResults(priorities);
101
+ }, [priorities, setSearchValue, setSearchResults]);
102
+ useEffect(() => {
103
+ setSearchResults(priorities);
104
+ }, [priorities]);
105
+ const priorityList = useMemo(() => {
106
+ return searchResults.map(priority => {
107
+ const isPreSelectedPriority = preselected.some(selected => selected === priority.priorityRef);
108
+ return _assign({
109
+ selected: isPreSelectedPriority,
110
+ disabled: isPreSelectedPriority
111
+ }, _pick(['title', 'priorityRef', 'type', 'courses'], priority));
112
+ });
113
+ }, [searchResults, preselected]);
114
+ const footer = useMemo(() => {
115
+ return {
116
+ cancelButton: {
117
+ onCancel: handleCancel,
118
+ label: translate('cancel')
119
+ },
120
+ confirmButton: {
121
+ onConfirm: () => {
122
+ onAdd(selectedPriority, selectedPriorityType);
123
+ setSelectedPriority('');
124
+ setSelectedPriorityType('');
125
+ onClose();
126
+ },
127
+ label: translate('add'),
128
+ iconName: 'plus',
129
+ disabled: isLoading || !selectedPriority
130
+ }
131
+ };
132
+ }, [handleCancel, setSelectedPriority, setSelectedPriorityType, onAdd, translate, selectedPriority, selectedPriorityType, isLoading]);
133
+ if (!isLoading && !priorities || !isOpen) return null;
134
+ return /*#__PURE__*/React.createElement(BaseModal, {
135
+ title: translate('learning_priority_modal_title'),
136
+ description: translate('learning_priority_modal_description'),
137
+ isOpen: isOpen,
138
+ onClose: handleClose,
139
+ footer: footer
140
+ }, /*#__PURE__*/React.createElement("div", {
141
+ className: style.LearningPriorityContainer
142
+ }, isLoading ? /*#__PURE__*/React.createElement("div", {
143
+ className: style.loaderContainer
144
+ }, /*#__PURE__*/React.createElement(Loader, {
145
+ className: style.loader,
146
+ theme: "coorpmanager"
147
+ })) : /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement("div", {
148
+ className: style.searchWrapper
149
+ }, /*#__PURE__*/React.createElement(SearchForm, {
150
+ search: {
151
+ placeholder: translate('search_priority_place_holder'),
152
+ value: searchValue,
153
+ onChange: handleSearch
154
+ },
155
+ onReset: handleSearchReset
156
+ })), /*#__PURE__*/React.createElement("div", {
157
+ className: style.filterWrapper
158
+ }, searchResults.length > 0 ? filters.map((filter, index) => {
159
+ const {
160
+ name,
161
+ value,
162
+ count
163
+ } = filter;
164
+
165
+ function handleChange() {
166
+ setFilterValue(value);
167
+ handleSearchReset();
168
+ }
169
+
170
+ if (count === 0) return null;
171
+ return /*#__PURE__*/React.createElement("div", {
172
+ key: index,
173
+ className: style.filterButtonWrapper
174
+ }, /*#__PURE__*/React.createElement(FilterButton, {
175
+ active: filterValue === value,
176
+ filter: name,
177
+ onClick: handleChange,
178
+ itemTotal: count
179
+ }));
180
+ }) : null), /*#__PURE__*/React.createElement("div", {
181
+ className: style.priorityListWrapper
182
+ }, priorityList.map(priority => {
183
+ const {
184
+ title,
185
+ priorityRef,
186
+ courses = null,
187
+ type,
188
+ selected,
189
+ disabled
190
+ } = priority;
191
+
192
+ function handlePriorityClick() {
193
+ if (selectedPriority === priorityRef) {
194
+ setSelectedPriority('');
195
+ setSelectedPriorityType('');
196
+ return;
197
+ }
198
+
199
+ setSelectedPriority(priorityRef);
200
+ setSelectedPriorityType(type);
201
+ }
202
+
203
+ if (filterValue !== 'all' && type !== filterValue) return null;
204
+ return /*#__PURE__*/React.createElement(ListItem, _extends({}, courses !== null ? {
205
+ subtitle: `${courses} ${translate('courses')}`
206
+ } : {}, {
207
+ title: title,
208
+ selected: selected || selectedPriority === priorityRef,
209
+ disabled: disabled,
210
+ onClick: handlePriorityClick,
211
+ tags: [{
212
+ label: type,
213
+ type: 'default'
214
+ }],
215
+ key: priorityRef,
216
+ backgroundColor: "skin"
217
+ }));
218
+ })))));
219
+ };
220
+
221
+ LearningPriorityModal.contextTypes = {
222
+ translate: Provider.childContextTypes.translate
223
+ };
224
+ LearningPriorityModal.propTypes = process.env.NODE_ENV !== "production" ? {
225
+ priorities: PropTypes.arrayOf(PropTypes.shape({
226
+ priorityRef: PropTypes.string,
227
+ title: PropTypes.string,
228
+ courses: PropTypes.number,
229
+ type: PropTypes.oneOf(['skill', 'playlist', 'certificate'])
230
+ })),
231
+ preselected: PropTypes.arrayOf(PropTypes.string),
232
+ isOpen: PropTypes.bool,
233
+ isLoading: PropTypes.bool,
234
+ filters: PropTypes.arrayOf(PropTypes.shape(_extends({}, SelectOptionPropTypes, {
235
+ count: PropTypes.number
236
+ }))),
237
+ onCancel: PropTypes.func,
238
+ onAdd: PropTypes.func,
239
+ onClose: PropTypes.func
240
+ } : {};
241
+ export default LearningPriorityModal;
242
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","names":["React","useEffect","useMemo","useState","useCallback","PropTypes","convert","BaseModal","ListItem","ButtonLink","Loader","Provider","SelectOptionPropTypes","SearchForm","searchValueIncluded","style","FilterButton","props","context","active","filter","itemTotal","onClick","skin","primarySkinColor","Content","skillFilterNumber","skillFilterNumberInActive","backgroundColor","color","buttonProps","customStyle","transition","width","content","contextTypes","childContextTypes","translate","propTypes","bool","string","number","func","LearningPriorityModal","priorities","preselected","isOpen","isLoading","filters","onCancel","onAdd","onClose","selectedPriority","setSelectedPriority","selectedPriorityType","setSelectedPriorityType","searchValue","setSearchValue","filterValue","setFilterValue","searchResults","setSearchResults","handleCancel","handleClose","handleSearch","value","priority","title","handleSearchReset","priorityList","map","isPreSelectedPriority","some","selected","priorityRef","disabled","footer","cancelButton","label","confirmButton","onConfirm","iconName","LearningPriorityContainer","loaderContainer","loader","searchWrapper","placeholder","onChange","filterWrapper","length","index","name","count","handleChange","filterButtonWrapper","priorityListWrapper","courses","type","handlePriorityClick","subtitle","arrayOf","shape","oneOf"],"sources":["../../../src/molecule/learning-priority-modal/index.js"],"sourcesContent":["import React, {useEffect, useMemo, useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {get, assign, pick} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport BaseModal from '../base-modal';\nimport ListItem from '../../organism/list-item';\nimport ButtonLink from '../../atom/button-link';\nimport Loader from '../../atom/loader';\nimport Provider from '../../atom/provider';\nimport {SelectOptionPropTypes} from '../../atom/select';\nimport SearchForm from '../search-form';\nimport searchValueIncluded from '../../util/search-value-included';\nimport style from './style.css';\n\nconst FilterButton = (props, context) => {\n const {active, filter, itemTotal, onClick} = props;\n const {skin} = context;\n const primarySkinColor = get('common.primary', skin);\n\n const Content = useCallback(\n () => (\n <div>\n {filter}\n <span\n className={active ? style.skillFilterNumber : style.skillFilterNumberInActive}\n style={{\n backgroundColor: active ? convert(`color(${primarySkinColor} a(0.07))`) : '#EAEAEB',\n color: active ? primarySkinColor : '#515161'\n }}\n >\n {itemTotal}\n </span>\n </div>\n ),\n [filter, itemTotal, active, primarySkinColor]\n );\n\n const buttonProps = {\n customStyle: {\n backgroundColor: active ? convert(`color(${primarySkinColor} a(0.07))`) : 'transparent',\n color: active ? primarySkinColor : '#9999A8',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out',\n width: 'fit-content'\n },\n onClick,\n content: <Content />,\n 'data-name': 'change-skill-focus-button'\n };\n\n return <ButtonLink {...buttonProps} />;\n};\n\nFilterButton.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nFilterButton.propTypes = {\n active: PropTypes.bool,\n filter: PropTypes.string,\n itemTotal: PropTypes.number,\n onClick: PropTypes.func\n};\n\nconst LearningPriorityModal = (props, context) => {\n const {priorities, preselected, isOpen, isLoading, filters, onCancel, onAdd, onClose} = props;\n const {translate} = context;\n\n const [selectedPriority, setSelectedPriority] = useState('');\n const [selectedPriorityType, setSelectedPriorityType] = useState('');\n const [searchValue, setSearchValue] = useState('');\n const [filterValue, setFilterValue] = useState('all');\n const [searchResults, setSearchResults] = useState(priorities);\n\n const handleCancel = useCallback(() => {\n setSelectedPriority('');\n setSelectedPriorityType('');\n onCancel();\n }, [setSelectedPriority, setSelectedPriorityType, onCancel]);\n\n const handleClose = useCallback(() => {\n setSelectedPriority('');\n setSelectedPriorityType('');\n onClose();\n }, [setSelectedPriority, setSelectedPriorityType, onClose]);\n\n const handleSearch = useCallback(\n value => {\n setSearchValue(value);\n setSearchResults(priorities.filter(priority => searchValueIncluded(priority.title, value)));\n },\n [priorities, setSearchValue, setSearchResults]\n );\n\n const handleSearchReset = useCallback(() => {\n setSearchValue('');\n setSearchResults(priorities);\n }, [priorities, setSearchValue, setSearchResults]);\n\n useEffect(() => {\n setSearchResults(priorities);\n }, [priorities]);\n\n const priorityList = useMemo(() => {\n return searchResults.map(priority => {\n const isPreSelectedPriority = preselected.some(selected => selected === priority.priorityRef);\n return assign(\n {\n selected: isPreSelectedPriority,\n disabled: isPreSelectedPriority\n },\n pick(['title', 'priorityRef', 'type', 'courses'], priority)\n );\n });\n }, [searchResults, preselected]);\n\n const footer = useMemo(() => {\n return {\n cancelButton: {\n onCancel: handleCancel,\n label: translate('cancel')\n },\n confirmButton: {\n onConfirm: () => {\n onAdd(selectedPriority, selectedPriorityType);\n setSelectedPriority('');\n setSelectedPriorityType('');\n onClose();\n },\n label: translate('add'),\n iconName: 'plus',\n disabled: isLoading || !selectedPriority\n }\n };\n }, [\n handleCancel,\n setSelectedPriority,\n setSelectedPriorityType,\n onAdd,\n translate,\n selectedPriority,\n selectedPriorityType,\n isLoading\n ]);\n\n if ((!isLoading && !priorities) || !isOpen) return null;\n\n return (\n <BaseModal\n title={translate('learning_priority_modal_title')}\n description={translate('learning_priority_modal_description')}\n isOpen={isOpen}\n onClose={handleClose}\n footer={footer}\n >\n <div className={style.LearningPriorityContainer}>\n {isLoading ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ) : (\n <>\n <div className={style.searchWrapper}>\n <SearchForm\n search={{\n placeholder: translate('search_priority_place_holder'),\n value: searchValue,\n onChange: handleSearch\n }}\n onReset={handleSearchReset}\n />\n </div>\n <div className={style.filterWrapper}>\n {searchResults.length > 0\n ? filters.map((filter, index) => {\n const {name, value, count} = filter;\n\n function handleChange() {\n setFilterValue(value);\n handleSearchReset();\n }\n\n if (count === 0) return null;\n\n return (\n <div key={index} className={style.filterButtonWrapper}>\n <FilterButton\n active={filterValue === value}\n filter={name}\n onClick={handleChange}\n itemTotal={count}\n />\n </div>\n );\n })\n : null}\n </div>\n <div className={style.priorityListWrapper}>\n {priorityList.map(priority => {\n const {title, priorityRef, courses = null, type, selected, disabled} = priority;\n function handlePriorityClick() {\n if (selectedPriority === priorityRef) {\n setSelectedPriority('');\n setSelectedPriorityType('');\n return;\n }\n setSelectedPriority(priorityRef);\n setSelectedPriorityType(type);\n }\n\n if (filterValue !== 'all' && type !== filterValue) return null;\n\n return (\n <ListItem\n {...(courses !== null ? {subtitle: `${courses} ${translate('courses')}`} : {})}\n title={title}\n selected={selected || selectedPriority === priorityRef}\n disabled={disabled}\n onClick={handlePriorityClick}\n tags={[{label: type, type: 'default'}]}\n key={priorityRef}\n backgroundColor=\"skin\"\n />\n );\n })}\n </div>\n </>\n )}\n </div>\n </BaseModal>\n );\n};\n\nLearningPriorityModal.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nLearningPriorityModal.propTypes = {\n priorities: PropTypes.arrayOf(\n PropTypes.shape({\n priorityRef: PropTypes.string,\n title: PropTypes.string,\n courses: PropTypes.number,\n type: PropTypes.oneOf(['skill', 'playlist', 'certificate'])\n })\n ),\n preselected: PropTypes.arrayOf(PropTypes.string),\n isOpen: PropTypes.bool,\n isLoading: PropTypes.bool,\n filters: PropTypes.arrayOf(\n PropTypes.shape({\n ...SelectOptionPropTypes,\n count: PropTypes.number\n })\n ),\n onCancel: PropTypes.func,\n onAdd: PropTypes.func,\n onClose: PropTypes.func\n};\n\nexport default LearningPriorityModal;\n"],"mappings":";;;;;;AAAA,OAAOA,KAAP,IAAeC,SAAf,EAA0BC,OAA1B,EAAmCC,QAAnC,EAA6CC,WAA7C,QAA+D,O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AV,CAAkB/F,SAAS,CAACmC,MAA5B,CATmB;EAUhCM,MAAM,EAAEzC,SAAS,CAACkC,IAVc;EAWhCQ,SAAS,EAAE1C,SAAS,CAACkC,IAXW;EAYhCS,OAAO,EAAE3C,SAAS,CAAC+F,OAAV,CACP/F,SAAS,CAACgG,KAAV,cACKzF,qBADL;IAEEgF,KAAK,EAAEvF,SAAS,CAACoC;EAFnB,GADO,CAZuB;EAkBhCQ,QAAQ,EAAE5C,SAAS,CAACqC,IAlBY;EAmBhCQ,KAAK,EAAE7C,SAAS,CAACqC,IAnBe;EAoBhCS,OAAO,EAAE9C,SAAS,CAACqC;AApBa,CAAlC;AAuBA,eAAeC,qBAAf"}
@@ -0,0 +1,70 @@
1
+ @value colors: "../../variables/colors.css";
2
+ @value cm_grey_100 from colors;
3
+
4
+ .LearningPriorityContainer {
5
+ height: 485px;
6
+ width: calc(71vw - 68px);
7
+ max-width: 660px;
8
+ overflow-y: auto;
9
+ }
10
+
11
+ .loaderContainer {
12
+ display: flex;
13
+ justify-content: center;
14
+ align-items: center;
15
+ height: 100%;
16
+ width: 100%;
17
+ }
18
+
19
+ .loader {
20
+ width: 40px;
21
+ height: 40px;
22
+ }
23
+
24
+ .searchWrapper {
25
+ border-radius: 12px;
26
+ width: 300px;
27
+ background-color: cm_grey_100;
28
+ margin-bottom: 20px;
29
+ }
30
+
31
+ .filterWrapper {
32
+ display: flex;
33
+ gap: 12px;
34
+ margin-bottom: 32px;
35
+ overflow-x: auto;
36
+ }
37
+
38
+ .filterButtonWrapper {
39
+ display: flex;
40
+ align-items: center;
41
+ }
42
+
43
+ .skillFilterNumber,
44
+ .skillFilterNumberInActive {
45
+ border-radius: 50%;
46
+ background-color: #D6E6FF;
47
+ color: #0061FF;
48
+ padding: 2px 4px;
49
+ margin-left: 8px;
50
+ font-size: 10px;
51
+ font-weight: 600;
52
+ line-height: 12px;
53
+ }
54
+
55
+ .skillFilterNumberInActive {
56
+ background-color: #EAEAEB;
57
+ color: #515161;
58
+ }
59
+
60
+ .priorityListWrapper {
61
+ display: flex;
62
+ flex-direction: column;
63
+ gap: 16px;
64
+ }
65
+
66
+ @media mobile {
67
+ .LearningPriorityContainer {
68
+ width: 100%;
69
+ }
70
+ }
@@ -0,0 +1,18 @@
1
+ export default LearningPrioritySetupItem;
2
+ declare function LearningPrioritySetupItem(props: any, context: any): JSX.Element;
3
+ declare namespace LearningPrioritySetupItem {
4
+ namespace contextTypes {
5
+ const translate: PropTypes.Requireable<(...args: any[]) => any>;
6
+ }
7
+ const propTypes: {
8
+ 'aria-label': PropTypes.Requireable<string>;
9
+ id: PropTypes.Requireable<string>;
10
+ priorityRef: PropTypes.Requireable<string>;
11
+ title: PropTypes.Requireable<string>;
12
+ courses: PropTypes.Requireable<number>;
13
+ type: PropTypes.Requireable<string>;
14
+ onRemove: PropTypes.Requireable<(...args: any[]) => any>;
15
+ };
16
+ }
17
+ import PropTypes from "prop-types";
18
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/molecule/learning-priority-setup-item/index.js"],"names":[],"mappings":";AAOA,kFAsDC"}