repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
PhilStainer/philstainer.io
components/CustomLink.tsx
<gh_stars>0 import Link from 'next/link' type Props = { href: string } export const CustomLink = (props: Props): JSX.Element => { const href = props.href const isInternalLink = href.startsWith('/') || href.startsWith('#') if (isInternalLink) { return ( <Link href={href}> <a {...props} /> ...
PhilStainer/philstainer.io
pages/_app.tsx
import '@/styles/globals.css' import {ThemeProvider} from 'next-themes' import {AppProps} from 'next/app' const MyApp = ({Component, pageProps}: AppProps): JSX.Element => { return ( <ThemeProvider attribute="class" disableTransitionOnChange> <Component {...pageProps} /> </ThemeProvider> ) } export ...
PhilStainer/philstainer.io
__tests__/pages/index.test.tsx
jest.mock('next/router', () => ({useRouter: () => ({asPath: ''})})) import {Home} from '@/pages/index' import {render, screen} from '@/__tests__/testUtils' test('should render latest posts', () => { const posts = [ { title: 'blog title 1', summary: 'blog summary 1', publishedAt: '2021-01-01', ...
PhilStainer/philstainer.io
__tests__/components/Project.test.tsx
import {Project} from '@/components/Project' import {render, screen} from '@/__tests__/testUtils' const config = { title: 'philstainer.io', description: 'My personal site and blog.', href: 'https://philstainer.io', source: 'https://github.com/PhilStainer/philstainer.io', tags: ['next.js', 'tailwind'], } tes...
PhilStainer/philstainer.io
lib/mdx.ts
<filename>lib/mdx.ts<gh_stars>0 import fs from 'fs' import path from 'path' import matter from 'gray-matter' import readingTime from 'reading-time' import {serialize} from 'next-mdx-remote/serialize' import mdxPrism from 'mdx-prism' import {BlogPost} from 'types/BlogPost' import {Post} from 'types/Post' export const r...
PhilStainer/philstainer.io
__tests__/components/Layout.test.tsx
<filename>__tests__/components/Layout.test.tsx<gh_stars>0 jest.mock('next/router', () => ({useRouter: () => ({asPath: ''})})) import {Layout} from '@/components/Layout' import {render, screen, within} from '@/__tests__/testUtils' test('should render nav', () => { render(<Layout>Test</Layout>) const navigation = ...
PhilStainer/philstainer.io
types/Post.ts
export type Post = { title: string publishedAt: string summary: string image: string slug?: string wordCount?: number readingTime: any }
PhilStainer/philstainer.io
components/BlogLayout.tsx
<gh_stars>0 import {Layout} from '@/components/Layout' import format from 'date-fns/format' import parseISO from 'date-fns/parseISO' type Props = { children: JSX.Element frontMatter: any } type GenerateUrl = { slug: string } const editUrl = (slug: GenerateUrl): string => `https://github.com/PhilStainer/phils...
PhilStainer/philstainer.io
components/Nav.tsx
import Link from 'next/link' import {ThemeButton} from './ThemeButton' export const pages = [ {name: 'Home', href: '/'}, {name: 'Blog', href: '/blog'}, ] export const Nav = (): JSX.Element => { return ( <nav className="sticky top-0 z-10 flex items-center justify-between md:justify-end w-full max-w-5xl p-6 m...
PhilStainer/philstainer.io
components/Pre.tsx
import {useEffect, useRef, useState} from 'react' import classNames from 'classnames' import {copyToClipboard} from '@/utils/copyToClipboard' type Props = { children: JSX.Element className: string } export const Pre = ({children, className, ...props}: Props): JSX.Element => { const preRef = useRef<HTMLPreElemen...
PhilStainer/philstainer.io
components/Layout.tsx
<filename>components/Layout.tsx import Head from 'next/head' import {useRouter} from 'next/router' import {ReactNode} from 'react' import {Nav} from '@/components/Nav' import {Footer} from '@/components/Footer' type Props = { children: ReactNode title?: string description?: string image?: string date?: stri...
PhilStainer/philstainer.io
__tests__/components/Themebutton.test.tsx
<reponame>PhilStainer/philstainer.io<filename>__tests__/components/Themebutton.test.tsx import {ThemeButton} from '@/components/ThemeButton' import {fireEvent, render, screen} from '@/__tests__/testUtils' import {useTheme} from 'next-themes' jest.mock('next-themes', () => ({ useTheme: jest.fn(() => ({theme: jest.fn(...
PhilStainer/philstainer.io
components/BlogPost.tsx
import Link from 'next/link' import format from 'date-fns/format' import parseISO from 'date-fns/parseISO' import {Post} from 'types/Post' export const BlogPost = ({ title, summary, publishedAt, slug, readingTime, }: Post): JSX.Element => { return ( <Link href={`/blog/${slug}`}> <a className="fle...
PhilStainer/philstainer.io
__tests__/pages/blog.test.tsx
<reponame>PhilStainer/philstainer.io<filename>__tests__/pages/blog.test.tsx<gh_stars>0 jest.mock('next/router', () => ({useRouter: () => ({asPath: ''})})) import {render, screen} from '@/__tests__/testUtils' import {Blog} from '@/pages/blog' test('should render blog page', () => { render(<Blog posts={[]} />) con...
PhilStainer/philstainer.io
__tests__/components/BlogPost.test.tsx
import format from 'date-fns/format' import parseISO from 'date-fns/parseISO' import {BlogPost} from '@/components/BlogPost' import {render, screen} from '@/__tests__/testUtils' test('should render blog post', () => { const post = { title: 'blog title', summary: 'blog summary', publishedAt: '2021-01-01',...
jenkins-sigaut/ag-grid
community-modules/core/src/ts/widgets/agList.ts
<filename>community-modules/core/src/ts/widgets/agList.ts import { AgAbstractField } from "./agAbstractField"; import { Component } from "./component"; import { PostConstruct } from "../context/context"; import { escapeString } from "../utils/string"; import { addCssClass, removeCssClass } from "../utils/dom"; import {...
jenkins-sigaut/ag-grid
enterprise-modules/menu/src/menu/menuList.ts
<gh_stars>0 import { ManagedFocusComponent, MenuItemDef, _, KeyCode, } from "@ag-grid-community/core"; import { MenuItemComponent, MenuItemSelectedEvent, MenuItemActivatedEvent } from "./menuItemComponent"; export class MenuList extends ManagedFocusComponent { private menuItems: MenuItemComponent[...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/headerRendering/headerGroup/headerGroupComp.d.ts
// Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { Component } from "../../widgets/component"; import { IComponent } from "../../interfaces/iComponent"; import { ColumnGroup } from "../../entities/columnGroup"; imp...
jenkins-sigaut/ag-grid
enterprise-modules/charts/src/charts/chartComp/chartTranslator.ts
<filename>enterprise-modules/charts/src/charts/chartComp/chartTranslator.ts import { Bean, BeanStub } from "@ag-grid-community/core"; @Bean("chartTranslator") export class ChartTranslator extends BeanStub { private static DEFAULT_TRANSLATIONS: { [name: string]: string; } = { pivotChartTitle: 'Pivot Chart'...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/rendering/row/rowDragComp.d.ts
// Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { Component } from "../../widgets/component"; import { RowNode } from "../../entities/rowNode"; import { DragItem } from "../../dragAndDrop/dragAndDropService"; impo...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/widgets/agSelect.d.ts
<reponame>jenkins-sigaut/ag-grid // Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { AgPickerField } from "./agPickerField"; import { ListOption, AgList } from "./agList"; import { IAgLabel } from './agAbstractLabel...
jenkins-sigaut/ag-grid
community-modules/react/lib/keyGenerator.d.ts
<reponame>jenkins-sigaut/ag-grid // @ag-grid-community/react v25.0.0 export default function generateNewKey(): string;
jenkins-sigaut/ag-grid
enterprise-modules/set-filter/src/setFilter/setValueModel.ts
import { IClientSideRowModel, ColDef, Column, Constants, IRowModel, ISetFilterParams, AgPromise, SetFilterValues, SetFilterValuesFunc, SetFilterValuesFuncParams, TextFilter, TextFormatter, ValueFormatterService, IEventEmitter, _, EventService, RowNode ...
jenkins-sigaut/ag-grid
charts-packages/ag-charts-community/dist/es6/chart/chart.d.ts
import { Scene } from "../scene/scene"; import { Series, SeriesNodeDatum } from "./series/series"; import { Padding } from "../util/padding"; import { Shape } from "../scene/shape/shape"; import { Node } from "../scene/node"; import { Rect } from "../scene/shape/rect"; import { Legend } from "./legend"; import { BBox }...
jenkins-sigaut/ag-grid
enterprise-modules/set-filter/src/setFilter/setFloatingFilter.ts
import { Autowired, Component, IFloatingFilter, RefSelector, ValueFormatterService, IFloatingFilterParams, AgInputTextField, _, ColumnController, ISetFilterParams } from '@ag-grid-community/core'; import { SetFilterModel } from './setFilterModel'; import { SetFilter } from './se...
jenkins-sigaut/ag-grid
community-modules/core/src/ts/filter/provided/providedFilter.test.ts
import { ProvidedFilter, IProvidedFilterParams } from './providedFilter'; import { ProvidedFilterModel, IDoesFilterPassParams } from '../../interfaces/iFilter'; import { Constants } from '../../constants/constants'; import { IRowModel } from '../../interfaces/iRowModel'; import { GridOptionsWrapper } from '../../gridOp...
jenkins-sigaut/ag-grid
grid-packages/ag-grid-react/lib/keyGenerator.d.ts
// ag-grid-react v25.0.0 export default function generateNewKey(): string;
jenkins-sigaut/ag-grid
grid-packages/ag-grid-community/dist/lib/rendering/row/detailRowCompCache.d.ts
import { ICellRendererComp } from "../cellRenderers/iCellRenderer"; import { RowNode } from "../../entities/rowNode"; import { BeanStub } from "../../context/beanStub"; /** * For Master Detail, it is required to keep components between expanding & collapsing parents. * For example a user expands row A (and shows a de...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/filter/filterLocaleText.d.ts
// Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> export interface IFilterLocaleText { applyFilter: string; clearFilter: string; resetFilter: string; cancelFilter: string; filterOoo: string; empty: ...
jenkins-sigaut/ag-grid
community-modules/client-side-row-model/dist/es6/clientSideRowModel/sortService.d.ts
<filename>community-modules/client-side-row-model/dist/es6/clientSideRowModel/sortService.d.ts import { ChangedPath, Column, RowNode, BeanStub } from "@ag-grid-community/core"; export interface SortOption { inverter: number; column: Column; } export interface SortedRowNode { currentPos: number; rowNode:...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/focusController.d.ts
// Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { BeanStub } from "./context/beanStub"; import { Column } from "./entities/column"; import { CellPosition } from "./entities/cellPosition"; import { RowNode } from "...
jenkins-sigaut/ag-grid
enterprise-modules/server-side-row-model/dist/es6/serverSideRowModel/blocks/partialStoreBlock.d.ts
import { LoadSuccessParams, NumberSequence, RowBounds, RowNode, RowNodeBlock, ServerSideStoreParams } from "@ag-grid-community/core"; import { SSRMParams } from "../serverSideRowModel"; import { PartialStore } from "../stores/partialStore"; export declare class PartialStoreBlock extends RowNodeBlock { private rowRe...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/interfaces/iFiltersToolPanel.d.ts
<gh_stars>0 // Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { ColDef } from "../entities/colDef"; export interface IFiltersToolPanel { setFilterLayout(colDefs: ColDef[]): void; expandFilterGroups(groupIds?...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/rowNodes/rowNodeSorter.d.ts
<reponame>jenkins-sigaut/ag-grid // Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { Column } from "../entities/column"; import { RowNode } from "../entities/rowNode"; export interface SortOption { sort: string;...
jenkins-sigaut/ag-grid
enterprise-modules/multi-filter/dist/es6/multiFilter/multiFilter.d.ts
<filename>enterprise-modules/multi-filter/dist/es6/multiFilter/multiFilter.d.ts import { AgPromise, ProvidedFilterModel, IDoesFilterPassParams, IAfterGuiAttachedParams, IFilterComp, IFilterDef, IFilterParams, ManagedFocusComponent } from '@ag-grid-community/core'; export interface IMultiFilterDef extends IFilterDef { ...
jenkins-sigaut/ag-grid
community-modules/client-side-row-model/dist/es6/clientSideRowModel/immutableService.d.ts
<filename>community-modules/client-side-row-model/dist/es6/clientSideRowModel/immutableService.d.ts<gh_stars>0 import { IImmutableService, RowDataTransaction, BeanStub } from "@ag-grid-community/core"; export declare class ImmutableService extends BeanStub implements IImmutableService { private rowModel; privat...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/interfaces/serverSideTransaction.d.ts
<filename>community-modules/core/dist/es6/interfaces/serverSideTransaction.d.ts // Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { RowNode } from "../entities/rowNode"; export interface ServerSideTransaction { ...
jenkins-sigaut/ag-grid
enterprise-modules/column-tool-panel/dist/es6/columnToolPanel/toolPanelColumnComp.d.ts
<reponame>jenkins-sigaut/ag-grid import { Column, Component, ITooltipParams } from "@ag-grid-community/core"; export declare class ToolPanelColumnComp extends Component { private readonly column; private readonly columnDept; private readonly allowDragging; private readonly groupsExist; private reado...
jenkins-sigaut/ag-grid
community-modules/core/src/ts/filter/provided/providedFilter.ts
import { ProvidedFilterModel, IDoesFilterPassParams, IFilterComp, IFilterParams } from '../../interfaces/iFilter'; import { Autowired, PostConstruct } from '../../context/context'; import { IRowModel } from '../../interfaces/iRowModel'; import { Constants } from '../../constants/constants'; import { IAfterGuiAttachedPa...
jenkins-sigaut/ag-grid
community-modules/core/src/ts/filter/provided/number/numberFilter.ts
<reponame>jenkins-sigaut/ag-grid<filename>community-modules/core/src/ts/filter/provided/number/numberFilter.ts import { RefSelector } from '../../../widgets/componentAnnotations'; import { AgPromise } from '../../../utils'; import { SimpleFilter, ConditionPosition, ISimpleFilterModel } from '../simpleFilter'; import { ...
jenkins-sigaut/ag-grid
charts-packages/ag-charts-community/src/main.ts
export * from "./caption"; export * from "./chart/axis/numberAxis"; export * from "./chart/axis/categoryAxis"; export * from "./chart/axis/groupedCategoryAxis"; export * from "./chart/axis/timeAxis"; export * from "./chart/cartesianChart"; export * from "./chart/chart"; export * from "./chart/chartAxis"; export * from ...
jenkins-sigaut/ag-grid
enterprise-modules/charts/src/gridChartsModule.ts
import { Module, ModuleNames } from "@ag-grid-community/core"; import { EnterpriseCoreModule } from "@ag-grid-enterprise/core"; import { ChartService } from "./charts/chartService"; import { ChartTranslator } from "./charts/chartComp/chartTranslator"; import { ChartCrossFilter } from "./charts/chartComp/chartCrossFilte...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/headerRendering/standardMenu.d.ts
// Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { BeanStub } from "../context/beanStub"; import { IMenuFactory } from '../interfaces/iMenuFactory'; import { Column } from '../entities/column'; import { GridPanel }...
jenkins-sigaut/ag-grid
enterprise-modules/excel-export/src/excelExport/files/ooxml/styles/stylesheet.ts
import { ExcelOOXMLTemplate, ExcelStyle, ExcelInterior, ExcelBorders, ExcelFont, _ } from '@ag-grid-community/core'; import numberFormatsFactory from './numberFormats'; import fontsFactory from './fonts'; import fillsFactory from './fills'; import bordersFactory from './borders'; import cellStylesXfsFactory from './cel...
jenkins-sigaut/ag-grid
community-modules/core/src/ts/dragAndDrop/dragAndDropService.ts
import { BeanStub } from "../context/beanStub"; import { PostConstruct, Bean, Autowired, PreDestroy } from "../context/context"; import { Column } from "../entities/column"; import { ColumnApi } from "../columnController/columnApi"; import { GridApi } from "../gridApi"; import { DragService, DragListenerParams } from "...
jenkins-sigaut/ag-grid
enterprise-modules/row-grouping/src/rowGrouping/batchRemover.ts
import { RowNode } from "@ag-grid-community/core"; // doing _.removeFromArray() multiple times on a large list can be a bottleneck. // when doing large deletes (eg removing 1,000 rows) then we would be calling _.removeFromArray() // a thousands of times, in particular RootNode.allGroupChildren could be a large list, a...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/entities/columnGroup.d.ts
// Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { ColumnGroupChild } from "./columnGroupChild"; import { ColGroupDef } from "./colDef"; import { Column } from "./column"; import { AbstractColDef } from "./colDef";...
jenkins-sigaut/ag-grid
community-modules/core/src/ts/rendering/row/rowComp.ts
import { Beans } from "../beans"; import { CellComp } from "../cellComp"; import { DataChangedEvent, RowNode } from "../../entities/rowNode"; import { Column } from "../../entities/column"; import { Events, RowClickedEvent, RowDoubleClickedEvent, RowEditingStartedEvent, RowEditingStoppedEvent, R...
jenkins-sigaut/ag-grid
charts-packages/ag-charts-community/dist/es6/main.d.ts
export * from "./caption"; export * from "./chart/axis/numberAxis"; export * from "./chart/axis/categoryAxis"; export * from "./chart/axis/groupedCategoryAxis"; export * from "./chart/axis/timeAxis"; export * from "./chart/cartesianChart"; export * from "./chart/chart"; export * from "./chart/chartAxis"; export * from ...
jenkins-sigaut/ag-grid
grid-packages/ag-grid-enterprise/dist/lib/setFilter/setValueModel.d.ts
<filename>grid-packages/ag-grid-enterprise/dist/lib/setFilter/setValueModel.d.ts import { ISetFilterParams, AgPromise, ValueFormatterService, IEventEmitter } from 'ag-grid-community'; import { ISetFilterLocaleText } from './localeText'; export declare enum SetFilterModelValuesType { PROVIDED_LIST = 0, PROVIDED_...
jenkins-sigaut/ag-grid
enterprise-modules/server-side-row-model/dist/es6/serverSideRowModel/serverSideRowModel.d.ts
import { BeanStub, Column, ColumnVO, IServerSideDatasource, IServerSideRowModel, IServerSideStore, NumberSequence, RowBounds, RowNode, StoreRefreshAfterParams, RefreshStoreParams, ServerSideStoreState } from "@ag-grid-community/core"; export interface SSRMParams { sortModel: any; filterModel: any; lastAcces...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/headerRendering/header/abstractHeaderWrapper.d.ts
<reponame>jenkins-sigaut/ag-grid // Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { ColumnGroup } from "../../entities/columnGroup"; import { Column } from "../../entities/column"; import { ManagedFocusComponent } ...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/interfaces/iCsvCreator.d.ts
// Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { CsvExportParams } from "./exportParams"; export interface ICsvCreator { getDataAsCsv(params?: CsvExportParams): string; exportDataAsCsv(params?: CsvExportP...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/rendering/maxDivHeightScaler.d.ts
<filename>community-modules/core/dist/es6/rendering/maxDivHeightScaler.d.ts<gh_stars>0 // Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { BeanStub } from "../context/beanStub"; import { GridPanel } from "../gridPan...
jenkins-sigaut/ag-grid
community-modules/infinite-row-model/src/infiniteRowModel/infiniteBlock.ts
<gh_stars>0 import { _, Autowired, IGetRowsParams, NumberSequence, PostConstruct, PreDestroy, RowNode, Autowired, PostConstruct, IGetRowsParams, IEventEmitter, RowNodeBlock, RowRenderer, _ } from "@ag-grid-community/core"; import { InfiniteCacheParams } from "./in...
jenkins-sigaut/ag-grid
enterprise-modules/charts/src/charts/chartComp/titleEdit.ts
import {_, Autowired, Component, PostConstruct} from "@ag-grid-community/core"; import {ChartMenu} from "./menu/chartMenu"; import {Chart} from "ag-charts-community"; import {ChartTranslator} from "./chartTranslator"; import {ChartProxy} from "./chartProxies/chartProxy"; type BBox = { x: number; y: number; width: num...
jenkins-sigaut/ag-grid
enterprise-modules/clipboard/dist/es6/clipboard/clipboardService.d.ts
<reponame>jenkins-sigaut/ag-grid<filename>enterprise-modules/clipboard/dist/es6/clipboard/clipboardService.d.ts import { BeanStub, CellPositionUtils, Column, GridCore, IClipboardService, RowPositionUtils } from "@ag-grid-community/core"; export declare class ClipboardService extends BeanStub implements IClipboardServic...
jenkins-sigaut/ag-grid
community-modules/core/src/ts/utils/promise.ts
<reponame>jenkins-sigaut/ag-grid import { forEach } from './array'; export type ResolveAndRejectCallback<T> = (resolve: (value: T) => void, reject: (params: any) => void) => void; export enum AgPromiseStatus { IN_PROGRESS, RESOLVED } export class AgPromise<T> { private status: AgPromiseStatus = AgPromiseStat...
jenkins-sigaut/ag-grid
enterprise-modules/charts/src/charts/chartComp/menu/format/chart/titlePanel.ts
import {_, Autowired, Component, FontStyle, FontWeight, PostConstruct} from "@ag-grid-community/core"; import {ChartController} from "../../../chartController"; import {Font, FontPanel, FontPanelParams} from "../fontPanel"; import {ChartTranslator} from "../../../chartTranslator"; export default class TitlePanel exten...
jenkins-sigaut/ag-grid
community-modules/core/src/ts/modules/moduleRegistry.ts
import { Module } from "../interfaces/iModule"; import { ModuleNames } from "./moduleNames"; import { doOnce } from "../utils/function"; import { values } from "../utils/generic"; export class ModuleRegistry { // having in a map a) removes duplicates and b) allows fast lookup private static modulesMap: { [nam...
jenkins-sigaut/ag-grid
charts-packages/ag-charts-react/lib/utils.d.ts
<reponame>jenkins-sigaut/ag-grid<filename>charts-packages/ag-charts-react/lib/utils.d.ts // ag-charts-react v3.0.0 export declare const assignProperties: (to: {}, from: {}) => void;
jenkins-sigaut/ag-grid
enterprise-modules/clipboard/src/clipboard/clipboardService.ts
import { _, Autowired, Bean, BeanStub, CellNavigationService, CellPosition, CellPositionUtils, CellRange, ChangedPath, IClientSideRowModel, Column, ColumnApi, ColumnController, Constants, CsvExportParams, Events, EventService, FlashCellsEvent, ...
jenkins-sigaut/ag-grid
community-modules/core/src/ts/utils/general.ts
import { ICellRendererComp } from '../rendering/cellRenderers/iCellRenderer'; import { AgPromise } from './promise'; import { loadTemplate } from './dom'; import { camelCaseToHyphen } from './string'; import { iterateObject } from './object'; /** @deprecated */ export function getNameOfClass(theClass: any) { const...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/headerRendering/headerRootComp.d.ts
<reponame>jenkins-sigaut/ag-grid // Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { GridPanel } from '../gridPanel/gridPanel'; import { HeaderContainer } from './headerContainer'; import { Component } from '../widg...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/constants/keyCode.d.ts
// Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> export declare class KeyCode { static BACKSPACE: number; static TAB: number; static ENTER: number; static SHIFT: number; static ESCAPE: number; stat...
jenkins-sigaut/ag-grid
community-modules/core/src/ts/gridOptionsWrapper.ts
import { RowNode } from './entities/rowNode'; import { ChartRef, FillOperationParams, GetChartToolbarItems, GetContextMenuItems, GetMainMenuItems, GetRowNodeIdFunc, GridOptions, IsRowMaster, IsRowSelectable, IsServerSideGroupOpenByDefaultParams, NavigateToNextCellParams, Navi...
jenkins-sigaut/ag-grid
grid-packages/ag-grid-docs/documentation/src/pages/component-cell-editor/examples/component-editor/mood-editor.component_angular.ts
<filename>grid-packages/ag-grid-docs/documentation/src/pages/component-cell-editor/examples/component-editor/mood-editor.component_angular.ts import { AfterViewInit, Component, ViewChild, ViewContainerRef } from "@angular/core"; import { ICellEditorAngularComp } from "@ag-grid-community/angular"; @Component({ sele...
jenkins-sigaut/ag-grid
enterprise-modules/charts/src/charts/chartComp/menu/settings/chartSettingsPanel.ts
import { _, Component, PostConstruct, RefSelector } from "@ag-grid-community/core"; import { MiniChartsContainer } from "./miniChartsContainer"; import { AgChartThemePalette } from "ag-charts-community"; import { ChartController } from "../../chartController"; type AnimationDirection = 'left' | 'right'; export class ...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/widgets/agToggleButton.d.ts
<gh_stars>0 // Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { AgCheckbox } from './agCheckbox'; import { IInputField } from './agAbstractInputField'; export declare class AgToggleButton extends AgCheckbox { co...
jenkins-sigaut/ag-grid
community-modules/core/dist/es6/components/agStackComponentsRegistry.d.ts
<reponame>jenkins-sigaut/ag-grid // Type definitions for @ag-grid-community/core v25.0.0 // Project: http://www.ag-grid.com/ // Definitions by: <NAME> <https://github.com/ag-grid/> import { ComponentMeta } from "../context/context"; import { BeanStub } from "../context/beanStub"; export declare class AgStackComponentsR...
jenkins-sigaut/ag-grid
charts-packages/ag-charts-react/lib/main.d.ts
<gh_stars>0 // ag-charts-react v3.0.0 export * from './agChartsReact';
super-effective/colorutil
src/tests/hexToHsl.test.ts
import hexToHsl from '../hexToHsl'; import { HEX_TEAL, HEX_WHITE, HEX_BLACK, HEX_RED, HEX_YELLOW, HEX_GREEN, HEX_CYAN, HEX_BLUE, HEX_MAGENTA, HSL_BLACK, HSL_BLUE, HSL_CYAN, HSL_GREEN, HSL_MAGENTA, HSL_RED, HSL_TEAL, HSL_WHITE, HSL_YELLOW, } from './data/colors'; /** * HEX to HSL *...
super-effective/colorutil
src/hexToHsv.ts
<reponame>super-effective/colorutil import { Hsv } from './colorTypes'; import hexToRgb from './hexToRgb'; import rgbToHsv from './rgbToHsv'; /** * Converts a hex color string to its hue, saturation, and value * @param {string} colorHex The color value in hex format * @returns {Hsv} The HSV values for the color */...
super-effective/colorutil
src/tests/data/colors.ts
// Known HEX Values export const HEX_TEAL = '#3cd6bf'; export const HEX_WHITE = '#ffffff'; export const HEX_BLACK = '#000000'; export const HEX_RED = '#ff0000'; export const HEX_YELLOW = '#ffff00'; export const HEX_GREEN = '#00ff00'; export const HEX_CYAN = '#00ffff'; export const HEX_BLUE = '#0000ff'; export const HEX...
super-effective/colorutil
src/hexToRgb.ts
<filename>src/hexToRgb.ts<gh_stars>1-10 import { Rgb } from 'colorTypes'; /** * Converts a hex color string to its red, green, and blue component values * @param {string} colorHex The color value in hex format * @returns {Rgb} The RGB values for the color */ export default function hexToRgb(colorHex: string): Rgb ...
super-effective/colorutil
src/tests/rgbToHex.test.ts
<reponame>super-effective/colorutil import rgbToHex from '../rgbToHex'; import { RGB_TEAL, HEX_TEAL, RGB_WHITE, HEX_WHITE, RGB_BLACK, HEX_BLACK, } from './data/colors'; /** * RGB to HEX */ describe('rgbToHex', () => { test('rgbToHex - multi value', () => { const teal = rgbToHex(RGB_TEAL.red, RGB_TE...
super-effective/colorutil
src/tests/hslToRgb.test.ts
<reponame>super-effective/colorutil<gh_stars>1-10 import hslToRgb from '../hslToRgb'; import { RGB_DARK_TEAL, RGB_TEAL, RGB_WHITE, RGB_BLACK, RGB_RED, RGB_YELLOW, RGB_GREEN, RGB_CYAN, RGB_BLUE, RGB_MAGENTA, HSL_BLACK, HSL_BLUE, HSL_CYAN, HSL_GREEN, HSL_MAGENTA, HSL_RED, HSL_TEAL, HSL...
super-effective/colorutil
src/tests/rgbToHsl.test.ts
<filename>src/tests/rgbToHsl.test.ts<gh_stars>1-10 import rgbToHsl from '../rgbToHsl'; import { HSL_BLACK, HSL_BLUE, HSL_DARK_TEAL, HSL_GREEN, HSL_RED, HSL_TEAL, RGB_BLACK, RGB_BLUE, RGB_DARK_TEAL, RGB_GREEN, RGB_RED, RGB_TEAL, } from './data/colors'; /** * RGB to HSV */ describe('rgbToHsl', ...
super-effective/colorutil
src/tests/colorutils.test.ts
<reponame>super-effective/colorutil<gh_stars>1-10 import { HEX_BLACK, HEX_BLUE, HEX_GREEN, HEX_RED, HEX_TEAL, HEX_WHITE, HSV_BLACK, HSV_BLUE, HSV_GREEN, HSV_RED, HSV_TEAL, HSV_WHITE, } from './data/colors'; import { hexToHsv, hsvToHex, } from '../colorutils'; describe('Consistency checks',...
super-effective/colorutil
src/colorTypes.ts
/** * @typedef {Object} Rgb * @property {number} red - The red component of the color (0 - 255) * @property {number} green - The green component of the color (0 - 255) * @property {number} blue - The blue component of the color (0 - 255) */ export type Rgb = { red: number; green: number; blue: number; } /**...
super-effective/colorutil
src/rgbToHex.ts
/** * Takes given red, green, and blue values and returns the hex color representation * @param {number} red The red component of the color (0 - 255) * @param {number} green The green component of the color (0 - 255) * @param {number} blue The blue component of the color (0 - 255) * @returns {string} The hex strin...
super-effective/colorutil
src/tests/hexToRgb.test.ts
<reponame>super-effective/colorutil<filename>src/tests/hexToRgb.test.ts import hexToRgb from '../hexToRgb'; import { HEX_TEAL, RGB_TEAL, RGB_WHITE, HEX_WHITE, RGB_BLACK, HEX_BLACK, } from './data/colors'; /** * HEX to RGB */ describe('hexToRgb', () => { test('hexToRgb - color', () => { const teal =...
super-effective/colorutil
src/tests/hsvToRgb.test.ts
import hsvToRgb from '../hsvToRgb'; import { HSV_TEAL, RGB_TEAL, HSV_WHITE, RGB_WHITE, HSV_BLACK, RGB_BLACK, HSV_RED, RGB_RED, HSV_YELLOW, RGB_YELLOW, HSV_GREEN, RGB_GREEN, HSV_CYAN, RGB_CYAN, HSV_BLUE, RGB_BLUE, HSV_MAGENTA, RGB_MAGENTA, } from './data/colors'; /** * HSV to RGB *...
super-effective/colorutil
src/hsvToRgb.ts
<reponame>super-effective/colorutil import { Rgb } from 'colorTypes'; /** * Takes given hue, saturation and value and returns the respective RGB values * @param {number} hue The hue of the color (0.0 - 360.0) * @param {number} saturation The saturation of the color (0.0 - 1.0) * @param {number} value The value of ...
super-effective/colorutil
src/cmykToHex.ts
<reponame>super-effective/colorutil<filename>src/cmykToHex.ts import cmykToRgb from './cmykToRgb'; import rgbToHex from './rgbToHex'; /** * Takes given cyan, magenta, yellow, and black values and returns the hex representation * @param {number} cyan The cyan component of the color (percentage represented as 0 - 1) ...
super-effective/colorutil
src/hslToRgb.ts
<reponame>super-effective/colorutil import { Rgb } from 'colorTypes'; function hueToRgb(p: number, q: number, t: number) { let clampedT = t; if (t < 0) { clampedT += 360; } if (clampedT > 360) { clampedT -= 360; } if(clampedT < 60) { return p + (q - p) * 6 * (clampedT / 360); } if(clampedT...
super-effective/colorutil
src/cmykToRgb.ts
import { Rgb } from './colorTypes'; /** * Takes given cyan, magenta, yellow, and black values and returns the RGB representation * @param {number} cyan The cyan component of the color (percentage represented as 0 - 1) * @param {number} magenta The magenta component of the color (percentage represented as 0 - 1) * ...
super-effective/colorutil
src/hexToHsl.ts
import { Hsl } from './colorTypes'; import hexToRgb from './hexToRgb'; import rgbToHsl from './rgbToHsl'; /** * Converts a hex color string to its hue, saturation, and lightness * @param {string} colorHex The color value in hex format * @returns {Hsl} The HSL values for the color */ export default function hexToHs...
super-effective/colorutil
src/tests/hexToCmyk.test.ts
<gh_stars>1-10 import hexToCmyk from '../hexToCmyk'; import { CMYK_BLACK, CMYK_BLUE, CMYK_GREEN, CMYK_RED, CMYK_TEAL, HEX_BLACK, HEX_BLUE, HEX_GREEN, HEX_RED, HEX_TEAL, } from './data/colors'; /** * RGB to CMYK */ describe('hexToCmyk', () => { test('hexToCmyk - multi value', () => { const t...
super-effective/colorutil
src/tests/hsvToHex.test.ts
import hsvToHex from '../hsvToHex'; import { HSV_TEAL, HEX_TEAL, HSV_WHITE, HEX_WHITE, HSV_BLACK, HEX_BLACK, HSV_RED, } from './data/colors'; /** * HSV to HEX */ describe('hsvToHex', () => { test('hsvToHex - color', () => { const teal = hsvToHex(HSV_TEAL.hue, HSV_TEAL.saturation, HSV_TEAL.value);...
super-effective/colorutil
src/hsvToHex.ts
import hsvToRgb from './hsvToRgb'; import rgbToHex from './rgbToHex'; /** * Takes given hue, saturation and value and returns the hex color representation * @param {number} hue The hue of the color (0.0 - 360.0) * @param {number} saturation The saturation of the color (0.0 - 1.0) * @param {number} value The value ...
super-effective/colorutil
src/tests/rgbToHsv.test.ts
<filename>src/tests/rgbToHsv.test.ts import rgbToHsv from '../rgbToHsv'; import { RGB_BLACK, RGB_BLUE, RGB_GREEN, RGB_RED, RGB_TEAL, HSV_BLUE, HSV_GREEN, HSV_RED, HSV_TEAL, HSV_BLACK, } from './data/colors'; /** * RGB to HSV */ describe('rgbToHsv', () => { test('rgbToHsv - multi value', () => {...
super-effective/colorutil
src/tests/cmykToHex.test.ts
<filename>src/tests/cmykToHex.test.ts<gh_stars>1-10 import cmykToHex from '../cmykToHex'; import { CMYK_BLACK, CMYK_BLUE, CMYK_GREEN, CMYK_RED, CMYK_TEAL, HEX_BLACK, HEX_BLUE, HEX_GREEN, HEX_RED, HEX_TEAL, } from './data/colors'; /** * CMYK to HEX */ describe('cmykToHex', () => { test('cmykToHe...
super-effective/colorutil
src/hslToHex.ts
<reponame>super-effective/colorutil import hslToRgb from './hslToRgb'; import rgbToHex from './rgbToHex'; /** * Takes given hue, saturation and lightness and returns the hex color representation * @param {number} hue The hue of the color (0.0 - 360.0) * @param {number} saturation The saturation of the color (0.0 - ...
super-effective/colorutil
src/hexToCmyk.ts
import { Cmyk } from './colorTypes'; import hexToRgb from './hexToRgb'; import rgbToCmyk from './rgbToCmyk'; /** * Converts a hex color string to its CMYK representation * @param {string} colorHex The color value in hex format * @returns {Cmyk} The CMYK values for the color */ export default function hexToCmyk(col...
super-effective/colorutil
src/getPerceivedLuminance.ts
<reponame>super-effective/colorutil /** * Get the perceived brightness of a given color * See: https://www.w3.org/TR/AERT/#color-contrast * @param {number} red The red component of the color (0 - 255) * @param {number} green The green component of the color (0 - 255) * @param {number} blue The blue component of th...
super-effective/colorutil
src/rgbToHsl.ts
<reponame>super-effective/colorutil<filename>src/rgbToHsl.ts import { Hsl } from './colorTypes'; /** * Takes given red, green, and blue values and returns the HSL representation * @param {number} red The red component of the color (0 - 255) * @param {number} green The green component of the color (0 - 255) * @para...
super-effective/colorutil
src/rgbToHsv.ts
<filename>src/rgbToHsv.ts import { Hsv } from './colorTypes'; /** * Takes given red, green, and blue values and returns the HSV representation * @param {number} red The red component of the color (0 - 255) * @param {number} green The green component of the color (0 - 255) * @param {number} blue The blue component ...
super-effective/colorutil
src/rgbToCmyk.ts
import { Cmyk } from './colorTypes'; /** * Takes given red, green, and blue values and returns the CMYK representation * @param {number} red The red component of the color (0 - 255) * @param {number} green The green component of the color (0 - 255) * @param {number} blue The blue component of the color (0 - 255) ...
super-effective/colorutil
src/sanitizeHex.ts
/** * Removes invalid characters and formats color hex to 6 characters * @param {string} colorHex The color value in hex format to sanitize * @returns {string} The sanitized hex color */ export default function sanitizeHex(colorHex: string): string { let sanitizedHex = colorHex.replace(/[^a-fA-F0-9]/g, ''); if...