@coorpacademy/components 11.40.26 → 11.41.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 +1 -0
- package/es/atom/chip/index.d.ts.map +1 -1
- package/es/atom/chip/index.js +6 -3
- package/es/atom/chip/index.js.map +1 -1
- package/es/atom/drag-and-drop/index.d.ts +2 -0
- package/es/atom/drag-and-drop/index.d.ts.map +1 -1
- package/es/atom/drag-and-drop/index.js +9 -4
- package/es/atom/drag-and-drop/index.js.map +1 -1
- package/es/atom/input-date/index.d.ts +21 -0
- package/es/atom/input-date/index.d.ts.map +1 -0
- package/es/atom/input-date/index.js +73 -0
- package/es/atom/input-date/index.js.map +1 -0
- package/es/atom/input-date/style.css +88 -0
- package/es/atom/input-file-draggable/index.d.ts +10 -2
- package/es/atom/input-file-draggable/index.d.ts.map +1 -1
- package/es/atom/input-file-draggable/index.js +12 -4
- package/es/atom/input-file-draggable/index.js.map +1 -1
- package/es/atom/radio-with-title/index.d.ts +1 -0
- package/es/atom/radio-with-title/index.d.ts.map +1 -1
- package/es/atom/radio-with-title/types.d.ts +1 -0
- package/es/atom/radio-with-title/types.d.ts.map +1 -1
- package/es/atom/title/index.d.ts +1 -0
- package/es/atom/title/index.d.ts.map +1 -1
- package/es/atom/title/index.js +16 -6
- package/es/atom/title/index.js.map +1 -1
- package/es/atom/title/style.css +4 -0
- package/es/atom/video-upload/index.d.ts +2 -0
- package/es/molecule/assignment-card/index.d.ts +62 -0
- package/es/molecule/assignment-card/index.d.ts.map +1 -0
- package/es/molecule/assignment-card/index.js +91 -0
- package/es/molecule/assignment-card/index.js.map +1 -0
- package/es/molecule/assignment-card/style.css +98 -0
- package/es/molecule/assignment-status-tag/index.d.ts +13 -0
- package/es/molecule/assignment-status-tag/index.d.ts.map +1 -0
- package/es/molecule/assignment-status-tag/index.js +42 -0
- package/es/molecule/assignment-status-tag/index.js.map +1 -0
- package/es/molecule/assignment-status-tag/types.d.ts +15 -0
- package/es/molecule/assignment-status-tag/types.d.ts.map +1 -0
- package/es/molecule/assignment-status-tag/types.js +8 -0
- package/es/molecule/assignment-status-tag/types.js.map +1 -0
- package/es/molecule/brand-form-group/index.d.ts.map +1 -1
- package/es/molecule/brand-form-group/index.js +7 -0
- package/es/molecule/brand-form-group/index.js.map +1 -1
- package/es/molecule/card/index.d.ts +1 -0
- package/es/molecule/card/index.d.ts.map +1 -1
- package/es/molecule/card/index.js +3 -0
- package/es/molecule/card/index.js.map +1 -1
- package/es/molecule/card-content/index.d.ts +3 -1
- package/es/molecule/card-content/index.d.ts.map +1 -1
- package/es/molecule/card-content/index.js +7 -1
- package/es/molecule/card-content/index.js.map +1 -1
- package/es/molecule/cm-popin/types.d.ts +11 -0
- package/es/molecule/cm-popin/types.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/index.d.ts +3 -0
- package/es/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/index.js +11 -5
- package/es/molecule/dashboard/cards-list/index.js.map +1 -1
- package/es/molecule/dashboard/cards-list/prop-types.d.ts +1 -0
- package/es/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
- package/es/molecule/dashboard/cards-list/prop-types.js.map +1 -1
- package/es/molecule/drag-and-drop-wrapper/index.d.ts +6 -0
- package/es/molecule/draggable-list/index.d.ts +63 -54
- package/es/molecule/tabs/index.d.ts +1 -0
- package/es/molecule/tabs/index.d.ts.map +1 -1
- package/es/molecule/tabs/index.js +7 -3
- package/es/molecule/tabs/index.js.map +1 -1
- package/es/molecule/tabs/style.css +4 -0
- package/es/molecule/title-and-checkbox-wrapper/index.d.ts +13 -0
- package/es/molecule/title-radio-wrapper/index.d.ts +7 -0
- package/es/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/es/molecule/title-radio-wrapper/types.d.ts +7 -0
- package/es/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/es/organism/assignment-audience/index.d.ts +92 -0
- package/es/organism/assignment-audience/index.d.ts.map +1 -0
- package/es/organism/assignment-audience/index.js +236 -0
- package/es/organism/assignment-audience/index.js.map +1 -0
- package/es/organism/assignment-audience/style.css +115 -0
- package/es/organism/assignment-audience/types.d.ts +193 -0
- package/es/organism/assignment-audience/types.d.ts.map +1 -0
- package/es/organism/assignment-audience/types.js +108 -0
- package/es/organism/assignment-audience/types.js.map +1 -0
- package/es/organism/assignment-audience/upload-result.css +47 -0
- package/es/organism/assignment-audience/upload-result.d.ts +26 -0
- package/es/organism/assignment-audience/upload-result.d.ts.map +1 -0
- package/es/organism/assignment-audience/upload-result.js +89 -0
- package/es/organism/assignment-audience/upload-result.js.map +1 -0
- package/es/organism/assignment-row/index.d.ts +55 -0
- package/es/organism/assignment-row/index.d.ts.map +1 -0
- package/es/organism/assignment-row/index.js +38 -0
- package/es/organism/assignment-row/index.js.map +1 -0
- package/es/organism/assignment-row/types.d.ts +83 -0
- package/es/organism/assignment-row/types.d.ts.map +1 -0
- package/es/organism/assignment-row/types.js +29 -0
- package/es/organism/assignment-row/types.js.map +1 -0
- package/es/organism/brand-learning-priorities/index.d.ts +63 -54
- package/es/organism/content-skill-modal/index.d.ts +10 -0
- package/es/organism/content-skill-modal/index.d.ts.map +1 -1
- package/es/organism/content-skill-modal/types.d.ts +10 -0
- package/es/organism/content-skill-modal/types.d.ts.map +1 -1
- package/es/organism/list-item/index.d.ts +13 -1
- package/es/organism/list-item/index.d.ts.map +1 -1
- package/es/organism/list-item/index.js +45 -3
- package/es/organism/list-item/index.js.map +1 -1
- package/es/organism/list-item/style.css +36 -0
- package/es/organism/list-items/index.d.ts +10 -0
- package/es/organism/list-items/index.d.ts.map +1 -1
- package/es/organism/list-items/index.js +4 -1
- package/es/organism/list-items/index.js.map +1 -1
- package/es/organism/mooc-header/index.d.ts +7 -0
- package/es/organism/mooc-header/index.d.ts.map +1 -1
- package/es/organism/mooc-header/index.js +30 -1
- package/es/organism/mooc-header/index.js.map +1 -1
- package/es/organism/mooc-header/style.css +11 -0
- package/es/organism/rewards-form/index.d.ts +13 -0
- package/es/organism/select-opponents/index.d.ts +13 -0
- package/es/organism/select-opponents/index.d.ts.map +1 -1
- package/es/organism/select-opponents/types.d.ts +13 -0
- package/es/organism/select-opponents/types.d.ts.map +1 -1
- package/es/organism/title-and-input/index.d.ts +14 -0
- package/es/organism/title-and-input/index.d.ts.map +1 -1
- package/es/organism/title-and-input/types.d.ts +14 -0
- package/es/organism/title-and-input/types.d.ts.map +1 -1
- package/es/organism/wizard-contents/index.d.ts +13 -0
- package/es/template/app-player/loading/index.d.ts +11 -0
- package/es/template/app-player/player/index.d.ts +22 -0
- package/es/template/app-player/player/slides/index.d.ts +11 -0
- package/es/template/app-player/player/slides/index.d.ts.map +1 -1
- package/es/template/app-player/popin-correction/index.d.ts +11 -0
- package/es/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/es/template/app-player/popin-end/index.d.ts +14 -0
- package/es/template/app-player/popin-end/summary.d.ts +3 -0
- package/es/template/app-review/index.d.ts +11 -0
- package/es/template/app-review/index.d.ts.map +1 -1
- package/es/template/app-review/player/prop-types.d.ts +11 -0
- package/es/template/app-review/player/prop-types.d.ts.map +1 -1
- package/es/template/app-review/prop-types.d.ts +11 -0
- package/es/template/app-review/prop-types.d.ts.map +1 -1
- package/es/template/back-office/brand-update/index.d.ts +95 -54
- package/es/template/certification-detail/index.d.ts +11 -0
- package/es/template/cockpit/jw-uploader/index.d.ts +2 -0
- package/es/template/common/dashboard/index.d.ts +22 -0
- package/es/template/common/dashboard/index.d.ts.map +1 -1
- package/es/template/common/dashboard/index.js +37 -1
- package/es/template/common/dashboard/index.js.map +1 -1
- package/es/template/common/search-page/index.d.ts +17 -0
- package/es/template/external-course/index.d.ts +11 -0
- package/es/template/my-assignments/index.d.ts +167 -0
- package/es/template/my-assignments/index.d.ts.map +1 -0
- package/es/template/my-assignments/index.js +221 -0
- package/es/template/my-assignments/index.js.map +1 -0
- package/es/template/my-assignments/style.css +84 -0
- package/es/template/my-learning/index.d.ts +3 -0
- package/es/template/playlist-detail/index.d.ts +11 -0
- package/es/template/teams-dashboard/index.d.ts +3 -0
- package/es/util/proptypes.d.ts.map +1 -1
- package/es/util/proptypes.js +2 -2
- package/es/util/proptypes.js.map +1 -1
- package/lib/atom/chip/index.d.ts +1 -0
- package/lib/atom/chip/index.d.ts.map +1 -1
- package/lib/atom/chip/index.js +6 -3
- package/lib/atom/chip/index.js.map +1 -1
- package/lib/atom/drag-and-drop/index.d.ts +2 -0
- package/lib/atom/drag-and-drop/index.d.ts.map +1 -1
- package/lib/atom/drag-and-drop/index.js +9 -4
- package/lib/atom/drag-and-drop/index.js.map +1 -1
- package/lib/atom/input-date/index.d.ts +21 -0
- package/lib/atom/input-date/index.d.ts.map +1 -0
- package/lib/atom/input-date/index.js +80 -0
- package/lib/atom/input-date/index.js.map +1 -0
- package/lib/atom/input-date/style.css +88 -0
- package/lib/atom/input-file-draggable/index.d.ts +10 -2
- package/lib/atom/input-file-draggable/index.d.ts.map +1 -1
- package/lib/atom/input-file-draggable/index.js +12 -4
- package/lib/atom/input-file-draggable/index.js.map +1 -1
- package/lib/atom/radio-with-title/index.d.ts +1 -0
- package/lib/atom/radio-with-title/index.d.ts.map +1 -1
- package/lib/atom/radio-with-title/types.d.ts +1 -0
- package/lib/atom/radio-with-title/types.d.ts.map +1 -1
- package/lib/atom/title/index.d.ts +1 -0
- package/lib/atom/title/index.d.ts.map +1 -1
- package/lib/atom/title/index.js +16 -6
- package/lib/atom/title/index.js.map +1 -1
- package/lib/atom/title/style.css +4 -0
- package/lib/atom/video-upload/index.d.ts +2 -0
- package/lib/molecule/assignment-card/index.d.ts +62 -0
- package/lib/molecule/assignment-card/index.d.ts.map +1 -0
- package/lib/molecule/assignment-card/index.js +97 -0
- package/lib/molecule/assignment-card/index.js.map +1 -0
- package/lib/molecule/assignment-card/style.css +98 -0
- package/lib/molecule/assignment-status-tag/index.d.ts +13 -0
- package/lib/molecule/assignment-status-tag/index.d.ts.map +1 -0
- package/lib/molecule/assignment-status-tag/index.js +47 -0
- package/lib/molecule/assignment-status-tag/index.js.map +1 -0
- package/lib/molecule/assignment-status-tag/types.d.ts +15 -0
- package/lib/molecule/assignment-status-tag/types.d.ts.map +1 -0
- package/lib/molecule/assignment-status-tag/types.js +13 -0
- package/lib/molecule/assignment-status-tag/types.js.map +1 -0
- package/lib/molecule/brand-form-group/index.d.ts.map +1 -1
- package/lib/molecule/brand-form-group/index.js +7 -0
- package/lib/molecule/brand-form-group/index.js.map +1 -1
- package/lib/molecule/card/index.d.ts +1 -0
- package/lib/molecule/card/index.d.ts.map +1 -1
- package/lib/molecule/card/index.js +3 -0
- package/lib/molecule/card/index.js.map +1 -1
- package/lib/molecule/card-content/index.d.ts +3 -1
- package/lib/molecule/card-content/index.d.ts.map +1 -1
- package/lib/molecule/card-content/index.js +7 -1
- package/lib/molecule/card-content/index.js.map +1 -1
- package/lib/molecule/cm-popin/types.d.ts +11 -0
- package/lib/molecule/cm-popin/types.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.d.ts +3 -0
- package/lib/molecule/dashboard/cards-list/index.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/index.js +11 -5
- package/lib/molecule/dashboard/cards-list/index.js.map +1 -1
- package/lib/molecule/dashboard/cards-list/prop-types.d.ts +1 -0
- package/lib/molecule/dashboard/cards-list/prop-types.d.ts.map +1 -1
- package/lib/molecule/dashboard/cards-list/prop-types.js.map +1 -1
- package/lib/molecule/drag-and-drop-wrapper/index.d.ts +6 -0
- package/lib/molecule/draggable-list/index.d.ts +63 -54
- package/lib/molecule/tabs/index.d.ts +1 -0
- package/lib/molecule/tabs/index.d.ts.map +1 -1
- package/lib/molecule/tabs/index.js +7 -3
- package/lib/molecule/tabs/index.js.map +1 -1
- package/lib/molecule/tabs/style.css +4 -0
- package/lib/molecule/title-and-checkbox-wrapper/index.d.ts +13 -0
- package/lib/molecule/title-radio-wrapper/index.d.ts +7 -0
- package/lib/molecule/title-radio-wrapper/index.d.ts.map +1 -1
- package/lib/molecule/title-radio-wrapper/types.d.ts +7 -0
- package/lib/molecule/title-radio-wrapper/types.d.ts.map +1 -1
- package/lib/organism/assignment-audience/index.d.ts +92 -0
- package/lib/organism/assignment-audience/index.d.ts.map +1 -0
- package/lib/organism/assignment-audience/index.js +242 -0
- package/lib/organism/assignment-audience/index.js.map +1 -0
- package/lib/organism/assignment-audience/style.css +115 -0
- package/lib/organism/assignment-audience/types.d.ts +193 -0
- package/lib/organism/assignment-audience/types.d.ts.map +1 -0
- package/lib/organism/assignment-audience/types.js +112 -0
- package/lib/organism/assignment-audience/types.js.map +1 -0
- package/lib/organism/assignment-audience/upload-result.css +47 -0
- package/lib/organism/assignment-audience/upload-result.d.ts +26 -0
- package/lib/organism/assignment-audience/upload-result.d.ts.map +1 -0
- package/lib/organism/assignment-audience/upload-result.js +94 -0
- package/lib/organism/assignment-audience/upload-result.js.map +1 -0
- package/lib/organism/assignment-row/index.d.ts +55 -0
- package/lib/organism/assignment-row/index.d.ts.map +1 -0
- package/lib/organism/assignment-row/index.js +45 -0
- package/lib/organism/assignment-row/index.js.map +1 -0
- package/lib/organism/assignment-row/types.d.ts +83 -0
- package/lib/organism/assignment-row/types.d.ts.map +1 -0
- package/lib/organism/assignment-row/types.js +34 -0
- package/lib/organism/assignment-row/types.js.map +1 -0
- package/lib/organism/brand-learning-priorities/index.d.ts +63 -54
- package/lib/organism/content-skill-modal/index.d.ts +10 -0
- package/lib/organism/content-skill-modal/index.d.ts.map +1 -1
- package/lib/organism/content-skill-modal/types.d.ts +10 -0
- package/lib/organism/content-skill-modal/types.d.ts.map +1 -1
- package/lib/organism/list-item/index.d.ts +13 -1
- package/lib/organism/list-item/index.d.ts.map +1 -1
- package/lib/organism/list-item/index.js +44 -3
- package/lib/organism/list-item/index.js.map +1 -1
- package/lib/organism/list-item/style.css +36 -0
- package/lib/organism/list-items/index.d.ts +10 -0
- package/lib/organism/list-items/index.d.ts.map +1 -1
- package/lib/organism/list-items/index.js +4 -1
- package/lib/organism/list-items/index.js.map +1 -1
- package/lib/organism/mooc-header/index.d.ts +7 -0
- package/lib/organism/mooc-header/index.d.ts.map +1 -1
- package/lib/organism/mooc-header/index.js +30 -1
- package/lib/organism/mooc-header/index.js.map +1 -1
- package/lib/organism/mooc-header/style.css +11 -0
- package/lib/organism/rewards-form/index.d.ts +13 -0
- package/lib/organism/select-opponents/index.d.ts +13 -0
- package/lib/organism/select-opponents/index.d.ts.map +1 -1
- package/lib/organism/select-opponents/types.d.ts +13 -0
- package/lib/organism/select-opponents/types.d.ts.map +1 -1
- package/lib/organism/title-and-input/index.d.ts +14 -0
- package/lib/organism/title-and-input/index.d.ts.map +1 -1
- package/lib/organism/title-and-input/types.d.ts +14 -0
- package/lib/organism/title-and-input/types.d.ts.map +1 -1
- package/lib/organism/wizard-contents/index.d.ts +13 -0
- package/lib/template/app-player/loading/index.d.ts +11 -0
- package/lib/template/app-player/player/index.d.ts +22 -0
- package/lib/template/app-player/player/slides/index.d.ts +11 -0
- package/lib/template/app-player/player/slides/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-correction/index.d.ts +11 -0
- package/lib/template/app-player/popin-correction/index.d.ts.map +1 -1
- package/lib/template/app-player/popin-end/index.d.ts +14 -0
- package/lib/template/app-player/popin-end/summary.d.ts +3 -0
- package/lib/template/app-review/index.d.ts +11 -0
- package/lib/template/app-review/index.d.ts.map +1 -1
- package/lib/template/app-review/player/prop-types.d.ts +11 -0
- package/lib/template/app-review/player/prop-types.d.ts.map +1 -1
- package/lib/template/app-review/prop-types.d.ts +11 -0
- package/lib/template/app-review/prop-types.d.ts.map +1 -1
- package/lib/template/back-office/brand-update/index.d.ts +95 -54
- package/lib/template/certification-detail/index.d.ts +11 -0
- package/lib/template/cockpit/jw-uploader/index.d.ts +2 -0
- package/lib/template/common/dashboard/index.d.ts +22 -0
- package/lib/template/common/dashboard/index.d.ts.map +1 -1
- package/lib/template/common/dashboard/index.js +37 -1
- package/lib/template/common/dashboard/index.js.map +1 -1
- package/lib/template/common/search-page/index.d.ts +17 -0
- package/lib/template/external-course/index.d.ts +11 -0
- package/lib/template/my-assignments/index.d.ts +167 -0
- package/lib/template/my-assignments/index.d.ts.map +1 -0
- package/lib/template/my-assignments/index.js +227 -0
- package/lib/template/my-assignments/index.js.map +1 -0
- package/lib/template/my-assignments/style.css +84 -0
- package/lib/template/my-learning/index.d.ts +3 -0
- package/lib/template/playlist-detail/index.d.ts +11 -0
- package/lib/template/teams-dashboard/index.d.ts +3 -0
- package/lib/util/proptypes.d.ts.map +1 -1
- package/lib/util/proptypes.js +2 -2
- package/lib/util/proptypes.js.map +1 -1
- package/package.json +2 -2
|
@@ -0,0 +1,92 @@
|
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { AssignmentAudienceProps } from './types';
|
|
3
|
+
declare const AssignmentAudience: {
|
|
4
|
+
({ title, subtitle, disabledExplanation, everyone, populations, upload, individuals, total }: AssignmentAudienceProps): JSX.Element;
|
|
5
|
+
propTypes: {
|
|
6
|
+
title: import("prop-types").Validator<string>;
|
|
7
|
+
subtitle: import("prop-types").Requireable<string>;
|
|
8
|
+
disabledExplanation: import("prop-types").Requireable<string>;
|
|
9
|
+
everyone: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
10
|
+
title: import("prop-types").Requireable<string>;
|
|
11
|
+
label: import("prop-types").Validator<string>;
|
|
12
|
+
value: import("prop-types").Validator<boolean>;
|
|
13
|
+
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
14
|
+
}>>>;
|
|
15
|
+
populations: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
16
|
+
title: import("prop-types").Requireable<string>;
|
|
17
|
+
subtitle: import("prop-types").Requireable<string>;
|
|
18
|
+
label: import("prop-types").Requireable<string>;
|
|
19
|
+
options: import("prop-types").Validator<(import("prop-types").InferProps<{
|
|
20
|
+
name: import("prop-types").Validator<string>;
|
|
21
|
+
value: import("prop-types").Validator<string>;
|
|
22
|
+
selected: import("prop-types").Validator<boolean>;
|
|
23
|
+
count: import("prop-types").Requireable<NonNullable<string | number | null | undefined>>;
|
|
24
|
+
}> | null | undefined)[]>;
|
|
25
|
+
removeLabel: import("prop-types").Requireable<string>;
|
|
26
|
+
onChange: import("prop-types").Validator<(...args: any[]) => any>;
|
|
27
|
+
}>>>;
|
|
28
|
+
upload: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
29
|
+
title: import("prop-types").Requireable<string>;
|
|
30
|
+
subtitle: import("prop-types").Requireable<string>;
|
|
31
|
+
templateLink: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
32
|
+
label: import("prop-types").Requireable<string>;
|
|
33
|
+
href: import("prop-types").Requireable<string>;
|
|
34
|
+
}>>;
|
|
35
|
+
templatePreview: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
36
|
+
header: import("prop-types").Validator<string>;
|
|
37
|
+
rows: import("prop-types").Requireable<(string | null | undefined)[]>;
|
|
38
|
+
}>>;
|
|
39
|
+
dropzone: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
40
|
+
description: import("prop-types").Requireable<string>;
|
|
41
|
+
browse: import("prop-types").Requireable<string>;
|
|
42
|
+
dropLabel: import("prop-types").Requireable<string>;
|
|
43
|
+
loadingLabel: import("prop-types").Requireable<string>;
|
|
44
|
+
}>>;
|
|
45
|
+
status: import("prop-types").Validator<string>;
|
|
46
|
+
error: import("prop-types").Requireable<string>;
|
|
47
|
+
onUpload: import("prop-types").Validator<(...args: any[]) => any>;
|
|
48
|
+
file: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
49
|
+
name: import("prop-types").Requireable<string>;
|
|
50
|
+
detail: import("prop-types").Requireable<string>;
|
|
51
|
+
}>>;
|
|
52
|
+
summary: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
53
|
+
valid: import("prop-types").Requireable<string>;
|
|
54
|
+
unknown: import("prop-types").Requireable<string>;
|
|
55
|
+
ambiguous: import("prop-types").Requireable<string>;
|
|
56
|
+
inactive: import("prop-types").Requireable<string>;
|
|
57
|
+
}>>;
|
|
58
|
+
keptLabel: import("prop-types").Requireable<string>;
|
|
59
|
+
report: import("prop-types").Requireable<import("prop-types").InferProps<{
|
|
60
|
+
label: import("prop-types").Validator<string>;
|
|
61
|
+
onDownload: import("prop-types").Validator<(...args: any[]) => any>;
|
|
62
|
+
}>>;
|
|
63
|
+
removeLabel: import("prop-types").Requireable<string>;
|
|
64
|
+
onRemove: import("prop-types").Requireable<(...args: any[]) => any>;
|
|
65
|
+
}>>>;
|
|
66
|
+
individuals: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
67
|
+
title: import("prop-types").Requireable<string>;
|
|
68
|
+
placeholder: import("prop-types").Requireable<string>;
|
|
69
|
+
value: import("prop-types").Requireable<string>;
|
|
70
|
+
suggestions: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
71
|
+
id: import("prop-types").Validator<string>;
|
|
72
|
+
label: import("prop-types").Validator<string>;
|
|
73
|
+
login: import("prop-types").Validator<string>;
|
|
74
|
+
}> | null | undefined)[]>;
|
|
75
|
+
selected: import("prop-types").Requireable<(import("prop-types").InferProps<{
|
|
76
|
+
id: import("prop-types").Validator<string>;
|
|
77
|
+
label: import("prop-types").Validator<string>;
|
|
78
|
+
login: import("prop-types").Validator<string>;
|
|
79
|
+
}> | null | undefined)[]>;
|
|
80
|
+
removeLabel: import("prop-types").Requireable<string>;
|
|
81
|
+
onSearch: import("prop-types").Validator<(...args: any[]) => any>;
|
|
82
|
+
onAdd: import("prop-types").Validator<(...args: any[]) => any>;
|
|
83
|
+
onRemove: import("prop-types").Validator<(...args: any[]) => any>;
|
|
84
|
+
}>>>;
|
|
85
|
+
total: import("prop-types").Validator<NonNullable<import("prop-types").InferProps<{
|
|
86
|
+
label: import("prop-types").Validator<string>;
|
|
87
|
+
detail: import("prop-types").Requireable<string>;
|
|
88
|
+
}>>>;
|
|
89
|
+
};
|
|
90
|
+
};
|
|
91
|
+
export default AssignmentAudience;
|
|
92
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/assignment-audience/index.tsx"],"names":[],"mappings":";AASA,OAAoC,EAClC,uBAAuB,EAGxB,MAAM,SAAS,CAAC;AAwDjB,QAAA,MAAM,kBAAkB;kGASrB,uBAAuB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAqMzB,CAAC;AAIF,eAAe,kBAAkB,CAAC"}
|
|
@@ -0,0 +1,236 @@
|
|
|
1
|
+
import React, { useCallback, useMemo } from 'react';
|
|
2
|
+
import uniqueId from 'lodash/fp/uniqueId';
|
|
3
|
+
import InputSwitch from '../../atom/input-switch';
|
|
4
|
+
import SelectMultiple from '../../molecule/select-multiple';
|
|
5
|
+
import InputFileDraggable from '../../atom/input-file-draggable';
|
|
6
|
+
import Autocomplete from '../../atom/autocomplete';
|
|
7
|
+
import Title from '../../atom/title';
|
|
8
|
+
import Chip from '../../atom/chip';
|
|
9
|
+
import UploadResult from './upload-result';
|
|
10
|
+
import AssignmentAudiencePropTypes from './types';
|
|
11
|
+
import style from './style.css';
|
|
12
|
+
|
|
13
|
+
// ButtonLink is full width by default: in the Title row it would squeeze the title column.
|
|
14
|
+
const FIT_CONTENT = {
|
|
15
|
+
width: 'fit-content'
|
|
16
|
+
};
|
|
17
|
+
|
|
18
|
+
// csv, xls and xlsx, as the types FilesPropType knows
|
|
19
|
+
const ACCEPTED_FILES = ['text/csv', 'application/vnd.ms-excel', 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'].join(',');
|
|
20
|
+
const Block = ({
|
|
21
|
+
name,
|
|
22
|
+
title,
|
|
23
|
+
subtitle,
|
|
24
|
+
button,
|
|
25
|
+
children
|
|
26
|
+
}) => /*#__PURE__*/React.createElement("section", {
|
|
27
|
+
"data-name": name,
|
|
28
|
+
className: style.block
|
|
29
|
+
}, title ? /*#__PURE__*/React.createElement("div", {
|
|
30
|
+
className: style.blockHead
|
|
31
|
+
}, /*#__PURE__*/React.createElement(Title, {
|
|
32
|
+
type: "form-group",
|
|
33
|
+
titleSize: "medium",
|
|
34
|
+
title: title,
|
|
35
|
+
subtitle: subtitle,
|
|
36
|
+
button: button,
|
|
37
|
+
headingLevel: 3
|
|
38
|
+
})) : null, children);
|
|
39
|
+
|
|
40
|
+
// A sample of the file to upload: its one column, a header and two example logins.
|
|
41
|
+
const TemplatePreview = ({
|
|
42
|
+
header,
|
|
43
|
+
rows = []
|
|
44
|
+
}) => /*#__PURE__*/React.createElement("div", {
|
|
45
|
+
className: style.templatePreview,
|
|
46
|
+
"data-name": "upload-template-preview"
|
|
47
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
48
|
+
className: style.templateHeader
|
|
49
|
+
}, header), /*#__PURE__*/React.createElement("ul", {
|
|
50
|
+
className: style.templateRows
|
|
51
|
+
}, rows.map(row => /*#__PURE__*/React.createElement("li", {
|
|
52
|
+
key: row
|
|
53
|
+
}, row))));
|
|
54
|
+
|
|
55
|
+
// A removable chip says what a click does, e.g. « Remove Camille Durand »; no label, its text.
|
|
56
|
+
const chipLabel = (removeLabel, name) => removeLabel ? `${removeLabel} ${name}` : undefined;
|
|
57
|
+
const AssignmentAudience = ({
|
|
58
|
+
title,
|
|
59
|
+
subtitle,
|
|
60
|
+
disabledExplanation,
|
|
61
|
+
everyone,
|
|
62
|
+
populations,
|
|
63
|
+
upload,
|
|
64
|
+
individuals,
|
|
65
|
+
total
|
|
66
|
+
}) => {
|
|
67
|
+
const disabled = everyone.value;
|
|
68
|
+
const loading = upload.status === 'loading';
|
|
69
|
+
const {
|
|
70
|
+
onChange: onEveryoneChange
|
|
71
|
+
} = everyone;
|
|
72
|
+
const {
|
|
73
|
+
options: populationOptions,
|
|
74
|
+
onChange: onPopulationsChange
|
|
75
|
+
} = populations;
|
|
76
|
+
const {
|
|
77
|
+
onUpload,
|
|
78
|
+
onRemove: onRemoveFile
|
|
79
|
+
} = upload;
|
|
80
|
+
const {
|
|
81
|
+
value = '',
|
|
82
|
+
suggestions = [],
|
|
83
|
+
selected = [],
|
|
84
|
+
onSearch,
|
|
85
|
+
onAdd,
|
|
86
|
+
onRemove
|
|
87
|
+
} = individuals;
|
|
88
|
+
const explanationId = useMemo(() => uniqueId('assignment-audience-explanation-'), []);
|
|
89
|
+
const handlePopulations = useCallback(choices => onPopulationsChange(populationOptions.filter(option => choices.some(choice => choice.value === option.value)).map(option => ({
|
|
90
|
+
...option,
|
|
91
|
+
selected: true
|
|
92
|
+
}))), [populationOptions, onPopulationsChange]);
|
|
93
|
+
const selectedPopulations = useMemo(() => populationOptions.filter(option => option.selected), [populationOptions]);
|
|
94
|
+
const handleRemovePopulation = useCallback(populationValue => () => onPopulationsChange(selectedPopulations.filter(option => option.value !== populationValue)), [selectedPopulations, onPopulationsChange]);
|
|
95
|
+
|
|
96
|
+
// The native input receives both a browse and a drop, and fires change for each.
|
|
97
|
+
const handleFileChange = useCallback(event => {
|
|
98
|
+
const file = event.target.files && event.target.files[0];
|
|
99
|
+
if (disabled || loading || !file) return;
|
|
100
|
+
onUpload(file);
|
|
101
|
+
}, [disabled, loading, onUpload]);
|
|
102
|
+
|
|
103
|
+
// The loader's cross cancels the check: the file is dropped, as with Remove.
|
|
104
|
+
const handleCancelCheck = useCallback(() => {
|
|
105
|
+
if (onRemoveFile) onRemoveFile();
|
|
106
|
+
}, [onRemoveFile]);
|
|
107
|
+
const availableSuggestions = useMemo(() => suggestions.filter(suggestion => !selected.some(learner => learner.id === suggestion.id)), [suggestions, selected]);
|
|
108
|
+
const handleSearch = useCallback(event => onSearch(event.target.value), [onSearch]);
|
|
109
|
+
const handleAdd = useCallback(({
|
|
110
|
+
suggestion
|
|
111
|
+
}) => {
|
|
112
|
+
const learner = availableSuggestions.find(item => item.id === suggestion.value);
|
|
113
|
+
if (learner) onAdd(learner);
|
|
114
|
+
}, [availableSuggestions, onAdd]);
|
|
115
|
+
const handleRemove = useCallback(id => () => onRemove(id), [onRemove]);
|
|
116
|
+
return /*#__PURE__*/React.createElement("section", {
|
|
117
|
+
className: style.container,
|
|
118
|
+
"data-name": "assignment-audience",
|
|
119
|
+
"aria-label": title
|
|
120
|
+
}, /*#__PURE__*/React.createElement(Title, {
|
|
121
|
+
type: "form-group",
|
|
122
|
+
titleSize: "xl-strong",
|
|
123
|
+
title: title,
|
|
124
|
+
subtitle: subtitle,
|
|
125
|
+
headingLevel: 2
|
|
126
|
+
}), /*#__PURE__*/React.createElement(Block, {
|
|
127
|
+
name: "everyone",
|
|
128
|
+
title: everyone.title
|
|
129
|
+
}, /*#__PURE__*/React.createElement(InputSwitch, {
|
|
130
|
+
title: everyone.label,
|
|
131
|
+
value: everyone.value,
|
|
132
|
+
onChange: onEveryoneChange,
|
|
133
|
+
theme: "coorpmanager",
|
|
134
|
+
"data-name": "assignment-everyone",
|
|
135
|
+
"aria-label": everyone.label
|
|
136
|
+
}), disabled ? /*#__PURE__*/React.createElement("p", {
|
|
137
|
+
id: explanationId,
|
|
138
|
+
className: style.explanation
|
|
139
|
+
}, disabledExplanation) : null), /*#__PURE__*/React.createElement("fieldset", {
|
|
140
|
+
disabled: disabled,
|
|
141
|
+
"aria-describedby": disabled && disabledExplanation ? explanationId : undefined,
|
|
142
|
+
className: style.sources,
|
|
143
|
+
"data-name": "audience-sources"
|
|
144
|
+
}, /*#__PURE__*/React.createElement(Block, {
|
|
145
|
+
name: "populations",
|
|
146
|
+
title: populations.title,
|
|
147
|
+
subtitle: populations.subtitle
|
|
148
|
+
}, /*#__PURE__*/React.createElement(SelectMultiple, {
|
|
149
|
+
title: populations.label,
|
|
150
|
+
options: populations.options,
|
|
151
|
+
multiple: true,
|
|
152
|
+
theme: "coorpmanager",
|
|
153
|
+
disabled: disabled,
|
|
154
|
+
onChange: handlePopulations
|
|
155
|
+
}), selectedPopulations.length > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
156
|
+
className: style.chips,
|
|
157
|
+
"data-name": "population-chips"
|
|
158
|
+
}, selectedPopulations.map(option => /*#__PURE__*/React.createElement(Chip, {
|
|
159
|
+
key: option.value,
|
|
160
|
+
text: option.name,
|
|
161
|
+
subText: option.count === undefined ? undefined : `${option.count}`,
|
|
162
|
+
selected: true,
|
|
163
|
+
customIcon: disabled ? 'none' : 'times',
|
|
164
|
+
ariaLabel: disabled ? undefined : chipLabel(populations.removeLabel, option.name),
|
|
165
|
+
onClick: disabled ? undefined : handleRemovePopulation(option.value)
|
|
166
|
+
}))) : null), /*#__PURE__*/React.createElement(Block, {
|
|
167
|
+
name: "upload",
|
|
168
|
+
title: upload.title,
|
|
169
|
+
subtitle: upload.subtitle,
|
|
170
|
+
button: upload.templateLink ? {
|
|
171
|
+
type: 'text',
|
|
172
|
+
label: upload.templateLink.label,
|
|
173
|
+
link: disabled ? undefined : {
|
|
174
|
+
href: upload.templateLink.href,
|
|
175
|
+
download: true
|
|
176
|
+
},
|
|
177
|
+
disabled,
|
|
178
|
+
'data-name': 'upload-template-link',
|
|
179
|
+
customStyle: FIT_CONTENT
|
|
180
|
+
} : undefined
|
|
181
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
182
|
+
className: style.upload
|
|
183
|
+
}, upload.templatePreview ? /*#__PURE__*/React.createElement(TemplatePreview, upload.templatePreview) : null, /*#__PURE__*/React.createElement("div", {
|
|
184
|
+
className: upload.status === 'done' ? style.uploadMain : style.dropzone,
|
|
185
|
+
"aria-busy": loading,
|
|
186
|
+
"aria-live": "polite",
|
|
187
|
+
"data-name": "upload-dropzone"
|
|
188
|
+
}, upload.status === 'done' ? /*#__PURE__*/React.createElement(UploadResult, upload) : /*#__PURE__*/React.createElement(InputFileDraggable, {
|
|
189
|
+
name: "assignment-audience-file",
|
|
190
|
+
filesTypes: ACCEPTED_FILES,
|
|
191
|
+
description: upload.dropzone?.description,
|
|
192
|
+
uploadLabel: upload.dropzone?.browse,
|
|
193
|
+
errorButtonLabel: upload.dropzone?.browse,
|
|
194
|
+
dragAndDropLabel: upload.dropzone?.dropLabel,
|
|
195
|
+
loadingLabel: upload.dropzone?.loadingLabel,
|
|
196
|
+
loading: loading,
|
|
197
|
+
disabled: disabled,
|
|
198
|
+
error: upload.status === 'error' ? upload.error : '',
|
|
199
|
+
onChange: handleFileChange,
|
|
200
|
+
onReset: handleCancelCheck
|
|
201
|
+
})))), /*#__PURE__*/React.createElement(Block, {
|
|
202
|
+
name: "individuals",
|
|
203
|
+
title: individuals.title
|
|
204
|
+
}, /*#__PURE__*/React.createElement(Autocomplete, {
|
|
205
|
+
title: individuals.placeholder,
|
|
206
|
+
theme: "coorpmanager",
|
|
207
|
+
value: value,
|
|
208
|
+
suggestions: availableSuggestions.map(learner => ({
|
|
209
|
+
name: `${learner.label} · ${learner.login}`,
|
|
210
|
+
value: learner.id
|
|
211
|
+
})),
|
|
212
|
+
onInput: handleSearch,
|
|
213
|
+
onSuggestionSelected: handleAdd
|
|
214
|
+
}), selected.length > 0 ? /*#__PURE__*/React.createElement("div", {
|
|
215
|
+
className: style.chips
|
|
216
|
+
}, selected.map(learner => /*#__PURE__*/React.createElement(Chip, {
|
|
217
|
+
key: learner.id,
|
|
218
|
+
text: learner.label,
|
|
219
|
+
subText: learner.login,
|
|
220
|
+
selected: true,
|
|
221
|
+
customIcon: disabled ? 'none' : 'times',
|
|
222
|
+
ariaLabel: disabled ? undefined : chipLabel(individuals.removeLabel, learner.label),
|
|
223
|
+
onClick: disabled ? undefined : handleRemove(learner.id)
|
|
224
|
+
}))) : null)), /*#__PURE__*/React.createElement("div", {
|
|
225
|
+
className: style.total,
|
|
226
|
+
"data-name": "estimated-audience",
|
|
227
|
+
"aria-live": "polite"
|
|
228
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
229
|
+
className: style.totalLabel
|
|
230
|
+
}, total.label), total.detail ? /*#__PURE__*/React.createElement("span", {
|
|
231
|
+
className: style.muted
|
|
232
|
+
}, total.detail) : null));
|
|
233
|
+
};
|
|
234
|
+
AssignmentAudience.propTypes = process.env.NODE_ENV !== "production" ? AssignmentAudiencePropTypes : {};
|
|
235
|
+
export default AssignmentAudience;
|
|
236
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","names":["React","useCallback","useMemo","uniqueId","InputSwitch","SelectMultiple","InputFileDraggable","Autocomplete","Title","Chip","UploadResult","AssignmentAudiencePropTypes","style","FIT_CONTENT","width","ACCEPTED_FILES","join","Block","name","title","subtitle","button","children","createElement","className","block","blockHead","type","titleSize","headingLevel","TemplatePreview","header","rows","templatePreview","templateHeader","templateRows","map","row","key","chipLabel","removeLabel","undefined","AssignmentAudience","disabledExplanation","everyone","populations","upload","individuals","total","disabled","value","loading","status","onChange","onEveryoneChange","options","populationOptions","onPopulationsChange","onUpload","onRemove","onRemoveFile","suggestions","selected","onSearch","onAdd","explanationId","handlePopulations","choices","filter","option","some","choice","selectedPopulations","handleRemovePopulation","populationValue","handleFileChange","event","file","target","files","handleCancelCheck","availableSuggestions","suggestion","learner","id","handleSearch","handleAdd","find","item","handleRemove","container","label","theme","explanation","sources","multiple","length","chips","text","subText","count","customIcon","ariaLabel","onClick","templateLink","link","href","download","customStyle","uploadMain","dropzone","filesTypes","description","uploadLabel","browse","errorButtonLabel","dragAndDropLabel","dropLabel","loadingLabel","error","onReset","placeholder","login","onInput","onSuggestionSelected","totalLabel","detail","muted","propTypes","process","env","NODE_ENV"],"sources":["../../../src/organism/assignment-audience/index.tsx"],"sourcesContent":["import React, {useCallback, useMemo} from 'react';\nimport uniqueId from 'lodash/fp/uniqueId';\nimport InputSwitch from '../../atom/input-switch';\nimport SelectMultiple from '../../molecule/select-multiple';\nimport InputFileDraggable from '../../atom/input-file-draggable';\nimport Autocomplete from '../../atom/autocomplete';\nimport Title from '../../atom/title';\nimport Chip from '../../atom/chip';\nimport UploadResult from './upload-result';\nimport AssignmentAudiencePropTypes, {\n AssignmentAudienceProps,\n Learner,\n PopulationOption\n} from './types';\nimport style from './style.css';\n\n// ButtonLink is full width by default: in the Title row it would squeeze the title column.\nconst FIT_CONTENT = {width: 'fit-content'};\n\n// csv, xls and xlsx, as the types FilesPropType knows\nconst ACCEPTED_FILES = [\n 'text/csv',\n 'application/vnd.ms-excel',\n 'application/vnd.openxmlformats-officedocument.spreadsheetml.sheet'\n].join(',');\n\ntype BlockProps = {\n name: string;\n title?: string;\n subtitle?: string;\n // The Title's right-hand ButtonLink\n button?: Record<string, unknown>;\n children?: React.ReactNode;\n};\n\nconst Block = ({name, title, subtitle, button, children}: BlockProps) => (\n <section data-name={name} className={style.block}>\n {title ? (\n <div className={style.blockHead}>\n <Title\n type=\"form-group\"\n titleSize=\"medium\"\n title={title}\n subtitle={subtitle}\n button={button}\n headingLevel={3}\n />\n </div>\n ) : null}\n {children}\n </section>\n);\n\n// A sample of the file to upload: its one column, a header and two example logins.\nconst TemplatePreview = ({header, rows = []}: {header: string; rows?: string[]}) => (\n <div className={style.templatePreview} data-name=\"upload-template-preview\">\n <div className={style.templateHeader}>{header}</div>\n <ul className={style.templateRows}>\n {rows.map(row => (\n <li key={row}>{row}</li>\n ))}\n </ul>\n </div>\n);\n\n// A removable chip says what a click does, e.g. « Remove Camille Durand »; no label, its text.\nconst chipLabel = (removeLabel: string | undefined, name: string) =>\n removeLabel ? `${removeLabel} ${name}` : undefined;\n\nconst AssignmentAudience = ({\n title,\n subtitle,\n disabledExplanation,\n everyone,\n populations,\n upload,\n individuals,\n total\n}: AssignmentAudienceProps) => {\n const disabled = everyone.value;\n const loading = upload.status === 'loading';\n const {onChange: onEveryoneChange} = everyone;\n const {options: populationOptions, onChange: onPopulationsChange} = populations;\n const {onUpload, onRemove: onRemoveFile} = upload;\n const {value = '', suggestions = [], selected = [], onSearch, onAdd, onRemove} = individuals;\n const explanationId = useMemo(() => uniqueId('assignment-audience-explanation-'), []);\n const handlePopulations = useCallback(\n (choices: PopulationOption[]) =>\n onPopulationsChange(\n populationOptions\n .filter(option => choices.some(choice => choice.value === option.value))\n .map(option => ({...option, selected: true}))\n ),\n [populationOptions, onPopulationsChange]\n );\n const selectedPopulations = useMemo(\n () => populationOptions.filter(option => option.selected),\n [populationOptions]\n );\n const handleRemovePopulation = useCallback(\n (populationValue: string) => () =>\n onPopulationsChange(selectedPopulations.filter(option => option.value !== populationValue)),\n [selectedPopulations, onPopulationsChange]\n );\n\n // The native input receives both a browse and a drop, and fires change for each.\n const handleFileChange = useCallback(\n (event: React.ChangeEvent<HTMLInputElement>) => {\n const file = event.target.files && event.target.files[0];\n if (disabled || loading || !file) return;\n onUpload(file);\n },\n [disabled, loading, onUpload]\n );\n\n // The loader's cross cancels the check: the file is dropped, as with Remove.\n const handleCancelCheck = useCallback(() => {\n if (onRemoveFile) onRemoveFile();\n }, [onRemoveFile]);\n\n const availableSuggestions = useMemo(\n () => suggestions.filter(suggestion => !selected.some(learner => learner.id === suggestion.id)),\n [suggestions, selected]\n );\n const handleSearch = useCallback(\n (event: React.ChangeEvent<HTMLInputElement>) => onSearch(event.target.value),\n [onSearch]\n );\n const handleAdd = useCallback(\n ({suggestion}: {suggestion: {value: string}}) => {\n const learner = availableSuggestions.find(item => item.id === suggestion.value);\n if (learner) onAdd(learner);\n },\n [availableSuggestions, onAdd]\n );\n const handleRemove = useCallback((id: string) => () => onRemove(id), [onRemove]);\n\n return (\n <section className={style.container} data-name=\"assignment-audience\" aria-label={title}>\n <Title\n type=\"form-group\"\n titleSize=\"xl-strong\"\n title={title}\n subtitle={subtitle}\n headingLevel={2}\n />\n <Block name=\"everyone\" title={everyone.title}>\n <InputSwitch\n title={everyone.label}\n value={everyone.value}\n onChange={onEveryoneChange}\n theme=\"coorpmanager\"\n data-name=\"assignment-everyone\"\n aria-label={everyone.label}\n />\n {disabled ? (\n <p id={explanationId} className={style.explanation}>\n {disabledExplanation}\n </p>\n ) : null}\n </Block>\n <fieldset\n disabled={disabled}\n aria-describedby={disabled && disabledExplanation ? explanationId : undefined}\n className={style.sources}\n data-name=\"audience-sources\"\n >\n <Block name=\"populations\" title={populations.title} subtitle={populations.subtitle}>\n <SelectMultiple\n title={populations.label}\n options={populations.options}\n multiple\n theme=\"coorpmanager\"\n disabled={disabled}\n onChange={handlePopulations}\n />\n {selectedPopulations.length > 0 ? (\n <div className={style.chips} data-name=\"population-chips\">\n {selectedPopulations.map(option => (\n <Chip\n key={option.value}\n text={option.name}\n subText={option.count === undefined ? undefined : `${option.count}`}\n selected\n customIcon={disabled ? 'none' : 'times'}\n ariaLabel={disabled ? undefined : chipLabel(populations.removeLabel, option.name)}\n onClick={disabled ? undefined : handleRemovePopulation(option.value)}\n />\n ))}\n </div>\n ) : null}\n </Block>\n <Block\n name=\"upload\"\n title={upload.title}\n subtitle={upload.subtitle}\n button={\n upload.templateLink\n ? {\n type: 'text',\n label: upload.templateLink.label,\n link: disabled ? undefined : {href: upload.templateLink.href, download: true},\n disabled,\n 'data-name': 'upload-template-link',\n customStyle: FIT_CONTENT\n }\n : undefined\n }\n >\n <div className={style.upload}>\n {upload.templatePreview ? <TemplatePreview {...upload.templatePreview} /> : null}\n <div\n className={upload.status === 'done' ? style.uploadMain : style.dropzone}\n aria-busy={loading}\n aria-live=\"polite\"\n data-name=\"upload-dropzone\"\n >\n {upload.status === 'done' ? (\n <UploadResult {...upload} />\n ) : (\n <InputFileDraggable\n name=\"assignment-audience-file\"\n filesTypes={ACCEPTED_FILES}\n description={upload.dropzone?.description}\n uploadLabel={upload.dropzone?.browse}\n errorButtonLabel={upload.dropzone?.browse}\n dragAndDropLabel={upload.dropzone?.dropLabel}\n loadingLabel={upload.dropzone?.loadingLabel}\n loading={loading}\n disabled={disabled}\n error={upload.status === 'error' ? upload.error : ''}\n onChange={handleFileChange}\n onReset={handleCancelCheck}\n />\n )}\n </div>\n </div>\n </Block>\n <Block name=\"individuals\" title={individuals.title}>\n <Autocomplete\n title={individuals.placeholder}\n theme=\"coorpmanager\"\n value={value}\n suggestions={availableSuggestions.map(learner => ({\n name: `${learner.label} · ${learner.login}`,\n value: learner.id\n }))}\n onInput={handleSearch}\n onSuggestionSelected={handleAdd}\n />\n {selected.length > 0 ? (\n <div className={style.chips}>\n {selected.map((learner: Learner) => (\n <Chip\n key={learner.id}\n text={learner.label}\n subText={learner.login}\n selected\n customIcon={disabled ? 'none' : 'times'}\n ariaLabel={\n disabled ? undefined : chipLabel(individuals.removeLabel, learner.label)\n }\n onClick={disabled ? undefined : handleRemove(learner.id)}\n />\n ))}\n </div>\n ) : null}\n </Block>\n </fieldset>\n <div className={style.total} data-name=\"estimated-audience\" aria-live=\"polite\">\n <span className={style.totalLabel}>{total.label}</span>\n {total.detail ? <span className={style.muted}>{total.detail}</span> : null}\n </div>\n </section>\n );\n};\n\nAssignmentAudience.propTypes = AssignmentAudiencePropTypes;\n\nexport default AssignmentAudience;\n"],"mappings":"AAAA,OAAOA,KAAK,IAAGC,WAAW,EAAEC,OAAO,QAAO,OAAO;AACjD,OAAOC,QAAQ,MAAM,oBAAoB;AACzC,OAAOC,WAAW,MAAM,yBAAyB;AACjD,OAAOC,cAAc,MAAM,gCAAgC;AAC3D,OAAOC,kBAAkB,MAAM,iCAAiC;AAChE,OAAOC,YAAY,MAAM,yBAAyB;AAClD,OAAOC,KAAK,MAAM,kBAAkB;AACpC,OAAOC,IAAI,MAAM,iBAAiB;AAClC,OAAOC,YAAY,MAAM,iBAAiB;AAC1C,OAAOC,2BAA2B,MAI3B,SAAS;AAChB,OAAOC,KAAK,MAAM,aAAa;;AAE/B;AACA,MAAMC,WAAW,GAAG;EAACC,KAAK,EAAE;AAAa,CAAC;;AAE1C;AACA,MAAMC,cAAc,GAAG,CACrB,UAAU,EACV,0BAA0B,EAC1B,mEAAmE,CACpE,CAACC,IAAI,CAAC,GAAG,CAAC;AAWX,MAAMC,KAAK,GAAGA,CAAC;EAACC,IAAI;EAAEC,KAAK;EAAEC,QAAQ;EAAEC,MAAM;EAAEC;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C,GACJ,IACC,CACC,CAAC,eACXpF,KAAA,CAAAuB,aAAA;IAAKC,SAAS,EAAEZ,KAAK,CAACoC,KAAM;IAAC,aAAU,oBAAoB;IAAC,aAAU;EAAQ,gBAC5EhD,KAAA,CAAAuB,aAAA;IAAMC,SAAS,EAAEZ,KAAK,CAACiH;EAAW,GAAE7E,KAAK,CAAC2C,KAAY,CAAC,EACtD3C,KAAK,CAAC8E,MAAM,gBAAG9H,KAAA,CAAAuB,aAAA;IAAMC,SAAS,EAAEZ,KAAK,CAACmH;EAAM,GAAE/E,KAAK,CAAC8E,MAAa,CAAC,GAAG,IACnE,CACE,CAAC;AAEd,CAAC;AAEDpF,kBAAkB,CAACsF,SAAS,GAAAC,OAAA,CAAAC,GAAA,CAAAC,QAAA,oBAAGxH,2BAA2B;AAE1D,eAAe+B,kBAAkB","ignoreList":[]}
|
|
@@ -0,0 +1,115 @@
|
|
|
1
|
+
@value colors: "../../variables/colors.css";
|
|
2
|
+
@value cm_grey_75, cm_grey_100, cm_grey_200, cm_grey_500, cm_grey_700 from colors;
|
|
3
|
+
|
|
4
|
+
.container {
|
|
5
|
+
display: flex;
|
|
6
|
+
flex-direction: column;
|
|
7
|
+
gap: 24px;
|
|
8
|
+
min-width: 0;
|
|
9
|
+
width: 100%;
|
|
10
|
+
font-family: Gilroy;
|
|
11
|
+
color: cm_grey_700;
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
.muted {
|
|
15
|
+
margin: 4px 0 0;
|
|
16
|
+
font-size: 14px;
|
|
17
|
+
font-weight: 500;
|
|
18
|
+
line-height: 20px;
|
|
19
|
+
color: cm_grey_500;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
.block {
|
|
23
|
+
min-width: 0;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
.blockHead {
|
|
27
|
+
margin-bottom: 12px;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
.explanation {
|
|
31
|
+
margin: 12px 0 0;
|
|
32
|
+
font-size: 14px;
|
|
33
|
+
line-height: 20px;
|
|
34
|
+
}
|
|
35
|
+
|
|
36
|
+
.sources {
|
|
37
|
+
border: 0;
|
|
38
|
+
margin: 0;
|
|
39
|
+
padding: 0;
|
|
40
|
+
min-width: 0;
|
|
41
|
+
display: flex;
|
|
42
|
+
flex-direction: column;
|
|
43
|
+
gap: 24px;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
.sources:disabled {
|
|
47
|
+
opacity: 0.5;
|
|
48
|
+
}
|
|
49
|
+
|
|
50
|
+
/* The template preview column, then the uploader or the uploaded file */
|
|
51
|
+
.upload {
|
|
52
|
+
display: flex;
|
|
53
|
+
align-items: flex-start;
|
|
54
|
+
gap: 20px;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
.uploadMain {
|
|
58
|
+
flex: 1;
|
|
59
|
+
min-width: 0;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
/* The Coorpmanager uploader fills its parent's height */
|
|
63
|
+
.dropzone {
|
|
64
|
+
composes: uploadMain;
|
|
65
|
+
height: 220px;
|
|
66
|
+
}
|
|
67
|
+
|
|
68
|
+
.templatePreview {
|
|
69
|
+
flex: 0 0 150px;
|
|
70
|
+
border: 1px solid cm_grey_200;
|
|
71
|
+
border-radius: 8px;
|
|
72
|
+
overflow: hidden;
|
|
73
|
+
font-family: Menlo, Consolas, monospace;
|
|
74
|
+
font-size: 12px;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.templateHeader,
|
|
78
|
+
.templateRows li {
|
|
79
|
+
padding: 6px 10px;
|
|
80
|
+
}
|
|
81
|
+
|
|
82
|
+
.templateHeader {
|
|
83
|
+
background-color: cm_grey_75;
|
|
84
|
+
font-weight: 700;
|
|
85
|
+
}
|
|
86
|
+
|
|
87
|
+
.templateRows {
|
|
88
|
+
margin: 0;
|
|
89
|
+
padding: 0;
|
|
90
|
+
list-style: none;
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
.templateRows li {
|
|
94
|
+
border-top: 1px solid cm_grey_100;
|
|
95
|
+
}
|
|
96
|
+
|
|
97
|
+
.chips {
|
|
98
|
+
display: flex;
|
|
99
|
+
flex-wrap: wrap;
|
|
100
|
+
gap: 8px;
|
|
101
|
+
margin-top: 12px;
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.total {
|
|
105
|
+
display: flex;
|
|
106
|
+
flex-direction: column;
|
|
107
|
+
gap: 2px;
|
|
108
|
+
padding-top: 16px;
|
|
109
|
+
border-top: 1px solid cm_grey_100;
|
|
110
|
+
}
|
|
111
|
+
|
|
112
|
+
.totalLabel {
|
|
113
|
+
font-size: 16px;
|
|
114
|
+
font-weight: 700;
|
|
115
|
+
}
|