@coorpacademy/components 11.42.5 → 11.42.7
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/molecule/table/index.d.ts +5 -0
- package/es/molecule/table/index.d.ts.map +1 -1
- package/es/molecule/table/index.js +58 -0
- package/es/molecule/table/index.js.map +1 -1
- package/es/molecule/table/style.css +43 -0
- package/es/organism/assignment-audience/index.d.ts +38 -1
- package/es/organism/assignment-audience/index.d.ts.map +1 -1
- package/es/organism/assignment-audience/index.js +97 -2
- package/es/organism/assignment-audience/index.js.map +1 -1
- package/es/organism/assignment-audience/style.css +85 -0
- package/es/organism/assignment-audience/types.d.ts +75 -0
- package/es/organism/assignment-audience/types.d.ts.map +1 -1
- package/es/organism/assignment-audience/types.js +37 -0
- package/es/organism/assignment-audience/types.js.map +1 -1
- package/es/organism/assignment-edition/index.d.ts +37 -0
- package/es/organism/assignment-edition/index.d.ts.map +1 -1
- package/es/organism/assignment-edition/types.d.ts +37 -0
- package/es/organism/assignment-edition/types.d.ts.map +1 -1
- package/es/organism/brand-table/index.d.ts +5 -0
- package/es/organism/content-skill-modal/index.d.ts +11 -0
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/index.js +27 -8
- package/es/organism/content-skill-modal/index.js.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +24 -1
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.js +14 -1
- package/es/organism/content-skill-modal/types.js.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +58 -0
- package/lib/molecule/table/index.d.ts +5 -0
- package/lib/molecule/table/index.d.ts.map +1 -1
- package/lib/molecule/table/index.js +58 -0
- package/lib/molecule/table/index.js.map +1 -1
- package/lib/molecule/table/style.css +43 -0
- package/lib/organism/assignment-audience/index.d.ts +38 -1
- package/lib/organism/assignment-audience/index.d.ts.map +1 -1
- package/lib/organism/assignment-audience/index.js +97 -2
- package/lib/organism/assignment-audience/index.js.map +1 -1
- package/lib/organism/assignment-audience/style.css +85 -0
- package/lib/organism/assignment-audience/types.d.ts +75 -0
- package/lib/organism/assignment-audience/types.d.ts.map +1 -1
- package/lib/organism/assignment-audience/types.js +37 -0
- package/lib/organism/assignment-audience/types.js.map +1 -1
- package/lib/organism/assignment-edition/index.d.ts +37 -0
- package/lib/organism/assignment-edition/index.d.ts.map +1 -1
- package/lib/organism/assignment-edition/types.d.ts +37 -0
- package/lib/organism/assignment-edition/types.d.ts.map +1 -1
- package/lib/organism/brand-table/index.d.ts +5 -0
- package/lib/organism/content-skill-modal/index.d.ts +11 -0
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/index.js +27 -8
- package/lib/organism/content-skill-modal/index.js.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +24 -1
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.js +14 -1
- package/lib/organism/content-skill-modal/types.js.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +58 -0
- package/package.json +2 -2
|
@@ -113,3 +113,88 @@
|
|
|
113
113
|
font-size: 16px;
|
|
114
114
|
font-weight: 700;
|
|
115
115
|
}
|
|
116
|
+
|
|
117
|
+
@value cm_primary_blue, cm_grey_50 from colors;
|
|
118
|
+
|
|
119
|
+
.assignedCard {
|
|
120
|
+
border: 1px solid cm_grey_200;
|
|
121
|
+
border-radius: 8px;
|
|
122
|
+
padding: 20px;
|
|
123
|
+
display: flex;
|
|
124
|
+
flex-direction: column;
|
|
125
|
+
gap: 16px;
|
|
126
|
+
min-width: 0;
|
|
127
|
+
}
|
|
128
|
+
|
|
129
|
+
.assignedControls {
|
|
130
|
+
composes: sources;
|
|
131
|
+
gap: 16px;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
.assignedButton {
|
|
135
|
+
width: auto;
|
|
136
|
+
flex-shrink: 0;
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
.assignedFilters {
|
|
140
|
+
display: flex;
|
|
141
|
+
flex-wrap: wrap;
|
|
142
|
+
gap: 8px;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.assignedFilter {
|
|
146
|
+
composes: button from "../../atom/button-link/style.css";
|
|
147
|
+
display: inline-flex;
|
|
148
|
+
width: auto;
|
|
149
|
+
border: 1px solid cm_grey_200;
|
|
150
|
+
background: cm_grey_50;
|
|
151
|
+
color: cm_grey_700;
|
|
152
|
+
}
|
|
153
|
+
|
|
154
|
+
.assignedFilterSelected {
|
|
155
|
+
composes: assignedFilter;
|
|
156
|
+
color: cm_primary_blue;
|
|
157
|
+
border-color: cm_primary_blue;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
.assignedFilter:focus-visible,
|
|
161
|
+
.assignedButton:focus-visible {
|
|
162
|
+
outline: 2px solid cm_primary_blue;
|
|
163
|
+
outline-offset: 2px;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.assignedToolbar {
|
|
167
|
+
display: flex;
|
|
168
|
+
flex-wrap: wrap;
|
|
169
|
+
align-items: center;
|
|
170
|
+
gap: 16px;
|
|
171
|
+
}
|
|
172
|
+
|
|
173
|
+
.assignedSearch {
|
|
174
|
+
flex: 1 1 240px;
|
|
175
|
+
min-width: 0;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.assignedPagination {
|
|
179
|
+
display: flex;
|
|
180
|
+
align-items: center;
|
|
181
|
+
gap: 8px;
|
|
182
|
+
}
|
|
183
|
+
|
|
184
|
+
.assignedTable {
|
|
185
|
+
min-width: 0;
|
|
186
|
+
}
|
|
187
|
+
|
|
188
|
+
.assignedTable table {
|
|
189
|
+
width: 100%;
|
|
190
|
+
}
|
|
191
|
+
|
|
192
|
+
.assignedTable tbody td:last-child {
|
|
193
|
+
text-align: right;
|
|
194
|
+
color: cm_grey_500;
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
.assignedFootnote {
|
|
198
|
+
composes: muted;
|
|
199
|
+
margin: 0;
|
|
200
|
+
}
|
|
@@ -112,6 +112,43 @@ declare const AssignmentAudiencePropTypes: {
|
|
|
112
112
|
onAdd: PropTypes.Validator<(...args: any[]) => any>;
|
|
113
113
|
onRemove: PropTypes.Validator<(...args: any[]) => any>;
|
|
114
114
|
}>>;
|
|
115
|
+
assigned: PropTypes.Requireable<PropTypes.InferProps<{
|
|
116
|
+
title: PropTypes.Validator<string>;
|
|
117
|
+
subtitle: PropTypes.Requireable<string>;
|
|
118
|
+
expanded: PropTypes.Validator<boolean>;
|
|
119
|
+
toggleLabel: PropTypes.Validator<string>;
|
|
120
|
+
onToggle: PropTypes.Validator<(...args: any[]) => any>;
|
|
121
|
+
notice: PropTypes.Requireable<string>;
|
|
122
|
+
filters: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
123
|
+
key: PropTypes.Validator<string>;
|
|
124
|
+
label: PropTypes.Validator<string>;
|
|
125
|
+
selected: PropTypes.Validator<boolean>;
|
|
126
|
+
}>>[]>;
|
|
127
|
+
onFilter: PropTypes.Validator<(...args: any[]) => any>;
|
|
128
|
+
search: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
129
|
+
value: PropTypes.Validator<string>;
|
|
130
|
+
placeholder: PropTypes.Validator<string>;
|
|
131
|
+
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
132
|
+
}>>>;
|
|
133
|
+
pagination: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
134
|
+
label: PropTypes.Validator<string>;
|
|
135
|
+
onPrevious: PropTypes.Requireable<(...args: any[]) => any>;
|
|
136
|
+
onNext: PropTypes.Requireable<(...args: any[]) => any>;
|
|
137
|
+
}>>>;
|
|
138
|
+
columns: PropTypes.Validator<string[]>;
|
|
139
|
+
rows: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
140
|
+
id: PropTypes.Validator<string>;
|
|
141
|
+
fields: PropTypes.Validator<string[]>;
|
|
142
|
+
action: PropTypes.Requireable<PropTypes.InferProps<{
|
|
143
|
+
label: PropTypes.Validator<string>;
|
|
144
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
145
|
+
variant: PropTypes.Validator<string>;
|
|
146
|
+
}>>;
|
|
147
|
+
actionText: PropTypes.Requireable<string>;
|
|
148
|
+
}>>[]>;
|
|
149
|
+
footnote: PropTypes.Requireable<string>;
|
|
150
|
+
emptyLabel: PropTypes.Validator<string>;
|
|
151
|
+
}>>;
|
|
115
152
|
total: PropTypes.Requireable<PropTypes.InferProps<{
|
|
116
153
|
label: PropTypes.Validator<string>;
|
|
117
154
|
detail: PropTypes.Requireable<string>;
|
|
@@ -144,6 +181,43 @@ export declare type Learner = {
|
|
|
144
181
|
label: string;
|
|
145
182
|
login: string;
|
|
146
183
|
};
|
|
184
|
+
export declare type AssignedLearnersProps = {
|
|
185
|
+
title: string;
|
|
186
|
+
subtitle?: string;
|
|
187
|
+
expanded: boolean;
|
|
188
|
+
toggleLabel: string;
|
|
189
|
+
onToggle: () => void;
|
|
190
|
+
notice?: string;
|
|
191
|
+
filters: Array<{
|
|
192
|
+
key: string;
|
|
193
|
+
label: string;
|
|
194
|
+
selected: boolean;
|
|
195
|
+
}>;
|
|
196
|
+
onFilter: (key: string) => void;
|
|
197
|
+
search: {
|
|
198
|
+
value: string;
|
|
199
|
+
placeholder: string;
|
|
200
|
+
onChange: (value: string) => void;
|
|
201
|
+
};
|
|
202
|
+
pagination: {
|
|
203
|
+
label: string;
|
|
204
|
+
onPrevious?: () => void;
|
|
205
|
+
onNext?: () => void;
|
|
206
|
+
};
|
|
207
|
+
columns: string[];
|
|
208
|
+
rows: Array<{
|
|
209
|
+
id: string;
|
|
210
|
+
fields: string[];
|
|
211
|
+
action?: {
|
|
212
|
+
label: string;
|
|
213
|
+
onClick: () => void;
|
|
214
|
+
variant: 'danger' | 'neutral';
|
|
215
|
+
};
|
|
216
|
+
actionText?: string;
|
|
217
|
+
}>;
|
|
218
|
+
footnote?: string;
|
|
219
|
+
emptyLabel: string;
|
|
220
|
+
};
|
|
147
221
|
export declare type AssignmentAudienceProps = {
|
|
148
222
|
title: string;
|
|
149
223
|
subtitle?: string;
|
|
@@ -206,6 +280,7 @@ export declare type AssignmentAudienceProps = {
|
|
|
206
280
|
onAdd: (learner: Learner) => void;
|
|
207
281
|
onRemove: (id: string) => void;
|
|
208
282
|
};
|
|
283
|
+
assigned?: AssignedLearnersProps;
|
|
209
284
|
total?: {
|
|
210
285
|
label: string;
|
|
211
286
|
detail?: string;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/assignment-audience/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,eAAO,MAAM,QAAQ,wDAAyD,CAAC;AAC/E,oBAAY,eAAe,GAAG,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC;AActD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;CAYjC,CAAC;AAQF,QAAA,MAAM,2BAA2B
|
|
1
|
+
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/assignment-audience/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AAInC,eAAO,MAAM,QAAQ,wDAAyD,CAAC;AAC/E,oBAAY,eAAe,GAAG,OAAO,QAAQ,CAAC,MAAM,CAAC,CAAC;AActD,eAAO,MAAM,qBAAqB;;;;;;;;;;;;;;;;;;CAYjC,CAAC;AAQF,QAAA,MAAM,2BAA2B;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAiIhC,CAAC;AAEF,eAAe,2BAA2B,CAAC;AAE3C,aAAK,cAAc,GAAG,OAAO,CAAC,MAAM,CAAC,eAAe,EAAE,MAAM,C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CAAC,EAAE,OAAO,EAAE,CAAC;QACrB,WAAW,CAAC,EAAE,MAAM,CAAC;QACrB,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;QAClC,KAAK,EAAE,CAAC,OAAO,EAAE,OAAO,KAAK,IAAI,CAAC;QAClC,QAAQ,EAAE,CAAC,EAAE,EAAE,MAAM,KAAK,IAAI,CAAC;KAChC,CAAC;IACF,QAAQ,CAAC,EAAE,qBAAqB,CAAC;IACjC,KAAK,CAAC,EAAE;QAAC,KAAK,EAAE,MAAM,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,CAAA;KAAC,CAAC;CAC1C,CAAC;AAEF,oBAAY,8BAA8B,GAAG;IAAC,KAAK,EAAE,uBAAuB,CAAA;CAAC,CAAC"}
|
|
@@ -111,6 +111,43 @@ const AssignmentAudiencePropTypes = {
|
|
|
111
111
|
// Receives the learner id
|
|
112
112
|
onRemove: PropTypes.func.isRequired
|
|
113
113
|
}),
|
|
114
|
+
assigned: PropTypes.shape({
|
|
115
|
+
title: PropTypes.string.isRequired,
|
|
116
|
+
subtitle: PropTypes.string,
|
|
117
|
+
expanded: PropTypes.bool.isRequired,
|
|
118
|
+
toggleLabel: PropTypes.string.isRequired,
|
|
119
|
+
onToggle: PropTypes.func.isRequired,
|
|
120
|
+
notice: PropTypes.string,
|
|
121
|
+
filters: PropTypes.arrayOf(PropTypes.shape({
|
|
122
|
+
key: PropTypes.string.isRequired,
|
|
123
|
+
label: PropTypes.string.isRequired,
|
|
124
|
+
selected: PropTypes.bool.isRequired
|
|
125
|
+
}).isRequired).isRequired,
|
|
126
|
+
onFilter: PropTypes.func.isRequired,
|
|
127
|
+
search: PropTypes.shape({
|
|
128
|
+
value: PropTypes.string.isRequired,
|
|
129
|
+
placeholder: PropTypes.string.isRequired,
|
|
130
|
+
onChange: PropTypes.func.isRequired
|
|
131
|
+
}).isRequired,
|
|
132
|
+
pagination: PropTypes.shape({
|
|
133
|
+
label: PropTypes.string.isRequired,
|
|
134
|
+
onPrevious: PropTypes.func,
|
|
135
|
+
onNext: PropTypes.func
|
|
136
|
+
}).isRequired,
|
|
137
|
+
columns: PropTypes.arrayOf(PropTypes.string.isRequired).isRequired,
|
|
138
|
+
rows: PropTypes.arrayOf(PropTypes.shape({
|
|
139
|
+
id: PropTypes.string.isRequired,
|
|
140
|
+
fields: PropTypes.arrayOf(PropTypes.string.isRequired).isRequired,
|
|
141
|
+
action: PropTypes.shape({
|
|
142
|
+
label: PropTypes.string.isRequired,
|
|
143
|
+
onClick: PropTypes.func.isRequired,
|
|
144
|
+
variant: PropTypes.oneOf(['danger', 'neutral']).isRequired
|
|
145
|
+
}),
|
|
146
|
+
actionText: PropTypes.string
|
|
147
|
+
}).isRequired).isRequired,
|
|
148
|
+
footnote: PropTypes.string,
|
|
149
|
+
emptyLabel: PropTypes.string.isRequired
|
|
150
|
+
}),
|
|
114
151
|
total: PropTypes.shape({
|
|
115
152
|
label: PropTypes.string.isRequired,
|
|
116
153
|
detail: PropTypes.string
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.js","names":["PropTypes","STATUSES","labelsByStatus","shape","valid","string","unknown","ambiguous","inactive","fileType","name","detail","UploadResultPropTypes","file","summary","keptLabel","report","label","isRequired","onDownload","func","removeLabel","onRemove","learnerType","id","login","AssignmentAudiencePropTypes","title","subtitle","disabledExplanation","team","invalidTargets","arrayOf","ref","invalidLabel","error","disabled","bool","everyone","value","onChange","populations","options","selected","count","oneOfType","number","upload","templateLink","href","templatePreview","header","rows","dropzone","description","browse","dropLabel","loadingLabel","status","oneOf","onUpload","individuals","placeholder","suggestions","onSearch","onAdd","total"],"sources":["../../../src/organism/assignment-audience/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\n// Each file row resolves to one of four statuses. A never-connected account is `valid` and added\n// with no warning; a deactivated account is `inactive`, skipped and reported.\nexport const STATUSES = ['valid', 'unknown', 'ambiguous', 'inactive'] as const;\nexport type UploadRowStatus = typeof STATUSES[number];\n\nconst labelsByStatus = PropTypes.shape({\n valid: PropTypes.string,\n unknown: PropTypes.string,\n ambiguous: PropTypes.string,\n inactive: PropTypes.string\n});\n\nconst fileType = PropTypes.shape({\n name: PropTypes.string,\n detail: PropTypes.string\n});\n\nexport const UploadResultPropTypes = {\n file: fileType,\n // The four count labels, formatted by the app, e.g. {valid: '201 valid', unknown: '6 unknown'}\n summary: labelsByStatus,\n keptLabel: PropTypes.string,\n // The logins not kept, with their reason, as a file the app builds: offered only when some are\n report: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onDownload: PropTypes.func.isRequired\n }),\n removeLabel: PropTypes.string,\n onRemove: PropTypes.func\n};\n\nconst learnerType = PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n login: PropTypes.string.isRequired\n});\n\nconst AssignmentAudiencePropTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n disabledExplanation: PropTypes.string,\n team: PropTypes.shape({\n label: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired\n }),\n invalidTargets: PropTypes.arrayOf(\n PropTypes.shape({\n ref: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n onRemove: PropTypes.func.isRequired\n })\n ),\n invalidLabel: PropTypes.string,\n error: PropTypes.string,\n disabled: PropTypes.bool,\n everyone: PropTypes.shape({\n title: PropTypes.string,\n label: PropTypes.string.isRequired,\n value: PropTypes.bool.isRequired,\n // Receives the new boolean\n onChange: PropTypes.func.isRequired\n }),\n populations: PropTypes.shape({\n title: PropTypes.string,\n subtitle: PropTypes.string,\n label: PropTypes.string,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n // The population's learner count, formatted by the app, shown on its chip\n count: PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n })\n ).isRequired,\n // Prefixes a removable chip's accessible name, e.g. 'Remove' → « Remove Managers FR »\n removeLabel: PropTypes.string,\n // Receives the selected options, with selected: true\n onChange: PropTypes.func.isRequired\n }),\n upload: PropTypes.shape({\n // The file line and the result, once the file is checked\n ...UploadResultPropTypes,\n title: PropTypes.string,\n subtitle: PropTypes.string,\n templateLink: PropTypes.shape({\n label: PropTypes.string,\n href: PropTypes.string\n }),\n // A sample of the expected file, shown left of the upload: a header and example values\n templatePreview: PropTypes.shape({\n header: PropTypes.string.isRequired,\n rows: PropTypes.arrayOf(PropTypes.string)\n }),\n // The Coorpmanager uploader's texts: the hint, the button, the drop text, the loader text\n dropzone: PropTypes.shape({\n description: PropTypes.string,\n browse: PropTypes.string,\n dropLabel: PropTypes.string,\n loadingLabel: PropTypes.string\n }),\n status: PropTypes.oneOf(['idle', 'loading', 'done', 'error']).isRequired,\n error: PropTypes.string,\n // Receives the first File. Parsing and login resolution belong to the consumer.\n onUpload: PropTypes.func.isRequired\n }),\n individuals: PropTypes.shape({\n title: PropTypes.string,\n placeholder: PropTypes.string,\n value: PropTypes.string,\n suggestions: PropTypes.arrayOf(learnerType),\n selected: PropTypes.arrayOf(learnerType),\n // Prefixes a removable chip's accessible name, e.g. 'Remove' → « Remove Camille Durand »\n removeLabel: PropTypes.string,\n // Receives the query, searched by name or login\n onSearch: PropTypes.func.isRequired,\n // Receives the original {id, label, login} suggestion\n onAdd: PropTypes.func.isRequired,\n // Receives the learner id\n onRemove: PropTypes.func.isRequired\n }),\n total: PropTypes.shape({\n label: PropTypes.string.isRequired,\n detail: PropTypes.string\n })\n};\n\nexport default AssignmentAudiencePropTypes;\n\ntype LabelsByStatus = Partial<Record<UploadRowStatus, string>>;\n\nexport type UploadResultProps = {\n file?: {name?: string; detail?: string};\n summary?: LabelsByStatus;\n keptLabel?: string;\n report?: {label: string; onDownload: () => void};\n removeLabel?: string;\n onRemove?: () => void;\n};\n\nexport type PopulationOption = {\n name: string;\n value: string;\n selected: boolean;\n count?: string | number;\n};\n\nexport type Learner = {\n id: string;\n label: string;\n login: string;\n};\n\nexport type AssignmentAudienceProps = {\n title: string;\n subtitle?: string;\n disabledExplanation?: string;\n team?: {label: string; name: string};\n invalidTargets?: Array<{ref: string; label: string; onRemove: () => void}>;\n invalidLabel?: string;\n error?: string;\n disabled?: boolean;\n everyone?: {\n title?: string;\n label: string;\n value: boolean;\n onChange: (value: boolean) => void;\n };\n populations?: {\n title?: string;\n subtitle?: string;\n label?: string;\n options: PopulationOption[];\n removeLabel?: string;\n onChange: (selected: PopulationOption[]) => void;\n };\n upload?: UploadResultProps & {\n title?: string;\n subtitle?: string;\n templateLink?: {label?: string; href?: string};\n templatePreview?: {header: string; rows?: string[]};\n dropzone?: {\n description?: string;\n browse?: string;\n dropLabel?: string;\n loadingLabel?: string;\n };\n status: 'idle' | 'loading' | 'done' | 'error';\n error?: string;\n onUpload: (file: File) => void;\n };\n individuals?: {\n title?: string;\n placeholder?: string;\n value?: string;\n suggestions?: Learner[];\n selected?: Learner[];\n removeLabel?: string;\n onSearch: (query: string) => void;\n onAdd: (learner: Learner) => void;\n onRemove: (id: string) => void;\n };\n total?: {label: string; detail?: string};\n};\n\nexport type AssignmentAudiencePropsFixture = {props: AssignmentAudienceProps};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;;AAElC;AACA;AACA,OAAO,MAAMC,QAAQ,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,CAAU;AAG9E,MAAMC,cAAc,GAAGF,SAAS,CAACG,KAAK,CAAC;EACrCC,KAAK,EAAEJ,SAAS,CAACK,MAAM;EACvBC,OAAO,EAAEN,SAAS,CAACK,MAAM;EACzBE,SAAS,EAAEP,SAAS,CAACK,MAAM;EAC3BG,QAAQ,EAAER,SAAS,CAACK;AACtB,CAAC,CAAC;AAEF,MAAMI,QAAQ,GAAGT,SAAS,CAACG,KAAK,CAAC;EAC/BO,IAAI,EAAEV,SAAS,CAACK,MAAM;EACtBM,MAAM,EAAEX,SAAS,CAACK;AACpB,CAAC,CAAC;AAEF,OAAO,MAA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AC3B,CAAC,CAAC;EACFgD,KAAK,EAAElE,SAAS,CAACG,KAAK,CAAC;IACrBc,KAAK,EAAEjB,SAAS,CAACK,MAAM,CAACa,UAAU;IAClCP,MAAM,EAAEX,SAAS,CAACK;EACpB,CAAC;AACH,CAAC;AAED,eAAeqB,2BAA2B","ignoreList":[]}
|
|
1
|
+
{"version":3,"file":"types.js","names":["PropTypes","STATUSES","labelsByStatus","shape","valid","string","unknown","ambiguous","inactive","fileType","name","detail","UploadResultPropTypes","file","summary","keptLabel","report","label","isRequired","onDownload","func","removeLabel","onRemove","learnerType","id","login","AssignmentAudiencePropTypes","title","subtitle","disabledExplanation","team","invalidTargets","arrayOf","ref","invalidLabel","error","disabled","bool","everyone","value","onChange","populations","options","selected","count","oneOfType","number","upload","templateLink","href","templatePreview","header","rows","dropzone","description","browse","dropLabel","loadingLabel","status","oneOf","onUpload","individuals","placeholder","suggestions","onSearch","onAdd","assigned","expanded","toggleLabel","onToggle","notice","filters","key","onFilter","search","pagination","onPrevious","onNext","columns","fields","action","onClick","variant","actionText","footnote","emptyLabel","total"],"sources":["../../../src/organism/assignment-audience/types.ts"],"sourcesContent":["import PropTypes from 'prop-types';\n\n// Each file row resolves to one of four statuses. A never-connected account is `valid` and added\n// with no warning; a deactivated account is `inactive`, skipped and reported.\nexport const STATUSES = ['valid', 'unknown', 'ambiguous', 'inactive'] as const;\nexport type UploadRowStatus = typeof STATUSES[number];\n\nconst labelsByStatus = PropTypes.shape({\n valid: PropTypes.string,\n unknown: PropTypes.string,\n ambiguous: PropTypes.string,\n inactive: PropTypes.string\n});\n\nconst fileType = PropTypes.shape({\n name: PropTypes.string,\n detail: PropTypes.string\n});\n\nexport const UploadResultPropTypes = {\n file: fileType,\n // The four count labels, formatted by the app, e.g. {valid: '201 valid', unknown: '6 unknown'}\n summary: labelsByStatus,\n keptLabel: PropTypes.string,\n // The logins not kept, with their reason, as a file the app builds: offered only when some are\n report: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onDownload: PropTypes.func.isRequired\n }),\n removeLabel: PropTypes.string,\n onRemove: PropTypes.func\n};\n\nconst learnerType = PropTypes.shape({\n id: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n login: PropTypes.string.isRequired\n});\n\nconst AssignmentAudiencePropTypes = {\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n disabledExplanation: PropTypes.string,\n team: PropTypes.shape({\n label: PropTypes.string.isRequired,\n name: PropTypes.string.isRequired\n }),\n invalidTargets: PropTypes.arrayOf(\n PropTypes.shape({\n ref: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n onRemove: PropTypes.func.isRequired\n })\n ),\n invalidLabel: PropTypes.string,\n error: PropTypes.string,\n disabled: PropTypes.bool,\n everyone: PropTypes.shape({\n title: PropTypes.string,\n label: PropTypes.string.isRequired,\n value: PropTypes.bool.isRequired,\n // Receives the new boolean\n onChange: PropTypes.func.isRequired\n }),\n populations: PropTypes.shape({\n title: PropTypes.string,\n subtitle: PropTypes.string,\n label: PropTypes.string,\n options: PropTypes.arrayOf(\n PropTypes.shape({\n name: PropTypes.string.isRequired,\n value: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired,\n // The population's learner count, formatted by the app, shown on its chip\n count: PropTypes.oneOfType([PropTypes.string, PropTypes.number])\n })\n ).isRequired,\n // Prefixes a removable chip's accessible name, e.g. 'Remove' → « Remove Managers FR »\n removeLabel: PropTypes.string,\n // Receives the selected options, with selected: true\n onChange: PropTypes.func.isRequired\n }),\n upload: PropTypes.shape({\n // The file line and the result, once the file is checked\n ...UploadResultPropTypes,\n title: PropTypes.string,\n subtitle: PropTypes.string,\n templateLink: PropTypes.shape({\n label: PropTypes.string,\n href: PropTypes.string\n }),\n // A sample of the expected file, shown left of the upload: a header and example values\n templatePreview: PropTypes.shape({\n header: PropTypes.string.isRequired,\n rows: PropTypes.arrayOf(PropTypes.string)\n }),\n // The Coorpmanager uploader's texts: the hint, the button, the drop text, the loader text\n dropzone: PropTypes.shape({\n description: PropTypes.string,\n browse: PropTypes.string,\n dropLabel: PropTypes.string,\n loadingLabel: PropTypes.string\n }),\n status: PropTypes.oneOf(['idle', 'loading', 'done', 'error']).isRequired,\n error: PropTypes.string,\n // Receives the first File. Parsing and login resolution belong to the consumer.\n onUpload: PropTypes.func.isRequired\n }),\n individuals: PropTypes.shape({\n title: PropTypes.string,\n placeholder: PropTypes.string,\n value: PropTypes.string,\n suggestions: PropTypes.arrayOf(learnerType),\n selected: PropTypes.arrayOf(learnerType),\n // Prefixes a removable chip's accessible name, e.g. 'Remove' → « Remove Camille Durand »\n removeLabel: PropTypes.string,\n // Receives the query, searched by name or login\n onSearch: PropTypes.func.isRequired,\n // Receives the original {id, label, login} suggestion\n onAdd: PropTypes.func.isRequired,\n // Receives the learner id\n onRemove: PropTypes.func.isRequired\n }),\n assigned: PropTypes.shape({\n title: PropTypes.string.isRequired,\n subtitle: PropTypes.string,\n expanded: PropTypes.bool.isRequired,\n toggleLabel: PropTypes.string.isRequired,\n onToggle: PropTypes.func.isRequired,\n notice: PropTypes.string,\n filters: PropTypes.arrayOf(\n PropTypes.shape({\n key: PropTypes.string.isRequired,\n label: PropTypes.string.isRequired,\n selected: PropTypes.bool.isRequired\n }).isRequired\n ).isRequired,\n onFilter: PropTypes.func.isRequired,\n search: PropTypes.shape({\n value: PropTypes.string.isRequired,\n placeholder: PropTypes.string.isRequired,\n onChange: PropTypes.func.isRequired\n }).isRequired,\n pagination: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onPrevious: PropTypes.func,\n onNext: PropTypes.func\n }).isRequired,\n columns: PropTypes.arrayOf(PropTypes.string.isRequired).isRequired,\n rows: PropTypes.arrayOf(\n PropTypes.shape({\n id: PropTypes.string.isRequired,\n fields: PropTypes.arrayOf(PropTypes.string.isRequired).isRequired,\n action: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired,\n variant: PropTypes.oneOf(['danger', 'neutral']).isRequired\n }),\n actionText: PropTypes.string\n }).isRequired\n ).isRequired,\n footnote: PropTypes.string,\n emptyLabel: PropTypes.string.isRequired\n }),\n total: PropTypes.shape({\n label: PropTypes.string.isRequired,\n detail: PropTypes.string\n })\n};\n\nexport default AssignmentAudiencePropTypes;\n\ntype LabelsByStatus = Partial<Record<UploadRowStatus, string>>;\n\nexport type UploadResultProps = {\n file?: {name?: string; detail?: string};\n summary?: LabelsByStatus;\n keptLabel?: string;\n report?: {label: string; onDownload: () => void};\n removeLabel?: string;\n onRemove?: () => void;\n};\n\nexport type PopulationOption = {\n name: string;\n value: string;\n selected: boolean;\n count?: string | number;\n};\n\nexport type Learner = {\n id: string;\n label: string;\n login: string;\n};\n\nexport type AssignedLearnersProps = {\n title: string;\n subtitle?: string;\n expanded: boolean;\n toggleLabel: string;\n onToggle: () => void;\n notice?: string;\n filters: Array<{key: string; label: string; selected: boolean}>;\n onFilter: (key: string) => void;\n search: {value: string; placeholder: string; onChange: (value: string) => void};\n pagination: {label: string; onPrevious?: () => void; onNext?: () => void};\n columns: string[];\n rows: Array<{\n id: string;\n fields: string[];\n action?: {label: string; onClick: () => void; variant: 'danger' | 'neutral'};\n actionText?: string;\n }>;\n footnote?: string;\n emptyLabel: string;\n};\n\nexport type AssignmentAudienceProps = {\n title: string;\n subtitle?: string;\n disabledExplanation?: string;\n team?: {label: string; name: string};\n invalidTargets?: Array<{ref: string; label: string; onRemove: () => void}>;\n invalidLabel?: string;\n error?: string;\n disabled?: boolean;\n everyone?: {\n title?: string;\n label: string;\n value: boolean;\n onChange: (value: boolean) => void;\n };\n populations?: {\n title?: string;\n subtitle?: string;\n label?: string;\n options: PopulationOption[];\n removeLabel?: string;\n onChange: (selected: PopulationOption[]) => void;\n };\n upload?: UploadResultProps & {\n title?: string;\n subtitle?: string;\n templateLink?: {label?: string; href?: string};\n templatePreview?: {header: string; rows?: string[]};\n dropzone?: {\n description?: string;\n browse?: string;\n dropLabel?: string;\n loadingLabel?: string;\n };\n status: 'idle' | 'loading' | 'done' | 'error';\n error?: string;\n onUpload: (file: File) => void;\n };\n individuals?: {\n title?: string;\n placeholder?: string;\n value?: string;\n suggestions?: Learner[];\n selected?: Learner[];\n removeLabel?: string;\n onSearch: (query: string) => void;\n onAdd: (learner: Learner) => void;\n onRemove: (id: string) => void;\n };\n assigned?: AssignedLearnersProps;\n total?: {label: string; detail?: string};\n};\n\nexport type AssignmentAudiencePropsFixture = {props: AssignmentAudienceProps};\n"],"mappings":"AAAA,OAAOA,SAAS,MAAM,YAAY;;AAElC;AACA;AACA,OAAO,MAAMC,QAAQ,GAAG,CAAC,OAAO,EAAE,SAAS,EAAE,WAAW,EAAE,UAAU,CAAU;AAG9E,MAAMC,cAAc,GAAGF,SAAS,CAACG,KAAK,CAAC;EACrCC,KAAK,EAAEJ,SAAS,CAACK,MAAM;EACvBC,OAAO,EAAEN,SAAS,CAACK,MAAM;EACzBE,SAAS,EAAEP,SAAS,CAACK,MAAM;EAC3BG,QAAQ,EAAER,SAAS,CAACK;AACtB,CAAC,CAAC;AAEF,MAAMI,QAAQ,GAAGT,SAAS,CAACG,KAAK,CAAC;EAC/BO,IAAI,EAAEV,SAAS,CAACK,MAAM;EACtBM,MAAM,EAAEX,SAAS,CAACK;AACpB,CAAC,CAAC;AAEF,OAAO,MAAMO,qBAAqB,GAAG;EACnCC,IAAI,EAAEJ,QAAQ;EACd;EACAK,OAAO,EAAEZ,cAAc;EACvBa,SAAS,EAAEf,SAAS,CAACK,MAAM;EAC3B;EACAW,MAAM,EAAEhB,SAAS,CAACG,KAAK,CAAC;IACtBc,KAAK,EAAEjB,SAAS,CAACK,MAAM,CAACa,UAAU;IAClCC,UAAU,EAAEnB,SAAS,CAACoB,IAAI,CAACF;EAC7B,CAAC,CAAC;EACFG,WAAW,EAAErB,SAAS,CAACK,MAAM;EAC7BiB,QAAQ,EAAEtB,SAAS,CAACoB;AACtB,CAAC;AAED,MAAMG,WAAW,GAAGvB,SAAS,CAACG,KAAK,CAAC;EAClCqB,EAAE,EAAExB,SAA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AAC,CAAC,CAACzC;MAClD,CAAC,CAAC;MACFiE,UAAU,EAAEnF,SAAS,CAACK;IACxB,CAAC,CAAC,CAACa,UACL,CAAC,CAACA,UAAU;IACZkE,QAAQ,EAAEpF,SAAS,CAACK,MAAM;IAC1BgF,UAAU,EAAErF,SAAS,CAACK,MAAM,CAACa;EAC/B,CAAC,CAAC;EACFoE,KAAK,EAAEtF,SAAS,CAACG,KAAK,CAAC;IACrBc,KAAK,EAAEjB,SAAS,CAACK,MAAM,CAACa,UAAU;IAClCP,MAAM,EAAEX,SAAS,CAACK;EACpB,CAAC;AACH,CAAC;AAED,eAAeqB,2BAA2B","ignoreList":[]}
|
|
@@ -122,6 +122,43 @@ declare const AssignmentEdition: {
|
|
|
122
122
|
onAdd: import("prop-types").Validator<(...args: any[]) => any>;
|
|
123
123
|
onRemove: import("prop-types").Validator<(...args: any[]) => any>;
|
|
124
124
|
}>>;
|
|
125
|
+
assigned: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
126
|
+
title: import("prop-types").Validator<string>;
|
|
127
|
+
subtitle: import("prop-types").Requireable<string>;
|
|
128
|
+
expanded: import("prop-types").Validator<boolean>;
|
|
129
|
+
toggleLabel: import("prop-types").Validator<string>;
|
|
130
|
+
onToggle: import("prop-types").Validator<(...args: any[]) => any>;
|
|
131
|
+
notice: import("prop-types").Requireable<string>;
|
|
132
|
+
filters: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
133
|
+
key: import("prop-types").Validator<string>;
|
|
134
|
+
label: import("prop-types").Validator<string>;
|
|
135
|
+
selected: import("prop-types").Validator<boolean>;
|
|
136
|
+
}>>[]>;
|
|
137
|
+
onFilter: import("prop-types").Validator<(...args: any[]) => any>;
|
|
138
|
+
search: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
139
|
+
value: import("prop-types").Validator<string>;
|
|
140
|
+
placeholder: import("prop-types").Validator<string>;
|
|
141
|
+
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
142
|
+
}>>>;
|
|
143
|
+
pagination: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
144
|
+
label: import("prop-types").Validator<string>;
|
|
145
|
+
onPrevious: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
146
|
+
onNext: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
147
|
+
}>>>;
|
|
148
|
+
columns: import("prop-types").Validator<string[]>;
|
|
149
|
+
rows: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
150
|
+
id: import("prop-types").Validator<string>;
|
|
151
|
+
fields: import("prop-types").Validator<string[]>;
|
|
152
|
+
action: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
153
|
+
label: import("prop-types").Validator<string>;
|
|
154
|
+
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
155
|
+
variant: import("prop-types").Validator<string>;
|
|
156
|
+
}>>;
|
|
157
|
+
actionText: import("prop-types").Requireable<string>;
|
|
158
|
+
}>>[]>;
|
|
159
|
+
footnote: import("prop-types").Requireable<string>;
|
|
160
|
+
emptyLabel: import("prop-types").Validator<string>;
|
|
161
|
+
}>>;
|
|
125
162
|
total: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
126
163
|
label: import("prop-types").Validator<string>;
|
|
127
164
|
detail: import("prop-types").Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/assignment-edition/index.tsx"],"names":[],"mappings":";AASA,OAAO,EAAC,sBAAsB,EAAY,MAAM,SAAS,CAAC;AAG1D,YAAY,EAAC,sBAAsB,EAAE,6BAA6B,EAAC,MAAM,SAAS,CAAC;AAEnF,QAAA,MAAM,iBAAiB;iFAQpB,sBAAsB
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/assignment-edition/index.tsx"],"names":[],"mappings":";AASA,OAAO,EAAC,sBAAsB,EAAY,MAAM,SAAS,CAAC;AAG1D,YAAY,EAAC,sBAAsB,EAAE,6BAA6B,EAAC,MAAM,SAAS,CAAC;AAEnF,QAAA,MAAM,iBAAiB;iFAQpB,sBAAsB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqGxB,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
|
|
@@ -174,6 +174,43 @@ export declare const propTypes: {
|
|
|
174
174
|
onAdd: PropTypes.Validator<(...args: any[]) => any>;
|
|
175
175
|
onRemove: PropTypes.Validator<(...args: any[]) => any>;
|
|
176
176
|
}>>;
|
|
177
|
+
assigned: PropTypes.Requireable<PropTypes.InferProps<{
|
|
178
|
+
title: PropTypes.Validator<string>;
|
|
179
|
+
subtitle: PropTypes.Requireable<string>;
|
|
180
|
+
expanded: PropTypes.Validator<boolean>;
|
|
181
|
+
toggleLabel: PropTypes.Validator<string>;
|
|
182
|
+
onToggle: PropTypes.Validator<(...args: any[]) => any>;
|
|
183
|
+
notice: PropTypes.Requireable<string>;
|
|
184
|
+
filters: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
185
|
+
key: PropTypes.Validator<string>;
|
|
186
|
+
label: PropTypes.Validator<string>;
|
|
187
|
+
selected: PropTypes.Validator<boolean>;
|
|
188
|
+
}>>[]>;
|
|
189
|
+
onFilter: PropTypes.Validator<(...args: any[]) => any>;
|
|
190
|
+
search: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
191
|
+
value: PropTypes.Validator<string>;
|
|
192
|
+
placeholder: PropTypes.Validator<string>;
|
|
193
|
+
onChange: PropTypes.Validator<(...args: any[]) => any>;
|
|
194
|
+
}>>>;
|
|
195
|
+
pagination: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
196
|
+
label: PropTypes.Validator<string>;
|
|
197
|
+
onPrevious: PropTypes.Requireable<(...args: any[]) => any>;
|
|
198
|
+
onNext: PropTypes.Requireable<(...args: any[]) => any>;
|
|
199
|
+
}>>>;
|
|
200
|
+
columns: PropTypes.Validator<string[]>;
|
|
201
|
+
rows: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
202
|
+
id: PropTypes.Validator<string>;
|
|
203
|
+
fields: PropTypes.Validator<string[]>;
|
|
204
|
+
action: PropTypes.Requireable<PropTypes.InferProps<{
|
|
205
|
+
label: PropTypes.Validator<string>;
|
|
206
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
207
|
+
variant: PropTypes.Validator<string>;
|
|
208
|
+
}>>;
|
|
209
|
+
actionText: PropTypes.Requireable<string>;
|
|
210
|
+
}>>[]>;
|
|
211
|
+
footnote: PropTypes.Requireable<string>;
|
|
212
|
+
emptyLabel: PropTypes.Validator<string>;
|
|
213
|
+
}>>;
|
|
177
214
|
total: PropTypes.Requireable<PropTypes.InferProps<{
|
|
178
215
|
label: PropTypes.Validator<string>;
|
|
179
216
|
detail: PropTypes.Requireable<string>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"types.d.ts","sourceRoot":"","sources":["../../../src/organism/assignment-edition/types.ts"],"names":[],"mappings":"AAAA,OAAO,SAAS,MAAM,YAAY,CAAC;AACnC,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,SAAS,MAAM,uBAAuB,CAAC;AAC9C,OAAO,WAAW,MAAM,yBAAyB,CAAC;AAClD,OAAO,EAA8B,mBAAmB,EAAC,MAAM,mCAAmC,CAAC;AACnG,OAAoC,EAAC,uBAAuB,EAAC,MAAM,8BAA8B,CAAC;AAClG,OAAO,EAAC,gB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EAAE,MAAM,CAAC;YACd,QAAQ,CAAC,EAAE,OAAO,CAAC;YACnB,OAAO,EAAE,UAAU,EAAE,CAAC;SACvB,CAAC;QACF,SAAS,EAAE;YAAC,IAAI,EAAE,MAAM,CAAC;YAAC,QAAQ,EAAE,cAAc,EAAE,CAAA;SAAC,CAAC;KACvD,CAAC;IACF,IAAI,CAAC,EAAE,OAAO,CAAC;IACf,UAAU,CAAC,EAAE,OAAO,CAAC;IACrB,YAAY,CAAC,EAAE,aAAa,GAAG,UAAU,GAAG,UAAU,GAAG,OAAO,CAAC;CAClE,CAAC;AACF,oBAAY,6BAA6B,GAAG;IAAC,KAAK,EAAE,sBAAsB,CAAA;CAAC,CAAC;AAE5E,eAAO,MAAM,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAkDrB,CAAC"}
|
|
@@ -26,6 +26,11 @@ declare namespace BrandTable {
|
|
|
26
26
|
const editable: PropTypes.Requireable<boolean>;
|
|
27
27
|
const rows: PropTypes.Requireable<(PropTypes.InferProps<{
|
|
28
28
|
fields: PropTypes.Requireable<(NonNullable<string | PropTypes.InferProps<{
|
|
29
|
+
action: PropTypes.Requireable<PropTypes.InferProps<{
|
|
30
|
+
label: PropTypes.Validator<string>;
|
|
31
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
32
|
+
variant: PropTypes.Validator<string>;
|
|
33
|
+
}>>;
|
|
29
34
|
icon: PropTypes.Requireable<string>;
|
|
30
35
|
title: PropTypes.Requireable<string>;
|
|
31
36
|
text: PropTypes.Requireable<string>;
|
|
@@ -7,6 +7,11 @@ declare const ContentSkillModal: {
|
|
|
7
7
|
};
|
|
8
8
|
propTypes: {
|
|
9
9
|
contentList: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
10
|
+
selectAll: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
11
|
+
label: import("prop-types").Validator<string>;
|
|
12
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
13
|
+
onClick: import("prop-types").Validator<(...args: any[]) => any>;
|
|
14
|
+
}>>;
|
|
10
15
|
'aria-label': import("prop-types").Requireable<string>;
|
|
11
16
|
buttonLink: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
12
17
|
type: import("prop-types").Requireable<string>;
|
|
@@ -801,6 +806,12 @@ declare const ContentSkillModal: {
|
|
|
801
806
|
}> | null | undefined> | null | undefined)[]>;
|
|
802
807
|
}>>>;
|
|
803
808
|
modal: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
809
|
+
title: import("prop-types").Requireable<string>;
|
|
810
|
+
description: import("prop-types").Requireable<string>;
|
|
811
|
+
cancelLabel: import("prop-types").Requireable<string>;
|
|
812
|
+
confirmLabel: import("prop-types").Requireable<string>;
|
|
813
|
+
disabled: import("prop-types").Requireable<boolean>;
|
|
814
|
+
error: import("prop-types").Requireable<string>;
|
|
804
815
|
isOpen: import("prop-types").Requireable<boolean>;
|
|
805
816
|
onCancel: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
806
817
|
onConfirm: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/content-skill-modal/index.tsx"],"names":[],"mappings":"AAAA,OAAO,KAA6B,MAAM,OAAO,CAAC;AAOlD,OAAkB,EAAC,sBAAsB,EAAC,MAAM,SAAS,CAAC;AAE1D,QAAA,MAAM,iBAAiB;YAAW,sBAAsB
|
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iB,CAAC"}
|
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
1
2
|
import React, { useCallback, useMemo } from 'react';
|
|
2
3
|
import BaseModal from '../../molecule/base-modal';
|
|
3
4
|
import ListItems from '../list-items';
|
|
@@ -12,11 +13,25 @@ const ContentSkillModal = props => {
|
|
|
12
13
|
filters,
|
|
13
14
|
modal
|
|
14
15
|
} = props;
|
|
16
|
+
const {
|
|
17
|
+
selectAll,
|
|
18
|
+
...listProps
|
|
19
|
+
} = contentList;
|
|
20
|
+
const buttonLink = selectAll ? {
|
|
21
|
+
...selectAll,
|
|
22
|
+
type: 'secondary'
|
|
23
|
+
} : listProps.buttonLink;
|
|
15
24
|
const {
|
|
16
25
|
isOpen,
|
|
17
26
|
onCancel,
|
|
18
27
|
onConfirm,
|
|
19
|
-
onClose
|
|
28
|
+
onClose,
|
|
29
|
+
title = 'Add content',
|
|
30
|
+
description = 'Add courses, video, interactive and more to this skill',
|
|
31
|
+
cancelLabel = 'Cancel',
|
|
32
|
+
confirmLabel = 'Add',
|
|
33
|
+
error,
|
|
34
|
+
disabled = false
|
|
20
35
|
} = modal;
|
|
21
36
|
const handleCancel = useCallback(() => {
|
|
22
37
|
onCancel();
|
|
@@ -30,21 +45,23 @@ const ContentSkillModal = props => {
|
|
|
30
45
|
backgroundColor: COLORS.primary_100
|
|
31
46
|
};
|
|
32
47
|
const footer = useMemo(() => ({
|
|
48
|
+
text: error,
|
|
49
|
+
isError: Boolean(error),
|
|
33
50
|
cancelButton: {
|
|
34
51
|
onCancel: handleCancel,
|
|
35
|
-
label:
|
|
52
|
+
label: cancelLabel
|
|
36
53
|
},
|
|
37
54
|
confirmButton: {
|
|
38
55
|
onConfirm,
|
|
39
|
-
label:
|
|
56
|
+
label: confirmLabel,
|
|
40
57
|
iconName: 'plus',
|
|
41
|
-
disabled
|
|
58
|
+
disabled,
|
|
42
59
|
color: COLORS.cm_primary_blue
|
|
43
60
|
}
|
|
44
|
-
}), [handleCancel, onConfirm]);
|
|
61
|
+
}), [handleCancel, onConfirm, cancelLabel, confirmLabel, error, disabled]);
|
|
45
62
|
const baseModalProps = {
|
|
46
|
-
title
|
|
47
|
-
description
|
|
63
|
+
title,
|
|
64
|
+
description,
|
|
48
65
|
headerIcon,
|
|
49
66
|
footer,
|
|
50
67
|
isOpen,
|
|
@@ -60,7 +77,9 @@ const ContentSkillModal = props => {
|
|
|
60
77
|
className: style.container
|
|
61
78
|
}, /*#__PURE__*/React.createElement("div", {
|
|
62
79
|
className: style.containerList
|
|
63
|
-
}, /*#__PURE__*/React.createElement(ListItems,
|
|
80
|
+
}, /*#__PURE__*/React.createElement(ListItems, _extends({}, listProps, {
|
|
81
|
+
buttonLink: buttonLink
|
|
82
|
+
}))), /*#__PURE__*/React.createElement("div", {
|
|
64
83
|
className: style.filtersContainer
|
|
65
84
|
}, /*#__PURE__*/React.createElement(MultiFilterPanel, filters))));
|
|
66
85
|
};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","names":["React","useCallback","useMemo","BaseModal","ListItems","MultiFilterPanel","Provider","COLORS","style","propTypes","ContentSkillModal","props","contentList","filters","modal","isOpen","onCancel","onConfirm","onClose","handleCancel","handleClose","headerIcon","name","color","primary_600","backgroundColor","primary_100","footer","
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useCallback","useMemo","BaseModal","ListItems","MultiFilterPanel","Provider","COLORS","style","propTypes","ContentSkillModal","props","contentList","filters","modal","selectAll","listProps","buttonLink","type","isOpen","onCancel","onConfirm","onClose","title","description","cancelLabel","confirmLabel","error","disabled","handleCancel","handleClose","headerIcon","name","color","primary_600","backgroundColor","primary_100","footer","text","isError","Boolean","cancelButton","label","confirmButton","iconName","cm_primary_blue","baseModalProps","customStyle","height","width","createElement","className","container","containerList","_extends","filtersContainer","contextTypes","translate","childContextTypes","process","env","NODE_ENV"],"sources":["../../../src/organism/content-skill-modal/index.tsx"],"sourcesContent":["import React, {useCallback, useMemo} from 'react';\nimport BaseModal from '../../molecule/base-modal';\nimport ListItems from '../list-items';\nimport MultiFilterPanel from '../../molecule/multi-filter-panel';\nimport Provider from '../../atom/provider';\nimport {COLORS} from '../../variables/colors';\nimport style from './style.css';\nimport propTypes, {ContentSkillModalProps} from './types';\n\nconst ContentSkillModal = (props: ContentSkillModalProps) => {\n const {contentList, filters, modal} = props;\n const {selectAll, ...listProps} = contentList;\n const buttonLink = selectAll ? {...selectAll, type: 'secondary'} : listProps.buttonLink;\n const {\n isOpen,\n onCancel,\n onConfirm,\n onClose,\n title = 'Add content',\n description = 'Add courses, video, interactive and more to this skill',\n cancelLabel = 'Cancel',\n confirmLabel = 'Add',\n error,\n disabled = false\n } = modal;\n\n const handleCancel = useCallback(() => {\n onCancel();\n }, [onCancel]);\n const handleClose = useCallback(() => {\n onClose();\n }, [onClose]);\n\n const headerIcon = {\n name: 'circle-plus',\n color: COLORS.primary_600,\n backgroundColor: COLORS.primary_100\n };\n const footer = useMemo(\n () => ({\n text: error,\n isError: Boolean(error),\n cancelButton: {\n onCancel: handleCancel,\n label: cancelLabel\n },\n confirmButton: {\n onConfirm,\n label: confirmLabel,\n iconName: 'plus',\n disabled,\n color: COLORS.cm_primary_blue\n }\n }),\n [handleCancel, onConfirm, cancelLabel, confirmLabel, error, disabled]\n );\n\n const baseModalProps = {\n title,\n description,\n headerIcon,\n footer,\n isOpen,\n onClose: handleClose,\n // fullscreen modal\n customStyle: {\n height: '80vh',\n width: '80vw'\n }\n };\n\n if (!isOpen) return null;\n\n return (\n <BaseModal {...baseModalProps}>\n <div className={style.container}>\n <div className={style.containerList}>\n <ListItems {...listProps} buttonLink={buttonLink} />\n </div>\n <div className={style.filtersContainer}>\n <MultiFilterPanel {...filters} />\n </div>\n </div>\n </BaseModal>\n );\n};\n\nContentSkillModal.contextTypes = {\n translate: Provider.childContextTypes.translate\n};\n\nContentSkillModal.propTypes = propTypes;\n\nexport default ContentSkillModal;\n"],"mappings":";AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,OAAO,QAAO,OAAO;AACjD,OAAOC,SAAS,MAAM,2BAA2B;AACjD,OAAOC,SAAS,MAAM,eAAe;AACrC,OAAOC,gBAAgB,MAAM,mCAAmC;AAChE,OAAOC,QAAQ,MAAM,qBAAqB;AAC1C,SAAQC,MAAM,QAAO,wBAAwB;AAC7C,OAAOC,KAAK,MAAM,aAAa;AAC/B,OAAOC,SAAS,MAAgC,SAAS;AAEzD,MAAMC,iBAAiB,GAAIC,KAA6B,IAAK;EAC3D,MAAM;IAACC,WAAW;IAAEC,OAAO;IAAEC;EAAK,CAAC,GAAGH,KAAK;EAC3C,MAAM;IAACI,SAAS;IAAE,GAAGC;EAAS,CAAC,GAAGJ,WAAW;EAC7C,MAAMK,UAAU,GAAGF,SAAS,GAAG;IAAC,GAAGA,SAAS;IAAEG,IAAI,EAAE;EAAW,CAAC,GAAGF,SAAS,CAACC,UAAU;EACvF,MAAM;IACJE,MAAM;IACNC,QAAQ;IACRC,SAAS;IACTC,OAAO;IACPC,KAAK,GAAG,aAAa;IACrBC,WAAW,GAAG,wDAAwD;IACtEC,WAAW,GAAG,QAAQ;IACtBC,YAAY,GAAG,KAAK;IACpBC,KAAK;IACLC,QAAQ,GAAG;EACb,CAAC,GAAGd,KAAK;EAET,MAAMe,YAAY,GAAG5B,WAAW,CAAC,MAAM;IACrCmB,QAAQ,CAAC,CAAC;EACZ,CAAC,EAAE,CAACA,QAAQ,CAAC,CAAC;EACd,MAAMU,WAAW,GAAG7B,WAAW,CAAC,MAAM;IACpCqB,OAAO,CAAC,CAAC;EACX,CAAC,EAAE,CAACA,OAAO,CAAC,CAAC;EAEb,MAAMS,UAAU,GAAG;IACjBC,IAAI,EAAE,aAAa;IACnBC,KAAK,EAAE1B,MAAM,CAAC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AAEhB,CAAC;AAEDH,iBAAiB,CAAC8C,YAAY,GAAG;EAC/BC,SAAS,EAAEnD,QAAQ,CAACoD,iBAAiB,CAACD;AACxC,CAAC;AAED/C,iBAAiB,CAACD,SAAS,GAAAkD,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGpD,SAAS;AAEvC,eAAeC,iBAAiB","ignoreList":[]}
|
|
@@ -4,6 +4,11 @@ import ListItems from '../list-items';
|
|
|
4
4
|
import { MultiFilterPanelProps } from '../../molecule/multi-filter-panel/prop-types';
|
|
5
5
|
declare const ContentSkillModalPropTypes: {
|
|
6
6
|
contentList: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
7
|
+
selectAll: PropTypes.Requireable<PropTypes.InferProps<{
|
|
8
|
+
label: PropTypes.Validator<string>;
|
|
9
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
10
|
+
onClick: PropTypes.Validator<(...args: any[]) => any>;
|
|
11
|
+
}>>;
|
|
7
12
|
'aria-label': PropTypes.Requireable<string>;
|
|
8
13
|
buttonLink: PropTypes.Requireable<PropTypes.InferProps<{
|
|
9
14
|
type: PropTypes.Requireable<string>;
|
|
@@ -798,6 +803,12 @@ declare const ContentSkillModalPropTypes: {
|
|
|
798
803
|
}> | null | undefined> | null | undefined)[]>;
|
|
799
804
|
}>>>;
|
|
800
805
|
modal: PropTypes.Validator<NonNullable<PropTypes.InferProps<{
|
|
806
|
+
title: PropTypes.Requireable<string>;
|
|
807
|
+
description: PropTypes.Requireable<string>;
|
|
808
|
+
cancelLabel: PropTypes.Requireable<string>;
|
|
809
|
+
confirmLabel: PropTypes.Requireable<string>;
|
|
810
|
+
disabled: PropTypes.Requireable<boolean>;
|
|
811
|
+
error: PropTypes.Requireable<string>;
|
|
801
812
|
isOpen: PropTypes.Requireable<boolean>;
|
|
802
813
|
onCancel: PropTypes.Requireable<(...args: any[]) => any>;
|
|
803
814
|
onConfirm: PropTypes.Requireable<(...args: any[]) => any>;
|
|
@@ -806,13 +817,25 @@ declare const ContentSkillModalPropTypes: {
|
|
|
806
817
|
};
|
|
807
818
|
export default ContentSkillModalPropTypes;
|
|
808
819
|
declare type ModalProps = {
|
|
820
|
+
title?: string;
|
|
821
|
+
description?: string;
|
|
822
|
+
cancelLabel?: string;
|
|
823
|
+
confirmLabel?: string;
|
|
824
|
+
disabled?: boolean;
|
|
825
|
+
error?: string;
|
|
809
826
|
isOpen: boolean;
|
|
810
827
|
onCancel: () => void;
|
|
811
828
|
onConfirm: () => void;
|
|
812
829
|
onClose: () => void;
|
|
813
830
|
};
|
|
814
831
|
export declare type ContentSkillModalProps = {
|
|
815
|
-
contentList: React.ComponentProps<typeof ListItems
|
|
832
|
+
contentList: React.ComponentProps<typeof ListItems> & {
|
|
833
|
+
selectAll?: {
|
|
834
|
+
label: string;
|
|
835
|
+
disabled?: boolean;
|
|
836
|
+
onClick: () => void;
|
|
837
|
+
};
|
|
838
|
+
};
|
|
816
839
|
filters: MultiFilterPanelProps;
|
|
817
840
|
modal: ModalProps;
|
|
818
841
|
};
|