@coorpacademy/components 11.32.24-alpha.0 → 11.32.24
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 +1 -0
- package/es/atom/button-link/index.d.ts.map +1 -1
- package/es/atom/button-link/index.js +4 -2
- package/es/atom/button-link/index.js.map +1 -1
- package/es/atom/button-link/types.d.ts +2 -0
- package/es/atom/button-link/types.d.ts.map +1 -1
- package/es/atom/button-link/types.js +1 -0
- package/es/atom/button-link/types.js.map +1 -1
- package/es/atom/circular-progress-bar/index.d.ts.map +1 -1
- package/es/atom/circular-progress-bar/index.js +2 -9
- package/es/atom/circular-progress-bar/index.js.map +1 -1
- package/es/atom/input-doublestep/index.d.ts +1 -0
- package/es/atom/input-doublestep/index.d.ts.map +1 -1
- package/es/atom/input-doublestep/index.js +38 -13
- package/es/atom/input-doublestep/index.js.map +1 -1
- package/es/atom/input-doublestep/style.css +7 -67
- package/es/atom/select/index.js +1 -1
- package/es/atom/select/index.js.map +1 -1
- package/es/molecule/base-modal/index.d.ts +1 -0
- package/es/molecule/base-modal/index.d.ts.map +1 -1
- package/es/molecule/base-modal/index.js +8 -6
- package/es/molecule/base-modal/index.js.map +1 -1
- package/es/molecule/brand-create-form/index.d.ts.map +1 -1
- package/es/molecule/brand-create-form/index.js +9 -4
- package/es/molecule/brand-create-form/index.js.map +1 -1
- package/es/molecule/brand-download-box/index.d.ts.map +1 -1
- package/es/molecule/brand-download-box/index.js +11 -6
- package/es/molecule/brand-download-box/index.js.map +1 -1
- package/es/molecule/brand-download-box/style.css +6 -5
- package/es/molecule/brand-form-group/index.d.ts.map +1 -1
- package/es/molecule/brand-form-group/index.js +12 -1
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/cm-popin/style.css +1 -1
- package/es/molecule/cm-popin/types.d.ts +3 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/discipline-associated-skills/index.js +1 -1
- package/es/molecule/discipline-associated-skills/index.js.map +1 -1
- package/es/molecule/draggable-list/index.d.ts +1 -0
- package/es/molecule/expandible-actionable-table/index.d.ts +1 -0
- package/es/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/es/molecule/expandible-actionable-table/types.d.ts +1 -0
- package/es/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/es/molecule/learning-priority-modal/index.d.ts.map +1 -1
- package/es/molecule/learning-priority-modal/index.js +8 -15
- package/es/molecule/learning-priority-modal/index.js.map +1 -1
- package/es/molecule/learning-priority-modal/style.css +0 -1
- package/es/molecule/learning-priority-setup-item/index.d.ts.map +1 -1
- package/es/molecule/learning-priority-setup-item/index.js +1 -1
- package/es/molecule/learning-priority-setup-item/index.js.map +1 -1
- package/es/molecule/setup-section/index.d.ts.map +1 -1
- package/es/molecule/setup-section/index.js +3 -1
- package/es/molecule/setup-section/index.js.map +1 -1
- package/es/molecule/setup-section/style.css +2 -2
- package/es/molecule/skill-picker-modal/index.js +1 -1
- package/es/molecule/skill-picker-modal/index.js.map +1 -1
- package/es/organism/brand-form/index.d.ts.map +1 -1
- package/es/organism/brand-form/index.js +24 -15
- package/es/organism/brand-form/index.js.map +1 -1
- package/es/organism/brand-learning-priorities/index.d.ts +1 -21
- package/es/organism/brand-learning-priorities/index.d.ts.map +1 -1
- package/es/organism/brand-learning-priorities/index.js +1 -14
- package/es/organism/brand-learning-priorities/index.js.map +1 -1
- package/es/organism/brand-learning-priorities/style.css +2 -0
- package/es/organism/list-item/index.d.ts +3 -1
- package/es/organism/list-item/index.d.ts.map +1 -1
- package/es/organism/list-item/index.js +7 -5
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-items/index.d.ts +3 -0
- package/es/organism/setup-header/index.d.ts +4 -0
- package/es/organism/wizard-contents/index.d.ts +3 -0
- package/es/template/app-player/loading/index.d.ts +3 -0
- package/es/template/app-player/player/index.d.ts +6 -0
- package/es/template/app-player/player/slides/index.d.ts +3 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +3 -0
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +3 -0
- package/es/template/app-review/index.d.ts +3 -0
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +3 -0
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +3 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-create/index.d.ts +4 -0
- package/es/template/back-office/brand-create/index.d.ts.map +1 -1
- package/es/template/back-office/brand-list/index.d.ts +4 -0
- package/es/template/back-office/brand-list/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +14 -0
- package/es/template/back-office/dashboard-preview/index.d.ts +4 -0
- package/es/template/back-office/layout/index.d.ts +4 -0
- package/es/template/back-office/layout/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.d.ts +6 -0
- package/es/template/common/search-page/index.d.ts +3 -0
- package/es/template/external-course/index.d.ts +3 -0
- package/lib/atom/button-link/index.d.ts +1 -0
- package/lib/atom/button-link/index.d.ts.map +1 -1
- package/lib/atom/button-link/index.js +4 -2
- package/lib/atom/button-link/index.js.map +1 -1
- package/lib/atom/button-link/types.d.ts +2 -0
- package/lib/atom/button-link/types.d.ts.map +1 -1
- package/lib/atom/button-link/types.js +1 -0
- package/lib/atom/button-link/types.js.map +1 -1
- package/lib/atom/circular-progress-bar/index.d.ts.map +1 -1
- package/lib/atom/circular-progress-bar/index.js +1 -8
- package/lib/atom/circular-progress-bar/index.js.map +1 -1
- package/lib/atom/input-doublestep/index.d.ts +1 -0
- package/lib/atom/input-doublestep/index.d.ts.map +1 -1
- package/lib/atom/input-doublestep/index.js +39 -13
- package/lib/atom/input-doublestep/index.js.map +1 -1
- package/lib/atom/input-doublestep/style.css +7 -67
- package/lib/atom/select/index.js +1 -1
- package/lib/atom/select/index.js.map +1 -1
- package/lib/molecule/base-modal/index.d.ts +1 -0
- package/lib/molecule/base-modal/index.d.ts.map +1 -1
- package/lib/molecule/base-modal/index.js +8 -6
- package/lib/molecule/base-modal/index.js.map +1 -1
- package/lib/molecule/brand-create-form/index.d.ts.map +1 -1
- package/lib/molecule/brand-create-form/index.js +9 -4
- package/lib/molecule/brand-create-form/index.js.map +1 -1
- package/lib/molecule/brand-download-box/index.d.ts.map +1 -1
- package/lib/molecule/brand-download-box/index.js +11 -6
- package/lib/molecule/brand-download-box/index.js.map +1 -1
- package/lib/molecule/brand-download-box/style.css +6 -5
- package/lib/molecule/brand-form-group/index.d.ts.map +1 -1
- package/lib/molecule/brand-form-group/index.js +12 -1
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/cm-popin/style.css +1 -1
- package/lib/molecule/cm-popin/types.d.ts +3 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/discipline-associated-skills/index.js +1 -1
- package/lib/molecule/discipline-associated-skills/index.js.map +1 -1
- package/lib/molecule/draggable-list/index.d.ts +1 -0
- package/lib/molecule/expandible-actionable-table/index.d.ts +1 -0
- package/lib/molecule/expandible-actionable-table/index.d.ts.map +1 -1
- package/lib/molecule/expandible-actionable-table/types.d.ts +1 -0
- package/lib/molecule/expandible-actionable-table/types.d.ts.map +1 -1
- package/lib/molecule/learning-priority-modal/index.d.ts.map +1 -1
- package/lib/molecule/learning-priority-modal/index.js +9 -14
- package/lib/molecule/learning-priority-modal/index.js.map +1 -1
- package/lib/molecule/learning-priority-modal/style.css +0 -1
- package/lib/molecule/learning-priority-setup-item/index.d.ts.map +1 -1
- package/lib/molecule/learning-priority-setup-item/index.js +1 -1
- package/lib/molecule/learning-priority-setup-item/index.js.map +1 -1
- package/lib/molecule/setup-section/index.d.ts.map +1 -1
- package/lib/molecule/setup-section/index.js +4 -1
- package/lib/molecule/setup-section/index.js.map +1 -1
- package/lib/molecule/setup-section/style.css +2 -2
- package/lib/molecule/skill-picker-modal/index.js +1 -1
- package/lib/molecule/skill-picker-modal/index.js.map +1 -1
- package/lib/organism/brand-form/index.d.ts.map +1 -1
- package/lib/organism/brand-form/index.js +24 -15
- package/lib/organism/brand-form/index.js.map +1 -1
- package/lib/organism/brand-learning-priorities/index.d.ts +1 -21
- package/lib/organism/brand-learning-priorities/index.d.ts.map +1 -1
- package/lib/organism/brand-learning-priorities/index.js +3 -15
- package/lib/organism/brand-learning-priorities/index.js.map +1 -1
- package/lib/organism/brand-learning-priorities/style.css +2 -0
- package/lib/organism/list-item/index.d.ts +3 -1
- package/lib/organism/list-item/index.d.ts.map +1 -1
- package/lib/organism/list-item/index.js +7 -5
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-items/index.d.ts +3 -0
- package/lib/organism/setup-header/index.d.ts +4 -0
- package/lib/organism/wizard-contents/index.d.ts +3 -0
- package/lib/template/app-player/loading/index.d.ts +3 -0
- package/lib/template/app-player/player/index.d.ts +6 -0
- package/lib/template/app-player/player/slides/index.d.ts +3 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +3 -0
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +3 -0
- package/lib/template/app-review/index.d.ts +3 -0
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +3 -0
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +3 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-create/index.d.ts +4 -0
- package/lib/template/back-office/brand-create/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-list/index.d.ts +4 -0
- package/lib/template/back-office/brand-list/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +14 -0
- package/lib/template/back-office/dashboard-preview/index.d.ts +4 -0
- package/lib/template/back-office/layout/index.d.ts +4 -0
- package/lib/template/back-office/layout/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.d.ts +6 -0
- package/lib/template/common/search-page/index.d.ts +3 -0
- package/lib/template/external-course/index.d.ts +3 -0
- package/package.json +2 -2
|
@@ -31,7 +31,7 @@ function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj &&
|
|
|
31
31
|
|
|
32
32
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
33
|
|
|
34
|
-
const buildButtonSection = (onSubmit, submitValue, onReset, resetValue, tooltip, disabled, isModified, isPending,
|
|
34
|
+
const buildButtonSection = (onSubmit, submitValue, onReset, resetValue, tooltip, disabled, isModified, isPending, massiveBattleForm) => {
|
|
35
35
|
if (!onSubmit && !onReset) {
|
|
36
36
|
return null;
|
|
37
37
|
}
|
|
@@ -41,27 +41,36 @@ const buildButtonSection = (onSubmit, submitValue, onReset, resetValue, tooltip,
|
|
|
41
41
|
"data-tip": tooltip.title,
|
|
42
42
|
"data-for": "submitButton",
|
|
43
43
|
className: massiveBattleForm ? _style.default.massiveBattleButton : _style.default.saveButton
|
|
44
|
-
},
|
|
44
|
+
}, /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
|
|
45
45
|
type: "primary",
|
|
46
46
|
label: submitValue,
|
|
47
47
|
disabled: disabledSubmit,
|
|
48
48
|
"data-testid": "submit-button",
|
|
49
|
-
|
|
50
|
-
onClick: onSubmit
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
49
|
+
usage: "submit",
|
|
50
|
+
onClick: onSubmit,
|
|
51
|
+
icon: {
|
|
52
|
+
position: 'left',
|
|
53
|
+
faIcon: {
|
|
54
|
+
name: 'circle-check',
|
|
55
|
+
color: '#FFFFFF',
|
|
56
|
+
size: 16
|
|
57
|
+
}
|
|
58
|
+
}
|
|
55
59
|
})) : null;
|
|
56
|
-
const cancelBackground = {
|
|
57
|
-
backgroundColor: darkColor
|
|
58
|
-
};
|
|
59
60
|
const resetButton = onReset ? /*#__PURE__*/_react.default.createElement("div", {
|
|
60
61
|
className: _style.default.resetButton
|
|
61
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
62
|
+
}, /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
|
|
63
|
+
usage: "reset",
|
|
64
|
+
label: resetValue,
|
|
65
|
+
"data-testid": "reset-button",
|
|
66
|
+
onClick: onReset,
|
|
67
|
+
icon: {
|
|
68
|
+
position: 'left',
|
|
69
|
+
faIcon: {
|
|
70
|
+
name: 'trash',
|
|
71
|
+
size: 16
|
|
72
|
+
}
|
|
73
|
+
}
|
|
65
74
|
})) : null;
|
|
66
75
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
67
76
|
className: _style.default.buttons
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["buildButtonSection","onSubmit","submitValue","onReset","resetValue","tooltip","disabled","isModified","isPending","
|
|
1
|
+
{"version":3,"file":"index.js","names":["buildButtonSection","onSubmit","submitValue","onReset","resetValue","tooltip","disabled","isModified","isPending","massiveBattleForm","disabledSubmit","submitButton","title","style","massiveBattleButton","saveButton","position","faIcon","name","color","size","resetButton","buttons","BrandForm","props","context","groups","back","isLoading","theme","skin","darkColor","fields","type","backView","arrowBack","link","backDesc","desc","brandGroups","map","group","index","buttonSection","handleSubmit","useMemo","e","preventDefault","handleReset","loaderContainer","loader","form","contextTypes","Provider","childContextTypes","defaultProps","place","propTypes","PropTypes","arrayOf","shape","BrandFormGroup","isRequired","bool","func","Button","Link","children","href","string"],"sources":["../../../src/organism/brand-form/index.js"],"sourcesContent":["import React, {useMemo} from 'react';\nimport PropTypes from 'prop-types';\nimport {get} from 'lodash/fp';\nimport {NovaCompositionNavigationArrowLeft as ArrowLeft} from '@coorpacademy/nova-icons';\nimport BrandFormGroup from '../../molecule/brand-form-group';\nimport Provider from '../../atom/provider';\nimport Button from '../../atom/button';\nimport ButtonLink from '../../atom/button-link';\nimport Link from '../../atom/link';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nconst buildButtonSection = (\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n tooltip,\n disabled,\n isModified,\n isPending,\n massiveBattleForm\n) => {\n if (!onSubmit && !onReset) {\n return null;\n }\n\n const disabledSubmit = disabled || isPending || !isModified;\n const submitButton = onSubmit ? (\n <div\n data-tip={tooltip.title}\n data-for=\"submitButton\"\n className={massiveBattleForm ? style.massiveBattleButton : style.saveButton}\n >\n <ButtonLink\n type=\"primary\"\n label={submitValue}\n disabled={disabledSubmit}\n data-testid=\"submit-button\"\n usage=\"submit\"\n onClick={onSubmit}\n icon={{\n position: 'left',\n faIcon: {\n name: 'circle-check',\n color: '#FFFFFF',\n size: 16\n }\n }}\n />\n </div>\n ) : null;\n\n const resetButton = onReset ? (\n <div className={style.resetButton}>\n <ButtonLink\n usage=\"reset\"\n label={resetValue}\n data-testid=\"reset-button\"\n onClick={onReset}\n icon={{\n position: 'left',\n faIcon: {\n name: 'trash',\n size: 16\n }\n }}\n />\n </div>\n ) : null;\n\n return (\n <div className={style.buttons}>\n {submitButton}\n {resetButton}\n </div>\n );\n};\nconst BrandForm = (props, context) => {\n const {\n groups,\n disabled,\n isModified,\n isPending,\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n back,\n tooltip,\n isLoading,\n theme\n } = props;\n const {skin} = context;\n const darkColor = get('common.dark', skin);\n const massiveBattleForm = groups[0]?.fields?.[0]?.type === 'titleAndInput';\n const backView = back ? (\n <p className={style.back}>\n <ArrowLeft style={{color: darkColor}} className={style.arrowBack} />\n <Link href={back.link} className={style.backDesc}>\n {back.desc}\n </Link>\n </p>\n ) : null;\n\n const brandGroups = groups.map((group, index) => {\n return (\n <div className={style.group} key={index}>\n <BrandFormGroup {...group} />\n </div>\n );\n });\n\n const buttonSection = buildButtonSection(\n onSubmit,\n submitValue,\n onReset,\n resetValue,\n tooltip,\n disabled,\n isModified,\n isPending,\n darkColor,\n theme,\n massiveBattleForm\n );\n\n const handleSubmit = useMemo(\n () => e => {\n e.preventDefault();\n return onSubmit(e);\n },\n [onSubmit]\n );\n\n const handleReset = useMemo(\n () => e => {\n e.preventDefault();\n return onReset(e);\n },\n [onReset]\n );\n\n return (\n <div>\n {backView}\n {isLoading ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ) : (\n <form onSubmit={handleSubmit} onReset={handleReset} className={style.form}>\n {brandGroups}\n {buttonSection}\n </form>\n )}\n </div>\n );\n};\n\nBrandForm.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nBrandForm.defaultProps = {\n tooltip: {\n title: '',\n place: 'top'\n }\n};\n\nBrandForm.propTypes = {\n groups: PropTypes.arrayOf(PropTypes.shape(BrandFormGroup.propTypes)).isRequired,\n disabled: PropTypes.bool,\n isModified: PropTypes.bool,\n isPending: PropTypes.bool,\n onSubmit: PropTypes.func,\n submitValue: Button.propTypes.submitValue,\n onReset: PropTypes.func,\n resetValue: Button.propTypes.submitValue,\n back: PropTypes.shape({\n desc: Link.propTypes.children,\n link: Link.propTypes.href\n }),\n tooltip: PropTypes.shape({\n title: PropTypes.string,\n place: PropTypes.string\n }),\n isLoading: PropTypes.bool,\n theme: PropTypes.string\n};\n\nexport default BrandForm;\n"],"mappings":";;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;AAEA,MAAMA,kBAAkB,GAAG,CACzBC,QADyB,EAEzBC,WAFyB,EAGzBC,OAHyB,EAIzBC,UAJyB,EAKzBC,OALyB,EAMzBC,QANyB,EAOzBC,UAPyB,EAQzBC,SARyB,EASzBC,iBATyB,KAUtB;EACH,IAAI,CAACR,QAAD,IAAa,CAACE,OAAlB,EAA2B;IACzB,OAAO,IAAP;EACD;;EAED,MAAMO,cAAc,GAAGJ,QAAQ,IAAIE,SAAZ,IAAyB,CAACD,UAAjD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AI,EAAE8B,aAAA,CAAKT,SAAL,CAAeW;EAFD,CAAhB,CATc;EAapB/D,OAAO,EAAEqD,kBAAA,CAAUE,KAAV,CAAgB;IACvBhD,KAAK,EAAE8C,kBAAA,CAAUW,MADM;IAEvBb,KAAK,EAAEE,kBAAA,CAAUW;EAFM,CAAhB,CAbW;EAiBpBzC,SAAS,EAAE8B,kBAAA,CAAUK,IAjBD;EAkBpBlC,KAAK,EAAE6B,kBAAA,CAAUW;AAlBG,CAAtB;eAqBe9C,S"}
|
|
@@ -2,27 +2,6 @@ export default BrandLearningPriorities;
|
|
|
2
2
|
declare function BrandLearningPriorities(props: any, context: any): JSX.Element;
|
|
3
3
|
declare namespace BrandLearningPriorities {
|
|
4
4
|
namespace contextTypes {
|
|
5
|
-
const skin: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
|
-
common: PropTypes.Requireable<{
|
|
7
|
-
[x: string]: any;
|
|
8
|
-
}>;
|
|
9
|
-
images: PropTypes.Requireable<PropTypes.InferProps<{
|
|
10
|
-
'logo-mobile': PropTypes.Requireable<any>;
|
|
11
|
-
logo: PropTypes.Requireable<any>;
|
|
12
|
-
'logo-email': PropTypes.Requireable<any>;
|
|
13
|
-
login: PropTypes.Requireable<any>;
|
|
14
|
-
}>>;
|
|
15
|
-
icons: PropTypes.Requireable<{
|
|
16
|
-
[x: string]: any;
|
|
17
|
-
}>;
|
|
18
|
-
mod: PropTypes.Requireable<{
|
|
19
|
-
[x: string]: any;
|
|
20
|
-
}>;
|
|
21
|
-
courses: PropTypes.Requireable<any[]>;
|
|
22
|
-
texts: PropTypes.Requireable<{
|
|
23
|
-
[x: string]: any;
|
|
24
|
-
}>;
|
|
25
|
-
}>>;
|
|
26
5
|
const translate: PropTypes.Requireable<(...args: any[]) => any>;
|
|
27
6
|
}
|
|
28
7
|
namespace propTypes {
|
|
@@ -84,6 +63,7 @@ declare namespace BrandLearningPriorities {
|
|
|
84
63
|
title: PropTypes.Validator<string>;
|
|
85
64
|
subtitle: PropTypes.Requireable<string>;
|
|
86
65
|
selected: PropTypes.Requireable<boolean>;
|
|
66
|
+
selectedColor: PropTypes.Requireable<string>;
|
|
87
67
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
88
68
|
label: PropTypes.Requireable<string>;
|
|
89
69
|
type: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/brand-learning-priorities/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/brand-learning-priorities/index.js"],"names":[],"mappings":";AAUA,gFA2FC"}
|
|
@@ -3,14 +3,10 @@
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
5
|
|
|
6
|
-
var _get2 = _interopRequireDefault(require("lodash/fp/get"));
|
|
7
|
-
|
|
8
6
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
7
|
|
|
10
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
9
|
|
|
12
|
-
var _cssColorFunction = require("css-color-function");
|
|
13
|
-
|
|
14
10
|
var _provider = _interopRequireDefault(require("../../atom/provider"));
|
|
15
11
|
|
|
16
12
|
var _loader = _interopRequireDefault(require("../../atom/loader"));
|
|
@@ -25,12 +21,12 @@ var _learningPriorityModal = _interopRequireDefault(require("../../molecule/lear
|
|
|
25
21
|
|
|
26
22
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
27
23
|
|
|
24
|
+
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
25
|
+
|
|
28
26
|
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); }
|
|
29
27
|
|
|
30
28
|
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; }
|
|
31
29
|
|
|
32
|
-
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
33
|
-
|
|
34
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); }
|
|
35
31
|
|
|
36
32
|
const BrandLearningPriorities = (props, context) => {
|
|
@@ -49,10 +45,8 @@ const BrandLearningPriorities = (props, context) => {
|
|
|
49
45
|
const [itemList, setItemList] = (0, _react.useState)([...items]);
|
|
50
46
|
const [openModal, setOpenModal] = (0, _react.useState)(false);
|
|
51
47
|
const {
|
|
52
|
-
skin,
|
|
53
48
|
translate
|
|
54
49
|
} = context;
|
|
55
|
-
const primarySkinColor = (0, _get2.default)('common.primary', skin);
|
|
56
50
|
const selectedPriorities = (0, _react.useMemo)(() => items.map(priority => priority.priorityRef), [items]);
|
|
57
51
|
const handleDropItem = (0, _react.useCallback)((dragRef, dropRef) => {
|
|
58
52
|
const dragIndex = itemList.findIndex(item => item.priorityRef === dragRef);
|
|
@@ -100,14 +94,10 @@ const BrandLearningPriorities = (props, context) => {
|
|
|
100
94
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
101
95
|
className: _style.default.priorityCount
|
|
102
96
|
}, `${items.length} ${translate('items')}`), /*#__PURE__*/_react.default.createElement(_buttonLink.default, {
|
|
97
|
+
type: "primary",
|
|
103
98
|
customStyle: {
|
|
104
|
-
backgroundColor: primarySkinColor,
|
|
105
|
-
color: '#FFFFFF',
|
|
106
|
-
transition: 'background-color 0.15s ease-in-out, color 0.15s ease-in-out',
|
|
107
99
|
width: 'fit-content'
|
|
108
100
|
},
|
|
109
|
-
hoverBackgroundColor: (0, _cssColorFunction.convert)(`color(${primarySkinColor} a(0.07))`),
|
|
110
|
-
hoverColor: primarySkinColor,
|
|
111
101
|
onClick: handleOpenModal,
|
|
112
102
|
label: translate('add_learning_priority'),
|
|
113
103
|
"data-name": "add-learning-priority",
|
|
@@ -115,7 +105,6 @@ const BrandLearningPriorities = (props, context) => {
|
|
|
115
105
|
position: 'left',
|
|
116
106
|
faIcon: {
|
|
117
107
|
name: 'plus',
|
|
118
|
-
backgroundColor: primarySkinColor,
|
|
119
108
|
color: '#FFFFFF',
|
|
120
109
|
size: 16
|
|
121
110
|
}
|
|
@@ -128,7 +117,6 @@ const BrandLearningPriorities = (props, context) => {
|
|
|
128
117
|
};
|
|
129
118
|
|
|
130
119
|
BrandLearningPriorities.contextTypes = {
|
|
131
|
-
skin: _provider.default.childContextTypes.skin,
|
|
132
120
|
translate: _provider.default.childContextTypes.translate
|
|
133
121
|
};
|
|
134
122
|
BrandLearningPriorities.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["BrandLearningPriorities","props","context","content","priorities","filters","isLoading","onAdd","items","onDrop","itemType","itemList","setItemList","useState","openModal","setOpenModal","
|
|
1
|
+
{"version":3,"file":"index.js","names":["BrandLearningPriorities","props","context","content","priorities","filters","isLoading","onAdd","items","onDrop","itemType","itemList","setItemList","useState","openModal","setOpenModal","translate","selectedPriorities","useMemo","map","priority","priorityRef","handleDropItem","useCallback","dragRef","dropRef","dragIndex","findIndex","item","dropIndex","newItems","dragItem","splice","type","ref","Loading","style","loaderContainer","loader","useEffect","handleOpenModal","handleCloseModal","container","LPtitle","LPdescription","ctaWrapper","priorityCount","length","width","position","faIcon","name","color","size","contextTypes","Provider","childContextTypes","propTypes","PropTypes","shape","DraggableList","arrayOf","string","title","courses","number","SelectOptionPropTypes","count","bool","func"],"sources":["../../../src/organism/brand-learning-priorities/index.js"],"sourcesContent":["import React, {useState, useCallback, useMemo, useEffect} from 'react';\nimport PropTypes from 'prop-types';\nimport Provider from '../../atom/provider';\nimport Loader from '../../atom/loader';\nimport {SelectOptionPropTypes} from '../../atom/select';\nimport DraggableList from '../../molecule/draggable-list';\nimport ButtonLink from '../../atom/button-link';\nimport LearningPriorityModal from '../../molecule/learning-priority-modal';\nimport style from './style.css';\n\nconst BrandLearningPriorities = (props, context) => {\n const {content, priorities, filters, isLoading, onAdd} = props;\n const {items, onDrop, itemType} = content;\n const [itemList, setItemList] = useState([...items]);\n const [openModal, setOpenModal] = useState(false);\n const {translate} = context;\n\n const selectedPriorities = useMemo(() => items.map(priority => priority.priorityRef), [items]);\n\n const handleDropItem = useCallback(\n (dragRef, dropRef) => {\n const dragIndex = itemList.findIndex(item => item.priorityRef === dragRef);\n const dropIndex = itemList.findIndex(item => item.priorityRef === dropRef);\n\n if (dragIndex === dropIndex) return;\n\n const newItems = [...itemList];\n const [dragItem] = newItems.splice(dragIndex, 1);\n newItems.splice(dropIndex, 0, dragItem);\n\n setItemList(newItems);\n onDrop(\n newItems.map(item => {\n return {type: item.type, ref: item.priorityRef};\n })\n );\n },\n [itemList, setItemList, onDrop]\n );\n\n const Loading = useCallback(\n () => (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ),\n []\n );\n\n useEffect(() => {\n setItemList(items);\n }, [items]);\n\n const handleOpenModal = useCallback(() => setOpenModal(true), [setOpenModal]);\n const handleCloseModal = useCallback(() => setOpenModal(false), [setOpenModal]);\n return (\n <div className={style.container}>\n <LearningPriorityModal\n isLoading={isLoading}\n isOpen={openModal}\n onCancel={handleCloseModal}\n onClose={handleCloseModal}\n onAdd={onAdd}\n priorities={priorities}\n filters={filters}\n preselected={selectedPriorities}\n />\n <div className={style.LPtitle}>{translate('learning_priorities')}</div>\n <div className={style.LPdescription}>\n {translate('learning_priorities_brand_description')}\n </div>\n\n {isLoading ? (\n <Loading />\n ) : (\n <>\n <div className={style.ctaWrapper}>\n <div className={style.priorityCount}>{`${items.length} ${translate('items')}`}</div>\n <ButtonLink\n type=\"primary\"\n customStyle={{\n width: 'fit-content'\n }}\n onClick={handleOpenModal}\n label={translate('add_learning_priority')}\n data-name=\"add-learning-priority\"\n icon={{\n position: 'left',\n faIcon: {\n name: 'plus',\n color: '#FFFFFF',\n size: 16\n }\n }}\n />\n </div>\n <DraggableList itemType={itemType} items={itemList} onDrop={handleDropItem} />\n </>\n )}\n </div>\n );\n};\n\nBrandLearningPriorities.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nBrandLearningPriorities.propTypes = {\n content: PropTypes.shape(DraggableList.propTypes),\n priorities: PropTypes.arrayOf(\n PropTypes.shape({\n ref: PropTypes.string,\n title: PropTypes.string,\n courses: PropTypes.number,\n type: PropTypes.string\n })\n ),\n filters: PropTypes.arrayOf(\n PropTypes.shape({\n ...SelectOptionPropTypes,\n count: PropTypes.number\n })\n ),\n isLoading: PropTypes.bool,\n onAdd: PropTypes.func\n};\n\nexport default BrandLearningPriorities;\n"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,uBAAuB,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EAClD,MAAM;IAACC,OAAD;IAAUC,UAAV;IAAsBC,OAAtB;IAA+BC,SAA/B;IAA0CC;EAA1C,IAAmDN,KAAzD;EACA,MAAM;IAACO,KAAD;IAAQC,MAAR;IAAgBC;EAAh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
|
|
2
|
-
declare function ListItem({ buttonLink, secondButtonLink, bulletPointMenuButton, tags, title, selected, subtitle, dataColumns, order, "aria-label": ariaLabel, disabled, contentType, isBulkStyle, isOverflowHidden, onClick }: {
|
|
2
|
+
declare function ListItem({ buttonLink, secondButtonLink, bulletPointMenuButton, tags, title, selected, selectedColor, subtitle, dataColumns, order, "aria-label": ariaLabel, disabled, contentType, isBulkStyle, isOverflowHidden, onClick }: {
|
|
3
3
|
buttonLink: any;
|
|
4
4
|
secondButtonLink: any;
|
|
5
5
|
bulletPointMenuButton: any;
|
|
6
6
|
tags: any;
|
|
7
7
|
title: any;
|
|
8
8
|
selected: any;
|
|
9
|
+
selectedColor: any;
|
|
9
10
|
subtitle: any;
|
|
10
11
|
dataColumns: any;
|
|
11
12
|
order: any;
|
|
@@ -45,6 +46,7 @@ declare namespace ListItem {
|
|
|
45
46
|
title: PropTypes.Validator<string>;
|
|
46
47
|
subtitle: PropTypes.Requireable<string>;
|
|
47
48
|
selected: PropTypes.Requireable<boolean>;
|
|
49
|
+
selectedColor: PropTypes.Requireable<string>;
|
|
48
50
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
49
51
|
label: PropTypes.Requireable<string>;
|
|
50
52
|
type: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAaA
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/list-item/index.js"],"names":[],"mappings":";AAaA;;;;;;;;;;;;;;;;;8BAwGC"}
|
|
@@ -42,6 +42,7 @@ const ListItem = ({
|
|
|
42
42
|
tags,
|
|
43
43
|
title,
|
|
44
44
|
selected,
|
|
45
|
+
selectedColor,
|
|
45
46
|
subtitle,
|
|
46
47
|
dataColumns,
|
|
47
48
|
order,
|
|
@@ -55,7 +56,7 @@ const ListItem = ({
|
|
|
55
56
|
const {
|
|
56
57
|
skin
|
|
57
58
|
} = context;
|
|
58
|
-
const
|
|
59
|
+
const primarySelectedColor = selectedColor || (0, _get2.default)('common.primary', skin);
|
|
59
60
|
|
|
60
61
|
const mapUncapped = _map2.default.convert({
|
|
61
62
|
cap: false
|
|
@@ -63,11 +64,11 @@ const ListItem = ({
|
|
|
63
64
|
|
|
64
65
|
let isPublished = false;
|
|
65
66
|
const selectedStyle = selected ? {
|
|
66
|
-
backgroundColor: (0, _cssColorFunction.convert)(`color(${
|
|
67
|
+
backgroundColor: (0, _cssColorFunction.convert)(`color(${primarySelectedColor} a(0.07))`)
|
|
67
68
|
} : {};
|
|
68
69
|
const tagSelectedStyle = selected ? {
|
|
69
|
-
backgroundColor: (0, _cssColorFunction.convert)(`color(${
|
|
70
|
-
color:
|
|
70
|
+
backgroundColor: (0, _cssColorFunction.convert)(`color(${primarySelectedColor} a(0.15))`),
|
|
71
|
+
color: primarySelectedColor
|
|
71
72
|
} : {};
|
|
72
73
|
const tagsView = mapUncapped((tag, index) => {
|
|
73
74
|
isPublished = tag.type === 'success';
|
|
@@ -103,7 +104,7 @@ const ListItem = ({
|
|
|
103
104
|
className: _style.default.settings
|
|
104
105
|
}, tagsView, selected ? /*#__PURE__*/_react.default.createElement(_icon.default, {
|
|
105
106
|
iconName: "circle-check",
|
|
106
|
-
iconColor:
|
|
107
|
+
iconColor: primarySelectedColor,
|
|
107
108
|
backgroundColor: '#ffffff',
|
|
108
109
|
size: {
|
|
109
110
|
faSize: 16,
|
|
@@ -120,6 +121,7 @@ ListItem.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
120
121
|
title: _propTypes.default.string.isRequired,
|
|
121
122
|
subtitle: _propTypes.default.string,
|
|
122
123
|
selected: _propTypes.default.bool,
|
|
124
|
+
selectedColor: _propTypes.default.string,
|
|
123
125
|
dataColumns: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
124
126
|
label: _propTypes.default.string,
|
|
125
127
|
type: _propTypes.default.oneOf(['success', 'failure', 'warning', 'progress', 'default']),
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["ListItem","buttonLink","secondButtonLink","bulletPointMenuButton","tags","title","selected","subtitle","dataColumns","order","ariaLabel","disabled","contentType","isBulkStyle","isOverflowHidden","onClick","context","skin","primarySkinColor","mapUncapped","convert","cap","isPublished","selectedStyle","backgroundColor","tagSelectedStyle","color","tagsView","tag","index","type","style","dataColumnsView","dataColumn","className","label","orderView","undefined","classnames","wrapper","gridLayout","withSubtitle","cursorPointer","dataColumnsWrapper","hiddenOverflowX","settings","faSize","wrapperSize","contextTypes","Provider","childContextTypes","translate","propTypes","PropTypes","string","isRequired","bool","arrayOf","shape","oneOf","dataName","icon","position","func","buttonAriaLabel","menuAriaLabel","buttons","number","id"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty, map, noop, get} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport classnames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport Icon from '../../atom/icon';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst ListItem = (\n {\n buttonLink,\n secondButtonLink,\n bulletPointMenuButton,\n tags,\n title,\n selected,\n subtitle,\n dataColumns,\n order,\n 'aria-label': ariaLabel,\n disabled = false,\n contentType,\n isBulkStyle = false,\n isOverflowHidden = false,\n onClick = noop\n },\n context\n) => {\n const {skin} = context;\n const primarySkinColor = get('common.primary', skin);\n const mapUncapped = map.convert({cap: false});\n let isPublished = false;\n\n const selectedStyle = selected\n ? {\n backgroundColor: convert(`color(${primarySkinColor} a(0.07))`)\n }\n : {};\n\n const tagSelectedStyle = selected\n ? {\n backgroundColor: convert(`color(${primarySkinColor} a(0.15))`),\n color: primarySkinColor\n }\n : {};\n\n const tagsView = mapUncapped((tag, index) => {\n isPublished = tag.type === 'success';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} customStyle={tagSelectedStyle} />\n </div>\n );\n })(tags);\n\n const dataColumnsView = mapUncapped((dataColumn, index) => {\n return (\n <div key={index} className={style[dataColumn.className]}>\n {dataColumn.type ? <Tag {...dataColumn} /> : dataColumn.label}\n </div>\n );\n })(dataColumns);\n\n const orderView =\n order !== null && order !== undefined ? (\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n ) : null;\n\n return (\n <div\n className={classnames(\n style.wrapper,\n isBulkStyle && style.gridLayout,\n subtitle && style.withSubtitle,\n disabled && style.disabled,\n onClick !== noop && !disabled && style.cursorPointer\n )}\n onClick={!disabled ? onClick : undefined}\n style={selectedStyle}\n >\n <div\n className={classnames(style.dataColumnsWrapper, isOverflowHidden && style.hiddenOverflowX)}\n >\n {isPublished && contentType === 'certification' ? orderView : null}\n <div className={style.title} title={title}>\n {title}\n {subtitle ? <div className={style.subtitle}>{subtitle}</div> : null}\n </div>\n {dataColumnsView}\n </div>\n\n <div className={style.settings}>\n {tagsView}\n {selected ? (\n <Icon\n iconName=\"circle-check\"\n iconColor={primarySkinColor}\n backgroundColor={'#ffffff'}\n size={{faSize: 16, wrapperSize: 16}}\n />\n ) : null}\n {buttonLink ? <ButtonLink {...buttonLink} /> : null}\n {secondButtonLink ? <ButtonLink {...secondButtonLink} /> : null}\n {!isEmpty(bulletPointMenuButton) ? (\n <BulletPointMenuButton {...bulletPointMenuButton} />\n ) : null}\n </div>\n </div>\n );\n};\n\nListItem.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nListItem.propTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n selected: PropTypes.bool,\n dataColumns: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default']),\n className: PropTypes.oneOf(['cell', 'title'])\n })\n ),\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n secondButtonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n bulletPointMenuButton: PropTypes.shape({\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n 'data-name': PropTypes.string,\n label: PropTypes.string,\n type: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n onClick: PropTypes.func\n }),\n tags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default'])\n })\n ),\n disabled: PropTypes.bool,\n onClick: PropTypes.func,\n isBulkStyle: PropTypes.bool,\n isOverflowHidden: PropTypes.bool,\n order: PropTypes.number,\n 'aria-label': PropTypes.string,\n contentType: PropTypes.string,\n id: PropTypes.string\n};\n\nexport default ListItem;\n"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;AAEA,MAAMA,QAAQ,GAAG,CACf;EACEC,UADF;EAEEC,gBAFF;EAGEC,qBAHF;EAIEC,IAJF;EAKEC,KALF;EAMEC,QANF;EAOEC,QAPF;EAQEC,WARF;EASEC,KATF;EAUE,cAAcC,SAVhB;EAWEC,QAAQ,GAAG,KAXb;EAYEC,WAZF;EAaEC,WAAW,GAAG,KAbhB;EAcEC,gBAAgB,GAAG,KAdrB;EAeEC,OAAO;AAfT,CADe,EAkBfC,OAlBe,KAmBZ;EACH,MAAM;IAACC;EAAD,IAASD,OAAf;EACA,MAAME,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,IArDA;EAsDnBlD,WAAW,EAAEwC,kBAAA,CAAUG,IAtDJ;EAuDnB1C,gBAAgB,EAAEuC,kBAAA,CAAUG,IAvDT;EAwDnB/C,KAAK,EAAE4C,kBAAA,CAAUc,MAxDE;EAyDnB,cAAcd,kBAAA,CAAUC,MAzDL;EA0DnB1C,WAAW,EAAEyC,kBAAA,CAAUC,MA1DJ;EA2DnBc,EAAE,EAAEf,kBAAA,CAAUC;AA3DK,CAArB;eA8DetD,Q"}
|
|
1
|
+
{"version":3,"file":"index.js","names":["ListItem","buttonLink","secondButtonLink","bulletPointMenuButton","tags","title","selected","selectedColor","subtitle","dataColumns","order","ariaLabel","disabled","contentType","isBulkStyle","isOverflowHidden","onClick","context","skin","primarySelectedColor","mapUncapped","convert","cap","isPublished","selectedStyle","backgroundColor","tagSelectedStyle","color","tagsView","tag","index","type","style","dataColumnsView","dataColumn","className","label","orderView","undefined","classnames","wrapper","gridLayout","withSubtitle","cursorPointer","dataColumnsWrapper","hiddenOverflowX","settings","faSize","wrapperSize","contextTypes","Provider","childContextTypes","translate","propTypes","PropTypes","string","isRequired","bool","arrayOf","shape","oneOf","dataName","icon","position","func","buttonAriaLabel","menuAriaLabel","buttons","number","id"],"sources":["../../../src/organism/list-item/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty, map, noop, get} from 'lodash/fp';\nimport {convert} from 'css-color-function';\nimport classnames from 'classnames';\nimport Provider from '../../atom/provider';\nimport Tag from '../../atom/tag';\nimport Icon from '../../atom/icon';\nimport ButtonLink from '../../atom/button-link';\nimport BulletPointMenuButton from '../../molecule/bullet-point-menu-button';\n// eslint-disable-next-line css-modules/no-unused-class\nimport style from './style.css';\n\nconst ListItem = (\n {\n buttonLink,\n secondButtonLink,\n bulletPointMenuButton,\n tags,\n title,\n selected,\n selectedColor,\n subtitle,\n dataColumns,\n order,\n 'aria-label': ariaLabel,\n disabled = false,\n contentType,\n isBulkStyle = false,\n isOverflowHidden = false,\n onClick = noop\n },\n context\n) => {\n const {skin} = context;\n const primarySelectedColor = selectedColor || get('common.primary', skin);\n const mapUncapped = map.convert({cap: false});\n let isPublished = false;\n\n const selectedStyle = selected\n ? {\n backgroundColor: convert(`color(${primarySelectedColor} a(0.07))`)\n }\n : {};\n\n const tagSelectedStyle = selected\n ? {\n backgroundColor: convert(`color(${primarySelectedColor} a(0.15))`),\n color: primarySelectedColor\n }\n : {};\n\n const tagsView = mapUncapped((tag, index) => {\n isPublished = tag.type === 'success';\n return (\n <div key={index} className={style.tag}>\n <Tag {...tag} customStyle={tagSelectedStyle} />\n </div>\n );\n })(tags);\n\n const dataColumnsView = mapUncapped((dataColumn, index) => {\n return (\n <div key={index} className={style[dataColumn.className]}>\n {dataColumn.type ? <Tag {...dataColumn} /> : dataColumn.label}\n </div>\n );\n })(dataColumns);\n\n const orderView =\n order !== null && order !== undefined ? (\n <div className={style.order} aria-label={ariaLabel}>\n {order + 1}\n </div>\n ) : null;\n\n return (\n <div\n className={classnames(\n style.wrapper,\n isBulkStyle && style.gridLayout,\n subtitle && style.withSubtitle,\n disabled && style.disabled,\n onClick !== noop && !disabled && style.cursorPointer\n )}\n onClick={!disabled ? onClick : undefined}\n style={selectedStyle}\n >\n <div\n className={classnames(style.dataColumnsWrapper, isOverflowHidden && style.hiddenOverflowX)}\n >\n {isPublished && contentType === 'certification' ? orderView : null}\n <div className={style.title} title={title}>\n {title}\n {subtitle ? <div className={style.subtitle}>{subtitle}</div> : null}\n </div>\n {dataColumnsView}\n </div>\n\n <div className={style.settings}>\n {tagsView}\n {selected ? (\n <Icon\n iconName=\"circle-check\"\n iconColor={primarySelectedColor}\n backgroundColor={'#ffffff'}\n size={{faSize: 16, wrapperSize: 16}}\n />\n ) : null}\n {buttonLink ? <ButtonLink {...buttonLink} /> : null}\n {secondButtonLink ? <ButtonLink {...secondButtonLink} /> : null}\n {!isEmpty(bulletPointMenuButton) ? (\n <BulletPointMenuButton {...bulletPointMenuButton} />\n ) : null}\n </div>\n </div>\n );\n};\n\nListItem.contextTypes = {\n skin: Provider.childContextTypes.skin,\n translate: Provider.childContextTypes.translate\n};\n\nListItem.propTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n selected: PropTypes.bool,\n selectedColor: PropTypes.string,\n dataColumns: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default']),\n className: PropTypes.oneOf(['cell', 'title'])\n })\n ),\n buttonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n secondButtonLink: PropTypes.shape({\n type: PropTypes.string,\n label: PropTypes.string,\n ariaLabel: PropTypes.string,\n dataName: PropTypes.string,\n icon: PropTypes.shape({\n position: PropTypes.string,\n type: PropTypes.string\n }),\n onClick: PropTypes.func\n }),\n bulletPointMenuButton: PropTypes.shape({\n buttonAriaLabel: PropTypes.string,\n menuAriaLabel: PropTypes.string,\n buttons: PropTypes.arrayOf(\n PropTypes.shape({\n 'data-name': PropTypes.string,\n label: PropTypes.string,\n type: PropTypes.string,\n onClick: PropTypes.func\n })\n ),\n onClick: PropTypes.func\n }),\n tags: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string,\n type: PropTypes.oneOf(['success', 'failure', 'warning', 'progress', 'default'])\n })\n ),\n disabled: PropTypes.bool,\n onClick: PropTypes.func,\n isBulkStyle: PropTypes.bool,\n isOverflowHidden: PropTypes.bool,\n order: PropTypes.number,\n 'aria-label': PropTypes.string,\n contentType: PropTypes.string,\n id: PropTypes.string\n};\n\nexport default ListItem;\n"],"mappings":";;;;;;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAEA;;;;;;AAEA,MAAMA,QAAQ,GAAG,CACf;EACEC,UADF;EAE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kB,CAAhB,CAlCJ;EA+CnB5D,IAAI,EAAEkD,kBAAA,CAAUI,OAAV,CACJJ,kBAAA,CAAUK,KAAV,CAAgB;IACdvB,KAAK,EAAEkB,kBAAA,CAAUC,MADH;IAEdxB,IAAI,EAAEuB,kBAAA,CAAUM,KAAV,CAAgB,CAAC,SAAD,EAAY,SAAZ,EAAuB,SAAvB,EAAkC,UAAlC,EAA8C,SAA9C,CAAhB;EAFQ,CAAhB,CADI,CA/Ca;EAqDnBhD,QAAQ,EAAE0C,kBAAA,CAAUG,IArDD;EAsDnBzC,OAAO,EAAEsC,kBAAA,CAAUU,IAtDA;EAuDnBlD,WAAW,EAAEwC,kBAAA,CAAUG,IAvDJ;EAwDnB1C,gBAAgB,EAAEuC,kBAAA,CAAUG,IAxDT;EAyDnB/C,KAAK,EAAE4C,kBAAA,CAAUc,MAzDE;EA0DnB,cAAcd,kBAAA,CAAUC,MA1DL;EA2DnB1C,WAAW,EAAEyC,kBAAA,CAAUC,MA3DJ;EA4DnBc,EAAE,EAAEf,kBAAA,CAAUC;AA5DK,CAArB;eA+DevD,Q"}
|
|
@@ -12,6 +12,7 @@ declare namespace ListItems {
|
|
|
12
12
|
'aria-label': PropTypes.Requireable<string>;
|
|
13
13
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
14
14
|
type: PropTypes.Requireable<string>;
|
|
15
|
+
usage: PropTypes.Requireable<string>;
|
|
15
16
|
label: PropTypes.Requireable<string>;
|
|
16
17
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
17
18
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -56,6 +57,7 @@ declare namespace ListItems {
|
|
|
56
57
|
title: PropTypes.Validator<string>;
|
|
57
58
|
subtitle: PropTypes.Requireable<string>;
|
|
58
59
|
selected: PropTypes.Requireable<boolean>;
|
|
60
|
+
selectedColor: PropTypes.Requireable<string>;
|
|
59
61
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
60
62
|
label: PropTypes.Requireable<string>;
|
|
61
63
|
type: PropTypes.Requireable<string>;
|
|
@@ -150,6 +152,7 @@ declare namespace ListItems {
|
|
|
150
152
|
lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
151
153
|
componentType: PropTypes.Requireable<string>;
|
|
152
154
|
type: PropTypes.Requireable<string>;
|
|
155
|
+
usage: PropTypes.Requireable<string>;
|
|
153
156
|
label: PropTypes.Requireable<string>;
|
|
154
157
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
155
158
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -5,6 +5,7 @@ declare namespace SetupHeader {
|
|
|
5
5
|
const items: PropTypes.Requireable<PropTypes.InferProps<{
|
|
6
6
|
seeMyPlatform: PropTypes.Requireable<PropTypes.InferProps<{
|
|
7
7
|
type: PropTypes.Requireable<string>;
|
|
8
|
+
usage: PropTypes.Requireable<string>;
|
|
8
9
|
label: PropTypes.Requireable<string>;
|
|
9
10
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
10
11
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -28,6 +29,7 @@ declare namespace SetupHeader {
|
|
|
28
29
|
}>>;
|
|
29
30
|
logOut: PropTypes.Requireable<PropTypes.InferProps<{
|
|
30
31
|
type: PropTypes.Requireable<string>;
|
|
32
|
+
usage: PropTypes.Requireable<string>;
|
|
31
33
|
label: PropTypes.Requireable<string>;
|
|
32
34
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
33
35
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -51,6 +53,7 @@ declare namespace SetupHeader {
|
|
|
51
53
|
}>>;
|
|
52
54
|
globalAnalytics: PropTypes.Requireable<PropTypes.InferProps<{
|
|
53
55
|
type: PropTypes.Requireable<string>;
|
|
56
|
+
usage: PropTypes.Requireable<string>;
|
|
54
57
|
label: PropTypes.Requireable<string>;
|
|
55
58
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
56
59
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -74,6 +77,7 @@ declare namespace SetupHeader {
|
|
|
74
77
|
}>>;
|
|
75
78
|
platformList: PropTypes.Requireable<PropTypes.InferProps<{
|
|
76
79
|
type: PropTypes.Requireable<string>;
|
|
80
|
+
usage: PropTypes.Requireable<string>;
|
|
77
81
|
label: PropTypes.Requireable<string>;
|
|
78
82
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
79
83
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -21,6 +21,7 @@ declare namespace WizardContents {
|
|
|
21
21
|
}>>;
|
|
22
22
|
firstButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
23
23
|
type: PropTypes.Requireable<string>;
|
|
24
|
+
usage: PropTypes.Requireable<string>;
|
|
24
25
|
label: PropTypes.Requireable<string>;
|
|
25
26
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
26
27
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -44,6 +45,7 @@ declare namespace WizardContents {
|
|
|
44
45
|
}>>;
|
|
45
46
|
secondButtonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
46
47
|
type: PropTypes.Requireable<string>;
|
|
48
|
+
usage: PropTypes.Requireable<string>;
|
|
47
49
|
label: PropTypes.Requireable<string>;
|
|
48
50
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
49
51
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -438,6 +440,7 @@ declare namespace WizardContents {
|
|
|
438
440
|
lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
439
441
|
componentType: PropTypes.Requireable<string>;
|
|
440
442
|
type: PropTypes.Requireable<string>;
|
|
443
|
+
usage: PropTypes.Requireable<string>;
|
|
441
444
|
label: PropTypes.Requireable<string>;
|
|
442
445
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
443
446
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -92,6 +92,7 @@ declare namespace PlayerLoading {
|
|
|
92
92
|
'aria-label': PropTypes.Requireable<string>;
|
|
93
93
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
94
94
|
type: PropTypes.Requireable<string>;
|
|
95
|
+
usage: PropTypes.Requireable<string>;
|
|
95
96
|
label: PropTypes.Requireable<string>;
|
|
96
97
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
97
98
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -136,6 +137,7 @@ declare namespace PlayerLoading {
|
|
|
136
137
|
title: PropTypes.Validator<string>;
|
|
137
138
|
subtitle: PropTypes.Requireable<string>;
|
|
138
139
|
selected: PropTypes.Requireable<boolean>;
|
|
140
|
+
selectedColor: PropTypes.Requireable<string>;
|
|
139
141
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
140
142
|
label: PropTypes.Requireable<string>;
|
|
141
143
|
type: PropTypes.Requireable<string>;
|
|
@@ -230,6 +232,7 @@ declare namespace PlayerLoading {
|
|
|
230
232
|
lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
231
233
|
componentType: PropTypes.Requireable<string>;
|
|
232
234
|
type: PropTypes.Requireable<string>;
|
|
235
|
+
usage: PropTypes.Requireable<string>;
|
|
233
236
|
label: PropTypes.Requireable<string>;
|
|
234
237
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
235
238
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -143,6 +143,7 @@ declare namespace SlidePlayer {
|
|
|
143
143
|
'aria-label': PropTypes.Requireable<string>;
|
|
144
144
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
145
145
|
type: PropTypes.Requireable<string>;
|
|
146
|
+
usage: PropTypes.Requireable<string>;
|
|
146
147
|
label: PropTypes.Requireable<string>;
|
|
147
148
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
148
149
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -187,6 +188,7 @@ declare namespace SlidePlayer {
|
|
|
187
188
|
title: PropTypes.Validator<string>;
|
|
188
189
|
subtitle: PropTypes.Requireable<string>;
|
|
189
190
|
selected: PropTypes.Requireable<boolean>;
|
|
191
|
+
selectedColor: PropTypes.Requireable<string>;
|
|
190
192
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
191
193
|
label: PropTypes.Requireable<string>;
|
|
192
194
|
type: PropTypes.Requireable<string>;
|
|
@@ -281,6 +283,7 @@ declare namespace SlidePlayer {
|
|
|
281
283
|
lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
282
284
|
componentType: PropTypes.Requireable<string>;
|
|
283
285
|
type: PropTypes.Requireable<string>;
|
|
286
|
+
usage: PropTypes.Requireable<string>;
|
|
284
287
|
label: PropTypes.Requireable<string>;
|
|
285
288
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
286
289
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -433,6 +436,7 @@ declare namespace SlidePlayer {
|
|
|
433
436
|
'aria-label': PropTypes.Requireable<string>;
|
|
434
437
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
435
438
|
type: PropTypes.Requireable<string>;
|
|
439
|
+
usage: PropTypes.Requireable<string>;
|
|
436
440
|
label: PropTypes.Requireable<string>;
|
|
437
441
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
438
442
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -477,6 +481,7 @@ declare namespace SlidePlayer {
|
|
|
477
481
|
title: PropTypes.Validator<string>;
|
|
478
482
|
subtitle: PropTypes.Requireable<string>;
|
|
479
483
|
selected: PropTypes.Requireable<boolean>;
|
|
484
|
+
selectedColor: PropTypes.Requireable<string>;
|
|
480
485
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
481
486
|
label: PropTypes.Requireable<string>;
|
|
482
487
|
type: PropTypes.Requireable<string>;
|
|
@@ -571,6 +576,7 @@ declare namespace SlidePlayer {
|
|
|
571
576
|
lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
572
577
|
componentType: PropTypes.Requireable<string>;
|
|
573
578
|
type: PropTypes.Requireable<string>;
|
|
579
|
+
usage: PropTypes.Requireable<string>;
|
|
574
580
|
label: PropTypes.Requireable<string>;
|
|
575
581
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
576
582
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -149,6 +149,7 @@ declare namespace SlidesPlayer {
|
|
|
149
149
|
'aria-label': PropTypes.Requireable<string>;
|
|
150
150
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
151
151
|
type: PropTypes.Requireable<string>;
|
|
152
|
+
usage: PropTypes.Requireable<string>;
|
|
152
153
|
label: PropTypes.Requireable<string>;
|
|
153
154
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
154
155
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -193,6 +194,7 @@ declare namespace SlidesPlayer {
|
|
|
193
194
|
title: PropTypes.Validator<string>;
|
|
194
195
|
subtitle: PropTypes.Requireable<string>;
|
|
195
196
|
selected: PropTypes.Requireable<boolean>;
|
|
197
|
+
selectedColor: PropTypes.Requireable<string>;
|
|
196
198
|
dataColumns: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
197
199
|
label: PropTypes.Requireable<string>;
|
|
198
200
|
type: PropTypes.Requireable<string>;
|
|
@@ -287,6 +289,7 @@ declare namespace SlidesPlayer {
|
|
|
287
289
|
lastField: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
288
290
|
componentType: PropTypes.Requireable<string>;
|
|
289
291
|
type: PropTypes.Requireable<string>;
|
|
292
|
+
usage: PropTypes.Requireable<string>;
|
|
290
293
|
label: PropTypes.Requireable<string>;
|
|
291
294
|
content: PropTypes.Requireable<PropTypes.ReactNodeLike>;
|
|
292
295
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../src/template/app-player/player/slides/index.js"],"names":[],"mappings":";AA+aA,qEAkBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA1ID;;uBAyBC;;;;;;;;;;;;;;;;;;;;;;;;;AArPD;;;gBAaC;;;;;;;;;;;;;AAyDD;;;;gBAEC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAlHD,oEAQC;;;;;;;;;AAgND;;gBAiBC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA/GD,qEAaC"}
|