@coorpacademy/components 10.2.2 → 10.3.0
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/wizard-steps/index.js +1 -1
- package/es/atom/wizard-steps/index.js.map +1 -1
- package/es/atom/wizard-steps/style.css +1 -6
- package/es/molecule/banner/test/fixtures.js +8 -0
- package/es/molecule/banner/test/fixtures.js.map +1 -1
- package/es/molecule/brand-form-group/style.css +1 -2
- package/es/molecule/cockpit-popin/test/fixtures.js +17 -0
- package/es/molecule/cockpit-popin/test/fixtures.js.map +1 -0
- package/es/molecule/select-multiple/index.js +2 -2
- package/es/molecule/select-multiple/index.js.map +1 -1
- package/es/molecule/select-multiple/style.css +33 -16
- package/es/molecule/select-multiple/test/fixtures.js +8 -0
- package/es/molecule/select-multiple/test/fixtures.js.map +1 -1
- package/es/molecule/wizard-summary/index.js +4 -1
- package/es/molecule/wizard-summary/index.js.map +1 -1
- package/es/molecule/wizard-summary/style.css +18 -8
- package/es/molecule/wizard-summary/test/fixtures/three-sections.js +2 -2
- package/es/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -1
- package/es/organism/brand-form/index.js +39 -29
- package/es/organism/brand-form/index.js.map +1 -1
- package/es/organism/brand-form/style.css +8 -3
- package/es/organism/{playlist-translation → content-translation}/index.js +0 -0
- package/es/organism/content-translation/index.js.map +1 -0
- package/es/organism/{playlist-translation → content-translation}/style.css +0 -0
- package/es/organism/{playlist-translation → content-translation}/test/fixtures/default.js +0 -0
- package/es/organism/content-translation/test/fixtures/default.js.map +1 -0
- package/es/organism/{playlist-translation → content-translation}/test/fixtures/delete.js +0 -0
- package/es/organism/content-translation/test/fixtures/delete.js.map +1 -0
- package/es/organism/content-translation/test/fixtures.js +15 -0
- package/es/organism/content-translation/test/fixtures.js.map +1 -0
- package/es/organism/list-item/test/fixtures.js +19 -0
- package/es/organism/list-item/test/fixtures.js.map +1 -0
- package/es/organism/list-items/test/fixtures.js +17 -0
- package/es/organism/list-items/test/fixtures.js.map +1 -0
- package/es/organism/wizard-contents/index.js +146 -0
- package/es/organism/wizard-contents/index.js.map +1 -0
- package/es/organism/wizard-contents/style.css +118 -0
- package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +40 -0
- package/es/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -0
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +36 -0
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -0
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +36 -0
- package/es/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -0
- package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js +40 -0
- package/es/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -0
- package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +40 -0
- package/es/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -0
- package/es/organism/wizard-contents/test/fixtures.js +21 -0
- package/es/organism/wizard-contents/test/fixtures.js.map +1 -0
- package/es/template/back-office/brand-update/index.js +8 -1
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/style.css +3 -15
- package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +21 -0
- package/es/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -0
- package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +21 -0
- package/es/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -0
- package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +22 -0
- package/es/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -0
- package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +21 -0
- package/es/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -0
- package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +21 -0
- package/es/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -0
- package/es/template/back-office/brand-update/test/fixtures.js +10 -2
- package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/lib/atom/wizard-steps/index.js +1 -1
- package/lib/atom/wizard-steps/index.js.map +1 -1
- package/lib/atom/wizard-steps/style.css +1 -6
- package/lib/molecule/banner/test/fixtures.js +12 -0
- package/lib/molecule/banner/test/fixtures.js.map +1 -1
- package/lib/molecule/brand-form-group/style.css +1 -2
- package/lib/molecule/cockpit-popin/test/fixtures.js +28 -0
- package/lib/molecule/cockpit-popin/test/fixtures.js.map +1 -0
- package/lib/molecule/select-multiple/index.js +2 -2
- package/lib/molecule/select-multiple/index.js.map +1 -1
- package/lib/molecule/select-multiple/style.css +33 -16
- package/lib/molecule/select-multiple/test/fixtures.js +12 -0
- package/lib/molecule/select-multiple/test/fixtures.js.map +1 -1
- package/lib/molecule/wizard-summary/index.js +5 -3
- package/lib/molecule/wizard-summary/index.js.map +1 -1
- package/lib/molecule/wizard-summary/style.css +18 -8
- package/lib/molecule/wizard-summary/test/fixtures/three-sections.js +2 -2
- package/lib/molecule/wizard-summary/test/fixtures/three-sections.js.map +1 -1
- package/lib/organism/brand-form/index.js +39 -29
- package/lib/organism/brand-form/index.js.map +1 -1
- package/lib/organism/brand-form/style.css +8 -3
- package/lib/organism/{playlist-translation → content-translation}/index.js +0 -0
- package/lib/organism/content-translation/index.js.map +1 -0
- package/lib/organism/{playlist-translation → content-translation}/style.css +0 -0
- package/lib/organism/{playlist-translation → content-translation}/test/fixtures/default.js +0 -0
- package/lib/organism/content-translation/test/fixtures/default.js.map +1 -0
- package/lib/organism/{playlist-translation → content-translation}/test/fixtures/delete.js +0 -0
- package/lib/organism/content-translation/test/fixtures/delete.js.map +1 -0
- package/lib/organism/content-translation/test/fixtures.js +25 -0
- package/lib/organism/content-translation/test/fixtures.js.map +1 -0
- package/lib/organism/list-item/test/fixtures.js +31 -0
- package/lib/organism/list-item/test/fixtures.js.map +1 -0
- package/lib/organism/list-items/test/fixtures.js +28 -0
- package/lib/organism/list-items/test/fixtures.js.map +1 -0
- package/lib/organism/wizard-contents/index.js +164 -0
- package/lib/organism/wizard-contents/index.js.map +1 -0
- package/lib/organism/wizard-contents/style.css +118 -0
- package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js +49 -0
- package/lib/organism/wizard-contents/test/fixtures/playlist-add-courses-create.js.map +1 -0
- package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js +45 -0
- package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js.map +1 -0
- package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js +45 -0
- package/lib/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js.map +1 -0
- package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js +49 -0
- package/lib/organism/wizard-contents/test/fixtures/playlist-populations-create.js.map +1 -0
- package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js +49 -0
- package/lib/organism/wizard-contents/test/fixtures/playlist-translate-edit.js.map +1 -0
- package/lib/organism/wizard-contents/test/fixtures.js +34 -0
- package/lib/organism/wizard-contents/test/fixtures.js.map +1 -0
- package/lib/template/back-office/brand-update/index.js +9 -1
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/style.css +3 -15
- package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js +31 -0
- package/lib/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js.map +1 -0
- package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js +31 -0
- package/lib/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js.map +1 -0
- package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js +33 -0
- package/lib/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js.map +1 -0
- package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js +31 -0
- package/lib/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js.map +1 -0
- package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js +31 -0
- package/lib/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js.map +1 -0
- package/lib/template/back-office/brand-update/test/fixtures.js +15 -3
- package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/package.json +2 -2
- package/es/organism/playlist-translation/index.js.map +0 -1
- package/es/organism/playlist-translation/test/fixtures/default.js.map +0 -1
- package/es/organism/playlist-translation/test/fixtures/delete.js.map +0 -1
- package/lib/organism/playlist-translation/index.js.map +0 -1
- package/lib/organism/playlist-translation/test/fixtures/default.js.map +0 -1
- package/lib/organism/playlist-translation/test/fixtures/delete.js.map +0 -1
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
|
+
|
|
3
|
+
/* eslint-disable no-console */
|
|
4
|
+
import wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';
|
|
5
|
+
import generalInformation from '../../../brand-form/test/fixtures/wizard-playlists';
|
|
6
|
+
export default {
|
|
7
|
+
props: {
|
|
8
|
+
wizardHeader: {
|
|
9
|
+
title: 'Create custom playlist',
|
|
10
|
+
onClick: () => console.log('Close')
|
|
11
|
+
},
|
|
12
|
+
steps: [{
|
|
13
|
+
title: 'General Informations',
|
|
14
|
+
done: false,
|
|
15
|
+
current: true
|
|
16
|
+
}, {
|
|
17
|
+
title: 'Translations',
|
|
18
|
+
done: false
|
|
19
|
+
}, {
|
|
20
|
+
title: 'Assign populations',
|
|
21
|
+
done: false
|
|
22
|
+
}, {
|
|
23
|
+
title: 'Add courses',
|
|
24
|
+
done: false
|
|
25
|
+
}],
|
|
26
|
+
summary: wizardSummary.props,
|
|
27
|
+
content: _extends(_extends({}, generalInformation.props), {}, {
|
|
28
|
+
type: 'form'
|
|
29
|
+
}),
|
|
30
|
+
nextStep: {
|
|
31
|
+
label: 'Next step',
|
|
32
|
+
onClick: () => console.log('Next Step')
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=playlist-general-settings-create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-general-settings-create.js"],"names":["wizardSummary","generalInformation","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","nextStep","label"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,kBAAP,MAA+B,oDAA/B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,wBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KADK,EAML;AACEN,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KANK,EAUL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAVK,EAcL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,wBACFX,kBAAkB,CAACC,KADjB;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,KAAK,EAAE,WADC;AAERV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAFP;AA7BL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport generalInformation from '../../../brand-form/test/fixtures/wizard-playlists';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Create custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: false,\n current: true\n },\n {\n title: 'Translations',\n done: false\n },\n {\n title: 'Assign populations',\n done: false\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...generalInformation.props,\n type: 'form'\n },\n nextStep: {\n label: 'Next step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-general-settings-create.js"}
|
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
|
+
|
|
3
|
+
/* eslint-disable no-console */
|
|
4
|
+
import wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/one-section';
|
|
5
|
+
import generalInformation from '../../../brand-form/test/fixtures/wizard-playlists';
|
|
6
|
+
export default {
|
|
7
|
+
props: {
|
|
8
|
+
wizardHeader: {
|
|
9
|
+
title: 'Edit custom playlist',
|
|
10
|
+
onClick: () => console.log('Close')
|
|
11
|
+
},
|
|
12
|
+
steps: [{
|
|
13
|
+
title: 'General Informations',
|
|
14
|
+
done: false,
|
|
15
|
+
current: true
|
|
16
|
+
}, {
|
|
17
|
+
title: 'Translations',
|
|
18
|
+
done: false
|
|
19
|
+
}, {
|
|
20
|
+
title: 'Assign populations',
|
|
21
|
+
done: false
|
|
22
|
+
}, {
|
|
23
|
+
title: 'Add courses',
|
|
24
|
+
done: false
|
|
25
|
+
}],
|
|
26
|
+
summary: wizardSummary.props,
|
|
27
|
+
content: _extends(_extends({}, generalInformation.props), {}, {
|
|
28
|
+
type: 'form'
|
|
29
|
+
}),
|
|
30
|
+
nextStep: {
|
|
31
|
+
label: 'Next Step',
|
|
32
|
+
onClick: () => console.log('Next Step')
|
|
33
|
+
}
|
|
34
|
+
}
|
|
35
|
+
};
|
|
36
|
+
//# sourceMappingURL=playlist-general-settings-edit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-general-settings-edit.js"],"names":["wizardSummary","generalInformation","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","nextStep","label"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,+DAA1B;AACA,OAAOC,kBAAP,MAA+B,oDAA/B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,sBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KADK,EAML;AACEN,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KANK,EAUL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAVK,EAcL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,wBACFX,kBAAkB,CAACC,KADjB;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,QAAQ,EAAE;AACRC,MAAAA,KAAK,EAAE,WADC;AAERV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAFP;AA7BL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/one-section';\nimport generalInformation from '../../../brand-form/test/fixtures/wizard-playlists';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Edit custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: false,\n current: true\n },\n {\n title: 'Translations',\n done: false\n },\n {\n title: 'Assign populations',\n done: false\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...generalInformation.props,\n type: 'form'\n },\n nextStep: {\n label: 'Next Step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-general-settings-edit.js"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
|
+
|
|
3
|
+
/* eslint-disable no-console */
|
|
4
|
+
import wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';
|
|
5
|
+
import populationsForm from '../../../search-and-chips-results/test/fixtures/sorted-selected';
|
|
6
|
+
export default {
|
|
7
|
+
props: {
|
|
8
|
+
wizardHeader: {
|
|
9
|
+
title: 'Create custom playlist',
|
|
10
|
+
onClick: () => console.log('Close')
|
|
11
|
+
},
|
|
12
|
+
steps: [{
|
|
13
|
+
title: 'General Informations',
|
|
14
|
+
done: true
|
|
15
|
+
}, {
|
|
16
|
+
title: 'Translations',
|
|
17
|
+
done: true
|
|
18
|
+
}, {
|
|
19
|
+
title: 'Assign populations',
|
|
20
|
+
done: false,
|
|
21
|
+
current: true
|
|
22
|
+
}, {
|
|
23
|
+
title: 'Add courses',
|
|
24
|
+
done: false
|
|
25
|
+
}],
|
|
26
|
+
summary: wizardSummary.props,
|
|
27
|
+
content: _extends(_extends({}, populationsForm.props), {}, {
|
|
28
|
+
type: 'populations'
|
|
29
|
+
}),
|
|
30
|
+
previousStep: {
|
|
31
|
+
label: 'Previous Step',
|
|
32
|
+
onClick: () => console.log('Previous Step')
|
|
33
|
+
},
|
|
34
|
+
nextStep: {
|
|
35
|
+
label: 'Next Step',
|
|
36
|
+
onClick: () => console.log('Next Step')
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=playlist-populations-create.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-populations-create.js"],"names":["wizardSummary","populationsForm","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","previousStep","label","nextStep"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,eAAP,MAA4B,iEAA5B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,wBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KALK,EASL;AACEL,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KATK,EAcL;AACEN,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,wBACFX,eAAe,CAACC,KADd;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KA7BT;AAiCLS,IAAAA,QAAQ,EAAE;AACRD,MAAAA,KAAK,EAAE,WADC;AAERV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAFP;AAjCL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport populationsForm from '../../../search-and-chips-results/test/fixtures/sorted-selected';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Create custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: true\n },\n {\n title: 'Assign populations',\n done: false,\n current: true\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...populationsForm.props,\n type: 'populations'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n label: 'Next Step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-populations-create.js"}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
|
+
|
|
3
|
+
/* eslint-disable no-console */
|
|
4
|
+
import wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';
|
|
5
|
+
import translateForm from '../../../content-translation/test/fixtures/default';
|
|
6
|
+
export default {
|
|
7
|
+
props: {
|
|
8
|
+
wizardHeader: {
|
|
9
|
+
title: 'Edit custom playlist',
|
|
10
|
+
onClick: () => console.log('Close')
|
|
11
|
+
},
|
|
12
|
+
steps: [{
|
|
13
|
+
title: 'General Informations',
|
|
14
|
+
done: true
|
|
15
|
+
}, {
|
|
16
|
+
title: 'Translations',
|
|
17
|
+
done: false,
|
|
18
|
+
current: true
|
|
19
|
+
}, {
|
|
20
|
+
title: 'Assign populations',
|
|
21
|
+
done: false
|
|
22
|
+
}, {
|
|
23
|
+
title: 'Add courses',
|
|
24
|
+
done: false
|
|
25
|
+
}],
|
|
26
|
+
summary: wizardSummary.props,
|
|
27
|
+
content: _extends(_extends({}, translateForm.props), {}, {
|
|
28
|
+
type: 'translate'
|
|
29
|
+
}),
|
|
30
|
+
previousStep: {
|
|
31
|
+
label: 'Previous Step',
|
|
32
|
+
onClick: () => console.log('Previous Step')
|
|
33
|
+
},
|
|
34
|
+
nextStep: {
|
|
35
|
+
label: 'Next Step',
|
|
36
|
+
onClick: () => console.log('Next Step')
|
|
37
|
+
}
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
//# sourceMappingURL=playlist-translate-edit.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/wizard-contents/test/fixtures/playlist-translate-edit.js"],"names":["wizardSummary","translateForm","props","wizardHeader","title","onClick","console","log","steps","done","current","summary","content","type","previousStep","label","nextStep"],"mappings":";;AAAA;AACA,OAAOA,aAAP,MAA0B,kEAA1B;AACA,OAAOC,aAAP,MAA0B,oDAA1B;AAEA,eAAe;AACbC,EAAAA,KAAK,EAAE;AACLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,sBADK;AAEZC,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,OAAZ;AAFH,KADT;AAKLC,IAAAA,KAAK,EAAE,CACL;AACEJ,MAAAA,KAAK,EAAE,sBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KADK,EAKL;AACEL,MAAAA,KAAK,EAAE,cADT;AAEEK,MAAAA,IAAI,EAAE,KAFR;AAGEC,MAAAA,OAAO,EAAE;AAHX,KALK,EAUL;AACEN,MAAAA,KAAK,EAAE,oBADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAVK,EAcL;AACEL,MAAAA,KAAK,EAAE,aADT;AAEEK,MAAAA,IAAI,EAAE;AAFR,KAdK,CALF;AAwBLE,IAAAA,OAAO,EAAEX,aAAa,CAACE,KAxBlB;AAyBLU,IAAAA,OAAO,wBACFX,aAAa,CAACC,KADZ;AAELW,MAAAA,IAAI,EAAE;AAFD,MAzBF;AA6BLC,IAAAA,YAAY,EAAE;AACZC,MAAAA,KAAK,EAAE,eADK;AAEZV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,eAAZ;AAFH,KA7BT;AAiCLS,IAAAA,QAAQ,EAAE;AACRD,MAAAA,KAAK,EAAE,WADC;AAERV,MAAAA,OAAO,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,WAAZ;AAFP;AAjCL;AADM,CAAf","sourcesContent":["/* eslint-disable no-console */\nimport wizardSummary from '../../../../molecule/wizard-summary/test/fixtures/three-sections';\nimport translateForm from '../../../content-translation/test/fixtures/default';\n\nexport default {\n props: {\n wizardHeader: {\n title: 'Edit custom playlist',\n onClick: () => console.log('Close')\n },\n steps: [\n {\n title: 'General Informations',\n done: true\n },\n {\n title: 'Translations',\n done: false,\n current: true\n },\n {\n title: 'Assign populations',\n done: false\n },\n {\n title: 'Add courses',\n done: false\n }\n ],\n summary: wizardSummary.props,\n content: {\n ...translateForm.props,\n type: 'translate'\n },\n previousStep: {\n label: 'Previous Step',\n onClick: () => console.log('Previous Step')\n },\n nextStep: {\n label: 'Next Step',\n onClick: () => console.log('Next Step')\n }\n }\n};\n"],"file":"playlist-translate-edit.js"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import test from 'ava';
|
|
2
|
+
import forEach from 'lodash/forEach';
|
|
3
|
+
import renderComponentMacro from '../../../test/helpers/render-component';
|
|
4
|
+
import OrganismWizardContents from '..';
|
|
5
|
+
import fixturePlaylistAddCoursesCreate from './fixtures/playlist-add-courses-create';
|
|
6
|
+
import fixturePlaylistGeneralSettingsCreate from './fixtures/playlist-general-settings-create';
|
|
7
|
+
import fixturePlaylistGeneralSettingsEdit from './fixtures/playlist-general-settings-edit';
|
|
8
|
+
import fixturePlaylistPopulationsCreate from './fixtures/playlist-populations-create';
|
|
9
|
+
import fixturePlaylistTranslateEdit from './fixtures/playlist-translate-edit';
|
|
10
|
+
test('Organism › OrganismWizardContents > should have valid propTypes', t => {
|
|
11
|
+
t.pass();
|
|
12
|
+
forEach(OrganismWizardContents.propTypes, (value, key) => {
|
|
13
|
+
t.not(value, undefined, `PropType for "Organism.OrganismWizardContents.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
|
|
14
|
+
});
|
|
15
|
+
});
|
|
16
|
+
test('Organism › OrganismWizardContents › PlaylistAddCoursesCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistAddCoursesCreate);
|
|
17
|
+
test('Organism › OrganismWizardContents › PlaylistGeneralSettingsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsCreate);
|
|
18
|
+
test('Organism › OrganismWizardContents › PlaylistGeneralSettingsEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsEdit);
|
|
19
|
+
test('Organism › OrganismWizardContents › PlaylistPopulationsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistPopulationsCreate);
|
|
20
|
+
test('Organism › OrganismWizardContents › PlaylistTranslateEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistTranslateEdit);
|
|
21
|
+
//# sourceMappingURL=fixtures.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../src/organism/wizard-contents/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","OrganismWizardContents","fixturePlaylistAddCoursesCreate","fixturePlaylistGeneralSettingsCreate","fixturePlaylistGeneralSettingsEdit","fixturePlaylistPopulationsCreate","fixturePlaylistTranslateEdit","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,wCAAjC;AACA,OAAOC,sBAAP,MAAmC,IAAnC;AACA,OAAOC,+BAAP,MAA4C,wCAA5C;AACA,OAAOC,oCAAP,MAAiD,6CAAjD;AACA,OAAOC,kCAAP,MAA+C,2CAA/C;AACA,OAAOC,gCAAP,MAA6C,wCAA7C;AACA,OAAOC,4BAAP,MAAyC,oCAAzC;AAEAR,IAAI,CAAC,iEAAD,EAAoES,CAAC,IAAI;AAC3EA,EAAAA,CAAC,CAACC,IAAF;AACAT,EAAAA,OAAO,CAACE,sBAAsB,CAACQ,SAAxB,EAAmC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACxDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,2DAA0DF,GAAI,mEAAvF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAb,IAAI,CAAC,mFAAD,EAAsFE,oBAAtF,EAA4GC,sBAA5G,EAAoIC,+BAApI,CAAJ;AACAJ,IAAI,CAAC,wFAAD,EAA2FE,oBAA3F,EAAiHC,sBAAjH,EAAyIE,oCAAzI,CAAJ;AACAL,IAAI,CAAC,sFAAD,EAAyFE,oBAAzF,EAA+GC,sBAA/G,EAAuIG,kCAAvI,CAAJ;AACAN,IAAI,CAAC,oFAAD,EAAuFE,oBAAvF,EAA6GC,sBAA7G,EAAqII,gCAArI,CAAJ;AACAP,IAAI,CAAC,gFAAD,EAAmFE,oBAAnF,EAAyGC,sBAAzG,EAAiIK,4BAAjI,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport OrganismWizardContents from '..';\nimport fixturePlaylistAddCoursesCreate from './fixtures/playlist-add-courses-create';\nimport fixturePlaylistGeneralSettingsCreate from './fixtures/playlist-general-settings-create';\nimport fixturePlaylistGeneralSettingsEdit from './fixtures/playlist-general-settings-edit';\nimport fixturePlaylistPopulationsCreate from './fixtures/playlist-populations-create';\nimport fixturePlaylistTranslateEdit from './fixtures/playlist-translate-edit';\n\ntest('Organism › OrganismWizardContents > should have valid propTypes', t => {\n t.pass();\n forEach(OrganismWizardContents.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Organism.OrganismWizardContents.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Organism › OrganismWizardContents › PlaylistAddCoursesCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistAddCoursesCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsCreate);\ntest('Organism › OrganismWizardContents › PlaylistGeneralSettingsEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistGeneralSettingsEdit);\ntest('Organism › OrganismWizardContents › PlaylistPopulationsCreate › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistPopulationsCreate);\ntest('Organism › OrganismWizardContents › PlaylistTranslateEdit › should be rendered', renderComponentMacro, OrganismWizardContents, fixturePlaylistTranslateEdit);\n"],"file":"fixtures.js"}
|
|
@@ -15,6 +15,7 @@ import BrandTable from '../../../organism/brand-table';
|
|
|
15
15
|
import BrandUpload from '../../../organism/brand-upload';
|
|
16
16
|
import BrandAnalytics from '../../../organism/brand-analytics';
|
|
17
17
|
import BrandDashboard from '../../../organism/brand-dashboard';
|
|
18
|
+
import WizardContents from '../../../organism/wizard-contents';
|
|
18
19
|
import Banner from '../../../molecule/banner';
|
|
19
20
|
import Header from '../../../organism/setup-header';
|
|
20
21
|
import Loader from '../../../atom/loader';
|
|
@@ -130,6 +131,9 @@ const buildContentView = content => {
|
|
|
130
131
|
|
|
131
132
|
case 'home':
|
|
132
133
|
return /*#__PURE__*/React.createElement(BrandDashboard, content);
|
|
134
|
+
|
|
135
|
+
case 'wizard':
|
|
136
|
+
return /*#__PURE__*/React.createElement(WizardContents, content);
|
|
133
137
|
}
|
|
134
138
|
};
|
|
135
139
|
|
|
@@ -172,7 +176,7 @@ BrandUpdate.defaultProps = {
|
|
|
172
176
|
notifications: []
|
|
173
177
|
};
|
|
174
178
|
BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
175
|
-
notifications: PropTypes.arrayOf(PropTypes.shape(Banner.propTypes)),
|
|
179
|
+
notifications: PropTypes.arrayOf(PropTypes.shape(_extends({}, Banner.propTypes))),
|
|
176
180
|
header: PropTypes.shape(_extends({}, Header.propTypes)),
|
|
177
181
|
items: PropTypes.arrayOf(PropTypes.shape({
|
|
178
182
|
key: PropTypes.string,
|
|
@@ -208,6 +212,9 @@ BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
208
212
|
})), PropTypes.shape(_extends(_extends({}, BrandDashboard.propTypes), {}, {
|
|
209
213
|
key: PropTypes.string,
|
|
210
214
|
type: PropTypes.oneOf(['home'])
|
|
215
|
+
})), PropTypes.shape(_extends(_extends({}, WizardContents.propTypes), {}, {
|
|
216
|
+
key: PropTypes.string,
|
|
217
|
+
type: PropTypes.oneOf(['wizard'])
|
|
211
218
|
}))]),
|
|
212
219
|
details: PropTypes.shape(_extends(_extends({}, BrandTable.propTypes), {}, {
|
|
213
220
|
key: PropTypes.string,
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/template/back-office/brand-update/index.js"],"names":["React","PropTypes","map","pipe","get","isEmpty","find","classNames","BrandTabs","IconLinkItem","LinkItem","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","Banner","Header","Loader","Accordion","style","getStyle","isSelected","selectedElement","unselectedElement","subTabsView","_subTabs","convert","cap","subTab","_index","title","type","selected","buildLeftNavigation","logo","items","onItemClick","formattedTabs","key","href","index","children","iconType","formattedTabsViews","tab","tabs","navigation","buildNotifications","notifications","notificationsList","notification","buildHeader","header","buildTabs","selectedTab","e","showTabs","subTabs","buildContentView","content","buildDetailsView","details","BrandUpdate","props","leftNavigation","notificationsView","headerView","tabsView","contentView","detailsView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","arrayOf","shape","string","isRequired","bool","oneOfType","oneOf","func"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,SAAQC,YAAR,EAAsBC,QAAtB,QAAqC,2BAArC;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,UAAP,MAAuB,+BAAvB;AACA,OAAOC,WAAP,MAAwB,gCAAxB;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,MAAP,MAAmB,gCAAnB;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AACA,OAAOC,SAAP,MAAsB,2CAAtB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,QAAQ,GAAGC,UAAU,IAAKA,UAAU,GAAGF,KAAK,CAACG,eAAT,GAA2BH,KAAK,CAACI,iBAA3E;;AAEA,MAAMC,WAAW,GAAG,CAACC,QAAQ,GAAG,EAAZ,KAClBxB,GAAG,CAACyB,OAAJ,CAAY;AAACC,EAAAA,GAAG,EAAE;AAAN,CAAZ,EAA0B,CAACC,MA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AAC+E,KAAV,uBACKpE,UAAU,CAACkE,SADhB;AAEEvC,IAAAA,GAAG,EAAEtC,SAAS,CAACgF,MAFjB;AAGEjD,IAAAA,IAAI,EAAE/B,SAAS,CAACoF,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHR,KAN2B,EAW3BpF,SAAS,CAAC+E,KAAV,uBACKnE,WAAW,CAACiE,SADjB;AAEEvC,IAAAA,GAAG,EAAEtC,SAAS,CAACgF,MAFjB;AAGEjD,IAAAA,IAAI,EAAE/B,SAAS,CAACoF,KAAV,CAAgB,CAAC,QAAD,CAAhB;AAHR,KAX2B,EAgB3BpF,SAAS,CAAC+E,KAAV,uBACKlE,cAAc,CAACgE,SADpB;AAEEvC,IAAAA,GAAG,EAAEtC,SAAS,CAACgF,MAFjB;AAGEjD,IAAAA,IAAI,EAAE/B,SAAS,CAACoF,KAAV,CAAgB,CAAC,sBAAD,CAAhB;AAHR,KAhB2B,EAqB3BpF,SAAS,CAAC+E,KAAV,uBACKjE,cAAc,CAAC+D,SADpB;AAEEvC,IAAAA,GAAG,EAAEtC,SAAS,CAACgF,MAFjB;AAGEjD,IAAAA,IAAI,EAAE/B,SAAS,CAACoF,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHR,KArB2B,CAApB,CA5Ba;AAuDtBvB,EAAAA,OAAO,EAAE7D,SAAS,CAAC+E,KAAV,uBACJpE,UAAU,CAACkE,SADP;AAEPvC,IAAAA,GAAG,EAAEtC,SAAS,CAACgF,MAFR;AAGPjD,IAAAA,IAAI,EAAE/B,SAAS,CAACoF,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHC,KAvDa;AA4DtBhD,EAAAA,WAAW,EAAEpC,SAAS,CAACqF;AA5DD,CAAxB;AA+DA,eAAevB,WAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport style from './style.css';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem {...subTab} styles={getStyle(subTab.selected)} uppercase={false} />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={style.notification} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return <div className={style.notifications}>{notificationsList}</div>;\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n <Header {...header} />\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab && !isEmpty(selectedTab.subTabs);\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div>\n <Loader />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst BrandUpdate = props => {\n const {notifications, header, items, content, details, onItemClick} = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {tabsView}\n {contentView}\n {detailsView}\n </div>\n </div>\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(PropTypes.shape(Banner.propTypes)),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n })\n ]),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func\n};\n\nexport default BrandUpdate;\n"],"file":"index.js"}
|
|
1
|
+
{"version":3,"sources":["../../../../src/template/back-office/brand-update/index.js"],"names":["React","PropTypes","map","pipe","get","isEmpty","find","classNames","BrandTabs","IconLinkItem","LinkItem","BrandForm","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","Banner","Header","Loader","Accordion","style","getStyle","isSelected","selectedElement","unselectedElement","subTabsView","_subTabs","convert","cap","subTab","_index","title","type","selected","buildLeftNavigation","logo","items","onItemClick","formattedTabs","key","href","index","children","iconType","formattedTabsViews","tab","tabs","navigation","buildNotifications","notifications","notificationsList","notification","buildHeader","header","buildTabs","selectedTab","e","showTabs","subTabs","buildContentView","content","buildDetailsView","details","BrandUpdate","props","leftNavigation","notificationsView","headerView","tabsView","contentView","detailsView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","arrayOf","shape","string","isRequired","bool","oneOfType","oneOf","func"],"mappings":";;AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,GAAP,MAAgB,eAAhB;AACA,OAAOC,OAAP,MAAoB,mBAApB;AACA,OAAOC,IAAP,MAAiB,gBAAjB;AACA,OAAOC,UAAP,MAAuB,YAAvB;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,SAAQC,YAAR,EAAsBC,QAAtB,QAAqC,2BAArC;AACA,OAAOC,SAAP,MAAsB,8BAAtB;AACA,OAAOC,UAAP,MAAuB,+BAAvB;AACA,OAAOC,WAAP,MAAwB,gCAAxB;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,OAAOC,cAAP,MAA2B,mCAA3B;AACA,OAAOC,MAAP,MAAmB,0BAAnB;AACA,OAAOC,MAAP,MAAmB,gCAAnB;AACA,OAAOC,MAAP,MAAmB,sBAAnB;AACA,OAAOC,SAAP,MAAsB,2CAAtB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,QAAQ,GAAGC,UAAU,IAAKA,UAAU,GAAGF,KAAK,CAACG,eAAT,GAA2BH,KAAK,CAACI,iBAA3E;;AAEA,MAAMC,WAAW,GAAG,CAACC,QAAQ,GAAG,EAAZ,KAClBzB,GAAG,CAAC0B,OAAJ,CAAY;AAACC,EAAAA,GAAG,EAAE;AAAN,CAAZ,EAA0B,CAACC,MAAD,EAASC,MAAT,kBACxB;AAAK,EAAA,GAAG,EAAED,MAAM,CAACE;AAAjB,GACGF,MAAM,CAACG,IAAP,KA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Content":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport style from './style.css';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem {...subTab} styles={getStyle(subTab.selected)} uppercase={false} />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={style.notification} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return <div className={style.notifications}>{notificationsList}</div>;\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n <Header {...header} />\n </div>\n );\n};\n\nconst buildTabs = items => {\n const selectedTab = pipe(\n find(e => e.selected),\n get('tabs'),\n find(e => e.selected)\n )(items);\n\n const showTabs = selectedTab && !isEmpty(selectedTab.subTabs);\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div>\n <Loader />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n return <WizardContents {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst BrandUpdate = props => {\n const {notifications, header, items, content, details, onItemClick} = props;\n const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';\n\n const leftNavigation = buildLeftNavigation(logo, items, onItemClick);\n const notificationsView = buildNotifications(notifications);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {tabsView}\n {contentView}\n {detailsView}\n </div>\n </div>\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n })\n ]),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func\n};\n\nexport default BrandUpdate;\n"],"file":"index.js"}
|
|
@@ -110,26 +110,14 @@
|
|
|
110
110
|
margin: 32px 20px 54px 20px;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
|
-
@media desktop {
|
|
113
|
+
@media desktop, tablet {
|
|
114
114
|
.container {
|
|
115
115
|
scroll-behavior: unset;
|
|
116
116
|
margin: 0;
|
|
117
117
|
}
|
|
118
118
|
|
|
119
|
-
.
|
|
120
|
-
|
|
121
|
-
}
|
|
122
|
-
|
|
123
|
-
.contentWrapper {
|
|
124
|
-
width: calc(100% - 287px);
|
|
125
|
-
padding: 0 32px 0 32px;
|
|
126
|
-
}
|
|
127
|
-
}
|
|
128
|
-
|
|
129
|
-
@media tablet {
|
|
130
|
-
.container {
|
|
131
|
-
scroll-behavior: unset;
|
|
132
|
-
margin: 0;
|
|
119
|
+
.content {
|
|
120
|
+
height: calc(100% - 143px);
|
|
133
121
|
}
|
|
134
122
|
|
|
135
123
|
.headerSticky {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
|
+
|
|
3
|
+
import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-add-courses-create';
|
|
4
|
+
import headerAndMenu from './default';
|
|
5
|
+
const {
|
|
6
|
+
header,
|
|
7
|
+
items
|
|
8
|
+
} = headerAndMenu.props;
|
|
9
|
+
const form = WizardForm.props;
|
|
10
|
+
export default {
|
|
11
|
+
props: {
|
|
12
|
+
header,
|
|
13
|
+
items,
|
|
14
|
+
notifications: [],
|
|
15
|
+
content: _extends(_extends({}, form), {}, {
|
|
16
|
+
key: 'add-courses',
|
|
17
|
+
type: 'wizard'
|
|
18
|
+
})
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=wizard-add-courses-playlist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/wizard-add-courses-playlist.js"],"names":["WizardForm","headerAndMenu","header","items","props","form","notifications","content","key","type"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,mFAAvB;AACA,OAAOC,aAAP,MAA0B,WAA1B;AAEA,MAAM;AAACC,EAAAA,MAAD;AAASC,EAAAA;AAAT,IAAkBF,aAAa,CAACG,KAAtC;AACA,MAAMC,IAAI,GAAGL,UAAU,CAACI,KAAxB;AAEA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLF,IAAAA,MADK;AAELC,IAAAA,KAFK;AAGLG,IAAAA,aAAa,EAAE,EAHV;AAILC,IAAAA,OAAO,wBACFF,IADE;AAELG,MAAAA,GAAG,EAAE,aAFA;AAGLC,MAAAA,IAAI,EAAE;AAHD;AAJF;AADM,CAAf","sourcesContent":["import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-add-courses-create';\nimport headerAndMenu from './default';\n\nconst {header, items} = headerAndMenu.props;\nconst form = WizardForm.props;\n\nexport default {\n props: {\n header,\n items,\n notifications: [],\n content: {\n ...form,\n key: 'add-courses',\n type: 'wizard'\n }\n }\n};\n"],"file":"wizard-add-courses-playlist.js"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
|
+
|
|
3
|
+
import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-general-settings-create';
|
|
4
|
+
import headerAndMenu from './default';
|
|
5
|
+
const {
|
|
6
|
+
header,
|
|
7
|
+
items
|
|
8
|
+
} = headerAndMenu.props;
|
|
9
|
+
const form = WizardForm.props;
|
|
10
|
+
export default {
|
|
11
|
+
props: {
|
|
12
|
+
notifications: [],
|
|
13
|
+
header,
|
|
14
|
+
items,
|
|
15
|
+
content: _extends(_extends({}, form), {}, {
|
|
16
|
+
key: 'general-settings',
|
|
17
|
+
type: 'wizard'
|
|
18
|
+
})
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=wizard-form-create-playlist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/wizard-form-create-playlist.js"],"names":["WizardForm","headerAndMenu","header","items","props","form","notifications","content","key","type"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,wFAAvB;AACA,OAAOC,aAAP,MAA0B,WAA1B;AAEA,MAAM;AAACC,EAAAA,MAAD;AAASC,EAAAA;AAAT,IAAkBF,aAAa,CAACG,KAAtC;AACA,MAAMC,IAAI,GAAGL,UAAU,CAACI,KAAxB;AAEA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLE,IAAAA,aAAa,EAAE,EADV;AAELJ,IAAAA,MAFK;AAGLC,IAAAA,KAHK;AAILI,IAAAA,OAAO,wBACFF,IADE;AAELG,MAAAA,GAAG,EAAE,kBAFA;AAGLC,MAAAA,IAAI,EAAE;AAHD;AAJF;AADM,CAAf","sourcesContent":["import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-general-settings-create';\nimport headerAndMenu from './default';\n\nconst {header, items} = headerAndMenu.props;\nconst form = WizardForm.props;\n\nexport default {\n props: {\n notifications: [],\n header,\n items,\n content: {\n ...form,\n key: 'general-settings',\n type: 'wizard'\n }\n }\n};\n"],"file":"wizard-form-create-playlist.js"}
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
|
+
|
|
3
|
+
import warningNotifiation from '../../../../../molecule/banner/test/fixtures/default';
|
|
4
|
+
import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-general-settings-edit';
|
|
5
|
+
import headerAndMenu from './default';
|
|
6
|
+
const {
|
|
7
|
+
header,
|
|
8
|
+
items
|
|
9
|
+
} = headerAndMenu.props;
|
|
10
|
+
const form = WizardForm.props;
|
|
11
|
+
export default {
|
|
12
|
+
props: {
|
|
13
|
+
header,
|
|
14
|
+
items,
|
|
15
|
+
notifications: [warningNotifiation.props],
|
|
16
|
+
content: _extends(_extends({}, form), {}, {
|
|
17
|
+
key: 'general-settings',
|
|
18
|
+
type: 'wizard'
|
|
19
|
+
})
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
//# sourceMappingURL=wizard-form-edit-playlist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/wizard-form-edit-playlist.js"],"names":["warningNotifiation","WizardForm","headerAndMenu","header","items","props","form","notifications","content","key","type"],"mappings":";;AAAA,OAAOA,kBAAP,MAA+B,sDAA/B;AACA,OAAOC,UAAP,MAAuB,sFAAvB;AACA,OAAOC,aAAP,MAA0B,WAA1B;AAEA,MAAM;AAACC,EAAAA,MAAD;AAASC,EAAAA;AAAT,IAAkBF,aAAa,CAACG,KAAtC;AACA,MAAMC,IAAI,GAAGL,UAAU,CAACI,KAAxB;AAEA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLF,IAAAA,MADK;AAELC,IAAAA,KAFK;AAGLG,IAAAA,aAAa,EAAE,CAACP,kBAAkB,CAACK,KAApB,CAHV;AAILG,IAAAA,OAAO,wBACFF,IADE;AAELG,MAAAA,GAAG,EAAE,kBAFA;AAGLC,MAAAA,IAAI,EAAE;AAHD;AAJF;AADM,CAAf","sourcesContent":["import warningNotifiation from '../../../../../molecule/banner/test/fixtures/default';\nimport WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-general-settings-edit';\nimport headerAndMenu from './default';\n\nconst {header, items} = headerAndMenu.props;\nconst form = WizardForm.props;\n\nexport default {\n props: {\n header,\n items,\n notifications: [warningNotifiation.props],\n content: {\n ...form,\n key: 'general-settings',\n type: 'wizard'\n }\n }\n};\n"],"file":"wizard-form-edit-playlist.js"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
|
+
|
|
3
|
+
import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-populations-create';
|
|
4
|
+
import headerAndMenu from './default';
|
|
5
|
+
const {
|
|
6
|
+
header,
|
|
7
|
+
items
|
|
8
|
+
} = headerAndMenu.props;
|
|
9
|
+
const form = WizardForm.props;
|
|
10
|
+
export default {
|
|
11
|
+
props: {
|
|
12
|
+
header,
|
|
13
|
+
items,
|
|
14
|
+
notifications: [],
|
|
15
|
+
content: _extends(_extends({}, form), {}, {
|
|
16
|
+
key: 'populations',
|
|
17
|
+
type: 'wizard'
|
|
18
|
+
})
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=wizard-populations-playlist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/wizard-populations-playlist.js"],"names":["WizardForm","headerAndMenu","header","items","props","form","notifications","content","key","type"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,mFAAvB;AACA,OAAOC,aAAP,MAA0B,WAA1B;AAEA,MAAM;AAACC,EAAAA,MAAD;AAASC,EAAAA;AAAT,IAAkBF,aAAa,CAACG,KAAtC;AACA,MAAMC,IAAI,GAAGL,UAAU,CAACI,KAAxB;AAEA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLF,IAAAA,MADK;AAELC,IAAAA,KAFK;AAGLG,IAAAA,aAAa,EAAE,EAHV;AAILC,IAAAA,OAAO,wBACFF,IADE;AAELG,MAAAA,GAAG,EAAE,aAFA;AAGLC,MAAAA,IAAI,EAAE;AAHD;AAJF;AADM,CAAf","sourcesContent":["import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-populations-create';\nimport headerAndMenu from './default';\n\nconst {header, items} = headerAndMenu.props;\nconst form = WizardForm.props;\n\nexport default {\n props: {\n header,\n items,\n notifications: [],\n content: {\n ...form,\n key: 'populations',\n type: 'wizard'\n }\n }\n};\n"],"file":"wizard-populations-playlist.js"}
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
function _extends() { _extends = Object.assign || 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); }
|
|
2
|
+
|
|
3
|
+
import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-translate-edit';
|
|
4
|
+
import headerAndMenu from './default';
|
|
5
|
+
const {
|
|
6
|
+
header,
|
|
7
|
+
items
|
|
8
|
+
} = headerAndMenu.props;
|
|
9
|
+
const form = WizardForm.props;
|
|
10
|
+
export default {
|
|
11
|
+
props: {
|
|
12
|
+
header,
|
|
13
|
+
items,
|
|
14
|
+
notifications: [],
|
|
15
|
+
content: _extends(_extends({}, form), {}, {
|
|
16
|
+
key: 'translate',
|
|
17
|
+
type: 'wizard'
|
|
18
|
+
})
|
|
19
|
+
}
|
|
20
|
+
};
|
|
21
|
+
//# sourceMappingURL=wizard-translate-playlist.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/wizard-translate-playlist.js"],"names":["WizardForm","headerAndMenu","header","items","props","form","notifications","content","key","type"],"mappings":";;AAAA,OAAOA,UAAP,MAAuB,+EAAvB;AACA,OAAOC,aAAP,MAA0B,WAA1B;AAEA,MAAM;AAACC,EAAAA,MAAD;AAASC,EAAAA;AAAT,IAAkBF,aAAa,CAACG,KAAtC;AACA,MAAMC,IAAI,GAAGL,UAAU,CAACI,KAAxB;AAEA,eAAe;AACbA,EAAAA,KAAK,EAAE;AACLF,IAAAA,MADK;AAELC,IAAAA,KAFK;AAGLG,IAAAA,aAAa,EAAE,EAHV;AAILC,IAAAA,OAAO,wBACFF,IADE;AAELG,MAAAA,GAAG,EAAE,WAFA;AAGLC,MAAAA,IAAI,EAAE;AAHD;AAJF;AADM,CAAf","sourcesContent":["import WizardForm from '../../../../../organism/wizard-contents/test/fixtures/playlist-translate-edit';\nimport headerAndMenu from './default';\n\nconst {header, items} = headerAndMenu.props;\nconst form = WizardForm.props;\n\nexport default {\n props: {\n header,\n items,\n notifications: [],\n content: {\n ...form,\n key: 'translate',\n type: 'wizard'\n }\n }\n};\n"],"file":"wizard-translate-playlist.js"}
|
|
@@ -23,13 +23,17 @@ import fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';
|
|
|
23
23
|
import fixtureLookandfeel from './fixtures/lookandfeel';
|
|
24
24
|
import fixtureManageusersEdit from './fixtures/manageusers-edit';
|
|
25
25
|
import fixtureManageusersList from './fixtures/manageusers-list';
|
|
26
|
-
import fixtureManageusers from './fixtures/manageusers';
|
|
27
26
|
import fixtureQuickAccess from './fixtures/quick-access';
|
|
28
27
|
import fixtureSsoActivate from './fixtures/sso-activate';
|
|
29
28
|
import fixtureSso from './fixtures/sso';
|
|
30
29
|
import fixtureUploadusersLoading from './fixtures/uploadusers-loading';
|
|
31
30
|
import fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';
|
|
32
31
|
import fixtureUploadusers from './fixtures/uploadusers';
|
|
32
|
+
import fixtureWizardAddCoursesPlaylist from './fixtures/wizard-add-courses-playlist';
|
|
33
|
+
import fixtureWizardFormCreatePlaylist from './fixtures/wizard-form-create-playlist';
|
|
34
|
+
import fixtureWizardFormEditPlaylist from './fixtures/wizard-form-edit-playlist';
|
|
35
|
+
import fixtureWizardPopulationsPlaylist from './fixtures/wizard-populations-playlist';
|
|
36
|
+
import fixtureWizardTranslatePlaylist from './fixtures/wizard-translate-playlist';
|
|
33
37
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {
|
|
34
38
|
t.pass();
|
|
35
39
|
forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {
|
|
@@ -57,11 +61,15 @@ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSucces
|
|
|
57
61
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);
|
|
58
62
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);
|
|
59
63
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);
|
|
60
|
-
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Manageusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusers);
|
|
61
64
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);
|
|
62
65
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);
|
|
63
66
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);
|
|
64
67
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);
|
|
65
68
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);
|
|
66
69
|
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);
|
|
70
|
+
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardAddCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardAddCoursesPlaylist);
|
|
71
|
+
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormCreatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormCreatePlaylist);
|
|
72
|
+
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormEditPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormEditPlaylist);
|
|
73
|
+
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);
|
|
74
|
+
test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);
|
|
67
75
|
//# sourceMappingURL=fixtures.js.map
|