@coorpacademy/components 11.34.4-alpha.3 → 11.34.4
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/organism/icon-editor/index.d.ts.map +1 -1
- package/es/organism/icon-editor/index.js +6 -13
- package/es/organism/icon-editor/index.js.map +1 -1
- package/es/organism/skill-edition/index.d.ts +1383 -1065
- package/es/organism/skill-edition/index.d.ts.map +1 -1
- package/es/organism/skill-edition/index.js +5 -115
- package/es/organism/skill-edition/index.js.map +1 -1
- package/es/organism/skill-edition/types.d.ts +371 -87
- package/es/organism/skill-edition/types.d.ts.map +1 -1
- package/es/organism/skill-edition/types.js +4 -39
- package/es/organism/skill-edition/types.js.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +366 -47
- package/lib/organism/icon-editor/index.d.ts.map +1 -1
- package/lib/organism/icon-editor/index.js +6 -13
- package/lib/organism/icon-editor/index.js.map +1 -1
- package/lib/organism/skill-edition/index.d.ts +1383 -1065
- package/lib/organism/skill-edition/index.d.ts.map +1 -1
- package/lib/organism/skill-edition/index.js +5 -115
- package/lib/organism/skill-edition/index.js.map +1 -1
- package/lib/organism/skill-edition/types.d.ts +371 -87
- package/lib/organism/skill-edition/types.d.ts.map +1 -1
- package/lib/organism/skill-edition/types.js +4 -39
- package/lib/organism/skill-edition/types.js.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +366 -47
- package/locales/de/global.json +2 -2
- package/package.json +2 -2
- package/locales/.mtslconfig.json +0 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/skill-edition/index.tsx"],"names":[],"mappings":";
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/skill-edition/index.tsx"],"names":[],"mappings":";AAKA,OAAkB,EAAC,iBAAiB,EAAC,MAAM,SAAS,CAAC;AAGrD,QAAA,MAAM,YAAY;YAAW,iBAAiB;;;;;;;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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkB7C,CAAC;AAIF,eAAe,YAAY,CAAC"}
|
|
@@ -10,120 +10,6 @@ var _titleAndInput = _interopRequireDefault(require("../title-and-input"));
|
|
|
10
10
|
var _types = _interopRequireDefault(require("./types"));
|
|
11
11
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
12
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
13
|
-
const buildFormField = (field, type) => {
|
|
14
|
-
return {
|
|
15
|
-
...field,
|
|
16
|
-
type,
|
|
17
|
-
theme: 'coorpmanager',
|
|
18
|
-
size: 'large'
|
|
19
|
-
};
|
|
20
|
-
};
|
|
21
|
-
const buildTitleAndInputField = ({
|
|
22
|
-
title,
|
|
23
|
-
subtitle,
|
|
24
|
-
required = false,
|
|
25
|
-
dataName,
|
|
26
|
-
childType
|
|
27
|
-
}) => {
|
|
28
|
-
return {
|
|
29
|
-
title: {
|
|
30
|
-
type: 'form-group',
|
|
31
|
-
title,
|
|
32
|
-
subtitle,
|
|
33
|
-
titleSize: 'small-and-light',
|
|
34
|
-
subtitleSize: subtitle ? 'standard-without-margin' : undefined,
|
|
35
|
-
required,
|
|
36
|
-
'data-name': dataName
|
|
37
|
-
},
|
|
38
|
-
childType,
|
|
39
|
-
type: 'titleAndInput'
|
|
40
|
-
};
|
|
41
|
-
};
|
|
42
|
-
const SkillInformations = skillInformations => {
|
|
43
|
-
const {
|
|
44
|
-
form,
|
|
45
|
-
iconEditor
|
|
46
|
-
} = skillInformations;
|
|
47
|
-
const {
|
|
48
|
-
select,
|
|
49
|
-
inputTextArea,
|
|
50
|
-
inputText
|
|
51
|
-
} = form;
|
|
52
|
-
const iconEditorProps = {
|
|
53
|
-
title: {
|
|
54
|
-
type: 'form-group',
|
|
55
|
-
title: iconEditor.title,
|
|
56
|
-
titleSize: 'small-and-light',
|
|
57
|
-
required: true
|
|
58
|
-
},
|
|
59
|
-
field: {
|
|
60
|
-
iconPreview: iconEditor.iconPreview,
|
|
61
|
-
inputText: iconEditor.inputText,
|
|
62
|
-
buttonLink: {
|
|
63
|
-
type: 'secondary',
|
|
64
|
-
label: iconEditor.buttonLink.label,
|
|
65
|
-
ariaLabel: iconEditor.buttonLink.ariaLabel,
|
|
66
|
-
dataName: 'open-icon-modal-button',
|
|
67
|
-
icon: {
|
|
68
|
-
position: 'left',
|
|
69
|
-
faIcon: {
|
|
70
|
-
name: 'arrows-rotate',
|
|
71
|
-
size: 16
|
|
72
|
-
}
|
|
73
|
-
},
|
|
74
|
-
onClick: iconEditor.buttonLink.onClick,
|
|
75
|
-
customStyle: {
|
|
76
|
-
borderRadius: '12px',
|
|
77
|
-
padding: '0 8px 0 16px',
|
|
78
|
-
fontWeight: '500'
|
|
79
|
-
}
|
|
80
|
-
},
|
|
81
|
-
size: 'large'
|
|
82
|
-
},
|
|
83
|
-
childType: 'iconEditor'
|
|
84
|
-
};
|
|
85
|
-
const fields = [{
|
|
86
|
-
...buildTitleAndInputField({
|
|
87
|
-
title: select.title,
|
|
88
|
-
subtitle: select.subtitle,
|
|
89
|
-
required: true,
|
|
90
|
-
dataName: select['data-name'],
|
|
91
|
-
childType: 'select'
|
|
92
|
-
}),
|
|
93
|
-
field: {
|
|
94
|
-
options: select.field.options,
|
|
95
|
-
'aria-label': select.field['aria-label'],
|
|
96
|
-
onChange: select.field.onChange,
|
|
97
|
-
theme: 'skillDetail',
|
|
98
|
-
size: 'large'
|
|
99
|
-
}
|
|
100
|
-
}, {
|
|
101
|
-
...buildTitleAndInputField({
|
|
102
|
-
title: inputText.title,
|
|
103
|
-
required: true,
|
|
104
|
-
childType: 'inputText'
|
|
105
|
-
}),
|
|
106
|
-
field: buildFormField(inputText.field, 'text')
|
|
107
|
-
}, {
|
|
108
|
-
...buildTitleAndInputField({
|
|
109
|
-
title: inputTextArea.title,
|
|
110
|
-
childType: 'inputTextArea'
|
|
111
|
-
}),
|
|
112
|
-
field: buildFormField(inputTextArea.field, 'textarea')
|
|
113
|
-
}];
|
|
114
|
-
const formProps = {
|
|
115
|
-
title: form.title,
|
|
116
|
-
subtitle: form.subtitle,
|
|
117
|
-
titleSize: 'xl-strong',
|
|
118
|
-
subtitleSize: 'medium',
|
|
119
|
-
fields
|
|
120
|
-
};
|
|
121
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
122
|
-
className: _style.default.skillInformationsContainer
|
|
123
|
-
}, /*#__PURE__*/_react.default.createElement(_brandFormGroup.default, formProps), /*#__PURE__*/_react.default.createElement("div", {
|
|
124
|
-
className: _style.default.iconEditor
|
|
125
|
-
}, /*#__PURE__*/_react.default.createElement(_titleAndInput.default, iconEditorProps)));
|
|
126
|
-
};
|
|
127
13
|
const SkillEdition = props => {
|
|
128
14
|
const {
|
|
129
15
|
skillInformations,
|
|
@@ -132,7 +18,11 @@ const SkillEdition = props => {
|
|
|
132
18
|
} = props;
|
|
133
19
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
134
20
|
className: _style.default.container
|
|
135
|
-
}, /*#__PURE__*/_react.default.createElement(
|
|
21
|
+
}, /*#__PURE__*/_react.default.createElement("div", {
|
|
22
|
+
className: _style.default.skillInformationsContainer
|
|
23
|
+
}, /*#__PURE__*/_react.default.createElement(_brandFormGroup.default, skillInformations.form), /*#__PURE__*/_react.default.createElement("div", {
|
|
24
|
+
className: _style.default.iconEditor
|
|
25
|
+
}, /*#__PURE__*/_react.default.createElement(_titleAndInput.default, skillInformations.iconEditor))), /*#__PURE__*/_react.default.createElement(_listItems.default, translations), /*#__PURE__*/_react.default.createElement("div", {
|
|
136
26
|
className: _style.default.contentContainer
|
|
137
27
|
}, /*#__PURE__*/_react.default.createElement(_title.default, content.title), /*#__PURE__*/_react.default.createElement(_listItems.default, content.listContent)));
|
|
138
28
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_brandFormGroup","_listItems","_title","_titleAndInput","_types","_style","e","__esModule","default","
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_brandFormGroup","_listItems","_title","_titleAndInput","_types","_style","e","__esModule","default","SkillEdition","props","skillInformations","translations","content","createElement","className","style","container","skillInformationsContainer","form","iconEditor","contentContainer","title","listContent","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/organism/skill-edition/index.tsx"],"sourcesContent":["import React from 'react';\nimport BrandFormGroup from '../../molecule/brand-form-group';\nimport ListItems from '../list-items';\nimport Title from '../../atom/title';\nimport TitleAndInput from '../title-and-input';\nimport propTypes, {SkillEditionProps} from './types';\nimport style from './style.css';\n\nconst SkillEdition = (props: SkillEditionProps) => {\n const {skillInformations, translations, content} = props;\n\n return (\n <div className={style.container}>\n <div className={style.skillInformationsContainer}>\n <BrandFormGroup {...skillInformations.form} />\n <div className={style.iconEditor}>\n <TitleAndInput {...skillInformations.iconEditor} />\n </div>\n </div>\n <ListItems {...translations} />\n <div className={style.contentContainer}>\n <Title {...content.title} />\n <ListItems {...content.listContent} />\n </div>\n </div>\n );\n};\n\nSkillEdition.propTypes = propTypes;\n\nexport default SkillEdition;\n"],"mappings":";;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AACA,IAAAC,eAAA,GAAAF,sBAAA,CAAAC,OAAA;AACA,IAAAE,UAAA,GAAAH,sBAAA,CAAAC,OAAA;AACA,IAAAG,MAAA,GAAAJ,sBAAA,CAAAC,OAAA;AACA,IAAAI,cAAA,GAAAL,sBAAA,CAAAC,OAAA;AACA,IAAAK,MAAA,GAAAN,sBAAA,CAAAC,OAAA;AACA,IAAAM,MAAA,GAAAP,sBAAA,CAAAC,OAAA;AAAgC,SAAAD,uBAAAQ,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEhC,MAAMG,YAAY,GAAIC,KAAwB,IAAK;EACjD,MAAM;IAACC,iBAAiB;IAAEC,YAAY;IAAEC;EAAO,CAAC,GAAGH,KAAK;EAExD,oBACEb,MAAA,CAAAW,OAAA,CAAAM,aAAA;IAAKC,SAAS,EAAEC,cAAK,CAACC;EAAU,gBAC9BpB,MAAA,CAAAW,OAAA,CAAAM,aAAA;IAAKC,SAAS,EAAEC,cAAK,CAACE;EAA2B,gBAC/CrB,MAAA,CAAAW,OAAA,CAAAM,aAAA,CAACd,eAAA,CAAAQ,OAAc,EAAKG,iBAAiB,CAACQ,IAAO,CAAC,eAC9CtB,MAAA,CAAAW,OAAA,CAAAM,aAAA;IAAKC,SAAS,EAAEC,cAAK,CAACI;EAAW,gBAC/BvB,MAAA,CAAAW,OAAA,CAAAM,aAAA,CAACX,cAAA,CAAAK,OAAa,EAAKG,iBAAiB,CAACS,UAAa,CAC/C,CACF,CAAC,eACNvB,MAAA,CAAAW,OAAA,CAAAM,aA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