@coorpacademy/components 11.7.2 → 11.7.3-alpha.29
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/README.md +3 -3
- 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 +18 -0
- package/es/atom/select/index.d.ts.map +1 -1
- package/es/atom/select/index.js +21 -4
- 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 +19 -6
- package/es/molecule/answer/index.js.map +1 -1
- package/es/molecule/brand-form-group/index.d.ts +18 -0
- package/es/molecule/filters/filters-wrapper.d.ts +1 -0
- package/es/molecule/filters/filters-wrapper.d.ts.map +1 -1
- package/es/molecule/filters/filters-wrapper.js +9 -5
- package/es/molecule/filters/filters-wrapper.js.map +1 -1
- package/es/molecule/filters/index.d.ts +10 -0
- package/es/molecule/filters/index.d.ts.map +1 -1
- package/es/molecule/filters/index.js +6 -3
- package/es/molecule/filters/index.js.map +1 -1
- package/es/molecule/questions/drop-down/index.d.ts +1 -0
- package/es/molecule/questions/drop-down/index.d.ts.map +1 -1
- package/es/molecule/questions/drop-down/index.js +9 -5
- package/es/molecule/questions/drop-down/index.js.map +1 -1
- package/es/molecule/questions/qcm/index.d.ts +1 -0
- package/es/molecule/questions/qcm/index.d.ts.map +1 -1
- package/es/molecule/questions/qcm/index.js +9 -5
- package/es/molecule/questions/qcm/index.js.map +1 -1
- package/es/molecule/questions/qcm-drag/index.d.ts +3 -1
- package/es/molecule/questions/qcm-drag/index.d.ts.map +1 -1
- package/es/molecule/questions/qcm-drag/index.js +9 -5
- package/es/molecule/questions/qcm-drag/index.js.map +1 -1
- package/es/molecule/questions/qcm-graphic/index.d.ts +1 -0
- package/es/molecule/questions/qcm-graphic/index.d.ts.map +1 -1
- package/es/molecule/questions/qcm-graphic/index.js +9 -5
- package/es/molecule/questions/qcm-graphic/index.js.map +1 -1
- package/es/molecule/questions/question-range/index.d.ts +1 -0
- package/es/molecule/questions/question-range/index.d.ts.map +1 -1
- package/es/molecule/questions/question-range/index.js +10 -6
- package/es/molecule/questions/question-range/index.js.map +1 -1
- package/es/molecule/questions/template/index.d.ts +6 -2
- package/es/molecule/questions/template/index.d.ts.map +1 -1
- package/es/molecule/questions/template/index.js +9 -5
- package/es/molecule/questions/template/index.js.map +1 -1
- package/es/molecule/setup-slide/index.d.ts +9 -0
- package/es/molecule/setup-slider/index.d.ts +9 -0
- package/es/organism/brand-form/index.d.ts +18 -0
- package/es/organism/user-preferences/index.d.ts +1 -0
- package/es/organism/user-preferences/index.d.ts.map +1 -1
- package/es/organism/user-preferences/index.js +9 -5
- package/es/organism/user-preferences/index.js.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +18 -0
- package/es/template/back-office/brand-update/index.d.ts +36 -0
- package/es/template/common/search-page/index.d.ts +11 -0
- package/es/template/common/search-page/index.d.ts.map +1 -1
- package/es/template/common/search-page/index.js +6 -3
- package/es/template/common/search-page/index.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 +18 -0
- package/lib/atom/select/index.d.ts.map +1 -1
- package/lib/atom/select/index.js +26 -5
- 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 +20 -6
- package/lib/molecule/answer/index.js.map +1 -1
- package/lib/molecule/brand-form-group/index.d.ts +18 -0
- package/lib/molecule/filters/filters-wrapper.d.ts +1 -0
- package/lib/molecule/filters/filters-wrapper.d.ts.map +1 -1
- package/lib/molecule/filters/filters-wrapper.js +9 -5
- package/lib/molecule/filters/filters-wrapper.js.map +1 -1
- package/lib/molecule/filters/index.d.ts +10 -0
- package/lib/molecule/filters/index.d.ts.map +1 -1
- package/lib/molecule/filters/index.js +6 -3
- package/lib/molecule/filters/index.js.map +1 -1
- package/lib/molecule/questions/drop-down/index.d.ts +1 -0
- package/lib/molecule/questions/drop-down/index.d.ts.map +1 -1
- package/lib/molecule/questions/drop-down/index.js +9 -5
- package/lib/molecule/questions/drop-down/index.js.map +1 -1
- package/lib/molecule/questions/qcm/index.d.ts +1 -0
- package/lib/molecule/questions/qcm/index.d.ts.map +1 -1
- package/lib/molecule/questions/qcm/index.js +9 -5
- package/lib/molecule/questions/qcm/index.js.map +1 -1
- package/lib/molecule/questions/qcm-drag/index.d.ts +3 -1
- package/lib/molecule/questions/qcm-drag/index.d.ts.map +1 -1
- package/lib/molecule/questions/qcm-drag/index.js +9 -5
- package/lib/molecule/questions/qcm-drag/index.js.map +1 -1
- package/lib/molecule/questions/qcm-graphic/index.d.ts +1 -0
- package/lib/molecule/questions/qcm-graphic/index.d.ts.map +1 -1
- package/lib/molecule/questions/qcm-graphic/index.js +9 -5
- package/lib/molecule/questions/qcm-graphic/index.js.map +1 -1
- package/lib/molecule/questions/question-range/index.d.ts +1 -0
- package/lib/molecule/questions/question-range/index.d.ts.map +1 -1
- package/lib/molecule/questions/question-range/index.js +10 -6
- package/lib/molecule/questions/question-range/index.js.map +1 -1
- package/lib/molecule/questions/template/index.d.ts +6 -2
- package/lib/molecule/questions/template/index.d.ts.map +1 -1
- package/lib/molecule/questions/template/index.js +9 -5
- package/lib/molecule/questions/template/index.js.map +1 -1
- package/lib/molecule/setup-slide/index.d.ts +9 -0
- package/lib/molecule/setup-slider/index.d.ts +9 -0
- package/lib/organism/brand-form/index.d.ts +18 -0
- package/lib/organism/user-preferences/index.d.ts +1 -0
- package/lib/organism/user-preferences/index.d.ts.map +1 -1
- package/lib/organism/user-preferences/index.js +9 -5
- package/lib/organism/user-preferences/index.js.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +18 -0
- package/lib/template/back-office/brand-update/index.d.ts +36 -0
- package/lib/template/common/search-page/index.d.ts +11 -0
- package/lib/template/common/search-page/index.d.ts.map +1 -1
- package/lib/template/common/search-page/index.js +6 -3
- package/lib/template/common/search-page/index.js.map +1 -1
- package/locales/.mtslconfig.json +1 -0
- package/locales/cs/global.json +1 -0
- package/locales/de/global.json +1 -0
- package/locales/en/global.json +1 -0
- package/locales/es/global.json +1 -0
- package/locales/et/global.json +1 -0
- package/locales/fr/global.json +1 -0
- package/locales/hr/global.json +1 -0
- package/locales/hu/global.json +1 -0
- package/locales/it/global.json +1 -0
- package/locales/ja/global.json +1 -0
- package/locales/ko/global.json +1 -0
- package/locales/nl/global.json +1 -0
- package/locales/pl/global.json +1 -0
- package/locales/pt/global.json +1 -0
- package/locales/ro/global.json +1 -0
- package/locales/ru/global.json +1 -0
- package/locales/sk/global.json +1 -0
- package/locales/tl/global.json +1 -0
- package/locales/tr/global.json +1 -0
- package/locales/uk/global.json +1 -0
- package/locales/vi/global.json +1 -0
- package/locales/zh/global.json +1 -0
- package/locales/zh_TW/global.json +1 -0
- package/package.json +3 -3
|
@@ -29,7 +29,8 @@ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) r
|
|
|
29
29
|
|
|
30
30
|
const Template = ({
|
|
31
31
|
template,
|
|
32
|
-
answers
|
|
32
|
+
answers,
|
|
33
|
+
groupAriaLabel
|
|
33
34
|
}) => {
|
|
34
35
|
const totalTemplate = (0, _parseTemplateString.default)(template);
|
|
35
36
|
|
|
@@ -72,10 +73,12 @@ const Template = ({
|
|
|
72
73
|
}
|
|
73
74
|
}, totalTemplate);
|
|
74
75
|
|
|
75
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
76
|
+
return /*#__PURE__*/_react.default.createElement("form", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
76
77
|
"data-name": "template-wrapper",
|
|
77
|
-
className: _style.default.wrapper
|
|
78
|
-
|
|
78
|
+
className: _style.default.wrapper,
|
|
79
|
+
role: "group",
|
|
80
|
+
"aria-label": groupAriaLabel
|
|
81
|
+
}, templateCompose));
|
|
79
82
|
};
|
|
80
83
|
|
|
81
84
|
const TextPropTypes = process.env.NODE_ENV !== "production" ? _extends({}, _dropDown.default.propTypes, {
|
|
@@ -83,7 +86,8 @@ const TextPropTypes = process.env.NODE_ENV !== "production" ? _extends({}, _drop
|
|
|
83
86
|
}) : {};
|
|
84
87
|
Template.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
85
88
|
template: _propTypes.default.string,
|
|
86
|
-
answers: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape(_dropDown.default.propTypes), _propTypes.default.shape(TextPropTypes)]))
|
|
89
|
+
answers: _propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.shape(_dropDown.default.propTypes), _propTypes.default.shape(TextPropTypes)])),
|
|
90
|
+
groupAriaLabel: _propTypes.default.string
|
|
87
91
|
} : {};
|
|
88
92
|
var _default = Template;
|
|
89
93
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Template","template","answers","totalTemplate","parseTemplateString","templateCompose","convert","cap","part","key","type","style","textPart","__html","value","field","name","fieldType","fieldProps","fieldView","text","answerType","wrapper","TextPropTypes","DropDown","propTypes","PropTypes","string","arrayOf","oneOfType","shape"],"sources":["../../../../src/molecule/questions/template/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, find} from 'lodash/fp';\nimport parseTemplateString from '../../../util/parse-template-string';\nimport DropDown from '../drop-down';\nimport FreeText from '../free-text';\nimport style from './style.css';\n\nconst Template = ({template, answers}) => {\n const totalTemplate = parseTemplateString(template);\n const templateCompose = map.convert({cap: false})((part, key) => {\n const type = part.type;\n if (type === 'string') {\n return (\n <span\n key={key}\n className={style.textPart}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: part.value}}\n />\n );\n }\n if (type === 'answerField') {\n const field = find({name: part.value}, answers);\n if (!field) return null;\n const {type: fieldType, ...fieldProps} = field;\n const fieldView =\n fieldType === 'text' ? (\n <FreeText {...fieldProps} className={style.text} />\n ) : (\n <DropDown {...fieldProps} theme=\"player\" />\n );\n\n return (\n <div className={style.answerType} key={part.value}>\n {fieldView}\n </div>\n );\n }\n }, totalTemplate);\n\n return (\n <div
|
|
1
|
+
{"version":3,"file":"index.js","names":["Template","template","answers","groupAriaLabel","totalTemplate","parseTemplateString","templateCompose","convert","cap","part","key","type","style","textPart","__html","value","field","name","fieldType","fieldProps","fieldView","text","answerType","wrapper","TextPropTypes","DropDown","propTypes","PropTypes","string","arrayOf","oneOfType","shape"],"sources":["../../../../src/molecule/questions/template/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, find} from 'lodash/fp';\nimport parseTemplateString from '../../../util/parse-template-string';\nimport DropDown from '../drop-down';\nimport FreeText from '../free-text';\nimport style from './style.css';\n\nconst Template = ({template, answers, groupAriaLabel}) => {\n const totalTemplate = parseTemplateString(template);\n const templateCompose = map.convert({cap: false})((part, key) => {\n const type = part.type;\n if (type === 'string') {\n return (\n <span\n key={key}\n className={style.textPart}\n // eslint-disable-next-line react/no-danger\n dangerouslySetInnerHTML={{__html: part.value}}\n />\n );\n }\n if (type === 'answerField') {\n const field = find({name: part.value}, answers);\n if (!field) return null;\n const {type: fieldType, ...fieldProps} = field;\n const fieldView =\n fieldType === 'text' ? (\n <FreeText {...fieldProps} className={style.text} />\n ) : (\n <DropDown {...fieldProps} theme=\"player\" />\n );\n\n return (\n <div className={style.answerType} key={part.value}>\n {fieldView}\n </div>\n );\n }\n }, totalTemplate);\n\n return (\n <form>\n <div\n data-name=\"template-wrapper\"\n className={style.wrapper}\n role=\"group\"\n aria-label={groupAriaLabel}\n >\n {templateCompose}\n </div>\n </form>\n );\n};\n\nconst TextPropTypes = {\n ...DropDown.propTypes,\n type: PropTypes.string\n};\n\nTemplate.propTypes = {\n template: PropTypes.string,\n answers: PropTypes.arrayOf(\n PropTypes.oneOfType([PropTypes.shape(DropDown.propTypes), PropTypes.shape(TextPropTypes)])\n ),\n groupAriaLabel: PropTypes.string\n};\n\nexport default Template;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,QAAQ,GAAG,CAAC;EAACC,QAAD;EAAWC,OAAX;EAAoBC;AAApB,CAAD,KAAyC;EACxD,MAAMC,aAAa,GAAG,IAAAC,4BAAA,EAAoBJ,QAApB,CAAtB;;EACA,MAAMK,eAAe,GAAG,cAAIC,OAAJ,CAAY;IAACC,GAAG,EAAE;EAAN,CAAZ,EAA0B,CAACC,IAAD,EAAOC,GAAP,KAAe;IAC/D,MAAMC,IAAI,GAAGF,IAAI,CAACE,IAAlB;;IACA,IAAIA,IAAI,KAAK,QAAb,EAAuB;MACrB,oBACE;QACE,GAAG,EAAED,GADP;QAEE,SAAS,EAAEE,cAAA,CAAMC,QAFnB,CAGE;QAHF;QAIE,uBAAuB,EAAE;UAACC,MAAM,EAAEL,IAAI,CAACM;QAAd;MAJ3B,EADF;IAQD;;IACD,IAAIJ,IAAI,KAAK,aAAb,EAA4B;MAC1B,MAAMK,KAAK,GAAG,oBAAK;QAACC,IAAI,EAAER,IAAI,CAACM;MAAZ,CAAL,EAAyBb,OAAzB,CAAd;MACA,IAAI,CAACc,KAAL,EAAY,OAAO,IAAP;;MACZ,MAAM;QAACL,IAAI,EAAEO;MAAP,IAAmCF,KAAzC;MAAA,MAA2BG,UAA3B,iCAAyCH,KAAzC;;MACA,MAAMI,SAAS,GACbF,SAAS,KAAK,MAAd,gBACE,6BAAC,iBAAD,eAAcC,UAAd;QAA0B,SAAS,EAAEP,cAAA,CAAMS;MAA3C,GADF,gBAGE,6BAAC,iBAAD,eAAcF,UAAd;QAA0B,KAAK,EAAC;MAAhC,GAJJ;MAOA,oBACE;QAAK,SAAS,EAAEP,cAAA,CAAMU,UAAtB;QAAkC,GAAG,EAAEb,IAAI,CAACM;MAA5C,GACGK,SADH,CADF;IAKD;EACF,CA7BuB,EA6BrBhB,aA7BqB,CAAxB;;EA+BA,oBACE,wDACE;IACE,aAAU,kBADZ;IAEE,SAAS,EAAEQ,cAAA,CAAMW,OAFnB;IAGE,IAAI,EAAC,OAHP;IAIE,cAAYpB;EAJd,GAMGG,eANH,CADF,CADF;AAYD,CA7CD;;AA+CA,MAAMkB,aAAN,wDACKC,iBAAA,CAASC,SADd;EAEEf,IAAI,EAAEgB,kBAAA,CAAUC;AAFlB;AAKA5B,QAAQ,CAAC0B,SAAT,2CAAqB;EACnBzB,QAAQ,EAAE0B,kBAAA,CAAUC,MADD;EAEnB1B,OAAO,EAAEyB,kBAAA,CAAUE,OAAV,CACPF,kBAAA,CAAUG,SAAV,CAAoB,CAACH,kBAAA,CAAUI,KAAV,CAAgBN,iBAAA,CAASC,SAAzB,CAAD,EAAsCC,kBAAA,CAAUI,KAAV,CAAgBP,aAAhB,CAAtC,CAApB,CADO,CAFU;EAKnBrB,cAAc,EAAEwB,kBAAA,CAAUC;AALP,CAArB;eAQe5B,Q"}
|
|
@@ -54,6 +54,15 @@ declare namespace SetupSlide {
|
|
|
54
54
|
selected: PropTypes.Requireable<boolean>;
|
|
55
55
|
validOption: PropTypes.Requireable<boolean>;
|
|
56
56
|
}> | null | undefined)[]>;
|
|
57
|
+
optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
58
|
+
label: PropTypes.Validator<string>;
|
|
59
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
60
|
+
name: PropTypes.Validator<string>;
|
|
61
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
62
|
+
selected: PropTypes.Requireable<boolean>;
|
|
63
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
64
|
+
}> | null | undefined)[]>;
|
|
65
|
+
}> | null | undefined)[]>;
|
|
57
66
|
modified: PropTypes.Requireable<boolean>;
|
|
58
67
|
error: PropTypes.Requireable<boolean>;
|
|
59
68
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -67,6 +67,15 @@ declare namespace SetupSlider {
|
|
|
67
67
|
selected: PropTypes.Requireable<boolean>;
|
|
68
68
|
validOption: PropTypes.Requireable<boolean>;
|
|
69
69
|
}> | null | undefined)[]>;
|
|
70
|
+
optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
71
|
+
label: PropTypes.Validator<string>;
|
|
72
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
73
|
+
name: PropTypes.Validator<string>;
|
|
74
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
75
|
+
selected: PropTypes.Requireable<boolean>;
|
|
76
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
77
|
+
}> | null | undefined)[]>;
|
|
78
|
+
}> | null | undefined)[]>;
|
|
70
79
|
modified: PropTypes.Requireable<boolean>;
|
|
71
80
|
error: PropTypes.Requireable<boolean>;
|
|
72
81
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -126,6 +126,15 @@ declare namespace BrandForm {
|
|
|
126
126
|
selected: PropTypes.Requireable<boolean>;
|
|
127
127
|
validOption: PropTypes.Requireable<boolean>;
|
|
128
128
|
}> | null | undefined)[]>;
|
|
129
|
+
optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
130
|
+
label: PropTypes.Validator<string>;
|
|
131
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
132
|
+
name: PropTypes.Validator<string>;
|
|
133
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
134
|
+
selected: PropTypes.Requireable<boolean>;
|
|
135
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
136
|
+
}> | null | undefined)[]>;
|
|
137
|
+
}> | null | undefined)[]>;
|
|
129
138
|
modified: PropTypes.Requireable<boolean>;
|
|
130
139
|
error: PropTypes.Requireable<boolean>;
|
|
131
140
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -230,6 +239,15 @@ declare namespace BrandForm {
|
|
|
230
239
|
selected: PropTypes.Requireable<boolean>;
|
|
231
240
|
validOption: PropTypes.Requireable<boolean>;
|
|
232
241
|
}> | null | undefined)[]>;
|
|
242
|
+
optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
243
|
+
label: PropTypes.Validator<string>;
|
|
244
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
245
|
+
name: PropTypes.Validator<string>;
|
|
246
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
247
|
+
selected: PropTypes.Requireable<boolean>;
|
|
248
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
249
|
+
}> | null | undefined)[]>;
|
|
250
|
+
}> | null | undefined)[]>;
|
|
233
251
|
modified: PropTypes.Requireable<boolean>;
|
|
234
252
|
error: PropTypes.Requireable<boolean>;
|
|
235
253
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -19,6 +19,7 @@ declare namespace UserPreferences {
|
|
|
19
19
|
requiredSelection: PropTypes.Requireable<boolean>;
|
|
20
20
|
}> | null | undefined)[]>;
|
|
21
21
|
const moreInfoAriaLabel: PropTypes.Requireable<string>;
|
|
22
|
+
const groupAriaLabel: PropTypes.Requireable<string>;
|
|
22
23
|
}
|
|
23
24
|
}
|
|
24
25
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/user-preferences/index.js"],"names":[],"mappings":";AAoCA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/user-preferences/index.js"],"names":[],"mappings":";AAoCA,0DAeC"}
|
|
@@ -59,19 +59,23 @@ Settings.propTypes = process.env.NODE_ENV !== "production" ? _extends({}, _input
|
|
|
59
59
|
const UserPreferences = props => {
|
|
60
60
|
const {
|
|
61
61
|
preferences = [],
|
|
62
|
-
moreInfoAriaLabel
|
|
62
|
+
moreInfoAriaLabel,
|
|
63
|
+
groupAriaLabel
|
|
63
64
|
} = props;
|
|
64
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
65
|
-
className: _style.default.preferences
|
|
65
|
+
return /*#__PURE__*/_react.default.createElement("form", null, /*#__PURE__*/_react.default.createElement("div", {
|
|
66
|
+
className: _style.default.preferences,
|
|
67
|
+
role: "group",
|
|
68
|
+
"aria-label": groupAriaLabel
|
|
66
69
|
}, (0, _map2.default)(settings => /*#__PURE__*/_react.default.createElement(Settings, _extends({}, settings, {
|
|
67
70
|
key: settings.label,
|
|
68
71
|
moreInfoAriaLabel: moreInfoAriaLabel
|
|
69
|
-
})), preferences));
|
|
72
|
+
})), preferences)));
|
|
70
73
|
};
|
|
71
74
|
|
|
72
75
|
UserPreferences.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
73
76
|
preferences: _propTypes.default.arrayOf(_propTypes.default.shape(Settings.propTypes)),
|
|
74
|
-
moreInfoAriaLabel: _propTypes.default.string
|
|
77
|
+
moreInfoAriaLabel: _propTypes.default.string,
|
|
78
|
+
groupAriaLabel: _propTypes.default.string
|
|
75
79
|
} : {};
|
|
76
80
|
var _default = UserPreferences;
|
|
77
81
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["Settings","props","label","description","moreInfoAriaLabel","settings","style","infoIconWrapper","infoIcon","showToolTip","descriptionLabel","propTypes","InputSwitch","PropTypes","string","isRequired","UserPreferences","preferences","arrayOf","shape"],"sources":["../../../src/organism/user-preferences/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, isEmpty} from 'lodash/fp';\nimport {NovaCompositionCoorpacademyInformationIcon as InfoIcon} from '@coorpacademy/nova-icons';\nimport InputSwitch from '../../atom/input-switch';\nimport style from './style.css';\n\nconst Settings = props => {\n const {label, description, moreInfoAriaLabel, ...settings} = props;\n return (\n <div className={style.settings}>\n <InputSwitch {...settings} />\n <span className={style.label}>{label}</span>\n {isEmpty(description) ? null : (\n <div className={style.infoIconWrapper}>\n <InfoIcon\n height={16}\n width={16}\n className={style.infoIcon}\n aria-label={moreInfoAriaLabel}\n />\n <div className={style.showToolTip}>\n <div className={style.descriptionLabel}>{description}</div>\n </div>\n </div>\n )}\n </div>\n );\n};\n\nSettings.propTypes = {\n ...InputSwitch.propTypes,\n label: PropTypes.string.isRequired,\n description: PropTypes.string\n};\n\nconst UserPreferences = props => {\n const {preferences = [], moreInfoAriaLabel} = props;\n\n return (\n <div className={style.preferences}>\n
|
|
1
|
+
{"version":3,"file":"index.js","names":["Settings","props","label","description","moreInfoAriaLabel","settings","style","infoIconWrapper","infoIcon","showToolTip","descriptionLabel","propTypes","InputSwitch","PropTypes","string","isRequired","UserPreferences","preferences","groupAriaLabel","arrayOf","shape"],"sources":["../../../src/organism/user-preferences/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {map, isEmpty} from 'lodash/fp';\nimport {NovaCompositionCoorpacademyInformationIcon as InfoIcon} from '@coorpacademy/nova-icons';\nimport InputSwitch from '../../atom/input-switch';\nimport style from './style.css';\n\nconst Settings = props => {\n const {label, description, moreInfoAriaLabel, ...settings} = props;\n return (\n <div className={style.settings}>\n <InputSwitch {...settings} />\n <span className={style.label}>{label}</span>\n {isEmpty(description) ? null : (\n <div className={style.infoIconWrapper}>\n <InfoIcon\n height={16}\n width={16}\n className={style.infoIcon}\n aria-label={moreInfoAriaLabel}\n />\n <div className={style.showToolTip}>\n <div className={style.descriptionLabel}>{description}</div>\n </div>\n </div>\n )}\n </div>\n );\n};\n\nSettings.propTypes = {\n ...InputSwitch.propTypes,\n label: PropTypes.string.isRequired,\n description: PropTypes.string\n};\n\nconst UserPreferences = props => {\n const {preferences = [], moreInfoAriaLabel, groupAriaLabel} = props;\n\n return (\n <form>\n <div className={style.preferences} role=\"group\" aria-label={groupAriaLabel}>\n {map(\n settings => (\n <Settings {...settings} key={settings.label} moreInfoAriaLabel={moreInfoAriaLabel} />\n ),\n preferences\n )}\n </div>\n </form>\n );\n};\n\nUserPreferences.propTypes = {\n preferences: PropTypes.arrayOf(PropTypes.shape(Settings.propTypes)),\n moreInfoAriaLabel: PropTypes.string,\n groupAriaLabel: PropTypes.string\n};\n\nexport default UserPreferences;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;;;;;;;;;AAEA,MAAMA,QAAQ,GAAGC,KAAK,IAAI;EACxB,MAAM;IAACC,KAAD;IAAQC,WAAR;IAAqBC;EAArB,IAAuDH,KAA7D;EAAA,MAAiDI,QAAjD,iCAA6DJ,KAA7D;;EACA,oBACE;IAAK,SAAS,EAAEK,cAAA,CAAMD;EAAtB,gBACE,6BAAC,oBAAD,EAAiBA,QAAjB,CADF,eAEE;IAAM,SAAS,EAAEC,cAAA,CAAMJ;EAAvB,GAA+BA,KAA/B,CAFF,EAGG,uBAAQC,WAAR,IAAuB,IAAvB,gBACC;IAAK,SAAS,EAAEG,cAAA,CAAMC;EAAtB,gBACE,6BAAC,qDAAD;IACE,MAAM,EAAE,EADV;IAEE,KAAK,EAAE,EAFT;IAGE,SAAS,EAAED,cAAA,CAAME,QAHnB;IAIE,cAAYJ;EAJd,EADF,eAOE;IAAK,SAAS,EAAEE,cAAA,CAAMG;EAAtB,gBACE;IAAK,SAAS,EAAEH,cAAA,CAAMI;EAAtB,GAAyCP,WAAzC,CADF,CAPF,CAJJ,CADF;AAmBD,CArBD;;AAuBAH,QAAQ,CAACW,SAAT,wDACKC,oBAAA,CAAYD,SADjB;EAEET,KAAK,EAAEW,kBAAA,CAAUC,MAAV,CAAiBC,UAF1B;EAGEZ,WAAW,EAAEU,kBAAA,CAAUC;AAHzB;;AAMA,MAAME,eAAe,GAAGf,KAAK,IAAI;EAC/B,MAAM;IAACgB,WAAW,GAAG,EAAf;IAAmBb,iBAAnB;IAAsCc;EAAtC,IAAwDjB,KAA9D;EAEA,oBACE,wDACE;IAAK,SAAS,EAAEK,cAAA,CAAMW,WAAtB;IAAmC,IAAI,EAAC,OAAxC;IAAgD,cAAYC;EAA5D,GACG,mBACCb,QAAQ,iBACN,6BAAC,QAAD,eAAcA,QAAd;IAAwB,GAAG,EAAEA,QAAQ,CAACH,KAAtC;IAA6C,iBAAiB,EAAEE;EAAhE,GAFH,EAICa,WAJD,CADH,CADF,CADF;AAYD,CAfD;;AAiBAD,eAAe,CAACL,SAAhB,2CAA4B;EAC1BM,WAAW,EAAEJ,kBAAA,CAAUM,OAAV,CAAkBN,kBAAA,CAAUO,KAAV,CAAgBpB,QAAQ,CAACW,SAAzB,CAAlB,CADa;EAE1BP,iBAAiB,EAAES,kBAAA,CAAUC,MAFH;EAG1BI,cAAc,EAAEL,kBAAA,CAAUC;AAHA,CAA5B;eAMeE,e"}
|
|
@@ -143,6 +143,15 @@ declare namespace WizardContents {
|
|
|
143
143
|
selected: PropTypes.Requireable<boolean>;
|
|
144
144
|
validOption: PropTypes.Requireable<boolean>;
|
|
145
145
|
}> | null | undefined)[]>;
|
|
146
|
+
optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
147
|
+
label: PropTypes.Validator<string>;
|
|
148
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
149
|
+
name: PropTypes.Validator<string>;
|
|
150
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
151
|
+
selected: PropTypes.Requireable<boolean>;
|
|
152
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
153
|
+
}> | null | undefined)[]>;
|
|
154
|
+
}> | null | undefined)[]>;
|
|
146
155
|
modified: PropTypes.Requireable<boolean>;
|
|
147
156
|
error: PropTypes.Requireable<boolean>;
|
|
148
157
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -247,6 +256,15 @@ declare namespace WizardContents {
|
|
|
247
256
|
selected: PropTypes.Requireable<boolean>;
|
|
248
257
|
validOption: PropTypes.Requireable<boolean>;
|
|
249
258
|
}> | null | undefined)[]>;
|
|
259
|
+
optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
260
|
+
label: PropTypes.Validator<string>;
|
|
261
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
262
|
+
name: PropTypes.Validator<string>;
|
|
263
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
264
|
+
selected: PropTypes.Requireable<boolean>;
|
|
265
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
266
|
+
}> | null | undefined)[]>;
|
|
267
|
+
}> | null | undefined)[]>;
|
|
250
268
|
modified: PropTypes.Requireable<boolean>;
|
|
251
269
|
error: PropTypes.Requireable<boolean>;
|
|
252
270
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -228,6 +228,15 @@ declare namespace BrandUpdate {
|
|
|
228
228
|
selected: PropTypes.Requireable<boolean>;
|
|
229
229
|
validOption: PropTypes.Requireable<boolean>;
|
|
230
230
|
}> | null | undefined)[]>;
|
|
231
|
+
optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
232
|
+
label: PropTypes.Validator<string>;
|
|
233
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
234
|
+
name: PropTypes.Validator<string>;
|
|
235
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
236
|
+
selected: PropTypes.Requireable<boolean>;
|
|
237
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
238
|
+
}> | null | undefined)[]>;
|
|
239
|
+
}> | null | undefined)[]>;
|
|
231
240
|
modified: PropTypes.Requireable<boolean>;
|
|
232
241
|
error: PropTypes.Requireable<boolean>;
|
|
233
242
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -332,6 +341,15 @@ declare namespace BrandUpdate {
|
|
|
332
341
|
selected: PropTypes.Requireable<boolean>;
|
|
333
342
|
validOption: PropTypes.Requireable<boolean>;
|
|
334
343
|
}> | null | undefined)[]>;
|
|
344
|
+
optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
345
|
+
label: PropTypes.Validator<string>;
|
|
346
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
347
|
+
name: PropTypes.Validator<string>;
|
|
348
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
349
|
+
selected: PropTypes.Requireable<boolean>;
|
|
350
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
351
|
+
}> | null | undefined)[]>;
|
|
352
|
+
}> | null | undefined)[]>;
|
|
335
353
|
modified: PropTypes.Requireable<boolean>;
|
|
336
354
|
error: PropTypes.Requireable<boolean>;
|
|
337
355
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -851,6 +869,15 @@ declare namespace BrandUpdate {
|
|
|
851
869
|
selected: PropTypes.Requireable<boolean>;
|
|
852
870
|
validOption: PropTypes.Requireable<boolean>;
|
|
853
871
|
}> | null | undefined)[]>;
|
|
872
|
+
optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
873
|
+
label: PropTypes.Validator<string>;
|
|
874
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
875
|
+
name: PropTypes.Validator<string>;
|
|
876
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
877
|
+
selected: PropTypes.Requireable<boolean>;
|
|
878
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
879
|
+
}> | null | undefined)[]>;
|
|
880
|
+
}> | null | undefined)[]>;
|
|
854
881
|
modified: PropTypes.Requireable<boolean>;
|
|
855
882
|
error: PropTypes.Requireable<boolean>;
|
|
856
883
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -955,6 +982,15 @@ declare namespace BrandUpdate {
|
|
|
955
982
|
selected: PropTypes.Requireable<boolean>;
|
|
956
983
|
validOption: PropTypes.Requireable<boolean>;
|
|
957
984
|
}> | null | undefined)[]>;
|
|
985
|
+
optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
986
|
+
label: PropTypes.Validator<string>;
|
|
987
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
988
|
+
name: PropTypes.Validator<string>;
|
|
989
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
990
|
+
selected: PropTypes.Requireable<boolean>;
|
|
991
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
992
|
+
}> | null | undefined)[]>;
|
|
993
|
+
}> | null | undefined)[]>;
|
|
958
994
|
modified: PropTypes.Requireable<boolean>;
|
|
959
995
|
error: PropTypes.Requireable<boolean>;
|
|
960
996
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -55,6 +55,15 @@ declare namespace SearchPage {
|
|
|
55
55
|
selected: PropTypes.Requireable<boolean>;
|
|
56
56
|
validOption: PropTypes.Requireable<boolean>;
|
|
57
57
|
}> | null | undefined)[]>;
|
|
58
|
+
optgroups: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
59
|
+
label: PropTypes.Validator<string>;
|
|
60
|
+
options: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
61
|
+
name: PropTypes.Validator<string>;
|
|
62
|
+
value: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
|
|
63
|
+
selected: PropTypes.Requireable<boolean>;
|
|
64
|
+
validOption: PropTypes.Requireable<boolean>;
|
|
65
|
+
}> | null | undefined)[]>;
|
|
66
|
+
}> | null | undefined)[]>;
|
|
58
67
|
modified: PropTypes.Requireable<boolean>;
|
|
59
68
|
error: PropTypes.Requireable<boolean>;
|
|
60
69
|
'aria-label': PropTypes.Requireable<string>;
|
|
@@ -64,6 +73,7 @@ declare namespace SearchPage {
|
|
|
64
73
|
onToggleSorts: PropTypes.Requireable<(...args: any[]) => any>;
|
|
65
74
|
moreSortAriaLabel: PropTypes.Requireable<string>;
|
|
66
75
|
moreFilterAriaLabel: PropTypes.Requireable<string>;
|
|
76
|
+
filterGroupAriaLabel: PropTypes.Requireable<string>;
|
|
67
77
|
}>>;
|
|
68
78
|
const cards: PropTypes.Requireable<PropTypes.InferProps<{
|
|
69
79
|
list: PropTypes.Requireable<(PropTypes.InferProps<any> | null | undefined)[]>;
|
|
@@ -100,6 +110,7 @@ declare namespace SearchPage {
|
|
|
100
110
|
}>>;
|
|
101
111
|
const moreSortAriaLabel: PropTypes.Requireable<string>;
|
|
102
112
|
const moreFilterAriaLabel: PropTypes.Requireable<string>;
|
|
113
|
+
const filterGroupAriaLabel: PropTypes.Requireable<string>;
|
|
103
114
|
}
|
|
104
115
|
}
|
|
105
116
|
import PropTypes from "prop-types";
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAUA,
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../src/template/common/search-page/index.js"],"names":[],"mappings":";AAUA,mEAoDC"}
|
|
@@ -36,7 +36,8 @@ const SearchPage = (props, context) => {
|
|
|
36
36
|
clearFilters,
|
|
37
37
|
recommendations,
|
|
38
38
|
moreSortAriaLabel,
|
|
39
|
-
moreFilterAriaLabel
|
|
39
|
+
moreFilterAriaLabel,
|
|
40
|
+
filterGroupAriaLabel
|
|
40
41
|
} = props;
|
|
41
42
|
const {
|
|
42
43
|
skin
|
|
@@ -57,7 +58,8 @@ const SearchPage = (props, context) => {
|
|
|
57
58
|
}))), recommendationsView) : /*#__PURE__*/_react.default.createElement(_cardsGrid.default, cards);
|
|
58
59
|
return /*#__PURE__*/_react.default.createElement("div", null, /*#__PURE__*/_react.default.createElement(_filters.default, _extends({}, searchFilters, {
|
|
59
60
|
moreSortAriaLabel: moreSortAriaLabel,
|
|
60
|
-
moreFilterAriaLabel: moreFilterAriaLabel
|
|
61
|
+
moreFilterAriaLabel: moreFilterAriaLabel,
|
|
62
|
+
filterGroupAriaLabel: filterGroupAriaLabel
|
|
61
63
|
})), /*#__PURE__*/_react.default.createElement("div", {
|
|
62
64
|
"data-name": "searchResult",
|
|
63
65
|
className: _style.default.cardsWrapper
|
|
@@ -78,7 +80,8 @@ SearchPage.propTypes = process.env.NODE_ENV !== "production" ? {
|
|
|
78
80
|
clearFilters: _propTypes.default.shape(_button.default.propTypes),
|
|
79
81
|
recommendations: _propTypes.default.shape(_cardsList.default.propTypes),
|
|
80
82
|
moreSortAriaLabel: _propTypes.default.string,
|
|
81
|
-
moreFilterAriaLabel: _propTypes.default.string
|
|
83
|
+
moreFilterAriaLabel: _propTypes.default.string,
|
|
84
|
+
filterGroupAriaLabel: _propTypes.default.string
|
|
82
85
|
} : {};
|
|
83
86
|
var _default = SearchPage;
|
|
84
87
|
exports.default = _default;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","skin","defaultColor","recommendationsView","cardsView","list","style","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","shape","Filters","CardsGrid","Button","CardsList"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel\n } = props;\n\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const recommendationsView = isEmpty(recommendations) ? null : <CardsList {...recommendations} />;\n\n const cardsView = isEmpty(cards.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n return (\n <div>\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n />\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,UAAU,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACrC,MAAM;IACJC,KADI;IAEJC,aAFI;IAGJC,KAHI;IAIJC,cAJI;IAKJC,YALI;IAMJC,eANI;IAOJC,iBAPI;IAQJC;
|
|
1
|
+
{"version":3,"file":"index.js","names":["SearchPage","props","context","title","searchFilters","cards","noresultsfound","clearFilters","recommendations","moreSortAriaLabel","moreFilterAriaLabel","filterGroupAriaLabel","skin","defaultColor","recommendationsView","cardsView","list","style","noresults","noresultstxt","clear","background","cardsWrapper","contextTypes","Provider","childContextTypes","propTypes","PropTypes","string","shape","Filters","CardsGrid","Button","CardsList"],"sources":["../../../../src/template/common/search-page/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {getOr, isEmpty} from 'lodash/fp';\nimport Provider from '../../../atom/provider';\nimport Button from '../../../atom/button';\nimport Filters from '../../../molecule/filters';\nimport CardsGrid from '../../../organism/cards-grid';\nimport CardsList from '../../../molecule/dashboard/cards-list';\nimport style from './style.css';\n\nconst SearchPage = (props, context) => {\n const {\n title,\n searchFilters,\n cards,\n noresultsfound,\n clearFilters,\n recommendations,\n moreSortAriaLabel,\n moreFilterAriaLabel,\n filterGroupAriaLabel\n } = props;\n\n const {skin} = context;\n const defaultColor = getOr('#00B0FF', 'common.primary', skin);\n\n const recommendationsView = isEmpty(recommendations) ? null : <CardsList {...recommendations} />;\n\n const cardsView = isEmpty(cards.list) ? (\n <div>\n <div className={style.noresults}>\n <div className={style.noresultstxt}>{noresultsfound}</div>\n <Button\n {...clearFilters}\n data-name=\"searchPageClear\"\n className={style.clear}\n style={{background: defaultColor}}\n type=\"link\"\n />\n </div>\n {recommendationsView}\n </div>\n ) : (\n <CardsGrid {...cards} />\n );\n\n return (\n <div>\n <Filters\n {...searchFilters}\n moreSortAriaLabel={moreSortAriaLabel}\n moreFilterAriaLabel={moreFilterAriaLabel}\n filterGroupAriaLabel={filterGroupAriaLabel}\n />\n <div data-name=\"searchResult\" className={style.cardsWrapper}>\n <div className={style.title} role=\"status\">\n {title}\n </div>\n {cardsView}\n </div>\n </div>\n );\n};\n\nSearchPage.contextTypes = {\n skin: Provider.childContextTypes.skin\n};\n\nSearchPage.propTypes = {\n noresultsfound: PropTypes.string,\n title: PropTypes.string,\n searchFilters: PropTypes.shape(Filters.propTypes),\n cards: PropTypes.shape(CardsGrid.propTypes),\n clearFilters: PropTypes.shape(Button.propTypes),\n recommendations: PropTypes.shape(CardsList.propTypes),\n moreSortAriaLabel: PropTypes.string,\n moreFilterAriaLabel: PropTypes.string,\n filterGroupAriaLabel: PropTypes.string\n};\n\nexport default SearchPage;\n"],"mappings":";;;;;;;;;AAAA;;AACA;;AAEA;;AACA;;AACA;;AACA;;AACA;;AACA;;;;;;AAEA,MAAMA,UAAU,GAAG,CAACC,KAAD,EAAQC,OAAR,KAAoB;EACrC,MAAM;IACJC,KADI;IAEJC,aAFI;IAGJC,KAHI;IAIJC,cAJI;IAKJC,YALI;IAMJC,eANI;IAOJC,iBAPI;IAQJC,mBARI;IASJC;EATI,IAUFV,KAVJ;EAYA,MAAM;IAACW;EAAD,IAASV,OAAf;EACA,MAAMW,YAAY,GAAG,qBAAM,SAAN,EAAiB,gBAAjB,EAAmCD,IAAnC,CAArB;EAEA,MAAME,mBAAmB,GAAG,uBAAQN,eAAR,IAA2B,IAA3B,gBAAkC,6BAAC,kBAAD,EAAeA,eAAf,CAA9D;EAEA,MAAMO,SAAS,GAAG,uBAAQV,KAAK,CAACW,IAAd,iBAChB,uDACE;IAAK,SAAS,EAAEC,cAAA,CAAMC;EAAtB,gBACE;IAAK,SAAS,EAAED,cAAA,CAAME;EAAtB,GAAqCb,cAArC,CADF,eAEE,6BAAC,eAAD,eACMC,YADN;IAEE,aAAU,iBAFZ;IAGE,SAAS,EAAEU,cAAA,CAAMG,KAHnB;IAIE,KAAK,EAAE;MAACC,UAAU,EAAER;IAAb,CAJT;IAKE,IAAI,EAAC;EALP,GAFF,CADF,EAWGC,mBAXH,CADgB,gBAehB,6BAAC,kBAAD,EAAeT,KAAf,CAfF;EAkBA,oBACE,uDACE,6BAAC,gBAAD,eACMD,aADN;IAEE,iBAAiB,EAAEK,iBAFrB;IAGE,mBAAmB,EAAEC,mBAHvB;IAIE,oBAAoB,EAAEC;EAJxB,GADF,eAOE;IAAK,aAAU,cAAf;IAA8B,SAAS,EAAEM,cAAA,CAAMK;EAA/C,gBACE;IAAK,SAAS,EAAEL,cAAA,CAAMd,KAAtB;IAA6B,IAAI,EAAC;EAAlC,GACGA,KADH,CADF,EAIGY,SAJH,CAPF,CADF;AAgBD,CApDD;;AAsDAf,UAAU,CAACuB,YAAX,GAA0B;EACxBX,IAAI,EAAEY,iBAAA,CAASC,iBAAT,CAA2Bb;AADT,CAA1B;AAIAZ,UAAU,CAAC0B,SAAX,2CAAuB;EACrBpB,cAAc,EAAEqB,kBAAA,CAAUC,MADL;EAErBzB,KAAK,EAAEwB,kBAAA,CAAUC,MAFI;EAGrBxB,aAAa,EAAEuB,kBAAA,CAAUE,KAAV,CAAgBC,gBAAA,CAAQJ,SAAxB,CAHM;EAIrBrB,KAAK,EAAEsB,kBAAA,CAAUE,KAAV,CAAgBE,kBAAA,CAAUL,SAA1B,CAJc;EAKrBnB,YAAY,EAAEoB,kBAAA,CAAUE,KAAV,CAAgBG,eAAA,CAAON,SAAvB,CALO;EAMrBlB,eAAe,EAAEmB,kBAAA,CAAUE,KAAV,CAAgBI,kBAAA,CAAUP,SAA1B,CANI;EAOrBjB,iBAAiB,EAAEkB,kBAAA,CAAUC,MAPR;EAQrBlB,mBAAmB,EAAEiB,kBAAA,CAAUC,MARV;EASrBjB,oBAAoB,EAAEgB,kBAAA,CAAUC;AATX,CAAvB;eAYe5B,U"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"ignore_dirs":[]}
|
package/locales/cs/global.json
CHANGED
package/locales/de/global.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"Create a new cohort": "Create a new cohort",
|
|
21
21
|
"Delete": "Löschen",
|
|
22
22
|
"Draft": "Entwurf",
|
|
23
|
+
"answer_the_question": "Beantworten Sie die Frage",
|
|
23
24
|
"Edit": "Bearbeiten",
|
|
24
25
|
"external_content_article": "DOKUMENTE",
|
|
25
26
|
"external_content_scorm": "ANIMIERTE RESSOURCEN",
|
package/locales/en/global.json
CHANGED
package/locales/es/global.json
CHANGED
package/locales/et/global.json
CHANGED
package/locales/fr/global.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"Create a new cohort": "Créer une nouvelle cohorte",
|
|
21
21
|
"Delete": "Supprimer",
|
|
22
22
|
"Draft": "Brouillon",
|
|
23
|
+
"answer_the_question": "Répondez à la question",
|
|
23
24
|
"Edit": "Modifier",
|
|
24
25
|
"external_content_article": "DOCUMENTS",
|
|
25
26
|
"external_content_scorm": "RESSOURCES ANIMÉES",
|
package/locales/hr/global.json
CHANGED
package/locales/hu/global.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"Create a new cohort": "Create a new cohort",
|
|
21
21
|
"Delete": "Törlés",
|
|
22
22
|
"Draft": "vázlat",
|
|
23
|
+
"answer_the_question": "Kérdés megválaszolása",
|
|
23
24
|
"Edit": "Szerkesztés",
|
|
24
25
|
"external_content_article": "DOKUMENTUMOK",
|
|
25
26
|
"external_content_scorm": "ANIMÁLT FORRÁSOK",
|
package/locales/it/global.json
CHANGED
package/locales/ja/global.json
CHANGED
package/locales/ko/global.json
CHANGED
package/locales/nl/global.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"Create a new cohort": "Create a new cohort",
|
|
21
21
|
"Delete": "Verwijderen",
|
|
22
22
|
"Draft": "Droogte",
|
|
23
|
+
"answer_the_question": "Beantwoord de vraag",
|
|
23
24
|
"Edit": "Bewerken",
|
|
24
25
|
"external_content_article": "DOCUMENTEN",
|
|
25
26
|
"external_content_scorm": "GEANIMEERDE BRONNEN",
|
package/locales/pl/global.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"Create a new cohort": "Create a new cohort",
|
|
21
21
|
"Delete": "Usuń",
|
|
22
22
|
"Draft": "Wersja robocza",
|
|
23
|
+
"answer_the_question": "Odpowiedz na pytanie",
|
|
23
24
|
"Edit": "Edycja",
|
|
24
25
|
"external_content_article": "DOKUMENTY",
|
|
25
26
|
"external_content_scorm": "ANIMOWANE źRÓDŁA",
|
package/locales/pt/global.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"Create a new cohort": "Create a new cohort",
|
|
21
21
|
"Delete": "Apagar",
|
|
22
22
|
"Draft": "Esboço, projeto",
|
|
23
|
+
"answer_the_question": "Responda à pergunta",
|
|
23
24
|
"Edit": "Editar",
|
|
24
25
|
"external_content_article": "DOCUMENTOS",
|
|
25
26
|
"external_content_scorm": "RECURSOS ANIMADOS",
|
package/locales/ro/global.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"Create a new cohort": "Create a new cohort",
|
|
21
21
|
"Delete": "Ștergere",
|
|
22
22
|
"Draft": "Proiect",
|
|
23
|
+
"answer_the_question": "Răspundeţi la întrebare",
|
|
23
24
|
"Edit": "Editare",
|
|
24
25
|
"external_content_article": "DOCUMENTE",
|
|
25
26
|
"external_content_scorm": "RESURSE ANIMATE",
|
package/locales/ru/global.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"Create a new cohort": "Создать новый сегмент",
|
|
21
21
|
"Delete": "Удалить",
|
|
22
22
|
"Draft": "Черновой вариант",
|
|
23
|
+
"answer_the_question": "Ответить на вопрос",
|
|
23
24
|
"Edit": "Редактировать",
|
|
24
25
|
"external_content_article": "ДОКУМЕНТЫ",
|
|
25
26
|
"external_content_scorm": "АНИМИРОВАННЫЕ РЕСУРСЫ",
|
package/locales/sk/global.json
CHANGED
package/locales/tl/global.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"Create a new cohort": "Lumikha ng isang bagong cohort",
|
|
21
21
|
"Delete": "Tanggalin",
|
|
22
22
|
"Draft": "Draft",
|
|
23
|
+
"answer_the_question": "Sagutin ang katanungan",
|
|
23
24
|
"Edit": "Edit",
|
|
24
25
|
"external_content_article": "MGA DOKUMENTO",
|
|
25
26
|
"external_content_scorm": "MGA ANIMATED NA MAPAGKUKUNAN",
|
package/locales/tr/global.json
CHANGED
package/locales/uk/global.json
CHANGED
|
@@ -20,6 +20,7 @@
|
|
|
20
20
|
"Create a new cohort": "Create a new cohort",
|
|
21
21
|
"Delete": "Видалити",
|
|
22
22
|
"Draft": "Чернетка",
|
|
23
|
+
"answer_the_question": "Дайте відповідь на питання",
|
|
23
24
|
"Edit": "Редагувати",
|
|
24
25
|
"external_content_article": "ДОКУМЕНТИ",
|
|
25
26
|
"external_content_scorm": "АНІМОВАНІ РЕСУРСИ",
|
package/locales/vi/global.json
CHANGED
package/locales/zh/global.json
CHANGED