@coorpacademy/components 10.3.0 → 10.3.1

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.
Files changed (35) hide show
  1. package/es/organism/list-items/index.js.map +1 -1
  2. package/es/template/back-office/brand-update/index.js +7 -0
  3. package/es/template/back-office/brand-update/index.js.map +1 -1
  4. package/es/template/back-office/brand-update/test/fixtures/default.js +1 -1
  5. package/es/template/back-office/brand-update/test/fixtures/default.js.map +1 -1
  6. package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js +68 -0
  7. package/es/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -0
  8. package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js +68 -0
  9. package/es/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -0
  10. package/es/template/back-office/brand-update/test/fixtures/list-items-published.js +68 -0
  11. package/es/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -0
  12. package/es/template/back-office/brand-update/test/fixtures.js +6 -0
  13. package/es/template/back-office/brand-update/test/fixtures.js.map +1 -1
  14. package/lib/organism/list-items/index.js.map +1 -1
  15. package/lib/template/back-office/brand-update/index.js +8 -0
  16. package/lib/template/back-office/brand-update/index.js.map +1 -1
  17. package/lib/template/back-office/brand-update/test/fixtures/default.js +1 -1
  18. package/lib/template/back-office/brand-update/test/fixtures/default.js.map +1 -1
  19. package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js +77 -0
  20. package/lib/template/back-office/brand-update/test/fixtures/list-items-archived.js.map +1 -0
  21. package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js +77 -0
  22. package/lib/template/back-office/brand-update/test/fixtures/list-items-draft.js.map +1 -0
  23. package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js +77 -0
  24. package/lib/template/back-office/brand-update/test/fixtures/list-items-published.js.map +1 -0
  25. package/lib/template/back-office/brand-update/test/fixtures.js +9 -0
  26. package/lib/template/back-office/brand-update/test/fixtures.js.map +1 -1
  27. package/package.json +2 -2
  28. package/es/molecule/cockpit-popin/test/fixtures.js +0 -17
  29. package/es/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  30. package/es/molecule/search/test/fixtures.js +0 -15
  31. package/es/molecule/search/test/fixtures.js.map +0 -1
  32. package/lib/molecule/cockpit-popin/test/fixtures.js +0 -28
  33. package/lib/molecule/cockpit-popin/test/fixtures.js.map +0 -1
  34. package/lib/molecule/search/test/fixtures.js +0 -25
  35. package/lib/molecule/search/test/fixtures.js.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/organism/list-items/index.js"],"names":["React","PropTypes","ListItem","Title","ButtonLink","style","ListItems","title","buttonLink","items","ariaLabel","itemsView","map","item","id","header","buttonCreate","list","propTypes","string","shape","arrayOf"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AAEA,OAAOC,QAAP,MAAqB,cAArB;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AAEA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,SAAS,GAAG,CAAC;AAACC,EAAAA,KAAD;AAAQC,EAAAA,UAAR;AAAoBC,EAAAA,KAApB;AAA2B,gBAAcC;AAAzC,CAAD,KAAyD;AACzE,QAAMC,SAAS,GAAGF,KAAK,CAACG,GAAN,CAAUC,IAAI,iBAC9B;AAAI,IAAA,GAAG,EAAEA,IAAI,CAACC,EAAd;AAAkB,IAAA,SAAS,EAAET,KAAK,CAACQ;AAAnC,kBACE,oBAAC,QAAD,EAAcA,IAAd,CADF,CADgB,CAAlB;AAMA,sBACE,8CACE;AAAK,IAAA,SAAS,EAAER,KAAK,CAACU;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEV,KAAK,CAACE;AAAtB,kBACE,oBAAC,KAAD;AAAO,IAAA,KAAK,EAAEA,KAAd;AAAqB,IAAA,IAAI,EAAE;AAA3B,IADF,CADF,eAIE;AAAK,IAAA,SAAS,EAAEF,KAAK,CAACW;AAAtB,kBACE,oBAAC,UAAD,EAAgBR,UAAhB,CADF,CAJF,CADF,eASE;AAAI,IAAA,SAAS,EAAEH,KAAK,CAACY,IAArB;AAA2B,kBAAYP;AAAvC,KACGC,SADH,CATF,CADF;AAeD,CAtBD;;AAwBAL,SAAS,CAACY,SAAV,2CAAsB;AACpB,gBAAcjB,SAAS,CAACkB,MADJ;AAEpBX,EAAAA,UAAU,EAAEP,SAAS,CAACmB,KAAV,CAAgBhB,UAAU,CAACc,SAA3B,CAFQ;AAGpBT,EAAAA,KAAK,EAAER,SAAS,CAACoB,OAAV,CAAkBpB,SAAS,CAACmB,KAAV,CAAgBlB,QAAQ,CAACgB,SAAzB,CAAlB,CAHa;AAIpBX,EAAAA,KAAK,EAAEN,SAAS,CAACkB;AAJG,CAAtB;AAOA,eAAeb,SAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport ListItem from '../list-item';\nimport Title from '../../atom/title';\n\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst ListItems = ({title, buttonLink, items, 'aria-label': ariaLabel}) => {\n const itemsView = items.map(item => (\n <li key={item.id} className={style.item}>\n <ListItem {...item} />\n </li>\n ));\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} />\n </div>\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n <ul className={style.list} aria-label={ariaLabel}>\n {itemsView}\n </ul>\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/organism/list-items/index.js"],"names":["React","PropTypes","ListItem","Title","ButtonLink","style","ListItems","title","buttonLink","items","ariaLabel","itemsView","map","item","id","header","buttonCreate","list","propTypes","string","shape","arrayOf"],"mappings":"AAAA,OAAOA,KAAP,MAAkB,OAAlB;AACA,OAAOC,SAAP,MAAsB,YAAtB;AACA,OAAOC,QAAP,MAAqB,cAArB;AACA,OAAOC,KAAP,MAAkB,kBAAlB;AACA,OAAOC,UAAP,MAAuB,wBAAvB;AACA,OAAOC,KAAP,MAAkB,aAAlB;;AAEA,MAAMC,SAAS,GAAG,CAAC;AAACC,EAAAA,KAAD;AAAQC,EAAAA,UAAR;AAAoBC,EAAAA,KAApB;AAA2B,gBAAcC;AAAzC,CAAD,KAAyD;AACzE,QAAMC,SAAS,GAAGF,KAAK,CAACG,GAAN,CAAUC,IAAI,iBAC9B;AAAI,IAAA,GAAG,EAAEA,IAAI,CAACC,EAAd;AAAkB,IAAA,SAAS,EAAET,KAAK,CAACQ;AAAnC,kBACE,oBAAC,QAAD,EAAcA,IAAd,CADF,CADgB,CAAlB;AAMA,sBACE,8CACE;AAAK,IAAA,SAAS,EAAER,KAAK,CAACU;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAEV,KAAK,CAACE;AAAtB,kBACE,oBAAC,KAAD;AAAO,IAAA,KAAK,EAAEA,KAAd;AAAqB,IAAA,IAAI,EAAE;AAA3B,IADF,CADF,eAIE;AAAK,IAAA,SAAS,EAAEF,KAAK,CAACW;AAAtB,kBACE,oBAAC,UAAD,EAAgBR,UAAhB,CADF,CAJF,CADF,eASE;AAAI,IAAA,SAAS,EAAEH,KAAK,CAACY,IAArB;AAA2B,kBAAYP;AAAvC,KACGC,SADH,CATF,CADF;AAeD,CAtBD;;AAwBAL,SAAS,CAACY,SAAV,2CAAsB;AACpB,gBAAcjB,SAAS,CAACkB,MADJ;AAEpBX,EAAAA,UAAU,EAAEP,SAAS,CAACmB,KAAV,CAAgBhB,UAAU,CAACc,SAA3B,CAFQ;AAGpBT,EAAAA,KAAK,EAAER,SAAS,CAACoB,OAAV,CAAkBpB,SAAS,CAACmB,KAAV,CAAgBlB,QAAQ,CAACgB,SAAzB,CAAlB,CAHa;AAIpBX,EAAAA,KAAK,EAAEN,SAAS,CAACkB;AAJG,CAAtB;AAOA,eAAeb,SAAf","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst ListItems = ({title, buttonLink, items, 'aria-label': ariaLabel}) => {\n const itemsView = items.map(item => (\n <li key={item.id} className={style.item}>\n <ListItem {...item} />\n </li>\n ));\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} />\n </div>\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n <ul className={style.list} aria-label={ariaLabel}>\n {itemsView}\n </ul>\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"file":"index.js"}
@@ -16,6 +16,7 @@ import BrandUpload from '../../../organism/brand-upload';
16
16
  import BrandAnalytics from '../../../organism/brand-analytics';
17
17
  import BrandDashboard from '../../../organism/brand-dashboard';
18
18
  import WizardContents from '../../../organism/wizard-contents';
19
+ import ListItems from '../../../organism/list-items';
19
20
  import Banner from '../../../molecule/banner';
20
21
  import Header from '../../../organism/setup-header';
21
22
  import Loader from '../../../atom/loader';
@@ -129,6 +130,9 @@ const buildContentView = content => {
129
130
  case 'analytics-dashboards':
130
131
  return /*#__PURE__*/React.createElement(BrandAnalytics, content);
131
132
 
133
+ case 'list-content':
134
+ return /*#__PURE__*/React.createElement(ListItems, content);
135
+
132
136
  case 'home':
133
137
  return /*#__PURE__*/React.createElement(BrandDashboard, content);
134
138
 
@@ -215,6 +219,9 @@ BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
215
219
  })), PropTypes.shape(_extends(_extends({}, WizardContents.propTypes), {}, {
216
220
  key: PropTypes.string,
217
221
  type: PropTypes.oneOf(['wizard'])
222
+ })), PropTypes.shape(_extends(_extends({}, ListItems.propTypes), {}, {
223
+ key: PropTypes.string,
224
+ type: PropTypes.oneOf(['list-content'])
218
225
  }))]),
219
226
  details: PropTypes.shape(_extends(_extends({}, BrandTable.propTypes), {}, {
220
227
  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","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;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AAA,GAAG,EAAEvC,SAAS,CAACiF,MAFjB;AAGEjD,IAAAA,IAAI,EAAEhC,SAAS,CAACqF,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHR,KArB2B,EA0B3BrF,SAAS,CAACgF,KAAV,uBACKjE,cAAc,CAAC+D,SADpB;AAEEvC,IAAAA,GAAG,EAAEvC,SAAS,CAACiF,MAFjB;AAGEjD,IAAAA,IAAI,EAAEhC,SAAS,CAACqF,KAAV,CAAgB,CAAC,QAAD,CAAhB;AAHR,KA1B2B,CAApB,CAhCa;AAgEtBvB,EAAAA,OAAO,EAAE9D,SAAS,CAACgF,KAAV,uBACJrE,UAAU,CAACmE,SADP;AAEPvC,IAAAA,GAAG,EAAEvC,SAAS,CAACiF,MAFR;AAGPjD,IAAAA,IAAI,EAAEhC,SAAS,CAACqF,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHC,KAhEa;AAqEtBhD,EAAAA,WAAW,EAAErC,SAAS,CAACsF;AArED,CAAxB;AAwEA,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 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"}
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","ListItems","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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';\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 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 '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, 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 PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content'])\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"}
@@ -17,7 +17,7 @@ export const items = [{
17
17
  title: 'Editorialization',
18
18
  key: 'editorialization',
19
19
  href: '#brand/samsung/editorialization',
20
- type: 'iconLink',
20
+ type: 'collapsibleTab',
21
21
  open: false,
22
22
  selected: false
23
23
  }, {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/default.js"],"names":["Header","items","title","key","href","open","undefined","selected","type","isOpen","tabs","props","header","notifications","logo","content","groups"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,4DAAnB;AAEA,OAAO,MAAMC,KAAK,GAAG,CACnB;AACEC,EAAAA,KAAK,EAAE,cADT;AAEEC,EAAAA,GAAG,EAAE,WAFP;AAGEC,EAAAA,IAAI,EAAE,0BAHR;AAIEC,EAAAA,IAAI,EAAEC,SAJR;AAKEC,EAAAA,QAAQ,EAAE,IALZ;AAMEC,EAAAA,IAAI,EAAE;AANR,CADmB,EASnB;AACEN,EAAAA,KAAK,EAAE,gBADT;AAEEC,EAAAA,GAAG,EAAE,gBAFP;AAGEC,EAAAA,IAAI,EAAE,+BAHR;AAIEC,EAAAA,IAAI,EAAE,KAJR;AAKEE,EAAAA,QAAQ,EAAE,KALZ;AAMEC,EAAAA,IAAI,EAAE;AANR,CATmB,EAiBnB;AACEN,EAAAA,KAAK,EAAE,kBADT;AAEEC,EAAAA,GAAG,EAAE,kBAFP;AAGEC,EAAAA,IAAI,EAAE,iCAHR;AAIEI,EAAAA,IAAI,EAAE,UAJR;AAKEH,EAAAA,IAAI,EAAE,KALR;AAMEE,EAAAA,QAAQ,EAAE;AANZ,CAjBmB,EAyBnB;AACEL,EAAAA,KAAK,EAAE,kBADT;AAEEC,EAAAA,GAAG,EAAE,iBAFP;AAGEC,EAAAA,IAAI,EAAE,iCAHR;AAIEC,EAAAA,IAAI,EAAE,KAJR;AAKEE,EAAAA,QAAQ,EAAE,KALZ;AAMEC,EAAAA,IAAI,EAAE;AANR,CAzBmB,EAiCnB;AACEN,EAAAA,KAAK,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PP,MAAAA,IAAI,EAAE,MADC;AAEPQ,MAAAA,MAAM,EAAE;AAFD;AALJ;AADM,CAAf","sourcesContent":["import Header from '../../../../../organism/setup-header/test/fixtures/default';\n\nexport const items = [\n {\n title: 'My Dashboard',\n key: 'dashboard',\n href: '#brand/samsung/dashboard',\n open: undefined,\n selected: true,\n type: 'simpleTab'\n },\n {\n title: 'Administration',\n key: 'administration',\n href: '#brand/samsung/administration',\n open: false,\n selected: false,\n type: 'collapsibleTab'\n },\n {\n title: 'Editorialization',\n key: 'editorialization',\n href: '#brand/samsung/editorialization',\n type: 'iconLink',\n open: false,\n selected: false\n },\n {\n title: 'Content Creation',\n key: 'contentCreation',\n href: '#brand/samsung/content-creation',\n open: false,\n selected: false,\n type: 'iconLink'\n },\n {\n title: 'Animation',\n key: 'animation',\n href: '#brand/samsung/content-creation',\n selected: false,\n isOpen: true,\n type: 'collapsibleTab'\n },\n {\n title: 'Analytics',\n key: 'analytics',\n href: '#brand/samsung/analytics',\n open: false,\n selected: false,\n type: 'collapsibleTab',\n tabs: [\n {title: 'SSO', href: '#/sso', selected: false, type: 'iconLink'},\n {title: 'Look and Feel', href: '#/look-and-feel', selected: false},\n {title: 'Settings', href: '#/settings', selected: false},\n {title: 'Any', href: '#/any', selected: false},\n {title: 'Many', href: '#/many', selected: false}\n ]\n }\n];\n\nexport default {\n props: {\n header: Header.props,\n notifications: [],\n items,\n logo: '',\n content: {\n type: 'form',\n groups: []\n }\n }\n};\n"],"file":"default.js"}
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/default.js"],"names":["Header","items","title","key","href","open","undefined","selected","type","isOpen","tabs","props","header","notifications","logo","content","groups"],"mappings":"AAAA,OAAOA,MAAP,MAAmB,4DAAnB;AAEA,OAAO,MAAMC,KAAK,GAAG,CACnB;AACEC,EAAAA,KAAK,EAAE,cADT;AAEEC,EAAAA,GAAG,EAAE,WAFP;AAGEC,EAAAA,IAAI,EAAE,0BAHR;AAIEC,EAAAA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ArB;AAA8BG,IAAAA,QAAQ,EAAE,KAAxC;AAA+CC,IAAAA,IAAI,EAAE;AAArD,GADI,EAEJ;AAACN,IAAAA,KAAK,EAAE,eAAR;AAAyBE,IAAAA,IAAI,EAAE,iBAA/B;AAAkDG,IAAAA,QAAQ,EAAE;AAA5D,GAFI,EAGJ;AAACL,IAAAA,KAAK,EAAE,UAAR;AAAoBE,IAAAA,IAAI,EAAE,YAA1B;AAAwCG,IAAAA,QAAQ,EAAE;AAAlD,GAHI,EAIJ;AAACL,IAAAA,KAAK,EAAE,KAAR;AAAeE,IAAAA,IAAI,EAAE,OAArB;AAA8BG,IAAAA,QAAQ,EAAE;AAAxC,GAJI,EAKJ;AAACL,IAAAA,KAAK,EAAE,MAAR;AAAgBE,IAAAA,IAAI,EAAE,QAAtB;AAAgCG,IAAAA,QAAQ,EAAE;AAA1C,GALI;AAPR,CAzCmB,CAAd;AA0DP,eAAe;AACbI,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAEZ,MAAM,CAACW,KADV;AAELE,IAAAA,aAAa,EAAE,EAFV;AAGLZ,IAAAA,KAHK;AAILa,IAAAA,IAAI,EAAE,EAJD;AAKLC,IAAAA,OAAO,EAAE;AACPP,MAAAA,IAAI,EAAE,MADC;AAEPQ,MAAAA,MAAM,EAAE;AAFD;AALJ;AADM,CAAf","sourcesContent":["import Header from '../../../../../organism/setup-header/test/fixtures/default';\n\nexport const items = [\n {\n title: 'My Dashboard',\n key: 'dashboard',\n href: '#brand/samsung/dashboard',\n open: undefined,\n selected: true,\n type: 'simpleTab'\n },\n {\n title: 'Administration',\n key: 'administration',\n href: '#brand/samsung/administration',\n open: false,\n selected: false,\n type: 'collapsibleTab'\n },\n {\n title: 'Editorialization',\n key: 'editorialization',\n href: '#brand/samsung/editorialization',\n type: 'collapsibleTab',\n open: false,\n selected: false\n },\n {\n title: 'Content Creation',\n key: 'contentCreation',\n href: '#brand/samsung/content-creation',\n open: false,\n selected: false,\n type: 'iconLink'\n },\n {\n title: 'Animation',\n key: 'animation',\n href: '#brand/samsung/content-creation',\n selected: false,\n isOpen: true,\n type: 'collapsibleTab'\n },\n {\n title: 'Analytics',\n key: 'analytics',\n href: '#brand/samsung/analytics',\n open: false,\n selected: false,\n type: 'collapsibleTab',\n tabs: [\n {title: 'SSO', href: '#/sso', selected: false, type: 'iconLink'},\n {title: 'Look and Feel', href: '#/look-and-feel', selected: false},\n {title: 'Settings', href: '#/settings', selected: false},\n {title: 'Any', href: '#/any', selected: false},\n {title: 'Many', href: '#/many', selected: false}\n ]\n }\n];\n\nexport default {\n props: {\n header: Header.props,\n notifications: [],\n items,\n logo: '',\n content: {\n type: 'form',\n groups: []\n }\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,68 @@
1
+ import _cloneDeep from "lodash/fp/cloneDeep";
2
+ import _defaultsDeep from "lodash/fp/defaultsDeep";
3
+
4
+ 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); }
5
+
6
+ import listItems from '../../../../../organism/list-items/test/fixtures/archived';
7
+ import Default from './default';
8
+
9
+ const props = _cloneDeep(Default.props);
10
+
11
+ const listItemsProps = listItems.props;
12
+ props.items[0].selected = false;
13
+ props.items[2].selected = true;
14
+ props.items[2].tabs = [{
15
+ title: 'Look & feel',
16
+ href: '/brands/7steps/admin/look-and-feel',
17
+ name: 'brand_tab_admin_look_and_feel',
18
+ selected: false,
19
+ type: 'simpleTab'
20
+ }, {
21
+ title: 'Content',
22
+ href: '/brands/7steps/admin/content',
23
+ name: 'brand_tab_admin_user',
24
+ selected: false,
25
+ type: 'simpleTab'
26
+ }, {
27
+ title: 'Dashboard',
28
+ href: '/brands/7steps/admin/user/dashboard',
29
+ name: 'brand_tab_admin_user',
30
+ selected: false,
31
+ type: 'simpleTab'
32
+ }, {
33
+ title: 'Custom Playlists',
34
+ href: '/brands/7steps/admin/custom-playlist/published',
35
+ name: 'brand_tab_admin_custom_playlist',
36
+ selected: true,
37
+ type: 'simpleTab',
38
+ subTabs: [{
39
+ title: 'Published',
40
+ href: '/brands/7steps/admin/custom-playlist/published',
41
+ name: 'published',
42
+ permissions: ['published'],
43
+ selected: false,
44
+ type: 'simpleTab'
45
+ }, {
46
+ title: 'Drafts',
47
+ href: '/brands/7steps/admin/custom-playlist/drafts',
48
+ name: 'drafts',
49
+ permissions: ['drafts'],
50
+ selected: false,
51
+ type: 'simpleTab'
52
+ }, {
53
+ title: 'Archived',
54
+ href: '/brands/7steps/admin/custom-playlist/archived',
55
+ name: 'archived',
56
+ permissions: ['archived'],
57
+ selected: true,
58
+ type: 'simpleTab'
59
+ }]
60
+ }];
61
+ export default {
62
+ props: _defaultsDeep(props, {
63
+ content: _extends(_extends({}, listItemsProps), {}, {
64
+ type: 'list-content'
65
+ })
66
+ })
67
+ };
68
+ //# sourceMappingURL=list-items-archived.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/list-items-archived.js"],"names":["listItems","Default","props","listItemsProps","items","selected","tabs","title","href","name","type","subTabs","permissions","content"],"mappings":";;;;;AACA,OAAOA,SAAP,MAAsB,2DAAtB;AACA,OAAOC,OAAP,MAAoB,WAApB;;AAEA,MAAMC,KAAK,GAAG,WAAUD,OAAO,CAACC,KAAlB,CAAd;;AACA,MAAMC,cAAc,GAAGH,SAAS,CAACE,KAAjC;AAEAA,KAAK,CAACE,KAAN,CAAY,CAAZ,EAAeC,QAAf,GAA0B,KAA1B;AACAH,KAAK,CAACE,KAAN,CAAY,CAAZ,EAAeC,QAAf,GAA0B,IAA1B;AACAH,KAAK,CAACE,KAAN,CAAY,CAAZ,EAAeE,IAAf,GAAsB,CACpB;AACEC,EAAAA,KAAK,EAAE,aADT;AAEEC,EAAAA,IAAI,EAAE,oCAFR;AAGEC,EAAAA,IAAI,EAAE,+BAHR;AAIEJ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ALZ;AAMEK,IAAAA,IAAI,EAAE;AANR,GAjBO;AANX,CAtBoB,CAAtB;AAyDA,eAAe;AACbR,EAAAA,KAAK,EAAE,cAAaA,KAAb,EAAoB;AACzBW,IAAAA,OAAO,wBACFV,cADE;AAELO,MAAAA,IAAI,EAAE;AAFD;AADkB,GAApB;AADM,CAAf","sourcesContent":["import {defaultsDeep, cloneDeep} from 'lodash/fp';\nimport listItems from '../../../../../organism/list-items/test/fixtures/archived';\nimport Default from './default';\n\nconst props = cloneDeep(Default.props);\nconst listItemsProps = listItems.props;\n\nprops.items[0].selected = false;\nprops.items[2].selected = true;\nprops.items[2].tabs = [\n {\n title: 'Look & feel',\n href: '/brands/7steps/admin/look-and-feel',\n name: 'brand_tab_admin_look_and_feel',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Content',\n href: '/brands/7steps/admin/content',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Dashboard',\n href: '/brands/7steps/admin/user/dashboard',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Custom Playlists',\n href: '/brands/7steps/admin/custom-playlist/published',\n name: 'brand_tab_admin_custom_playlist',\n selected: true,\n type: 'simpleTab',\n subTabs: [\n {\n title: 'Published',\n href: '/brands/7steps/admin/custom-playlist/published',\n name: 'published',\n permissions: ['published'],\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Drafts',\n href: '/brands/7steps/admin/custom-playlist/drafts',\n name: 'drafts',\n permissions: ['drafts'],\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Archived',\n href: '/brands/7steps/admin/custom-playlist/archived',\n name: 'archived',\n permissions: ['archived'],\n selected: true,\n type: 'simpleTab'\n }\n ]\n }\n];\n\nexport default {\n props: defaultsDeep(props, {\n content: {\n ...listItemsProps,\n type: 'list-content'\n }\n })\n};\n"],"file":"list-items-archived.js"}
@@ -0,0 +1,68 @@
1
+ import _cloneDeep from "lodash/fp/cloneDeep";
2
+ import _defaultsDeep from "lodash/fp/defaultsDeep";
3
+
4
+ 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); }
5
+
6
+ import listItems from '../../../../../organism/list-items/test/fixtures/draft';
7
+ import Default from './default';
8
+
9
+ const props = _cloneDeep(Default.props);
10
+
11
+ const listItemsProps = listItems.props;
12
+ props.items[0].selected = false;
13
+ props.items[2].selected = true;
14
+ props.items[2].tabs = [{
15
+ title: 'Look & feel',
16
+ href: '/brands/7steps/admin/look-and-feel',
17
+ name: 'brand_tab_admin_look_and_feel',
18
+ selected: false,
19
+ type: 'simpleTab'
20
+ }, {
21
+ title: 'Content',
22
+ href: '/brands/7steps/admin/content',
23
+ name: 'brand_tab_admin_user',
24
+ selected: false,
25
+ type: 'simpleTab'
26
+ }, {
27
+ title: 'Dashboard',
28
+ href: '/brands/7steps/admin/user/dashboard',
29
+ name: 'brand_tab_admin_user',
30
+ selected: false,
31
+ type: 'simpleTab'
32
+ }, {
33
+ title: 'Custom Playlists',
34
+ href: '/brands/7steps/admin/custom-playlist/published',
35
+ name: 'brand_tab_admin_custom_playlist',
36
+ selected: true,
37
+ type: 'simpleTab',
38
+ subTabs: [{
39
+ title: 'Published',
40
+ href: '/brands/7steps/admin/custom-playlist/published',
41
+ name: 'published',
42
+ permissions: ['published'],
43
+ selected: false,
44
+ type: 'simpleTab'
45
+ }, {
46
+ title: 'Drafts',
47
+ href: '/brands/7steps/admin/custom-playlist/drafts',
48
+ name: 'drafts',
49
+ permissions: ['drafts'],
50
+ selected: true,
51
+ type: 'simpleTab'
52
+ }, {
53
+ title: 'Archived',
54
+ href: '/brands/7steps/admin/custom-playlist/archived',
55
+ name: 'archived',
56
+ permissions: ['archived'],
57
+ selected: false,
58
+ type: 'simpleTab'
59
+ }]
60
+ }];
61
+ export default {
62
+ props: _defaultsDeep(props, {
63
+ content: _extends(_extends({}, listItemsProps), {}, {
64
+ type: 'list-content'
65
+ })
66
+ })
67
+ };
68
+ //# sourceMappingURL=list-items-draft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/list-items-draft.js"],"names":["listItems","Default","props","listItemsProps","items","selected","tabs","title","href","name","type","subTabs","permissions","content"],"mappings":";;;;;AACA,OAAOA,SAAP,MAAsB,wDAAtB;AACA,OAAOC,OAAP,MAAoB,WAApB;;AAEA,MAAMC,KAAK,GAAG,WAAUD,OAAO,CAACC,KAAlB,CAAd;;AACA,MAAMC,cAAc,GAAGH,SAAS,CAACE,KAAjC;AAEAA,KAAK,CAACE,KAAN,CAAY,CAAZ,EAAeC,QAAf,GAA0B,KAA1B;AACAH,KAAK,CAACE,KAAN,CAAY,CAAZ,EAAeC,QAAf,GAA0B,IAA1B;AACAH,KAAK,CAACE,KAAN,CAAY,CAAZ,EAAeE,IAAf,GAAsB,CACpB;AACEC,EAAAA,KAAK,EAAE,aADT;AAEEC,EAAAA,IAAI,EAAE,oCAFR;AAGEC,EAAAA,IAAI,EAAE,+BAHR;AAIEJ,EAAAA,QAAQ,EAAE,KAJZ;AAKEK,EAAAA,IAAI,EAAE;AALR,CADoB,EAQpB;AACEH,EAAAA,KAAK,EAAE,SADT;AAEEC,EAAAA,IAAI,EAAE,8BAFR;AAGEC,EAAAA,IAAI,EAAE,sBAHR;AAIEJ,EAAAA,QAAQ,EAAE,KAJZ;AAKEK,EAAAA,IAAI,EAAE;AALR,CARoB,EAepB;AACEH,EAAAA,KAAK,EAAE,WADT;AAEEC,EAAAA,IAAI,EAAE,qCAFR;AAGEC,EAAAA,IAAI,EAAE,sBAHR;AAIEJ,EAAAA,QAAQ,EAAE,KAJZ;AAKEK,EAAAA,IAAI,EAAE;AALR,CAfoB,EAsBpB;AACEH,EAAAA,KAAK,EAAE,kBADT;AAEEC,EAAAA,IAAI,EAAE,gDAFR;AAGEC,EAAAA,IAAI,EAAE,iCAHR;AAIEJ,EAAAA,QAAQ,EAAE,IAJZ;AAKEK,EAAAA,IAAI,EAAE,WALR;AAMEC,EAAAA,OAAO,EAAE,CACP;AACEJ,IAAAA,KAAK,EAAE,WADT;AAEEC,IAAAA,IAAI,EAAE,gDAFR;AAGEC,IAAAA,IAAI,EAAE,WAHR;AAIEG,IAAAA,WAAW,EAAE,CAAC,WAAD,CAJf;AAKEP,IAAAA,QAAQ,EAAE,KALZ;AAMEK,IAAAA,IAAI,EAAE;AANR,GADO,EASP;AACEH,IAAAA,KAAK,EAAE,QADT;AAEEC,IAAAA,IAAI,EAAE,6CAFR;AAGEC,IAAAA,IAAI,EAAE,QAHR;AAIEG,IAAAA,WAAW,EAAE,CAAC,QAAD,CAJf;AAKEP,IAAAA,QAAQ,EAAE,IALZ;AAMEK,IAAAA,IAAI,EAAE;AANR,GATO,EAiBP;AACEH,IAAAA,KAAK,EAAE,UADT;AAEEC,IAAAA,IAAI,EAAE,+CAFR;AAGEC,IAAAA,IAAI,EAAE,UAHR;AAIEG,IAAAA,WAAW,EAAE,CAAC,UAAD,CAJf;AAKEP,IAAAA,QAAQ,EAAE,KALZ;AAMEK,IAAAA,IAAI,EAAE;AANR,GAjBO;AANX,CAtBoB,CAAtB;AAyDA,eAAe;AACbR,EAAAA,KAAK,EAAE,cAAaA,KAAb,EAAoB;AACzBW,IAAAA,OAAO,wBACFV,cADE;AAELO,MAAAA,IAAI,EAAE;AAFD;AADkB,GAApB;AADM,CAAf","sourcesContent":["import {defaultsDeep, cloneDeep} from 'lodash/fp';\nimport listItems from '../../../../../organism/list-items/test/fixtures/draft';\nimport Default from './default';\n\nconst props = cloneDeep(Default.props);\nconst listItemsProps = listItems.props;\n\nprops.items[0].selected = false;\nprops.items[2].selected = true;\nprops.items[2].tabs = [\n {\n title: 'Look & feel',\n href: '/brands/7steps/admin/look-and-feel',\n name: 'brand_tab_admin_look_and_feel',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Content',\n href: '/brands/7steps/admin/content',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Dashboard',\n href: '/brands/7steps/admin/user/dashboard',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Custom Playlists',\n href: '/brands/7steps/admin/custom-playlist/published',\n name: 'brand_tab_admin_custom_playlist',\n selected: true,\n type: 'simpleTab',\n subTabs: [\n {\n title: 'Published',\n href: '/brands/7steps/admin/custom-playlist/published',\n name: 'published',\n permissions: ['published'],\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Drafts',\n href: '/brands/7steps/admin/custom-playlist/drafts',\n name: 'drafts',\n permissions: ['drafts'],\n selected: true,\n type: 'simpleTab'\n },\n {\n title: 'Archived',\n href: '/brands/7steps/admin/custom-playlist/archived',\n name: 'archived',\n permissions: ['archived'],\n selected: false,\n type: 'simpleTab'\n }\n ]\n }\n];\n\nexport default {\n props: defaultsDeep(props, {\n content: {\n ...listItemsProps,\n type: 'list-content'\n }\n })\n};\n"],"file":"list-items-draft.js"}
@@ -0,0 +1,68 @@
1
+ import _cloneDeep from "lodash/fp/cloneDeep";
2
+ import _defaultsDeep from "lodash/fp/defaultsDeep";
3
+
4
+ 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); }
5
+
6
+ import listItems from '../../../../../organism/list-items/test/fixtures/published';
7
+ import Default from './default';
8
+
9
+ const props = _cloneDeep(Default.props);
10
+
11
+ const listItemsProps = listItems.props;
12
+ props.items[0].selected = false;
13
+ props.items[2].selected = true;
14
+ props.items[2].tabs = [{
15
+ title: 'Look & feel',
16
+ href: '/brands/7steps/admin/look-and-feel',
17
+ name: 'brand_tab_admin_look_and_feel',
18
+ selected: false,
19
+ type: 'simpleTab'
20
+ }, {
21
+ title: 'Content',
22
+ href: '/brands/7steps/admin/content',
23
+ name: 'brand_tab_admin_user',
24
+ selected: false,
25
+ type: 'simpleTab'
26
+ }, {
27
+ title: 'Dashboard',
28
+ href: '/brands/7steps/admin/user/dashboard',
29
+ name: 'brand_tab_admin_user',
30
+ selected: false,
31
+ type: 'simpleTab'
32
+ }, {
33
+ title: 'Custom Playlists',
34
+ href: '/brands/7steps/admin/custom-playlist/published',
35
+ name: 'brand_tab_admin_custom_playlist',
36
+ selected: true,
37
+ type: 'simpleTab',
38
+ subTabs: [{
39
+ title: 'Published',
40
+ href: '/brands/7steps/admin/custom-playlist/published',
41
+ name: 'published',
42
+ permissions: ['published'],
43
+ selected: true,
44
+ type: 'simpleTab'
45
+ }, {
46
+ title: 'Drafts',
47
+ href: '/brands/7steps/admin/custom-playlist/drafts',
48
+ name: 'drafts',
49
+ permissions: ['drafts'],
50
+ selected: false,
51
+ type: 'simpleTab'
52
+ }, {
53
+ title: 'Archived',
54
+ href: '/brands/7steps/admin/custom-playlist/archived',
55
+ name: 'archived',
56
+ permissions: ['archived'],
57
+ selected: false,
58
+ type: 'simpleTab'
59
+ }]
60
+ }];
61
+ export default {
62
+ props: _defaultsDeep(props, {
63
+ content: _extends(_extends({}, listItemsProps), {}, {
64
+ type: 'list-content'
65
+ })
66
+ })
67
+ };
68
+ //# sourceMappingURL=list-items-published.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/list-items-published.js"],"names":["listItems","Default","props","listItemsProps","items","selected","tabs","title","href","name","type","subTabs","permissions","content"],"mappings":";;;;;AACA,OAAOA,SAAP,MAAsB,4DAAtB;AACA,OAAOC,OAAP,MAAoB,WAApB;;AAEA,MAAMC,KAAK,GAAG,WAAUD,OAAO,CAACC,KAAlB,CAAd;;AACA,MAAMC,cAAc,GAAGH,SAAS,CAACE,KAAjC;AAEAA,KAAK,CAACE,KAAN,CAAY,CAAZ,EAAeC,QAAf,GAA0B,KAA1B;AACAH,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,EAAE,KALZ;AAMEK,IAAAA,IAAI,EAAE;AANR,GATO,EAiBP;AACEH,IAAAA,KAAK,EAAE,UADT;AAEEC,IAAAA,IAAI,EAAE,+CAFR;AAGEC,IAAAA,IAAI,EAAE,UAHR;AAIEG,IAAAA,WAAW,EAAE,CAAC,UAAD,CAJf;AAKEP,IAAAA,QAAQ,EAAE,KALZ;AAMEK,IAAAA,IAAI,EAAE;AANR,GAjBO;AANX,CAtBoB,CAAtB;AAyDA,eAAe;AACbR,EAAAA,KAAK,EAAE,cAAaA,KAAb,EAAoB;AACzBW,IAAAA,OAAO,wBACFV,cADE;AAELO,MAAAA,IAAI,EAAE;AAFD;AADkB,GAApB;AADM,CAAf","sourcesContent":["import {defaultsDeep, cloneDeep} from 'lodash/fp';\nimport listItems from '../../../../../organism/list-items/test/fixtures/published';\nimport Default from './default';\n\nconst props = cloneDeep(Default.props);\nconst listItemsProps = listItems.props;\n\nprops.items[0].selected = false;\nprops.items[2].selected = true;\nprops.items[2].tabs = [\n {\n title: 'Look & feel',\n href: '/brands/7steps/admin/look-and-feel',\n name: 'brand_tab_admin_look_and_feel',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Content',\n href: '/brands/7steps/admin/content',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Dashboard',\n href: '/brands/7steps/admin/user/dashboard',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Custom Playlists',\n href: '/brands/7steps/admin/custom-playlist/published',\n name: 'brand_tab_admin_custom_playlist',\n selected: true,\n type: 'simpleTab',\n subTabs: [\n {\n title: 'Published',\n href: '/brands/7steps/admin/custom-playlist/published',\n name: 'published',\n permissions: ['published'],\n selected: true,\n type: 'simpleTab'\n },\n {\n title: 'Drafts',\n href: '/brands/7steps/admin/custom-playlist/drafts',\n name: 'drafts',\n permissions: ['drafts'],\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Archived',\n href: '/brands/7steps/admin/custom-playlist/archived',\n name: 'archived',\n permissions: ['archived'],\n selected: false,\n type: 'simpleTab'\n }\n ]\n }\n];\n\nexport default {\n props: defaultsDeep(props, {\n content: {\n ...listItemsProps,\n type: 'list-content'\n }\n })\n};\n"],"file":"list-items-published.js"}
@@ -11,6 +11,9 @@ import fixtureDashboardsAnalytics from './fixtures/dashboards-analytics';
11
11
  import fixtureDefault from './fixtures/default';
12
12
  import fixtureGeneralSettingsSuccess from './fixtures/general-settings-success';
13
13
  import fixtureGeneralSettings from './fixtures/general-settings';
14
+ import fixtureListItemsArchived from './fixtures/list-items-archived';
15
+ import fixtureListItemsDraft from './fixtures/list-items-draft';
16
+ import fixtureListItemsPublished from './fixtures/list-items-published';
14
17
  import fixtureLmsError from './fixtures/lms-error';
15
18
  import fixtureLmsModified from './fixtures/lms-modified';
16
19
  import fixtureLmsSuccess from './fixtures/lms-success';
@@ -49,6 +52,9 @@ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › DashboardsAnalyti
49
52
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureDefault);
50
53
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettingsSuccess);
51
54
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureGeneralSettings);
55
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsArchived › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsArchived);
56
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsDraft › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsDraft);
57
+ test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublished › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureListItemsPublished);
52
58
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsError);
53
59
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsModified);
54
60
  test('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureLmsSuccess);
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../src/template/back-office/brand-update/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","TemplateBackOfficeBrandUpdate","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","fixtureWizardAddCoursesPlaylist","fixtureWizardFormCreatePlaylist","fixtureWizardFormEditPlaylist","fixtureWizardPopulationsPlaylist","fixtureWizardTranslatePlaylist","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,6BAAP,MAA0C,IAA1C;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAA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AAJ;AACAhC,IAAI,CAAC,kGAAD,EAAqGE,oBAArG,EAA2HC,6BAA3H,EAA0J8B,6BAA1J,CAAJ;AACAjC,IAAI,CAAC,qGAAD,EAAwGE,oBAAxG,EAA8HC,6BAA9H,EAA6J+B,gCAA7J,CAAJ;AACAlC,IAAI,CAAC,mGAAD,EAAsGE,oBAAtG,EAA4HC,6BAA5H,EAA2JgC,8BAA3J,CAAJ","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 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 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 › 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 › 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":["test","forEach","renderComponentMacro","TemplateBackOfficeBrandUpdate","fixtureAnalytics","fixtureAnimations","fixtureCohortError","fixtureCohort","fixtureDashboard","fixtureDashboardsAnalytics","fixtureDefault","fixtureGeneralSettingsSuccess","fixtureGeneralSettings","fixtureListItemsArchived","fixtureListItemsDraft","fixtureListItemsPublished","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","fixtureWizardAddCoursesPlaylist","fixtureWizardFormCreatePlaylist","fixtureWizardFormEditPlaylist","fixtureWizardPopulationsPlaylist","fixtureWizardTranslatePlaylist","t","pass","propTypes","value","key","not","undefined"],"mappings":"AAAA,OAAOA,IAAP,MAAiB,KAAjB;AACA,OAAOC,OAAP,MAAoB,gBAApB;AACA,OAAOC,oBAAP,MAAiC,2CAAjC;AACA,OAAOC,6BAAP,MAA0C,IAA1C;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,iBAAP,MAA8B,uBAA9B;AACA,OAAOC,kBAAP,MAA+B,yBAA/B;AACA,OAAOC,aAAP,MAA0B,mBAA1B;AACA,OAAOC,gBAAP,MAA6B,sBAA7B;AACA,OAAOC,0BAAP,MAAuC,iCAAvC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,6BAAP,MAA0C,qCAA1C;AACA,OAAOC,sBAAP,MAAmC,6BAAnC;AACA,OAAOC,wBAAP,MAAqC,gCAArC;AACA,O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AjC,IAAI,CAAC,oGAAD,EAAuGE,oBAAvG,EAA6HC,6BAA7H,EAA4J+B,+BAA5J,CAAJ;AACAlC,IAAI,CAAC,oGAAD,EAAuGE,oBAAvG,EAA6HC,6BAA7H,EAA4JgC,+BAA5J,CAAJ;AACAnC,IAAI,CAAC,kGAAD,EAAqGE,oBAArG,EAA2HC,6BAA3H,EAA0JiC,6BAA1J,CAAJ;AACApC,IAAI,CAAC,qGAAD,EAAwGE,oBAAxG,EAA8HC,6BAA9H,EAA6JkC,gCAA7J,CAAJ;AACArC,IAAI,CAAC,mGAAD,EAAsGE,oBAAtG,EAA4HC,6BAA5H,EAA2JmC,8BAA3J,CAAJ","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 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 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 › 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 › WizardPopulationsPlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardPopulationsPlaylist);\ntest('TemplateBackOffice › TemplateBackOfficeBrandUpdate › WizardTranslatePlaylist › should be rendered', renderComponentMacro, TemplateBackOfficeBrandUpdate, fixtureWizardTranslatePlaylist);\n"],"file":"fixtures.js"}
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../src/organism/list-items/index.js"],"names":["ListItems","title","buttonLink","items","ariaLabel","itemsView","map","item","id","style","header","buttonCreate","list","propTypes","PropTypes","string","shape","ButtonLink","arrayOf","ListItem"],"mappings":";;;;;AAAA;;AACA;;AAEA;;AACA;;AAEA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;AAACC,EAAAA,KAAD;AAAQC,EAAAA,UAAR;AAAoBC,EAAAA,KAApB;AAA2B,gBAAcC;AAAzC,CAAD,KAAyD;AACzE,QAAMC,SAAS,GAAGF,KAAK,CAACG,GAAN,CAAUC,IAAI,iBAC9B;AAAI,IAAA,GAAG,EAAEA,IAAI,CAACC,EAAd;AAAkB,IAAA,SAAS,EAAEC,eAAMF;AAAnC,kBACE,6BAAC,iBAAD,EAAcA,IAAd,CADF,CADgB,CAAlB;AAMA,sBACE,uDACE;AAAK,IAAA,SAAS,EAAEE,eAAMC;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAED,eAAMR;AAAtB,kBACE,6BAAC,cAAD;AAAO,IAAA,KAAK,EAAEA,KAAd;AAAqB,IAAA,IAAI,EAAE;AAA3B,IADF,CADF,eAIE;AAAK,IAAA,SAAS,EAAEQ,eAAME;AAAtB,kBACE,6BAAC,mBAAD,EAAgBT,UAAhB,CADF,CAJF,CADF,eASE;AAAI,IAAA,SAAS,EAAEO,eAAMG,IAArB;AAA2B,kBAAYR;AAAvC,KACGC,SADH,CATF,CADF;AAeD,CAtBD;;AAwBAL,SAAS,CAACa,SAAV,2CAAsB;AACpB,gBAAcC,mBAAUC,MADJ;AAEpBb,EAAAA,UAAU,EAAEY,mBAAUE,KAAV,CAAgBC,oBAAWJ,SAA3B,CAFQ;AAGpBV,EAAAA,KAAK,EAAEW,mBAAUI,OAAV,CAAkBJ,mBAAUE,KAAV,CAAgBG,kBAASN,SAAzB,CAAlB,CAHa;AAIpBZ,EAAAA,KAAK,EAAEa,mBAAUC;AAJG,CAAtB;eAOef,S","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\n\nimport ListItem from '../list-item';\nimport Title from '../../atom/title';\n\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst ListItems = ({title, buttonLink, items, 'aria-label': ariaLabel}) => {\n const itemsView = items.map(item => (\n <li key={item.id} className={style.item}>\n <ListItem {...item} />\n </li>\n ));\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} />\n </div>\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n <ul className={style.list} aria-label={ariaLabel}>\n {itemsView}\n </ul>\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"file":"index.js"}
1
+ {"version":3,"sources":["../../../src/organism/list-items/index.js"],"names":["ListItems","title","buttonLink","items","ariaLabel","itemsView","map","item","id","style","header","buttonCreate","list","propTypes","PropTypes","string","shape","ButtonLink","arrayOf","ListItem"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,MAAMA,SAAS,GAAG,CAAC;AAACC,EAAAA,KAAD;AAAQC,EAAAA,UAAR;AAAoBC,EAAAA,KAApB;AAA2B,gBAAcC;AAAzC,CAAD,KAAyD;AACzE,QAAMC,SAAS,GAAGF,KAAK,CAACG,GAAN,CAAUC,IAAI,iBAC9B;AAAI,IAAA,GAAG,EAAEA,IAAI,CAACC,EAAd;AAAkB,IAAA,SAAS,EAAEC,eAAMF;AAAnC,kBACE,6BAAC,iBAAD,EAAcA,IAAd,CADF,CADgB,CAAlB;AAMA,sBACE,uDACE;AAAK,IAAA,SAAS,EAAEE,eAAMC;AAAtB,kBACE;AAAK,IAAA,SAAS,EAAED,eAAMR;AAAtB,kBACE,6BAAC,cAAD;AAAO,IAAA,KAAK,EAAEA,KAAd;AAAqB,IAAA,IAAI,EAAE;AAA3B,IADF,CADF,eAIE;AAAK,IAAA,SAAS,EAAEQ,eAAME;AAAtB,kBACE,6BAAC,mBAAD,EAAgBT,UAAhB,CADF,CAJF,CADF,eASE;AAAI,IAAA,SAAS,EAAEO,eAAMG,IAArB;AAA2B,kBAAYR;AAAvC,KACGC,SADH,CATF,CADF;AAeD,CAtBD;;AAwBAL,SAAS,CAACa,SAAV,2CAAsB;AACpB,gBAAcC,mBAAUC,MADJ;AAEpBb,EAAAA,UAAU,EAAEY,mBAAUE,KAAV,CAAgBC,oBAAWJ,SAA3B,CAFQ;AAGpBV,EAAAA,KAAK,EAAEW,mBAAUI,OAAV,CAAkBJ,mBAAUE,KAAV,CAAgBG,kBAASN,SAAzB,CAAlB,CAHa;AAIpBZ,EAAAA,KAAK,EAAEa,mBAAUC;AAJG,CAAtB;eAOef,S","sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport ListItem from '../list-item';\nimport Title from '../../atom/title';\nimport ButtonLink from '../../atom/button-link';\nimport style from './style.css';\n\nconst ListItems = ({title, buttonLink, items, 'aria-label': ariaLabel}) => {\n const itemsView = items.map(item => (\n <li key={item.id} className={style.item}>\n <ListItem {...item} />\n </li>\n ));\n\n return (\n <div>\n <div className={style.header}>\n <div className={style.title}>\n <Title title={title} type={'form-group'} />\n </div>\n <div className={style.buttonCreate}>\n <ButtonLink {...buttonLink} />\n </div>\n </div>\n <ul className={style.list} aria-label={ariaLabel}>\n {itemsView}\n </ul>\n </div>\n );\n};\n\nListItems.propTypes = {\n 'aria-label': PropTypes.string,\n buttonLink: PropTypes.shape(ButtonLink.propTypes),\n items: PropTypes.arrayOf(PropTypes.shape(ListItem.propTypes)),\n title: PropTypes.string\n};\n\nexport default ListItems;\n"],"file":"index.js"}
@@ -35,6 +35,8 @@ var _brandDashboard = _interopRequireDefault(require("../../../organism/brand-da
35
35
 
36
36
  var _wizardContents = _interopRequireDefault(require("../../../organism/wizard-contents"));
37
37
 
38
+ var _listItems = _interopRequireDefault(require("../../../organism/list-items"));
39
+
38
40
  var _banner = _interopRequireDefault(require("../../../molecule/banner"));
39
41
 
40
42
  var _setupHeader = _interopRequireDefault(require("../../../organism/setup-header"));
@@ -156,6 +158,9 @@ const buildContentView = content => {
156
158
  case 'analytics-dashboards':
157
159
  return /*#__PURE__*/_react.default.createElement(_brandAnalytics.default, content);
158
160
 
161
+ case 'list-content':
162
+ return /*#__PURE__*/_react.default.createElement(_listItems.default, content);
163
+
159
164
  case 'home':
160
165
  return /*#__PURE__*/_react.default.createElement(_brandDashboard.default, content);
161
166
 
@@ -242,6 +247,9 @@ BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
242
247
  })), _propTypes.default.shape(_extends(_extends({}, _wizardContents.default.propTypes), {}, {
243
248
  key: _propTypes.default.string,
244
249
  type: _propTypes.default.oneOf(['wizard'])
250
+ })), _propTypes.default.shape(_extends(_extends({}, _listItems.default.propTypes), {}, {
251
+ key: _propTypes.default.string,
252
+ type: _propTypes.default.oneOf(['list-content'])
245
253
  }))]),
246
254
  details: _propTypes.default.shape(_extends(_extends({}, _brandTable.default.propTypes), {}, {
247
255
  key: _propTypes.default.string,
@@ -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","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","PropTypes","arrayOf","shape","Banner","Header","string","isRequired","bool","oneOfType","BrandForm","oneOf","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","func"],"mappings":";;;;;AAAA;;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,MAA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AA,GAAG,EAAEwC,mBAAUK,MAFjB;AAGEpD,IAAAA,IAAI,EAAE+C,mBAAUU,KAAV,CAAgB,CAAC,sBAAD,CAAhB;AAHR,KAhB2B,EAqB3BV,mBAAUE,KAAV,uBACKY,wBAAef,SADpB;AAEEvC,IAAAA,GAAG,EAAEwC,mBAAUK,MAFjB;AAGEpD,IAAAA,IAAI,EAAE+C,mBAAUU,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHR,KArB2B,EA0B3BV,mBAAUE,KAAV,uBACKa,wBAAehB,SADpB;AAEEvC,IAAAA,GAAG,EAAEwC,mBAAUK,MAFjB;AAGEpD,IAAAA,IAAI,EAAE+C,mBAAUU,KAAV,CAAgB,CAAC,QAAD,CAAhB;AAHR,KA1B2B,CAApB,CAhCa;AAgEtB3B,EAAAA,OAAO,EAAEiB,mBAAUE,KAAV,uBACJS,oBAAWZ,SADP;AAEPvC,IAAAA,GAAG,EAAEwC,mBAAUK,MAFR;AAGPpD,IAAAA,IAAI,EAAE+C,mBAAUU,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHC,KAhEa;AAqEtBpD,EAAAA,WAAW,EAAE0C,mBAAUgB;AArED,CAAxB;eAwEehC,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 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"}
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","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","PropTypes","arrayOf","shape","Banner","Header","string","isRequired","bool","oneOfType","BrandForm","oneOf","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","func"],"mappings":";;;;;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;AAC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P;AAEPvC,IAAAA,GAAG,EAAEwC,mBAAUK,MAFR;AAGPpD,IAAAA,IAAI,EAAE+C,mBAAUU,KAAV,CAAgB,CAAC,MAAD,CAAhB;AAHC,KArEa;AA0EtBpD,EAAAA,WAAW,EAAE0C,mBAAUiB;AA1ED,CAAxB;eA6EejC,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 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 '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, 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 PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content'])\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"}
@@ -25,7 +25,7 @@ const items = [{
25
25
  title: 'Editorialization',
26
26
  key: 'editorialization',
27
27
  href: '#brand/samsung/editorialization',
28
- type: 'iconLink',
28
+ type: 'collapsibleTab',
29
29
  open: false,
30
30
  selected: false
31
31
  }, {
@@ -1 +1 @@
1
- {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/default.js"],"names":["items","title","key","href","open","undefined","selected","type","isOpen","tabs","props","header","Header","notifications","logo","content","groups"],"mappings":";;;;;AAAA;;;;AAEO,MAAMA,KAAK,GAAG,CACnB;AACEC,EAAAA,KAAK,EAAE,cADT;AAEEC,EAAAA,GAAG,EAAE,WAFP;AAGEC,EAAAA,IAAI,EAAE,0BAHR;AAIEC,EAAAA,IAAI,EAAEC,SAJR;AAKEC,EAAAA,QAAQ,EAAE,IALZ;AAMEC,EAAAA,IAAI,EAAE;AANR,CADmB,EASnB;AACEN,EAAAA,KAAK,EAAE,gBADT;AAEEC,EAAAA,GAAG,EAAE,gBAFP;AAGEC,EAAAA,IAAI,EAAE,+BAHR;AAIEC,EAAAA,IAAI,EAAE,KAJR;AAKEE,EAAAA,QAAQ,EAAE,KALZ;AAMEC,EAAAA,IAAI,EAAE;AANR,CATmB,EAiBnB;AACEN,EAAAA,KAAK,EAAE,kBADT;AAEEC,EAAAA,GAAG,EAAE,kBAFP;AAGEC,EAAAA,IAAI,EAAE,iCAHR;AAIEI,EAAAA,IAAI,EAAE,UAJR;AAKEH,EAAAA,IAAI,EAAE,KALR;AAMEE,EAAAA,QAAQ,EAAE;AANZ,CAjBmB,EAyBnB;AACEL,EAAAA,KAAK,EAAE,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CmB,CAAd;;eA0DQ;AACbI,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAEC,kBAAOF,KADV;AAELG,IAAAA,aAAa,EAAE,EAFV;AAGLb,IAAAA,KAHK;AAILc,IAAAA,IAAI,EAAE,EAJD;AAKLC,IAAAA,OAAO,EAAE;AACPR,MAAAA,IAAI,EAAE,MADC;AAEPS,MAAAA,MAAM,EAAE;AAFD;AALJ;AADM,C","sourcesContent":["import Header from '../../../../../organism/setup-header/test/fixtures/default';\n\nexport const items = [\n {\n title: 'My Dashboard',\n key: 'dashboard',\n href: '#brand/samsung/dashboard',\n open: undefined,\n selected: true,\n type: 'simpleTab'\n },\n {\n title: 'Administration',\n key: 'administration',\n href: '#brand/samsung/administration',\n open: false,\n selected: false,\n type: 'collapsibleTab'\n },\n {\n title: 'Editorialization',\n key: 'editorialization',\n href: '#brand/samsung/editorialization',\n type: 'iconLink',\n open: false,\n selected: false\n },\n {\n title: 'Content Creation',\n key: 'contentCreation',\n href: '#brand/samsung/content-creation',\n open: false,\n selected: false,\n type: 'iconLink'\n },\n {\n title: 'Animation',\n key: 'animation',\n href: '#brand/samsung/content-creation',\n selected: false,\n isOpen: true,\n type: 'collapsibleTab'\n },\n {\n title: 'Analytics',\n key: 'analytics',\n href: '#brand/samsung/analytics',\n open: false,\n selected: false,\n type: 'collapsibleTab',\n tabs: [\n {title: 'SSO', href: '#/sso', selected: false, type: 'iconLink'},\n {title: 'Look and Feel', href: '#/look-and-feel', selected: false},\n {title: 'Settings', href: '#/settings', selected: false},\n {title: 'Any', href: '#/any', selected: false},\n {title: 'Many', href: '#/many', selected: false}\n ]\n }\n];\n\nexport default {\n props: {\n header: Header.props,\n notifications: [],\n items,\n logo: '',\n content: {\n type: 'form',\n groups: []\n }\n }\n};\n"],"file":"default.js"}
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/default.js"],"names":["items","title","key","href","open","undefined","selected","type","isOpen","tabs","props","header","Header","notifications","logo","content","gro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,KAJR;AAKEE,EAAAA,QAAQ,EAAE,KALZ;AAMEC,EAAAA,IAAI,EAAE,gBANR;AAOEE,EAAAA,IAAI,EAAE,CACJ;AAACR,IAAAA,KAAK,EAAE,KAAR;AAAeE,IAAAA,IAAI,EAAE,OAArB;AAA8BG,IAAAA,QAAQ,EAAE,KAAxC;AAA+CC,IAAAA,IAAI,EAAE;AAArD,GADI,EAEJ;AAACN,IAAAA,KAAK,EAAE,eAAR;AAAyBE,IAAAA,IAAI,EAAE,iBAA/B;AAAkDG,IAAAA,QAAQ,EAAE;AAA5D,GAFI,EAGJ;AAACL,IAAAA,KAAK,EAAE,UAAR;AAAoBE,IAAAA,IAAI,EAAE,YAA1B;AAAwCG,IAAAA,QAAQ,EAAE;AAAlD,GAHI,EAIJ;AAACL,IAAAA,KAAK,EAAE,KAAR;AAAeE,IAAAA,IAAI,EAAE,OAArB;AAA8BG,IAAAA,QAAQ,EAAE;AAAxC,GAJI,EAKJ;AAACL,IAAAA,KAAK,EAAE,MAAR;AAAgBE,IAAAA,IAAI,EAAE,QAAtB;AAAgCG,IAAAA,QAAQ,EAAE;AAA1C,GALI;AAPR,CAzCmB,CAAd;;eA0DQ;AACbI,EAAAA,KAAK,EAAE;AACLC,IAAAA,MAAM,EAAEC,kBAAOF,KADV;AAELG,IAAAA,aAAa,EAAE,EAFV;AAGLb,IAAAA,KAHK;AAILc,IAAAA,IAAI,EAAE,EAJD;AAKLC,IAAAA,OAAO,EAAE;AACPR,MAAAA,IAAI,EAAE,MADC;AAEPS,MAAAA,MAAM,EAAE;AAFD;AALJ;AADM,C","sourcesContent":["import Header from '../../../../../organism/setup-header/test/fixtures/default';\n\nexport const items = [\n {\n title: 'My Dashboard',\n key: 'dashboard',\n href: '#brand/samsung/dashboard',\n open: undefined,\n selected: true,\n type: 'simpleTab'\n },\n {\n title: 'Administration',\n key: 'administration',\n href: '#brand/samsung/administration',\n open: false,\n selected: false,\n type: 'collapsibleTab'\n },\n {\n title: 'Editorialization',\n key: 'editorialization',\n href: '#brand/samsung/editorialization',\n type: 'collapsibleTab',\n open: false,\n selected: false\n },\n {\n title: 'Content Creation',\n key: 'contentCreation',\n href: '#brand/samsung/content-creation',\n open: false,\n selected: false,\n type: 'iconLink'\n },\n {\n title: 'Animation',\n key: 'animation',\n href: '#brand/samsung/content-creation',\n selected: false,\n isOpen: true,\n type: 'collapsibleTab'\n },\n {\n title: 'Analytics',\n key: 'analytics',\n href: '#brand/samsung/analytics',\n open: false,\n selected: false,\n type: 'collapsibleTab',\n tabs: [\n {title: 'SSO', href: '#/sso', selected: false, type: 'iconLink'},\n {title: 'Look and Feel', href: '#/look-and-feel', selected: false},\n {title: 'Settings', href: '#/settings', selected: false},\n {title: 'Any', href: '#/any', selected: false},\n {title: 'Many', href: '#/many', selected: false}\n ]\n }\n];\n\nexport default {\n props: {\n header: Header.props,\n notifications: [],\n items,\n logo: '',\n content: {\n type: 'form',\n groups: []\n }\n }\n};\n"],"file":"default.js"}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _cloneDeep2 = _interopRequireDefault(require("lodash/fp/cloneDeep"));
7
+
8
+ var _defaultsDeep2 = _interopRequireDefault(require("lodash/fp/defaultsDeep"));
9
+
10
+ var _archived = _interopRequireDefault(require("../../../../../organism/list-items/test/fixtures/archived"));
11
+
12
+ var _default2 = _interopRequireDefault(require("./default"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ 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); }
17
+
18
+ const props = (0, _cloneDeep2.default)(_default2.default.props);
19
+ const listItemsProps = _archived.default.props;
20
+ props.items[0].selected = false;
21
+ props.items[2].selected = true;
22
+ props.items[2].tabs = [{
23
+ title: 'Look & feel',
24
+ href: '/brands/7steps/admin/look-and-feel',
25
+ name: 'brand_tab_admin_look_and_feel',
26
+ selected: false,
27
+ type: 'simpleTab'
28
+ }, {
29
+ title: 'Content',
30
+ href: '/brands/7steps/admin/content',
31
+ name: 'brand_tab_admin_user',
32
+ selected: false,
33
+ type: 'simpleTab'
34
+ }, {
35
+ title: 'Dashboard',
36
+ href: '/brands/7steps/admin/user/dashboard',
37
+ name: 'brand_tab_admin_user',
38
+ selected: false,
39
+ type: 'simpleTab'
40
+ }, {
41
+ title: 'Custom Playlists',
42
+ href: '/brands/7steps/admin/custom-playlist/published',
43
+ name: 'brand_tab_admin_custom_playlist',
44
+ selected: true,
45
+ type: 'simpleTab',
46
+ subTabs: [{
47
+ title: 'Published',
48
+ href: '/brands/7steps/admin/custom-playlist/published',
49
+ name: 'published',
50
+ permissions: ['published'],
51
+ selected: false,
52
+ type: 'simpleTab'
53
+ }, {
54
+ title: 'Drafts',
55
+ href: '/brands/7steps/admin/custom-playlist/drafts',
56
+ name: 'drafts',
57
+ permissions: ['drafts'],
58
+ selected: false,
59
+ type: 'simpleTab'
60
+ }, {
61
+ title: 'Archived',
62
+ href: '/brands/7steps/admin/custom-playlist/archived',
63
+ name: 'archived',
64
+ permissions: ['archived'],
65
+ selected: true,
66
+ type: 'simpleTab'
67
+ }]
68
+ }];
69
+ var _default = {
70
+ props: (0, _defaultsDeep2.default)(props, {
71
+ content: _extends(_extends({}, listItemsProps), {}, {
72
+ type: 'list-content'
73
+ })
74
+ })
75
+ };
76
+ exports.default = _default;
77
+ //# sourceMappingURL=list-items-archived.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/list-items-archived.js"],"names":["props","Default","listItemsProps","listItems","items","selected","tabs","title","href","name","type","subTabs","permissions","content"],"mappings":";;;;;;;;;AACA;;AACA;;;;;;AAEA,MAAMA,KAAK,GAAG,yBAAUC,kBAAQD,KAAlB,CAAd;AACA,MAAME,cAA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;AAGEC,IAAAA,IAAI,EAAE,QAHR;AAIEG,IAAAA,WAAW,EAAE,CAAC,QAAD,CAJf;AAKEP,IAAAA,QAAQ,EAAE,KALZ;AAMEK,IAAAA,IAAI,EAAE;AANR,GATO,EAiBP;AACEH,IAAAA,KAAK,EAAE,UADT;AAEEC,IAAAA,IAAI,EAAE,+CAFR;AAGEC,IAAAA,IAAI,EAAE,UAHR;AAIEG,IAAAA,WAAW,EAAE,CAAC,UAAD,CAJf;AAKEP,IAAAA,QAAQ,EAAE,IALZ;AAMEK,IAAAA,IAAI,EAAE;AANR,GAjBO;AANX,CAtBoB,CAAtB;eAyDe;AACbV,EAAAA,KAAK,EAAE,4BAAaA,KAAb,EAAoB;AACzBa,IAAAA,OAAO,wBACFX,cADE;AAELQ,MAAAA,IAAI,EAAE;AAFD;AADkB,GAApB;AADM,C","sourcesContent":["import {defaultsDeep, cloneDeep} from 'lodash/fp';\nimport listItems from '../../../../../organism/list-items/test/fixtures/archived';\nimport Default from './default';\n\nconst props = cloneDeep(Default.props);\nconst listItemsProps = listItems.props;\n\nprops.items[0].selected = false;\nprops.items[2].selected = true;\nprops.items[2].tabs = [\n {\n title: 'Look & feel',\n href: '/brands/7steps/admin/look-and-feel',\n name: 'brand_tab_admin_look_and_feel',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Content',\n href: '/brands/7steps/admin/content',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Dashboard',\n href: '/brands/7steps/admin/user/dashboard',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Custom Playlists',\n href: '/brands/7steps/admin/custom-playlist/published',\n name: 'brand_tab_admin_custom_playlist',\n selected: true,\n type: 'simpleTab',\n subTabs: [\n {\n title: 'Published',\n href: '/brands/7steps/admin/custom-playlist/published',\n name: 'published',\n permissions: ['published'],\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Drafts',\n href: '/brands/7steps/admin/custom-playlist/drafts',\n name: 'drafts',\n permissions: ['drafts'],\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Archived',\n href: '/brands/7steps/admin/custom-playlist/archived',\n name: 'archived',\n permissions: ['archived'],\n selected: true,\n type: 'simpleTab'\n }\n ]\n }\n];\n\nexport default {\n props: defaultsDeep(props, {\n content: {\n ...listItemsProps,\n type: 'list-content'\n }\n })\n};\n"],"file":"list-items-archived.js"}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _cloneDeep2 = _interopRequireDefault(require("lodash/fp/cloneDeep"));
7
+
8
+ var _defaultsDeep2 = _interopRequireDefault(require("lodash/fp/defaultsDeep"));
9
+
10
+ var _draft = _interopRequireDefault(require("../../../../../organism/list-items/test/fixtures/draft"));
11
+
12
+ var _default2 = _interopRequireDefault(require("./default"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ 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); }
17
+
18
+ const props = (0, _cloneDeep2.default)(_default2.default.props);
19
+ const listItemsProps = _draft.default.props;
20
+ props.items[0].selected = false;
21
+ props.items[2].selected = true;
22
+ props.items[2].tabs = [{
23
+ title: 'Look & feel',
24
+ href: '/brands/7steps/admin/look-and-feel',
25
+ name: 'brand_tab_admin_look_and_feel',
26
+ selected: false,
27
+ type: 'simpleTab'
28
+ }, {
29
+ title: 'Content',
30
+ href: '/brands/7steps/admin/content',
31
+ name: 'brand_tab_admin_user',
32
+ selected: false,
33
+ type: 'simpleTab'
34
+ }, {
35
+ title: 'Dashboard',
36
+ href: '/brands/7steps/admin/user/dashboard',
37
+ name: 'brand_tab_admin_user',
38
+ selected: false,
39
+ type: 'simpleTab'
40
+ }, {
41
+ title: 'Custom Playlists',
42
+ href: '/brands/7steps/admin/custom-playlist/published',
43
+ name: 'brand_tab_admin_custom_playlist',
44
+ selected: true,
45
+ type: 'simpleTab',
46
+ subTabs: [{
47
+ title: 'Published',
48
+ href: '/brands/7steps/admin/custom-playlist/published',
49
+ name: 'published',
50
+ permissions: ['published'],
51
+ selected: false,
52
+ type: 'simpleTab'
53
+ }, {
54
+ title: 'Drafts',
55
+ href: '/brands/7steps/admin/custom-playlist/drafts',
56
+ name: 'drafts',
57
+ permissions: ['drafts'],
58
+ selected: true,
59
+ type: 'simpleTab'
60
+ }, {
61
+ title: 'Archived',
62
+ href: '/brands/7steps/admin/custom-playlist/archived',
63
+ name: 'archived',
64
+ permissions: ['archived'],
65
+ selected: false,
66
+ type: 'simpleTab'
67
+ }]
68
+ }];
69
+ var _default = {
70
+ props: (0, _defaultsDeep2.default)(props, {
71
+ content: _extends(_extends({}, listItemsProps), {}, {
72
+ type: 'list-content'
73
+ })
74
+ })
75
+ };
76
+ exports.default = _default;
77
+ //# sourceMappingURL=list-items-draft.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/list-items-draft.js"],"names":["props","Default","listItemsProps","listItems","items","selected","tabs","title","href","name","type","subTabs","permissions","content"],"mappings":";;;;;;;;;AACA;;AACA;;;;;;AAEA,MAAMA,KAAK,GAAG,yBAAUC,kBAAQD,KAAlB,CAAd;AACA,MAAME,cAAc,GAAGC,eAAUH,KAAjC;AAEAA,KAAK,CAACI,KAAN,CAAY,CAAZ,EAAeC,QAAf,GAA0B,KAA1B;AACAL,KAAK,CAACI,KAAN,CAAY,CAAZ,EAAeC,QAAf,GAA0B,IAA1B;AACAL,KAAK,CAACI,KAAN,CAAY,CAAZ,EAAeE,IAAf,GAAsB,CACpB;AACEC,EAAAA,KAAK,EAAE,aADT;AAEEC,EAAAA,IAAI,EAAE,oCAFR;AAGEC,EAAAA,IAAI,EAAE,+BAHR;AAIEJ,EAAAA,QA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,IAAAA,IAAI,EAAE;AANR,GAjBO;AANX,CAtBoB,CAAtB;eAyDe;AACbV,EAAAA,KAAK,EAAE,4BAAaA,KAAb,EAAoB;AACzBa,IAAAA,OAAO,wBACFX,cADE;AAELQ,MAAAA,IAAI,EAAE;AAFD;AADkB,GAApB;AADM,C","sourcesContent":["import {defaultsDeep, cloneDeep} from 'lodash/fp';\nimport listItems from '../../../../../organism/list-items/test/fixtures/draft';\nimport Default from './default';\n\nconst props = cloneDeep(Default.props);\nconst listItemsProps = listItems.props;\n\nprops.items[0].selected = false;\nprops.items[2].selected = true;\nprops.items[2].tabs = [\n {\n title: 'Look & feel',\n href: '/brands/7steps/admin/look-and-feel',\n name: 'brand_tab_admin_look_and_feel',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Content',\n href: '/brands/7steps/admin/content',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Dashboard',\n href: '/brands/7steps/admin/user/dashboard',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Custom Playlists',\n href: '/brands/7steps/admin/custom-playlist/published',\n name: 'brand_tab_admin_custom_playlist',\n selected: true,\n type: 'simpleTab',\n subTabs: [\n {\n title: 'Published',\n href: '/brands/7steps/admin/custom-playlist/published',\n name: 'published',\n permissions: ['published'],\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Drafts',\n href: '/brands/7steps/admin/custom-playlist/drafts',\n name: 'drafts',\n permissions: ['drafts'],\n selected: true,\n type: 'simpleTab'\n },\n {\n title: 'Archived',\n href: '/brands/7steps/admin/custom-playlist/archived',\n name: 'archived',\n permissions: ['archived'],\n selected: false,\n type: 'simpleTab'\n }\n ]\n }\n];\n\nexport default {\n props: defaultsDeep(props, {\n content: {\n ...listItemsProps,\n type: 'list-content'\n }\n })\n};\n"],"file":"list-items-draft.js"}
@@ -0,0 +1,77 @@
1
+ "use strict";
2
+
3
+ exports.__esModule = true;
4
+ exports.default = void 0;
5
+
6
+ var _cloneDeep2 = _interopRequireDefault(require("lodash/fp/cloneDeep"));
7
+
8
+ var _defaultsDeep2 = _interopRequireDefault(require("lodash/fp/defaultsDeep"));
9
+
10
+ var _published = _interopRequireDefault(require("../../../../../organism/list-items/test/fixtures/published"));
11
+
12
+ var _default2 = _interopRequireDefault(require("./default"));
13
+
14
+ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
+
16
+ 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); }
17
+
18
+ const props = (0, _cloneDeep2.default)(_default2.default.props);
19
+ const listItemsProps = _published.default.props;
20
+ props.items[0].selected = false;
21
+ props.items[2].selected = true;
22
+ props.items[2].tabs = [{
23
+ title: 'Look & feel',
24
+ href: '/brands/7steps/admin/look-and-feel',
25
+ name: 'brand_tab_admin_look_and_feel',
26
+ selected: false,
27
+ type: 'simpleTab'
28
+ }, {
29
+ title: 'Content',
30
+ href: '/brands/7steps/admin/content',
31
+ name: 'brand_tab_admin_user',
32
+ selected: false,
33
+ type: 'simpleTab'
34
+ }, {
35
+ title: 'Dashboard',
36
+ href: '/brands/7steps/admin/user/dashboard',
37
+ name: 'brand_tab_admin_user',
38
+ selected: false,
39
+ type: 'simpleTab'
40
+ }, {
41
+ title: 'Custom Playlists',
42
+ href: '/brands/7steps/admin/custom-playlist/published',
43
+ name: 'brand_tab_admin_custom_playlist',
44
+ selected: true,
45
+ type: 'simpleTab',
46
+ subTabs: [{
47
+ title: 'Published',
48
+ href: '/brands/7steps/admin/custom-playlist/published',
49
+ name: 'published',
50
+ permissions: ['published'],
51
+ selected: true,
52
+ type: 'simpleTab'
53
+ }, {
54
+ title: 'Drafts',
55
+ href: '/brands/7steps/admin/custom-playlist/drafts',
56
+ name: 'drafts',
57
+ permissions: ['drafts'],
58
+ selected: false,
59
+ type: 'simpleTab'
60
+ }, {
61
+ title: 'Archived',
62
+ href: '/brands/7steps/admin/custom-playlist/archived',
63
+ name: 'archived',
64
+ permissions: ['archived'],
65
+ selected: false,
66
+ type: 'simpleTab'
67
+ }]
68
+ }];
69
+ var _default = {
70
+ props: (0, _defaultsDeep2.default)(props, {
71
+ content: _extends(_extends({}, listItemsProps), {}, {
72
+ type: 'list-content'
73
+ })
74
+ })
75
+ };
76
+ exports.default = _default;
77
+ //# sourceMappingURL=list-items-published.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"sources":["../../../../../../src/template/back-office/brand-update/test/fixtures/list-items-published.js"],"names":["props","Default","listItemsProps","listItems","items","selected","tabs","title","href","name","type","subTabs","permissions","content"],"mappings":";;;;;;;;;AACA;;AACA;;;;;;AAEA,MAAMA,KAAK,GAAG,yBAAUC,kBAAQD,KAAlB,CAAd;AACA,MAAME,cAAc,GAAGC,mBAAUH,KAAjC;AAEAA,KAAK,CAACI,KAAN,CAAY,CAAZ,EAAeC,QAAf,GAA0B,KAA1B;AACAL,KAAK,CAACI,KAAN,CAAY,CAAZ,EAAeC,QAAf,GAA0B,IAA1B;AACAL,KAAK,CAACI,KAAN,CAAY,CAAZ,EAAeE,IAAf,GAAsB,CACpB;AACEC,EAAAA,KAAK,EAAE,aADT;AAEEC,EAAAA,IAAI,EAAE,oCAFR;AAGEC,EAAAA,IAAI,EAAE,+BAHR;AAIEJ,EAAAA,QAAQ,EAAE,KAJZ;AAKEK,EAAAA,IAAI,EAAE;AALR,CADoB,EAQpB;AACEH,EAAAA,KAAK,EAAE,SADT;AAEEC,EAAAA,IAAI,EAAE,8BAFR;AAGEC,EAAAA,IAAI,EAAE,sBAHR;AAIEJ,EAAAA,QAAQ,EAAE,KAJZ;AAKEK,EAAAA,IAAI,EAAE;AALR,CARoB,EAepB;AACEH,EAAAA,KAAK,EAAE,WADT;AAEEC,EAAAA,IAAI,EAAE,qCAFR;AAGEC,EAAAA,IAAI,EAAE,sBAHR;AAIEJ,EAAAA,QAAQ,EAAE,KAJZ;AAKEK,EAAAA,IAAI,EAAE;AALR,CAfoB,EAsBpB;AACEH,EAAAA,KAAK,EAAE,kBADT;AAEEC,EAAAA,IAAI,EAAE,gDAFR;AAGEC,EAAAA,IAAI,EAAE,iCAHR;AAIEJ,EAAAA,QAAQ,EAAE,IAJZ;AAKEK,EAAAA,IAAI,EAAE,WALR;AAMEC,EAAAA,OAAO,EAAE,CACP;AACEJ,IAAAA,KAAK,EAAE,WADT;AAEEC,IAAAA,IAAI,EAAE,gDAFR;AAGEC,IAAAA,IAAI,EAAE,WAHR;AAIEG,IAAAA,WAAW,EAAE,CAAC,WAAD,CAJf;AAKEP,IAAAA,QAAQ,EAAE,IALZ;AAMEK,IAAAA,IAAI,EAAE;AANR,GADO,EASP;AACEH,IAAAA,KAAK,EAAE,QADT;AAEEC,IAAAA,IAAI,EAAE,6CAFR;AAGEC,IAAAA,IAAI,EAAE,QAHR;AAIEG,IAAAA,WAAW,EAAE,CAAC,QAAD,CAJf;AAKEP,IAAAA,QAAQ,EAAE,KALZ;AAMEK,IAAAA,IAAI,EAAE;AANR,GATO,EAiBP;AACEH,IAAAA,KAAK,EAAE,UADT;AAEEC,IAAAA,IAAI,EAAE,+CAFR;AAGEC,IAAAA,IAAI,EAAE,UAHR;AAIEG,IAAAA,WAAW,EAAE,CAAC,UAAD,CAJf;AAKEP,IAAAA,QAAQ,EAAE,KALZ;AAMEK,IAAAA,IAAI,EAAE;AANR,GAjBO;AANX,CAtBoB,CAAtB;eAyDe;AACbV,EAAAA,KAAK,EAAE,4BAAaA,KAAb,EAAoB;AACzBa,IAAAA,OAAO,wBACFX,cADE;AAELQ,MAAAA,IAAI,EAAE;AAFD;AADkB,GAApB;AADM,C","sourcesContent":["import {defaultsDeep, cloneDeep} from 'lodash/fp';\nimport listItems from '../../../../../organism/list-items/test/fixtures/published';\nimport Default from './default';\n\nconst props = cloneDeep(Default.props);\nconst listItemsProps = listItems.props;\n\nprops.items[0].selected = false;\nprops.items[2].selected = true;\nprops.items[2].tabs = [\n {\n title: 'Look & feel',\n href: '/brands/7steps/admin/look-and-feel',\n name: 'brand_tab_admin_look_and_feel',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Content',\n href: '/brands/7steps/admin/content',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Dashboard',\n href: '/brands/7steps/admin/user/dashboard',\n name: 'brand_tab_admin_user',\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Custom Playlists',\n href: '/brands/7steps/admin/custom-playlist/published',\n name: 'brand_tab_admin_custom_playlist',\n selected: true,\n type: 'simpleTab',\n subTabs: [\n {\n title: 'Published',\n href: '/brands/7steps/admin/custom-playlist/published',\n name: 'published',\n permissions: ['published'],\n selected: true,\n type: 'simpleTab'\n },\n {\n title: 'Drafts',\n href: '/brands/7steps/admin/custom-playlist/drafts',\n name: 'drafts',\n permissions: ['drafts'],\n selected: false,\n type: 'simpleTab'\n },\n {\n title: 'Archived',\n href: '/brands/7steps/admin/custom-playlist/archived',\n name: 'archived',\n permissions: ['archived'],\n selected: false,\n type: 'simpleTab'\n }\n ]\n }\n];\n\nexport default {\n props: defaultsDeep(props, {\n content: {\n ...listItemsProps,\n type: 'list-content'\n }\n })\n};\n"],"file":"list-items-published.js"}
@@ -26,6 +26,12 @@ var _generalSettingsSuccess = _interopRequireDefault(require("./fixtures/general
26
26
 
27
27
  var _generalSettings = _interopRequireDefault(require("./fixtures/general-settings"));
28
28
 
29
+ var _listItemsArchived = _interopRequireDefault(require("./fixtures/list-items-archived"));
30
+
31
+ var _listItemsDraft = _interopRequireDefault(require("./fixtures/list-items-draft"));
32
+
33
+ var _listItemsPublished = _interopRequireDefault(require("./fixtures/list-items-published"));
34
+
29
35
  var _lmsError = _interopRequireDefault(require("./fixtures/lms-error"));
30
36
 
31
37
  var _lmsModified = _interopRequireDefault(require("./fixtures/lms-modified"));
@@ -89,6 +95,9 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
89
95
  (0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › Default › should be rendered', _renderComponent.default, _.default, _default.default);
90
96
  (0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettingsSuccess › should be rendered', _renderComponent.default, _.default, _generalSettingsSuccess.default);
91
97
  (0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › GeneralSettings › should be rendered', _renderComponent.default, _.default, _generalSettings.default);
98
+ (0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsArchived › should be rendered', _renderComponent.default, _.default, _listItemsArchived.default);
99
+ (0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsDraft › should be rendered', _renderComponent.default, _.default, _listItemsDraft.default);
100
+ (0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › ListItemsPublished › should be rendered', _renderComponent.default, _.default, _listItemsPublished.default);
92
101
  (0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsError › should be rendered', _renderComponent.default, _.default, _lmsError.default);
93
102
  (0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsModified › should be rendered', _renderComponent.default, _.default, _lmsModified.default);
94
103
  (0, _ava.default)('TemplateBackOffice › TemplateBackOfficeBrandUpdate › LmsSuccess › should be rendered', _renderComponent.default, _.default, _lmsSuccess.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","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","fixtureWizardAddCoursesPlaylist","fixtureWizardFormCreatePlaylist","fixtureWizardFormEditPlaylist","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;;;;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;AAC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ArG,EAA2HN,SAA3H,EAA0J+B,2BAA1J;AACA,kBAAK,iGAAL,EAAwGzB,wBAAxG,EAA8HN,SAA9H,EAA6JgC,8BAA7J;AACA,kBAAK,uFAAL,EAA8F1B,wBAA9F,EAAoHN,SAApH,EAAmJiC,oBAAnJ;AACA,kBAAK,oGAAL,EAA2G3B,wBAA3G,EAAiIN,SAAjI,EAAgKkC,iCAAhK;AACA,kBAAK,oGAAL,EAA2G5B,wBAA3G,EAAiIN,SAAjI,EAAgKmC,iCAAhK;AACA,kBAAK,kGAAL,EAAyG7B,wBAAzG,EAA+HN,SAA/H,EAA8JoC,+BAA9J;AACA,kBAAK,qGAAL,EAA4G9B,wBAA5G,EAAkIN,SAAlI,EAAiKqC,kCAAjK;AACA,kBAAK,mGAAL,EAA0G/B,wBAA1G,EAAgIN,SAAhI,EAA+JsC,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 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 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 › 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 › 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","fixtureListItemsPublished","fixtureLmsError","fixtureLmsModified","fixtureLmsSuccess","fixtureLms","fixtureLoader","fixtureLookandfeelError","fixtureLookandfeelModified","fixtureLookandfeelPending","fixtureLookandfeelSuccess","fixtureLookandfeel","fixtureManageusersEdit","fixtureManageusersList","fixtureQuickAccess","fixtureSsoActivate","fixtureSso","fixtureUploadusersLoading","fixtureUploadusersSuccessful","fixtureUploadusers","fixtureWizardAddCoursesPlaylist","fixtureWizardFormCreatePlaylist","fixtureWizardFormEditPlaylist","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;;A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ACA,kBAAK,oGAAL,EAA2G/B,wBAA3G,EAAiIN,SAAjI,EAAgKsC,iCAAhK;AACA,kBAAK,kGAAL,EAAyGhC,wBAAzG,EAA+HN,SAA/H,EAA8JuC,+BAA9J;AACA,kBAAK,qGAAL,EAA4GjC,wBAA5G,EAAkIN,SAAlI,EAAiKwC,kCAAjK;AACA,kBAAK,mGAAL,EAA0GlC,wBAA1G,EAAgIN,SAAhI,EAA+JyC,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 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 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 › 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 › 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.3.0",
3
+ "version": "10.3.1",
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": "be3019044360ec18f9a133a2292e1f2d4ab443a4"
122
+ "gitHead": "1238381f2a4bca1ca9fb2b6dc61ae10e85c98cfc"
123
123
  }
@@ -1,17 +0,0 @@
1
- import test from 'ava';
2
- import forEach from 'lodash/forEach';
3
- import renderComponentMacro from '../../../test/helpers/render-component';
4
- import MoleculeCockpitPopin from '..';
5
- import fixtureDefault from './fixtures/default';
6
- import fixtureLoading from './fixtures/loading';
7
- import fixtureVideoTranslate from './fixtures/video-translate';
8
- test('Molecule › MoleculeCockpitPopin > should have valid propTypes', t => {
9
- t.pass();
10
- forEach(MoleculeCockpitPopin.propTypes, (value, key) => {
11
- t.not(value, undefined, `PropType for "Molecule.MoleculeCockpitPopin.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
12
- });
13
- });
14
- test('Molecule › MoleculeCockpitPopin › Default › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureDefault);
15
- test('Molecule › MoleculeCockpitPopin › Loading › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureLoading);
16
- test('Molecule › MoleculeCockpitPopin › VideoTranslate › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureVideoTranslate);
17
- //# sourceMappingURL=fixtures.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/molecule/cockpit-popin/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeCockpitPopin","fixtureDefault","fixtureLoading","fixtureVideoTranslate","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,oBAAP,MAAiC,IAAjC;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,qBAAP,MAAkC,4BAAlC;AAEAN,IAAI,CAAC,+DAAD,EAAkEO,CAAC,IAAI;AACzEA,EAAAA,CAAC,CAACC,IAAF;AACAP,EAAAA,OAAO,CAACE,oBAAoB,CAACM,SAAtB,EAAiC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yDAAwDF,GAAI,mEAArF;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAX,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GC,cAA/G,CAAJ;AACAJ,IAAI,CAAC,gEAAD,EAAmEE,oBAAnE,EAAyFC,oBAAzF,EAA+GE,cAA/G,CAAJ;AACAL,IAAI,CAAC,uEAAD,EAA0EE,oBAA1E,EAAgGC,oBAAhG,EAAsHG,qBAAtH,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCockpitPopin from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureVideoTranslate from './fixtures/video-translate';\n\ntest('Molecule › MoleculeCockpitPopin > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCockpitPopin.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCockpitPopin.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCockpitPopin › Default › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureDefault);\ntest('Molecule › MoleculeCockpitPopin › Loading › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureLoading);\ntest('Molecule › MoleculeCockpitPopin › VideoTranslate › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureVideoTranslate);\n"],"file":"fixtures.js"}
@@ -1,15 +0,0 @@
1
- import test from 'ava';
2
- import forEach from 'lodash/forEach';
3
- import renderComponentMacro from '../../../test/helpers/render-component';
4
- import MoleculeSearch from '..';
5
- import fixtureDefault from './fixtures/default';
6
- import fixtureWithValue from './fixtures/with-value';
7
- test('Molecule › MoleculeSearch > should have valid propTypes', t => {
8
- t.pass();
9
- forEach(MoleculeSearch.propTypes, (value, key) => {
10
- t.not(value, undefined, `PropType for "Molecule.MoleculeSearch.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
11
- });
12
- });
13
- test('Molecule › MoleculeSearch › Default › should be rendered', renderComponentMacro, MoleculeSearch, fixtureDefault);
14
- test('Molecule › MoleculeSearch › WithValue › should be rendered', renderComponentMacro, MoleculeSearch, fixtureWithValue);
15
- //# sourceMappingURL=fixtures.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/molecule/search/test/fixtures.js"],"names":["test","forEach","renderComponentMacro","MoleculeSearch","fixtureDefault","fixtureWithValue","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,cAAP,MAA2B,IAA3B;AACA,OAAOC,cAAP,MAA2B,oBAA3B;AACA,OAAOC,gBAAP,MAA6B,uBAA7B;AAEAL,IAAI,CAAC,yDAAD,EAA4DM,CAAC,IAAI;AACnEA,EAAAA,CAAC,CAACC,IAAF;AACAN,EAAAA,OAAO,CAACE,cAAc,CAACK,SAAhB,EAA2B,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAChDJ,IAAAA,CAAC,CAACK,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,mDAAkDF,GAAI,mEAA/E;AACD,GAFM,CAAP;AAGD,CALG,CAAJ;AAOAV,IAAI,CAAC,0DAAD,EAA6DE,oBAA7D,EAAmFC,cAAnF,EAAmGC,cAAnG,CAAJ;AACAJ,IAAI,CAAC,4DAAD,EAA+DE,oBAA/D,EAAqFC,cAArF,EAAqGE,gBAArG,CAAJ","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeSearch from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureWithValue from './fixtures/with-value';\n\ntest('Molecule › MoleculeSearch > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeSearch.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeSearch.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeSearch › Default › should be rendered', renderComponentMacro, MoleculeSearch, fixtureDefault);\ntest('Molecule › MoleculeSearch › WithValue › should be rendered', renderComponentMacro, MoleculeSearch, fixtureWithValue);\n"],"file":"fixtures.js"}
@@ -1,28 +0,0 @@
1
- "use strict";
2
-
3
- var _ava = _interopRequireDefault(require("ava"));
4
-
5
- var _forEach = _interopRequireDefault(require("lodash/forEach"));
6
-
7
- var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
8
-
9
- var _ = _interopRequireDefault(require(".."));
10
-
11
- var _default = _interopRequireDefault(require("./fixtures/default"));
12
-
13
- var _loading = _interopRequireDefault(require("./fixtures/loading"));
14
-
15
- var _videoTranslate = _interopRequireDefault(require("./fixtures/video-translate"));
16
-
17
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
18
-
19
- (0, _ava.default)('Molecule › MoleculeCockpitPopin > should have valid propTypes', t => {
20
- t.pass();
21
- (0, _forEach.default)(_.default.propTypes, (value, key) => {
22
- t.not(value, undefined, `PropType for "Molecule.MoleculeCockpitPopin.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
23
- });
24
- });
25
- (0, _ava.default)('Molecule › MoleculeCockpitPopin › Default › should be rendered', _renderComponent.default, _.default, _default.default);
26
- (0, _ava.default)('Molecule › MoleculeCockpitPopin › Loading › should be rendered', _renderComponent.default, _.default, _loading.default);
27
- (0, _ava.default)('Molecule › MoleculeCockpitPopin › VideoTranslate › should be rendered', _renderComponent.default, _.default, _videoTranslate.default);
28
- //# sourceMappingURL=fixtures.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/molecule/cockpit-popin/test/fixtures.js"],"names":["t","pass","MoleculeCockpitPopin","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDefault","fixtureLoading","fixtureVideoTranslate"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,+DAAL,EAAsEA,CAAC,IAAI;AACzEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAqBC,SAA7B,EAAwC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AACtDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,yDAAwDF,GAAI,mEAArF;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,gEAAL,EAAuEG,wBAAvE,EAA6FN,SAA7F,EAAmHO,gBAAnH;AACA,kBAAK,gEAAL,EAAuED,wBAAvE,EAA6FN,SAA7F,EAAmHQ,gBAAnH;AACA,kBAAK,uEAAL,EAA8EF,wBAA9E,EAAoGN,SAApG,EAA0HS,uBAA1H","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeCockpitPopin from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureLoading from './fixtures/loading';\nimport fixtureVideoTranslate from './fixtures/video-translate';\n\ntest('Molecule › MoleculeCockpitPopin > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeCockpitPopin.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeCockpitPopin.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeCockpitPopin › Default › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureDefault);\ntest('Molecule › MoleculeCockpitPopin › Loading › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureLoading);\ntest('Molecule › MoleculeCockpitPopin › VideoTranslate › should be rendered', renderComponentMacro, MoleculeCockpitPopin, fixtureVideoTranslate);\n"],"file":"fixtures.js"}
@@ -1,25 +0,0 @@
1
- "use strict";
2
-
3
- var _ava = _interopRequireDefault(require("ava"));
4
-
5
- var _forEach = _interopRequireDefault(require("lodash/forEach"));
6
-
7
- var _renderComponent = _interopRequireDefault(require("../../../test/helpers/render-component"));
8
-
9
- var _ = _interopRequireDefault(require(".."));
10
-
11
- var _default = _interopRequireDefault(require("./fixtures/default"));
12
-
13
- var _withValue = _interopRequireDefault(require("./fixtures/with-value"));
14
-
15
- function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
16
-
17
- (0, _ava.default)('Molecule › MoleculeSearch > should have valid propTypes', t => {
18
- t.pass();
19
- (0, _forEach.default)(_.default.propTypes, (value, key) => {
20
- t.not(value, undefined, `PropType for "Molecule.MoleculeSearch.propTypes.${key}" may not be undefined. Did you mistype the propTypes definition?`);
21
- });
22
- });
23
- (0, _ava.default)('Molecule › MoleculeSearch › Default › should be rendered', _renderComponent.default, _.default, _default.default);
24
- (0, _ava.default)('Molecule › MoleculeSearch › WithValue › should be rendered', _renderComponent.default, _.default, _withValue.default);
25
- //# sourceMappingURL=fixtures.js.map
@@ -1 +0,0 @@
1
- {"version":3,"sources":["../../../../src/molecule/search/test/fixtures.js"],"names":["t","pass","MoleculeSearch","propTypes","value","key","not","undefined","renderComponentMacro","fixtureDefault","fixtureWithValue"],"mappings":";;AAAA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;AAEA,kBAAK,yDAAL,EAAgEA,CAAC,IAAI;AACnEA,EAAAA,CAAC,CAACC,IAAF;AACA,wBAAQC,UAAeC,SAAvB,EAAkC,CAACC,KAAD,EAAQC,GAAR,KAAgB;AAChDL,IAAAA,CAAC,CAACM,GAAF,CAAMF,KAAN,EAAaG,SAAb,EAAyB,mDAAkDF,GAAI,mEAA/E;AACD,GAFD;AAGD,CALD;AAOA,kBAAK,0DAAL,EAAiEG,wBAAjE,EAAuFN,SAAvF,EAAuGO,gBAAvG;AACA,kBAAK,4DAAL,EAAmED,wBAAnE,EAAyFN,SAAzF,EAAyGQ,kBAAzG","sourcesContent":["import test from 'ava';\nimport forEach from 'lodash/forEach';\nimport renderComponentMacro from '../../../test/helpers/render-component';\nimport MoleculeSearch from '..';\nimport fixtureDefault from './fixtures/default';\nimport fixtureWithValue from './fixtures/with-value';\n\ntest('Molecule › MoleculeSearch > should have valid propTypes', t => {\n t.pass();\n forEach(MoleculeSearch.propTypes, (value, key) => {\n t.not(value, undefined, `PropType for \"Molecule.MoleculeSearch.propTypes.${key}\" may not be undefined. Did you mistype the propTypes definition?`);\n });\n});\n\ntest('Molecule › MoleculeSearch › Default › should be rendered', renderComponentMacro, MoleculeSearch, fixtureDefault);\ntest('Molecule › MoleculeSearch › WithValue › should be rendered', renderComponentMacro, MoleculeSearch, fixtureWithValue);\n"],"file":"fixtures.js"}