type
stringclasses
7 values
content
stringlengths
4
9.55k
repo
stringlengths
7
96
path
stringlengths
4
178
language
stringclasses
1 value
MethodDeclaration
static bind(address: Address): XXMOONToken { return new XXMOONToken("XXMOONToken", address); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
_liquidityFee(): BigInt { let result = super.call("_liquidityFee", "_liquidityFee():(uint256)", []); return result[0].toBigInt(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try__liquidityFee(): ethereum.CallResult<BigInt> { let result = super.tryCall( "_liquidityFee", "_liquidityFee():(uint256)", [] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt(...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
_maxTxAmount(): BigInt { let result = super.call("_maxTxAmount", "_maxTxAmount():(uint256)", []); return result[0].toBigInt(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try__maxTxAmount(): ethereum.CallResult<BigInt> { let result = super.tryCall("_maxTxAmount", "_maxTxAmount():(uint256)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt()); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
_taxFee(): BigInt { let result = super.call("_taxFee", "_taxFee():(uint256)", []); return result[0].toBigInt(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try__taxFee(): ethereum.CallResult<BigInt> { let result = super.tryCall("_taxFee", "_taxFee():(uint256)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt()); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
allowance(owner: Address, spender: Address): BigInt { let result = super.call( "allowance", "allowance(address,address):(uint256)", [ethereum.Value.fromAddress(owner), ethereum.Value.fromAddress(spender)] ); return result[0].toBigInt(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_allowance(owner: Address, spender: Address): ethereum.CallResult<BigInt> { let result = super.tryCall( "allowance", "allowance(address,address):(uint256)", [ethereum.Value.fromAddress(owner), ethereum.Value.fromAddress(spender)] ); if (result.reverted) { return new ethereum.Call...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
approve(spender: Address, amount: BigInt): boolean { let result = super.call("approve", "approve(address,uint256):(bool)", [ ethereum.Value.fromAddress(spender), ethereum.Value.fromUnsignedBigInt(amount) ]); return result[0].toBoolean(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_approve(spender: Address, amount: BigInt): ethereum.CallResult<boolean> { let result = super.tryCall("approve", "approve(address,uint256):(bool)", [ ethereum.Value.fromAddress(spender), ethereum.Value.fromUnsignedBigInt(amount) ]); if (result.reverted) { return new ethereum.CallResult...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
balanceOf(account: Address): BigInt { let result = super.call("balanceOf", "balanceOf(address):(uint256)", [ ethereum.Value.fromAddress(account) ]); return result[0].toBigInt(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_balanceOf(account: Address): ethereum.CallResult<BigInt> { let result = super.tryCall("balanceOf", "balanceOf(address):(uint256)", [ ethereum.Value.fromAddress(account) ]); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallR...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
batchTransfer( addressList: Array<Address>, amountList: Array<BigInt> ): boolean { let result = super.call( "batchTransfer", "batchTransfer(address[],uint256[]):(bool)", [ ethereum.Value.fromAddressArray(addressList), ethereum.Value.fromUnsignedBigIntArray(amountList) ...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_batchTransfer( addressList: Array<Address>, amountList: Array<BigInt> ): ethereum.CallResult<boolean> { let result = super.tryCall( "batchTransfer", "batchTransfer(address[],uint256[]):(bool)", [ ethereum.Value.fromAddressArray(addressList), ethereum.Value.fromUnsign...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
decimals(): i32 { let result = super.call("decimals", "decimals():(uint8)", []); return result[0].toI32(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_decimals(): ethereum.CallResult<i32> { let result = super.tryCall("decimals", "decimals():(uint8)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toI32()); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
decreaseAllowance(spender: Address, subtractedValue: BigInt): boolean { let result = super.call( "decreaseAllowance", "decreaseAllowance(address,uint256):(bool)", [ ethereum.Value.fromAddress(spender), ethereum.Value.fromUnsignedBigInt(subtractedValue) ] ); return r...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_decreaseAllowance( spender: Address, subtractedValue: BigInt ): ethereum.CallResult<boolean> { let result = super.tryCall( "decreaseAllowance", "decreaseAllowance(address,uint256):(bool)", [ ethereum.Value.fromAddress(spender), ethereum.Value.fromUnsignedBigInt(subtr...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
geUnlockTime(): BigInt { let result = super.call("geUnlockTime", "geUnlockTime():(uint256)", []); return result[0].toBigInt(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_geUnlockTime(): ethereum.CallResult<BigInt> { let result = super.tryCall("geUnlockTime", "geUnlockTime():(uint256)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt()); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
increaseAllowance(spender: Address, addedValue: BigInt): boolean { let result = super.call( "increaseAllowance", "increaseAllowance(address,uint256):(bool)", [ ethereum.Value.fromAddress(spender), ethereum.Value.fromUnsignedBigInt(addedValue) ] ); return result[0].t...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_increaseAllowance( spender: Address, addedValue: BigInt ): ethereum.CallResult<boolean> { let result = super.tryCall( "increaseAllowance", "increaseAllowance(address,uint256):(bool)", [ ethereum.Value.fromAddress(spender), ethereum.Value.fromUnsignedBigInt(addedValue...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
isExcludedFromFee(account: Address): boolean { let result = super.call( "isExcludedFromFee", "isExcludedFromFee(address):(bool)", [ethereum.Value.fromAddress(account)] ); return result[0].toBoolean(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_isExcludedFromFee(account: Address): ethereum.CallResult<boolean> { let result = super.tryCall( "isExcludedFromFee", "isExcludedFromFee(address):(bool)", [ethereum.Value.fromAddress(account)] ); if (result.reverted) { return new ethereum.CallResult(); } let value = resul...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
isExcludedFromReward(account: Address): boolean { let result = super.call( "isExcludedFromReward", "isExcludedFromReward(address):(bool)", [ethereum.Value.fromAddress(account)] ); return result[0].toBoolean(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_isExcludedFromReward(account: Address): ethereum.CallResult<boolean> { let result = super.tryCall( "isExcludedFromReward", "isExcludedFromReward(address):(bool)", [ethereum.Value.fromAddress(account)] ); if (result.reverted) { return new ethereum.CallResult(); } let valu...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
name(): string { let result = super.call("name", "name():(string)", []); return result[0].toString(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_name(): ethereum.CallResult<string> { let result = super.tryCall("name", "name():(string)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toString()); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
owner(): Address { let result = super.call("owner", "owner():(address)", []); return result[0].toAddress(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_owner(): ethereum.CallResult<Address> { let result = super.tryCall("owner", "owner():(address)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toAddress()); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
pancakeV2Pair(): Address { let result = super.call("pancakeV2Pair", "pancakeV2Pair():(address)", []); return result[0].toAddress(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_pancakeV2Pair(): ethereum.CallResult<Address> { let result = super.tryCall( "pancakeV2Pair", "pancakeV2Pair():(address)", [] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toAddres...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
pancakeV2Router(): Address { let result = super.call( "pancakeV2Router", "pancakeV2Router():(address)", [] ); return result[0].toAddress(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_pancakeV2Router(): ethereum.CallResult<Address> { let result = super.tryCall( "pancakeV2Router", "pancakeV2Router():(address)", [] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].to...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
reflectionFromToken(tAmount: BigInt, deductTransferFee: boolean): BigInt { let result = super.call( "reflectionFromToken", "reflectionFromToken(uint256,bool):(uint256)", [ ethereum.Value.fromUnsignedBigInt(tAmount), ethereum.Value.fromBoolean(deductTransferFee) ] ); ...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_reflectionFromToken( tAmount: BigInt, deductTransferFee: boolean ): ethereum.CallResult<BigInt> { let result = super.tryCall( "reflectionFromToken", "reflectionFromToken(uint256,bool):(uint256)", [ ethereum.Value.fromUnsignedBigInt(tAmount), ethereum.Value.fromBoolea...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
swapAndLiquifyEnabled(): boolean { let result = super.call( "swapAndLiquifyEnabled", "swapAndLiquifyEnabled():(bool)", [] ); return result[0].toBoolean(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_swapAndLiquifyEnabled(): ethereum.CallResult<boolean> { let result = super.tryCall( "swapAndLiquifyEnabled", "swapAndLiquifyEnabled():(bool)", [] ); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromVa...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
symbol(): string { let result = super.call("symbol", "symbol():(string)", []); return result[0].toString(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_symbol(): ethereum.CallResult<string> { let result = super.tryCall("symbol", "symbol():(string)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toString()); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
tokenFromReflection(rAmount: BigInt): BigInt { let result = super.call( "tokenFromReflection", "tokenFromReflection(uint256):(uint256)", [ethereum.Value.fromUnsignedBigInt(rAmount)] ); return result[0].toBigInt(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_tokenFromReflection(rAmount: BigInt): ethereum.CallResult<BigInt> { let result = super.tryCall( "tokenFromReflection", "tokenFromReflection(uint256):(uint256)", [ethereum.Value.fromUnsignedBigInt(rAmount)] ); if (result.reverted) { return new ethereum.CallResult(); } let...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
totalFees(): BigInt { let result = super.call("totalFees", "totalFees():(uint256)", []); return result[0].toBigInt(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_totalFees(): ethereum.CallResult<BigInt> { let result = super.tryCall("totalFees", "totalFees():(uint256)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt()); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
totalSupply(): BigInt { let result = super.call("totalSupply", "totalSupply():(uint256)", []); return result[0].toBigInt(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_totalSupply(): ethereum.CallResult<BigInt> { let result = super.tryCall("totalSupply", "totalSupply():(uint256)", []); if (result.reverted) { return new ethereum.CallResult(); } let value = result.value; return ethereum.CallResult.fromValue(value[0].toBigInt()); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
transfer(recipient: Address, amount: BigInt): boolean { let result = super.call("transfer", "transfer(address,uint256):(bool)", [ ethereum.Value.fromAddress(recipient), ethereum.Value.fromUnsignedBigInt(amount) ]); return result[0].toBoolean(); }
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_transfer( recipient: Address, amount: BigInt ): ethereum.CallResult<boolean> { let result = super.tryCall("transfer", "transfer(address,uint256):(bool)", [ ethereum.Value.fromAddress(recipient), ethereum.Value.fromUnsignedBigInt(amount) ]); if (result.reverted) { return new ...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
transferFrom(sender: Address, recipient: Address, amount: BigInt): boolean { let result = super.call( "transferFrom", "transferFrom(address,address,uint256):(bool)", [ ethereum.Value.fromAddress(sender), ethereum.Value.fromAddress(recipient), ethereum.Value.fromUnsignedBig...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
MethodDeclaration
try_transferFrom( sender: Address, recipient: Address, amount: BigInt ): ethereum.CallResult<boolean> { let result = super.tryCall( "transferFrom", "transferFrom(address,address,uint256):(bool)", [ ethereum.Value.fromAddress(sender), ethereum.Value.fromAddress(recipi...
0xa8c81519/my-subgraph
generated/XXMOONTransferLog/XXMOONToken.ts
TypeScript
TypeAliasDeclaration
type Notifications = DefaultMessageNotificationLevel | number;
1chiSensei/skyra
src/lib/i18n/languageKeys/keys/events/guilds/Logs.ts
TypeScript
ArrowFunction
() => { let component: TellUsComponent; let fixture: ComponentFixture<TellUsComponent>; beforeEach(async(() => { const eventServiceStub = { event$: of(new Event({})) }; const languageServiceStub = { getLanguage: jasmine.createSpy('languageService::getLanguage'), language$: of(null) ...
usgs/earthquake-eventpages
src/app/tell-us/tell-us/tell-us.component.spec.ts
TypeScript
ArrowFunction
() => { const eventServiceStub = { event$: of(new Event({})) }; const languageServiceStub = { getLanguage: jasmine.createSpy('languageService::getLanguage'), language$: of(null) }; const formSubmitServiceStub = { formResponse$: of(null) }; TestBed.configureTestingMo...
usgs/earthquake-eventpages
src/app/tell-us/tell-us/tell-us.component.spec.ts
TypeScript
ArrowFunction
() => { fixture = TestBed.createComponent(TellUsComponent); component = fixture.componentInstance; fixture.detectChanges(); }
usgs/earthquake-eventpages
src/app/tell-us/tell-us/tell-us.component.spec.ts
TypeScript
ArrowFunction
async (req, res) => { const user = await UserAPI.me(req.notionKey) res.status(200).json({ user }) }
vvrtsaix/personal-finance
src/pages/api/users/me.ts
TypeScript
InterfaceDeclaration
export interface GetMeResponse { user: User }
vvrtsaix/personal-finance
src/pages/api/users/me.ts
TypeScript
FunctionDeclaration
export function convertCloseFormAction(objectInfo: _cpnInterface.microflow.IObjectDict, mfObj: microflows.ActionActivity, closeFormAction: microflows.CloseFormAction, point?: common.IPoint | undefined, size?: common.ISize | undefined): _cpnInterface.microflow.IClosePageAction { let cpnClosePageAction: _cpnInterfac...
habuimanh/MfDiff_Electrons
views/microflowComponents/ConvertFunction/convertCloseFormAction.ts
TypeScript
ArrowFunction
(προεπιλογή: 125)
barrystyle/cc
src/qt/locale/bitcoin_el_GR.ts
TypeScript
ArrowFunction
(προεπιλογή: 127.0.0.1)
barrystyle/cc
src/qt/locale/bitcoin_el_GR.ts
TypeScript
ArrowFunction
(προεπιλογή: 100)
barrystyle/cc
src/qt/locale/bitcoin_el_GR.ts
TypeScript
ArrowFunction
() => { return { chart: { paddingBottom: '45px', }, chartLabel: { color: DefaultPalette.orange, ...DefaultFontStyles.large, }, xAxisDomain: axisStyle, xAxisTicks: axisStyle, yAxisDomain: axisStyle, yAxisTicks: axisStyle...
AppsbyJessie/fluentui
packages/charting/src/components/VerticalBarChart/examples/VerticalBarChart.Styled.Example.tsx
TypeScript
ClassDeclaration
export class VerticalBarChartStyledExample extends React.Component<IVerticalBarChartProps, {}> { constructor(props: IVerticalBarChartProps) { super(props); } public render(): JSX.Element { const points = [ { x: 'One', y: 20 }, { x: 'Two', y: 48 }, { x: 'Three', y: 30 }, { x: 'Fou...
AppsbyJessie/fluentui
packages/charting/src/components/VerticalBarChart/examples/VerticalBarChart.Styled.Example.tsx
TypeScript
MethodDeclaration
public render(): JSX.Element { const points = [ { x: 'One', y: 20 }, { x: 'Two', y: 48 }, { x: 'Three', y: 30 }, { x: 'Four', y: 40 }, { x: 'Five', y: 13 }, { x: 'Six', y: 60 }, { x: 'Seven', y: 60 }, { x: 'Eight', y: 57 }, { x: 'Nine', y: 14 }, { x: 'Ten...
AppsbyJessie/fluentui
packages/charting/src/components/VerticalBarChart/examples/VerticalBarChart.Styled.Example.tsx
TypeScript
ArrowFunction
async (message: Message) => { if (message.author.bot) return; else if (message.author == client.user) return; if (message.content.startsWith("#")) { this.commandHandler.processCommand(message); } else { message.channel.send(DEFAULT_MESSAGE).catch((err) => { console.lo...
angshumanHalder/discord-bot
src/MessageHandler/MessageHandler.ts
TypeScript
ClassDeclaration
export class MessageHandler { private commandHandler: CommandHandler = new CommandHandler(); setMessageHandler(client: Client): void { client.on("message", async (message: Message) => { if (message.author.bot) return; else if (message.author == client.user) return; if (message.content.start...
angshumanHalder/discord-bot
src/MessageHandler/MessageHandler.ts
TypeScript
MethodDeclaration
setMessageHandler(client: Client): void { client.on("message", async (message: Message) => { if (message.author.bot) return; else if (message.author == client.user) return; if (message.content.startsWith("#")) { this.commandHandler.processCommand(message); } else { message....
angshumanHalder/discord-bot
src/MessageHandler/MessageHandler.ts
TypeScript
ClassDeclaration
export class MainPage extends React.Component { render() { return ( <> <div className={ css.bgImg }> <div> <IconContainer icon={ UuiPromoImage } /> </div> </div> <div style={{ he...
DmitryAstreiko/EmbededPowerBI
App/src/pages/MainPage.tsx
TypeScript
MethodDeclaration
render() { return ( <> <div className={ css.bgImg }> <div> <IconContainer icon={ UuiPromoImage } /> </div> </div> <div style={{ height: "120px" }}
DmitryAstreiko/EmbededPowerBI
App/src/pages/MainPage.tsx
TypeScript
ClassDeclaration
@Component({ selector: 'app-root', templateUrl: './app.component.html', styleUrls: ['./app.component.scss'] }) export class AppComponent { title = 'moodia-test'; }
TanyaDolgopolova/fe-contact-form
src/app/app.component.ts
TypeScript
FunctionDeclaration
/** Shallow-extends a stylesheet object with another stylesheet object. */ function extendStyles(dest: CSSStyleDeclaration, source: CSSStyleDeclaration): CSSStyleDeclaration { for (let key in source) { if (source.hasOwnProperty(key)) { dest[key] = source[key]; } } return dest; }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
ArrowFunction
(observer: Observer<ConnectedOverlayPositionChange>) => { const subscription = this._positionChanges.subscribe(observer); this._positionChangeSubscriptions++; return () => { subscription.unsubscribe(); this._positionChangeSubscriptions--; }; }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
ArrowFunction
() => { subscription.unsubscribe(); this._positionChangeSubscriptions--; }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
ArrowFunction
() => { // When the window is resized, we want to trigger the next reposition as if it // was an initial render, in order for the strategy to pick a new optimal position, // otherwise position locking will cause it to stay at the old one. this._isInitialRender = true; this.apply(); }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
ArrowFunction
scrollable => { return scrollable.getElementRef().nativeElement.getBoundingClientRect(); }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
ArrowFunction
(currentValue: number, currentOverflow: number) => { return currentValue - Math.max(currentOverflow, 0); }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
ArrowFunction
pair => { validateHorizontalPosition('originX', pair.originX); validateVerticalPosition('originY', pair.originY); validateHorizontalPosition('overlayX', pair.overlayX); validateVerticalPosition('overlayY', pair.overlayY); }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
ArrowFunction
cssClass => { if (this._appliedPanelClasses.indexOf(cssClass) === -1) { this._appliedPanelClasses.push(cssClass); this._pane.classList.add(cssClass); } }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
ArrowFunction
cssClass => this._pane.classList.remove(cssClass)
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
InterfaceDeclaration
/** A simple (x, y) coordinate. */ interface Point { x: number; y: number; }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
InterfaceDeclaration
/** Record of measurements for how an overlay (at a given position) fits into the viewport. */ interface OverlayFit { /** Whether the overlay fits completely in the viewport. */ isCompletelyWithinViewport: boolean; /** Whether the overlay fits in the viewport on the y-axis. */ fitsInViewportVertically: boolean...
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
InterfaceDeclaration
/** Record of the measurments determining whether an overlay will fit in a specific position. */ interface FallbackPosition { position: ConnectedPosition; originPoint: Point; overlayPoint: Point; overlayFit: OverlayFit; overlayRect: ClientRect; }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
InterfaceDeclaration
/** Position and size of the overlay sizing wrapper for a specific position. */ interface BoundingBoxRect { top: number; left: number; bottom: number; right: number; height: number; width: number; }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
InterfaceDeclaration
/** Record of measures determining how well a given position will fit with flexible dimensions. */ interface FlexibleFit { position: ConnectedPosition; origin: Point; overlayRect: ClientRect; boundingBoxRect: BoundingBoxRect; }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
InterfaceDeclaration
/** A connected position as specified by the user. */ export interface ConnectedPosition { originX: 'start' | 'center' | 'end'; originY: 'top' | 'center' | 'bottom'; overlayX: 'start' | 'center' | 'end'; overlayY: 'top' | 'center' | 'bottom'; weight?: number; offsetX?: number; offsetY?: number; panelC...
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
TypeAliasDeclaration
/** Possible values that can be set as the origin of a FlexibleConnectedPositionStrategy. */ export type FlexibleConnectedPositionStrategyOrigin = ElementRef | HTMLElement | Point;
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
MethodDeclaration
/** Attaches this position strategy to an overlay. */ attach(overlayRef: OverlayReference): void { if (this._overlayRef && overlayRef !== this._overlayRef) { throw Error('This position strategy is already attached to an overlay'); } this._validatePositions(); overlayRef.hostElement.classList.add...
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
MethodDeclaration
/** * Updates the position of the overlay element, using whichever preferred position relative * to the origin best fits on-screen. * * The selection of a position goes as follows: * - If any positions fit completely within the viewport as-is, * choose the first position that does so. * - If...
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
MethodDeclaration
detach() { this._clearPanelClasses(); this._lastPosition = null; this._previousPushAmount = null; this._resizeSubscription.unsubscribe(); }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
MethodDeclaration
/** Cleanup after the element gets destroyed. */ dispose() { if (this._isDisposed) { return; } // We can't use `_resetBoundingBoxStyles` here, because it resets // some properties to zero, rather than removing them. if (this._boundingBox) { extendStyles(this._boundingBox.style, { ...
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
MethodDeclaration
/** * This re-aligns the overlay element with the trigger in its last calculated position, * even if a position higher in the "preferred positions" list would now fit. This * allows one to re-align the panel without changing the orientation of the panel. */ reapplyLastPosition(): void { if (!this._isDis...
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
MethodDeclaration
/** * Sets the list of Scrollable containers that host the origin element so that * on reposition we can evaluate if it or the overlay has been clipped or outside view. Every * Scrollable must be an ancestor element of the strategy's origin element. */ withScrollableContainers(scrollables: CdkScrollable[]) ...
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
MethodDeclaration
/** * Adds new preferred positions. * @param positions List of positions options for this overlay. */ withPositions(positions: ConnectedPosition[]): this { this._preferredPositions = positions; // If the last calculated position object isn't part of the positions anymore, clear // it in order to a...
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
MethodDeclaration
/** * Sets a minimum distance the overlay may be positioned to the edge of the viewport. * @param margin Required margin between the overlay and the viewport edge in pixels. */ withViewportMargin(margin: number): this { this._viewportMargin = margin; return this; }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
MethodDeclaration
/** Sets whether the overlay's width and height can be constrained to fit within the viewport. */ withFlexibleDimensions(flexibleDimensions = true): this { this._hasFlexibleDimensions = flexibleDimensions; return this; }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
MethodDeclaration
/** Sets whether the overlay can grow after the initial open via flexible width/height. */ withGrowAfterOpen(growAfterOpen = true): this { this._growAfterOpen = growAfterOpen; return this; }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
MethodDeclaration
/** Sets whether the overlay can be pushed on-screen if none of the provided positions fit. */ withPush(canPush = true): this { this._canPush = canPush; return this; }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
MethodDeclaration
/** * Sets whether the overlay's position should be locked in after it is positioned * initially. When an overlay is locked in, it won't attempt to reposition itself * when the position is re-applied (e.g. when the user scrolls away). * @param isLocked Whether the overlay should locked in. */ withLockedP...
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
MethodDeclaration
/** * Sets the origin, relative to which to position the overlay. * Using an element origin is useful for building components that need to be positioned * relatively to a trigger (e.g. dropdown menus or tooltips), whereas using a point can be * used for cases like contextual menus which open relative to the...
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript
MethodDeclaration
/** * Sets the default offset for the overlay's connection point on the x-axis. * @param offset New offset in the X axis. */ withDefaultOffsetX(offset: number): this { this._offsetX = offset; return this; }
CaerusKaru/components
src/cdk/overlay/position/flexible-connected-position-strategy.ts
TypeScript