@coorpacademy/components 11.32.33 → 11.32.35-alpha.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/input-text/index.d.ts +1 -0
- package/es/atom/input-text/index.d.ts.map +1 -1
- package/es/atom/input-text/index.js +3 -1
- package/es/atom/input-text/index.js.map +1 -1
- package/es/atom/input-text-with-title/index.d.ts +1 -0
- package/es/molecule/brand-form-group/index.d.ts.map +1 -1
- package/es/molecule/brand-form-group/index.js +13 -3
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/course-sections/index.d.ts +1 -0
- package/es/molecule/progress-wrapper/index.d.ts +4 -5
- package/es/molecule/progress-wrapper/index.d.ts.map +1 -1
- package/es/molecule/progress-wrapper/index.js +14 -28
- package/es/molecule/progress-wrapper/index.js.map +1 -1
- package/es/molecule/progress-wrapper/style.css +3 -25
- package/es/molecule/setup-slider/index.d.ts.map +1 -1
- package/es/molecule/setup-slider/index.js +14 -2
- package/es/molecule/setup-slider/index.js.map +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
- package/es/organism/content-translation/index.d.ts +1 -0
- package/es/organism/rewards-form/index.d.ts +1 -0
- package/es/organism/select-opponents/index.d.ts +1 -0
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +1 -0
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/title-and-input/index.d.ts +1 -0
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +1 -0
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +3 -0
- package/es/template/certification-detail/index.d.ts +6 -46
- package/es/template/certification-detail/index.d.ts.map +1 -1
- package/es/template/certification-detail/index.js +22 -40
- package/es/template/certification-detail/index.js.map +1 -1
- package/es/template/certification-detail/style.css +1 -12
- package/es/template/skill-detail/all-courses.d.ts.map +1 -1
- package/es/template/skill-detail/all-courses.js +2 -2
- package/es/template/skill-detail/all-courses.js.map +1 -1
- package/lib/atom/input-text/index.d.ts +1 -0
- package/lib/atom/input-text/index.d.ts.map +1 -1
- package/lib/atom/input-text/index.js +3 -1
- package/lib/atom/input-text/index.js.map +1 -1
- package/lib/atom/input-text-with-title/index.d.ts +1 -0
- package/lib/molecule/brand-form-group/index.d.ts.map +1 -1
- package/lib/molecule/brand-form-group/index.js +14 -3
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/course-sections/index.d.ts +1 -0
- package/lib/molecule/progress-wrapper/index.d.ts +4 -5
- package/lib/molecule/progress-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/progress-wrapper/index.js +14 -29
- package/lib/molecule/progress-wrapper/index.js.map +1 -1
- package/lib/molecule/progress-wrapper/style.css +3 -25
- package/lib/molecule/setup-slider/index.d.ts.map +1 -1
- package/lib/molecule/setup-slider/index.js +15 -2
- package/lib/molecule/setup-slider/index.js.map +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +1 -0
- package/lib/organism/content-translation/index.d.ts +1 -0
- package/lib/organism/rewards-form/index.d.ts +1 -0
- package/lib/organism/select-opponents/index.d.ts +1 -0
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +1 -0
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/title-and-input/index.d.ts +1 -0
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +1 -0
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +3 -0
- package/lib/template/certification-detail/index.d.ts +6 -46
- package/lib/template/certification-detail/index.d.ts.map +1 -1
- package/lib/template/certification-detail/index.js +22 -41
- package/lib/template/certification-detail/index.js.map +1 -1
- package/lib/template/certification-detail/style.css +1 -12
- package/lib/template/skill-detail/all-courses.d.ts.map +1 -1
- package/lib/template/skill-detail/all-courses.js +2 -2
- package/lib/template/skill-detail/all-courses.js.map +1 -1
- package/locales/en/global.json +1 -0
- package/package.json +2 -2
|
@@ -48,6 +48,7 @@ declare namespace RewardsForm {
|
|
|
48
48
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
49
49
|
description: PropTypes.Requireable<string>;
|
|
50
50
|
modified: PropTypes.Requireable<boolean>;
|
|
51
|
+
type: PropTypes.Requireable<string>;
|
|
51
52
|
valid: PropTypes.Requireable<boolean>;
|
|
52
53
|
'aria-label': PropTypes.Requireable<string>;
|
|
53
54
|
'data-name': PropTypes.Requireable<string>;
|
|
@@ -47,6 +47,7 @@ declare const SelectOpponents: {
|
|
|
47
47
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
48
48
|
description: import("prop-types").Requireable<string>;
|
|
49
49
|
modified: import("prop-types").Requireable<boolean>;
|
|
50
|
+
type: import("prop-types").Requireable<string>;
|
|
50
51
|
valid: import("prop-types").Requireable<boolean>;
|
|
51
52
|
'aria-label': import("prop-types").Requireable<string>;
|
|
52
53
|
'data-name': import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,oBAAoB,EAA+B,MAAM,SAAS,CAAC;AAMtF,QAAA,MAAM,eAAe;YAAW,oBAAoB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/index.tsx"],"names":[],"mappings":";AAGA,OAAkB,EAAC,oBAAoB,EAA+B,MAAM,SAAS,CAAC;AAMtF,QAAA,MAAM,eAAe;YAAW,oBAAoB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgBnD,CAAC;AAIF,eAAe,eAAe,CAAC"}
|
|
@@ -44,6 +44,7 @@ export declare const propTypes: {
|
|
|
44
44
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
45
45
|
description: PropTypes.Requireable<string>;
|
|
46
46
|
modified: PropTypes.Requireable<boolean>;
|
|
47
|
+
type: PropTypes.Requireable<string>;
|
|
47
48
|
valid: PropTypes.Requireable<boolean>;
|
|
48
49
|
'aria-label': PropTypes.Requireable<string>;
|
|
49
50
|
'data-name': PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,KAAK,EAAE;QACL,SAAS,EAAE,iBAAiB,GAAG,cAAc,CAAC;QAC9C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,4BAA4B,EAAE,CAAC;CACvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -102,6 +102,7 @@ declare const TitleAndInput: {
|
|
|
102
102
|
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
103
103
|
description: import("prop-types").Requireable<string>;
|
|
104
104
|
modified: import("prop-types").Requireable<boolean>;
|
|
105
|
+
type: import("prop-types").Requireable<string>;
|
|
105
106
|
valid: import("prop-types").Requireable<boolean>;
|
|
106
107
|
'aria-label': import("prop-types").Requireable<string>;
|
|
107
108
|
'data-name': import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAiBtD,QAAA,MAAM,aAAa;YAAW,kBAAkB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,kBAAkB,EAAC,MAAM,SAAS,CAAC;AAiBtD,QAAA,MAAM,aAAa;YAAW,kBAAkB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAgB/C,CAAC;AAIF,eAAe,aAAa,CAAC"}
|
|
@@ -103,6 +103,7 @@ declare const propTypes: {
|
|
|
103
103
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
104
104
|
description: PropTypes.Requireable<string>;
|
|
105
105
|
modified: PropTypes.Requireable<boolean>;
|
|
106
|
+
type: PropTypes.Requireable<string>;
|
|
106
107
|
valid: PropTypes.Requireable<boolean>;
|
|
107
108
|
'aria-label': PropTypes.Requireable<string>;
|
|
108
109
|
'data-name': PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAE/D,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/title-and-input/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,YAAY,MAAM,yBAAyB,CAAC;AAEnD,OAAO,cAAc,MAAM,gCAAgC,CAAC;AAE5D,OAAO,EAAC,oBAAoB,EAAC,MAAM,2BAA2B,CAAC;AAE/D,QAAA,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQd,CAAC;AACF,oBAAY,kBAAkB,GAAG;IAC/B,KAAK,EAAE;QACL,KAAK,EAAE,MAAM,CAAC;QACd,QAAQ,EAAE,MAAM,CAAC;QACjB,IAAI,EAAE,MAAM,CAAC;QACb,WAAW,EAAE,MAAM,CAAC;KACrB,CAAC;IACF,KAAK,EACD,KAAK,CAAC,cAAc,CAAC,OAAO,cAAc,CAAC,GAC3C,KAAK,CAAC,cAAc,CAAC,OAAO,YAAY,CAAC,GACzC,oBAAoB,CAAC;IACzB,SAAS,EAAE,MAAM,CAAC;CACnB,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -167,6 +167,7 @@ declare namespace WizardContents {
|
|
|
167
167
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
168
168
|
description: PropTypes.Requireable<string>;
|
|
169
169
|
modified: PropTypes.Requireable<boolean>;
|
|
170
|
+
type: PropTypes.Requireable<string>;
|
|
170
171
|
valid: PropTypes.Requireable<boolean>;
|
|
171
172
|
'aria-label': PropTypes.Requireable<string>;
|
|
172
173
|
'data-name': PropTypes.Requireable<string>;
|
|
@@ -263,6 +264,7 @@ declare namespace WizardContents {
|
|
|
263
264
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
264
265
|
description: PropTypes.Requireable<string>;
|
|
265
266
|
modified: PropTypes.Requireable<boolean>;
|
|
267
|
+
type: PropTypes.Requireable<string>;
|
|
266
268
|
valid: PropTypes.Requireable<boolean>;
|
|
267
269
|
'aria-label': PropTypes.Requireable<string>;
|
|
268
270
|
'data-name': PropTypes.Requireable<string>;
|
|
@@ -317,6 +319,7 @@ declare namespace WizardContents {
|
|
|
317
319
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
318
320
|
description: PropTypes.Requireable<string>;
|
|
319
321
|
modified: PropTypes.Requireable<boolean>;
|
|
322
|
+
type: PropTypes.Requireable<string>;
|
|
320
323
|
valid: PropTypes.Requireable<boolean>;
|
|
321
324
|
'aria-label': PropTypes.Requireable<string>;
|
|
322
325
|
'data-name': PropTypes.Requireable<string>;
|
|
@@ -33,21 +33,14 @@ declare namespace CertificationDetail {
|
|
|
33
33
|
const metrics: PropTypes.Requireable<PropTypes.InferProps<{
|
|
34
34
|
progression: PropTypes.Requireable<number>;
|
|
35
35
|
stars: PropTypes.Requireable<number>;
|
|
36
|
-
completedCourses: PropTypes.Requireable<number>;
|
|
37
36
|
completedModules: PropTypes.Requireable<number>;
|
|
37
|
+
mandatoryModules: PropTypes.Requireable<number>;
|
|
38
|
+
totalModules: PropTypes.Requireable<number>;
|
|
39
|
+
totalCourses: PropTypes.Requireable<number>;
|
|
38
40
|
}>>;
|
|
39
|
-
const
|
|
40
|
-
const
|
|
41
|
-
|
|
42
|
-
onDownloadBadge: PropTypes.Requireable<(...args: any[]) => any>;
|
|
43
|
-
}>>;
|
|
44
|
-
const ongoingCourses: PropTypes.Requireable<PropTypes.InferProps<{
|
|
45
|
-
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
46
|
-
customStyle: PropTypes.Requireable<{
|
|
47
|
-
[x: string]: string | null | undefined;
|
|
48
|
-
}>;
|
|
49
|
-
loading: PropTypes.Requireable<boolean>;
|
|
50
|
-
}>>;
|
|
41
|
+
const diplomaUrl: PropTypes.Requireable<string>;
|
|
42
|
+
const badgeUrl: PropTypes.Requireable<string>;
|
|
43
|
+
const ongoingCoursesAvailable: PropTypes.Requireable<boolean>;
|
|
51
44
|
const certificationCourses: PropTypes.Requireable<PropTypes.InferProps<{
|
|
52
45
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
53
46
|
customStyle: PropTypes.Requireable<{
|
|
@@ -55,8 +48,6 @@ declare namespace CertificationDetail {
|
|
|
55
48
|
}>;
|
|
56
49
|
loading: PropTypes.Requireable<boolean>;
|
|
57
50
|
}>>;
|
|
58
|
-
const totalCourses: PropTypes.Requireable<number>;
|
|
59
|
-
const totalModules: PropTypes.Requireable<number>;
|
|
60
51
|
const filters: PropTypes.Requireable<PropTypes.InferProps<{
|
|
61
52
|
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
62
53
|
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
@@ -66,37 +57,6 @@ declare namespace CertificationDetail {
|
|
|
66
57
|
validOption: PropTypes.Requireable<boolean>;
|
|
67
58
|
}> | null | undefined)[]>;
|
|
68
59
|
}>>;
|
|
69
|
-
const sorting: PropTypes.Requireable<PropTypes.InferProps<{
|
|
70
|
-
title: PropTypes.Requireable<string>;
|
|
71
|
-
name: PropTypes.Requireable<string>;
|
|
72
|
-
className: PropTypes.Requireable<string>;
|
|
73
|
-
borderClassName: PropTypes.Requireable<string>;
|
|
74
|
-
disabled: PropTypes.Requireable<boolean>;
|
|
75
|
-
multiple: PropTypes.Requireable<boolean>;
|
|
76
|
-
description: PropTypes.Requireable<string>;
|
|
77
|
-
required: PropTypes.Requireable<boolean>;
|
|
78
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
79
|
-
theme: PropTypes.Requireable<string>;
|
|
80
|
-
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
81
|
-
name: PropTypes.Validator<string>;
|
|
82
|
-
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
83
|
-
selected: PropTypes.Requireable<boolean>;
|
|
84
|
-
validOption: PropTypes.Requireable<boolean>;
|
|
85
|
-
}> | null | undefined)[]>;
|
|
86
|
-
optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
87
|
-
label: PropTypes.Validator<string>;
|
|
88
|
-
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
89
|
-
name: PropTypes.Validator<string>;
|
|
90
|
-
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
91
|
-
selected: PropTypes.Requireable<boolean>;
|
|
92
|
-
validOption: PropTypes.Requireable<boolean>;
|
|
93
|
-
}> | null | undefined)[]>;
|
|
94
|
-
}> | null | undefined)[]>;
|
|
95
|
-
modified: PropTypes.Requireable<boolean>;
|
|
96
|
-
error: PropTypes.Requireable<boolean>;
|
|
97
|
-
'aria-label': PropTypes.Requireable<string>;
|
|
98
|
-
'aria-labelledby': PropTypes.Requireable<string>;
|
|
99
|
-
}>>;
|
|
100
60
|
const onBackClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
101
61
|
const onContinueLearningClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
102
62
|
}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/certification-detail/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/certification-detail/index.js"],"names":[],"mappings":";AAiBA,4EAgGC"}
|
|
@@ -17,7 +17,7 @@ var _provider = _interopRequireDefault(require("../../atom/provider"));
|
|
|
17
17
|
|
|
18
18
|
var _tag = _interopRequireDefault(require("../../atom/tag"));
|
|
19
19
|
|
|
20
|
-
var _select =
|
|
20
|
+
var _select = require("../../atom/select");
|
|
21
21
|
|
|
22
22
|
var _buttonLinkIcon = _interopRequireDefault(require("../../atom/button-link-icon"));
|
|
23
23
|
|
|
@@ -27,8 +27,6 @@ var _cardsGrid = _interopRequireDefault(require("../../organism/cards-grid"));
|
|
|
27
27
|
|
|
28
28
|
var _allCourses = _interopRequireDefault(require("../skill-detail/all-courses"));
|
|
29
29
|
|
|
30
|
-
var _continueLearning = _interopRequireDefault(require("../skill-detail/continue-learning"));
|
|
31
|
-
|
|
32
30
|
var _skillDetail = require("../skill-detail");
|
|
33
31
|
|
|
34
32
|
var _progressWrapper = _interopRequireDefault(require("../../molecule/progress-wrapper"));
|
|
@@ -49,31 +47,26 @@ const CertificationDetail = (props, context) => {
|
|
|
49
47
|
title,
|
|
50
48
|
description,
|
|
51
49
|
certificationCourses,
|
|
52
|
-
|
|
53
|
-
totalCourses,
|
|
54
|
-
totalModules,
|
|
50
|
+
ongoingCoursesAvailable,
|
|
55
51
|
filters,
|
|
56
|
-
sorting,
|
|
57
52
|
onBackClick,
|
|
58
53
|
onContinueLearningClick,
|
|
59
54
|
metrics,
|
|
60
55
|
logoUrl,
|
|
61
|
-
|
|
62
|
-
|
|
56
|
+
diplomaUrl,
|
|
57
|
+
badgeUrl
|
|
63
58
|
} = props;
|
|
64
59
|
const {
|
|
65
60
|
translate
|
|
66
61
|
} = context;
|
|
67
62
|
const {
|
|
68
63
|
progression,
|
|
69
|
-
completedCourses,
|
|
70
64
|
completedModules,
|
|
71
|
-
|
|
65
|
+
mandatoryModules,
|
|
66
|
+
stars,
|
|
67
|
+
totalModules,
|
|
68
|
+
totalCourses
|
|
72
69
|
} = metrics;
|
|
73
|
-
const {
|
|
74
|
-
badgeUrl = false,
|
|
75
|
-
onDownloadBadge
|
|
76
|
-
} = badge;
|
|
77
70
|
const [showMore, setShowMore] = (0, _react.useState)(false);
|
|
78
71
|
const handleShowMore = (0, _react.useCallback)(() => setShowMore(!showMore), [setShowMore, showMore]);
|
|
79
72
|
const Description = (0, _react.useCallback)(() => {
|
|
@@ -115,28 +108,21 @@ const CertificationDetail = (props, context) => {
|
|
|
115
108
|
}
|
|
116
109
|
})) : null) : null, /*#__PURE__*/_react.default.createElement("div", {
|
|
117
110
|
className: _style.default.contentStats
|
|
118
|
-
}, /*#__PURE__*/_react.default.createElement("span", null, `${
|
|
119
|
-
|
|
120
|
-
}), /*#__PURE__*/_react.default.createElement("span", null, `${totalModules} ${(0, _lowerCase2.default)(translate('modules'))}`)), /*#__PURE__*/_react.default.createElement(_skillDetail.ContinueLearningButton, {
|
|
121
|
-
ongoingCoursesAvailable: !!ongoingCourses.list.length,
|
|
111
|
+
}, /*#__PURE__*/_react.default.createElement("span", null, `${totalModules} ${(0, _lowerCase2.default)(translate('modules'))}`)), /*#__PURE__*/_react.default.createElement(_skillDetail.ContinueLearningButton, {
|
|
112
|
+
ongoingCoursesAvailable: ongoingCoursesAvailable,
|
|
122
113
|
onClick: onContinueLearningClick
|
|
123
|
-
}))), /*#__PURE__*/_react.default.createElement(
|
|
124
|
-
className: _style.default.continueLearningSection
|
|
125
|
-
}, /*#__PURE__*/_react.default.createElement(_continueLearning.default, {
|
|
126
|
-
ongoingCourses: ongoingCourses
|
|
127
|
-
})), /*#__PURE__*/_react.default.createElement(_progressWrapper.default, {
|
|
114
|
+
}))), /*#__PURE__*/_react.default.createElement(_progressWrapper.default, {
|
|
128
115
|
title: translate('your_progress'),
|
|
129
116
|
subtitle: translate('certification_progress_wrapper_subtitle'),
|
|
130
117
|
progression: progression,
|
|
131
|
-
completedCourses: completedCourses,
|
|
132
118
|
completedModules: completedModules,
|
|
119
|
+
mandatoryModules: mandatoryModules,
|
|
133
120
|
sections: (0, _compact2.default)([{
|
|
134
121
|
type: 'diploma',
|
|
135
|
-
|
|
122
|
+
downloadUrl: diplomaUrl
|
|
136
123
|
}, badgeUrl && {
|
|
137
124
|
type: 'badge',
|
|
138
|
-
badgeUrl
|
|
139
|
-
onDownload: () => onDownloadBadge
|
|
125
|
+
downloadUrl: badgeUrl
|
|
140
126
|
}, {
|
|
141
127
|
type: 'stars',
|
|
142
128
|
stars
|
|
@@ -144,8 +130,7 @@ const CertificationDetail = (props, context) => {
|
|
|
144
130
|
}), /*#__PURE__*/_react.default.createElement(_allCourses.default, {
|
|
145
131
|
courses: certificationCourses,
|
|
146
132
|
totalCourses: totalCourses,
|
|
147
|
-
filters: filters
|
|
148
|
-
sorting: sorting
|
|
133
|
+
filters: filters
|
|
149
134
|
})));
|
|
150
135
|
};
|
|
151
136
|
|
|
@@ -161,23 +146,19 @@ CertificationDetail.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
161
146
|
metrics: _propTypes.default.shape({
|
|
162
147
|
progression: _propTypes.default.number,
|
|
163
148
|
stars: _propTypes.default.number,
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
badge: _propTypes.default.shape({
|
|
169
|
-
badgeUrl: _propTypes.default.string,
|
|
170
|
-
onDownloadBadge: _propTypes.default.func
|
|
149
|
+
completedModules: _propTypes.default.number,
|
|
150
|
+
mandatoryModules: _propTypes.default.number,
|
|
151
|
+
totalModules: _propTypes.default.number,
|
|
152
|
+
totalCourses: _propTypes.default.number
|
|
171
153
|
}),
|
|
172
|
-
|
|
154
|
+
diplomaUrl: _propTypes.default.string,
|
|
155
|
+
badgeUrl: _propTypes.default.string,
|
|
156
|
+
ongoingCoursesAvailable: _propTypes.default.bool,
|
|
173
157
|
certificationCourses: _propTypes.default.shape(_cardsGrid.default.propTypes),
|
|
174
|
-
totalCourses: _propTypes.default.number,
|
|
175
|
-
totalModules: _propTypes.default.number,
|
|
176
158
|
filters: _propTypes.default.shape({
|
|
177
159
|
onChange: _propTypes.default.func,
|
|
178
160
|
options: _propTypes.default.arrayOf(_propTypes.default.shape(_select.SelectOptionPropTypes))
|
|
179
161
|
}),
|
|
180
|
-
sorting: _propTypes.default.shape(_select.default.propTypes),
|
|
181
162
|
onBackClick: _propTypes.default.func,
|
|
182
163
|
onContinueLearningClick: _propTypes.default.func
|
|
183
164
|
} : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["DESCRIPTION_BREAKPOINT","CertificationDetail","props","context","certificationRef","title","description","certificationCourses","ongoingCourses","totalCourses","totalModules","filters","sorting","onBackClick","onContinueLearningClick","metrics","logoUrl","onDownloadDiploma","badge","translate","progression","completedCourses","completedModules","stars","badgeUrl","onDownloadBadge","showMore","setShowMore","useState","handleShowMore","useCallback","Description","classnames","style","truncate","backgroundContainer","container","backButton","ctaContainer","logoContainer","logo","length","showMoreWrapper","faSize","wrapperSize","contentStats","divider","list","continueLearningSection","type","onDownload","contextTypes","skin","Provider","childContextTypes","propTypes","PropTypes","string","isRequired","shape","number","func","CardsGrid","onChange","options","arrayOf","SelectOptionPropTypes","Select"],"sources":["../../../src/template/certification-detail/index.js"],"sourcesContent":["import React, {useCallback, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {compact, lowerCase} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport Select, {SelectOptionPropTypes} from '../../atom/select';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Icon from '../../atom/icon';\nimport CardsGrid from '../../organism/cards-grid';\nimport AllCourses from '../skill-detail/all-courses';\nimport ContinueLearning from '../skill-detail/continue-learning';\nimport {ContinueLearningButton} from '../skill-detail';\nimport ProgressWrapper from '../../molecule/progress-wrapper';\nimport style from './style.css';\n\nconst DESCRIPTION_BREAKPOINT = 382;\n\nconst CertificationDetail = (props, context) => {\n const {\n certificationRef,\n title,\n description,\n certificationCourses,\n ongoingCourses,\n totalCourses,\n totalModules,\n filters,\n sorting,\n onBackClick,\n onContinueLearningClick,\n metrics,\n logoUrl,\n onDownloadDiploma,\n badge = {}\n } = props;\n const {translate} = context;\n const {progression, completedCourses, completedModules, stars} = metrics;\n const {badgeUrl = false, onDownloadBadge} = badge;\n\n const [showMore, setShowMore] = useState(false);\n const handleShowMore = useCallback(() => setShowMore(!showMore), [setShowMore, showMore]);\n\n const Description = useCallback(() => {\n return (\n <div className={classnames(style.description, !showMore && style.truncate)}>\n {description}\n </div>\n );\n }, [showMore, description]);\n\n return (\n <div className={style.backgroundContainer}>\n <div className={style.container} data-name={certificationRef}>\n <ButtonLinkIcon\n faIcon=\"arrow-left\"\n data-name=\"back-button\"\n aria-label=\"Back\"\n onClick={onBackClick}\n className={style.backButton}\n tooltipPlacement=\"right\"\n />\n <div className={style.ctaContainer}>\n <div className={style.logoContainer}>\n <img className={style.logo} src={logoUrl} />\n </div>\n <div>\n <Tag label={translate('certification')} />\n <div className={style.title}>{title}</div>\n {description ? (\n <>\n <Description />\n {description.length >= DESCRIPTION_BREAKPOINT ? (\n <div className={style.showMoreWrapper} onClick={handleShowMore}>\n {translate(showMore ? 'Show less' : 'Show more')}\n <Icon\n iconName={showMore ? 'chevron-up' : 'chevron-down'}\n size={{faSize: 14, wrapperSize: 16}}\n />\n </div>\n ) : null}\n </>\n ) : null}\n <div className={style.contentStats}>\n <span>{`${totalCourses} ${lowerCase(translate('courses'))}`}</span>\n <div className={style.divider} />\n <span>{`${totalModules} ${lowerCase(translate('modules'))}`}</span>\n </div>\n <ContinueLearningButton\n ongoingCoursesAvailable={!!ongoingCourses.list.length}\n onClick={onContinueLearningClick}\n />\n </div>\n </div>\n <div className={style.continueLearningSection}>\n <ContinueLearning ongoingCourses={ongoingCourses} />\n </div>\n <ProgressWrapper\n title={translate('your_progress')}\n subtitle={translate('certification_progress_wrapper_subtitle')}\n progression={progression}\n completedCourses={completedCourses}\n completedModules={completedModules}\n sections={compact([\n {\n type: 'diploma',\n onDownload: () => onDownloadDiploma\n },\n badgeUrl && {\n type: 'badge',\n badgeUrl,\n onDownload: () => onDownloadBadge\n },\n {\n type: 'stars',\n stars\n }\n ])}\n />\n <AllCourses\n courses={certificationCourses}\n totalCourses={totalCourses}\n filters={filters}\n sorting={sorting}\n />\n </div>\n </div>\n );\n};\n\nCertificationDetail.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nCertificationDetail.propTypes = {\n title: PropTypes.string.isRequired,\n certificationRef: PropTypes.string.isRequired,\n description: PropTypes.string,\n logoUrl: PropTypes.string,\n metrics: PropTypes.shape({\n progression: PropTypes.number,\n stars: PropTypes.number,\n completedCourses: PropTypes.number,\n completedModules: PropTypes.number\n }),\n onDownloadDiploma: PropTypes.func,\n badge: PropTypes.shape({\n badgeUrl: PropTypes.string,\n onDownloadBadge: PropTypes.func\n }),\n ongoingCourses: PropTypes.shape(CardsGrid.propTypes),\n certificationCourses: PropTypes.shape(CardsGrid.propTypes),\n totalCourses: PropTypes.number,\n totalModules: PropTypes.number,\n filters: PropTypes.shape({\n onChange: PropTypes.func,\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes))\n }),\n sorting: PropTypes.shape(Select.propTypes),\n onBackClick: PropTypes.func,\n onContinueLearningClick: PropTypes.func\n};\n\nexport default CertificationDetail;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,sBAAsB,GAAG,GAA/B;;AAEA,MAAMC,mBAAmB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAC9C,MAAM;IACJC,gBADI;IAEJC,KAFI;IAGJC,WAHI;IAIJC,oBAJI;IAKJC,cALI;IAMJC,YANI;IAOJC,YAPI;IAQJC,OARI;IASJC,OATI;IAUJC,WAVI;IAWJC,uBAXI;IAYJC,OAZI;IAaJC,OAbI;IAcJC,iBAdI;IAeJC,KAAK,GAAG;EAfJ,IAgBFhB,KAhBJ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gD,kBAAA,CAAUG,KAAV,CAAgBG,kBAAA,CAAUP,SAA1B,CAhBc;EAiB9BhD,oBAAoB,EAAEiD,kBAAA,CAAUG,KAAV,CAAgBG,kBAAA,CAAUP,SAA1B,CAjBQ;EAkB9B9C,YAAY,EAAE+C,kBAAA,CAAUI,MAlBM;EAmB9BlD,YAAY,EAAE8C,kBAAA,CAAUI,MAnBM;EAoB9BjD,OAAO,EAAE6C,kBAAA,CAAUG,KAAV,CAAgB;IACvBI,QAAQ,EAAEP,kBAAA,CAAUK,IADG;IAEvBG,OAAO,EAAER,kBAAA,CAAUS,OAAV,CAAkBT,kBAAA,CAAUG,KAAV,CAAgBO,6BAAhB,CAAlB;EAFc,CAAhB,CApBqB;EAwB9BtD,OAAO,EAAE4C,kBAAA,CAAUG,KAAV,CAAgBQ,eAAA,CAAOZ,SAAvB,CAxBqB;EAyB9B1C,WAAW,EAAE2C,kBAAA,CAAUK,IAzBO;EA0B9B/C,uBAAuB,EAAE0C,kBAAA,CAAUK;AA1BL,CAAhC;eA6Be5D,mB"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["DESCRIPTION_BREAKPOINT","CertificationDetail","props","context","certificationRef","title","description","certificationCourses","ongoingCoursesAvailable","filters","onBackClick","onContinueLearningClick","metrics","logoUrl","diplomaUrl","badgeUrl","translate","progression","completedModules","mandatoryModules","stars","totalModules","totalCourses","showMore","setShowMore","useState","handleShowMore","useCallback","Description","classnames","style","truncate","backgroundContainer","container","backButton","ctaContainer","logoContainer","logo","length","showMoreWrapper","faSize","wrapperSize","contentStats","type","downloadUrl","contextTypes","skin","Provider","childContextTypes","propTypes","PropTypes","string","isRequired","shape","number","bool","CardsGrid","onChange","func","options","arrayOf","SelectOptionPropTypes"],"sources":["../../../src/template/certification-detail/index.js"],"sourcesContent":["import React, {useCallback, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {compact, lowerCase} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport {SelectOptionPropTypes} from '../../atom/select';\nimport ButtonLinkIcon from '../../atom/button-link-icon';\nimport Icon from '../../atom/icon';\nimport CardsGrid from '../../organism/cards-grid';\nimport AllCourses from '../skill-detail/all-courses';\nimport {ContinueLearningButton} from '../skill-detail';\nimport ProgressWrapper from '../../molecule/progress-wrapper';\nimport style from './style.css';\n\nconst DESCRIPTION_BREAKPOINT = 382;\n\nconst CertificationDetail = (props, context) => {\n const {\n certificationRef,\n title,\n description,\n certificationCourses,\n ongoingCoursesAvailable,\n filters,\n onBackClick,\n onContinueLearningClick,\n metrics,\n logoUrl,\n diplomaUrl,\n badgeUrl\n } = props;\n const {translate} = context;\n const {progression, completedModules, mandatoryModules, stars, totalModules, totalCourses} =\n metrics;\n\n const [showMore, setShowMore] = useState(false);\n const handleShowMore = useCallback(() => setShowMore(!showMore), [setShowMore, showMore]);\n\n const Description = useCallback(() => {\n return (\n <div className={classnames(style.description, !showMore && style.truncate)}>\n {description}\n </div>\n );\n }, [showMore, description]);\n\n return (\n <div className={style.backgroundContainer}>\n <div className={style.container} data-name={certificationRef}>\n <ButtonLinkIcon\n faIcon=\"arrow-left\"\n data-name=\"back-button\"\n aria-label=\"Back\"\n onClick={onBackClick}\n className={style.backButton}\n tooltipPlacement=\"right\"\n />\n <div className={style.ctaContainer}>\n <div className={style.logoContainer}>\n <img className={style.logo} src={logoUrl} />\n </div>\n <div>\n <Tag label={translate('certification')} />\n <div className={style.title}>{title}</div>\n {description ? (\n <>\n <Description />\n {description.length >= DESCRIPTION_BREAKPOINT ? (\n <div className={style.showMoreWrapper} onClick={handleShowMore}>\n {translate(showMore ? 'Show less' : 'Show more')}\n <Icon\n iconName={showMore ? 'chevron-up' : 'chevron-down'}\n size={{faSize: 14, wrapperSize: 16}}\n />\n </div>\n ) : null}\n </>\n ) : null}\n <div className={style.contentStats}>\n <span>{`${totalModules} ${lowerCase(translate('modules'))}`}</span>\n </div>\n <ContinueLearningButton\n ongoingCoursesAvailable={ongoingCoursesAvailable}\n onClick={onContinueLearningClick}\n />\n </div>\n </div>\n <ProgressWrapper\n title={translate('your_progress')}\n subtitle={translate('certification_progress_wrapper_subtitle')}\n progression={progression}\n completedModules={completedModules}\n mandatoryModules={mandatoryModules}\n sections={compact([\n {\n type: 'diploma',\n downloadUrl: diplomaUrl\n },\n badgeUrl && {\n type: 'badge',\n downloadUrl: badgeUrl\n },\n {\n type: 'stars',\n stars\n }\n ])}\n />\n <AllCourses courses={certificationCourses} totalCourses={totalCourses} filters={filters} />\n </div>\n </div>\n );\n};\n\nCertificationDetail.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nCertificationDetail.propTypes = {\n title: PropTypes.string.isRequired,\n certificationRef: PropTypes.string.isRequired,\n description: PropTypes.string,\n logoUrl: PropTypes.string,\n metrics: PropTypes.shape({\n progression: PropTypes.number,\n stars: PropTypes.number,\n completedModules: PropTypes.number,\n mandatoryModules: PropTypes.number,\n totalModules: PropTypes.number,\n totalCourses: PropTypes.number\n }),\n diplomaUrl: PropTypes.string,\n badgeUrl: PropTypes.string,\n ongoingCoursesAvailable: PropTypes.bool,\n certificationCourses: PropTypes.shape(CardsGrid.propTypes),\n filters: PropTypes.shape({\n onChange: PropTypes.func,\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes))\n }),\n onBackClick: PropTypes.func,\n onContinueLearningClick: PropTypes.func\n};\n\nexport default CertificationDetail;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,sBAAsB,GAAG,GAA/B;;AAEA,MAAMC,mBAAmB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAC9C,MAAM;IACJC,gBADI;IAEJC,KAFI;IAGJC,WAHI;IAIJC,oBAJI;IAKJC,uBALI;IAMJC,OANI;IAOJC,WAPI;IAQJC,uBARI;IASJC,O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,CAAUQ,IArBO;EAsB9B/C,uBAAuB,EAAEuC,kBAAA,CAAUQ;AAtBL,CAAhC;eAyBezD,mB"}
|
|
@@ -8,14 +8,6 @@
|
|
|
8
8
|
@value cm_grey_200 from colors;
|
|
9
9
|
@value cm_grey_400 from colors;
|
|
10
10
|
|
|
11
|
-
.divider {
|
|
12
|
-
width: 4px;
|
|
13
|
-
height: 4px;
|
|
14
|
-
background-color: cm_grey_400;
|
|
15
|
-
border: solid cm_grey_400 1px;
|
|
16
|
-
border-radius: 4px;
|
|
17
|
-
}
|
|
18
|
-
|
|
19
11
|
.textBase {
|
|
20
12
|
font-family: "Gilroy";
|
|
21
13
|
font-style: normal;
|
|
@@ -53,6 +45,7 @@
|
|
|
53
45
|
align-items: center;
|
|
54
46
|
width: 100%;
|
|
55
47
|
gap: 40px;
|
|
48
|
+
margin-bottom: 40px;
|
|
56
49
|
}
|
|
57
50
|
|
|
58
51
|
.logoContainer {
|
|
@@ -112,10 +105,6 @@
|
|
|
112
105
|
color: cm_grey_400;
|
|
113
106
|
}
|
|
114
107
|
|
|
115
|
-
.continueLearningSection {
|
|
116
|
-
padding: 24px 0 32px 0;
|
|
117
|
-
}
|
|
118
|
-
|
|
119
108
|
@media tablet {
|
|
120
109
|
.ctaContainer {
|
|
121
110
|
flex-direction: column;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-courses.d.ts","sourceRoot":"","sources":["../../../src/template/skill-detail/all-courses.js"],"names":[],"mappings":";AA2CA,
|
|
1
|
+
{"version":3,"file":"all-courses.d.ts","sourceRoot":"","sources":["../../../src/template/skill-detail/all-courses.js"],"names":[],"mappings":";AA2CA,mEA0HC"}
|
|
@@ -146,9 +146,9 @@ const AllCourses = (props, context) => {
|
|
|
146
146
|
"aria-label": 'Show completed courses aria label',
|
|
147
147
|
value: showCompleted,
|
|
148
148
|
onChange: handleShowCompletedToggle
|
|
149
|
-
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
149
|
+
}), sortView ? /*#__PURE__*/_react.default.createElement("div", {
|
|
150
150
|
className: _allCourses.default.sortWrapper
|
|
151
|
-
}, translate('sort_by'), sortView))), /*#__PURE__*/_react.default.createElement("div", {
|
|
151
|
+
}, translate('sort_by'), sortView) : null)), /*#__PURE__*/_react.default.createElement("div", {
|
|
152
152
|
className: _allCourses.default.filterWrapper
|
|
153
153
|
}, options.length > 2 && searchResults.length > 0 ? options.map((filter, index) => {
|
|
154
154
|
const {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"all-courses.js","names":["FilterButton","props","context","selected","filter","onClick","skin","primarySkinColor","buttonProps","customStyle","backgroundColor","color","transition","width","label","contextTypes","Provider","childContextTypes","translate","propTypes","PropTypes","bool","string","func","AllCourses","courses","totalCourses","filters","sorting","options","onChange","list","loading","showCompleted","setShowCompleted","useState","searchValue","setSearchValue","searchResults","setSearchResults","course","sortView","undefined","useEffect","handleSearch","useCallback","value","skill","searchValueIncluded","title","handleSearchReset","handleShowCompletedToggle","toggledShowCompleted","progress","style","continueLearningWrapper","continueLearningTitle","continueLearningNumber","searchAndSortSection","searchWrapper","placeholder","sortSection","sortWrapper","filterWrapper","length","map","index","name","handleChange","filterButtonWrapper","divider","justifyContent","emptySearchResultContainer","emptySearchResultTitle","emptySearchResultDescription","emptySearchResultClearSearch","shape","CardsGrid","number","arrayOf","SelectOptionPropTypes","Select"],"sources":["../../../src/template/skill-detail/all-courses.js"],"sourcesContent":["import React, {useState, useCallback, useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport {get, getOr, sortBy} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Select, {SelectOptionPropTypes} from '../../atom/select';\nimport ButtonLink from '../../atom/button-link';\nimport SearchForm from '../../molecule/search-form';\nimport CardsGrid from '../../organism/cards-grid';\nimport searchValueIncluded from '../../util/search-value-included';\nimport InputSwitch from '../../atom/input-switch';\nimport style from './all-courses.css';\n\nconst FilterButton = (props, context) => {\n const {selected, filter, onClick} = props;\n const {skin} = context;\n const primarySkinColor = get('common.primary', skin);\n\n const buttonProps = {\n customStyle: {\n backgroundColor: selected ? primarySkinColor : '#E1E1E3',\n color: selected ? '#FFFFFF' : '#515161',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out',\n width: 'fit-content'\n },\n label: filter,\n onClick,\n 'data-name': 'filter-type-course-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 selected: PropTypes.bool,\n filter: PropTypes.string,\n onClick: PropTypes.func\n};\n\nconst AllCourses = (props, context) => {\n const {courses, totalCourses, filters, sorting} = props;\n const {options, onChange} = filters;\n const {list, loading} = courses;\n const {translate} = context;\n const [showCompleted, setShowCompleted] = useState(true);\n const [searchValue, setSearchValue] = useState('');\n const [searchResults, setSearchResults] = useState(\n sortBy(course => -getOr(0, ['progress'], course), list)\n );\n\n const sortView =\n sorting !== undefined ? (\n <div data-name=\"choice\">\n <Select {...sorting} aria-label=\"All courses sort\" />\n </div>\n ) : null;\n\n useEffect(() => {\n setSearchResults(sortBy(course => -getOr(0, ['progress'], course), list));\n }, [list]);\n\n const handleSearch = useCallback(\n value => {\n setSearchValue(value);\n setSearchResults(list.filter(skill => searchValueIncluded(skill.title, value)));\n },\n [list, setSearchValue, setSearchResults]\n );\n\n const handleSearchReset = useCallback(() => {\n setSearchValue('');\n setSearchResults(list);\n }, [list, setSearchValue, setSearchResults]);\n\n const handleShowCompletedToggle = useCallback(() => {\n const toggledShowCompleted = !showCompleted;\n setShowCompleted(toggledShowCompleted);\n if (toggledShowCompleted) {\n setSearchResults(list);\n handleSearchReset();\n } else {\n setSearchResults(searchResults.filter(skill => skill.progress < 100));\n }\n }, [list, searchResults, showCompleted, setShowCompleted, setSearchResults, handleSearchReset]);\n\n return (\n <>\n <div className={style.continueLearningWrapper}>\n <span className={style.continueLearningTitle}>{translate('all_courses')}</span>\n <span className={style.continueLearningNumber}>{totalCourses}</span>\n </div>\n <div className={style.searchAndSortSection}>\n <div className={style.searchWrapper}>\n <SearchForm\n search={{\n placeholder: translate('search_place_holder'),\n value: searchValue,\n onChange: handleSearch\n }}\n onReset={handleSearchReset}\n />\n </div>\n <div className={style.sortSection}>\n <InputSwitch\n id={'show-completed-courses-switch'}\n type=\"switch\"\n name={translate('show_completed')}\n title={translate('show_completed')}\n aria-label={'Show completed courses aria label'}\n value={showCompleted}\n onChange={handleShowCompletedToggle}\n />\n <div className={style.sortWrapper}>\n {translate('sort_by')}\n {sortView}\n </div>\n </div>\n </div>\n <div className={style.filterWrapper}>\n {options.length > 2 && searchResults.length > 0\n ? options.map((filter, index) => {\n const {name, value, selected} = filter;\n\n function handleChange() {\n onChange(value);\n handleSearchReset();\n }\n return (\n <div key={index} className={style.filterButtonWrapper}>\n <FilterButton selected={selected} filter={name} onClick={handleChange} />\n {value === 'ALL' ? <div className={style.divider} /> : null}\n </div>\n );\n })\n : null}\n </div>\n <div>\n {searchResults.length > 0 ? (\n <CardsGrid\n list={searchResults}\n loading={loading}\n customStyle={{justifyContent: 'left'}}\n />\n ) : (\n <div className={style.emptySearchResultContainer}>\n <div className={style.emptySearchResultTitle}>\n {translate('empty_search_result_title', {searchValue})}\n </div>\n <div className={style.emptySearchResultDescription}>\n {translate('empty_search_result_description')}\n </div>\n <div className={style.emptySearchResultClearSearch} onClick={handleSearchReset}>\n {translate('empty_search_result_clear_search')}\n </div>\n </div>\n )}\n </div>\n </>\n );\n};\n\nAllCourses.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nAllCourses.propTypes = {\n courses: PropTypes.shape(CardsGrid.propTypes),\n totalCourses: PropTypes.number,\n filters: PropTypes.shape({\n onChange: PropTypes.func,\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes))\n }),\n sorting: PropTypes.shape(Select.propTypes)\n};\n\nexport default AllCourses;\n"],"mappings":";;;;;;;;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oC,mBAAA,CAAMqB,4BAAtB;IAAoD,OAAO,EAAEzB;EAA7D,GACGhC,SAAS,CAAC,kCAAD,CADZ,CAPF,CARJ,CAlDF,CADF;AA0ED,CAxHD;;AA0HAM,UAAU,CAACT,YAAX,GAA0B;EACxBT,IAAI,EAAEU,iBAAA,CAASC,iBAAT,CAA2BX,IADT;EAExBY,SAAS,EAAEF,iBAAA,CAASC,iBAAT,CAA2BC;AAFd,CAA1B;AAKAM,UAAU,CAACL,SAAX,2CAAuB;EACrBM,OAAO,EAAEL,kBAAA,CAAUwD,KAAV,CAAgBC,kBAAA,CAAU1D,SAA1B,CADY;EAErBO,YAAY,EAAEN,kBAAA,CAAU0D,MAFH;EAGrBnD,OAAO,EAAEP,kBAAA,CAAUwD,KAAV,CAAgB;IACvB9C,QAAQ,EAAEV,kBAAA,CAAUG,IADG;IAEvBM,OAAO,EAAET,kBAAA,CAAU2D,OAAV,CAAkB3D,kBAAA,CAAUwD,KAAV,CAAgBI,6BAAhB,CAAlB;EAFc,CAAhB,CAHY;EAOrBpD,OAAO,EAAER,kBAAA,CAAUwD,KAAV,CAAgBK,eAAA,CAAO9D,SAAvB;AAPY,CAAvB;eAUeK,U"}
|
|
1
|
+
{"version":3,"file":"all-courses.js","names":["FilterButton","props","context","selected","filter","onClick","skin","primarySkinColor","buttonProps","customStyle","backgroundColor","color","transition","width","label","contextTypes","Provider","childContextTypes","translate","propTypes","PropTypes","bool","string","func","AllCourses","courses","totalCourses","filters","sorting","options","onChange","list","loading","showCompleted","setShowCompleted","useState","searchValue","setSearchValue","searchResults","setSearchResults","course","sortView","undefined","useEffect","handleSearch","useCallback","value","skill","searchValueIncluded","title","handleSearchReset","handleShowCompletedToggle","toggledShowCompleted","progress","style","continueLearningWrapper","continueLearningTitle","continueLearningNumber","searchAndSortSection","searchWrapper","placeholder","sortSection","sortWrapper","filterWrapper","length","map","index","name","handleChange","filterButtonWrapper","divider","justifyContent","emptySearchResultContainer","emptySearchResultTitle","emptySearchResultDescription","emptySearchResultClearSearch","shape","CardsGrid","number","arrayOf","SelectOptionPropTypes","Select"],"sources":["../../../src/template/skill-detail/all-courses.js"],"sourcesContent":["import React, {useState, useCallback, useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport {get, getOr, sortBy} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Select, {SelectOptionPropTypes} from '../../atom/select';\nimport ButtonLink from '../../atom/button-link';\nimport SearchForm from '../../molecule/search-form';\nimport CardsGrid from '../../organism/cards-grid';\nimport searchValueIncluded from '../../util/search-value-included';\nimport InputSwitch from '../../atom/input-switch';\nimport style from './all-courses.css';\n\nconst FilterButton = (props, context) => {\n const {selected, filter, onClick} = props;\n const {skin} = context;\n const primarySkinColor = get('common.primary', skin);\n\n const buttonProps = {\n customStyle: {\n backgroundColor: selected ? primarySkinColor : '#E1E1E3',\n color: selected ? '#FFFFFF' : '#515161',\n transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out',\n width: 'fit-content'\n },\n label: filter,\n onClick,\n 'data-name': 'filter-type-course-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 selected: PropTypes.bool,\n filter: PropTypes.string,\n onClick: PropTypes.func\n};\n\nconst AllCourses = (props, context) => {\n const {courses, totalCourses, filters, sorting} = props;\n const {options, onChange} = filters;\n const {list, loading} = courses;\n const {translate} = context;\n const [showCompleted, setShowCompleted] = useState(true);\n const [searchValue, setSearchValue] = useState('');\n const [searchResults, setSearchResults] = useState(\n sortBy(course => -getOr(0, ['progress'], course), list)\n );\n\n const sortView =\n sorting !== undefined ? (\n <div data-name=\"choice\">\n <Select {...sorting} aria-label=\"All courses sort\" />\n </div>\n ) : null;\n\n useEffect(() => {\n setSearchResults(sortBy(course => -getOr(0, ['progress'], course), list));\n }, [list]);\n\n const handleSearch = useCallback(\n value => {\n setSearchValue(value);\n setSearchResults(list.filter(skill => searchValueIncluded(skill.title, value)));\n },\n [list, setSearchValue, setSearchResults]\n );\n\n const handleSearchReset = useCallback(() => {\n setSearchValue('');\n setSearchResults(list);\n }, [list, setSearchValue, setSearchResults]);\n\n const handleShowCompletedToggle = useCallback(() => {\n const toggledShowCompleted = !showCompleted;\n setShowCompleted(toggledShowCompleted);\n if (toggledShowCompleted) {\n setSearchResults(list);\n handleSearchReset();\n } else {\n setSearchResults(searchResults.filter(skill => skill.progress < 100));\n }\n }, [list, searchResults, showCompleted, setShowCompleted, setSearchResults, handleSearchReset]);\n\n return (\n <>\n <div className={style.continueLearningWrapper}>\n <span className={style.continueLearningTitle}>{translate('all_courses')}</span>\n <span className={style.continueLearningNumber}>{totalCourses}</span>\n </div>\n <div className={style.searchAndSortSection}>\n <div className={style.searchWrapper}>\n <SearchForm\n search={{\n placeholder: translate('search_place_holder'),\n value: searchValue,\n onChange: handleSearch\n }}\n onReset={handleSearchReset}\n />\n </div>\n <div className={style.sortSection}>\n <InputSwitch\n id={'show-completed-courses-switch'}\n type=\"switch\"\n name={translate('show_completed')}\n title={translate('show_completed')}\n aria-label={'Show completed courses aria label'}\n value={showCompleted}\n onChange={handleShowCompletedToggle}\n />\n {sortView ? (\n <div className={style.sortWrapper}>\n {translate('sort_by')}\n {sortView}\n </div>\n ) : null}\n </div>\n </div>\n <div className={style.filterWrapper}>\n {options.length > 2 && searchResults.length > 0\n ? options.map((filter, index) => {\n const {name, value, selected} = filter;\n\n function handleChange() {\n onChange(value);\n handleSearchReset();\n }\n return (\n <div key={index} className={style.filterButtonWrapper}>\n <FilterButton selected={selected} filter={name} onClick={handleChange} />\n {value === 'ALL' ? <div className={style.divider} /> : null}\n </div>\n );\n })\n : null}\n </div>\n <div>\n {searchResults.length > 0 ? (\n <CardsGrid\n list={searchResults}\n loading={loading}\n customStyle={{justifyContent: 'left'}}\n />\n ) : (\n <div className={style.emptySearchResultContainer}>\n <div className={style.emptySearchResultTitle}>\n {translate('empty_search_result_title', {searchValue})}\n </div>\n <div className={style.emptySearchResultDescription}>\n {translate('empty_search_result_description')}\n </div>\n <div className={style.emptySearchResultClearSearch} onClick={handleSearchReset}>\n {translate('empty_search_result_clear_search')}\n </div>\n </div>\n )}\n </div>\n </>\n );\n};\n\nAllCourses.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nAllCourses.propTypes = {\n courses: PropTypes.shape(CardsGrid.propTypes),\n totalCourses: PropTypes.number,\n filters: PropTypes.shape({\n onChange: PropTypes.func,\n options: PropTypes.arrayOf(PropTypes.shape(SelectOptionPropTypes))\n }),\n sorting: PropTypes.shape(Select.propTypes)\n};\n\nexport default AllCourses;\n"],"mappings":";;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,YAAY,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACvC,MAAM;IAACC,QAAD;IAAWC,MAAX;IAAmBC;EAAnB,IAA8BJ,KAApC;EACA,MAAM;IAACK;EAAD,IAASJ,OAAf;EACA,MAAMK,gBAAgB,GAAG,mBAAI,gBAAJ,EAAsBD,IAAtB,CAAzB;EAEA,MAAME,WAAW,GAAG;IAClBC,WAAW,EAAE;MACXC,eAAe,EAAEP,QAAQ,GAAGI,gBAAH,GAAsB,SADpC;MAEXI,KAAK,EAAER,QAAQ,GAAG,SAAH,GAAe,SAFnB;MAGXS,UAAU,EAAE,6DAHD;MAIXC,KAAK,EAAE;IAJI,CADK;IAOlBC,KAAK,EAAEV,MAPW;IAQlBC,OARkB;IASlB,aAAa;EATK,CAApB;EAYA,oBAAO,6BAAC,mBAAD,EAAgBG,WAAhB,CAAP;AACD,CAlBD;;AAoBAR,YAAY,CAACe,YAAb,GAA4B;EAC1BT,IAAI,EAAEU,iBAAA,CAASC,iBAAT,CAA2BX,IADP;EAE1BY,SAAS,EAAEF,iBAAA,CAASC,iBAAT,CAA2BC;AA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.json
CHANGED
|
@@ -67,6 +67,7 @@
|
|
|
67
67
|
"media_stars_to_win": "Win {{count}} additional star in this chapter the first time you view a lesson!",
|
|
68
68
|
"modules": "Modules",
|
|
69
69
|
"modules_completed": "modules completed",
|
|
70
|
+
"modules_completed_mandatory": "mandatory modules completed",
|
|
70
71
|
"More": "More",
|
|
71
72
|
"More details": "More details",
|
|
72
73
|
"New media": "New lesson",
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/components",
|
|
3
|
-
"version": "11.32.
|
|
3
|
+
"version": "11.32.35-alpha.6+6a7c078a7",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -177,5 +177,5 @@
|
|
|
177
177
|
"last 2 versions",
|
|
178
178
|
"IE 11"
|
|
179
179
|
],
|
|
180
|
-
"gitHead": "
|
|
180
|
+
"gitHead": "6a7c078a7ea212c177f2d2c788e67ab0dcfcdc27"
|
|
181
181
|
}
|