import { mapSample } from 's-array'; // noinspection ES6UnusedImports import * as Surplus from 'surplus'; import { bindNumber, bindString, focusOnChangeToValue, sortableBindSarray, withClassIff } from '../../utils/surplus'; import { ContributorKind } from '../contributor/contributor-model'; import { ContributorView, DRAGGABLE_HANDLE_CLASS, INPUT_WIDTH_3_DIGITS, MAX_HOURS_PER_WEEK, MAX_PERSONS_PER_CONTRIBUTORS, } from '../contributor/contributor-view'; import { ContributorsCtrl, EXTERNAL_CONTRIBUTOR_VALUE } from './contributors-ctrl'; const HIDDEN_CLASS: string = 'd-none'; const SELECT_CLASS = 'custom-select custom-select-sm w-100'; const INPUT_CLASS = 'form-control form-control-sm'; const INPUT_CLASS_RIGHT = 'form-control form-control-sm text-right'; export function ContributorsView({className, ctrl}: {className?: string, ctrl: ContributorsCtrl}): HTMLElement { return
(ctrl.newEntryType, ContributorKind.EXTERNAL)} />
👤
h/week
; }