@coorpacademy/components 11.38.8-alpha.7 → 11.39.1-alpha.0
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/chip/index.d.ts.map +1 -1
- package/es/atom/chip/index.js +0 -3
- package/es/atom/chip/index.js.map +1 -1
- package/es/atom/input-text/index.d.ts +0 -1
- package/es/atom/input-text/index.d.ts.map +1 -1
- package/es/atom/input-text/index.js +1 -4
- package/es/atom/input-text/index.js.map +1 -1
- package/es/atom/input-text/style.css +1 -13
- package/es/atom/input-text-with-title/index.d.ts +0 -1
- package/es/atom/input-textarea/index.d.ts +0 -1
- package/es/atom/input-textarea/index.d.ts.map +1 -1
- package/es/atom/input-textarea/index.js +1 -4
- package/es/atom/input-textarea/index.js.map +1 -1
- package/es/atom/input-textarea/style.css +0 -22
- package/es/atom/select/index.d.ts +0 -1
- package/es/atom/select/index.d.ts.map +1 -1
- package/es/atom/select/index.js +11 -26
- package/es/atom/select/index.js.map +1 -1
- package/es/atom/select/style.css +0 -61
- package/es/atom/status-item/index.d.ts.map +1 -1
- package/es/atom/status-item/index.js +15 -15
- package/es/atom/status-item/index.js.map +1 -1
- package/es/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
- package/es/molecule/bullet-point-menu-button/index.js +2 -42
- package/es/molecule/bullet-point-menu-button/index.js.map +1 -1
- package/es/molecule/card/favorite.d.ts.map +1 -1
- package/es/molecule/card/favorite.js +0 -13
- package/es/molecule/card/favorite.js.map +1 -1
- package/es/molecule/course-sections/index.d.ts +0 -1
- package/es/molecule/drag-and-drop/index.d.ts +0 -1
- package/es/molecule/drag-and-drop/upload-report.d.ts +0 -1
- package/es/molecule/filters/index.d.ts +0 -1
- package/es/molecule/filters/index.d.ts.map +1 -1
- package/es/molecule/skill-picker-modal/index.js +1 -1
- package/es/molecule/skill-picker-modal/index.js.map +1 -1
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +0 -1
- package/es/molecule/translation-modal/index.d.ts +0 -4
- package/es/molecule/translation-modal/index.js +6 -6
- package/es/molecule/translation-modal/index.js.map +1 -1
- package/es/organism/content-translation/index.d.ts +0 -2
- package/es/organism/header-with-actions/index.d.ts +2 -1
- package/es/organism/header-with-actions/index.d.ts.map +1 -1
- package/es/organism/header-with-actions/index.js +4 -3
- package/es/organism/header-with-actions/index.js.map +1 -1
- package/es/organism/header-with-actions/types.d.ts +2 -0
- package/es/organism/header-with-actions/types.d.ts.map +1 -1
- package/es/organism/header-with-actions/types.js +2 -1
- package/es/organism/header-with-actions/types.js.map +1 -1
- package/es/organism/icon-editor/index.d.ts +0 -1
- package/es/organism/icon-editor/index.d.ts.map +1 -1
- package/es/organism/icon-editor/types.d.ts +0 -1
- package/es/organism/icon-editor/types.d.ts.map +1 -1
- package/es/organism/rewards-form/index.d.ts +0 -1
- package/es/organism/select-opponents/index.d.ts +0 -1
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +0 -1
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/skill-edition/index.d.ts +2 -22
- package/es/organism/skill-edition/index.d.ts.map +1 -1
- package/es/organism/skill-edition/index.js +47 -63
- package/es/organism/skill-edition/index.js.map +1 -1
- package/es/organism/skill-edition/style.css +13 -0
- package/es/organism/skill-edition/types.d.ts +5 -27
- package/es/organism/skill-edition/types.d.ts.map +1 -1
- package/es/organism/skill-edition/types.js +5 -22
- package/es/organism/skill-edition/types.js.map +1 -1
- package/es/organism/title-and-input/index.d.ts +0 -5
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +0 -5
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +0 -4
- package/es/template/back-office/brand-update/index.d.ts +3 -22
- package/es/template/back-office/brand-update/index.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.js +3 -6
- package/es/template/back-office/brand-update/index.js.map +1 -1
- package/es/template/certifications/index.d.ts +0 -1
- package/es/template/common/search-page/index.d.ts +0 -1
- package/es/template/playlist-detail/index.d.ts +0 -1
- package/es/util/render-with-context.d.ts.map +1 -1
- package/es/util/render-with-context.js +2 -3
- package/es/util/render-with-context.js.map +1 -1
- package/lib/atom/chip/index.d.ts.map +1 -1
- package/lib/atom/chip/index.js +0 -3
- package/lib/atom/chip/index.js.map +1 -1
- package/lib/atom/input-text/index.d.ts +0 -1
- package/lib/atom/input-text/index.d.ts.map +1 -1
- package/lib/atom/input-text/index.js +1 -4
- package/lib/atom/input-text/index.js.map +1 -1
- package/lib/atom/input-text/style.css +1 -13
- package/lib/atom/input-text-with-title/index.d.ts +0 -1
- package/lib/atom/input-textarea/index.d.ts +0 -1
- package/lib/atom/input-textarea/index.d.ts.map +1 -1
- package/lib/atom/input-textarea/index.js +1 -4
- package/lib/atom/input-textarea/index.js.map +1 -1
- package/lib/atom/input-textarea/style.css +0 -22
- package/lib/atom/select/index.d.ts +0 -1
- package/lib/atom/select/index.d.ts.map +1 -1
- package/lib/atom/select/index.js +11 -26
- package/lib/atom/select/index.js.map +1 -1
- package/lib/atom/select/style.css +0 -61
- package/lib/atom/status-item/index.d.ts.map +1 -1
- package/lib/atom/status-item/index.js +17 -15
- package/lib/atom/status-item/index.js.map +1 -1
- package/lib/molecule/bullet-point-menu-button/index.d.ts.map +1 -1
- package/lib/molecule/bullet-point-menu-button/index.js +2 -41
- package/lib/molecule/bullet-point-menu-button/index.js.map +1 -1
- package/lib/molecule/card/favorite.d.ts.map +1 -1
- package/lib/molecule/card/favorite.js +0 -13
- package/lib/molecule/card/favorite.js.map +1 -1
- package/lib/molecule/course-sections/index.d.ts +0 -1
- package/lib/molecule/drag-and-drop/index.d.ts +0 -1
- package/lib/molecule/drag-and-drop/upload-report.d.ts +0 -1
- package/lib/molecule/filters/index.d.ts +0 -1
- package/lib/molecule/filters/index.d.ts.map +1 -1
- package/lib/molecule/skill-picker-modal/index.js +1 -1
- package/lib/molecule/skill-picker-modal/index.js.map +1 -1
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +0 -1
- package/lib/molecule/translation-modal/index.d.ts +0 -4
- package/lib/molecule/translation-modal/index.js +6 -6
- package/lib/molecule/translation-modal/index.js.map +1 -1
- package/lib/organism/content-translation/index.d.ts +0 -2
- package/lib/organism/header-with-actions/index.d.ts +2 -1
- package/lib/organism/header-with-actions/index.d.ts.map +1 -1
- package/lib/organism/header-with-actions/index.js +4 -3
- package/lib/organism/header-with-actions/index.js.map +1 -1
- package/lib/organism/header-with-actions/types.d.ts +2 -0
- package/lib/organism/header-with-actions/types.d.ts.map +1 -1
- package/lib/organism/header-with-actions/types.js +2 -1
- package/lib/organism/header-with-actions/types.js.map +1 -1
- package/lib/organism/icon-editor/index.d.ts +0 -1
- package/lib/organism/icon-editor/index.d.ts.map +1 -1
- package/lib/organism/icon-editor/types.d.ts +0 -1
- package/lib/organism/icon-editor/types.d.ts.map +1 -1
- package/lib/organism/rewards-form/index.d.ts +0 -1
- package/lib/organism/select-opponents/index.d.ts +0 -1
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +0 -1
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/skill-edition/index.d.ts +2 -22
- package/lib/organism/skill-edition/index.d.ts.map +1 -1
- package/lib/organism/skill-edition/index.js +47 -63
- package/lib/organism/skill-edition/index.js.map +1 -1
- package/lib/organism/skill-edition/style.css +13 -0
- package/lib/organism/skill-edition/types.d.ts +5 -27
- package/lib/organism/skill-edition/types.d.ts.map +1 -1
- package/lib/organism/skill-edition/types.js +5 -22
- package/lib/organism/skill-edition/types.js.map +1 -1
- package/lib/organism/title-and-input/index.d.ts +0 -5
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +0 -5
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +0 -4
- package/lib/template/back-office/brand-update/index.d.ts +3 -22
- package/lib/template/back-office/brand-update/index.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.js +3 -6
- package/lib/template/back-office/brand-update/index.js.map +1 -1
- package/lib/template/certifications/index.d.ts +0 -1
- package/lib/template/common/search-page/index.d.ts +0 -1
- package/lib/template/playlist-detail/index.d.ts +0 -1
- package/lib/util/render-with-context.d.ts.map +1 -1
- package/lib/util/render-with-context.js +2 -3
- package/lib/util/render-with-context.js.map +1 -1
- package/locales/.mtslconfig.json +1 -0
- package/package.json +2 -2
|
@@ -97,7 +97,6 @@ export declare const propTypes: {
|
|
|
97
97
|
placeholder: PropTypes.Requireable<string>;
|
|
98
98
|
defaultValue: PropTypes.Requireable<string>;
|
|
99
99
|
disabled: PropTypes.Requireable<boolean>;
|
|
100
|
-
readOnly: PropTypes.Requireable<boolean>;
|
|
101
100
|
value: PropTypes.Requireable<string>;
|
|
102
101
|
hint: PropTypes.Requireable<string>;
|
|
103
102
|
error: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/select-opponents/types.ts"],"names":[],"mappings":";AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAGnC,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAErB,CAAC;AAEF,oBAAY,4BAA4B,GAAG;IACzC,KAAK,EAAE;QACL,SAAS,EAAE,iBAAiB,GAAG,cAAc,CAAC;QAC9C,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;KACtB,CAAC;IACF,CAAC,CAAC,EAAE,MAAM,GAAG,OAAO,CAAC;CACtB,CAAC;AAEF,oBAAY,oBAAoB,GAAG;IACjC,KAAK,EAAE,4BAA4B,EAAE,CAAC;CACvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
|
|
@@ -31,7 +31,6 @@ declare const SkillEdition: {
|
|
|
31
31
|
defaultValue: import("prop-types").Requireable<string>;
|
|
32
32
|
theme: import("prop-types").Requireable<string>;
|
|
33
33
|
disabled: import("prop-types").Requireable<boolean>;
|
|
34
|
-
readOnly: import("prop-types").Requireable<boolean>;
|
|
35
34
|
value: import("prop-types").Requireable<string>;
|
|
36
35
|
hint: import("prop-types").Requireable<string>;
|
|
37
36
|
error: import("prop-types").Requireable<string>;
|
|
@@ -53,7 +52,6 @@ declare const SkillEdition: {
|
|
|
53
52
|
name: import("prop-types").Requireable<string>;
|
|
54
53
|
theme: import("prop-types").Requireable<string>;
|
|
55
54
|
disabled: import("prop-types").Requireable<boolean>;
|
|
56
|
-
readOnly: import("prop-types").Requireable<boolean>;
|
|
57
55
|
value: import("prop-types").Requireable<string>;
|
|
58
56
|
hint: import("prop-types").Requireable<string>;
|
|
59
57
|
error: import("prop-types").Requireable<string>;
|
|
@@ -80,7 +78,6 @@ declare const SkillEdition: {
|
|
|
80
78
|
defaultValue: import("prop-types").Requireable<string>;
|
|
81
79
|
theme: import("prop-types").Requireable<string>;
|
|
82
80
|
disabled: import("prop-types").Requireable<boolean>;
|
|
83
|
-
readOnly: import("prop-types").Requireable<boolean>;
|
|
84
81
|
value: import("prop-types").Requireable<string>;
|
|
85
82
|
hint: import("prop-types").Requireable<string>;
|
|
86
83
|
error: import("prop-types").Requireable<string>;
|
|
@@ -114,7 +111,6 @@ declare const SkillEdition: {
|
|
|
114
111
|
title: import("prop-types").Validator<string>;
|
|
115
112
|
onEditClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
116
113
|
onDeleteClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
117
|
-
readonly: import("prop-types").Requireable<boolean>;
|
|
118
114
|
}>>;
|
|
119
115
|
}>;
|
|
120
116
|
button: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
@@ -122,11 +118,6 @@ declare const SkillEdition: {
|
|
|
122
118
|
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
123
119
|
disabled: import("prop-types").Requireable<boolean>;
|
|
124
120
|
}>>>;
|
|
125
|
-
emptyResult: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
126
|
-
title: import("prop-types").Requireable<string>;
|
|
127
|
-
description: import("prop-types").Requireable<string>;
|
|
128
|
-
}>>;
|
|
129
|
-
readonly: import("prop-types").Requireable<boolean>;
|
|
130
121
|
}>>>;
|
|
131
122
|
content: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
132
123
|
title: import("prop-types").Validator<string>;
|
|
@@ -136,7 +127,6 @@ declare const SkillEdition: {
|
|
|
136
127
|
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
137
128
|
}>>>;
|
|
138
129
|
list: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
139
|
-
title: import("prop-types").Requireable<string>;
|
|
140
130
|
items: import("prop-types").Requireable<NonNullable<import("prop-types").InferProps<{
|
|
141
131
|
ref: import("prop-types").Validator<string>;
|
|
142
132
|
title: import("prop-types").Validator<string>;
|
|
@@ -150,10 +140,6 @@ declare const SkillEdition: {
|
|
|
150
140
|
checked: import("prop-types").Validator<boolean>;
|
|
151
141
|
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
152
142
|
}>>>;
|
|
153
|
-
deleteButton: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
154
|
-
label: import("prop-types").Requireable<string>;
|
|
155
|
-
onClick: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
156
|
-
}>>;
|
|
157
143
|
}>>[]>;
|
|
158
144
|
search: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
159
145
|
value: import("prop-types").Validator<string>;
|
|
@@ -170,15 +156,9 @@ declare const SkillEdition: {
|
|
|
170
156
|
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
171
157
|
}>>;
|
|
172
158
|
}>>>;
|
|
173
|
-
|
|
174
|
-
checkboxWithTitle: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
175
|
-
title: import("prop-types").Requireable<string>;
|
|
176
|
-
checked: import("prop-types").Requireable<boolean>;
|
|
177
|
-
onChange: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
178
|
-
}>>;
|
|
179
|
-
readonly: import("prop-types").Requireable<boolean>;
|
|
159
|
+
isFetching: import("prop-types").Requireable<boolean>;
|
|
180
160
|
}>>>;
|
|
181
|
-
|
|
161
|
+
isFetching: import("prop-types").Requireable<boolean>;
|
|
182
162
|
};
|
|
183
163
|
};
|
|
184
164
|
export default SkillEdition;
|
|
@@ -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":";AAQA,OAAkB,EAEhB,qBAAqB,EAMtB,MAAM,SAAS,CAAC;AA2YjB,QAAA,MAAM,YAAY;YAAW,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAcjD,CAAC;AAIF,eAAe,YAAY,CAAC"}
|
|
@@ -2,7 +2,6 @@
|
|
|
2
2
|
|
|
3
3
|
exports.__esModule = true;
|
|
4
4
|
exports.default = void 0;
|
|
5
|
-
var _omit2 = _interopRequireDefault(require("lodash/fp/omit"));
|
|
6
5
|
var _map2 = _interopRequireDefault(require("lodash/fp/map"));
|
|
7
6
|
var _keys2 = _interopRequireDefault(require("lodash/fp/keys"));
|
|
8
7
|
var _isEmpty2 = _interopRequireDefault(require("lodash/fp/isEmpty"));
|
|
@@ -13,15 +12,13 @@ var _listItems = _interopRequireDefault(require("../list-items"));
|
|
|
13
12
|
var _title = _interopRequireDefault(require("../../atom/title"));
|
|
14
13
|
var _titleAndInput = _interopRequireDefault(require("../title-and-input"));
|
|
15
14
|
var _colors = require("../../variables/colors");
|
|
15
|
+
var _loader = _interopRequireDefault(require("../../atom/loader"));
|
|
16
16
|
var _types = _interopRequireDefault(require("./types"));
|
|
17
17
|
var _style = _interopRequireDefault(require("./style.css"));
|
|
18
18
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { default: e }; }
|
|
19
|
-
|
|
20
|
-
const buildFormField = (field, type, readonly) => {
|
|
21
|
-
const fieldWithoutOverrides = (0, _omit2.default)(['type', 'theme', 'size', 'readOnly'], field);
|
|
19
|
+
const buildFormField = (field, type) => {
|
|
22
20
|
return {
|
|
23
|
-
...
|
|
24
|
-
readOnly: readonly,
|
|
21
|
+
...field,
|
|
25
22
|
type,
|
|
26
23
|
theme: 'coorpmanager',
|
|
27
24
|
size: 'large'
|
|
@@ -51,8 +48,7 @@ const buildTitleAndInputField = ({
|
|
|
51
48
|
const SkillInformations = skillInformations => {
|
|
52
49
|
const {
|
|
53
50
|
form,
|
|
54
|
-
iconEditor
|
|
55
|
-
readonly
|
|
51
|
+
iconEditor
|
|
56
52
|
} = skillInformations;
|
|
57
53
|
const {
|
|
58
54
|
select,
|
|
@@ -68,11 +64,8 @@ const SkillInformations = skillInformations => {
|
|
|
68
64
|
},
|
|
69
65
|
field: {
|
|
70
66
|
iconPreview: iconEditor.iconPreview,
|
|
71
|
-
inputText:
|
|
72
|
-
|
|
73
|
-
readOnly: readonly
|
|
74
|
-
},
|
|
75
|
-
buttonLink: iconEditor.buttonLink && !readonly ? {
|
|
67
|
+
inputText: iconEditor.inputText,
|
|
68
|
+
buttonLink: iconEditor.buttonLink ? {
|
|
76
69
|
type: 'secondary',
|
|
77
70
|
label: iconEditor.buttonLink.label,
|
|
78
71
|
ariaLabel: iconEditor.buttonLink.ariaLabel,
|
|
@@ -107,8 +100,7 @@ const SkillInformations = skillInformations => {
|
|
|
107
100
|
'aria-label': select.field['aria-label'],
|
|
108
101
|
onChange: select.field.onChange,
|
|
109
102
|
theme: 'skillDetail',
|
|
110
|
-
size: 'large'
|
|
111
|
-
readOnly: readonly
|
|
103
|
+
size: 'large'
|
|
112
104
|
}
|
|
113
105
|
}, {
|
|
114
106
|
...buildTitleAndInputField({
|
|
@@ -116,13 +108,13 @@ const SkillInformations = skillInformations => {
|
|
|
116
108
|
required: true,
|
|
117
109
|
childType: 'inputText'
|
|
118
110
|
}),
|
|
119
|
-
field: buildFormField(inputText.field, 'text'
|
|
111
|
+
field: buildFormField(inputText.field, 'text')
|
|
120
112
|
}, {
|
|
121
113
|
...buildTitleAndInputField({
|
|
122
114
|
title: inputTextArea.title,
|
|
123
115
|
childType: 'inputTextArea'
|
|
124
116
|
}),
|
|
125
|
-
field: buildFormField(inputTextArea.field, 'textarea'
|
|
117
|
+
field: buildFormField(inputTextArea.field, 'textarea')
|
|
126
118
|
}];
|
|
127
119
|
const formProps = {
|
|
128
120
|
title: form.title,
|
|
@@ -171,33 +163,12 @@ const buildButtonProps = button => ({
|
|
|
171
163
|
const buildTranslationItems = ({
|
|
172
164
|
title: itemTitle,
|
|
173
165
|
onEditClick,
|
|
174
|
-
onDeleteClick
|
|
175
|
-
readonly = false
|
|
166
|
+
onDeleteClick
|
|
176
167
|
}, index) => ({
|
|
177
|
-
...(readonly ? {} : {
|
|
178
|
-
secondButtonLink: {
|
|
179
|
-
'aria-label': 'Delete',
|
|
180
|
-
type: 'primary',
|
|
181
|
-
customStyle: {
|
|
182
|
-
width: 'fit-content',
|
|
183
|
-
backgroundColor: 'transparent'
|
|
184
|
-
},
|
|
185
|
-
hoverBackgroundColor: _colors.COLORS.cm_grey_100,
|
|
186
|
-
icon: {
|
|
187
|
-
position: 'left',
|
|
188
|
-
faIcon: {
|
|
189
|
-
name: 'trash',
|
|
190
|
-
color: _colors.COLORS.neutral_500,
|
|
191
|
-
size: 16
|
|
192
|
-
}
|
|
193
|
-
},
|
|
194
|
-
onClick: onDeleteClick
|
|
195
|
-
}
|
|
196
|
-
}),
|
|
197
168
|
id: index,
|
|
198
169
|
title: itemTitle,
|
|
199
170
|
buttonLink: {
|
|
200
|
-
'aria-label':
|
|
171
|
+
'aria-label': 'Edit',
|
|
201
172
|
type: 'primary',
|
|
202
173
|
customStyle: {
|
|
203
174
|
width: 'fit-content',
|
|
@@ -207,12 +178,30 @@ const buildTranslationItems = ({
|
|
|
207
178
|
icon: {
|
|
208
179
|
position: 'left',
|
|
209
180
|
faIcon: {
|
|
210
|
-
name:
|
|
211
|
-
color: _colors.COLORS.
|
|
181
|
+
name: 'edit',
|
|
182
|
+
color: _colors.COLORS.cm_grey_500,
|
|
212
183
|
size: 16
|
|
213
184
|
}
|
|
214
185
|
},
|
|
215
186
|
onClick: onEditClick
|
|
187
|
+
},
|
|
188
|
+
secondButtonLink: {
|
|
189
|
+
'aria-label': 'Delete',
|
|
190
|
+
type: 'primary',
|
|
191
|
+
customStyle: {
|
|
192
|
+
width: 'fit-content',
|
|
193
|
+
backgroundColor: 'transparent'
|
|
194
|
+
},
|
|
195
|
+
hoverBackgroundColor: _colors.COLORS.cm_grey_100,
|
|
196
|
+
icon: {
|
|
197
|
+
position: 'left',
|
|
198
|
+
faIcon: {
|
|
199
|
+
name: 'trash',
|
|
200
|
+
color: _colors.COLORS.cm_grey_500,
|
|
201
|
+
size: 16
|
|
202
|
+
}
|
|
203
|
+
},
|
|
204
|
+
onClick: onDeleteClick
|
|
216
205
|
}
|
|
217
206
|
});
|
|
218
207
|
const Translations = ({
|
|
@@ -221,8 +210,7 @@ const Translations = ({
|
|
|
221
210
|
items,
|
|
222
211
|
button,
|
|
223
212
|
localesOptions,
|
|
224
|
-
emptyResult
|
|
225
|
-
readonly = false
|
|
213
|
+
emptyResult
|
|
226
214
|
}) => {
|
|
227
215
|
const buttonProps = buildButtonProps(button);
|
|
228
216
|
const translationMenuAction = {
|
|
@@ -266,13 +254,10 @@ const Translations = ({
|
|
|
266
254
|
button: translationMenuAction
|
|
267
255
|
}
|
|
268
256
|
}),
|
|
269
|
-
items: uncappedMap(
|
|
270
|
-
...item,
|
|
271
|
-
readonly
|
|
272
|
-
}, index), items),
|
|
257
|
+
items: uncappedMap(buildTranslationItems, items),
|
|
273
258
|
type: 'list'
|
|
274
259
|
},
|
|
275
|
-
buttonMenuAction:
|
|
260
|
+
buttonMenuAction: translationMenuAction
|
|
276
261
|
};
|
|
277
262
|
return /*#__PURE__*/_react.default.createElement(_listItems.default, translationProps);
|
|
278
263
|
};
|
|
@@ -342,7 +327,8 @@ const Content = ({
|
|
|
342
327
|
},
|
|
343
328
|
actionButtons,
|
|
344
329
|
checkboxWithTitle: checkboxWithTitleProps,
|
|
345
|
-
readonly = false
|
|
330
|
+
readonly = false,
|
|
331
|
+
isFetching = false
|
|
346
332
|
}) => {
|
|
347
333
|
const buttonProps = buildButtonProps(button);
|
|
348
334
|
const titleProps = {
|
|
@@ -380,9 +366,7 @@ const Content = ({
|
|
|
380
366
|
},
|
|
381
367
|
search: {
|
|
382
368
|
...search,
|
|
383
|
-
theme: 'coorpmanager'
|
|
384
|
-
// Keep search interactive even in readonly mode
|
|
385
|
-
disabled: false
|
|
369
|
+
theme: 'coorpmanager'
|
|
386
370
|
},
|
|
387
371
|
actionButtons: readonly ? [] : (0, _map2.default)(actionButton => ({
|
|
388
372
|
...actionButton,
|
|
@@ -407,7 +391,8 @@ const Content = ({
|
|
|
407
391
|
iconColor: 'white',
|
|
408
392
|
preset: 's'
|
|
409
393
|
}
|
|
410
|
-
}
|
|
394
|
+
},
|
|
395
|
+
isFetching
|
|
411
396
|
};
|
|
412
397
|
return /*#__PURE__*/_react.default.createElement("div", {
|
|
413
398
|
className: _style.default.contentContainer
|
|
@@ -418,17 +403,16 @@ const SkillEdition = props => {
|
|
|
418
403
|
skillInformations,
|
|
419
404
|
translations,
|
|
420
405
|
content,
|
|
421
|
-
|
|
406
|
+
isFetching
|
|
422
407
|
} = props;
|
|
423
|
-
return /*#__PURE__*/_react.default.createElement("div", {
|
|
408
|
+
return isFetching ? /*#__PURE__*/_react.default.createElement("div", {
|
|
409
|
+
className: _style.default.loaderContainer
|
|
410
|
+
}, /*#__PURE__*/_react.default.createElement(_loader.default, {
|
|
411
|
+
className: _style.default.loader,
|
|
412
|
+
theme: "coorpmanager"
|
|
413
|
+
})) : /*#__PURE__*/_react.default.createElement("div", {
|
|
424
414
|
className: _style.default.container
|
|
425
|
-
}, /*#__PURE__*/_react.default.createElement(SkillInformations,
|
|
426
|
-
readonly: readonly
|
|
427
|
-
})), /*#__PURE__*/_react.default.createElement(Translations, _extends({}, translations, {
|
|
428
|
-
readonly: readonly
|
|
429
|
-
})), /*#__PURE__*/_react.default.createElement(Content, _extends({}, content, {
|
|
430
|
-
readonly: readonly
|
|
431
|
-
})));
|
|
415
|
+
}, /*#__PURE__*/_react.default.createElement(SkillInformations, skillInformations), /*#__PURE__*/_react.default.createElement(Translations, translations), /*#__PURE__*/_react.default.createElement(Content, content));
|
|
432
416
|
};
|
|
433
417
|
SkillEdition.propTypes = process.env.NODE_ENV !== "production" ? _types.default : {};
|
|
434
418
|
var _default = exports.default = SkillEdition;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_brandFormGroup","_listItems","_title","_titleAndInput","_colors","_types","_style","e","__esModule","default","_extends","Object","assign","bind","n","arguments","length","t","r","hasOwnProperty","call","apply","buildFormField","field","type","readonly","fieldWithoutOverrides","_omit2","readOnly","theme","size","buildTitleAndInputField","title","subtitle","required","dataName","childType","titleSize","subtitleSize","undefined","SkillInformations","skillInformations","form","iconEditor","select","inputTextArea","inputText","iconEditorProps","iconPreview","buttonLink","label","ariaLabel","icon","position","faIcon","name","onClick","customStyle","borderRadius","fontWeight","fields","options","onChange","formProps","createElement","className","style","skillInformationsContainer","uncappedMap","_map2","convert","cap","buildButtonProps","button","hoverBackgroundColor","COLORS","primary_100","hoverColor","cm_primary_blue","color","padding","width","backgroundColor","cm_blue_50","buildTranslationItems","itemTitle","onEditClick","onDeleteClick","index","secondButtonLink","cm_grey_100","neutral_500","id","Translations","items","localesOptions","emptyResult","buttonProps","translationMenuAction","menu","buttons","optionLabel","ref","optionRef","optionOnClick","disabled","_includes2","_keys2","menuWrapper","maxHeight","translationProps","content","_isEmpty2","item","buttonMenuAction","buildContentItem","image","tags","iconName","checkbox","deleteButton","preset","Content","list","listTitle","search","actionButtons","checkboxWithTitle","checkboxWithTitleProps","titleProps","listProps","iconColor","white","cm_grey_500","fontSize","actionButton","contentContainer","SkillEdition","props","translations","container","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/organism/skill-edition/index.tsx"],"sourcesContent":["import React from 'react';\nimport {includes, isEmpty, keys, map, omit} from 'lodash/fp';\nimport BrandFormGroup from '../../molecule/brand-form-group';\nimport ListItems from '../list-items';\nimport Title from '../../atom/title';\nimport TitleAndInput from '../title-and-input';\nimport {COLORS} from '../../variables/colors';\nimport propTypes, {\n TranslationPropsType,\n SkillEditionPropsType,\n SkillInformationsProps,\n InputTextareaProps,\n InputTextProps,\n ContentPropsType,\n ContentListItemType\n} from './types';\nimport style from './style.css';\n\nconst buildFormField = (\n field: InputTextareaProps | InputTextProps,\n type: 'text' | 'textarea',\n readonly?: boolean\n) => {\n const fieldWithoutOverrides = omit(['type', 'theme', 'size', 'readOnly'], field);\n return {\n ...fieldWithoutOverrides,\n readOnly: readonly,\n type,\n theme: 'coorpmanager',\n size: 'large'\n };\n};\n\nconst buildTitleAndInputField = ({\n title,\n subtitle,\n required = false,\n dataName,\n childType\n}: {\n title: string;\n subtitle?: string;\n required?: boolean;\n dataName?: string;\n childType?: string;\n}) => {\n return {\n title: {\n type: 'form-group',\n title,\n subtitle,\n titleSize: 'small-and-light',\n subtitleSize: subtitle ? 'standard-without-margin' : undefined,\n required,\n 'data-name': dataName\n },\n childType,\n type: 'titleAndInput'\n };\n};\n\nconst SkillInformations = (skillInformations: SkillInformationsProps & {readonly?: boolean}) => {\n const {form, iconEditor, readonly} = skillInformations;\n const {select, inputTextArea, inputText} = form;\n\n const iconEditorProps = {\n title: {\n type: 'form-group',\n title: iconEditor.title,\n titleSize: 'small-and-light',\n required: true\n },\n field: {\n iconPreview: iconEditor.iconPreview,\n inputText: {...iconEditor.inputText, readOnly: readonly},\n buttonLink:\n iconEditor.buttonLink && !readonly\n ? {\n type: 'secondary',\n label: iconEditor.buttonLink.label,\n ariaLabel: iconEditor.buttonLink.ariaLabel,\n dataName: 'open-icon-modal-button',\n icon: {\n position: 'left',\n faIcon: {\n name: 'arrows-rotate',\n size: 16\n }\n },\n onClick: iconEditor.buttonLink.onClick,\n customStyle: {\n borderRadius: '12px',\n fontWeight: '500'\n }\n }\n : undefined,\n size: 'large'\n },\n childType: 'iconEditor'\n };\n\n const fields = [\n {\n ...buildTitleAndInputField({\n title: select.title,\n subtitle: select.subtitle,\n required: true,\n dataName: select['data-name'],\n childType: 'select'\n }),\n field: {\n options: select.field.options,\n 'aria-label': select.field['aria-label'],\n onChange: select.field.onChange,\n theme: 'skillDetail',\n size: 'large',\n readOnly: readonly\n }\n },\n {\n ...buildTitleAndInputField({\n title: inputText.title,\n required: true,\n childType: 'inputText'\n }),\n field: buildFormField(inputText.field, 'text', readonly)\n },\n {\n ...buildTitleAndInputField({\n title: inputTextArea.title,\n childType: 'inputTextArea'\n }),\n field: buildFormField(inputTextArea.field, 'textarea', readonly)\n }\n ];\n\n const formProps = {\n title: form.title,\n subtitle: form.subtitle,\n titleSize: 'xl-strong',\n subtitleSize: 'medium',\n fields\n };\n\n return (\n <div className={style.skillInformationsContainer}>\n <BrandFormGroup {...formProps} />\n <div className={style.iconEditor}>\n <TitleAndInput {...iconEditorProps} />\n </div>\n </div>\n );\n};\n\n// @ts-expect-error convert is not recognized by the types\nconst uncappedMap = map.convert({cap: false});\n\nconst buildButtonProps = (button: TranslationPropsType['button']) => ({\n ...button,\n type: 'primary',\n 'aria-label': button.label,\n 'data-name': `button-${button.label}`,\n hoverBackgroundColor: COLORS.primary_100,\n hoverColor: COLORS.cm_primary_blue,\n icon: {\n position: 'left',\n faIcon: {\n name: 'plus',\n color: COLORS.cm_primary_blue,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n customStyle: {\n width: 'fit-content',\n backgroundColor: COLORS.cm_blue_50,\n color: COLORS.cm_primary_blue,\n borderRadius: '12px',\n fontWeight: 600\n }\n});\n\nconst buildTranslationItems = (\n {\n title: itemTitle,\n onEditClick,\n onDeleteClick,\n readonly = false\n }: {title: string; onEditClick: () => void; onDeleteClick: () => void; readonly?: boolean},\n index: number\n) => ({\n ...(readonly\n ? {}\n : {\n secondButtonLink: {\n 'aria-label': 'Delete',\n type: 'primary',\n customStyle: {\n width: 'fit-content',\n backgroundColor: 'transparent'\n },\n hoverBackgroundColor: COLORS.cm_grey_100,\n icon: {\n position: 'left',\n faIcon: {\n name: 'trash',\n color: COLORS.neutral_500,\n size: 16\n }\n },\n onClick: onDeleteClick\n }\n }),\n id: index,\n title: itemTitle,\n buttonLink: {\n 'aria-label': readonly ? 'View Custom SKill' : 'Edit Custom Skill',\n type: 'primary',\n customStyle: {\n width: 'fit-content',\n backgroundColor: 'transparent'\n },\n hoverBackgroundColor: COLORS.cm_grey_100,\n icon: {\n position: 'left',\n faIcon: {\n name: readonly ? 'eye' : 'edit',\n color: COLORS.neutral_500,\n size: 16\n }\n },\n onClick: onEditClick\n }\n});\n\nconst Translations = ({\n title,\n subtitle,\n items,\n button,\n localesOptions,\n emptyResult,\n readonly = false\n}: TranslationPropsType) => {\n const buttonProps = buildButtonProps(button);\n\n const translationMenuAction = {\n button: buttonProps,\n menu: {\n buttons: map(\n ({\n label: optionLabel,\n ref: optionRef,\n onClick: optionOnClick\n }: {\n label: string;\n ref: string;\n onClick: () => void;\n }) => ({\n type: 'defaultLeft',\n onClick: optionOnClick,\n customStyle: {width: '238px'},\n label: optionLabel,\n 'data-name': optionLabel,\n // disable if current locale option is already in items list\n disabled: includes(optionRef, keys(items))\n }),\n localesOptions\n )\n },\n menuWrapper: {\n customStyle: {maxHeight: '252px'}\n }\n };\n\n const translationProps = {\n title: {\n title,\n type: 'form-group',\n subtitle,\n titleSize: 'xl-strong',\n subtitleSize: 'medium'\n },\n 'aria-label': title,\n content: {\n ...(!isEmpty(emptyResult) && {emptyResult: {...emptyResult, button: translationMenuAction}}),\n items: uncappedMap(\n (\n item: {title: string; onEditClick: () => void; onDeleteClick: () => void},\n index: number\n ) => buildTranslationItems({...item, readonly}, index),\n items\n ),\n type: 'list'\n },\n buttonMenuAction: readonly ? undefined : translationMenuAction\n };\n\n return <ListItems {...translationProps} />;\n};\n\nconst buildContentItem =\n (readonly: boolean) =>\n ({\n ref,\n title,\n subtitle,\n image,\n tags: {label, iconName},\n checkbox,\n deleteButton\n }: ContentListItemType) => {\n return {\n ...(readonly\n ? {}\n : {\n secondButtonLink: {\n ...deleteButton,\n 'data-name': `button-${deleteButton?.label}`,\n 'aria-label': 'Delete',\n type: 'primary',\n customStyle: {\n width: 'fit-content',\n backgroundColor: 'transparent'\n },\n hoverBackgroundColor: COLORS.cm_grey_100,\n icon: {\n position: 'left',\n faIcon: {\n name: 'trash',\n color: COLORS.neutral_500,\n size: 16\n }\n }\n }\n }),\n id: ref,\n title,\n subtitle,\n image,\n tags: [\n {\n label,\n type: 'default',\n icon: {\n iconName,\n preset: 's',\n customStyle: {\n padding: 0\n },\n position: 'left'\n }\n }\n ],\n checkbox: readonly ? undefined : checkbox\n };\n };\n\nconst Content = ({\n title,\n subtitle,\n button,\n list: {title: listTitle, checkbox, items, search, emptyResult},\n actionButtons,\n checkboxWithTitle: checkboxWithTitleProps,\n readonly = false\n}: ContentPropsType) => {\n const buttonProps = buildButtonProps(button);\n\n const titleProps = {\n type: 'form-group',\n title,\n subtitle,\n button: !readonly ? buttonProps : undefined,\n required: true\n };\n\n const listProps = {\n ...(!isEmpty(checkbox) && {\n ...checkbox,\n icon: {iconName: 'minus', iconColor: COLORS.white, preset: 's'},\n customStyle: {fontWeight: 600, color: COLORS.cm_grey_500, fontSize: '16px'}\n }),\n title: listTitle,\n 'aria-label': 'content list items',\n content: {\n ...(!isEmpty(emptyResult) && {emptyResult: {...emptyResult, button: buttonProps}}),\n items: map(buildContentItem(readonly), items),\n type: 'list'\n },\n search: {\n ...search,\n theme: 'coorpmanager',\n // Keep search interactive even in readonly mode\n disabled: false\n },\n actionButtons: readonly\n ? []\n : map(\n actionButton => ({\n ...actionButton,\n customStyle: {\n fontWeight: '600',\n borderRadius: '12px',\n width: 'auto'\n }\n }),\n actionButtons\n ),\n\n checkboxWithTitle: readonly\n ? undefined\n : {\n ...checkboxWithTitleProps,\n name: checkboxWithTitleProps?.title,\n 'aria-label': checkboxWithTitleProps?.title,\n 'data-name': checkboxWithTitleProps?.title,\n customStyle: {fontWeight: 600, color: COLORS.neutral_500, fontSize: '16px'},\n icon: {iconName: 'minus', iconColor: 'white', preset: 's'}\n }\n };\n\n return (\n <div className={style.contentContainer}>\n <Title {...titleProps} />\n <ListItems {...listProps} />\n </div>\n );\n};\n\nconst SkillEdition = (props: SkillEditionPropsType) => {\n const {skillInformations, translations, content, readonly} = props;\n\n return (\n <div className={style.container}>\n <SkillInformations {...skillInformations} readonly={readonly} />\n <Translations {...translations} readonly={readonly} />\n <Content {...content} readonly={readonly} />\n </div>\n );\n};\n\nSkillEdition.propTypes = propTypes;\n\nexport default SkillEdition;\n"],"mappings":";;;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,IAAAC,eAAA,GAAAF,sBAAA,CAAAC,OAAA;AAC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MAAA,CAAAY,OAAA,CAAAuD,aAAA,CAACxB,iBAAiB,EAAA9B,QAAA,KAAK+B,iBAAiB;IAAEhB,QAAQ,EAAEA;EAAS,EAAE,CAAC,eAChE5B,MAAA,CAAAY,OAAA,CAAAuD,aAAA,CAAC6B,YAAY,EAAAnF,QAAA,KAAKiI,YAAY;IAAElH,QAAQ,EAAEA;EAAS,EAAE,CAAC,eACtD5B,MAAA,CAAAY,OAAA,CAAAuD,aAAA,CAAC0D,OAAO,EAAAhH,QAAA,KAAKqG,OAAO;IAAEtF,QAAQ,EAAEA;EAAS,EAAE,CACxC,CAAC;AAEV,CAAC;AAEDgH,YAAY,CAACI,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGH,cAAS;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAAzI,OAAA,GAEpBgI,YAAY","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"index.js","names":["_react","_interopRequireDefault","require","_brandFormGroup","_listItems","_title","_titleAndInput","_colors","_loader","_types","_style","e","__esModule","default","buildFormField","field","type","theme","size","buildTitleAndInputField","title","subtitle","required","dataName","childType","titleSize","subtitleSize","undefined","SkillInformations","skillInformations","form","iconEditor","select","inputTextArea","inputText","iconEditorProps","iconPreview","buttonLink","label","ariaLabel","icon","position","faIcon","name","onClick","customStyle","borderRadius","fontWeight","fields","options","onChange","formProps","createElement","className","style","skillInformationsContainer","uncappedMap","_map2","convert","cap","buildButtonProps","button","hoverBackgroundColor","COLORS","primary_100","hoverColor","cm_primary_blue","color","padding","width","backgroundColor","cm_blue_50","buildTranslationItems","itemTitle","onEditClick","onDeleteClick","index","id","cm_grey_100","cm_grey_500","secondButtonLink","Translations","items","localesOptions","emptyResult","buttonProps","translationMenuAction","menu","buttons","optionLabel","ref","optionRef","optionOnClick","disabled","_includes2","_keys2","menuWrapper","maxHeight","translationProps","content","_isEmpty2","buttonMenuAction","buildContentItem","readonly","image","tags","iconName","checkbox","deleteButton","neutral_500","preset","Content","list","listTitle","search","actionButtons","checkboxWithTitle","checkboxWithTitleProps","isFetching","titleProps","listProps","iconColor","white","fontSize","actionButton","contentContainer","SkillEdition","props","translations","loaderContainer","loader","container","propTypes","process","env","NODE_ENV","_default","exports"],"sources":["../../../src/organism/skill-edition/index.tsx"],"sourcesContent":["import React from 'react';\nimport {includes, isEmpty, keys, map} from 'lodash/fp';\nimport BrandFormGroup from '../../molecule/brand-form-group';\nimport ListItems from '../list-items';\nimport Title from '../../atom/title';\nimport TitleAndInput from '../title-and-input';\nimport {COLORS} from '../../variables/colors';\nimport Loader from '../../atom/loader';\nimport propTypes, {\n TranslationPropsType,\n SkillEditionPropsType,\n SkillInformationsProps,\n InputTextareaProps,\n InputTextProps,\n ContentPropsType,\n ContentListItemType\n} from './types';\nimport style from './style.css';\n\nconst buildFormField = (field: InputTextareaProps | InputTextProps, type: 'text' | 'textarea') => {\n return {\n ...field,\n type,\n theme: 'coorpmanager',\n size: 'large'\n };\n};\n\nconst buildTitleAndInputField = ({\n title,\n subtitle,\n required = false,\n dataName,\n childType\n}: {\n title: string;\n subtitle?: string;\n required?: boolean;\n dataName?: string;\n childType?: string;\n}) => {\n return {\n title: {\n type: 'form-group',\n title,\n subtitle,\n titleSize: 'small-and-light',\n subtitleSize: subtitle ? 'standard-without-margin' : undefined,\n required,\n 'data-name': dataName\n },\n childType,\n type: 'titleAndInput'\n };\n};\n\nconst SkillInformations = (skillInformations: SkillInformationsProps) => {\n const {form, iconEditor} = skillInformations;\n const {select, inputTextArea, inputText} = form;\n\n const iconEditorProps = {\n title: {\n type: 'form-group',\n title: iconEditor.title,\n titleSize: 'small-and-light',\n required: true\n },\n field: {\n iconPreview: iconEditor.iconPreview,\n inputText: iconEditor.inputText,\n buttonLink: iconEditor.buttonLink\n ? {\n type: 'secondary',\n label: iconEditor.buttonLink.label,\n ariaLabel: iconEditor.buttonLink.ariaLabel,\n dataName: 'open-icon-modal-button',\n icon: {\n position: 'left',\n faIcon: {\n name: 'arrows-rotate',\n size: 16\n }\n },\n onClick: iconEditor.buttonLink.onClick,\n customStyle: {\n borderRadius: '12px',\n fontWeight: '500'\n }\n }\n : undefined,\n size: 'large'\n },\n childType: 'iconEditor'\n };\n\n const fields = [\n {\n ...buildTitleAndInputField({\n title: select.title,\n subtitle: select.subtitle,\n required: true,\n dataName: select['data-name'],\n childType: 'select'\n }),\n field: {\n options: select.field.options,\n 'aria-label': select.field['aria-label'],\n onChange: select.field.onChange,\n theme: 'skillDetail',\n size: 'large'\n }\n },\n {\n ...buildTitleAndInputField({\n title: inputText.title,\n required: true,\n childType: 'inputText'\n }),\n field: buildFormField(inputText.field, 'text')\n },\n {\n ...buildTitleAndInputField({\n title: inputTextArea.title,\n childType: 'inputTextArea'\n }),\n field: buildFormField(inputTextArea.field, 'textarea')\n }\n ];\n\n const formProps = {\n title: form.title,\n subtitle: form.subtitle,\n titleSize: 'xl-strong',\n subtitleSize: 'medium',\n fields\n };\n\n return (\n <div className={style.skillInformationsContainer}>\n <BrandFormGroup {...formProps} />\n <div className={style.iconEditor}>\n <TitleAndInput {...iconEditorProps} />\n </div>\n </div>\n );\n};\n\n// @ts-expect-error convert is not recognized by the types\nconst uncappedMap = map.convert({cap: false});\n\nconst buildButtonProps = (button: TranslationPropsType['button']) => ({\n ...button,\n type: 'primary',\n 'aria-label': button.label,\n 'data-name': `button-${button.label}`,\n hoverBackgroundColor: COLORS.primary_100,\n hoverColor: COLORS.cm_primary_blue,\n icon: {\n position: 'left',\n faIcon: {\n name: 'plus',\n color: COLORS.cm_primary_blue,\n size: 14,\n customStyle: {padding: 0}\n }\n },\n customStyle: {\n width: 'fit-content',\n backgroundColor: COLORS.cm_blue_50,\n color: COLORS.cm_primary_blue,\n borderRadius: '12px',\n fontWeight: 600\n }\n});\n\nconst buildTranslationItems = (\n {\n title: itemTitle,\n onEditClick,\n onDeleteClick\n }: {title: string; onEditClick: () => void; onDeleteClick: () => void},\n index: number\n) => ({\n id: index,\n title: itemTitle,\n buttonLink: {\n 'aria-label': 'Edit',\n type: 'primary',\n customStyle: {\n width: 'fit-content',\n backgroundColor: 'transparent'\n },\n hoverBackgroundColor: COLORS.cm_grey_100,\n icon: {\n position: 'left',\n faIcon: {\n name: 'edit',\n color: COLORS.cm_grey_500,\n size: 16\n }\n },\n onClick: onEditClick\n },\n secondButtonLink: {\n 'aria-label': 'Delete',\n type: 'primary',\n customStyle: {\n width: 'fit-content',\n backgroundColor: 'transparent'\n },\n hoverBackgroundColor: COLORS.cm_grey_100,\n icon: {\n position: 'left',\n faIcon: {\n name: 'trash',\n color: COLORS.cm_grey_500,\n size: 16\n }\n },\n onClick: onDeleteClick\n }\n});\n\nconst Translations = ({\n title,\n subtitle,\n items,\n button,\n localesOptions,\n emptyResult\n}: TranslationPropsType) => {\n const buttonProps = buildButtonProps(button);\n\n const translationMenuAction = {\n button: buttonProps,\n menu: {\n buttons: map(\n ({\n label: optionLabel,\n ref: optionRef,\n onClick: optionOnClick\n }: {\n label: string;\n ref: string;\n onClick: () => void;\n }) => ({\n type: 'defaultLeft',\n onClick: optionOnClick,\n customStyle: {width: '238px'},\n label: optionLabel,\n 'data-name': optionLabel,\n // disable if current locale option is already in items list\n disabled: includes(optionRef, keys(items))\n }),\n localesOptions\n )\n },\n menuWrapper: {\n customStyle: {maxHeight: '252px'}\n }\n };\n\n const translationProps = {\n title: {\n title,\n type: 'form-group',\n subtitle,\n titleSize: 'xl-strong',\n subtitleSize: 'medium'\n },\n 'aria-label': title,\n content: {\n ...(!isEmpty(emptyResult) && {emptyResult: {...emptyResult, button: translationMenuAction}}),\n items: uncappedMap(buildTranslationItems, items),\n type: 'list'\n },\n buttonMenuAction: translationMenuAction\n };\n\n return <ListItems {...translationProps} />;\n};\n\nconst buildContentItem =\n (readonly: boolean) =>\n ({\n ref,\n title,\n subtitle,\n image,\n tags: {label, iconName},\n checkbox,\n deleteButton\n }: ContentListItemType) => {\n return {\n ...(readonly\n ? {}\n : {\n secondButtonLink: {\n ...deleteButton,\n 'data-name': `button-${deleteButton?.label}`,\n 'aria-label': 'Delete',\n type: 'primary',\n customStyle: {\n width: 'fit-content',\n backgroundColor: 'transparent'\n },\n hoverBackgroundColor: COLORS.cm_grey_100,\n icon: {\n position: 'left',\n faIcon: {\n name: 'trash',\n color: COLORS.neutral_500,\n size: 16\n }\n }\n }\n }),\n id: ref,\n title,\n subtitle,\n image,\n tags: [\n {\n label,\n type: 'default',\n icon: {\n iconName,\n preset: 's',\n customStyle: {\n padding: 0\n },\n position: 'left'\n }\n }\n ],\n checkbox: readonly ? undefined : checkbox\n };\n };\n\nconst Content = ({\n title,\n subtitle,\n button,\n list: {title: listTitle, checkbox, items, search, emptyResult},\n actionButtons,\n checkboxWithTitle: checkboxWithTitleProps,\n readonly = false,\n isFetching = false\n}: ContentPropsType) => {\n const buttonProps = buildButtonProps(button);\n\n const titleProps = {\n type: 'form-group',\n title,\n subtitle,\n button: !readonly ? buttonProps : undefined,\n required: true\n };\n\n const listProps = {\n ...(!isEmpty(checkbox) && {\n ...checkbox,\n icon: {iconName: 'minus', iconColor: COLORS.white, preset: 's'},\n customStyle: {fontWeight: 600, color: COLORS.cm_grey_500, fontSize: '16px'}\n }),\n title: listTitle,\n 'aria-label': 'content list items',\n content: {\n ...(!isEmpty(emptyResult) && {emptyResult: {...emptyResult, button: buttonProps}}),\n items: map(buildContentItem(readonly), items),\n type: 'list'\n },\n search: {\n ...search,\n theme: 'coorpmanager'\n },\n actionButtons: readonly\n ? []\n : map(\n actionButton => ({\n ...actionButton,\n customStyle: {\n fontWeight: '600',\n borderRadius: '12px',\n width: 'auto'\n }\n }),\n actionButtons\n ),\n\n checkboxWithTitle: readonly\n ? undefined\n : {\n ...checkboxWithTitleProps,\n name: checkboxWithTitleProps?.title,\n 'aria-label': checkboxWithTitleProps?.title,\n 'data-name': checkboxWithTitleProps?.title,\n customStyle: {fontWeight: 600, color: COLORS.neutral_500, fontSize: '16px'},\n icon: {iconName: 'minus', iconColor: 'white', preset: 's'}\n },\n isFetching\n };\n\n return (\n <div className={style.contentContainer}>\n <Title {...titleProps} />\n <ListItems {...listProps} />\n </div>\n );\n};\n\nconst SkillEdition = (props: SkillEditionPropsType) => {\n const {skillInformations, translations, content, isFetching} = props;\n\n return isFetching ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ) : (\n <div className={style.container}>\n <SkillInformations {...skillInformations} />\n <Translations {...translations} />\n <Content {...content} />\n </div>\n );\n};\n\nSkillEdition.propTypes = propTypes;\n\nexport default SkillEdition;\n"],"mappings":";;;;;;;;AAAA,IAAAA,MAAA,GAAAC,sBAAA,CAAAC,OAAA;AAEA,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,OAAA,GAAAL,OAAA;AACA,IAAAM,OAAA,GAAAP,sBAAA,CAAAC,OAAA;AACA,IAAAO,MAAA,GAAAR,sBAAA,CAAAC,OAAA;AASA,IAAAQ,MAAA,GAAAT,sBAAA,CAAAC,OAAA;AAAgC,SAAAD,uBAAAU,CAAA,WAAAA,CAAA,IAAAA,CAAA,CAAAC,UAAA,GAAAD,CAAA,KAAAE,OAAA,EAAAF,CAAA;AAEhC,MAAMG,cAAc,GAAGA,CAACC,KAA0C,EAAEC,IAAyB,KAAK;EAChG,OAAO;IACL,GAAGD,KAAK;IACRC,IAAI;IACJC,KAAK,EAAE,cAAc;IACrBC,IAAI,EAAE;EACR,CAAC;AACH,CAAC;AAED,MAAMC,uBAAuB,GAAGA,CAAC;EAC/BC,KAAK;EACLC,QAAQ;EACRC,QAAQ,GAAG,KAAK;EAChBC,QAAQ;EACRC;AAOF,CAAC,KAAK;EACJ,OAAO;IACLJ,KAAK,EAAE;MACLJ,IAAI,EAAE,YAAY;MAClBI,KAAK;MACLC,QA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GAAA,CAAAC,QAAA,oBAAGH,cAAS;AAAC,IAAAI,QAAA,GAAAC,OAAA,CAAA5H,OAAA,GAEpBiH,YAAY","ignoreList":[]}
|
|
@@ -30,7 +30,6 @@ declare const SkillEditionPropTypes: {
|
|
|
30
30
|
defaultValue: PropTypes.Requireable<string>;
|
|
31
31
|
theme: PropTypes.Requireable<string>;
|
|
32
32
|
disabled: PropTypes.Requireable<boolean>;
|
|
33
|
-
readOnly: PropTypes.Requireable<boolean>;
|
|
34
33
|
value: PropTypes.Requireable<string>;
|
|
35
34
|
hint: PropTypes.Requireable<string>;
|
|
36
35
|
error: PropTypes.Requireable<string>;
|
|
@@ -52,7 +51,6 @@ declare const SkillEditionPropTypes: {
|
|
|
52
51
|
name: PropTypes.Requireable<string>;
|
|
53
52
|
theme: PropTypes.Requireable<string>;
|
|
54
53
|
disabled: PropTypes.Requireable<boolean>;
|
|
55
|
-
readOnly: PropTypes.Requireable<boolean>;
|
|
56
54
|
value: PropTypes.Requireable<string>;
|
|
57
55
|
hint: PropTypes.Requireable<string>;
|
|
58
56
|
error: PropTypes.Requireable<string>;
|
|
@@ -79,7 +77,6 @@ declare const SkillEditionPropTypes: {
|
|
|
79
77
|
defaultValue: PropTypes.Requireable<string>;
|
|
80
78
|
theme: PropTypes.Requireable<string>;
|
|
81
79
|
disabled: PropTypes.Requireable<boolean>;
|
|
82
|
-
readOnly: PropTypes.Requireable<boolean>;
|
|
83
80
|
value: PropTypes.Requireable<string>;
|
|
84
81
|
hint: PropTypes.Requireable<string>;
|
|
85
82
|
error: PropTypes.Requireable<string>;
|
|
@@ -113,7 +110,6 @@ declare const SkillEditionPropTypes: {
|
|
|
113
110
|
title: PropTypes.Validator<string>;
|
|
114
111
|
onEditClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
115
112
|
onDeleteClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
116
|
-
readonly: PropTypes.Requireable<boolean>;
|
|
117
113
|
}>>;
|
|
118
114
|
}>;
|
|
119
115
|
button: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
@@ -121,11 +117,6 @@ declare const SkillEditionPropTypes: {
|
|
|
121
117
|
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
122
118
|
disabled: PropTypes.Requireable<boolean>;
|
|
123
119
|
}>>>;
|
|
124
|
-
emptyResult: PropTypes.Requireable<PropTypes.InferProps<{
|
|
125
|
-
title: PropTypes.Requireable<string>;
|
|
126
|
-
description: PropTypes.Requireable<string>;
|
|
127
|
-
}>>;
|
|
128
|
-
readonly: PropTypes.Requireable<boolean>;
|
|
129
120
|
}>>>;
|
|
130
121
|
content: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
131
122
|
title: PropTypes.Validator<string>;
|
|
@@ -135,7 +126,6 @@ declare const SkillEditionPropTypes: {
|
|
|
135
126
|
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
136
127
|
}>>>;
|
|
137
128
|
list: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
138
|
-
title: PropTypes.Requireable<string>;
|
|
139
129
|
items: PropTypes.Requireable<NonNullable<PropTypes.InferProps<{
|
|
140
130
|
ref: PropTypes.Validator<string>;
|
|
141
131
|
title: PropTypes.Validator<string>;
|
|
@@ -149,10 +139,6 @@ declare const SkillEditionPropTypes: {
|
|
|
149
139
|
checked: PropTypes.Validator<boolean>;
|
|
150
140
|
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
151
141
|
}>>>;
|
|
152
|
-
deleteButton: PropTypes.Requireable<PropTypes.InferProps<{
|
|
153
|
-
label: PropTypes.Requireable<string>;
|
|
154
|
-
onClick: PropTypes.Requireable<(...args: any[]) => any>;
|
|
155
|
-
}>>;
|
|
156
142
|
}>>[]>;
|
|
157
143
|
search: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
158
144
|
value: PropTypes.Validator<string>;
|
|
@@ -169,15 +155,9 @@ declare const SkillEditionPropTypes: {
|
|
|
169
155
|
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
170
156
|
}>>;
|
|
171
157
|
}>>>;
|
|
172
|
-
|
|
173
|
-
checkboxWithTitle: PropTypes.Requireable<PropTypes.InferProps<{
|
|
174
|
-
title: PropTypes.Requireable<string>;
|
|
175
|
-
checked: PropTypes.Requireable<boolean>;
|
|
176
|
-
onChange: PropTypes.Requireable<(...args: any[]) => any>;
|
|
177
|
-
}>>;
|
|
178
|
-
readonly: PropTypes.Requireable<boolean>;
|
|
158
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
179
159
|
}>>>;
|
|
180
|
-
|
|
160
|
+
isFetching: PropTypes.Requireable<boolean>;
|
|
181
161
|
};
|
|
182
162
|
export default SkillEditionPropTypes;
|
|
183
163
|
export declare type SelectOption = {
|
|
@@ -242,7 +222,6 @@ export declare type TranslationPropsType = {
|
|
|
242
222
|
title: string;
|
|
243
223
|
onEditClick: () => void;
|
|
244
224
|
onDeleteClick: () => void;
|
|
245
|
-
readonly?: boolean;
|
|
246
225
|
};
|
|
247
226
|
};
|
|
248
227
|
button: {
|
|
@@ -254,7 +233,6 @@ export declare type TranslationPropsType = {
|
|
|
254
233
|
title: string;
|
|
255
234
|
description: string;
|
|
256
235
|
};
|
|
257
|
-
readonly?: boolean;
|
|
258
236
|
};
|
|
259
237
|
export declare type ContentListItemType = {
|
|
260
238
|
ref: string;
|
|
@@ -277,6 +255,7 @@ export declare type CheckboxWithTitleProps = {
|
|
|
277
255
|
onChange?: (value: boolean) => void;
|
|
278
256
|
};
|
|
279
257
|
export declare type ContentPropsType = {
|
|
258
|
+
readonly?: boolean;
|
|
280
259
|
title: string;
|
|
281
260
|
subtitle: string;
|
|
282
261
|
button: {
|
|
@@ -303,13 +282,13 @@ export declare type ContentPropsType = {
|
|
|
303
282
|
};
|
|
304
283
|
actionButtons?: ButtonLinkProps[];
|
|
305
284
|
checkboxWithTitle?: CheckboxWithTitleProps;
|
|
306
|
-
|
|
285
|
+
isFetching?: boolean;
|
|
307
286
|
};
|
|
308
287
|
export declare type SkillEditionPropsType = {
|
|
309
288
|
skillInformations: SkillInformationsProps;
|
|
310
289
|
translations: TranslationPropsType;
|
|
311
290
|
content: ContentPropsType;
|
|
312
|
-
|
|
291
|
+
isFetching?: boolean;
|
|
313
292
|
};
|
|
314
293
|
export declare type InputTextProps = {
|
|
315
294
|
autoFocus?: boolean;
|
|
@@ -336,7 +315,6 @@ export declare type InputTextareaProps = {
|
|
|
336
315
|
name?: string;
|
|
337
316
|
theme?: keyof typeof themeStyle;
|
|
338
317
|
disabled?: boolean;
|
|
339
|
-
readOnly?: boolean;
|
|
340
318
|
value?: string;
|
|
341
319
|
hint?: string;
|
|
342
320
|
error?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/skill-edition/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/skill-edition/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAKnC,OAAO,EAAC,gBAAgB,EAAC,MAAM,mCAAmC,CAAC;AACnE,OAAO,EAAC,eAAe,EAAC,MAAM,8BAA8B,CAAC;AAuG7D,QAAA,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAQ1B,CAAC;AAEF,eAAe,qBAAqB,CAAC;AAErC,oBAAY,YAAY,GAAG;IACzB,IAAI,EAAE,MAAM,CAAC;IACb,KAAK,CAAC,E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