library benchmarks.src.naive_infinite_scroll.scroll_item; import "cells.dart" show CompanyNameComponent, OpportunityNameComponent, OfferingNameComponent, StageButtonsComponent, AccountCellComponent, FormattedCellComponent; import "package:angular2/angular2.dart" show Component, Directive, View, ChangeDetectionStrategy; import "common.dart" show Offering, ITEM_HEIGHT, COMPANY_NAME_WIDTH, OPPORTUNITY_NAME_WIDTH, OFFERING_NAME_WIDTH, ACCOUNT_CELL_WIDTH, BASE_POINTS_WIDTH, KICKER_POINTS_WIDTH, STAGE_BUTTONS_WIDTH, BUNDLES_WIDTH, DUE_DATE_WIDTH, END_DATE_WIDTH, AAT_STATUS_WIDTH; @Component(selector: "scroll-item", properties: const ["offering"], changeDetection: ChangeDetectionStrategy.OnPushObserve) @View( directives: const [ CompanyNameComponent, OpportunityNameComponent, OfferingNameComponent, StageButtonsComponent, AccountCellComponent, FormattedCellComponent ], template: '''
''') class ScrollItemComponent { Offering offering; num itemHeight; ScrollItemComponent() { this.itemHeight = ITEM_HEIGHT; } get companyNameWidth { return COMPANY_NAME_WIDTH; } get opportunityNameWidth { return OPPORTUNITY_NAME_WIDTH; } get offeringNameWidth { return OFFERING_NAME_WIDTH; } get accountCellWidth { return ACCOUNT_CELL_WIDTH; } get basePointsWidth { return BASE_POINTS_WIDTH; } get kickerPointsWidth { return KICKER_POINTS_WIDTH; } get stageButtonsWidth { return STAGE_BUTTONS_WIDTH; } get bundlesWidth { return BUNDLES_WIDTH; } get dueDateWidth { return DUE_DATE_WIDTH; } get endDateWidth { return END_DATE_WIDTH; } get aatStatusWidth { return AAT_STATUS_WIDTH; } }