@coorpacademy/components 11.6.1 → 11.7.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/atom/loader/index.native.d.ts +10 -0
- package/es/atom/loader/index.native.d.ts.map +1 -0
- package/es/atom/loader/index.native.js +192 -0
- package/es/atom/loader/index.native.js.map +1 -0
- package/es/atom/select/index.d.ts.map +1 -1
- package/es/atom/select/index.js +48 -11
- package/es/atom/select/index.js.map +1 -1
- package/es/molecule/answer/index.d.ts.map +1 -1
- package/es/molecule/answer/index.js +1 -9
- package/es/molecule/answer/index.js.map +1 -1
- package/es/molecule/empty-state-dashboard/index.d.ts +23 -0
- package/es/molecule/empty-state-dashboard/index.d.ts.map +1 -0
- package/es/molecule/empty-state-dashboard/index.js +31 -0
- package/es/molecule/empty-state-dashboard/index.js.map +1 -0
- package/es/molecule/empty-state-dashboard/style.css +55 -0
- package/es/molecule/empty-state-dashboard/types.d.ts +19 -0
- package/es/molecule/empty-state-dashboard/types.d.ts.map +1 -0
- package/es/molecule/empty-state-dashboard/types.js +19 -0
- package/es/molecule/empty-state-dashboard/types.js.map +1 -0
- package/es/organism/list-item/index.d.ts +8 -6
- package/es/organism/list-item/index.d.ts.map +1 -1
- package/es/organism/list-item/index.js +16 -2
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-item/style.css +18 -0
- package/es/organism/list-items/index.d.ts +2 -0
- package/es/organism/list-items/index.js +5 -1
- package/es/organism/list-items/index.js.map +1 -1
- package/es/template/activity/index.d.ts +36 -40
- package/es/template/activity/index.d.ts.map +1 -1
- package/es/template/activity/index.js +89 -111
- package/es/template/activity/index.js.map +1 -1
- package/es/template/activity/stars-summary.d.ts +9 -18
- package/es/template/activity/stars-summary.d.ts.map +1 -1
- package/es/template/activity/stars-summary.js +94 -122
- package/es/template/activity/stars-summary.js.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +20 -0
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js +12 -3
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/back-office/brand-update/style.css +5 -1
- package/es/util/button-icons.d.ts +1 -0
- package/es/util/button-icons.d.ts.map +1 -1
- package/es/util/button-icons.js +3 -2
- package/es/util/button-icons.js.map +1 -1
- package/lib/atom/loader/index.native.d.ts +10 -0
- package/lib/atom/loader/index.native.d.ts.map +1 -0
- package/lib/atom/loader/index.native.js +205 -0
- package/lib/atom/loader/index.native.js.map +1 -0
- package/lib/atom/select/index.d.ts.map +1 -1
- package/lib/atom/select/index.js +46 -9
- package/lib/atom/select/index.js.map +1 -1
- package/lib/molecule/answer/index.d.ts.map +1 -1
- package/lib/molecule/answer/index.js +1 -10
- package/lib/molecule/answer/index.js.map +1 -1
- package/lib/molecule/empty-state-dashboard/index.d.ts +23 -0
- package/lib/molecule/empty-state-dashboard/index.d.ts.map +1 -0
- package/lib/molecule/empty-state-dashboard/index.js +42 -0
- package/lib/molecule/empty-state-dashboard/index.js.map +1 -0
- package/lib/molecule/empty-state-dashboard/style.css +55 -0
- package/lib/molecule/empty-state-dashboard/types.d.ts +19 -0
- package/lib/molecule/empty-state-dashboard/types.d.ts.map +1 -0
- package/lib/molecule/empty-state-dashboard/types.js +29 -0
- package/lib/molecule/empty-state-dashboard/types.js.map +1 -0
- package/lib/organism/list-item/index.d.ts +8 -6
- package/lib/organism/list-item/index.d.ts.map +1 -1
- package/lib/organism/list-item/index.js +16 -2
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-item/style.css +18 -0
- package/lib/organism/list-items/index.d.ts +2 -0
- package/lib/organism/list-items/index.js +5 -1
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/template/activity/index.d.ts +36 -40
- package/lib/template/activity/index.d.ts.map +1 -1
- package/lib/template/activity/index.js +95 -110
- package/lib/template/activity/index.js.map +1 -1
- package/lib/template/activity/stars-summary.d.ts +9 -18
- package/lib/template/activity/stars-summary.d.ts.map +1 -1
- package/lib/template/activity/stars-summary.js +90 -119
- package/lib/template/activity/stars-summary.js.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +20 -0
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js +13 -3
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/back-office/brand-update/style.css +5 -1
- package/lib/util/button-icons.d.ts +1 -0
- package/lib/util/button-icons.d.ts.map +1 -1
- package/lib/util/button-icons.js +2 -1
- package/lib/util/button-icons.js.map +1 -1
- package/locales/bs/global.json +8 -1
- package/locales/cs/global.json +8 -1
- package/locales/de/global.json +8 -1
- package/locales/en/global.json +0 -1
- package/locales/es/global.json +8 -1
- package/locales/et/global.json +8 -1
- package/locales/fr/global.json +0 -1
- package/locales/hr/global.json +8 -1
- package/locales/hu/global.json +8 -1
- package/locales/hy/global.json +0 -1
- package/locales/it/global.json +8 -1
- package/locales/ja/global.json +8 -1
- package/locales/ko/global.json +8 -1
- package/locales/nl/global.json +8 -1
- package/locales/pl/global.json +8 -1
- package/locales/pt/global.json +8 -1
- package/locales/ro/global.json +8 -1
- package/locales/ru/global.json +0 -1
- package/locales/sk/global.json +8 -1
- package/locales/tl/global.json +8 -1
- package/locales/tr/global.json +8 -1
- package/locales/uk/global.json +8 -1
- package/locales/vi/global.json +8 -1
- package/locales/zh/global.json +8 -1
- package/locales/zh_TW/global.json +8 -1
- package/package.json +3 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"stars-summary.js","names":["EngineTab","engine","engineIndex","
|
|
1
|
+
{"version":3,"file":"stars-summary.js","names":["EngineTab","engine","engineIndex","firstItemIndex","type","state","useMemo","dataName","style","hidden","active","propTypes","PropTypes","shape","EngineStars","number","EngineTabs","engines","convert","cap","index","arrayOf","StarsSummary","props","legacyContext","total","skin","GetSkinFromContext","setFirstItemIndex","useState","totalItems","length","dark","primary","scrollTo","useCallback","page","handleOnLeft","handleOnRight","leftArrowView","circle","left","rightArrowView","right","myStars","myStarsWrapper","allStars","footerSummaryStars","backgroundColor","totalStars","label","stars","iconBubble","iconHeader","navigationLeft","navigationRight","string","isRequired","contextTypes","Provider","childContextTypes"],"sources":["../../../src/template/activity/stars-summary.js"],"sourcesContent":["import React, {useCallback, useMemo, useState} from 'react';\nimport PropTypes from 'prop-types';\nimport {get, getOr, isEmpty, map} from 'lodash/fp';\nimport {\n NovaCompositionNavigationArrowLeft as ArrowLeft,\n NovaCompositionNavigationArrowRight as ArrowRight,\n NovaCompositionCoorpacademyStar as StarIcon\n} from '@coorpacademy/nova-icons';\nimport Provider, {GetSkinFromContext} from '../../atom/provider';\nimport EngineStars from './engine-stars';\nimport style from './stars-summary.css';\n\nconst EngineTab = ({engine, engineIndex, firstItemIndex}) => {\n const {type} = engine;\n const state = useMemo(\n () => (engineIndex < firstItemIndex ? 'hidden' : 'active'),\n [engineIndex, firstItemIndex]\n );\n const dataName = useMemo(() => `${type}_total_${state}`, [state, type]);\n\n return (\n <li className={style[state]} key={type} data-name={dataName}>\n <EngineStars\n {...engine}\n className={engineIndex < firstItemIndex ? style.hidden : style.active}\n />\n </li>\n );\n};\nEngineTab.propTypes = {\n engine: PropTypes.shape(EngineStars.propTypes),\n engineIndex: PropTypes.number,\n firstItemIndex: PropTypes.number\n};\n\nconst EngineTabs = ({engines, firstItemIndex}) => {\n return useMemo(\n () =>\n map.convert({cap: false})(\n (engine, index) => (\n <EngineTab\n engine={engine}\n key={`engineTab_${index}`}\n firstItemIndex={firstItemIndex}\n engineIndex={index}\n />\n ),\n engines\n ),\n [engines, firstItemIndex]\n );\n};\n\nEngineTabs.propTypes = {\n engines: PropTypes.arrayOf(PropTypes.shape(EngineStars.propTypes)),\n firstItemIndex: PropTypes.number\n};\n\nconst StarsSummary = (props, legacyContext) => {\n const {total, engines} = props;\n const skin = GetSkinFromContext(legacyContext);\n\n const [firstItemIndex, setFirstItemIndex] = useState(0);\n const [totalItems] = useState(engines.length);\n\n const dark = getOr('#90A4AE', 'common.dark', skin);\n const primary = get('common.primary', skin);\n\n const scrollTo = useCallback(page => setFirstItemIndex(page), []);\n\n const handleOnLeft = useCallback(() => {\n scrollTo(firstItemIndex - 1);\n }, [firstItemIndex, scrollTo]);\n\n const handleOnRight = useCallback(() => {\n scrollTo(firstItemIndex + 1);\n }, [firstItemIndex, scrollTo]);\n\n if (isEmpty(engines)) {\n return null;\n }\n\n const leftArrowView =\n totalItems > 6 && firstItemIndex > 0 ? (\n <div\n className={style.circle}\n onClick={handleOnLeft}\n data-name=\"left-arrow\"\n data-testid=\"stars-summary-left-arrow\"\n >\n <ArrowLeft color={dark} className={style.left} width={10} height={10} />\n </div>\n ) : null;\n\n const rightArrowView =\n totalItems > 6 && firstItemIndex < totalItems - 6 ? (\n <div\n className={style.circle}\n onClick={handleOnRight}\n data-name=\"right-arrow\"\n data-testid=\"stars-summary-right-arrow\"\n >\n <ArrowRight color={dark} className={style.right} width={10} height={10} />\n </div>\n ) : null;\n\n return (\n <div data-name=\"myStars\" className={style.myStars}>\n <div\n data-name=\"myStars-wrapper\"\n className={style.myStarsWrapper}\n data-testid={`stars-summary-engine-index-${firstItemIndex}`}\n >\n <ul\n className={style.allStars}\n data-name=\"engineList\"\n data-testid=\"stars-summary-engine-tabs\"\n >\n <EngineTabs engines={engines} firstItemIndex={firstItemIndex} />\n </ul>\n <div\n className={style.footerSummaryStars}\n style={{\n backgroundColor: primary\n }}\n >\n <div className={style.totalStars}>\n <span>{total.label}</span>\n <p data-name=\"star-counter\">{total.stars}</p>\n <div className={style.iconBubble}>\n <StarIcon className={style.iconHeader} color={primary} />\n </div>\n </div>\n <div className={style.navigationLeft}>{leftArrowView}</div>\n <div className={style.navigationRight}>{rightArrowView}</div>\n </div>\n </div>\n </div>\n );\n};\n\nStarsSummary.propTypes = {\n total: PropTypes.shape({\n label: PropTypes.string.isRequired,\n stars: PropTypes.number.isRequired\n }).isRequired,\n engines: PropTypes.arrayOf(PropTypes.shape(EngineStars.propTypes)).isRequired\n};\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AEf;IADZ;EAFT,gBAME;IAAK,SAAS,EAAEzB,qBAAA,CAAMyC;EAAtB,gBACE,2CAAOxB,KAAK,CAACyB,KAAb,CADF,eAEE;IAAG,aAAU;EAAb,GAA6BzB,KAAK,CAAC0B,KAAnC,CAFF,eAGE;IAAK,SAAS,EAAE3C,qBAAA,CAAM4C;EAAtB,gBACE,6BAAC,0CAAD;IAAU,SAAS,EAAE5C,qBAAA,CAAM6C,UAA3B;IAAuC,KAAK,EAAEpB;EAA9C,EADF,CAHF,CANF,eAaE;IAAK,SAAS,EAAEzB,qBAAA,CAAM8C;EAAtB,GAAuCf,aAAvC,CAbF,eAcE;IAAK,SAAS,EAAE/B,qBAAA,CAAM+C;EAAtB,GAAwCb,cAAxC,CAdF,CAZF,CADF,CADF;AAiCD,CAjFD;;AAmFApB,YAAY,CAACX,SAAb,2CAAyB;EACvBc,KAAK,EAAEb,kBAAA,CAAUC,KAAV,CAAgB;IACrBqC,KAAK,EAAEtC,kBAAA,CAAU4C,MAAV,CAAiBC,UADH;IAErBN,KAAK,EAAEvC,kBAAA,CAAUG,MAAV,CAAiB0C;EAFH,CAAhB,EAGJA,UAJoB;EAKvBxC,OAAO,EAAEL,kBAAA,CAAUS,OAAV,CAAkBT,kBAAA,CAAUC,KAAV,CAAgBC,oBAAA,CAAYH,SAA5B,CAAlB,EAA0D8C;AAL5C,CAAzB;AAQAnC,YAAY,CAACoC,YAAb,GAA4B;EAC1BhC,IAAI,EAAEiC,iBAAA,CAASC,iBAAT,CAA2BlC;AADP,CAA5B;eAIeJ,Y"}
|
|
@@ -1443,8 +1443,27 @@ declare namespace BrandUpdate {
|
|
|
1443
1443
|
type: PropTypes.Requireable<string>;
|
|
1444
1444
|
}> | null | undefined)[]>;
|
|
1445
1445
|
title: PropTypes.Validator<string>;
|
|
1446
|
+
order: PropTypes.Requireable<number>;
|
|
1447
|
+
'aria-label': PropTypes.Requireable<string>;
|
|
1446
1448
|
}> | null | undefined)[]>;
|
|
1447
1449
|
title: PropTypes.Requireable<string>;
|
|
1450
|
+
}> | PropTypes.InferProps<{
|
|
1451
|
+
key: PropTypes.Requireable<string>;
|
|
1452
|
+
type: PropTypes.Requireable<string>;
|
|
1453
|
+
mainText: PropTypes.Requireable<string>;
|
|
1454
|
+
subText: PropTypes.Requireable<string>;
|
|
1455
|
+
imageUrl: PropTypes.Requireable<any>;
|
|
1456
|
+
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1457
|
+
type: PropTypes.Requireable<string>;
|
|
1458
|
+
label: PropTypes.Requireable<string>;
|
|
1459
|
+
ariaLabel: PropTypes.Requireable<string>;
|
|
1460
|
+
dataName: PropTypes.Requireable<string>;
|
|
1461
|
+
icon: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1462
|
+
position: PropTypes.Requireable<string>;
|
|
1463
|
+
type: PropTypes.Requireable<string>;
|
|
1464
|
+
}>>;
|
|
1465
|
+
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1466
|
+
}>>;
|
|
1448
1467
|
}> | null | undefined>>;
|
|
1449
1468
|
export const documentation: PropTypes.Requireable<PropTypes.InferProps<{
|
|
1450
1469
|
content: PropTypes.Requireable<string>;
|
|
@@ -1543,6 +1562,7 @@ declare namespace BrandUpdate {
|
|
|
1543
1562
|
headerTitle: PropTypes.Requireable<string>;
|
|
1544
1563
|
}>>;
|
|
1545
1564
|
export const onItemClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
1565
|
+
export const contentFixHeight: PropTypes.Requireable<boolean>;
|
|
1546
1566
|
}
|
|
1547
1567
|
}
|
|
1548
1568
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-update/index.js"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/back-office/brand-update/index.js"],"names":[],"mappings":";AAsLA,sDA6CC"}
|
|
@@ -49,6 +49,8 @@ var _cmPopin = _interopRequireDefault(require("../../../molecule/cm-popin"));
|
|
|
49
49
|
|
|
50
50
|
var _buttonLinkIconOnly = _interopRequireDefault(require("../../../atom/button-link-icon-only"));
|
|
51
51
|
|
|
52
|
+
var _emptyStateDashboard = _interopRequireDefault(require("../../../molecule/empty-state-dashboard"));
|
|
53
|
+
|
|
52
54
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
53
55
|
|
|
54
56
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
@@ -206,6 +208,9 @@ const buildContentView = content => {
|
|
|
206
208
|
|
|
207
209
|
case 'wizard':
|
|
208
210
|
return /*#__PURE__*/_react.default.createElement(_wizardContents.default, content);
|
|
211
|
+
|
|
212
|
+
case 'empty-state-dashboard':
|
|
213
|
+
return /*#__PURE__*/_react.default.createElement(_emptyStateDashboard.default, content);
|
|
209
214
|
}
|
|
210
215
|
};
|
|
211
216
|
|
|
@@ -223,7 +228,8 @@ const BrandUpdate = props => {
|
|
|
223
228
|
details,
|
|
224
229
|
popin,
|
|
225
230
|
onItemClick,
|
|
226
|
-
documentation
|
|
231
|
+
documentation,
|
|
232
|
+
contentFixHeight
|
|
227
233
|
} = props;
|
|
228
234
|
const logo = 'https://static.coorpacademy.com/logo/coorp-manager.svg';
|
|
229
235
|
const leftNavigation = buildLeftNavigation(logo, items, onItemClick);
|
|
@@ -234,7 +240,7 @@ const BrandUpdate = props => {
|
|
|
234
240
|
const contentView = buildContentView(content);
|
|
235
241
|
const detailsView = buildDetailsView(details);
|
|
236
242
|
const popinView = buildPopin(popin);
|
|
237
|
-
const contentStyle = (0, _classnames.default)([_style.default.content, !(0, _isEmpty.default)(notifications) && _style.default.contentWithNotifications]);
|
|
243
|
+
const contentStyle = (0, _classnames.default)([_style.default.content, !(0, _isEmpty.default)(notifications) && _style.default.contentWithNotifications, contentFixHeight && _style.default.contentFixHeight]);
|
|
238
244
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
239
245
|
className: _style.default.container
|
|
240
246
|
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
@@ -294,6 +300,9 @@ BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
294
300
|
})), _propTypes.default.shape(_extends({}, _listItems.default.propTypes, {
|
|
295
301
|
key: _propTypes.default.string,
|
|
296
302
|
type: _propTypes.default.oneOf(['list-content'])
|
|
303
|
+
})), _propTypes.default.shape(_extends({}, _emptyStateDashboard.default.propTypes, {
|
|
304
|
+
key: _propTypes.default.string,
|
|
305
|
+
type: _propTypes.default.oneOf(['empty-state-dashboard'])
|
|
297
306
|
}))]),
|
|
298
307
|
documentation: _propTypes.default.shape({
|
|
299
308
|
content: _propTypes.default.string,
|
|
@@ -305,7 +314,8 @@ BrandUpdate.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
305
314
|
key: _propTypes.default.string,
|
|
306
315
|
type: _propTypes.default.oneOf(['list'])
|
|
307
316
|
})),
|
|
308
|
-
onItemClick: _propTypes.default.func
|
|
317
|
+
onItemClick: _propTypes.default.func,
|
|
318
|
+
contentFixHeight: _propTypes.default.bool
|
|
309
319
|
} : {};
|
|
310
320
|
var _default = BrandUpdate;
|
|
311
321
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"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","isEmpty","notificationsList","notification","buildHeader","header","buildPopin","popin","buildDocumentation","documentation","show","onClose","content","classNames","open","documentationContent","__html","closeButton","buildTabs","selectedTab","pipe","find","e","get","showTabs","subTabs","undefined","buildContentView","loaderContainer","loader","buildDetailsView","details","BrandUpdate","props","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","PropTypes","arrayOf","shape","Banner","Header","string","isRequired","bool","oneOfType","BrandForm","oneOf","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","func","CmPopin"],"sources":["../../../../src/template/back-office/brand-update/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\nimport ButtonLinkIconOnly from '../../../atom/button-link-icon-only';\nimport style from './style.css';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem {...subTab} styles={getStyle(subTab.selected)} uppercase={false} />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={style.notification} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return <div className={style.notifications}>{notificationsList}</div>;\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n <Header {...header} />\n </div>\n );\n};\n\nconst buildPopin = popin => {\n return popin ? (\n <div className={style.popin}>\n <CmPopin {...popin} />\n </div>\n ) : null;\n};\n\nconst buildDocumentation = documentation => {\n if (!documentation) return null;\n const {show = false, onClose, content = ''} = documentation;\n return (\n <div className={classNames(style.documentation, show && style.open)}>\n <div\n className={style.documentationContent}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {onClose ? (\n <ButtonLinkIconOnly\n className={style.closeButton}\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\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 ? find(e => e.selected, selectedTab.subTabs) : undefined;\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'list-content':\n return <ListItems {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n return <WizardContents {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst BrandUpdate = props => {\n const {notifications, header, items, content, details, popin, onItemClick, documentation} = 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 documentationView = buildDocumentation(documentation);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications\n ]);\n\n return (\n <div className={style.container}>\n <div className={style.left}>{leftNavigation}</div>\n <div className={style.contentWrapper}>\n <div className={style.headerSticky}>{headerView}</div>\n <div className={contentStyle}>\n {notificationsView}\n {tabsView}\n {contentView}\n {detailsView}\n {documentationView}\n </div>\n </div>\n {popinView}\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n }),\n PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content'])\n })\n ]),\n documentation: PropTypes.shape({\n content: PropTypes.string,\n show: PropTypes.bool,\n onClose: PropTypes.func\n }),\n popin: PropTypes.shape({...CmPopin.propTypes}),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func\n};\n\nexport default BrandUpdate;\n"],"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;;;;;;AAEA,MAAMA,QAAQ,GAAGC,UAAU,IAAKA,UAAU,GAAGC,cAAA,CAAMC,eAAT,GAA2BD,cAAA,CAAME,iBAA3E;;AAEA,MAAMC,WAAW,GAAG,CAACC,QAAQ,GAAG,EAAZ,KAClBC,YAAA,CAAIC,OAAJ,CAAY;EAACC,GAAG,EA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CAAgB,CAAC,MAAD,CAAhB;EAHC,GA3Ea;EAgFtBxE,WAAW,EAAE8D,kBAAA,CAAUiB;AAhFD,CAAxB;eAmFenC,W"}
|
|
1
|
+
{"version":3,"file":"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","isEmpty","notificationsList","notification","buildHeader","header","buildPopin","popin","buildDocumentation","documentation","show","onClose","content","classNames","open","documentationContent","__html","closeButton","buildTabs","selectedTab","pipe","find","e","get","showTabs","subTabs","undefined","buildContentView","loaderContainer","loader","buildDetailsView","details","BrandUpdate","props","contentFixHeight","leftNavigation","notificationsView","documentationView","headerView","tabsView","contentView","detailsView","popinView","contentStyle","contentWithNotifications","container","left","contentWrapper","headerSticky","defaultProps","propTypes","PropTypes","arrayOf","shape","Banner","Header","string","isRequired","bool","oneOfType","BrandForm","oneOf","BrandTable","BrandUpload","BrandAnalytics","BrandDashboard","WizardContents","ListItems","EmptyStateDashboard","func","CmPopin"],"sources":["../../../../src/template/back-office/brand-update/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport map from 'lodash/fp/map';\nimport pipe from 'lodash/fp/pipe';\nimport get from 'lodash/fp/get';\nimport isEmpty from 'lodash/fp/isEmpty';\nimport find from 'lodash/fp/find';\nimport classNames from 'classnames';\nimport BrandTabs from '../../../molecule/brand-tabs';\nimport {IconLinkItem, LinkItem} from '../../../organism/sidebar';\nimport BrandForm from '../../../organism/brand-form';\nimport BrandTable from '../../../organism/brand-table';\nimport BrandUpload from '../../../organism/brand-upload';\nimport BrandAnalytics from '../../../organism/brand-analytics';\nimport BrandDashboard from '../../../organism/brand-dashboard';\nimport WizardContents from '../../../organism/wizard-contents';\nimport ListItems from '../../../organism/list-items';\nimport Banner from '../../../molecule/banner';\nimport Header from '../../../organism/setup-header';\nimport Loader from '../../../atom/loader';\nimport Accordion from '../../../organism/accordion/coorp-manager';\nimport CmPopin from '../../../molecule/cm-popin';\nimport ButtonLinkIconOnly from '../../../atom/button-link-icon-only';\nimport EmptyStateDashboard from '../../../molecule/empty-state-dashboard';\nimport style from './style.css';\n\nconst getStyle = isSelected => (isSelected ? style.selectedElement : style.unselectedElement);\n\nconst subTabsView = (_subTabs = []) =>\n map.convert({cap: false})((subTab, _index) => (\n <div key={subTab.title}>\n {subTab.type === 'iconLink' ? (\n <IconLinkItem\n {...subTab}\n styles={getStyle(subTab.selected)}\n uppercase={false}\n target={'_blank'}\n />\n ) : (\n <LinkItem {...subTab} styles={getStyle(subTab.selected)} uppercase={false} />\n )}\n </div>\n ))(_subTabs);\n\n// TODO: this fonction should be replaced by a molecule to avoid this file to be unreadable\nconst buildLeftNavigation = (logo, items, onItemClick) => {\n const formattedTabs = items.map(({key, title, href, selected, type = 'simpleTab'}, index) => ({\n title,\n selected,\n type,\n href,\n index,\n children: [],\n iconType: key || 'arrow'\n }));\n\n const formattedTabsViews = map(tab => (\n <div key={tab.title} className={style.subTabsView}>\n {subTabsView(tab.tabs)}\n </div>\n ))(items);\n\n return (\n <div className={style.navigation}>\n <div className={style.logo}>\n <a href=\"/\">\n <img src={logo} />\n </a>\n </div>\n <Accordion tabProps={formattedTabs} theme={'setup'} onClick={onItemClick}>\n {formattedTabsViews}\n </Accordion>\n </div>\n );\n};\n\nconst buildNotifications = notifications => {\n if (isEmpty(notifications)) {\n return null;\n }\n\n const notificationsList = notifications.map((notification, index) => {\n return (\n <div className={style.notification} key={index}>\n <Banner {...notification} />\n </div>\n );\n });\n return <div className={style.notifications}>{notificationsList}</div>;\n};\n\nconst buildHeader = header => {\n return (\n <div className={style.header}>\n <Header {...header} />\n </div>\n );\n};\n\nconst buildPopin = popin => {\n return popin ? (\n <div className={style.popin}>\n <CmPopin {...popin} />\n </div>\n ) : null;\n};\n\nconst buildDocumentation = documentation => {\n if (!documentation) return null;\n const {show = false, onClose, content = ''} = documentation;\n return (\n <div className={classNames(style.documentation, show && style.open)}>\n <div\n className={style.documentationContent}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: content}}\n />\n {onClose ? (\n <ButtonLinkIconOnly\n className={style.closeButton}\n onClick={onClose}\n data-name={'close-icon'}\n aria-label={'close-icon'}\n size=\"small\"\n icon=\"close\"\n />\n ) : null}\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 ? find(e => e.selected, selectedTab.subTabs) : undefined;\n if (!showTabs) return null;\n return (\n <div className={style.tabs}>\n <BrandTabs type=\"light\" tabs={selectedTab.subTabs} />\n </div>\n );\n};\n\nconst buildContentView = content => {\n if (!content) {\n return (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n );\n }\n\n const {type} = content;\n switch (type) {\n case 'form':\n return <BrandForm {...content} />;\n case 'list':\n return <BrandTable {...content} />;\n case 'upload':\n return <BrandUpload {...content} />;\n case 'analytics-dashboards':\n return <BrandAnalytics {...content} />;\n case 'list-content':\n return <ListItems {...content} />;\n case 'home':\n return <BrandDashboard {...content} />;\n case 'wizard':\n return <WizardContents {...content} />;\n case 'empty-state-dashboard':\n return <EmptyStateDashboard {...content} />;\n }\n};\n\nconst buildDetailsView = details => {\n if (!details) return;\n return <BrandTable {...details} />;\n};\n\nconst BrandUpdate = props => {\n const {\n notifications,\n header,\n items,\n content,\n details,\n popin,\n onItemClick,\n documentation,\n contentFixHeight\n } = 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 documentationView = buildDocumentation(documentation);\n const headerView = buildHeader(header, notifications);\n const tabsView = buildTabs(items);\n const contentView = buildContentView(content);\n const detailsView = buildDetailsView(details);\n const popinView = buildPopin(popin);\n\n const contentStyle = classNames([\n style.content,\n !isEmpty(notifications) && style.contentWithNotifications,\n contentFixHeight && style.contentFixHeight\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 {documentationView}\n </div>\n </div>\n {popinView}\n </div>\n );\n};\n\nBrandUpdate.defaultProps = {\n notifications: []\n};\n\nBrandUpdate.propTypes = {\n notifications: PropTypes.arrayOf(\n PropTypes.shape({\n ...Banner.propTypes\n })\n ),\n header: PropTypes.shape({...Header.propTypes}),\n items: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string,\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n tabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string,\n subTabs: PropTypes.arrayOf(\n PropTypes.shape({\n title: PropTypes.string.isRequired,\n href: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n type: PropTypes.string\n })\n )\n })\n )\n })\n ).isRequired,\n content: PropTypes.oneOfType([\n PropTypes.shape({\n ...BrandForm.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['form'])\n }),\n PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n PropTypes.shape({\n ...BrandUpload.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['upload'])\n }),\n PropTypes.shape({\n ...BrandAnalytics.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['analytics-dashboards'])\n }),\n PropTypes.shape({\n ...BrandDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['home'])\n }),\n PropTypes.shape({\n ...WizardContents.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['wizard'])\n }),\n PropTypes.shape({\n ...ListItems.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list-content'])\n }),\n PropTypes.shape({\n ...EmptyStateDashboard.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['empty-state-dashboard'])\n })\n ]),\n documentation: PropTypes.shape({\n content: PropTypes.string,\n show: PropTypes.bool,\n onClose: PropTypes.func\n }),\n popin: PropTypes.shape({...CmPopin.propTypes}),\n details: PropTypes.shape({\n ...BrandTable.propTypes,\n key: PropTypes.string,\n type: PropTypes.oneOf(['list'])\n }),\n onItemClick: PropTypes.func,\n contentFixHeight: PropTypes.bool\n};\n\nexport default BrandUpdate;\n"],"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;;;;;;AAEA,MAAMA,QAAQ,GAAGC,UAAU,IAAKA,UAAU,GAAGC,cAAA,CAAMC,eAAT,GAA2BD,cAAA,CAAME,iBAA3E;;AAEA,MAAMC,WAAW,GAAG,CAACC,QAAQ,GAAG,EAAZ,KAClBC,YAAA,CAAIC,OAAJ,CAAY;EAACC,GAAG,EAAE;AAAN,CAAZ,EAA0B,CAACC,MAAD,EAASC,MAAT,kBACxB;EAAK,GAAG,EAAED,MAAM,CAACE;AAAjB,GACGF,MAAM,CAACG,IAAP,KAAgB,UAAhB,gBACC,6BAAC,qBAAD,eACMH,MADN;EAEE,MAAM,EAAEV,QAAQ,CAACU,MAAM,CAACI,QAAR,CAFlB;EAGE,SAAS,EAAE,KAHb;EAIE,MAAM,EAAE;AAJV,GADD,gBAQC,6BAAC,iBAAD,eAAcJ,MAAd;EAAsB,MAAM,EAAEV,QAAQ,CAACU,MAAM,CAACI,QAAR,CAAtC;EAAyD,SAAS,EAAE;AAApE,GATJ,CAD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AgB,EAAEiB,kBAAA,CAAUO;AAtFN,CAAxB;eAyFe1B,W"}
|
|
@@ -86,7 +86,8 @@
|
|
|
86
86
|
height: 100%;
|
|
87
87
|
overflow: scroll;
|
|
88
88
|
z-index: 999;
|
|
89
|
-
min-width: 240px
|
|
89
|
+
min-width: 240px;
|
|
90
|
+
width: 232px;
|
|
90
91
|
}
|
|
91
92
|
|
|
92
93
|
.content {
|
|
@@ -102,6 +103,9 @@
|
|
|
102
103
|
top: 100px;
|
|
103
104
|
}
|
|
104
105
|
|
|
106
|
+
.contentFixHeight {
|
|
107
|
+
height: calc(100% - 124px);
|
|
108
|
+
}
|
|
105
109
|
.selectedElement {
|
|
106
110
|
font-size: 12px;
|
|
107
111
|
background-color: cm_grey_100;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-icons.d.ts","sourceRoot":"","sources":["../../src/util/button-icons.js"],"names":[],"mappings":"
|
|
1
|
+
{"version":3,"file":"button-icons.d.ts","sourceRoot":"","sources":["../../src/util/button-icons.js"],"names":[],"mappings":"AAmBA;;;;;;;;;;;;;;;;;EAiBE"}
|
package/lib/util/button-icons.js
CHANGED
|
@@ -20,7 +20,8 @@ const ICONS = {
|
|
|
20
20
|
publish: _novaIcons.NovaSolidApplicationsWindowUpload3,
|
|
21
21
|
save: _novaIcons.NovaSolidComputersSdCard,
|
|
22
22
|
see: _novaIcons.NovaCompositionCoorpacademyEye,
|
|
23
|
-
folders: _novaIcons.NovaSolidFilesFoldersFolders
|
|
23
|
+
folders: _novaIcons.NovaSolidFilesFoldersFolders,
|
|
24
|
+
upload: _novaIcons.NovaSolidFilesBasicFileUpload2
|
|
24
25
|
};
|
|
25
26
|
exports.ICONS = ICONS;
|
|
26
27
|
//# sourceMappingURL=button-icons.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"button-icons.js","names":["ICONS","add","AddIcon","analytics","AnalyticsIcon","bin","BinIcon","BulletPointIcon","ChevronLeftIcon","ChevronRightIcon","close","CloseIcon","edit","EditIcon","key","KlfIcon","list","ListIcon","logout","LogoutIcon","publish","PublishIcon","save","SaveIcon","see","EyeIcon","folders","FoldersIcon"],"sources":["../../src/util/button-icons.js"],"sourcesContent":["import {\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaCompositionCoorpacademyAnalytics as AnalyticsIcon,\n NovaSolidContentEditionBin as BinIcon,\n NovaCompositionCoorpacademyBulletPoint as BulletPointIcon,\n NovaCompositionNavigationArrowLeft as ChevronLeftIcon,\n NovaCompositionNavigationArrowRight as ChevronRightIcon,\n NovaSolidStatusClose as CloseIcon,\n NovaSolidContentEditionPencilWrite as EditIcon,\n NovaCompositionCoorpacademyEye as EyeIcon,\n NovaSolidContentContentViewModule1 as ListIcon,\n NovaSolidLoginLogout1 as LogoutIcon,\n NovaSolidApplicationsWindowUpload3 as PublishIcon,\n NovaSolidComputersSdCard as SaveIcon,\n NovaLineLoginKey1 as KlfIcon,\n NovaSolidFilesFoldersFolders as FoldersIcon\n} from '@coorpacademy/nova-icons';\n\nexport const ICONS = {\n add: AddIcon,\n analytics: AnalyticsIcon,\n bin: BinIcon,\n 'bullet-point': BulletPointIcon,\n 'chevron-left': ChevronLeftIcon,\n 'chevron-right': ChevronRightIcon,\n close: CloseIcon,\n edit: EditIcon,\n key: KlfIcon,\n list: ListIcon,\n logout: LogoutIcon,\n publish: PublishIcon,\n save: SaveIcon,\n see: EyeIcon,\n folders: FoldersIcon\n};\n"],"mappings":";;;;;AAAA;;
|
|
1
|
+
{"version":3,"file":"button-icons.js","names":["ICONS","add","AddIcon","analytics","AnalyticsIcon","bin","BinIcon","BulletPointIcon","ChevronLeftIcon","ChevronRightIcon","close","CloseIcon","edit","EditIcon","key","KlfIcon","list","ListIcon","logout","LogoutIcon","publish","PublishIcon","save","SaveIcon","see","EyeIcon","folders","FoldersIcon","upload","UploadIcon"],"sources":["../../src/util/button-icons.js"],"sourcesContent":["import {\n NovaSolidRemoveAddAddCircle1 as AddIcon,\n NovaCompositionCoorpacademyAnalytics as AnalyticsIcon,\n NovaSolidContentEditionBin as BinIcon,\n NovaCompositionCoorpacademyBulletPoint as BulletPointIcon,\n NovaCompositionNavigationArrowLeft as ChevronLeftIcon,\n NovaCompositionNavigationArrowRight as ChevronRightIcon,\n NovaSolidStatusClose as CloseIcon,\n NovaSolidContentEditionPencilWrite as EditIcon,\n NovaCompositionCoorpacademyEye as EyeIcon,\n NovaSolidContentContentViewModule1 as ListIcon,\n NovaSolidLoginLogout1 as LogoutIcon,\n NovaSolidApplicationsWindowUpload3 as PublishIcon,\n NovaSolidComputersSdCard as SaveIcon,\n NovaLineLoginKey1 as KlfIcon,\n NovaSolidFilesFoldersFolders as FoldersIcon,\n NovaSolidFilesBasicFileUpload2 as UploadIcon\n} from '@coorpacademy/nova-icons';\n\nexport const ICONS = {\n add: AddIcon,\n analytics: AnalyticsIcon,\n bin: BinIcon,\n 'bullet-point': BulletPointIcon,\n 'chevron-left': ChevronLeftIcon,\n 'chevron-right': ChevronRightIcon,\n close: CloseIcon,\n edit: EditIcon,\n key: KlfIcon,\n list: ListIcon,\n logout: LogoutIcon,\n publish: PublishIcon,\n save: SaveIcon,\n see: EyeIcon,\n folders: FoldersIcon,\n upload: UploadIcon\n};\n"],"mappings":";;;;;AAAA;;AAmBO,MAAMA,KAAK,GAAG;EACnBC,GAAG,EAAEC,uCADc;EAEnBC,SAAS,EAAEC,+CAFQ;EAGnBC,GAAG,EAAEC,qCAHc;EAInB,gBAAgBC,iDAJG;EAKnB,gBAAgBC,6CALG;EAMnB,iBAAiBC,8CANE;EAOnBC,KAAK,EAAEC,+BAPY;EAQnBC,IAAI,EAAEC,6CARa;EASnBC,GAAG,EAAEC,4BATc;EAUnBC,IAAI,EAAEC,6CAVa;EAWnBC,MAAM,EAAEC,gCAXW;EAYnBC,OAAO,EAAEC,6CAZU;EAanBC,IAAI,EAAEC,mCAba;EAcnBC,GAAG,EAAEC,yCAdc;EAenBC,OAAO,EAAEC,uCAfU;EAgBnBC,MAAM,EAAEC;AAhBW,CAAd"}
|
package/locales/bs/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "Primijeni",
|
|
77
77
|
"zuora_discount_code": "Promotivni kod",
|
|
78
78
|
"mandatory_fields": "* Obavezna polja",
|
|
79
|
-
"something_went_wrong": "Oh Snap! Something went wrong."
|
|
79
|
+
"something_went_wrong": "Oh Snap! Something went wrong.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "Pitanje {{headerStepValue}}",
|
|
82
|
+
"current_question": "Pitanje {{headerStepValue}} je trenutno pitanje",
|
|
83
|
+
"correct_question": "Pitanje {{headerStepValue}} je tačno",
|
|
84
|
+
"incorrect_question": "Pitanje {{headerStepValue}} je netačno",
|
|
85
|
+
"not_answered_question": "Pitanje {{headerStepValue}} još nije odgovoreno"
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/cs/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "Použít",
|
|
77
77
|
"zuora_discount_code": "Propagační kód",
|
|
78
78
|
"mandatory_fields": "*Mandatory fields",
|
|
79
|
-
"something_went_wrong": "Oh Snap! Something went wrong."
|
|
79
|
+
"something_went_wrong": "Oh Snap! Something went wrong.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "Otázka {{headerStepValue}}",
|
|
82
|
+
"current_question": "Otázka {{headerStepValue}} je aktuální otázka",
|
|
83
|
+
"correct_question": "Otázka {{headerStepValue}} je správná",
|
|
84
|
+
"incorrect_question": "Otázka {{headerStepValue}} je nesprávná",
|
|
85
|
+
"not_answered_question": "Otázka {{headerStepValue}} zatím není zodpovězena"
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/de/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "Anwenden",
|
|
77
77
|
"zuora_discount_code": "Promo-Code",
|
|
78
78
|
"mandatory_fields": "*Mandatory fields",
|
|
79
|
-
"something_went_wrong": "Oh Snap! Something went wrong."
|
|
79
|
+
"something_went_wrong": "Oh Snap! Something went wrong.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "Frage {{headerStepValue}}",
|
|
82
|
+
"current_question": "Frage {{headerStepValue}} ist die aktuelle Frage",
|
|
83
|
+
"correct_question": "Frage {{headerStepValue}} ist richtig",
|
|
84
|
+
"incorrect_question": "Frage {{headerStepValue}} ist falsch",
|
|
85
|
+
"not_answered_question": "Frage {{headerStepValue}} ist noch nicht beantwortet"
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/en/global.json
CHANGED
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"Create a new cohort": "Create a new cohort",
|
|
21
21
|
"Delete": "Delete",
|
|
22
22
|
"Draft": "Draft",
|
|
23
|
-
"drop_down_icon": "Dropdown to open the list of available answers",
|
|
24
23
|
"Edit": "Edit",
|
|
25
24
|
"external_content_article": "DOCUMENTS",
|
|
26
25
|
"external_content_scorm": "ANIMATED RESOURCES",
|
package/locales/es/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "Aplicar",
|
|
77
77
|
"zuora_discount_code": "Código promocional",
|
|
78
78
|
"mandatory_fields": "*Mandatory fields",
|
|
79
|
-
"something_went_wrong": "Oh Snap! Something went wrong."
|
|
79
|
+
"something_went_wrong": "Oh Snap! Something went wrong.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "Pregunta {{headerStepValue}}",
|
|
82
|
+
"current_question": "Pregunta {{headerStepValue}} es la pregunta actual",
|
|
83
|
+
"correct_question": "La pregunta {{headerStepValue}} es correcta",
|
|
84
|
+
"incorrect_question": "La pregunta {{headerStepValue}} es incorrecta",
|
|
85
|
+
"not_answered_question": "La pregunta {{headerStepValue}} aún no ha sido respondida"
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/et/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "Rakenda",
|
|
77
77
|
"zuora_discount_code": "Promo code",
|
|
78
78
|
"mandatory_fields": "*Kohustuslikud väljad",
|
|
79
|
-
"something_went_wrong": "Oih! Midagi läks viltu."
|
|
79
|
+
"something_went_wrong": "Oih! Midagi läks viltu.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "Küsimus {{headerStepValue}}",
|
|
82
|
+
"current_question": "Küsimus {{headerStepValue}} on praegune küsimus",
|
|
83
|
+
"correct_question": "Küsimus {{headerStepValue}} on õige",
|
|
84
|
+
"incorrect_question": "Küsimus {{headerStepValue}} on vale",
|
|
85
|
+
"not_answered_question": "Küsimusele {{headerStepValue}} pole veel vastust"
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/fr/global.json
CHANGED
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"Create a new cohort": "Créer une nouvelle cohorte",
|
|
21
21
|
"Delete": "Supprimer",
|
|
22
22
|
"Draft": "Brouillon",
|
|
23
|
-
"drop_down_icon": "Liste déroulante pour ouvrir la liste des réponses disponibles",
|
|
24
23
|
"Edit": "Modifier",
|
|
25
24
|
"external_content_article": "DOCUMENTS",
|
|
26
25
|
"external_content_scorm": "RESSOURCES ANIMÉES",
|
package/locales/hr/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "Prijavite se",
|
|
77
77
|
"zuora_discount_code": "Promotivni kod",
|
|
78
78
|
"mandatory_fields": "*Obavezna polja",
|
|
79
|
-
"something_went_wrong": "Ajoj! Nešto je otišlo ukrivo."
|
|
79
|
+
"something_went_wrong": "Ajoj! Nešto je otišlo ukrivo.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "Pitanje {{headerStepValue}}",
|
|
82
|
+
"current_question": "Pitanje {{headerStepValue}} je trenutno pitanje",
|
|
83
|
+
"correct_question": "Pitanje {{headerStepValue}} je točno",
|
|
84
|
+
"incorrect_question": "Pitanje {{headerStepValue}} je netočno",
|
|
85
|
+
"not_answered_question": "Na pitanje {{headerStepValue}} još nije odgovoreno"
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/hu/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "Alkalmaz",
|
|
77
77
|
"zuora_discount_code": "Promóciókód",
|
|
78
78
|
"mandatory_fields": "*Mandatory fields",
|
|
79
|
-
"something_went_wrong": "Oh Snap! Something went wrong."
|
|
79
|
+
"something_went_wrong": "Oh Snap! Something went wrong.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "Kérdés {{headerStepValue}}",
|
|
82
|
+
"current_question": "Az {{headerStepValue}} kérdés az aktuális kérdés",
|
|
83
|
+
"correct_question": "Az {{headerStepValue}} kérdés helyes",
|
|
84
|
+
"incorrect_question": "Az {{headerStepValue}} kérdés helytelen",
|
|
85
|
+
"not_answered_question": "Az {{headerStepValue}} kérdésre még nincs válasz"
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/hy/global.json
CHANGED
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"Create a new cohort": "Ստեղծել նոր խումբ",
|
|
21
21
|
"Delete": "Ջնջել",
|
|
22
22
|
"Draft": "Նախագիծ",
|
|
23
|
-
"drop_down_icon": "Բացվող՝ հասանելի պատասխանների ցանկը բացելու համար",
|
|
24
23
|
"Edit": "Խմբագրել",
|
|
25
24
|
"external_content_article": "ՓԱՍՏԱԹՂԹԵՐ",
|
|
26
25
|
"external_content_scorm": "ԱՆԻՄԱՏ ՌԵՍՈՒՐՍՆԵՐ",
|
package/locales/it/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "Applica",
|
|
77
77
|
"zuora_discount_code": "Codice promozionale",
|
|
78
78
|
"mandatory_fields": "*Mandatory fields",
|
|
79
|
-
"something_went_wrong": "Oh Snap! Something went wrong."
|
|
79
|
+
"something_went_wrong": "Oh Snap! Something went wrong.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "Domanda {{headerStepValue}}",
|
|
82
|
+
"current_question": "La domanda {{headerStepValue}} è la domanda attuale",
|
|
83
|
+
"correct_question": "La domanda {{headerStepValue}} è corretta",
|
|
84
|
+
"incorrect_question": "La domanda {{headerStepValue}} non è corretta",
|
|
85
|
+
"not_answered_question": "La domanda {{headerStepValue}} non ha ancora ricevuto risposta"
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/ja/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "適用",
|
|
77
77
|
"zuora_discount_code": "プロモーション コード",
|
|
78
78
|
"mandatory_fields": "*Mandatory fields",
|
|
79
|
-
"something_went_wrong": "Oh Snap! Something went wrong."
|
|
79
|
+
"something_went_wrong": "Oh Snap! Something went wrong.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "質問 {{headerStepValue}}",
|
|
82
|
+
"current_question": "質問 {{headerStepValue}} が現在の質問です",
|
|
83
|
+
"correct_question": "問題 {{headerStepValue}} は正解です",
|
|
84
|
+
"incorrect_question": "質問 {{headerStepValue}} は不正解です",
|
|
85
|
+
"not_answered_question": "質問 {{headerStepValue}} はまだ回答されていません"
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/ko/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "적용",
|
|
77
77
|
"zuora_discount_code": "프로모션 코드",
|
|
78
78
|
"mandatory_fields": "*Mandatory fields",
|
|
79
|
-
"something_went_wrong": "Oh Snap! Something went wrong."
|
|
79
|
+
"something_went_wrong": "Oh Snap! Something went wrong.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "질문 {{headerStepValue}}",
|
|
82
|
+
"current_question": "질문 {{headerStepValue}}이 현재 질문입니다.",
|
|
83
|
+
"correct_question": "질문 {{headerStepValue}}이 맞습니다.",
|
|
84
|
+
"incorrect_question": "질문 {{headerStepValue}}이 올바르지 않습니다.",
|
|
85
|
+
"not_answered_question": "질문 {{headerStepValue}}은 아직 답변되지 않았습니다."
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/nl/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "Toepassen",
|
|
77
77
|
"zuora_discount_code": "Promo-code",
|
|
78
78
|
"mandatory_fields": "*Mandatory fields",
|
|
79
|
-
"something_went_wrong": "Oh Snap! Something went wrong."
|
|
79
|
+
"something_went_wrong": "Oh Snap! Something went wrong.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "Vraag {{headerStepValue}}",
|
|
82
|
+
"current_question": "Vraag {{headerStepValue}} is de huidige vraag",
|
|
83
|
+
"correct_question": "Vraag {{headerStepValue}} is juist",
|
|
84
|
+
"incorrect_question": "Vraag {{headerStepValue}} is onjuist",
|
|
85
|
+
"not_answered_question": "Vraag {{headerStepValue}} is nog niet beantwoord"
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/pl/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "Zastosuj",
|
|
77
77
|
"zuora_discount_code": "Kod promocyjny",
|
|
78
78
|
"mandatory_fields": "*Mandatory fields",
|
|
79
|
-
"something_went_wrong": "Oh Snap! Something went wrong."
|
|
79
|
+
"something_went_wrong": "Oh Snap! Something went wrong.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "Pytanie {{headerStepValue}}",
|
|
82
|
+
"current_question": "Pytanie {{headerStepValue}} jest aktualnym pytaniem",
|
|
83
|
+
"correct_question": "Pytanie {{headerStepValue}} jest poprawne",
|
|
84
|
+
"incorrect_question": "Pytanie {{headerStepValue}} jest nieprawidłowe",
|
|
85
|
+
"not_answered_question": "Na pytanie {{headerStepValue}} nie ma jeszcze odpowiedzi"
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/pt/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "Aplicar",
|
|
77
77
|
"zuora_discount_code": "Código da promoção",
|
|
78
78
|
"mandatory_fields": "*Mandatory fields",
|
|
79
|
-
"something_went_wrong": "Oh Snap! Something went wrong."
|
|
79
|
+
"something_went_wrong": "Oh Snap! Something went wrong.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "Pergunta {{headerStepValue}}",
|
|
82
|
+
"current_question": "A pergunta {{headerStepValue}} é a pergunta atual",
|
|
83
|
+
"correct_question": "A questão {{headerStepValue}} está correta",
|
|
84
|
+
"incorrect_question": "A pergunta {{headerStepValue}} está incorreta",
|
|
85
|
+
"not_answered_question": "A pergunta {{headerStepValue}} ainda não foi respondida"
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/ro/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "Aplică",
|
|
77
77
|
"zuora_discount_code": "Cod promoțional",
|
|
78
78
|
"mandatory_fields": "*Mandatory fields",
|
|
79
|
-
"something_went_wrong": "Oh Snap! Something went wrong."
|
|
79
|
+
"something_went_wrong": "Oh Snap! Something went wrong.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "Întrebare {{headerStepValue}}",
|
|
82
|
+
"current_question": "Întrebarea {{headerStepValue}} este întrebarea curentă",
|
|
83
|
+
"correct_question": "Întrebarea {{headerStepValue}} este corectă",
|
|
84
|
+
"incorrect_question": "Întrebarea {{headerStepValue}} este incorectă",
|
|
85
|
+
"not_answered_question": "Întrebarea {{headerStepValue}} nu a primit încă răspuns"
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/ru/global.json
CHANGED
|
@@ -20,7 +20,6 @@
|
|
|
20
20
|
"Create a new cohort": "Создать новый сегмент",
|
|
21
21
|
"Delete": "Удалить",
|
|
22
22
|
"Draft": "Черновой вариант",
|
|
23
|
-
"drop_down_icon": "Открыть, чтобы открыть список доступных ответов",
|
|
24
23
|
"Edit": "Редактировать",
|
|
25
24
|
"external_content_article": "ДОКУМЕНТЫ",
|
|
26
25
|
"external_content_scorm": "АНИМИРОВАННЫЕ РЕСУРСЫ",
|
package/locales/sk/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "Aplikovať",
|
|
77
77
|
"zuora_discount_code": "Promo kód",
|
|
78
78
|
"mandatory_fields": "*Povinné polia",
|
|
79
|
-
"something_went_wrong": "Och! Niečo sa pokazilo."
|
|
79
|
+
"something_went_wrong": "Och! Niečo sa pokazilo.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "Otázka {{headerStepValue}}",
|
|
82
|
+
"current_question": "Otázka {{headerStepValue}} je aktuálna otázka",
|
|
83
|
+
"correct_question": "Otázka {{headerStepValue}} je správna",
|
|
84
|
+
"incorrect_question": "Otázka {{headerStepValue}} je nesprávna",
|
|
85
|
+
"not_answered_question": "Otázka {{headerStepValue}} zatiaľ nie je zodpovedaná"
|
|
86
|
+
}
|
|
80
87
|
}
|
package/locales/tl/global.json
CHANGED
|
@@ -76,5 +76,12 @@
|
|
|
76
76
|
"zuora_discount_code_submit": "Mag-apply",
|
|
77
77
|
"zuora_discount_code": "Promo code",
|
|
78
78
|
"mandatory_fields": "* Mga patlang na ipinag-uutos",
|
|
79
|
-
"something_went_wrong": "Oh Snap! Something went wrong."
|
|
79
|
+
"something_went_wrong": "Oh Snap! Something went wrong.",
|
|
80
|
+
"review_header_step_item": {
|
|
81
|
+
"aria_label": "Tanong {{headerStepValue}}",
|
|
82
|
+
"current_question": "Tanong {{headerStepValue}} ang kasalukuyang tanong",
|
|
83
|
+
"correct_question": "Tama ang tanong na {{headerStepValue}}",
|
|
84
|
+
"incorrect_question": "Ang tanong na {{headerStepValue}} ay hindi tama",
|
|
85
|
+
"not_answered_question": "Ang tanong na {{headerStepValue}} ay hindi pa nasasagot"
|
|
86
|
+
}
|
|
80
87
|
}
|