@coorpacademy/components 11.42.12 → 11.43.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.
Files changed (39) hide show
  1. package/es/organism/assignment-audience/index.d.ts +14 -13
  2. package/es/organism/assignment-audience/index.d.ts.map +1 -1
  3. package/es/organism/assignment-audience/index.js +62 -62
  4. package/es/organism/assignment-audience/index.js.map +1 -1
  5. package/es/organism/assignment-audience/types.d.ts +26 -24
  6. package/es/organism/assignment-audience/types.d.ts.map +1 -1
  7. package/es/organism/assignment-audience/types.js +14 -15
  8. package/es/organism/assignment-audience/types.js.map +1 -1
  9. package/es/organism/assignment-edition/index.d.ts +13 -12
  10. package/es/organism/assignment-edition/index.d.ts.map +1 -1
  11. package/es/organism/assignment-edition/types.d.ts +13 -12
  12. package/es/organism/assignment-edition/types.d.ts.map +1 -1
  13. package/es/organism/search-and-chips-results/index.d.ts +2 -0
  14. package/es/organism/search-and-chips-results/index.d.ts.map +1 -1
  15. package/es/organism/search-and-chips-results/index.js +16 -7
  16. package/es/organism/search-and-chips-results/index.js.map +1 -1
  17. package/es/organism/search-and-chips-results/style.css +11 -1
  18. package/es/organism/wizard-contents/index.d.ts +2 -0
  19. package/es/template/back-office/brand-update/index.d.ts +13 -12
  20. package/lib/organism/assignment-audience/index.d.ts +14 -13
  21. package/lib/organism/assignment-audience/index.d.ts.map +1 -1
  22. package/lib/organism/assignment-audience/index.js +62 -62
  23. package/lib/organism/assignment-audience/index.js.map +1 -1
  24. package/lib/organism/assignment-audience/types.d.ts +26 -24
  25. package/lib/organism/assignment-audience/types.d.ts.map +1 -1
  26. package/lib/organism/assignment-audience/types.js +14 -15
  27. package/lib/organism/assignment-audience/types.js.map +1 -1
  28. package/lib/organism/assignment-edition/index.d.ts +13 -12
  29. package/lib/organism/assignment-edition/index.d.ts.map +1 -1
  30. package/lib/organism/assignment-edition/types.d.ts +13 -12
  31. package/lib/organism/assignment-edition/types.d.ts.map +1 -1
  32. package/lib/organism/search-and-chips-results/index.d.ts +2 -0
  33. package/lib/organism/search-and-chips-results/index.d.ts.map +1 -1
  34. package/lib/organism/search-and-chips-results/index.js +16 -7
  35. package/lib/organism/search-and-chips-results/index.js.map +1 -1
  36. package/lib/organism/search-and-chips-results/style.css +11 -1
  37. package/lib/organism/wizard-contents/index.d.ts +2 -0
  38. package/lib/template/back-office/brand-update/index.d.ts +13 -12
  39. package/package.json +2 -2
@@ -35,10 +35,6 @@ const AssignmentAudiencePropTypes = {
35
35
  title: PropTypes.string.isRequired,
36
36
  subtitle: PropTypes.string,
37
37
  disabledExplanation: PropTypes.string,
38
- team: PropTypes.shape({
39
- label: PropTypes.string.isRequired,
40
- name: PropTypes.string.isRequired
41
- }),
42
38
  invalidTargets: PropTypes.arrayOf(PropTypes.shape({
43
39
  ref: PropTypes.string.isRequired,
44
40
  label: PropTypes.string.isRequired,
@@ -47,26 +43,29 @@ const AssignmentAudiencePropTypes = {
47
43
  invalidLabel: PropTypes.string,
48
44
  error: PropTypes.string,
49
45
  disabled: PropTypes.bool,
50
- everyone: PropTypes.shape({
51
- title: PropTypes.string,
52
- label: PropTypes.string.isRequired,
53
- value: PropTypes.bool.isRequired,
54
- // Receives the new boolean
55
- onChange: PropTypes.func.isRequired
56
- }),
57
46
  populations: PropTypes.shape({
58
47
  title: PropTypes.string,
59
48
  subtitle: PropTypes.string,
60
- label: PropTypes.string,
49
+ selectAllLabel: PropTypes.string,
50
+ unselectAllLabel: PropTypes.string,
51
+ search: PropTypes.shape({
52
+ placeholder: PropTypes.string,
53
+ value: PropTypes.string,
54
+ onChange: PropTypes.func
55
+ }),
56
+ emptyMessages: PropTypes.shape({
57
+ firstMessage: PropTypes.string,
58
+ secondMessage: PropTypes.string
59
+ }),
61
60
  options: PropTypes.arrayOf(PropTypes.shape({
62
61
  name: PropTypes.string.isRequired,
63
62
  value: PropTypes.string.isRequired,
64
63
  selected: PropTypes.bool.isRequired,
65
64
  // The population's learner count, formatted by the app, shown on its chip
66
- count: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
65
+ count: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
66
+ all: PropTypes.bool,
67
+ locked: PropTypes.bool
67
68
  })).isRequired,
68
- // Prefixes a removable chip's accessible name, e.g. 'Remove' → « Remove Managers FR »
69
- removeLabel: PropTypes.string,
70
69
  // Receives the selected options, with selected: true
71
70
  onChange: PropTypes.func.isRequired
72
71
  }),
@@ -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","assigned","expanded","toggleLabel","onToggle","notice","filters","key","onFilter","search","pagination","onPrevious","onNext","columns","fields","action","onClick","variant","actionText","selection","selectedIds","onToggleRow","onTogglePage","bulkActions","message","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\n selection: PropTypes.shape({\n selectedIds: PropTypes.arrayOf(PropTypes.string.isRequired).isRequired,\n onToggleRow: PropTypes.func.isRequired,\n onTogglePage: PropTypes.func.isRequired,\n summary: PropTypes.string,\n bulkActions: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string.isRequired,\n variant: PropTypes.oneOf(['danger', 'neutral']).isRequired,\n onClick: PropTypes.func.isRequired\n }).isRequired\n ),\n notice: PropTypes.shape({\n message: PropTypes.string.isRequired,\n action: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n })\n })\n }),\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\n selection?: {\n selectedIds: string[];\n onToggleRow: (id: string) => void;\n onTogglePage: () => void;\n summary?: string;\n bulkActions?: Array<{label: string; variant: 'danger' | 'neutral'; onClick: () => void}>;\n notice?: {message: string; action?: {label: string; onClick: () => void}};\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,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AAQ,EAAE,SAAS,CAAC,CAAC,CAACzC,UAAU;QAC1D+D,OAAO,EAAEjF,SAAS,CAACoB,IAAI,CAACF;MAC1B,CAAC,CAAC,CAACA,UACL,CAAC;MACDoD,MAAM,EAAEtE,SAAS,CAACG,KAAK,CAAC;QACtBsF,OAAO,EAAEzF,SAAS,CAACK,MAAM,CAACa,UAAU;QACpC8D,MAAM,EAAEhF,SAAS,CAACG,KAAK,CAAC;UACtBc,KAAK,EAAEjB,SAAS,CAACK,MAAM,CAACa,UAAU;UAClC+D,OAAO,EAAEjF,SAAS,CAACoB,IAAI,CAACF;QAC1B,CAAC;MACH,CAAC;IACH,CAAC,CAAC;IACFwE,QAAQ,EAAE1F,SAAS,CAACK,MAAM;IAC1BsF,UAAU,EAAE3F,SAAS,CAACK,MAAM,CAACa;EAC/B,CAAC,CAAC;EACF0E,KAAK,EAAE5F,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","invalidTargets","arrayOf","ref","invalidLabel","error","disabled","bool","populations","selectAllLabel","unselectAllLabel","search","placeholder","value","onChange","emptyMessages","firstMessage","secondMessage","options","selected","count","oneOfType","number","all","locked","upload","templateLink","href","templatePreview","header","rows","dropzone","description","browse","dropLabel","loadingLabel","status","oneOf","onUpload","individuals","suggestions","onSearch","onAdd","assigned","expanded","toggleLabel","onToggle","notice","filters","key","onFilter","pagination","onPrevious","onNext","columns","fields","action","onClick","variant","actionText","selection","selectedIds","onToggleRow","onTogglePage","bulkActions","message","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 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\n populations: PropTypes.shape({\n title: PropTypes.string,\n subtitle: PropTypes.string,\n selectAllLabel: PropTypes.string,\n unselectAllLabel: PropTypes.string,\n search: PropTypes.shape({\n placeholder: PropTypes.string,\n value: PropTypes.string,\n onChange: PropTypes.func\n }),\n emptyMessages: PropTypes.shape({\n firstMessage: PropTypes.string,\n secondMessage: PropTypes.string\n }),\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 all: PropTypes.bool,\n locked: PropTypes.bool\n })\n ).isRequired,\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\n selection: PropTypes.shape({\n selectedIds: PropTypes.arrayOf(PropTypes.string.isRequired).isRequired,\n onToggleRow: PropTypes.func.isRequired,\n onTogglePage: PropTypes.func.isRequired,\n summary: PropTypes.string,\n bulkActions: PropTypes.arrayOf(\n PropTypes.shape({\n label: PropTypes.string.isRequired,\n variant: PropTypes.oneOf(['danger', 'neutral']).isRequired,\n onClick: PropTypes.func.isRequired\n }).isRequired\n ),\n notice: PropTypes.shape({\n message: PropTypes.string.isRequired,\n action: PropTypes.shape({\n label: PropTypes.string.isRequired,\n onClick: PropTypes.func.isRequired\n })\n })\n }),\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 all?: boolean;\n locked?: boolean;\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\n selection?: {\n selectedIds: string[];\n onToggleRow: (id: string) => void;\n onTogglePage: () => void;\n summary?: string;\n bulkActions?: Array<{label: string; variant: 'danger' | 'neutral'; onClick: () => void}>;\n notice?: {message: string; action?: {label: string; onClick: () => void}};\n };\n footnote?: string;\n emptyLabel: string;\n};\n\nexport type AssignmentAudienceProps = {\n title: string;\n subtitle?: string;\n disabledExplanation?: string;\n invalidTargets?: Array<{ref: string; label: string; onRemove: () => void}>;\n invalidLabel?: string;\n error?: string;\n disabled?: boolean;\n populations?: {\n title?: string;\n subtitle?: string;\n selectAllLabel?: string;\n unselectAllLabel?: string;\n search?: {placeholder?: string; value?: string; onChange?: (query: string) => void};\n emptyMessages?: {firstMessage?: string; secondMessage?: string};\n options: PopulationOption[];\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,SAAS,CAACK,MAAM,CAACa,UAAU;EAC/BD,KAAK,EAAEjB,SAAS,CAACK,MAAM,CAACa,UAAU;EAClCO,KAAK,EAAEzB,SAAS,CAACK,MAAM,CAACa;AAC1B,C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S,CAACG,KAAK,CAAC;MACzBuF,WAAW,EAAE1F,SAAS,CAAC+B,OAAO,CAAC/B,SAAS,CAACK,MAAM,CAACa,UAAU,CAAC,CAACA,UAAU;MACtEyE,WAAW,EAAE3F,SAAS,CAACoB,IAAI,CAACF,UAAU;MACtC0E,YAAY,EAAE5F,SAAS,CAACoB,IAAI,CAACF,UAAU;MACvCJ,OAAO,EAAEd,SAAS,CAACK,MAAM;MACzBwF,WAAW,EAAE7F,SAAS,CAAC+B,OAAO,CAC5B/B,SAAS,CAACG,KAAK,CAAC;QACdc,KAAK,EAAEjB,SAAS,CAACK,MAAM,CAACa,UAAU;QAClCqE,OAAO,EAAEvF,SAAS,CAACkE,KAAK,CAAC,CAAC,QAAQ,EAAE,SAAS,CAAC,CAAC,CAAChD,UAAU;QAC1DoE,OAAO,EAAEtF,SAAS,CAACoB,IAAI,CAACF;MAC1B,CAAC,CAAC,CAACA,UACL,CAAC;MACD0D,MAAM,EAAE5E,SAAS,CAACG,KAAK,CAAC;QACtB2F,OAAO,EAAE9F,SAAS,CAACK,MAAM,CAACa,UAAU;QACpCmE,MAAM,EAAErF,SAAS,CAACG,KAAK,CAAC;UACtBc,KAAK,EAAEjB,SAAS,CAACK,MAAM,CAACa,UAAU;UAClCoE,OAAO,EAAEtF,SAAS,CAACoB,IAAI,CAACF;QAC1B,CAAC;MACH,CAAC;IACH,CAAC,CAAC;IACF6E,QAAQ,EAAE/F,SAAS,CAACK,MAAM;IAC1B2F,UAAU,EAAEhG,SAAS,CAACK,MAAM,CAACa;EAC/B,CAAC,CAAC;EACF+E,KAAK,EAAEjG,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":[]}
@@ -34,10 +34,6 @@ declare const AssignmentEdition: {
34
34
  title: import("prop-types").Validator<string>;
35
35
  subtitle: import("prop-types").Requireable<string>;
36
36
  disabledExplanation: import("prop-types").Requireable<string>;
37
- team: import("prop-types").Requireable<import("prop-types").InferProps<{
38
- label: import("prop-types").Validator<string>;
39
- name: import("prop-types").Validator<string>;
40
- }>>;
41
37
  invalidTargets: import("prop-types").Requireable<(import("prop-types").InferProps<{
42
38
  ref: import("prop-types").Validator<string>;
43
39
  label: import("prop-types").Validator<string>;
@@ -46,23 +42,28 @@ declare const AssignmentEdition: {
46
42
  invalidLabel: import("prop-types").Requireable<string>;
47
43
  error: import("prop-types").Requireable<string>;
48
44
  disabled: import("prop-types").Requireable<boolean>;
49
- everyone: import("prop-types").Requireable<import("prop-types").InferProps<{
50
- title: import("prop-types").Requireable<string>;
51
- label: import("prop-types").Validator<string>;
52
- value: import("prop-types").Validator<boolean>;
53
- onChange: import("prop-types").Validator<(...args: any[]) => any>;
54
- }>>;
55
45
  populations: import("prop-types").Requireable<import("prop-types").InferProps<{
56
46
  title: import("prop-types").Requireable<string>;
57
47
  subtitle: import("prop-types").Requireable<string>;
58
- label: import("prop-types").Requireable<string>;
48
+ selectAllLabel: import("prop-types").Requireable<string>;
49
+ unselectAllLabel: import("prop-types").Requireable<string>;
50
+ search: import("prop-types").Requireable<import("prop-types").InferProps<{
51
+ placeholder: import("prop-types").Requireable<string>;
52
+ value: import("prop-types").Requireable<string>;
53
+ onChange: import("prop-types").Requireable<(...args: any[]) => any>;
54
+ }>>;
55
+ emptyMessages: import("prop-types").Requireable<import("prop-types").InferProps<{
56
+ firstMessage: import("prop-types").Requireable<string>;
57
+ secondMessage: import("prop-types").Requireable<string>;
58
+ }>>;
59
59
  options: import("prop-types").Validator<(import("prop-types").InferProps<{
60
60
  name: import("prop-types").Validator<string>;
61
61
  value: import("prop-types").Validator<string>;
62
62
  selected: import("prop-types").Validator<boolean>;
63
63
  count: import("prop-types").Requireable<NonNullable<string | number | null | undefined>>;
64
+ all: import("prop-types").Requireable<boolean>;
65
+ locked: import("prop-types").Requireable<boolean>;
64
66
  }> | null | undefined)[]>;
65
- removeLabel: import("prop-types").Requireable<string>;
66
67
  onChange: import("prop-types").Validator<(...args: any[]) => any>;
67
68
  }>>;
68
69
  upload: import("prop-types").Requireable<import("prop-types").InferProps<{
@@ -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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHxB,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAoHxB,CAAC;AAGF,eAAe,iBAAiB,CAAC"}
@@ -87,10 +87,6 @@ export declare const propTypes: {
87
87
  title: PropTypes.Validator<string>;
88
88
  subtitle: PropTypes.Requireable<string>;
89
89
  disabledExplanation: PropTypes.Requireable<string>;
90
- team: PropTypes.Requireable<PropTypes.InferProps<{
91
- label: PropTypes.Validator<string>;
92
- name: PropTypes.Validator<string>;
93
- }>>;
94
90
  invalidTargets: PropTypes.Requireable<(PropTypes.InferProps<{
95
91
  ref: PropTypes.Validator<string>;
96
92
  label: PropTypes.Validator<string>;
@@ -99,23 +95,28 @@ export declare const propTypes: {
99
95
  invalidLabel: PropTypes.Requireable<string>;
100
96
  error: PropTypes.Requireable<string>;
101
97
  disabled: PropTypes.Requireable<boolean>;
102
- everyone: PropTypes.Requireable<PropTypes.InferProps<{
103
- title: PropTypes.Requireable<string>;
104
- label: PropTypes.Validator<string>;
105
- value: PropTypes.Validator<boolean>;
106
- onChange: PropTypes.Validator<(...args: any[]) => any>;
107
- }>>;
108
98
  populations: PropTypes.Requireable<PropTypes.InferProps<{
109
99
  title: PropTypes.Requireable<string>;
110
100
  subtitle: PropTypes.Requireable<string>;
111
- label: PropTypes.Requireable<string>;
101
+ selectAllLabel: PropTypes.Requireable<string>;
102
+ unselectAllLabel: PropTypes.Requireable<string>;
103
+ search: PropTypes.Requireable<PropTypes.InferProps<{
104
+ placeholder: PropTypes.Requireable<string>;
105
+ value: PropTypes.Requireable<string>;
106
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
107
+ }>>;
108
+ emptyMessages: PropTypes.Requireable<PropTypes.InferProps<{
109
+ firstMessage: PropTypes.Requireable<string>;
110
+ secondMessage: PropTypes.Requireable<string>;
111
+ }>>;
112
112
  options: PropTypes.Validator<(PropTypes.InferProps<{
113
113
  name: PropTypes.Validator<string>;
114
114
  value: PropTypes.Validator<string>;
115
115
  selected: PropTypes.Validator<boolean>;
116
116
  count: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
117
+ all: PropTypes.Requireable<boolean>;
118
+ locked: PropTypes.Requireable<boolean>;
117
119
  }> | null | undefined)[]>;
118
- removeLabel: PropTypes.Requireable<string>;
119
120
  onChange: PropTypes.Validator<(...args: any[]) => any>;
120
121
  }>>;
121
122
  upload: PropTypes.Requireable<PropTypes.InferProps<{
@@ -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,gBAAgB,EAAgC,MAAM,iCAAiC,CAAC;AAEhG,aAAK,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC,GAAG;IAC7F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK,EAAE,MAAM,KAAK,IAAI,CAAC;CACnC,CAAC;AACF,aAAK,SAAS,GAAG,OAAO,CAAC,IAAI,CAAC,SAAS,CAAC,UAAU,CAAC,OAAO,SAAS,CAAC,SAAS,CAAC,EAAE,UAAU,CAAC,CAAC,GAAG;IAC7F,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,QAAQ,EAAE,CAAC,KAAK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,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;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAmDrB,CAAC"}
@@ -2,8 +2,10 @@ export default SearchAndChipsResults;
2
2
  declare function SearchAndChipsResults(props: any): JSX.Element;
3
3
  declare namespace SearchAndChipsResults {
4
4
  const propTypes: {
5
+ resultsMaxHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
5
6
  selectAllButton: PropTypes.Requireable<PropTypes.InferProps<{
6
7
  label: PropTypes.Requireable<string>;
8
+ icon: PropTypes.Requireable<string>;
7
9
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
8
10
  disabled: PropTypes.Requireable<boolean>;
9
11
  'aria-label': PropTypes.Requireable<string>;
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/search-and-chips-results/index.js"],"names":[],"mappings":";AA0BA,gEA8CC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/search-and-chips-results/index.js"],"names":[],"mappings":";AA0BA,gEA2EC"}
@@ -28,6 +28,7 @@ const SearchAndChipsResults = props => {
28
28
  search,
29
29
  selectAllButton,
30
30
  results,
31
+ resultsMaxHeight,
31
32
  emptyMessages,
32
33
  isLoading = false,
33
34
  'results-aria-label': resultsAriaLabel
@@ -35,9 +36,10 @@ const SearchAndChipsResults = props => {
35
36
  const {
36
37
  onClick,
37
38
  label,
39
+ icon = 'add',
38
40
  disabled = false,
39
41
  'aria-label': ariaLabel
40
- } = selectAllButton;
42
+ } = selectAllButton || {};
41
43
  const resultView = buildResultView(results, resultsAriaLabel, emptyMessages, isLoading);
42
44
  const buttonProps = {
43
45
  type: 'secondary',
@@ -46,23 +48,28 @@ const SearchAndChipsResults = props => {
46
48
  'data-name': `select-all-button`,
47
49
  icon: {
48
50
  position: 'right',
49
- type: 'add'
51
+ type: icon
50
52
  },
51
53
  onClick,
52
54
  disabled
53
55
  };
54
56
  return /*#__PURE__*/React.createElement("div", {
55
57
  className: style.container
56
- }, /*#__PURE__*/React.createElement("div", {
58
+ }, search || selectAllButton ? /*#__PURE__*/React.createElement("div", {
57
59
  className: style.header
58
- }, /*#__PURE__*/React.createElement("div", {
60
+ }, selectAllButton ? /*#__PURE__*/React.createElement("div", {
59
61
  className: style.button
60
- }, /*#__PURE__*/React.createElement(ButtonLink, buttonProps)), /*#__PURE__*/React.createElement("div", {
62
+ }, /*#__PURE__*/React.createElement(ButtonLink, buttonProps)) : null, search ? /*#__PURE__*/React.createElement("div", {
61
63
  className: style.search
62
64
  }, /*#__PURE__*/React.createElement(Search, _extends({}, search, {
63
65
  theme: "coorpmanager"
64
- })))), /*#__PURE__*/React.createElement("div", {
65
- className: style.resultContainer
66
+ }))) : null) : null, /*#__PURE__*/React.createElement("div", {
67
+ className: resultsMaxHeight === undefined ? style.resultContainer : `${style.resultContainer} ${style.scrollResults}`,
68
+ "data-name": resultsMaxHeight === undefined ? undefined : 'results',
69
+ style: resultsMaxHeight === undefined ? undefined : {
70
+ maxHeight: typeof resultsMaxHeight === 'number' ? `${resultsMaxHeight}px` : resultsMaxHeight,
71
+ overflowY: 'auto'
72
+ }
66
73
  }, isLoading ? /*#__PURE__*/React.createElement("div", {
67
74
  className: style.loaderContainer
68
75
  }, /*#__PURE__*/React.createElement(Loader, {
@@ -71,8 +78,10 @@ const SearchAndChipsResults = props => {
71
78
  })) : resultView));
72
79
  };
73
80
  SearchAndChipsResults.propTypes = process.env.NODE_ENV !== "production" ? {
81
+ resultsMaxHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
74
82
  selectAllButton: PropTypes.shape({
75
83
  label: PropTypes.string,
84
+ icon: PropTypes.string,
76
85
  onClick: PropTypes.func,
77
86
  disabled: PropTypes.bool,
78
87
  'aria-label': PropTypes.string
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","names":["React","PropTypes","EmptySearchResult","Search","ButtonLink","Chips","Loader","style","buildResultView","results","resultsAriaLabel","emptyMessages","isLoading","_isEmpty","createElement","items","map","result","index","className","key","SearchAndChipsResults","props","search","selectAllButton","onClick","label","disabled","ariaLabel","resultView","buttonProps","type","icon","position","container","header","button","_extends","theme","resultContainer","loaderContainer","loader","propTypes","process","env","NODE_ENV","shape","string","func","bool","arrayOf","firstMessage","secondMessage"],"sources":["../../../src/organism/search-and-chips-results/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty} from 'lodash/fp';\nimport EmptySearchResult from '../../atom/empty-search-result';\nimport Search from '../../atom/input-search';\nimport ButtonLink from '../../atom/button-link';\nimport Chips from '../../atom/chips';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nconst buildResultView = (results, resultsAriaLabel, emptyMessages, isLoading) => {\n if (!isLoading && isEmpty(results)) {\n return <EmptySearchResult {...emptyMessages} />;\n }\n\n const items = results.map((result, index) => {\n return (\n <li className={style.result} key={`result-${index}`} data-name={`result-${index}`}>\n <Chips {...result} />\n </li>\n );\n });\n\n return <ul aria-label={resultsAriaLabel}>{items}</ul>;\n};\n\nconst SearchAndChipsResults = props => {\n const {\n search,\n selectAllButton,\n results,\n emptyMessages,\n isLoading = false,\n 'results-aria-label': resultsAriaLabel\n } = props;\n\n const {onClick, label, disabled = false, 'aria-label': ariaLabel} = selectAllButton;\n const resultView = buildResultView(results, resultsAriaLabel, emptyMessages, isLoading);\n const buttonProps = {\n type: 'secondary',\n label,\n 'aria-label': ariaLabel,\n 'data-name': `select-all-button`,\n icon: {\n position: 'right',\n type: 'add'\n },\n onClick,\n disabled\n };\n\n return (\n <div className={style.container}>\n <div className={style.header}>\n <div className={style.button}>\n <ButtonLink {...buttonProps} />\n </div>\n <div className={style.search}>\n <Search {...search} theme=\"coorpmanager\" />\n </div>\n </div>\n <div className={style.resultContainer}>\n {isLoading ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ) : (\n resultView\n )}\n </div>\n </div>\n );\n};\n\nSearchAndChipsResults.propTypes = {\n selectAllButton: PropTypes.shape({\n label: PropTypes.string,\n onClick: PropTypes.func,\n disabled: PropTypes.bool,\n 'aria-label': PropTypes.string\n }),\n isLoading: PropTypes.bool,\n search: PropTypes.shape(Search.PropTypes),\n results: PropTypes.arrayOf(PropTypes.shape(Chips.propTypes)),\n 'results-aria-label': PropTypes.string,\n emptyMessages: PropTypes.shape({\n firstMessage: PropTypes.string,\n secondMessage: PropTypes.string\n })\n};\n\nexport default SearchAndChipsResults;\n"],"mappings":";;AAAA,OAAOA,KAAK,MAAM,OAAO;AACzB,OAAOC,SAAS,MAAM,YAAY;AAElC,OAAOC,iBAAiB,MAAM,gCAAgC;AAC9D,OAAOC,MAAM,MAAM,yBAAyB;AAC5C,OAAOC,UAAU,MAAM,wBAAwB;AAC/C,OAAOC,KAAK,MAAM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,CAAC3C,MAAM,CAACF,SAAS,CAAC;EACzCQ,OAAO,EAAER,SAAS,CAACiD,OAAO,CAACjD,SAAS,CAAC6C,KAAK,CAACzC,KAAK,CAACqC,SAAS,CAAC,CAAC;EAC5D,oBAAoB,EAAEzC,SAAS,CAAC8C,MAAM;EACtCpC,aAAa,EAAEV,SAAS,CAAC6C,KAAK,CAAC;IAC7BK,YAAY,EAAElD,SAAS,CAAC8C,MAAM;IAC9BK,aAAa,EAAEnD,SAAS,CAAC8C;EAC3B,CAAC;AACH,CAAC;AAED,eAAe1B,qBAAqB","ignoreList":[]}
1
+ {"version":3,"file":"index.js","names":["React","PropTypes","EmptySearchResult","Search","ButtonLink","Chips","Loader","style","buildResultView","results","resultsAriaLabel","emptyMessages","isLoading","_isEmpty","createElement","items","map","result","index","className","key","SearchAndChipsResults","props","search","selectAllButton","resultsMaxHeight","onClick","label","icon","disabled","ariaLabel","resultView","buttonProps","type","position","container","header","button","_extends","theme","undefined","resultContainer","scrollResults","maxHeight","overflowY","loaderContainer","loader","propTypes","process","env","NODE_ENV","oneOfType","number","string","shape","func","bool","arrayOf","firstMessage","secondMessage"],"sources":["../../../src/organism/search-and-chips-results/index.js"],"sourcesContent":["import React from 'react';\nimport PropTypes from 'prop-types';\nimport {isEmpty} from 'lodash/fp';\nimport EmptySearchResult from '../../atom/empty-search-result';\nimport Search from '../../atom/input-search';\nimport ButtonLink from '../../atom/button-link';\nimport Chips from '../../atom/chips';\nimport Loader from '../../atom/loader';\nimport style from './style.css';\n\nconst buildResultView = (results, resultsAriaLabel, emptyMessages, isLoading) => {\n if (!isLoading && isEmpty(results)) {\n return <EmptySearchResult {...emptyMessages} />;\n }\n\n const items = results.map((result, index) => {\n return (\n <li className={style.result} key={`result-${index}`} data-name={`result-${index}`}>\n <Chips {...result} />\n </li>\n );\n });\n\n return <ul aria-label={resultsAriaLabel}>{items}</ul>;\n};\n\nconst SearchAndChipsResults = props => {\n const {\n search,\n selectAllButton,\n results,\n resultsMaxHeight,\n emptyMessages,\n isLoading = false,\n 'results-aria-label': resultsAriaLabel\n } = props;\n\n const {\n onClick,\n label,\n icon = 'add',\n disabled = false,\n 'aria-label': ariaLabel\n } = selectAllButton || {};\n const resultView = buildResultView(results, resultsAriaLabel, emptyMessages, isLoading);\n const buttonProps = {\n type: 'secondary',\n label,\n 'aria-label': ariaLabel,\n 'data-name': `select-all-button`,\n icon: {\n position: 'right',\n type: icon\n },\n onClick,\n disabled\n };\n\n return (\n <div className={style.container}>\n {search || selectAllButton ? (\n <div className={style.header}>\n {selectAllButton ? (\n <div className={style.button}>\n <ButtonLink {...buttonProps} />\n </div>\n ) : null}\n {search ? (\n <div className={style.search}>\n <Search {...search} theme=\"coorpmanager\" />\n </div>\n ) : null}\n </div>\n ) : null}\n <div\n className={\n resultsMaxHeight === undefined\n ? style.resultContainer\n : `${style.resultContainer} ${style.scrollResults}`\n }\n data-name={resultsMaxHeight === undefined ? undefined : 'results'}\n style={\n resultsMaxHeight === undefined\n ? undefined\n : {\n maxHeight:\n typeof resultsMaxHeight === 'number' ? `${resultsMaxHeight}px` : resultsMaxHeight,\n overflowY: 'auto'\n }\n }\n >\n {isLoading ? (\n <div className={style.loaderContainer}>\n <Loader className={style.loader} theme=\"coorpmanager\" />\n </div>\n ) : (\n resultView\n )}\n </div>\n </div>\n );\n};\n\nSearchAndChipsResults.propTypes = {\n resultsMaxHeight: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),\n selectAllButton: PropTypes.shape({\n label: PropTypes.string,\n icon: PropTypes.string,\n onClick: PropTypes.func,\n disabled: PropTypes.bool,\n 'aria-label': PropTypes.string\n }),\n isLoading: PropTypes.bool,\n search: PropTypes.shape(Search.PropTypes),\n results: PropTypes.arrayOf(PropTypes.shape(Chips.propTypes)),\n 'results-aria-label': PropTypes.string,\n emptyMessages: PropTypes.shape({\n firstMessage: PropTypes.string,\n secondMessage: PropTypes.string\n })\n};\n\nexport default SearchAndChipsResults;\n"],"mappings":";;AAAA,OAAOA,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47
  width: 60px;
48
- }
48
+ }
49
+
50
+ .scrollResults > ul {
51
+ margin: 0;
52
+ padding: 0;
53
+ }
54
+
55
+ /* No empty-header gap when a picker contains only results. */
56
+ .container > .scrollResults:first-child {
57
+ margin-top: 0;
58
+ }
@@ -249,8 +249,10 @@ declare namespace WizardContents {
249
249
  'list-aria-label': PropTypes.Requireable<string>;
250
250
  }> | PropTypes.InferProps<{
251
251
  type: PropTypes.Requireable<string>;
252
+ resultsMaxHeight: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
252
253
  selectAllButton: PropTypes.Requireable<PropTypes.InferProps<{
253
254
  label: PropTypes.Requireable<string>;
255
+ icon: PropTypes.Requireable<string>;
254
256
  onClick: PropTypes.Requireable<(...args: any[]) => any>;
255
257
  disabled: PropTypes.Requireable<boolean>;
256
258
  'aria-label': PropTypes.Requireable<string>;
@@ -1985,10 +1985,6 @@ declare namespace BrandUpdate {
1985
1985
  title: PropTypes.Validator<string>;
1986
1986
  subtitle: PropTypes.Requireable<string>;
1987
1987
  disabledExplanation: PropTypes.Requireable<string>;
1988
- team: PropTypes.Requireable<PropTypes.InferProps<{
1989
- label: PropTypes.Validator<string>;
1990
- name: PropTypes.Validator<string>;
1991
- }>>;
1992
1988
  invalidTargets: PropTypes.Requireable<(PropTypes.InferProps<{
1993
1989
  ref: PropTypes.Validator<string>;
1994
1990
  label: PropTypes.Validator<string>;
@@ -1997,23 +1993,28 @@ declare namespace BrandUpdate {
1997
1993
  invalidLabel: PropTypes.Requireable<string>;
1998
1994
  error: PropTypes.Requireable<string>;
1999
1995
  disabled: PropTypes.Requireable<boolean>;
2000
- everyone: PropTypes.Requireable<PropTypes.InferProps<{
2001
- title: PropTypes.Requireable<string>;
2002
- label: PropTypes.Validator<string>;
2003
- value: PropTypes.Validator<boolean>;
2004
- onChange: PropTypes.Validator<(...args: any[]) => any>;
2005
- }>>;
2006
1996
  populations: PropTypes.Requireable<PropTypes.InferProps<{
2007
1997
  title: PropTypes.Requireable<string>;
2008
1998
  subtitle: PropTypes.Requireable<string>;
2009
- label: PropTypes.Requireable<string>;
1999
+ selectAllLabel: PropTypes.Requireable<string>;
2000
+ unselectAllLabel: PropTypes.Requireable<string>;
2001
+ search: PropTypes.Requireable<PropTypes.InferProps<{
2002
+ placeholder: PropTypes.Requireable<string>;
2003
+ value: PropTypes.Requireable<string>;
2004
+ onChange: PropTypes.Requireable<(...args: any[]) => any>;
2005
+ }>>;
2006
+ emptyMessages: PropTypes.Requireable<PropTypes.InferProps<{
2007
+ firstMessage: PropTypes.Requireable<string>;
2008
+ secondMessage: PropTypes.Requireable<string>;
2009
+ }>>;
2010
2010
  options: PropTypes.Validator<(PropTypes.InferProps<{
2011
2011
  name: PropTypes.Validator<string>;
2012
2012
  value: PropTypes.Validator<string>;
2013
2013
  selected: PropTypes.Validator<boolean>;
2014
2014
  count: PropTypes.Requireable<NonNullable<string | number | null | undefined>>;
2015
+ all: PropTypes.Requireable<boolean>;
2016
+ locked: PropTypes.Requireable<boolean>;
2015
2017
  }> | null | undefined)[]>;
2016
- removeLabel: PropTypes.Requireable<string>;
2017
2018
  onChange: PropTypes.Validator<(...args: any[]) => any>;
2018
2019
  }>>;
2019
2020
  upload: PropTypes.Requireable<PropTypes.InferProps<{
@@ -2,15 +2,11 @@
2
2
  import { WebContextValues } from '../../atom/provider/web-context';
3
3
  import { AssignmentAudienceProps } from './types';
4
4
  declare const AssignmentAudience: {
5
- ({ title, subtitle, disabledExplanation, everyone, team, invalidTargets, invalidLabel, error, disabled, populations, upload, individuals, total, assigned }: AssignmentAudienceProps, context: WebContextValues): JSX.Element;
5
+ ({ title, subtitle, disabledExplanation, invalidTargets, invalidLabel, error, disabled, populations, upload, individuals, total, assigned }: AssignmentAudienceProps, context: WebContextValues): JSX.Element;
6
6
  propTypes: {
7
7
  title: import("prop-types").Validator<string>;
8
8
  subtitle: import("prop-types").Requireable<string>;
9
9
  disabledExplanation: import("prop-types").Requireable<string>;
10
- team: import("prop-types").Requireable<import("prop-types").InferProps<{
11
- label: import("prop-types").Validator<string>;
12
- name: import("prop-types").Validator<string>;
13
- }>>;
14
10
  invalidTargets: import("prop-types").Requireable<(import("prop-types").InferProps<{
15
11
  ref: import("prop-types").Validator<string>;
16
12
  label: import("prop-types").Validator<string>;
@@ -19,23 +15,28 @@ declare const AssignmentAudience: {
19
15
  invalidLabel: import("prop-types").Requireable<string>;
20
16
  error: import("prop-types").Requireable<string>;
21
17
  disabled: import("prop-types").Requireable<boolean>;
22
- everyone: import("prop-types").Requireable<import("prop-types").InferProps<{
23
- title: import("prop-types").Requireable<string>;
24
- label: import("prop-types").Validator<string>;
25
- value: import("prop-types").Validator<boolean>;
26
- onChange: import("prop-types").Validator<(...args: any[]) => any>;
27
- }>>;
28
18
  populations: import("prop-types").Requireable<import("prop-types").InferProps<{
29
19
  title: import("prop-types").Requireable<string>;
30
20
  subtitle: import("prop-types").Requireable<string>;
31
- label: import("prop-types").Requireable<string>;
21
+ selectAllLabel: import("prop-types").Requireable<string>;
22
+ unselectAllLabel: import("prop-types").Requireable<string>;
23
+ search: import("prop-types").Requireable<import("prop-types").InferProps<{
24
+ placeholder: import("prop-types").Requireable<string>;
25
+ value: import("prop-types").Requireable<string>;
26
+ onChange: import("prop-types").Requireable<(...args: any[]) => any>;
27
+ }>>;
28
+ emptyMessages: import("prop-types").Requireable<import("prop-types").InferProps<{
29
+ firstMessage: import("prop-types").Requireable<string>;
30
+ secondMessage: import("prop-types").Requireable<string>;
31
+ }>>;
32
32
  options: import("prop-types").Validator<(import("prop-types").InferProps<{
33
33
  name: import("prop-types").Validator<string>;
34
34
  value: import("prop-types").Validator<string>;
35
35
  selected: import("prop-types").Validator<boolean>;
36
36
  count: import("prop-types").Requireable<NonNullable<string | number | null | undefined>>;
37
+ all: import("prop-types").Requireable<boolean>;
38
+ locked: import("prop-types").Requireable<boolean>;
37
39
  }> | null | undefined)[]>;
38
- removeLabel: import("prop-types").Requireable<string>;
39
40
  onChange: import("prop-types").Validator<(...args: any[]) => any>;
40
41
  }>>;
41
42
  upload: import("prop-types").Requireable<import("prop-types").InferProps<{
@@ -1 +1 @@
1
- {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/assignment-audience/index.tsx"],"names":[],"mappings":";AAaA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAoC,EAClC,uBAAuB,EAGxB,MAAM,SAAS,CAAC;AAwDjB,QAAA,MAAM,kBAAkB;iKAgBnB,uBAAuB,WACjB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAue1B,CAAC;AAQF,eAAe,kBAAkB,CAAC"}
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../src/organism/assignment-audience/index.tsx"],"names":[],"mappings":";AAYA,OAAO,EAAC,gBAAgB,EAAC,MAAM,iCAAiC,CAAC;AAEjE,OAAoC,EAAC,uBAAuB,EAAU,MAAM,SAAS,CAAC;AAwDtF,QAAA,MAAM,kBAAkB;iJAcnB,uBAAuB,WACjB,gBAAgB;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;CAwe1B,CAAC;AAQF,eAAe,kBAAkB,CAAC"}