@coorpacademy/components 10.13.3-alpha.14 → 10.13.3-alpha.20
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/drag-and-drop/index.js +9 -11
- package/es/atom/drag-and-drop/index.js.map +1 -1
- package/es/atom/drag-and-drop/style.css +10 -25
- package/es/atom/drag-and-drop/test/dragging.js +8 -1
- package/es/atom/drag-and-drop/test/dragging.js.map +1 -1
- package/es/atom/drag-and-drop/test/fixtures/clean-and-modified.js +12 -0
- package/es/atom/drag-and-drop/test/fixtures/clean-and-modified.js.map +1 -0
- package/es/atom/drag-and-drop/test/fixtures/default.js +0 -1
- package/es/atom/drag-and-drop/test/fixtures/default.js.map +1 -1
- package/es/atom/drag-and-drop/test/fixtures/error.js.map +1 -1
- package/es/atom/drag-and-drop/test/fixtures/loading.js +1 -2
- package/es/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
- package/es/atom/drag-and-drop/test/fixtures/modified.js.map +1 -1
- package/es/atom/drag-and-drop/test/fixtures/with-children.js +1 -15
- package/es/atom/drag-and-drop/test/fixtures/with-children.js.map +1 -1
- package/es/atom/drag-and-drop/test/fixtures/with-image.js +0 -1
- package/es/atom/drag-and-drop/test/fixtures/with-image.js.map +1 -1
- package/es/atom/drag-and-drop/test/fixtures/{withLongDescription.js → with-long-description.js} +1 -1
- package/es/atom/drag-and-drop/test/fixtures/with-long-description.js.map +1 -0
- package/es/atom/drag-and-drop/test/fixtures/with-video.js +0 -1
- package/es/atom/drag-and-drop/test/fixtures/with-video.js.map +1 -1
- package/es/atom/drag-and-drop/test/fixtures.js +4 -2
- package/es/atom/drag-and-drop/test/fixtures.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/clean-modified.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/desktop.js +1 -2
- package/es/atom/image-upload/test/fixtures/desktop.js.map +1 -1
- package/es/atom/image-upload/test/fixtures/mobile.js +1 -2
- package/es/atom/image-upload/test/fixtures/mobile.js.map +1 -1
- package/es/atom/input-text/style.css +1 -1
- package/es/atom/input-text-with-title/index.js +4 -2
- package/es/atom/input-text-with-title/index.js.map +1 -1
- package/es/atom/input-text-with-title/style.css +6 -2
- package/es/atom/input-text-with-title/test/fixtures/error.js +3 -1
- package/es/atom/input-text-with-title/test/fixtures/error.js.map +1 -1
- package/es/atom/select/index.js +4 -1
- package/es/atom/select/index.js.map +1 -1
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/brand-form-group/style.css +1 -1
- package/es/molecule/course-sections/style.css +1 -1
- package/es/molecule/drag-and-drop-wrapper/index.js +39 -0
- package/es/molecule/drag-and-drop-wrapper/index.js.map +1 -0
- package/es/molecule/drag-and-drop-wrapper/style.css +15 -0
- package/es/molecule/drag-and-drop-wrapper/test/fixtures/default.js +9 -0
- package/es/molecule/drag-and-drop-wrapper/test/fixtures/default.js.map +1 -0
- package/es/molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops.js +10 -0
- package/es/molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops.js.map +1 -0
- package/es/molecule/drag-and-drop-wrapper/test/fixtures.js +15 -0
- package/es/molecule/drag-and-drop-wrapper/test/fixtures.js.map +1 -0
- package/es/molecule/setup-slide/index.js.map +1 -1
- package/es/molecule/setup-slide/style.css +1 -1
- package/es/molecule/setup-slide/test/fixtures/without-upload-image.js +41 -0
- package/es/molecule/setup-slide/test/fixtures/without-upload-image.js.map +1 -0
- package/es/molecule/setup-slide/test/fixtures.js +2 -0
- package/es/molecule/setup-slide/test/fixtures.js.map +1 -1
- package/es/molecule/setup-slider/test/fixtures/default.js +8 -4
- package/es/molecule/setup-slider/test/fixtures/default.js.map +1 -1
- package/es/organism/brand-form/test/fixtures/lms.js +14 -0
- package/es/organism/brand-form/test/fixtures/lms.js.map +1 -1
- package/es/organism/course-selection/test/fixtures/loading.js.map +1 -1
- package/es/organism/search-and-chips-results/test/fixtures/loading.js.map +1 -1
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/test/fixtures.js +0 -2
- package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/lib/atom/drag-and-drop/index.js +10 -12
- package/lib/atom/drag-and-drop/index.js.map +1 -1
- package/lib/atom/drag-and-drop/style.css +10 -25
- package/lib/atom/drag-and-drop/test/dragging.js +8 -1
- package/lib/atom/drag-and-drop/test/dragging.js.map +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/clean-and-modified.js +21 -0
- package/lib/atom/drag-and-drop/test/fixtures/clean-and-modified.js.map +1 -0
- package/lib/atom/drag-and-drop/test/fixtures/default.js +0 -1
- package/lib/atom/drag-and-drop/test/fixtures/default.js.map +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/error.js.map +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/loading.js +1 -2
- package/lib/atom/drag-and-drop/test/fixtures/loading.js.map +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/modified.js.map +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/with-children.js +1 -20
- package/lib/atom/drag-and-drop/test/fixtures/with-children.js.map +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/with-image.js +0 -1
- package/lib/atom/drag-and-drop/test/fixtures/with-image.js.map +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/{withLongDescription.js → with-long-description.js} +1 -1
- package/lib/atom/drag-and-drop/test/fixtures/with-long-description.js.map +1 -0
- package/lib/atom/drag-and-drop/test/fixtures/with-video.js +0 -1
- package/lib/atom/drag-and-drop/test/fixtures/with-video.js.map +1 -1
- package/lib/atom/drag-and-drop/test/fixtures.js +6 -3
- package/lib/atom/drag-and-drop/test/fixtures.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/clean-modified.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/desktop.js +1 -2
- package/lib/atom/image-upload/test/fixtures/desktop.js.map +1 -1
- package/lib/atom/image-upload/test/fixtures/mobile.js +1 -2
- package/lib/atom/image-upload/test/fixtures/mobile.js.map +1 -1
- package/lib/atom/input-text/style.css +1 -1
- package/lib/atom/input-text-with-title/index.js +4 -2
- package/lib/atom/input-text-with-title/index.js.map +1 -1
- package/lib/atom/input-text-with-title/style.css +6 -2
- package/lib/atom/input-text-with-title/test/fixtures/error.js +3 -1
- package/lib/atom/input-text-with-title/test/fixtures/error.js.map +1 -1
- package/lib/atom/select/index.js +4 -1
- package/lib/atom/select/index.js.map +1 -1
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/brand-form-group/style.css +1 -1
- package/lib/molecule/course-sections/style.css +1 -1
- package/lib/molecule/drag-and-drop-wrapper/index.js +49 -0
- package/lib/molecule/drag-and-drop-wrapper/index.js.map +1 -0
- package/lib/molecule/drag-and-drop-wrapper/style.css +15 -0
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures/default.js +19 -0
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures/default.js.map +1 -0
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops.js +21 -0
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures/two-drag-and-drops.js.map +1 -0
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js +25 -0
- package/lib/molecule/drag-and-drop-wrapper/test/fixtures.js.map +1 -0
- package/lib/molecule/setup-slide/index.js.map +1 -1
- package/lib/molecule/setup-slide/style.css +1 -1
- package/lib/molecule/setup-slide/test/fixtures/without-upload-image.js +46 -0
- package/lib/molecule/setup-slide/test/fixtures/without-upload-image.js.map +1 -0
- package/lib/molecule/setup-slide/test/fixtures.js +3 -0
- package/lib/molecule/setup-slide/test/fixtures.js.map +1 -1
- package/lib/molecule/setup-slider/test/fixtures/default.js +7 -2
- package/lib/molecule/setup-slider/test/fixtures/default.js.map +1 -1
- package/lib/organism/brand-form/test/fixtures/lms.js +14 -0
- package/lib/organism/brand-form/test/fixtures/lms.js.map +1 -1
- package/lib/organism/course-selection/test/fixtures/loading.js.map +1 -1
- package/lib/organism/search-and-chips-results/test/fixtures/loading.js.map +1 -1
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/test/fixtures.js +0 -3
- package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
- package/package.json +2 -2
- package/es/atom/drag-and-drop/test/fixtures/withLongDescription.js.map +0 -1
- package/lib/atom/drag-and-drop/test/fixtures/withLongDescription.js.map +0 -1
|
@@ -0,0 +1,46 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
exports.__esModule = true;
|
|
4
|
+
exports.default = void 0;
|
|
5
|
+
var _default = {
|
|
6
|
+
props: {
|
|
7
|
+
fields: [{
|
|
8
|
+
type: 'select',
|
|
9
|
+
title: 'Text position',
|
|
10
|
+
options: [{
|
|
11
|
+
name: 'Left',
|
|
12
|
+
value: 'Pouet',
|
|
13
|
+
selected: false
|
|
14
|
+
}, {
|
|
15
|
+
name: 'Center',
|
|
16
|
+
value: 'Pouet2',
|
|
17
|
+
selected: true
|
|
18
|
+
}, {
|
|
19
|
+
name: 'Right',
|
|
20
|
+
value: 'Pouet3',
|
|
21
|
+
selected: false
|
|
22
|
+
}],
|
|
23
|
+
onChange: value => console.log(value)
|
|
24
|
+
}, {
|
|
25
|
+
type: 'switch',
|
|
26
|
+
title: 'Light color',
|
|
27
|
+
value: false
|
|
28
|
+
}, {
|
|
29
|
+
type: 'readonly',
|
|
30
|
+
title: 'Informative input',
|
|
31
|
+
value: 'Some data displayed to the user'
|
|
32
|
+
}, {
|
|
33
|
+
type: 'doublestep',
|
|
34
|
+
toggleValue: 'Delete',
|
|
35
|
+
confirmValue: 'Confirm',
|
|
36
|
+
confirmDisabled: false,
|
|
37
|
+
cancelValue: 'Cancel',
|
|
38
|
+
description: "You are about to delete some important data. Click 'Confirm' to proceed.",
|
|
39
|
+
textValidation: false,
|
|
40
|
+
isPending: false,
|
|
41
|
+
onClick: () => true
|
|
42
|
+
}]
|
|
43
|
+
}
|
|
44
|
+
};
|
|
45
|
+
exports.default = _default;
|
|
46
|
+
//# sourceMappingURL=without-upload-image.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/setup-slide/test/fixtures/without-upload-image.js"],"names":["props","fields","type","title","options","name","value","selected","onChange","console","log","toggleValue","confirmValue","confirmDisabled","cancelValue","description","textValidation","isPending","onClick"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,IAAI,EAAE,QADR;AAEEC,MAAAA,KAAK,EAAE,eAFT;AAGEC,MAAAA,OAAO,EAAE,CACP;AACEC,QAAAA,IAAI,EAAE,MADR;AAEEC,QAAAA,KAAK,EAAE,OAFT;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OADO,EAMP;AACEF,QAAAA,IAAI,EAAE,QADR;AAEEC,QAAAA,KAAK,EAAE,QAFT;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OANO,EAWP;AACEF,QAAAA,IAAI,EAAE,OADR;AAEEC,QAAAA,KAAK,EAAE,QAFT;AAGEC,QAAAA,QAAQ,EAAE;AAHZ,OAXO,CAHX;AAoBEC,MAAAA,QAAQ,EAAEF,KAAK,IAAIG,OAAO,CAACC,GAAR,CAAYJ,KAAZ;AApBrB,KADM,EAuBN;AACEJ,MAAAA,IAAI,EAAE,QADR;AAEEC,MAAAA,KAAK,EAAE,aAFT;AAGEG,MAAAA,KAAK,EAAE;AAHT,KAvBM,EA4BN;AACEJ,MAAAA,IAAI,EAAE,UADR;AAEEC,MAAAA,KAAK,EAAE,mBAFT;AAGEG,MAAAA,KAAK,EAAE;AAHT,KA5BM,EAiCN;AACEJ,MAAAA,IAAI,EAAE,YADR;AAEES,MAAAA,WAAW,EAAE,QAFf;AAGEC,MAAAA,YAAY,EAAE,SAHhB;AAIEC,MAAAA,eAAe,EAAE,KAJnB;AAKEC,MAAAA,WAAW,EAAE,QALf;AAMEC,MAAAA,WAAW,EAAE,0EANf;AAOEC,MAAAA,cAAc,EAAE,KAPlB;AAQEC,MAAAA,SAAS,EAAE,KARb;AASEC,MAAAA,OAAO,EAAE,MAAM;AATjB,KAjCM;AADH;AADM,C","sourcesContent":["export default {\n props: {\n fields: [\n {\n type: 'select',\n title: 'Text position',\n options: [\n {\n name: 'Left',\n value: 'Pouet',\n selected: false\n },\n {\n name: 'Center',\n value: 'Pouet2',\n selected: true\n },\n {\n name: 'Right',\n value: 'Pouet3',\n selected: false\n }\n ],\n onChange: value => console.log(value)\n },\n {\n type: 'switch',\n title: 'Light color',\n value: false\n },\n {\n type: 'readonly',\n title: 'Informative input',\n value: 'Some data displayed to the user'\n },\n {\n type: 'doublestep',\n toggleValue: 'Delete',\n confirmValue: 'Confirm',\n confirmDisabled: false,\n cancelValue: 'Cancel',\n description: \"You are about to delete some important data. Click 'Confirm' to proceed.\",\n textValidation: false,\n isPending: false,\n onClick: () => true\n }\n ]\n }\n};\n"],"file":"without-upload-image.js"}
|
|
@@ -20,6 +20,8 @@ var _default = _interopRequireDefault(require("./fixtures/default"));
|
|
|
20
20
|
|
|
21
21
|
var _splitForm = _interopRequireDefault(require("./fixtures/split-form"));
|
|
22
22
|
|
|
23
|
+
var _withoutUploadImage = _interopRequireDefault(require("./fixtures/without-upload-image"));
|
|
24
|
+
|
|
23
25
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
24
26
|
|
|
25
27
|
(0, _ava.default)('Molecule › MoleculeSetupSlide > should have valid propTypes', t => {
|
|
@@ -34,4 +36,5 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
34
36
|
(0, _ava.default)('Molecule › MoleculeSetupSlide › CreateNewCohort › should be rendered', _renderComponent.default, _.default, _createNewCohort.default);
|
|
35
37
|
(0, _ava.default)('Molecule › MoleculeSetupSlide › Default › should be rendered', _renderComponent.default, _.default, _default.default);
|
|
36
38
|
(0, _ava.default)('Molecule › MoleculeSetupSlide › SplitForm › should be rendered', _renderComponent.default, _.default, _splitForm.default);
|
|
39
|
+
(0, _ava.default)('Molecule › MoleculeSetupSlide › WithoutUploadImage › should be rendered', _renderComponent.default, _.default, _withoutUploadImage.default);
|
|
37
40
|
//# sourceMappingURL=fixtures.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/molecule/setup-slide/test/fixtures.js"],"names":["t","pass","MoleculeSetupSlide","propTypes","value","key","not","undefined","renderComponentMacro","fixtureAlertMessage","fixtureCheckbox","fixtureCohort","fixtureCreateNewCohort","fixtureDefault","fixtureSplitForm"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,6DAAL,EAAoEA,CAAC,IAAI;AACvEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAmBC,SAA3B,EAAsC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACpDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uDAAsDF,GAAI,mEAAnF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,mEAAL,EAA0EG,wBAA1E,EAAgGN,SAAhG,EAAoHO,qBAApH;AACA,kBAAK,+DAAL,EAAsED,wBAAtE,EAA4FN,SAA5F,EAAgHQ,iBAAhH;AACA,kBAAK,6DAAL,EAAoEF,wBAApE,EAA0FN,SAA1F,EAA8GS,eAA9G;AACA,kBAAK,sEAAL,EAA6EH,wBAA7E,EAAmGN,SAAnG,EAAuHU,wBAAvH;AACA,kBAAK,8DAAL,EAAqEJ,wBAArE,EAA2FN,SAA3F,EAA+GW,gBAA/G;AACA,kBAAK,gEAAL,EAAuEL,wBAAvE,EAA6FN,SAA7F,EAAiHY,kBAAjH","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeSetupSlide from '..';\nimport fixtureAlertMessage from './fixtures/alert-message';\nimport fixtureCheckbox from './fixtures/checkbox';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureCreateNewCohort from './fixtures/create-new-cohort';\nimport fixtureDefault from './fixtures/default';\nimport fixtureSplitForm from './fixtures/split-form';\n\ntest('Molecule › MoleculeSetupSlide > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeSetupSlide.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeSetupSlide.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeSetupSlide › AlertMessage › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureAlertMessage);\ntest('Molecule › MoleculeSetupSlide › Checkbox › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureCheckbox);\ntest('Molecule › MoleculeSetupSlide › Cohort › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureCohort);\ntest('Molecule › MoleculeSetupSlide › CreateNewCohort › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureCreateNewCohort);\ntest('Molecule › MoleculeSetupSlide › Default › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureDefault);\ntest('Molecule › MoleculeSetupSlide › SplitForm › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureSplitForm);\n"],"file":"fixtures.js"}
|
|
1
|
+
{"version":3,"sources":["../../../../src/molecule/setup-slide/test/fixtures.js"],"names":["t","pass","MoleculeSetupSlide","propTypes","value","key","not","undefined","renderComponentMacro","fixtureAlertMessage","fixtureCheckbox","fixtureCohort","fixtureCreateNewCohort","fixtureDefault","fixtureSplitForm","fixtureWithoutUploadImage"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,6DAAL,EAAoEA,CAAC,IAAI;AACvEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAmBC,SAA3B,EAAsC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACpDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,uDAAsDF,GAAI,mEAAnF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,mEAAL,EAA0EG,wBAA1E,EAAgGN,SAAhG,EAAoHO,qBAApH;AACA,kBAAK,+DAAL,EAAsED,wBAAtE,EAA4FN,SAA5F,EAAgHQ,iBAAhH;AACA,kBAAK,6DAAL,EAAoEF,wBAApE,EAA0FN,SAA1F,EAA8GS,eAA9G;AACA,kBAAK,sEAAL,EAA6EH,wBAA7E,EAAmGN,SAAnG,EAAuHU,wBAAvH;AACA,kBAAK,8DAAL,EAAqEJ,wBAArE,EAA2FN,SAA3F,EAA+GW,gBAA/G;AACA,kBAAK,gEAAL,EAAuEL,wBAAvE,EAA6FN,SAA7F,EAAiHY,kBAAjH;AACA,kBAAK,yEAAL,EAAgFN,wBAAhF,EAAsGN,SAAtG,EAA0Ha,2BAA1H","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeSetupSlide from '..';\nimport fixtureAlertMessage from './fixtures/alert-message';\nimport fixtureCheckbox from './fixtures/checkbox';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureCreateNewCohort from './fixtures/create-new-cohort';\nimport fixtureDefault from './fixtures/default';\nimport fixtureSplitForm from './fixtures/split-form';\nimport fixtureWithoutUploadImage from './fixtures/without-upload-image';\n\ntest('Molecule › MoleculeSetupSlide > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeSetupSlide.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeSetupSlide.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeSetupSlide › AlertMessage › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureAlertMessage);\ntest('Molecule › MoleculeSetupSlide › Checkbox › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureCheckbox);\ntest('Molecule › MoleculeSetupSlide › Cohort › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureCohort);\ntest('Molecule › MoleculeSetupSlide › CreateNewCohort › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureCreateNewCohort);\ntest('Molecule › MoleculeSetupSlide › Default › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureDefault);\ntest('Molecule › MoleculeSetupSlide › SplitForm › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureSplitForm);\ntest('Molecule › MoleculeSetupSlide › WithoutUploadImage › should be rendered', renderComponentMacro, MoleculeSetupSlide, fixtureWithoutUploadImage);\n"],"file":"fixtures.js"}
|
|
@@ -5,11 +5,16 @@ exports.default = void 0;
|
|
|
5
5
|
|
|
6
6
|
var _default2 = _interopRequireDefault(require("../../../setup-slide/test/fixtures/default"));
|
|
7
7
|
|
|
8
|
+
var _withoutUploadImage = _interopRequireDefault(require("../../../setup-slide/test/fixtures/without-upload-image"));
|
|
9
|
+
|
|
8
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
9
11
|
|
|
10
12
|
const {
|
|
11
|
-
props
|
|
13
|
+
props: withImage
|
|
12
14
|
} = _default2.default;
|
|
15
|
+
const {
|
|
16
|
+
props: withoutImage
|
|
17
|
+
} = _withoutUploadImage.default;
|
|
13
18
|
var _default = {
|
|
14
19
|
props: {
|
|
15
20
|
tabProps: [{
|
|
@@ -19,7 +24,7 @@ var _default = {
|
|
|
19
24
|
}, {
|
|
20
25
|
title: '3'
|
|
21
26
|
}],
|
|
22
|
-
slides: [
|
|
27
|
+
slides: [withImage, withoutImage, withoutImage]
|
|
23
28
|
}
|
|
24
29
|
};
|
|
25
30
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/molecule/setup-slider/test/fixtures/default.js"],"names":["props","
|
|
1
|
+
{"version":3,"sources":["../../../../../src/molecule/setup-slider/test/fixtures/default.js"],"names":["props","withImage","withUploadImage","withoutImage","withoutUploadImage","tabProps","title","slides"],"mappings":";;;;;AAAA;;AACA;;;;AAEA,MAAM;AAACA,EAAAA,KAAK,EAAEC;AAAR,IAAqBC,iBAA3B;AACA,MAAM;AAACF,EAAAA,KAAK,EAAEG;AAAR,IAAwBC,2BAA9B;eAEe;AACbJ,EAAAA,KAAK,EAAE;AACLK,IAAAA,QAAQ,EAAE,CACR;AACEC,MAAAA,KAAK,EAAE;AADT,KADQ,EAIR;AACEA,MAAAA,KAAK,EAAE;AADT,KAJQ,EAOR;AACEA,MAAAA,KAAK,EAAE;AADT,KAPQ,CADL;AAYLC,IAAAA,MAAM,EAAE,CAACN,SAAD,EAAYE,YAAZ,EAA0BA,YAA1B;AAZH;AADM,C","sourcesContent":["import withUploadImage from '../../../setup-slide/test/fixtures/default';\nimport withoutUploadImage from '../../../setup-slide/test/fixtures/without-upload-image';\n\nconst {props: withImage} = withUploadImage;\nconst {props: withoutImage} = withoutUploadImage;\n\nexport default {\n props: {\n tabProps: [\n {\n title: '1'\n },\n {\n title: '2'\n },\n {\n title: '3'\n }\n ],\n slides: [withImage, withoutImage, withoutImage]\n }\n};\n"],"file":"default.js"}
|
|
@@ -195,6 +195,20 @@ var _default = {
|
|
|
195
195
|
required: true,
|
|
196
196
|
value: '',
|
|
197
197
|
onChange: () => console.log('dispatch Provider')
|
|
198
|
+
}, {
|
|
199
|
+
description: 'This is where you can load a custom logo (that of Coorpacademy, the client, or one specific to the learning platform) which will be added at the bottom right of the thumbnails of the different courses in SAP.<br /><br />Max file size: 5MO. Recommended format: PNG. NB: The logo will be re-sized by the media service (height = 125px & wide = 400px), therefore, a horizontal format is highly suggested.',
|
|
200
|
+
error: null,
|
|
201
|
+
imageTypes: ['svg+xml', 'jpg', 'png'],
|
|
202
|
+
key: 'payload.lms.92be090d-12a8-4a8c-a04a-5f2e89989169.watermark',
|
|
203
|
+
loading: false,
|
|
204
|
+
modified: true,
|
|
205
|
+
onChange: () => console.log('on change'),
|
|
206
|
+
onReset: () => console.log('on reset'),
|
|
207
|
+
previewLabel: 'Preview',
|
|
208
|
+
required: false,
|
|
209
|
+
title: 'Thumbnail Logo',
|
|
210
|
+
type: 'image',
|
|
211
|
+
uploadLabel: 'Upload'
|
|
198
212
|
}, {
|
|
199
213
|
type: 'switch',
|
|
200
214
|
title: 'Course',
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/organism/brand-form/test/fixtures/lms.js"],"names":["props","groups","title","fieldsLayout","fields","type","options","name","value","onChange","console","log","submitValue","onClick","subtitle","tabProps","slides","placeholder","required","description","selected","toggleValue","confirmValue","confirmDisabled","cancelValue","textValidation","isPending"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,0BADT;AAEEC,MAAAA,YAAY,EAAE,MAFhB;AAGEC,MAAAA,MAAM,EAAE,CACN;AACEC,QAAAA,IAAI,EAAE,QADR;AAEEC,QAAAA,OAAO,EAAE,CACP;AAACC,UAAAA,IAAI,EAAE,EAAP;AAAWC,UAAAA,KAAK,EAAE;AAAlB,SADO,EAEP;AAACD,UAAAA,IAAI,EAAE,MAAP;AAAeC,UAAAA,KAAK,EAAE;AAAtB,SAFO,EAGP;AAACD,UAAAA,IAAI,EAAE,KAAP;AAAcC,UAAAA,KAAK,EAAE;AAArB,SAHO,EAIP;AAACD,UAAAA,IAAI,EAAE,MAAP;AAAeC,UAAAA,KAAK,EAAE;AAAtB,SAJO,CAFX;AAQEC,QAAAA,QAAQ,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,oBAAZ;AARlB,OADM,EAWN;AACEN,QAAAA,IAAI,EAAE,QADR;AAEEO,QAAAA,WAAW,EAAE,KAFf;AAGEC,QAAAA,OAAO,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,eAAZ;AAHjB,OAXM;AAHV,KADM,EAsBN;AACET,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,mBAAZ;AALlB,WArBM,EA4BN;AACEN,YAAAA,IAAI,EAAE,MADR;AAEEH,YAAAA,KAAK,EAAE,UAFT;AAGEiB,YAAAA,WAAW,EAAE,uCAHf;AAIED,YAAAA,QAAQ,EAAE,IAJZ;AAKEV,YAAAA,KAAK,EAAE,EALT;AAMEC,YAAAA,QAAQ,EAAE,MAAMC,OAAO,CAACC,GAAR,CAAY,mBAAZ;AANlB,WA5BM,EAoCN;AACEN,YAAAA,IAAI,EAAE,YADR;AAEEgB,YAAAA,WAAW,EAAE,sBAFf;AAGEC,YAAAA,YAAY,EAAE,SAHhB;AAIEC,YAAAA,eAAe,EAAE,KAJnB;AAKEC,YAAAA,WAAW,EAAE,QALf;AAMEL,YAAAA,WAAW,EACT,6EAPJ;AAQEM,YAAAA,cAAc,EAAE,KARlB;AASEC,YAAAA,SAAS,EAAE,KATb;AAUEb,YAAAA,OAAO,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,8BAAZ;AAVjB,WApCM;AADV,SA5NM;AAbV,OADM;AAHV,KAtBM;AADH;AADM,C","sourcesContent":["export default {\n props: {\n groups: [\n {\n title: 'Add an LMS configuration',\n fieldsLayout: 'grid',\n fields: [\n {\n type: 'select',\n options: [\n {name: '', value: ''},\n {name: 'CSOD', value: 'CSOD'},\n {name: 'SAP', value: 'SAP'},\n {name: 'XAPI', value: 'XAPI'}\n ],\n onChange: () => console.log('dispatch newConfig')\n },\n {\n type: 'button',\n submitValue: 'Add',\n onClick: () => console.log('add new slide')\n }\n ]\n },\n {\n title: 'LMS configuration',\n subtitle: 'Configure the coorpacademy integration to LMS',\n fields: [\n {\n type: 'slider',\n tabProps: [\n {\n title: 'CSOD'\n },\n {\n title: 'SAP'\n },\n {\n title: 'XAPI'\n }\n ],\n slides: [\n {\n fields: [\n {\n type: 'switch',\n title: 'Enabled',\n value: true,\n onChange: () => console.log('dispatch Enabled')\n },\n {\n type: 'text',\n title: 'URL',\n placeholder: 'https://some.fake.csod.hostname',\n required: true,\n value: 'https://partner0125.csod.com',\n onChange: () => console.log('dispatch URL')\n },\n {\n type: 'text',\n title: 'Client ID',\n required: true,\n value: 'Some-client-id',\n onChange: () => console.log('dispatch Client ID')\n },\n {\n type: 'text',\n title: 'Client Secret',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Client Secret')\n },\n {\n type: 'text',\n title: 'Provider',\n description: 'This is the name you gave to Coorpacademy in CSOD.',\n required: true,\n value: 'COORPACADEMY',\n onChange: () => console.log('dispatch Provider')\n },\n {\n type: 'readonly',\n title: 'Material type',\n value: 'External Links'\n },\n {\n type: 'select',\n title: 'LMS Available Language Source',\n options: [\n {\n name: 'English',\n value: 'English',\n selected: false\n },\n {\n name: 'Français',\n value: 'Français',\n selected: true\n },\n {\n name: 'Español',\n value: 'Español',\n selected: true\n }\n ],\n onChange: value => console.log(value)\n },\n {\n type: 'switch',\n title: 'Course',\n value: true,\n onChange: () => console.log('dispatch Course')\n },\n {\n type: 'switch',\n title: 'Level',\n value: true,\n onChange: () => console.log('dispatch Level')\n },\n {\n type: 'switch',\n title: 'Chapter',\n value: false,\n onChange: () => console.log('dispatch Chapter')\n },\n {\n type: 'switch',\n title: 'Progression',\n value: true,\n onChange: () => console.log('dispatch Progression')\n },\n {\n type: 'text',\n title: 'Title customization',\n description: 'Suffix at the end of the title',\n required: false,\n value: '- SEIQ',\n onChange: () => console.log('dispatch Title customization')\n },\n {\n type: 'readonly',\n title: 'API used to send progressions',\n value: 'EXPRESS_CLASS',\n description: 'This is the API chosen to send progressions'\n },\n {\n type: 'text',\n title: 'Facilitator ID',\n description: 'Used to prevent errors with Express Class',\n required: true,\n value: '1223785',\n onChange: () => console.log('dispatch Facilitator ID')\n },\n {\n type: 'doublestep',\n toggleValue: 'Delete Configuration',\n confirmValue: 'Confirm',\n confirmDisabled: false,\n cancelValue: 'Cancel',\n description:\n 'You are about to delete the CSOD configuration. Click \"confirm\" to proceed.',\n textValidation: false,\n isPending: false,\n onClick: () => console.log('dispatch without this config')\n }\n ]\n },\n {\n fields: [\n {\n type: 'switch',\n title: 'Enabled',\n value: false,\n onChange: () => console.log('dispatch Enabled')\n },\n {\n type: 'text',\n title: 'Contact email address',\n placeholder: '',\n description:\n 'The email address we should notify when new content has been exported.',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Email address')\n },\n {\n type: 'text',\n title: 'URL',\n placeholder: 'https://some.fake.sap.hostname',\n required: true,\n value: '',\n onChange: () => console.log('dispatch URL')\n },\n {\n type: 'text',\n title: 'Client ID',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Client ID')\n },\n {\n type: 'text',\n title: 'Client Secret',\n required: true,\n value: '',\n onChange: () => console.log('dispatch ClientSecret')\n },\n {\n type: 'text',\n title: 'Scope User ID',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Scope user ID')\n },\n {\n type: 'text',\n title: 'Scope Company ID',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Scope Company ID')\n },\n {\n type: 'text',\n title: 'Provider',\n description: 'This is the name you gave to Coorpacademy in SAP.',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Provider')\n },\n {\n type: 'switch',\n title: 'Course',\n value: false,\n onChange: () => console.log('dispatch Course')\n },\n {\n type: 'switch',\n title: 'Level',\n value: false,\n onChange: () => console.log('dispatch Level')\n },\n {\n type: 'switch',\n title: 'Chapter',\n value: false,\n onChange: () => console.log('dispatch Chapter')\n },\n {\n type: 'doublestep',\n toggleValue: 'Delete Configuration',\n confirmValue: 'Confirm',\n confirmDisabled: false,\n cancelValue: 'Cancel',\n description:\n 'You are about to delete the SAP configuration. Click \"confirm\" to proceed.',\n textValidation: false,\n isPending: false,\n onClick: () => console.log('dispatch without this config')\n }\n ]\n },\n {\n fields: [\n {\n type: 'switch',\n title: 'Enabled',\n value: false,\n onChange: () => console.log('dispatch Enabled')\n },\n {\n type: 'text',\n title: 'URL',\n placeholder: 'https://some.fake.csod.hostname',\n required: true,\n value: '',\n onChange: () => console.log('dispatch URL')\n },\n {\n type: 'readonly',\n title: 'Authentication type',\n value: 'basic',\n description: 'Authentication type can only have the \"basic\" value'\n },\n {\n type: 'text',\n title: 'Username',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Username')\n },\n {\n type: 'text',\n title: 'Password',\n description: 'this should be an input type password',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Password')\n },\n {\n type: 'doublestep',\n toggleValue: 'Delete Configuration',\n confirmValue: 'Confirm',\n confirmDisabled: false,\n cancelValue: 'Cancel',\n description:\n 'You are about to delete the XAPI configuration. Click \"confirm\" to proceed.',\n textValidation: false,\n isPending: false,\n onClick: () => console.log('dispatch without this config')\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n};\n"],"file":"lms.js"}
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/brand-form/test/fixtures/lms.js"],"names":["props","groups","title","fieldsLayout","fields","type","options","name","value","onChange","console","log","submitValue","onClick","subtitle","tabProps","slides","placeholder","required","description","selected","toggleValue","confirmValue","confirmDisabled","cancelValue","textValidation","isPending","error","imageTypes","key","loading","modified","onReset","previewLabel","uploadLabel"],"mappings":";;;;eAAe;AACbA,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAE,CACN;AACEC,MAAAA,KAAK,EAAE,0BADT;AAEEC,MAAAA,YAAY,EAAE,MAFhB;AAGEC,MAAAA,MAAM,EAAE,CACN;AACEC,QAAAA,IAAI,EAAE,QADR;AAEEC,QAAAA,OAAO,EAAE,CACP;AAACC,UAAAA,IAAI,EAAE,EAAP;AAAWC,UAAAA,KAAK,EAAE;AAAlB,SADO,EAEP;AAACD,UAAAA,IAAI,EAAE,MAAP;AAAeC,UAAAA,KAAK,EAAE;AAAtB,SAFO,EAGP;AAACD,UAAAA,IAAI,EAAE,KAAP;AAAcC,UAAAA,KAAK,EAAE;AAArB,SAHO,EAIP;AAACD,UAAAA,IAAI,EAAE,MAAP;AAAeC,UAAAA,KAAK,EAAE;AAAtB,SAJO,CAFX;AAQEC,QAAAA,QAAQ,E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,QALf;AAMEL,YAAAA,WAAW,EACT,6EAPJ;AAQEM,YAAAA,cAAc,EAAE,KARlB;AASEC,YAAAA,SAAS,EAAE,KATb;AAUEb,YAAAA,OAAO,EAAE,MAAMH,OAAO,CAACC,GAAR,CAAY,8BAAZ;AAVjB,WApCM;AADV,SA5OM;AAbV,OADM;AAHV,KAtBM;AADH;AADM,C","sourcesContent":["export default {\n props: {\n groups: [\n {\n title: 'Add an LMS configuration',\n fieldsLayout: 'grid',\n fields: [\n {\n type: 'select',\n options: [\n {name: '', value: ''},\n {name: 'CSOD', value: 'CSOD'},\n {name: 'SAP', value: 'SAP'},\n {name: 'XAPI', value: 'XAPI'}\n ],\n onChange: () => console.log('dispatch newConfig')\n },\n {\n type: 'button',\n submitValue: 'Add',\n onClick: () => console.log('add new slide')\n }\n ]\n },\n {\n title: 'LMS configuration',\n subtitle: 'Configure the coorpacademy integration to LMS',\n fields: [\n {\n type: 'slider',\n tabProps: [\n {\n title: 'CSOD'\n },\n {\n title: 'SAP'\n },\n {\n title: 'XAPI'\n }\n ],\n slides: [\n {\n fields: [\n {\n type: 'switch',\n title: 'Enabled',\n value: true,\n onChange: () => console.log('dispatch Enabled')\n },\n {\n type: 'text',\n title: 'URL',\n placeholder: 'https://some.fake.csod.hostname',\n required: true,\n value: 'https://partner0125.csod.com',\n onChange: () => console.log('dispatch URL')\n },\n {\n type: 'text',\n title: 'Client ID',\n required: true,\n value: 'Some-client-id',\n onChange: () => console.log('dispatch Client ID')\n },\n {\n type: 'text',\n title: 'Client Secret',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Client Secret')\n },\n {\n type: 'text',\n title: 'Provider',\n description: 'This is the name you gave to Coorpacademy in CSOD.',\n required: true,\n value: 'COORPACADEMY',\n onChange: () => console.log('dispatch Provider')\n },\n {\n type: 'readonly',\n title: 'Material type',\n value: 'External Links'\n },\n {\n type: 'select',\n title: 'LMS Available Language Source',\n options: [\n {\n name: 'English',\n value: 'English',\n selected: false\n },\n {\n name: 'Français',\n value: 'Français',\n selected: true\n },\n {\n name: 'Español',\n value: 'Español',\n selected: true\n }\n ],\n onChange: value => console.log(value)\n },\n {\n type: 'switch',\n title: 'Course',\n value: true,\n onChange: () => console.log('dispatch Course')\n },\n {\n type: 'switch',\n title: 'Level',\n value: true,\n onChange: () => console.log('dispatch Level')\n },\n {\n type: 'switch',\n title: 'Chapter',\n value: false,\n onChange: () => console.log('dispatch Chapter')\n },\n {\n type: 'switch',\n title: 'Progression',\n value: true,\n onChange: () => console.log('dispatch Progression')\n },\n {\n type: 'text',\n title: 'Title customization',\n description: 'Suffix at the end of the title',\n required: false,\n value: '- SEIQ',\n onChange: () => console.log('dispatch Title customization')\n },\n {\n type: 'readonly',\n title: 'API used to send progressions',\n value: 'EXPRESS_CLASS',\n description: 'This is the API chosen to send progressions'\n },\n {\n type: 'text',\n title: 'Facilitator ID',\n description: 'Used to prevent errors with Express Class',\n required: true,\n value: '1223785',\n onChange: () => console.log('dispatch Facilitator ID')\n },\n {\n type: 'doublestep',\n toggleValue: 'Delete Configuration',\n confirmValue: 'Confirm',\n confirmDisabled: false,\n cancelValue: 'Cancel',\n description:\n 'You are about to delete the CSOD configuration. Click \"confirm\" to proceed.',\n textValidation: false,\n isPending: false,\n onClick: () => console.log('dispatch without this config')\n }\n ]\n },\n {\n fields: [\n {\n type: 'switch',\n title: 'Enabled',\n value: false,\n onChange: () => console.log('dispatch Enabled')\n },\n {\n type: 'text',\n title: 'Contact email address',\n placeholder: '',\n description:\n 'The email address we should notify when new content has been exported.',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Email address')\n },\n {\n type: 'text',\n title: 'URL',\n placeholder: 'https://some.fake.sap.hostname',\n required: true,\n value: '',\n onChange: () => console.log('dispatch URL')\n },\n {\n type: 'text',\n title: 'Client ID',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Client ID')\n },\n {\n type: 'text',\n title: 'Client Secret',\n required: true,\n value: '',\n onChange: () => console.log('dispatch ClientSecret')\n },\n {\n type: 'text',\n title: 'Scope User ID',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Scope user ID')\n },\n {\n type: 'text',\n title: 'Scope Company ID',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Scope Company ID')\n },\n {\n type: 'text',\n title: 'Provider',\n description: 'This is the name you gave to Coorpacademy in SAP.',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Provider')\n },\n {\n description:\n 'This is where you can load a custom logo (that of Coorpacademy, the client, or one specific to the learning platform) which will be added at the bottom right of the thumbnails of the different courses in SAP.<br /><br />Max file size: 5MO. Recommended format: PNG. NB: The logo will be re-sized by the media service (height = 125px & wide = 400px), therefore, a horizontal format is highly suggested.',\n error: null,\n imageTypes: ['svg+xml', 'jpg', 'png'],\n key: 'payload.lms.92be090d-12a8-4a8c-a04a-5f2e89989169.watermark',\n loading: false,\n modified: true,\n onChange: () => console.log('on change'),\n onReset: () => console.log('on reset'),\n previewLabel: 'Preview',\n required: false,\n title: 'Thumbnail Logo',\n type: 'image',\n uploadLabel: 'Upload'\n },\n {\n type: 'switch',\n title: 'Course',\n value: false,\n onChange: () => console.log('dispatch Course')\n },\n {\n type: 'switch',\n title: 'Level',\n value: false,\n onChange: () => console.log('dispatch Level')\n },\n {\n type: 'switch',\n title: 'Chapter',\n value: false,\n onChange: () => console.log('dispatch Chapter')\n },\n {\n type: 'doublestep',\n toggleValue: 'Delete Configuration',\n confirmValue: 'Confirm',\n confirmDisabled: false,\n cancelValue: 'Cancel',\n description:\n 'You are about to delete the SAP configuration. Click \"confirm\" to proceed.',\n textValidation: false,\n isPending: false,\n onClick: () => console.log('dispatch without this config')\n }\n ]\n },\n {\n fields: [\n {\n type: 'switch',\n title: 'Enabled',\n value: false,\n onChange: () => console.log('dispatch Enabled')\n },\n {\n type: 'text',\n title: 'URL',\n placeholder: 'https://some.fake.csod.hostname',\n required: true,\n value: '',\n onChange: () => console.log('dispatch URL')\n },\n {\n type: 'readonly',\n title: 'Authentication type',\n value: 'basic',\n description: 'Authentication type can only have the \"basic\" value'\n },\n {\n type: 'text',\n title: 'Username',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Username')\n },\n {\n type: 'text',\n title: 'Password',\n description: 'this should be an input type password',\n required: true,\n value: '',\n onChange: () => console.log('dispatch Password')\n },\n {\n type: 'doublestep',\n toggleValue: 'Delete Configuration',\n confirmValue: 'Confirm',\n confirmDisabled: false,\n cancelValue: 'Cancel',\n description:\n 'You are about to delete the XAPI configuration. Click \"confirm\" to proceed.',\n textValidation: false,\n isPending: false,\n onClick: () => console.log('dispatch without this config')\n }\n ]\n }\n ]\n }\n ]\n }\n ]\n }\n};\n"],"file":"lms.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/organism/course-selection/test/fixtures/loading.js"],"names":["props","isLoading"],"mappings":";;;;;AAAA;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/course-selection/test/fixtures/loading.js"],"names":["props","isLoading"],"mappings":";;;;;AAAA;;;;;;qCAGKA,iB;AACHA,EAAAA,KAAK,wBACAA,kBAAMA,KADN;AAEHC,IAAAA,SAAS,EAAE;AAFR","sourcesContent":["import props from './default';\n\nexport default {\n ...props,\n props: {\n ...props.props,\n isLoading: true\n }\n};\n"],"file":"loading.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/organism/search-and-chips-results/test/fixtures/loading.js"],"names":["props","isLoading"],"mappings":";;;;;AAAA;;;;;;
|
|
1
|
+
{"version":3,"sources":["../../../../../src/organism/search-and-chips-results/test/fixtures/loading.js"],"names":["props","isLoading"],"mappings":";;;;;AAAA;;;;;;qCAGKA,iB;AACHA,EAAAA,KAAK,wBACAA,kBAAMA,KADN;AAEHC,IAAAA,SAAS,EAAE;AAFR","sourcesContent":["import props from './default';\n\nexport default {\n ...props,\n props: {\n ...props.props,\n isLoading: true\n }\n};\n"],"file":"loading.js"}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../src/template/back-office/brand-update/index.js"],"names":["getStyle","isSelected","style","selectedElement","unselectedElement","subTabsView","_subTabs","map","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","buildPopin","popin","buildTabs","selectedTab","e","showTabs","subTabs","undefined","buildContentView","content","loaderContainer","loader","buildDetailsView","details","BrandUpdate","props","leftNavigation","notificationsView","headerView","tabsView","contentView","detailsView","popinView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","PropTypes","arrayOf","shape","Banner","Header","string","isRequired","bool","oneOfType","BrandForm","oneOf","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","CmPopin","func"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,QAAQ,GAAGC,UAAU,IAAKA,UAAU,GAAGC,eAAMC,eAAT,GAA2BD,eAAME,iBAA3E;;AAEA,MAAMC,WAAW,GAAG,CAACC,QAAQ,GAAG,EAAZ,KAClBC,aAAIC,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,KAAgB,UAAhB,gBACC,6BAAC,qBAAD,eACMH,MADN;AAEE,EAAA,MAAM,EAAEV,QAAQ,CAACU,MAAM,CAACI,QAAR,CAFlB;AAGE,EAAA,SAAS,EAAE,KAHb;AAIE,EAAA,MAAM,EAAE;AAJV,GADD,gBAQC,6BAAC,iBAAD,eAAcJ,MAAd;AAAsB,EAAA,MAAM,EAAEV,QAAQ,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AAD,CAAhB;AAHC,KAtEa;AA2EtB1D,EAAAA,WAAW,EAAEgD,mBAAUkB;AA3ED,CAAxB;eA8EenC,W","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 WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\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 buildPopin = popin => {\n return popin ? (\n <div className={style.popin}>\n <CmPopin {...popin} />\n </div>\n ) : null;\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 ? find(e => e.selected, selectedTab.subTabs) : undefined;\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 className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\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 'list-content':\n return <ListItems {...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, popin, 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 const popinView = buildPopin(popin);\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 {popinView}\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 PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content'])\n })\n ]),\n popin: PropTypes.shape({...CmPopin.propTypes}),\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":["getStyle","isSelected","style","selectedElement","unselectedElement","subTabsView","_subTabs","map","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","buildPopin","popin","buildTabs","selectedTab","e","showTabs","subTabs","undefined","buildContentView","content","loaderContainer","loader","buildDetailsView","details","BrandUpdate","props","leftNavigation","notificationsView","headerView","tabsView","contentView","detailsView","popinView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","PropTypes","arrayOf","shape","Banner","Header","string","isRequired","bool","oneOfType","BrandForm","oneOf","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","CmPopin","func"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,QAAQ,GAAGC,UAAU,IAAKA,UAAU,GAAGC,eAAMC,eAAT,GAA2BD,eAAME,iBAA3E;;AAEA,MAAMC,WAAW,GAAG,CAACC,QAAQ,GAAG,EAAZ,KAClBC,aAAIC,OAAJ,CAAY;AAACC,EAAAA,GAAG,EAA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,mBAAUK,MAFjB;AAGE1D,IAAAA,IAAI,EAAEqD,mBAAUU,KAAV,CAAgB,CAAC,cAAD,CAAhB;AAHR,KA/B2B,CAApB,CAhCa;AAqEtBxC,EAAAA,KAAK,EAAE8B,mBAAUE,KAAV,cAAoBe,iBAAQlB,SAA5B,EArEe;AAsEtBjB,EAAAA,OAAO,EAAEkB,mBAAUE,KAAV,uBACJS,oBAAWZ,SADP;AAEP7C,IAAAA,GAAG,EAAE8C,mBAAUK,MAFR;AAGP1D,IAAAA,IAAI,EAAEqD,mBAAUU,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHC,KAtEa;AA2EtB1D,EAAAA,WAAW,EAAEgD,mBAAUkB;AA3ED,CAAxB;eA8EenC,W","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 WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\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 buildPopin = popin => {\n return popin ? (\n <div className={style.popin}>\n <CmPopin {...popin} />\n </div>\n ) : null;\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 ? find(e => e.selected, selectedTab.subTabs) : undefined;\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 className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\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 'list-content':\n return <ListItems {...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, popin, 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 const popinView = buildPopin(popin);\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 {popinView}\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 PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content'])\n })\n ]),\n popin: PropTypes.shape({...CmPopin.propTypes}),\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"}
|
|
@@ -44,8 +44,6 @@ var _lms = _interopRequireDefault(require("./fixtures/lms"));
|
|
|
44
44
|
|
|
45
45
|
var _loader = _interopRequireDefault(require("./fixtures/loader"));
|
|
46
46
|
|
|
47
|
-
var _lookandfeelErrorLogos = _interopRequireDefault(require("./fixtures/lookandfeel-error-logos"));
|
|
48
|
-
|
|
49
47
|
var _lookandfeelError = _interopRequireDefault(require("./fixtures/lookandfeel-error"));
|
|
50
48
|
|
|
51
49
|
var _lookandfeelModified = _interopRequireDefault(require("./fixtures/lookandfeel-modified"));
|
|
@@ -112,7 +110,6 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
112
110
|
(0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', _renderComponent.default, _.default, _lmsSuccess.default);
|
|
113
111
|
(0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', _renderComponent.default, _.default, _lms.default);
|
|
114
112
|
(0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', _renderComponent.default, _.default, _loader.default);
|
|
115
|
-
(0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelErrorLogos › should be rendered', _renderComponent.default, _.default, _lookandfeelErrorLogos.default);
|
|
116
113
|
(0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', _renderComponent.default, _.default, _lookandfeelError.default);
|
|
117
114
|
(0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', _renderComponent.default, _.default, _lookandfeelModified.default);
|
|
118
115
|
(0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', _renderComponent.default, _.default, _lookandfeelPending.default);
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["t","pass","TemplateBackOfficeBrandUpdate","propTypes","value","key","not","undefined","renderComponentMacro","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureListItemsArchived","fixtureListItemsDraft","fixtureListItemsPublishedWithPopin","fixtureListItemsPublished","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelErrorLogos","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","fixtureWizardAddCoursesPlaylist","fixtureWizardFormCreatePlaylist","fixtureWizardFormEditPlaylist","fixtureWizardOrganizeCoursesPlaylist","fixtureWizardPopulationsPlaylistWithPopin","fixtureWizardPopulationsPlaylist","fixtureWizardTranslatePlaylist"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,kFAAL,EAAyFA,CAAC,IAAI;AAC5FA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAA8BC,SAAtC,EAAiD,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/DL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,4EAA2EF,GAAI,mEAAxG;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,qFAAL,EAA4FG,wBAA5F,EAAkHN,SAAlH,EAAiJO,kBAAjJ;AACA,kBAAK,sFAAL,EAA6FD,wBAA7F,EAAmHN,SAAnH,EAAkJQ,mBAAlJ;AACA,kBAAK,uFAAL,EAA8FF,wBAA9F,EAAoHN,SAApH,EAAmJS,oBAAnJ;AACA,kBAAK,kFAAL,EAAyFH,wBAAzF,EAA+GN,SAA/G,EAA8IU,eAA9I;AACA,kBAAK,qFAAL,EAA4FJ,wBAA5F,EAAkHN,SAAlH,EAAiJW,kBAAjJ;AACA,kBAAK,+FAAL,EAAsGL,wBAAtG,EAA4HN,SAA5H,EAA2JY,4BAA3J;AACA,kBAAK,mFAAL,EAA0FN,wBAA1F,EAAgHN,SAAhH,EAA+Ia,gBAA/I;AACA,kBAAK,kGAAL,EAAyGP,wBAAzG,EAA+HN,SAA/H,EAA8Jc,+BAA9J;AACA,kBAAK,2FAAL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SAAxH,EAAuJgC,wBAAvJ;AACA,kBAAK,uFAAL,EAA8F1B,wBAA9F,EAAoHN,SAApH,EAAmJiC,oBAAnJ;AACA,kBAAK,uFAAL,EAA8F3B,wBAA9F,EAAoHN,SAApH,EAAmJkC,oBAAnJ;AACA,kBAAK,+EAAL,EAAsF5B,wBAAtF,EAA4GN,SAA5G,EAA2ImC,YAA3I;AACA,kBAAK,8FAAL,EAAqG7B,wBAArG,EAA2HN,SAA3H,EAA0JoC,2BAA1J;AACA,kBAAK,iGAAL,EAAwG9B,wBAAxG,EAA8HN,SAA9H,EAA6JqC,8BAA7J;AACA,kBAAK,uFAAL,EAA8F/B,wBAA9F,EAAoHN,SAApH,EAAmJsC,oBAAnJ;AACA,kBAAK,oGAAL,EAA2GhC,wBAA3G,EAAiIN,SAAjI,EAAgKuC,iCAAhK;AACA,kBAAK,oGAAL,EAA2GjC,wBAA3G,EAAiIN,SAAjI,EAAgKwC,iCAAhK;AACA,kBAAK,kGAAL,EAAyGlC,wBAAzG,EAA+HN,SAA/H,EAA8JyC,+BAA9J;AACA,kBAAK,yGAAL,EAAgHnC,wBAAhH,EAAsIN,SAAtI,EAAqK0C,sCAArK;AACA,kBAAK,8GAAL,EAAqHpC,wBAArH,EAA2IN,SAA3I,EAA0K2C,2CAA1K;AACA,kBAAK,qGAAL,EAA4GrC,wBAA5G,EAAkIN,SAAlI,EAAiK4C,kCAAjK;AACA,kBAAK,mGAAL,EAA0GtC,wBAA1G,EAAgIN,SAAhI,EAA+J6C,gCAA/J","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureListItemsArchived from './fixtures/list-items-archived';\nimport fixtureListItemsDraft from './fixtures/list-items-draft';\nimport fixtureListItemsPublishedWithPopin from './fixtures/list-items-published-with-popin';\nimport fixtureListItemsPublished from './fixtures/list-items-published';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelErrorLogos from './fixtures/lookandfeel-error-logos';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureQuickAccess from './fixtures/quick-access';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\nimport fixtureWizardAddCoursesPlaylist from './fixtures/wizard-add-courses-playlist';\nimport fixtureWizardFormCreatePlaylist from './fixtures/wizard-form-create-playlist';\nimport fixtureWizardFormEditPlaylist from './fixtures/wizard-form-edit-playlist';\nimport fixtureWizardOrganizeCoursesPlaylist from './fixtures/wizard-organize-courses-playlist';\nimport fixtureWizardPopulationsPlaylistWithPopin from './fixtures/wizard-populations-playlist-with-popin';\nimport fixtureWizardPopulationsPlaylist from './fixtures/wizard-populations-playlist';\nimport fixtureWizardTranslatePlaylist from './fixtures/wizard-translate-playlist';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsArchived › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsArchived);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsDraft › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsDraft);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublishedWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublishedWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublished › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublished);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelErrorLogos › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelErrorLogos);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardAddCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardAddCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormCreatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormCreatePlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormEditPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormEditPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardOrganizeCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardOrganizeCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylistWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylistWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);\n"],"file":"fixtures.js"}
|
|
1
|
+
{"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["t","pass","TemplateBackOfficeBrandUpdate","propTypes","value","key","not","undefined","renderComponentMacro","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureListItemsArchived","fixtureListItemsDraft","fixtureListItemsPublishedWithPopin","fixtureListItemsPublished","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","fixtureWizardAddCoursesPlaylist","fixtureWizardFormCreatePlaylist","fixtureWizardFormEditPlaylist","fixtureWizardOrganizeCoursesPlaylist","fixtureWizardPopulationsPlaylistWithPopin","fixtureWizardPopulationsPlaylist","fixtureWizardTranslatePlaylist"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,kFAAL,EAAyFA,CAAC,IAAI;AAC5FA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAA8BC,SAAtC,EAAiD,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAC/DL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,4EAA2EF,GAAI,mEAAxG;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,qFAAL,EAA4FG,wBAA5F,EAAkHN,SAAlH,EAAiJO,kBAAjJ;AACA,kBAAK,sFAAL,EAA6FD,wBAA7F,EAAmHN,SAAnH,EAAkJQ,mBAAlJ;AACA,kBAAK,uFAAL,EAA8FF,wBAA9F,EAAoHN,SAApH,EAAmJS,oBAAnJ;AACA,kBAAK,kFAAL,EAAyFH,wBAAzF,EAA+GN,SAA/G,EAA8IU,eAA9I;AACA,kBAAK,qFAAL,EAA4FJ,wBAA5F,EAAkHN,SAAlH,EAAiJW,kBAAjJ;AACA,kBAAK,+FAAL,EAAsGL,wBAAtG,EAA4HN,SAA5H,EAA2JY,4BAA3J;AACA,kBAAK,mFAAL,EAA0FN,wBAA1F,EAAgHN,SAAhH,EAA+Ia,gBAA/I;AACA,kBAAK,kGAAL,EAAyGP,wBAAzG,EAA+HN,SAA/H,EAA8Jc,+BAA9J;AAC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wBAA9F,EAAoHN,SAApH,EAAmJgC,oBAAnJ;AACA,kBAAK,uFAAL,EAA8F1B,wBAA9F,EAAoHN,SAApH,EAAmJiC,oBAAnJ;AACA,kBAAK,+EAAL,EAAsF3B,wBAAtF,EAA4GN,SAA5G,EAA2IkC,YAA3I;AACA,kBAAK,8FAAL,EAAqG5B,wBAArG,EAA2HN,SAA3H,EAA0JmC,2BAA1J;AACA,kBAAK,iGAAL,EAAwG7B,wBAAxG,EAA8HN,SAA9H,EAA6JoC,8BAA7J;AACA,kBAAK,uFAAL,EAA8F9B,wBAA9F,EAAoHN,SAApH,EAAmJqC,oBAAnJ;AACA,kBAAK,oGAAL,EAA2G/B,wBAA3G,EAAiIN,SAAjI,EAAgKsC,iCAAhK;AACA,kBAAK,oGAAL,EAA2GhC,wBAA3G,EAAiIN,SAAjI,EAAgKuC,iCAAhK;AACA,kBAAK,kGAAL,EAAyGjC,wBAAzG,EAA+HN,SAA/H,EAA8JwC,+BAA9J;AACA,kBAAK,yGAAL,EAAgHlC,wBAAhH,EAAsIN,SAAtI,EAAqKyC,sCAArK;AACA,kBAAK,8GAAL,EAAqHnC,wBAArH,EAA2IN,SAA3I,EAA0K0C,2CAA1K;AACA,kBAAK,qGAAL,EAA4GpC,wBAA5G,EAAkIN,SAAlI,EAAiK2C,kCAAjK;AACA,kBAAK,mGAAL,EAA0GrC,wBAA1G,EAAgIN,SAAhI,EAA+J4C,gCAA/J","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../../test/helpers/render-component';\nimport TemplateBackOfficeBrandUpdate from '..';\nimport fixtureAnalytics from './fixtures/analytics';\nimport fixtureAnimations from './fixtures/animations';\nimport fixtureCohortError from './fixtures/cohort-error';\nimport fixtureCohort from './fixtures/cohort';\nimport fixtureDashboard from './fixtures/dashboard';\nimport fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';\nimport fixtureDefault from './fixtures/default';\nimport fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';\nimport fixtureGeneralSettings from './fixtures/general-settings';\nimport fixtureListItemsArchived from './fixtures/list-items-archived';\nimport fixtureListItemsDraft from './fixtures/list-items-draft';\nimport fixtureListItemsPublishedWithPopin from './fixtures/list-items-published-with-popin';\nimport fixtureListItemsPublished from './fixtures/list-items-published';\nimport fixtureLmsError from './fixtures/lms-error';\nimport fixtureLmsModified from './fixtures/lms-modified';\nimport fixtureLmsSuccess from './fixtures/lms-success';\nimport fixtureLms from './fixtures/lms';\nimport fixtureLoader from './fixtures/loader';\nimport fixtureLookandfeelError from './fixtures/lookandfeel-error';\nimport fixtureLookandfeelModified from './fixtures/lookandfeel-modified';\nimport fixtureLookandfeelPending from './fixtures/lookandfeel-pending';\nimport fixtureLookandfeelSuccess from './fixtures/lookandfeel-success';\nimport fixtureLookandfeel from './fixtures/lookandfeel';\nimport fixtureManageusersEdit from './fixtures/manageusers-edit';\nimport fixtureManageusersList from './fixtures/manageusers-list';\nimport fixtureQuickAccess from './fixtures/quick-access';\nimport fixtureSsoActivate from './fixtures/sso-activate';\nimport fixtureSso from './fixtures/sso';\nimport fixtureUploadusersLoading from './fixtures/uploadusers-loading';\nimport fixtureUploadusersSuccessful from './fixtures/uploadusers-successful';\nimport fixtureUploadusers from './fixtures/uploadusers';\nimport fixtureWizardAddCoursesPlaylist from './fixtures/wizard-add-courses-playlist';\nimport fixtureWizardFormCreatePlaylist from './fixtures/wizard-form-create-playlist';\nimport fixtureWizardFormEditPlaylist from './fixtures/wizard-form-edit-playlist';\nimport fixtureWizardOrganizeCoursesPlaylist from './fixtures/wizard-organize-courses-playlist';\nimport fixtureWizardPopulationsPlaylistWithPopin from './fixtures/wizard-populations-playlist-with-popin';\nimport fixtureWizardPopulationsPlaylist from './fixtures/wizard-populations-playlist';\nimport fixtureWizardTranslatePlaylist from './fixtures/wizard-translate-playlist';\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate > should have valid propTypes', t => {\n t.pass();\n forEach(TemplateBackOfficeBrandUpdate.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"TemplateBackOffice.TemplateBackOfficeBrandUpdate.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Analytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Animations › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureAnimations);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › CohortError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohortError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Cohort › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureCohort);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Dashboard › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboard);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalytics › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDashboardsAnalytics);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsArchived › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsArchived);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsDraft › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsDraft);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublishedWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublishedWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublished › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublished);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lms › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLms);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Loader › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLoader);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelError);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelModified);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelPending › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelPending);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LookandfeelSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeelSuccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Lookandfeel › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLookandfeel);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersEdit › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersEdit);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ManageusersList › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureManageusersList);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › QuickAccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureQuickAccess);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › SsoActivate › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSsoActivate);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Sso › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureSso);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersLoading › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersLoading);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › UploadusersSuccessful › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusersSuccessful);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Uploadusers › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureUploadusers);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardAddCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardAddCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormCreatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormCreatePlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardFormEditPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardFormEditPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardOrganizeCoursesPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardOrganizeCoursesPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylistWithPopin › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylistWithPopin);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);\n"],"file":"fixtures.js"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@coorpacademy/components",
|
|
3
|
-
"version": "10.13.3-alpha.
|
|
3
|
+
"version": "10.13.3-alpha.20+caf391522",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "lib/index.js",
|
|
6
6
|
"module": "es/index.js",
|
|
@@ -119,5 +119,5 @@
|
|
|
119
119
|
"webpack-hot-middleware": "^2.25.0"
|
|
120
120
|
},
|
|
121
121
|
"author": "CoorpAcademy",
|
|
122
|
-
"gitHead": "
|
|
122
|
+
"gitHead": "caf391522dff06e58c3cd0bd08e0a556fed570ac"
|
|
123
123
|
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/withLongDescription.js"],"names":["defaultProps","props","description"],"mappings":";;AACA,OAAOA,YAAP,MAAyB,WAAzB;AAEA,MAAM;AAACC,EAAAA;AAAD,IAAUD,YAAhB;AACA,eAAe;AACXC,EAAAA,KAAK,wBACEA,KADF;AAEDC,IAAAA,WAAW,EAAE;AAFZ;AADM,CAAf","sourcesContent":["\nimport defaultProps from './default';\n\nconst {props} = defaultProps;\nexport default {\n props: {\n ...props,\n description: 'Max file size: 5MO. Recommended format: SVG (if your client uses a majority of IE, use PNG format instead). Recommended aspect ratio : horizontal 2:1 (e.g. 500px x 250px). Maximum recommended aspect ratio 1:1 (e.g. 500x500, which means that it should not be taller than its width).'\n }\n}\n"],"file":"withLongDescription.js"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../../../src/atom/drag-and-drop/test/fixtures/withLongDescription.js"],"names":["props","defaultProps","description"],"mappings":";;;;;AACA;;;;;;AAEA,MAAM;AAACA,EAAAA;AAAD,IAAUC,iBAAhB;eACe;AACXD,EAAAA,KAAK,wBACEA,KADF;AAEDE,IAAAA,WAAW,EAAE;AAFZ;AADM,C","sourcesContent":["\nimport defaultProps from './default';\n\nconst {props} = defaultProps;\nexport default {\n props: {\n ...props,\n description: 'Max file size: 5MO. Recommended format: SVG (if your client uses a majority of IE, use PNG format instead). Recommended aspect ratio : horizontal 2:1 (e.g. 500px x 250px). Maximum recommended aspect ratio 1:1 (e.g. 500x500, which means that it should not be taller than its width).'\n }\n}\n"],"file":"withLongDescription.js"}
|