@coorpacademy/components 11.32.43 → 11.32.44-alpha.55
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/button-link/index.d.ts.map +1 -1
- package/es/atom/button-link/index.js +12 -6
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/cta/index.js +2 -2
- package/es/atom/cta/index.js.map +1 -1
- package/es/atom/icon/index.d.ts +1 -0
- package/es/atom/icon/index.d.ts.map +1 -1
- package/es/atom/icon/index.js +8 -1
- package/es/atom/icon/index.js.map +1 -1
- package/es/atom/input-file-draggable/index.js +2 -2
- package/es/atom/input-file-draggable/index.js.map +1 -1
- package/es/atom/link/index.d.ts +2 -2
- package/es/atom/link/index.d.ts.map +1 -1
- package/es/atom/link/index.js +38 -46
- package/es/atom/link/index.js.map +1 -1
- package/es/molecule/banner/index.js +3 -3
- package/es/molecule/banner/index.js.map +1 -1
- package/es/molecule/certification-card/index.d.ts +4 -0
- package/es/molecule/certification-card/index.d.ts.map +1 -1
- package/es/molecule/certification-card/index.js +14 -10
- package/es/molecule/certification-card/index.js.map +1 -1
- package/es/molecule/cm-popin/types.d.ts +14 -2
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/draggable-list/index.d.ts +12 -0
- package/es/molecule/progress-wrapper/index.d.ts.map +1 -1
- package/es/molecule/progress-wrapper/index.js +21 -11
- package/es/molecule/progress-wrapper/index.js.map +1 -1
- package/es/organism/accordion/coorp-manager/part/index.js +2 -1
- package/es/organism/accordion/coorp-manager/part/index.js.map +1 -1
- package/es/organism/brand-learning-priorities/index.d.ts +12 -0
- package/es/organism/list-item/index.d.ts +16 -1
- package/es/organism/list-item/index.d.ts.map +1 -1
- package/es/organism/list-item/index.js +58 -9
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-item/style.css +25 -11
- package/es/organism/list-items/index.d.ts +12 -0
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/mooc-header/index.js +2 -3
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/sidebar/index.d.ts +28 -3
- package/es/organism/sidebar/index.d.ts.map +1 -1
- package/es/organism/sidebar/index.js +7 -3
- package/es/organism/sidebar/index.js.map +1 -1
- package/es/template/app-player/loading/index.d.ts +14 -2
- package/es/template/app-player/player/index.d.ts +28 -4
- package/es/template/app-player/player/slides/index.d.ts +14 -2
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +18 -6
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +16 -4
- package/es/template/app-player/popin-end/summary.d.ts +2 -2
- package/es/template/app-player/popin-header/index.d.ts +2 -2
- package/es/template/app-review/index.d.ts +14 -2
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +14 -2
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +14 -2
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +38 -2
- package/es/template/certification-detail/index.d.ts +1 -0
- package/es/template/certification-detail/index.d.ts.map +1 -1
- package/es/template/certification-detail/index.js +3 -1
- package/es/template/certification-detail/index.js.map +1 -1
- package/es/template/certifications/index.d.ts +6 -0
- package/es/template/certifications/index.d.ts.map +1 -1
- package/es/template/certifications/index.js +26 -12
- package/es/template/certifications/index.js.map +1 -1
- package/es/template/common/dashboard/index.d.ts +28 -4
- package/es/template/common/search-page/index.d.ts +14 -2
- package/es/template/external-course/index.d.ts +14 -2
- package/es/template/skill-detail/index.d.ts +1 -1
- package/es/template/skill-detail/index.d.ts.map +1 -1
- package/es/template/skill-detail/index.js +5 -5
- package/es/template/skill-detail/index.js.map +1 -1
- package/lib/atom/button-link/index.d.ts.map +1 -1
- package/lib/atom/button-link/index.js +12 -6
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/cta/index.js +2 -2
- package/lib/atom/cta/index.js.map +1 -1
- package/lib/atom/icon/index.d.ts +1 -0
- package/lib/atom/icon/index.d.ts.map +1 -1
- package/lib/atom/icon/index.js +12 -2
- package/lib/atom/icon/index.js.map +1 -1
- package/lib/atom/input-file-draggable/index.js.map +1 -1
- package/lib/atom/link/index.d.ts +2 -2
- package/lib/atom/link/index.d.ts.map +1 -1
- package/lib/atom/link/index.js +38 -47
- package/lib/atom/link/index.js.map +1 -1
- package/lib/molecule/banner/index.js.map +1 -1
- package/lib/molecule/certification-card/index.d.ts +4 -0
- package/lib/molecule/certification-card/index.d.ts.map +1 -1
- package/lib/molecule/certification-card/index.js +14 -10
- package/lib/molecule/certification-card/index.js.map +1 -1
- package/lib/molecule/cm-popin/types.d.ts +14 -2
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/draggable-list/index.d.ts +12 -0
- package/lib/molecule/progress-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/progress-wrapper/index.js +25 -12
- package/lib/molecule/progress-wrapper/index.js.map +1 -1
- package/lib/organism/accordion/coorp-manager/part/index.js +3 -1
- package/lib/organism/accordion/coorp-manager/part/index.js.map +1 -1
- package/lib/organism/brand-learning-priorities/index.d.ts +12 -0
- package/lib/organism/list-item/index.d.ts +16 -1
- package/lib/organism/list-item/index.d.ts.map +1 -1
- package/lib/organism/list-item/index.js +56 -5
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-item/style.css +25 -11
- package/lib/organism/list-items/index.d.ts +12 -0
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/mooc-header/index.js +2 -3
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/sidebar/index.d.ts +28 -3
- package/lib/organism/sidebar/index.d.ts.map +1 -1
- package/lib/organism/sidebar/index.js +7 -3
- package/lib/organism/sidebar/index.js.map +1 -1
- package/lib/template/app-player/loading/index.d.ts +14 -2
- package/lib/template/app-player/player/index.d.ts +28 -4
- package/lib/template/app-player/player/slides/index.d.ts +14 -2
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +18 -6
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +16 -4
- package/lib/template/app-player/popin-end/summary.d.ts +2 -2
- package/lib/template/app-player/popin-header/index.d.ts +2 -2
- package/lib/template/app-review/index.d.ts +14 -2
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +14 -2
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +14 -2
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +38 -2
- package/lib/template/certification-detail/index.d.ts +1 -0
- package/lib/template/certification-detail/index.d.ts.map +1 -1
- package/lib/template/certification-detail/index.js +3 -1
- package/lib/template/certification-detail/index.js.map +1 -1
- package/lib/template/certifications/index.d.ts +6 -0
- package/lib/template/certifications/index.d.ts.map +1 -1
- package/lib/template/certifications/index.js +28 -14
- package/lib/template/certifications/index.js.map +1 -1
- package/lib/template/common/dashboard/index.d.ts +28 -4
- package/lib/template/common/search-page/index.d.ts +14 -2
- package/lib/template/external-course/index.d.ts +14 -2
- package/lib/template/skill-detail/index.d.ts +1 -1
- package/lib/template/skill-detail/index.d.ts.map +1 -1
- package/lib/template/skill-detail/index.js +5 -5
- package/lib/template/skill-detail/index.js.map +1 -1
- package/locales/bs/global.json +10 -10
- package/locales/cs/global.json +10 -10
- package/locales/de/global.json +10 -10
- package/locales/en/global.json +1 -1
- package/locales/es/global.json +10 -10
- package/locales/et/global.json +10 -10
- package/locales/fi/global.json +10 -10
- package/locales/fr/global.json +10 -10
- package/locales/hr/global.json +10 -10
- package/locales/hu/global.json +10 -10
- package/locales/hy/global.json +10 -10
- package/locales/it/global.json +10 -10
- package/locales/ja/global.json +10 -10
- package/locales/ko/global.json +10 -10
- package/locales/nl/global.json +10 -10
- package/locales/pl/global.json +10 -10
- package/locales/pt/global.json +10 -10
- package/locales/ro/global.json +10 -10
- package/locales/ru/global.json +10 -10
- package/locales/sk/global.json +10 -10
- package/locales/sl/global.json +10 -10
- package/locales/sv/global.json +10 -10
- package/locales/tl/global.json +8 -8
- package/locales/tr/global.json +10 -10
- package/locales/uk/global.json +10 -10
- package/locales/vi/global.json +10 -10
- package/locales/zh/global.json +10 -10
- package/locales/zh_TW/global.json +10 -10
- package/package.json +2 -2
|
@@ -649,6 +649,7 @@ declare const propTypes: {
|
|
|
649
649
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
650
650
|
title: PropTypes.Validator<string>;
|
|
651
651
|
subtitle: PropTypes.Requireable<string>;
|
|
652
|
+
provider: PropTypes.Requireable<string>;
|
|
652
653
|
selected: PropTypes.Requireable<boolean>;
|
|
653
654
|
selectedColor: PropTypes.Requireable<string>;
|
|
654
655
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
@@ -701,6 +702,17 @@ declare const propTypes: {
|
|
|
701
702
|
'aria-label': PropTypes.Requireable<string>;
|
|
702
703
|
contentType: PropTypes.Requireable<string>;
|
|
703
704
|
id: PropTypes.Requireable<string>;
|
|
705
|
+
leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
706
|
+
iconName: PropTypes.Requireable<string>;
|
|
707
|
+
iconColor: PropTypes.Requireable<string>;
|
|
708
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
709
|
+
borderRadius: PropTypes.Requireable<string>;
|
|
710
|
+
preset: PropTypes.Requireable<string>;
|
|
711
|
+
gradientBackground: PropTypes.Requireable<boolean>;
|
|
712
|
+
size: PropTypes.Requireable<number>;
|
|
713
|
+
wrapperSize: PropTypes.Requireable<number>;
|
|
714
|
+
}>>;
|
|
715
|
+
editAsIcon: PropTypes.Requireable<boolean>;
|
|
704
716
|
}> | null | undefined)[]>;
|
|
705
717
|
type: PropTypes.Requireable<string>;
|
|
706
718
|
itemType: PropTypes.Requireable<string>;
|
|
@@ -798,11 +810,11 @@ declare const propTypes: {
|
|
|
798
810
|
'aria-label': PropTypes.Requireable<string>;
|
|
799
811
|
title: PropTypes.Requireable<string>;
|
|
800
812
|
target: PropTypes.Requireable<string>;
|
|
801
|
-
skinHover: PropTypes.Requireable<boolean>;
|
|
802
813
|
hoverColor: PropTypes.Requireable<string>;
|
|
814
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
803
815
|
download: PropTypes.Requireable<boolean>;
|
|
804
816
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
805
|
-
|
|
817
|
+
onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
|
|
806
818
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
807
819
|
useButtonTag: PropTypes.Requireable<boolean>;
|
|
808
820
|
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,QAAQ,GAAG,QAAQ,GAAG,QAAQ,CAAC;AAE3C,oBAAY,cAAc,GAAG;IAC3B,QAAQ,EAAE,QAAQ,CAAC;IACnB,MAAM,CAAC,EAAE,iBAAiB,CAAC;IAC3B,YAAY,CAAC,EAAE,MAAM,IAAI,CAAC;CAC3B,CAAC;AAEF,QAAA,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"prop-types.d.ts","sourceRoot":"","sources":["../../../src/template/app-review/prop-types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAEnC,OAAO,EAAC,iBAAiB,EAAC,MAAM,qBAAqB,CAAC;AAEtD,oBAAY,QAAQ,GAAG,QAAQ,GAAG,QAAQ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namespace BrandUpdate {
|
|
|
368
368
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
369
369
|
title: PropTypes.Validator<string>;
|
|
370
370
|
subtitle: PropTypes.Requireable<string>;
|
|
371
|
+
provider: PropTypes.Requireable<string>;
|
|
371
372
|
selected: PropTypes.Requireable<boolean>;
|
|
372
373
|
selectedColor: PropTypes.Requireable<string>;
|
|
373
374
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
@@ -420,6 +421,17 @@ declare namespace BrandUpdate {
|
|
|
420
421
|
'aria-label': PropTypes.Requireable<string>;
|
|
421
422
|
contentType: PropTypes.Requireable<string>;
|
|
422
423
|
id: PropTypes.Requireable<string>;
|
|
424
|
+
leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
425
|
+
iconName: PropTypes.Requireable<string>;
|
|
426
|
+
iconColor: PropTypes.Requireable<string>;
|
|
427
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
428
|
+
borderRadius: PropTypes.Requireable<string>;
|
|
429
|
+
preset: PropTypes.Requireable<string>;
|
|
430
|
+
gradientBackground: PropTypes.Requireable<boolean>;
|
|
431
|
+
size: PropTypes.Requireable<number>;
|
|
432
|
+
wrapperSize: PropTypes.Requireable<number>;
|
|
433
|
+
}>>;
|
|
434
|
+
editAsIcon: PropTypes.Requireable<boolean>;
|
|
423
435
|
}> | null | undefined)[]>;
|
|
424
436
|
type: PropTypes.Requireable<string>;
|
|
425
437
|
itemType: PropTypes.Requireable<string>;
|
|
@@ -804,6 +816,7 @@ declare namespace BrandUpdate {
|
|
|
804
816
|
}> | PropTypes.InferProps<{
|
|
805
817
|
title: PropTypes.Validator<string>;
|
|
806
818
|
subtitle: PropTypes.Requireable<string>;
|
|
819
|
+
provider: PropTypes.Requireable<string>;
|
|
807
820
|
selected: PropTypes.Requireable<boolean>;
|
|
808
821
|
selectedColor: PropTypes.Requireable<string>;
|
|
809
822
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
@@ -856,6 +869,17 @@ declare namespace BrandUpdate {
|
|
|
856
869
|
'aria-label': PropTypes.Requireable<string>;
|
|
857
870
|
contentType: PropTypes.Requireable<string>;
|
|
858
871
|
id: PropTypes.Requireable<string>;
|
|
872
|
+
leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
873
|
+
iconName: PropTypes.Requireable<string>;
|
|
874
|
+
iconColor: PropTypes.Requireable<string>;
|
|
875
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
876
|
+
borderRadius: PropTypes.Requireable<string>;
|
|
877
|
+
preset: PropTypes.Requireable<string>;
|
|
878
|
+
gradientBackground: PropTypes.Requireable<boolean>;
|
|
879
|
+
size: PropTypes.Requireable<number>;
|
|
880
|
+
wrapperSize: PropTypes.Requireable<number>;
|
|
881
|
+
}>>;
|
|
882
|
+
editAsIcon: PropTypes.Requireable<boolean>;
|
|
859
883
|
}> | PropTypes.InferProps<{
|
|
860
884
|
'aria-label': PropTypes.Requireable<string>;
|
|
861
885
|
id: PropTypes.Requireable<string>;
|
|
@@ -1022,6 +1046,7 @@ declare namespace BrandUpdate {
|
|
|
1022
1046
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
1023
1047
|
title: PropTypes.Validator<string>;
|
|
1024
1048
|
subtitle: PropTypes.Requireable<string>;
|
|
1049
|
+
provider: PropTypes.Requireable<string>;
|
|
1025
1050
|
selected: PropTypes.Requireable<boolean>;
|
|
1026
1051
|
selectedColor: PropTypes.Requireable<string>;
|
|
1027
1052
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
@@ -1074,6 +1099,17 @@ declare namespace BrandUpdate {
|
|
|
1074
1099
|
'aria-label': PropTypes.Requireable<string>;
|
|
1075
1100
|
contentType: PropTypes.Requireable<string>;
|
|
1076
1101
|
id: PropTypes.Requireable<string>;
|
|
1102
|
+
leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1103
|
+
iconName: PropTypes.Requireable<string>;
|
|
1104
|
+
iconColor: PropTypes.Requireable<string>;
|
|
1105
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
1106
|
+
borderRadius: PropTypes.Requireable<string>;
|
|
1107
|
+
preset: PropTypes.Requireable<string>;
|
|
1108
|
+
gradientBackground: PropTypes.Requireable<boolean>;
|
|
1109
|
+
size: PropTypes.Requireable<number>;
|
|
1110
|
+
wrapperSize: PropTypes.Requireable<number>;
|
|
1111
|
+
}>>;
|
|
1112
|
+
editAsIcon: PropTypes.Requireable<boolean>;
|
|
1077
1113
|
}> | null | undefined)[]>;
|
|
1078
1114
|
type: PropTypes.Requireable<string>;
|
|
1079
1115
|
itemType: PropTypes.Requireable<string>;
|
|
@@ -1171,11 +1207,11 @@ declare namespace BrandUpdate {
|
|
|
1171
1207
|
'aria-label': PropTypes.Requireable<string>;
|
|
1172
1208
|
title: PropTypes.Requireable<string>;
|
|
1173
1209
|
target: PropTypes.Requireable<string>;
|
|
1174
|
-
skinHover: PropTypes.Requireable<boolean>;
|
|
1175
1210
|
hoverColor: PropTypes.Requireable<string>;
|
|
1211
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
1176
1212
|
download: PropTypes.Requireable<boolean>;
|
|
1177
1213
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1178
|
-
|
|
1214
|
+
onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1179
1215
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1180
1216
|
useButtonTag: PropTypes.Requireable<boolean>;
|
|
1181
1217
|
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
@@ -27,6 +27,7 @@ declare namespace CertificationDetail {
|
|
|
27
27
|
}
|
|
28
28
|
namespace propTypes {
|
|
29
29
|
const title: PropTypes.Validator<string>;
|
|
30
|
+
const tag: PropTypes.Requireable<string>;
|
|
30
31
|
const certificationRef: PropTypes.Validator<string>;
|
|
31
32
|
const description: PropTypes.Validator<string>;
|
|
32
33
|
const logoUrl: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/certification-detail/index.js"],"names":[],"mappings":";AAgBA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/certification-detail/index.js"],"names":[],"mappings":";AAgBA,4EAyHC"}
|
|
@@ -49,6 +49,7 @@ const CertificationDetail = (props, context) => {
|
|
|
49
49
|
const {
|
|
50
50
|
certificationRef,
|
|
51
51
|
title,
|
|
52
|
+
tag,
|
|
52
53
|
description,
|
|
53
54
|
certificationCourses,
|
|
54
55
|
ongoingCoursesAvailable,
|
|
@@ -109,7 +110,7 @@ const CertificationDetail = (props, context) => {
|
|
|
109
110
|
className: _style.default.logo,
|
|
110
111
|
src: logoUrl
|
|
111
112
|
})), /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_tag.default, {
|
|
112
|
-
label:
|
|
113
|
+
label: tag
|
|
113
114
|
}), /*#__PURE__*/_react.default.createElement("div", {
|
|
114
115
|
className: _style.default.title
|
|
115
116
|
}, title), description ? /*#__PURE__*/_react.default.createElement(_react.default.Fragment, null, /*#__PURE__*/_react.default.createElement(Description, null), isDescriptionTruncated ? /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -155,6 +156,7 @@ CertificationDetail.contextTypes = {
|
|
|
155
156
|
};
|
|
156
157
|
CertificationDetail.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
157
158
|
title: _propTypes.default.string.isRequired,
|
|
159
|
+
tag: _propTypes.default.string,
|
|
158
160
|
certificationRef: _propTypes.default.string.isRequired,
|
|
159
161
|
description: _propTypes.default.string.isRequired,
|
|
160
162
|
logoUrl: _propTypes.default.string,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["CertificationDetail","props","context","certificationRef","title","description","certificationCourses","ongoingCoursesAvailable","filters","onBackClick","onContinueLearningClick","metrics","logoUrl","diplomaUrl","badgeUrl","descriptionRef","useRef","translate","progression","mandatoryModules","stars","totalModules","isDescriptionTruncated","setIsDescriptionTruncated","useState","showMore","setShowMore","handleShowMore","useCallback","useEffect","current","clientHeight","scrollHeight","Description","classnames","style","truncate","completedModules","useMemo","backgroundContainer","container","backButton","ctaContainer","logoContainer","logo","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, useEffect, useRef, useState, useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {compact, lowerCase, round, isNil} from 'lodash/fp';\nimport Markdown from 'markdown-to-jsx';\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 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 descriptionRef = useRef(null);\n const {translate} = context;\n const {progression, mandatoryModules, stars, totalModules} = metrics;\n\n const [isDescriptionTruncated, setIsDescriptionTruncated] = useState(false);\n const [showMore, setShowMore] = useState(false);\n\n const handleShowMore = useCallback(() => setShowMore(!showMore), [setShowMore, showMore]);\n\n useEffect(() => {\n if (descriptionRef.current) {\n const {clientHeight = 0, scrollHeight = 0} = descriptionRef.current;\n setIsDescriptionTruncated(scrollHeight > clientHeight);\n }\n }, [description]);\n\n const Description = useCallback(() => {\n return (\n <div\n ref={descriptionRef}\n className={classnames(style.description, !showMore && style.truncate)}\n >\n <Markdown>{description}</Markdown>\n </div>\n );\n }, [showMore, description]);\n\n const completedModules = useMemo(\n () => round((mandatoryModules * progression) / 100),\n [mandatoryModules, progression]\n );\n\n return (\n <div className={style.backgroundContainer}>\n <div className={style.container} data-name={certificationRef}>\n {!isNil(onBackClick) ? (\n <ButtonLinkIcon\n faIcon=\"arrow-left\"\n data-name=\"back-button\"\n aria-label={translate('back')}\n onClick={onBackClick}\n className={style.backButton}\n tooltipPlacement=\"right\"\n />\n ) : null}\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 {isDescriptionTruncated ? (\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\n content={certificationCourses}\n filters={filters}\n data-name=\"certification-courses\"\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.isRequired,\n logoUrl: PropTypes.string,\n metrics: PropTypes.shape({\n progression: PropTypes.number,\n stars: PropTypes.number,\n mandatoryModules: PropTypes.number,\n totalModules: 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;;AACA;;;;;;;;AAEA,MAAMA,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,OATI;IAUJC,OAVI;IAWJC,UAXI;IAYJC;EAZI,IAaFb,KAbJ;EAcA,MAAMc,cAAc,GAAG,IAAAC,aAAA,EAAO,IAAP,CAAvB;EACA,MAAM;IAACC;EAAD,IAAcf,OAApB;EACA,MAAM;IAACgB,WAAD;IAAcC,gBAAd;IAAgCC,KAAhC;IAAuCC;EAAvC,IAAuDV,OAA7D;EAEA,MAAM,CAACW,sBAAD,EAAyBC,yBAAzB,IAAsD,IAAAC,eAAA,EAAS,KAAT,CAA5D;EACA,MAAM,CAACC,QAAD,EAAWC,WAAX,IAA0B,IAAAF,eAAA,EAAS,KAAT,CAAhC;EAEA,MAAMG,cAAc,GAAG,IAAAC,kBAAA,EAAY,MAAMF,WAAW,CAAC,CAACD,QAAF,CAA7B,EAA0C,CAACC,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AfqB;EAmB9B1D,WAAW,EAAE+C,kBAAA,CAAUQ,IAnBO;EAoB9BtD,uBAAuB,EAAE8C,kBAAA,CAAUQ;AApBL,CAAhC;eAuBehE,mB"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["CertificationDetail","props","context","certificationRef","title","tag","description","certificationCourses","ongoingCoursesAvailable","filters","onBackClick","onContinueLearningClick","metrics","logoUrl","diplomaUrl","badgeUrl","descriptionRef","useRef","translate","progression","mandatoryModules","stars","totalModules","isDescriptionTruncated","setIsDescriptionTruncated","useState","showMore","setShowMore","handleShowMore","useCallback","useEffect","current","clientHeight","scrollHeight","Description","classnames","style","truncate","completedModules","useMemo","backgroundContainer","container","backButton","ctaContainer","logoContainer","logo","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, useEffect, useRef, useState, useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport classnames from 'classnames';\nimport {compact, lowerCase, round, isNil} from 'lodash/fp';\nimport Markdown from 'markdown-to-jsx';\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 CertificationDetail = (props, context) => {\n const {\n certificationRef,\n title,\n tag,\n description,\n certificationCourses,\n ongoingCoursesAvailable,\n filters,\n onBackClick,\n onContinueLearningClick,\n metrics,\n logoUrl,\n diplomaUrl,\n badgeUrl\n } = props;\n const descriptionRef = useRef(null);\n const {translate} = context;\n\n const {progression, mandatoryModules, stars, totalModules} = metrics;\n\n const [isDescriptionTruncated, setIsDescriptionTruncated] = useState(false);\n const [showMore, setShowMore] = useState(false);\n\n const handleShowMore = useCallback(() => setShowMore(!showMore), [setShowMore, showMore]);\n\n useEffect(() => {\n if (descriptionRef.current) {\n const {clientHeight = 0, scrollHeight = 0} = descriptionRef.current;\n setIsDescriptionTruncated(scrollHeight > clientHeight);\n }\n }, [description]);\n\n const Description = useCallback(() => {\n return (\n <div\n ref={descriptionRef}\n className={classnames(style.description, !showMore && style.truncate)}\n >\n <Markdown>{description}</Markdown>\n </div>\n );\n }, [showMore, description]);\n\n const completedModules = useMemo(\n () => round((mandatoryModules * progression) / 100),\n [mandatoryModules, progression]\n );\n\n return (\n <div className={style.backgroundContainer}>\n <div className={style.container} data-name={certificationRef}>\n {!isNil(onBackClick) ? (\n <ButtonLinkIcon\n faIcon=\"arrow-left\"\n data-name=\"back-button\"\n aria-label={translate('back')}\n onClick={onBackClick}\n className={style.backButton}\n tooltipPlacement=\"right\"\n />\n ) : null}\n <div className={style.ctaContainer}>\n <div className={style.logoContainer}>\n <img className={style.logo} src={logoUrl} />\n </div>\n <div>\n <Tag label={tag} />\n <div className={style.title}>{title}</div>\n {description ? (\n <>\n <Description />\n {isDescriptionTruncated ? (\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\n content={certificationCourses}\n filters={filters}\n data-name=\"certification-courses\"\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 tag: PropTypes.string,\n certificationRef: PropTypes.string.isRequired,\n description: PropTypes.string.isRequired,\n logoUrl: PropTypes.string,\n metrics: PropTypes.shape({\n progression: PropTypes.number,\n stars: PropTypes.number,\n mandatoryModules: PropTypes.number,\n totalModules: 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;;AACA;;;;;;;;AAEA,MAAMA,mBAAmB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAC9C,MAAM;IACJC,gBADI;IAEJC,KAFI;IAGJC,GAHI;IAIJC,WAJI;IAKJC,oBALI;IAMJC,uBANI;IAOJC,OAPI;IAQJC,WARI;IASJC,uBATI;IAUJC,OAVI;IAWJC,OAXI;IAYJC,UAZI;IAaJC;EAbI,IAcFd,KAdJ;EAeA,MAAMe,cAAc,GAAG,IAAAC,aAAA,EAAO,IAAP,CAAvB;EACA,MAAM;IAACC;EAAD,IAAchB,OAApB;EAEA,MAAM;IAACiB,WAAD;IAAcC,gBAAd;IAAgCC,KAAhC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EiD,kBAAA,CAAUK,IAdL;EAe9BvD,oBAAoB,EAAEkD,kBAAA,CAAUG,KAAV,CAAgBG,kBAAA,CAAUP,SAA1B,CAfQ;EAgB9B/C,OAAO,EAAEgD,kBAAA,CAAUG,KAAV,CAAgB;IACvBI,QAAQ,EAAEP,kBAAA,CAAUQ,IADG;IAEvBC,OAAO,EAAET,kBAAA,CAAUU,OAAV,CAAkBV,kBAAA,CAAUG,KAAV,CAAgBQ,6BAAhB,CAAlB;EAFc,CAAhB,CAhBqB;EAoB9B1D,WAAW,EAAE+C,kBAAA,CAAUQ,IApBO;EAqB9BtD,uBAAuB,EAAE8C,kBAAA,CAAUQ;AArBL,CAAhC;eAwBejE,mB"}
|
|
@@ -5,6 +5,9 @@ declare namespace Certifications {
|
|
|
5
5
|
const translate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
6
6
|
}
|
|
7
7
|
namespace propTypes {
|
|
8
|
+
const title: PropTypes.Requireable<string>;
|
|
9
|
+
const subtitle: PropTypes.Requireable<string>;
|
|
10
|
+
const tag: PropTypes.Requireable<string>;
|
|
8
11
|
const certifications: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
9
12
|
label: PropTypes.Requireable<string>;
|
|
10
13
|
goal: PropTypes.Requireable<PropTypes.InferProps<{
|
|
@@ -16,6 +19,9 @@ declare namespace Certifications {
|
|
|
16
19
|
progress: PropTypes.Requireable<number>;
|
|
17
20
|
imgUrl: PropTypes.Requireable<string>;
|
|
18
21
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
22
|
+
locales: PropTypes.Requireable<PropTypes.InferProps<{
|
|
23
|
+
conditionDescriptionProgress: PropTypes.Requireable<string>;
|
|
24
|
+
}>>;
|
|
19
25
|
}> | null | undefined)[]>;
|
|
20
26
|
const sorting: PropTypes.Requireable<PropTypes.InferProps<{
|
|
21
27
|
title: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/certifications/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/certifications/index.js"],"names":[],"mappings":";AAUA,uEAoEC"}
|
|
@@ -3,6 +3,8 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
5
|
|
|
6
|
+
var _map2 = _interopRequireDefault(require("lodash/fp/map"));
|
|
7
|
+
|
|
6
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
7
9
|
|
|
8
10
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -19,16 +21,19 @@ var _certificationCard = _interopRequireDefault(require("../../molecule/certific
|
|
|
19
21
|
|
|
20
22
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
21
23
|
|
|
22
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
|
-
|
|
24
24
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function (nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
25
25
|
|
|
26
26
|
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
27
27
|
|
|
28
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
29
|
+
|
|
28
30
|
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); }
|
|
29
31
|
|
|
30
32
|
const Certifications = (props, context) => {
|
|
31
33
|
const {
|
|
34
|
+
title,
|
|
35
|
+
subtitle,
|
|
36
|
+
tag,
|
|
32
37
|
certifications,
|
|
33
38
|
sorting
|
|
34
39
|
} = props;
|
|
@@ -50,8 +55,8 @@ const Certifications = (props, context) => {
|
|
|
50
55
|
className: _style.default.container,
|
|
51
56
|
"data-name": "Certifications"
|
|
52
57
|
}, /*#__PURE__*/_react.default.createElement(_title.default, {
|
|
53
|
-
title:
|
|
54
|
-
subtitle:
|
|
58
|
+
title: title,
|
|
59
|
+
subtitle: subtitle,
|
|
55
60
|
type: "form-group",
|
|
56
61
|
titleSize: "standard-light-weight",
|
|
57
62
|
subtitleSize: "standard-without-margin",
|
|
@@ -65,7 +70,7 @@ const Certifications = (props, context) => {
|
|
|
65
70
|
className: _style.default.sortSectionWrapper
|
|
66
71
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
67
72
|
className: _style.default.certificatesCount
|
|
68
|
-
}, `${certifications.length} ${
|
|
73
|
+
}, `${certifications.length} ${title}`), /*#__PURE__*/_react.default.createElement("div", {
|
|
69
74
|
className: _style.default.sortSection
|
|
70
75
|
}, /*#__PURE__*/_react.default.createElement(_inputSwitch.default, {
|
|
71
76
|
id: 'show-completed-courses-switch',
|
|
@@ -79,21 +84,27 @@ const Certifications = (props, context) => {
|
|
|
79
84
|
className: _style.default.sortWrapper
|
|
80
85
|
}, translate('sort_by'), sortView) : null)), /*#__PURE__*/_react.default.createElement("div", {
|
|
81
86
|
className: _style.default.certificateList
|
|
82
|
-
},
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
+
}, (0, _map2.default)(certification => {
|
|
88
|
+
const {
|
|
89
|
+
label,
|
|
90
|
+
progress
|
|
91
|
+
} = certification;
|
|
92
|
+
if (!showCompleted && progress === 100) return null;
|
|
87
93
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
88
|
-
key:
|
|
89
|
-
}, /*#__PURE__*/_react.default.createElement(_certificationCard.default, certification
|
|
90
|
-
|
|
94
|
+
key: label
|
|
95
|
+
}, /*#__PURE__*/_react.default.createElement(_certificationCard.default, _extends({}, certification, {
|
|
96
|
+
tag: tag
|
|
97
|
+
})));
|
|
98
|
+
}, certifications))));
|
|
91
99
|
};
|
|
92
100
|
|
|
93
101
|
Certifications.contextTypes = {
|
|
94
102
|
translate: _provider.default.childContextTypes.translate
|
|
95
103
|
};
|
|
96
104
|
Certifications.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
105
|
+
title: _propTypes.default.string,
|
|
106
|
+
subtitle: _propTypes.default.string,
|
|
107
|
+
tag: _propTypes.default.string,
|
|
97
108
|
certifications: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
98
109
|
label: _propTypes.default.string,
|
|
99
110
|
goal: _propTypes.default.shape({
|
|
@@ -104,7 +115,10 @@ Certifications.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
104
115
|
}),
|
|
105
116
|
progress: _propTypes.default.number,
|
|
106
117
|
imgUrl: _propTypes.default.string,
|
|
107
|
-
onClick: _propTypes.default.func
|
|
118
|
+
onClick: _propTypes.default.func,
|
|
119
|
+
locales: _propTypes.default.shape({
|
|
120
|
+
conditionDescriptionProgress: _propTypes.default.string
|
|
121
|
+
})
|
|
108
122
|
})),
|
|
109
123
|
sorting: _propTypes.default.shape(_select.default.propTypes)
|
|
110
124
|
} : {};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Certifications","props","context","certifications","sorting","translate","showCompleted","setShowCompleted","useState","sortView","undefined","handleShowCompletedToggle","useCallback","style","backgroudnContainer","container","iconName","iconColor","borderRadius","backgroundColor","sortSectionWrapper","certificatesCount","length","sortSection","sortWrapper","certificateList","
|
|
1
|
+
{"version":3,"file":"index.js","names":["Certifications","props","context","title","subtitle","tag","certifications","sorting","translate","showCompleted","setShowCompleted","useState","sortView","undefined","handleShowCompletedToggle","useCallback","style","backgroudnContainer","container","iconName","iconColor","borderRadius","backgroundColor","sortSectionWrapper","certificatesCount","length","sortSection","sortWrapper","certificateList","certification","label","progress","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","arrayOf","shape","goal","condition","nbDone","number","imgUrl","onClick","func","locales","conditionDescriptionProgress","Select"],"sources":["../../../src/template/certifications/index.js"],"sourcesContent":["import React, {useState, useCallback} from 'react';\nimport PropTypes from 'prop-types';\nimport {map} from 'lodash/fp';\nimport Provider from '../../atom/provider';\nimport Title from '../../atom/title';\nimport Select from '../../atom/select';\nimport InputSwitch from '../../atom/input-switch';\nimport CertificationCard from '../../molecule/certification-card';\nimport style from './style.css';\n\nconst Certifications = (props, context) => {\n const {title, subtitle, tag, certifications, sorting} = props;\n const {translate} = context;\n\n const [showCompleted, setShowCompleted] = useState(true);\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 const handleShowCompletedToggle = useCallback(() => {\n setShowCompleted(!showCompleted);\n }, [showCompleted, setShowCompleted]);\n\n return (\n <div className={style.backgroudnContainer}>\n <div className={style.container} data-name=\"Certifications\">\n <Title\n title={title}\n subtitle={subtitle}\n type=\"form-group\"\n titleSize=\"standard-light-weight\"\n subtitleSize=\"standard-without-margin\"\n icon={{\n iconName: 'wreath-laurel',\n iconColor: '#B87A00',\n borderRadius: '12px',\n backgroundColor: '#FFEECC'\n }}\n />\n <div className={style.sortSectionWrapper}>\n <div className={style.certificatesCount}>{`${certifications.length} ${title}`}</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 {sorting ? (\n <div className={style.sortWrapper}>\n {translate('sort_by')}\n {sortView}\n </div>\n ) : null}\n </div>\n </div>\n <div className={style.certificateList}>\n {map(certification => {\n const {label, progress} = certification;\n if (!showCompleted && progress === 100) return null;\n\n return (\n <div key={label}>\n <CertificationCard {...certification} tag={tag} />\n </div>\n );\n }, certifications)}\n </div>\n </div>\n </div>\n );\n};\n\nCertifications.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nCertifications.propTypes = {\n title: PropTypes.string,\n subtitle: PropTypes.string,\n tag: PropTypes.string,\n certifications: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n goal: PropTypes.shape({\n title: PropTypes.string,\n condition: PropTypes.shape({\n nbDone: PropTypes.number\n })\n }),\n progress: PropTypes.number,\n imgUrl: PropTypes.string,\n onClick: PropTypes.func,\n locales: PropTypes.shape({\n conditionDescriptionProgress: PropTypes.string\n })\n })\n ),\n sorting: PropTypes.shape(Select.propTypes)\n};\n\nexport default Certifications;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,cAAc,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACzC,MAAM;IAACC,KAAD;IAAQC,QAAR;IAAkBC,GAAlB;IAAuBC,cAAvB;IAAuCC;EAAvC,IAAkDN,KAAxD;EACA,MAAM;IAACO;EAAD,IAAcN,OAApB;EAEA,MAAM,CAACO,aAAD,EAAgBC,gBAAhB,IAAoC,IAAAC,eAAA,EAAS,IAAT,CAA1C;EAEA,MAAMC,QAAQ,GACZL,OAAO,KAAKM,SAAZ,gBACE;IAAK,aAAU;EAAf,gBACE,6BAAC,eAAD,eAAYN,OAAZ;IAAqB,cAAW;EAAhC,GADF,CADF,GAII,IALN;EAOA,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ropTypes.Requireable<(PropTypes.InferProps<{
|
|
142
142
|
title: PropTypes.Validator<string>;
|
|
143
143
|
subtitle: PropTypes.Requireable<string>;
|
|
144
|
+
provider: PropTypes.Requireable<string>;
|
|
144
145
|
selected: PropTypes.Requireable<boolean>;
|
|
145
146
|
selectedColor: PropTypes.Requireable<string>;
|
|
146
147
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
@@ -193,6 +194,17 @@ declare namespace Dashboard {
|
|
|
193
194
|
'aria-label': PropTypes.Requireable<string>;
|
|
194
195
|
contentType: PropTypes.Requireable<string>;
|
|
195
196
|
id: PropTypes.Requireable<string>;
|
|
197
|
+
leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
198
|
+
iconName: PropTypes.Requireable<string>;
|
|
199
|
+
iconColor: PropTypes.Requireable<string>;
|
|
200
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
201
|
+
borderRadius: PropTypes.Requireable<string>;
|
|
202
|
+
preset: PropTypes.Requireable<string>;
|
|
203
|
+
gradientBackground: PropTypes.Requireable<boolean>;
|
|
204
|
+
size: PropTypes.Requireable<number>;
|
|
205
|
+
wrapperSize: PropTypes.Requireable<number>;
|
|
206
|
+
}>>;
|
|
207
|
+
editAsIcon: PropTypes.Requireable<boolean>;
|
|
196
208
|
}> | null | undefined)[]>;
|
|
197
209
|
type: PropTypes.Requireable<string>;
|
|
198
210
|
itemType: PropTypes.Requireable<string>;
|
|
@@ -290,11 +302,11 @@ declare namespace Dashboard {
|
|
|
290
302
|
'aria-label': PropTypes.Requireable<string>;
|
|
291
303
|
title: PropTypes.Requireable<string>;
|
|
292
304
|
target: PropTypes.Requireable<string>;
|
|
293
|
-
skinHover: PropTypes.Requireable<boolean>;
|
|
294
305
|
hoverColor: PropTypes.Requireable<string>;
|
|
306
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
295
307
|
download: PropTypes.Requireable<boolean>;
|
|
296
308
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
297
|
-
|
|
309
|
+
onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
|
|
298
310
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
299
311
|
useButtonTag: PropTypes.Requireable<boolean>;
|
|
300
312
|
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
@@ -438,6 +450,7 @@ declare namespace Dashboard {
|
|
|
438
450
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
439
451
|
title: PropTypes.Validator<string>;
|
|
440
452
|
subtitle: PropTypes.Requireable<string>;
|
|
453
|
+
provider: PropTypes.Requireable<string>;
|
|
441
454
|
selected: PropTypes.Requireable<boolean>;
|
|
442
455
|
selectedColor: PropTypes.Requireable<string>;
|
|
443
456
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
@@ -490,6 +503,17 @@ declare namespace Dashboard {
|
|
|
490
503
|
'aria-label': PropTypes.Requireable<string>;
|
|
491
504
|
contentType: PropTypes.Requireable<string>;
|
|
492
505
|
id: PropTypes.Requireable<string>;
|
|
506
|
+
leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
507
|
+
iconName: PropTypes.Requireable<string>;
|
|
508
|
+
iconColor: PropTypes.Requireable<string>;
|
|
509
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
510
|
+
borderRadius: PropTypes.Requireable<string>;
|
|
511
|
+
preset: PropTypes.Requireable<string>;
|
|
512
|
+
gradientBackground: PropTypes.Requireable<boolean>;
|
|
513
|
+
size: PropTypes.Requireable<number>;
|
|
514
|
+
wrapperSize: PropTypes.Requireable<number>;
|
|
515
|
+
}>>;
|
|
516
|
+
editAsIcon: PropTypes.Requireable<boolean>;
|
|
493
517
|
}> | null | undefined)[]>;
|
|
494
518
|
type: PropTypes.Requireable<string>;
|
|
495
519
|
itemType: PropTypes.Requireable<string>;
|
|
@@ -587,11 +611,11 @@ declare namespace Dashboard {
|
|
|
587
611
|
'aria-label': PropTypes.Requireable<string>;
|
|
588
612
|
title: PropTypes.Requireable<string>;
|
|
589
613
|
target: PropTypes.Requireable<string>;
|
|
590
|
-
skinHover: PropTypes.Requireable<boolean>;
|
|
591
614
|
hoverColor: PropTypes.Requireable<string>;
|
|
615
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
592
616
|
download: PropTypes.Requireable<boolean>;
|
|
593
617
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
594
|
-
|
|
618
|
+
onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
|
|
595
619
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
596
620
|
useButtonTag: PropTypes.Requireable<boolean>;
|
|
597
621
|
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
@@ -322,6 +322,7 @@ declare namespace SearchPage {
|
|
|
322
322
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
323
323
|
title: PropTypes.Validator<string>;
|
|
324
324
|
subtitle: PropTypes.Requireable<string>;
|
|
325
|
+
provider: PropTypes.Requireable<string>;
|
|
325
326
|
selected: PropTypes.Requireable<boolean>;
|
|
326
327
|
selectedColor: PropTypes.Requireable<string>;
|
|
327
328
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
@@ -374,6 +375,17 @@ declare namespace SearchPage {
|
|
|
374
375
|
'aria-label': PropTypes.Requireable<string>;
|
|
375
376
|
contentType: PropTypes.Requireable<string>;
|
|
376
377
|
id: PropTypes.Requireable<string>;
|
|
378
|
+
leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
379
|
+
iconName: PropTypes.Requireable<string>;
|
|
380
|
+
iconColor: PropTypes.Requireable<string>;
|
|
381
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
382
|
+
borderRadius: PropTypes.Requireable<string>;
|
|
383
|
+
preset: PropTypes.Requireable<string>;
|
|
384
|
+
gradientBackground: PropTypes.Requireable<boolean>;
|
|
385
|
+
size: PropTypes.Requireable<number>;
|
|
386
|
+
wrapperSize: PropTypes.Requireable<number>;
|
|
387
|
+
}>>;
|
|
388
|
+
editAsIcon: PropTypes.Requireable<boolean>;
|
|
377
389
|
}> | null | undefined)[]>;
|
|
378
390
|
type: PropTypes.Requireable<string>;
|
|
379
391
|
itemType: PropTypes.Requireable<string>;
|
|
@@ -471,11 +483,11 @@ declare namespace SearchPage {
|
|
|
471
483
|
'aria-label': PropTypes.Requireable<string>;
|
|
472
484
|
title: PropTypes.Requireable<string>;
|
|
473
485
|
target: PropTypes.Requireable<string>;
|
|
474
|
-
skinHover: PropTypes.Requireable<boolean>;
|
|
475
486
|
hoverColor: PropTypes.Requireable<string>;
|
|
487
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
476
488
|
download: PropTypes.Requireable<boolean>;
|
|
477
489
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
478
|
-
|
|
490
|
+
onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
|
|
479
491
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
480
492
|
useButtonTag: PropTypes.Requireable<boolean>;
|
|
481
493
|
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
@@ -159,6 +159,7 @@ declare namespace ExternalCourse {
|
|
|
159
159
|
items: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
160
160
|
title: PropTypes.Validator<string>;
|
|
161
161
|
subtitle: PropTypes.Requireable<string>;
|
|
162
|
+
provider: PropTypes.Requireable<string>;
|
|
162
163
|
selected: PropTypes.Requireable<boolean>;
|
|
163
164
|
selectedColor: PropTypes.Requireable<string>;
|
|
164
165
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
@@ -211,6 +212,17 @@ declare namespace ExternalCourse {
|
|
|
211
212
|
'aria-label': PropTypes.Requireable<string>;
|
|
212
213
|
contentType: PropTypes.Requireable<string>;
|
|
213
214
|
id: PropTypes.Requireable<string>;
|
|
215
|
+
leftIcon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
216
|
+
iconName: PropTypes.Requireable<string>;
|
|
217
|
+
iconColor: PropTypes.Requireable<string>;
|
|
218
|
+
backgroundColor: PropTypes.Requireable<string>;
|
|
219
|
+
borderRadius: PropTypes.Requireable<string>;
|
|
220
|
+
preset: PropTypes.Requireable<string>;
|
|
221
|
+
gradientBackground: PropTypes.Requireable<boolean>;
|
|
222
|
+
size: PropTypes.Requireable<number>;
|
|
223
|
+
wrapperSize: PropTypes.Requireable<number>;
|
|
224
|
+
}>>;
|
|
225
|
+
editAsIcon: PropTypes.Requireable<boolean>;
|
|
214
226
|
}> | null | undefined)[]>;
|
|
215
227
|
type: PropTypes.Requireable<string>;
|
|
216
228
|
itemType: PropTypes.Requireable<string>;
|
|
@@ -308,11 +320,11 @@ declare namespace ExternalCourse {
|
|
|
308
320
|
'aria-label': PropTypes.Requireable<string>;
|
|
309
321
|
title: PropTypes.Requireable<string>;
|
|
310
322
|
target: PropTypes.Requireable<string>;
|
|
311
|
-
skinHover: PropTypes.Requireable<boolean>;
|
|
312
323
|
hoverColor: PropTypes.Requireable<string>;
|
|
324
|
+
hoverBackgroundColor: PropTypes.Requireable<string>;
|
|
313
325
|
download: PropTypes.Requireable<boolean>;
|
|
314
326
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
315
|
-
|
|
327
|
+
onMouseOver: PropTypes.Requireable<(...args: any[]) => any>;
|
|
316
328
|
onMouseLeave: PropTypes.Requireable<(...args: any[]) => any>;
|
|
317
329
|
useButtonTag: PropTypes.Requireable<boolean>;
|
|
318
330
|
style: PropTypes.Requireable<PropTypes.InferProps<{}>>;
|
|
@@ -67,12 +67,12 @@ declare namespace SkillDetail {
|
|
|
67
67
|
export const metrics: PropTypes.Requireable<PropTypes.InferProps<{
|
|
68
68
|
score: PropTypes.Requireable<number>;
|
|
69
69
|
questionsToReview: PropTypes.Requireable<number>;
|
|
70
|
+
totalContents: PropTypes.Requireable<number>;
|
|
70
71
|
}>>;
|
|
71
72
|
export const focused: PropTypes.Requireable<boolean>;
|
|
72
73
|
export const availableForReview: PropTypes.Requireable<boolean>;
|
|
73
74
|
const ongoingCoursesAvailable_1: PropTypes.Requireable<boolean>;
|
|
74
75
|
export { ongoingCoursesAvailable_1 as ongoingCoursesAvailable };
|
|
75
|
-
export const totalCourses: PropTypes.Requireable<number>;
|
|
76
76
|
export const skillIncludedCourses: PropTypes.Requireable<PropTypes.InferProps<{
|
|
77
77
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
78
78
|
customStyle: PropTypes.Requireable<{
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/skill-detail/index.js"],"names":[],"mappings":"AAeO,8EA+BN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYD,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/template/skill-detail/index.js"],"names":[],"mappings":"AAeO,8EA+BN;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAYD,oEAmJC"}
|
|
@@ -90,7 +90,6 @@ const SkillDetail = (props, context) => {
|
|
|
90
90
|
focused,
|
|
91
91
|
availableForReview,
|
|
92
92
|
ongoingCoursesAvailable,
|
|
93
|
-
totalCourses,
|
|
94
93
|
skillIncludedCourses,
|
|
95
94
|
filters,
|
|
96
95
|
sorting,
|
|
@@ -101,7 +100,8 @@ const SkillDetail = (props, context) => {
|
|
|
101
100
|
const descriptionRef = (0, _react.useRef)(null);
|
|
102
101
|
const {
|
|
103
102
|
score = 0,
|
|
104
|
-
questionsToReview
|
|
103
|
+
questionsToReview,
|
|
104
|
+
totalContents
|
|
105
105
|
} = metrics;
|
|
106
106
|
const {
|
|
107
107
|
translate
|
|
@@ -201,7 +201,7 @@ const SkillDetail = (props, context) => {
|
|
|
201
201
|
content: skillIncludedCourses,
|
|
202
202
|
filters: filters,
|
|
203
203
|
sorting: sorting,
|
|
204
|
-
totalContents:
|
|
204
|
+
totalContents: totalContents
|
|
205
205
|
})));
|
|
206
206
|
};
|
|
207
207
|
|
|
@@ -215,12 +215,12 @@ SkillDetail.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
215
215
|
description: _propTypes.default.string,
|
|
216
216
|
metrics: _propTypes.default.shape({
|
|
217
217
|
score: _propTypes.default.number,
|
|
218
|
-
questionsToReview: _propTypes.default.number
|
|
218
|
+
questionsToReview: _propTypes.default.number,
|
|
219
|
+
totalContents: _propTypes.default.number
|
|
219
220
|
}),
|
|
220
221
|
focused: _propTypes.default.bool,
|
|
221
222
|
availableForReview: _propTypes.default.bool,
|
|
222
223
|
ongoingCoursesAvailable: _propTypes.default.bool,
|
|
223
|
-
totalCourses: _propTypes.default.number,
|
|
224
224
|
skillIncludedCourses: _propTypes.default.shape(_cardsGrid.default.propTypes),
|
|
225
225
|
filters: _propTypes.default.shape({
|
|
226
226
|
onChange: _propTypes.default.func,
|