repo_name
stringlengths
5
122
path
stringlengths
3
232
text
stringlengths
6
1.05M
nabby27/UseJS
src/test/string/titleCase.spec.ts
import { titleCase } from '../../app'; const data: { text: string; expect: string; }[] = [ { text: 'HELLO world', expect: 'Hello World' }, { text: 'good bye', expect: 'Good Bye' } ]; describe('Get titleCase text', () => { data.forEach((item) => { tes...
nabby27/UseJS
src/test/date/substractMonths.spec.ts
<reponame>nabby27/UseJS<filename>src/test/date/substractMonths.spec.ts import { subtractMonths } from '../../app'; import { mockDate } from '../mocks/currentDateMock'; const currentDayMock = 27; const currentMonthMock = 5; const currentYearMock = 1996; const currentDateMock = new Date(currentYearMock, currentMonthMock...
nabby27/UseJS
src/app/date/types/locale.ts
<reponame>nabby27/UseJS /** * * @memberof module:Date * @typedef {'en-US' | 'es-ES'} Locale * * @description String locale. * * @name Locale * @alias Locale */ export type Locale = | 'en-US' | 'es-ES';
nabby27/UseJS
src/app/string/capitalize.ts
/** * * @memberof module:String * @function capitalize * * @description Returns the capitalized text from text * * @param {!string} text - The text * @returns {strign} The capitalized text * * @example * import { capitalize } from 'main-fns'; * * const text = 'hello'; * console.log(capitalize(text)); // '...
nabby27/UseJS
src/test/math/min.spec.ts
<filename>src/test/math/min.spec.ts import { min } from '../../app'; const data: { array: number[]; expect: number; }[] = [ { array: [3, 1, 2], expect: 1 }, { array: [4, 6, 2, 5], expect: 2 } ]; describe('Get smallest number from array', () => { data.forEach...
nabby27/UseJS
src/test/string/snakeCase.spec.ts
<reponame>nabby27/UseJS<gh_stars>1-10 import { snakeCase } from '../../app'; const data: { text: string; expect: string; }[] = [ { text: 'HELLO world', expect: 'hello_world' }, { text: 'Good Bye', expect: 'good_bye' } ]; describe('Get snakeCase text', () => { ...
nabby27/UseJS
src/app/string/camelCase.ts
<reponame>nabby27/UseJS /** * * @memberof module:String * @function camelCase * * @description Returns the camelCase text from text * * @param {!string} text - The text * @returns {strign} The camelCase text * * @example * import { camelCase } from 'main-fns'; * * const text = '<NAME>'; * console.log(cam...
nabby27/UseJS
src/test/string/firstLetters.spec.ts
import { firstLetters } from '../../app'; const data: { text: string; numberOfLetters?: number, expect: string; }[] = [ { text: 'hello', expect: 'h' }, { text: 'bYE', numberOfLetters: 2, expect: 'by' } ]; describe('Get first letters', () => { dat...
nabby27/UseJS
src/app/date/dateToString.ts
<reponame>nabby27/UseJS<filename>src/app/date/dateToString.ts<gh_stars>1-10 import { DateStringFormat } from './types/dateStringFormat'; /** * * @memberof module:Date * @function dateToString * * @description Return the date value as string format, by default the date is `new Date()` * * @param {!DateStringForm...
nabby27/UseJS
src/app/math/min.ts
/** * * @memberof module:Math * @function min * * @description Returns the smallest number from numbers * * @param {!number[]} numbers - The numbers * @returns {number} The smallest number * * @example * import { min } from 'main-fns'; * * const numbers = [3, 1, 5]; * console.log(min(numbers)); // 1 */ e...
nabby27/UseJS
src/test/string/capitalize.spec.ts
import { capitalize } from '../../app'; const data: { text: string; expect: string; }[] = [ { text: 'hello', expect: 'Hello' }, { text: 'bYE', expect: 'Bye' } ]; describe('Get capitalized text', () => { data.forEach((item) => { test('should return ca...
nabby27/UseJS
src/app/string/lastLetters.ts
<filename>src/app/string/lastLetters.ts<gh_stars>1-10 /** * * @memberof module:String * @function lastLetters * * @description Returns the last letters from text * * @param {!string} text - The text * @param {number} [numberOfLetters=1] - The number of letters, by default is `1` * @returns {strign} The last le...
nabby27/UseJS
src/app/object/isEqual.ts
<filename>src/app/object/isEqual.ts /** * * @memberof module:Object * @function isEqual * * @description Returns if objects are deep equal * * @param {!T} object - The object * @param {!T} otherObject - The object to compare * @returns {boolean} The cloned object * * @example * import { isEqual } from 'main...
nabby27/UseJS
src/test/math/sum.spec.ts
<reponame>nabby27/UseJS import { sum } from '../../app'; const data: { array: number[]; expect: number; }[] = [ { array: [3, 1, 2], expect: 6 }, { array: [4, 6, 2, 5], expect: 17 } ]; describe('Get sum from numbers', () => { data.forEach((item) => { ...
nabby27/UseJS
src/app/array/first.ts
<gh_stars>1-10 /** * * @memberof module:Array * @function first * * @description Returns the first element of the array * * @template T * @param {!T[]} array - The array * @returns {T} The first element * * @example * import { first } from 'main-fns'; * * const numbers = [3, 1, 5]; * console.log(first(nu...
nabby27/UseJS
src/app/array/last.ts
<filename>src/app/array/last.ts /** * @memberof module:Array * @function last * * @description Returns the last element of the array * * @template T * @param {!T[]} array - The array * @returns {T} The last element * * @example * import { last } from 'main-fns'; * * const numbers = [3, 1, 5]; * console.lo...
nabby27/UseJS
src/app/array/index.ts
/** @module Array */ export * from './first'; export * from './last'; export * from './orderBy'; export * from './reverse';
nabby27/UseJS
src/app/string/lowerCase.ts
<reponame>nabby27/UseJS /** * * @memberof module:String * @function lowerCase * * @description Returns the lowerCase text from text * * @param {!string} text - The text * @returns {strign} The lowerCase text * * @example * import { lowerCase } from 'main-fns'; * * const text = '<NAME>'; * console.log(lowe...
nabby27/UseJS
src/test/math/median.spec.ts
<reponame>nabby27/UseJS import { median } from '../../app'; const data: { array: number[]; expect: number; }[] = [ { array: [], expect: 0 }, { array: [3, 1, 2], expect: 2 }, { array: [4, 6, 2, 5], expect: 4.5 } ]; describe('Get median fro...
nabby27/UseJS
src/app/string/snakeCase.ts
/** * * @memberof module:String * @function snakeCase * * @description Returns the snakeCase text from text * * @param {!string} text - The text * @returns {strign} The snakeCase text * * @example * import { snakeCase } from 'main-fns'; * * const text = '<NAME>'; * console.log(snakeCase(text)); // 'hello_...
nabby27/UseJS
src/app/string/firstLetters.ts
/** * * @memberof module:String * @function firstLetters * * @description Returns the first letters from text * * @param {!string} text - The text * @param {number} [numberOfLetters=1] - The number of letters, by default is `1` * @returns {strign} The first letters * * @example * import { firstLetters } fro...
nabby27/UseJS
src/test/math/mode.spec.ts
<filename>src/test/math/mode.spec.ts import { mode } from '../../app'; const data: { array: number[]; expect: number[]; }[] = [ { array: [3, 1, 1], expect: [1] }, { array: [4, 2, 2, 5], expect: [2] }, { array: [4, 2, 2, 5, 4, 3, 3], expect: [2...
nabby27/UseJS
src/app/date/isBefore.ts
/** * * @memberof module:Date * @function isBefore * * @description Check if the date is before the dateToCompare * * @param {!Date} date - The date * @param {!Date} dateToCompare - The date to compare * @returns {boolean} True if date is before the dateToCompare * * @example * import { isBefore } from 'mai...
nabby27/UseJS
src/app/object/clone.ts
/** * * @memberof module:Object * @function clone * * @description Returns deep copy from object * * @param {!T} object - The object * @returns {T} The cloned object * * @example * import { clone } from 'main-fns'; * * const userInfo = { * user: { * name: 'Iván', * alias: 'nabby27' * }, * ...
nabby27/UseJS
src/app/math/max.ts
<reponame>nabby27/UseJS<filename>src/app/math/max.ts /** * * @memberof module:Math * @function max * * @description Returns the biggest number from numbers * * @param {!number[]} numbers - The numbers * @returns {number} The biggest number * * @example * import { max } from 'main-fns'; * * const numbers = ...
nabby27/UseJS
src/test/date/addDays.spec.ts
<reponame>nabby27/UseJS import { addDays } from '../../app'; import { mockDate } from '../mocks/currentDateMock'; const currentDayMock = 27; const currentMonthMock = 5; const currentYearMock = 1996; const currentDateMock = new Date(currentYearMock, currentMonthMock, currentDayMock); const expectsDates: { numberOf...
nabby27/UseJS
src/app/string/pascalCase.ts
/** * * @memberof module:String * @function pascalCase * * @description Returns the pascalCase text from text * * @param {!string} text - The text * @returns {strign} The pascalCase text * * @example * import { pascalCase } from 'main-fns'; * * const text = '<NAME>'; * console.log(pascalCase(text)); // 'H...
nabby27/UseJS
src/test/date/isAfter.spec.ts
import { isAfter } from '../../app'; const expectsIsAfter: { date: Date; dateToCompare: Date; expect: boolean; }[] = [ { date: new Date(2020, 10, 14), dateToCompare: new Date(2020, 10, 13), expect: true }, { date: new Date(2020, 10, 13), dateToCompare: ne...
nabby27/UseJS
src/test/date/addYears.spec.ts
<filename>src/test/date/addYears.spec.ts import { addYears } from '../../app'; const currentDay = new Date().getDate(); const currentMonth = new Date().getMonth(); const currentYear = new Date().getFullYear(); const expectsDates: { numberOfYearsToAdd: number; date?: Date; expect: Date; }[] = [ { ...
nabby27/UseJS
src/test/array/first.spec.ts
import { first } from '../../app'; const data: { array: unknown[]; expect: unknown; }[] = [ { array: [3, 2, 1], expect: 3 }, { array: ['a', 'b', 'c'], expect: 'a' } ]; describe('Get first item from array', () => { data.forEach((item) => { test('shoul...
nabby27/UseJS
src/test/mocks/currentDateMock.ts
<filename>src/test/mocks/currentDateMock.ts<gh_stars>1-10 export const mockDate = (expected: Date): () => void => { const _Date = Date; function MockDate(mockOverride?: Date | number): Date { return new _Date(mockOverride || expected); } MockDate.UTC = _Date.UTC; MockDate.parse = _Date.pars...
nabby27/UseJS
src/app/date/startOfDay.ts
/** * * @memberof module:Date * @function startOfDay * * @description Get the date you pass with time to 00:00:00:000 * * @param {Date} [date=new Date()] - The date * @returns {!Date} - The date with init time, by default is `new Date()` * * @example * import { startOfDay } from 'main-fns'; * * const myDat...
nabby27/UseJS
src/app/math/multiply.ts
<gh_stars>1-10 /** * * @memberof module:Math * @function multiply * * @description Returns the product from numbers * * @param {!number[]} numbers - The numbers * @returns {number} The product * * @example * import { multiply } from 'main-fns'; * * const numbers = [3, 1, 5]; * console.log(multiply(numbers...
syncfusion/ej2-react
components/spreadsheet/src/spreadsheet/sheets-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { SheetModel } from '@syncfusion/ej2-spreadsheet'; /** * `SheetDirective` represent a sheet of the React Spreadsheet. * It must be contained in a Spreadsheet component(`SpreadsheetComponent`). * ```tsx * <SpreadsheetComponent> * <SheetsDirective>...
syncfusion/ej2-react
components/charts/src/accumulation-chart/series-directive.tsx
<filename>components/charts/src/accumulation-chart/series-directive.tsx import { ComplexBase } from '@syncfusion/ej2-react-base'; import { AccumulationSeriesModel } from '@syncfusion/ej2-charts'; export interface AccumulationSeriesDirTypecast { dataLabelTemplate?: string | Function | any; } /** * `AccumulationSer...
syncfusion/ej2-react
components/spreadsheet/src/spreadsheet/chart-directive.tsx
<filename>components/spreadsheet/src/spreadsheet/chart-directive.tsx import { ComplexBase } from '@syncfusion/ej2-react-base'; import { ChartModel } from '@syncfusion/ej2-spreadsheet'; export class ChartDirective extends ComplexBase<ChartModel & { children?: React.ReactNode }, ChartModel> { public static moduleN...
syncfusion/ej2-react
components/charts/src/stock-chart/annotations-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { StockChartAnnotationSettingsModel } from '@syncfusion/ej2-charts'; export interface StockChartAnnotationSettingsDirTypecast { content?: string | Function | any; } /** * `Annotation` directive represent a annotation of the react Chart. * It must ...
syncfusion/ej2-react
components/charts/src/stock-chart/series-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { StockSeriesModel } from '@syncfusion/ej2-charts'; /** * `SeriesDirective` directive represent a series of the react chart. * It must be contained in a Chart component(`ChartComponent`). * ```tsx * <StockChartComponent> * <StockChartSeriesCollec...
syncfusion/ej2-react
components/charts/src/stock-chart/rows-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { StockChartRowModel } from '@syncfusion/ej2-charts'; /** * `Row` directive represent a axis row of the react Chart. * It must be contained in a Chart component(`ChartComponent`). * ```tsx * <StockChartComponent> * <RowsDirective> * <RowDirecti...
syncfusion/ej2-react
components/spreadsheet/src/spreadsheet/cells-directive.tsx
<reponame>syncfusion/ej2-react import { ComplexBase } from '@syncfusion/ej2-react-base'; import { CellModel } from '@syncfusion/ej2-spreadsheet'; /** * `CellDirective` represent a cell of the React Spreadsheet. * It must be contained in a `RowDirective`. * ```tsx * <SpreadsheetComponent> * <SheetsDirective> *...
syncfusion/ej2-react
components/spreadsheet/src/spreadsheet/image-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { ImageModel } from '@syncfusion/ej2-spreadsheet'; export class ImageDirective extends ComplexBase<ImageModel & { children?: React.ReactNode }, ImageModel> { public static moduleName: string = 'image'; } export class ImagesDirective extends Comple...
syncfusion/ej2-react
components/layouts/src/dashboard-layout/panels-directive.tsx
<filename>components/layouts/src/dashboard-layout/panels-directive.tsx import { ComplexBase } from '@syncfusion/ej2-react-base'; import { PanelModel } from '@syncfusion/ej2-layouts'; export interface PanelDirTypecast { header?: string | Function | any; content?: string | Function | any; panelsHeader?: stri...
syncfusion/ej2-react
components/charts/src/chart/axes-directive.tsx
<reponame>syncfusion/ej2-react import { ComplexBase } from '@syncfusion/ej2-react-base'; import { AxisModel } from '@syncfusion/ej2-charts'; /** * `Axis` directive represent a axis row of the react Chart. * It must be contained in a Chart component(`ChartComponent`). * ```tsx * <ChartComponent> * <AxesDirectiv...
syncfusion/ej2-react
components/circulargauge/src/circular-gauge/ranges-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { RangeModel } from '@syncfusion/ej2-circulargauge'; /** * `Ranges` directive represent a ranges of the react circular gauge. * It must be contained in a CircularGauge component(`CircularGauge`). * ```tsx * <CircularGaugeComponent> * <AxesDirecti...
syncfusion/ej2-react
components/charts/src/stock-chart/selecteddataindexes-directive.tsx
<gh_stars>0 import { ComplexBase } from '@syncfusion/ej2-react-base'; import { StockChartIndexesModel } from '@syncfusion/ej2-charts'; /** * `SelectedDataIndex` directive represent the selected data in react Chart. * It must be contained in a Chart component(`ChartComponent`). * ```tsx * <ChartComponent> * <S...
syncfusion/ej2-react
components/popups/src/dialog/buttons-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { ButtonPropsModel } from '@syncfusion/ej2-popups'; /** * `ButtonDirective` represent a button of the react dialog. * It must be contained in a Dialog component(`DialogComponent`). * ```tsx * <DialogComponent showCloseIcon={true}> * <ButtonsDi...
syncfusion/ej2-react
components/grids/src/grid/stacked-column-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { StackedColumnModel } from '@syncfusion/ej2-grids'; export interface StackedColumnDirTypecast { template?: string | Function | any; headerTemplate?: string | Function | any; commandsTemplate?: string | Function | any; filterItemTemplate?...
syncfusion/ej2-react
components/buttons/src/chips/chips-directive.tsx
<gh_stars>0 import { ComplexBase } from '@syncfusion/ej2-react-base'; import { ChipModel } from '@syncfusion/ej2-buttons'; export interface ChipDirTypecast { } /** * `ChipDirective` directive represent a chip of the React ChipList. * ```html * <ChipListComponent> * <ChipsDirective> * <ChipDirective text='ch...
syncfusion/ej2-react
components/spreadsheet/src/spreadsheet/conditionalformats-directive.tsx
<gh_stars>0 import { ComplexBase } from '@syncfusion/ej2-react-base'; import { ConditionalFormatModel } from '@syncfusion/ej2-spreadsheet'; /** * `ConditionalFormatDirective` represent a conditionalformat of the React Spreadsheet. * It must be contained in a `SheetDirective`. * ```tsx * <SpreadsheetComponent> * ...
syncfusion/ej2-react
components/maps/src/maps/bubblesettings-directive.tsx
<reponame>syncfusion/ej2-react<gh_stars>0 import { ComplexBase } from '@syncfusion/ej2-react-base'; import { BubbleSettingsModel } from '@syncfusion/ej2-maps'; export interface BubbleSettingsDirTypecast { tooltipSettingsTemplate?: string | Function | any; } /** * `BubblesDirective` directive represent a bubble se...
syncfusion/ej2-react
components/inputs/src/uploader/files-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { FilesPropModel } from '@syncfusion/ej2-inputs'; /** * `FilesDirective` represent a file of the react uploader. * It must be contained in a Uploader component(`UploaderComponent`). * ```tsx * <UploaderComponent multiple={true}> * <FilesDirect...
syncfusion/ej2-react
components/gantt/src/gantt/holidays-directive.tsx
<filename>components/gantt/src/gantt/holidays-directive.tsx import { ComplexBase } from '@syncfusion/ej2-react-base'; import { HolidayModel } from '@syncfusion/ej2-gantt'; /** * `HolidaysDirective` represent a holidays collection in Gantt.. * It must be contained in a Gantt component(`GanttComponent`). * ```tsx ...
syncfusion/ej2-react
components/charts/src/stock-chart/stockevents-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { StockEventsSettingsModel } from '@syncfusion/ej2-charts'; /** * `StockChartStockEvents` directive represent a stockevent of the react chart. * It must be contained in a Chart component(`StockChartComponent`). * ```tsx * <StockChartComponent> * ...
syncfusion/ej2-react
components/calendars/src/daterangepicker/presets-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { PresetsModel } from '@syncfusion/ej2-calendars'; /** * `PresetsDirective` represent a presets of the react daterangepicker. * It must be contained in a daterangepicker component(`DateRangePickerComponent`). * ```tsx * <DateRangePickerComponent i...
syncfusion/ej2-react
components/maps/src/maps/navigationlinesettings-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { NavigationLineSettingsModel } from '@syncfusion/ej2-maps'; export interface NavigationLineSettingsDirTypecast { tooltipSettingsTemplate?: string | Function | any; } /** * `NavigationLinesDirective` directive represent a bubble settings of the reac...
syncfusion/ej2-react
components/charts/src/accumulation-chart/annotations-directive.tsx
<reponame>syncfusion/ej2-react import { ComplexBase } from '@syncfusion/ej2-react-base'; import { AccumulationAnnotationSettingsModel } from '@syncfusion/ej2-charts'; export interface AccumulationAnnotationSettingsDirTypecast { content?: string | Function | any; } /** * `AccumulationAnnotationsDirective` directiv...
syncfusion/ej2-react
components/charts/src/chart/segments-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { ChartSegmentModel } from '@syncfusion/ej2-charts'; /** * `SegmentDirective` directive represent a segment of the react chart. * It must be contained in a Chart component(`ChartComponent`). * ```tsx * <ChartComponent> * <SeriesCollectionDirectiv...
syncfusion/ej2-react
components/diagrams/src/diagram/node-annotation-directive.tsx
<reponame>syncfusion/ej2-react<gh_stars>0 import { ComplexBase } from '@syncfusion/ej2-react-base'; import { ShapeAnnotationModel } from '@syncfusion/ej2-diagrams'; /** * `Node` directive represent a annotation of the react Diagram. * It must be contained in a Diagram component(`DiagramComponent`). * ```tsx * <...
syncfusion/ej2-react
components/dropdowns/src/drop-down-tree/dropdowntree.component.tsx
import * as React from 'react'; import { DropDownTree, DropDownTreeModel } from '@syncfusion/ej2-dropdowns'; import { ComponentBase, applyMixins, DefaultHtmlAttributes } from '@syncfusion/ej2-react-base'; export interface DropDownTreeTypecast { footerTemplate?: string | Function | any; headerTemplate?: string...
syncfusion/ej2-react
components/grids/src/grid/columns-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { GridColumnModel } from '@syncfusion/ej2-grids'; export interface GridColumnDirTypecast { template?: string | Function | any; headerTemplate?: string | Function | any; commandsTemplate?: string | Function | any; filterItemTemplate?: stri...
syncfusion/ej2-react
components/charts/src/bullet-chart/ranges-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { RangeModel } from '@syncfusion/ej2-charts'; /** * `BulletRangeDirective` directive represent a ranges of the react BulletChart. * ```tsx * <BulletChartComponent> * <BulletRangeCollectionDirective> * <BulletRangeDirective></BulletRangeDirective> ...
syncfusion/ej2-react
components/maps/src/maps/colormapping-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { ColorMappingSettingsModel } from '@syncfusion/ej2-maps'; /** * `ColorMappingDirective` directive to configure the color mapping of the react maps. * It must be contained in a Maps component(`MapsComponent`). * ```tsx * <MapsComponent> * <Layers...
syncfusion/ej2-react
components/charts/src/chart/annotations-directive.tsx
<reponame>syncfusion/ej2-react import { ComplexBase } from '@syncfusion/ej2-react-base'; import { ChartAnnotationSettingsModel } from '@syncfusion/ej2-charts'; export interface ChartAnnotationSettingsDirTypecast { content?: string | Function | any; } /** * `Annotation` directive represent a annotation of the reac...
syncfusion/ej2-react
components/diagrams/src/symbol-palette/palettes-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { PaletteModel } from '@syncfusion/ej2-diagrams'; /** * `Palette` directive represent a axis palette of the react SymbolPalette. * It must be contained in a SymbolPalette component(`SymbolPaletteComponent`). * ```tsx * <SymbolPaletteComponent> *...
syncfusion/ej2-react
components/navigations/src/breadcrumb/items-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { BreadcrumbItemModel } from '@syncfusion/ej2-navigations'; /** * `BreadcrumbItemDirective` represent a item of the React Breadcrumb. * It must be contained in a Breadcrumb component(`BreadcrumbComponent`). * ```tsx * <BreadcrumbComponent> * <...
syncfusion/ej2-react
components/spreadsheet/src/spreadsheet/index.ts
<gh_stars>100-1000 export * from './sheets-directive'; export * from './rows-directive'; export * from './cells-directive'; export * from './image-directive'; export * from './chart-directive'; export * from './columns-directive'; export * from './ranges-directive'; export * from './conditionalformats-directive'; expor...
syncfusion/ej2-react
components/navigations/src/carousel/carousel.component.tsx
import * as React from 'react'; import { Carousel, CarouselModel } from '@syncfusion/ej2-navigations'; import { ComponentBase, applyMixins, DefaultHtmlAttributes } from '@syncfusion/ej2-react-base'; export interface CarouselTypecast { indicatorsTemplate?: string | Function | any; nextButtonTemplate?: string |...
syncfusion/ej2-react
components/navigations/src/accordion/items-directive.tsx
<reponame>syncfusion/ej2-react import { ComplexBase } from '@syncfusion/ej2-react-base'; import { AccordionItemModel } from '@syncfusion/ej2-navigations'; export interface AccordionItemDirTypecast { header?: string | Function | any; content?: string | Function | any; } /** * `AccordionItemDirective` represent...
syncfusion/ej2-react
components/charts/src/sparkline/rangebandsettings-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { RangeBandSettingsModel } from '@syncfusion/ej2-charts'; export class RangeBandSettingDirective extends ComplexBase<RangeBandSettingsModel & { children?: React.ReactNode }, RangeBandSettingsModel> { public static moduleName: string = 'rangeBandSet...
syncfusion/ej2-react
components/charts/src/stock-chart/axes-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { StockChartAxisModel } from '@syncfusion/ej2-charts'; /** * `Axis` directive represent a axis row of the react Chart. * It must be contained in a Chart component(`ChartComponent`). * ```tsx * <StockChartComponent> * <StockChartAxesDirective> * ...
syncfusion/ej2-react
components/charts/src/chart/indicators-directive.tsx
<reponame>syncfusion/ej2-react import { ComplexBase } from '@syncfusion/ej2-react-base'; import { TechnicalIndicatorModel } from '@syncfusion/ej2-charts'; /** * `IndicatorDirective` directive represent a indicator of the react chart. * It must be contained in a Chart component(`ChartComponent`). * ```tsx * <Cha...
syncfusion/ej2-react
components/charts/src/chart/rangecolorsettings-directive.tsx
<filename>components/charts/src/chart/rangecolorsettings-directive.tsx import { ComplexBase } from '@syncfusion/ej2-react-base'; import { RangeColorSettingModel } from '@syncfusion/ej2-charts'; /** * `RangeColorSetting` directive represent range color mapping of the react Chart. * It must be contained in a Chart c...
syncfusion/ej2-react
components/diagrams/src/diagram/index.ts
export * from './layers-directive'; export * from './customcursor-directive'; export * from './connectors-directive'; export * from './connector-fixeduserhandle-directive'; export * from './connector-annotation-directive'; export * from './nodes-directive'; export * from './node-fixeduserhandle-directive'; export * fro...
syncfusion/ej2-react
components/diagrams/src/diagram/node-fixeduserhandle-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { NodeFixedUserHandleModel } from '@syncfusion/ej2-diagrams'; /** * `Node` directive represent a annotation of the react Diagram. * It must be contained in a Diagram component(`DiagramComponent`). * ```tsx * <DiagramComponent> * <NodesDirective> ...
syncfusion/ej2-react
components/base/spec/sample-component.tsx
<filename>components/base/spec/sample-component.tsx<gh_stars>100-1000 /** * */ import { ComponentBase, ComplexBase } from '../src/index'; import { applyMixins, DefaultHtmlAttributes } from '../src/index'; import {compile} from '@syncfusion/ej2-base'; import * as React from 'react'; import { Component,ChildProperty, ...
syncfusion/ej2-react
components/popups/src/dialog/dialog.component.tsx
import * as React from 'react'; import { Dialog, DialogModel } from '@syncfusion/ej2-popups'; import { ComponentBase, applyMixins, DefaultHtmlAttributes } from '@syncfusion/ej2-react-base'; export interface DialogTypecast { footerTemplate?: string | Function | any; header?: string | Function | any; conten...
syncfusion/ej2-react
components/charts/src/chart/selecteddataindexes-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { IndexesModel } from '@syncfusion/ej2-charts'; /** * `SelectedDataIndex` directive represent the selected data in react Chart. * It must be contained in a Chart component(`ChartComponent`). * ```tsx * <ChartComponent> * <SelectedDataIndexesDire...
syncfusion/ej2-react
components/diagrams/src/diagram/diagram.component.tsx
<gh_stars>100-1000 import * as React from 'react'; import { Diagram, DiagramModel } from '@syncfusion/ej2-diagrams'; import { ComponentBase, applyMixins, DefaultHtmlAttributes } from '@syncfusion/ej2-react-base'; export interface DiagramTypecast { annotationTemplate?: string | Function | any; nodeTemplate?: s...
syncfusion/ej2-react
components/spreadsheet/src/spreadsheet/definednames-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { DefineNameModel } from '@syncfusion/ej2-spreadsheet'; /** * `DefinedNameDirective` represent a defined name of the React Spreadsheet. * It must be contained in a Spreadsheet component(`SpreadsheetComponent`). * ```tsx * <SpreadsheetComponent> * ...
syncfusion/ej2-react
components/treegrid/src/treegrid/columns-directive.tsx
<reponame>syncfusion/ej2-react import { ComplexBase } from '@syncfusion/ej2-react-base'; import { ColumnModel } from '@syncfusion/ej2-treegrid'; export interface ColumnDirTypecast { template?: string | Function | any; headerTemplate?: string | Function | any; filterItemTemplate?: string | Function | any; ...
syncfusion/ej2-react
components/navigations/src/carousel/index.ts
<gh_stars>0 export * from './items-directive'; export * from './carousel.component';
syncfusion/ej2-react
components/splitbuttons/src/split-button/items-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { ItemModel } from '@syncfusion/ej2-splitbuttons'; export class SplitButtonItemDirective extends ComplexBase<ItemModel & { children?: React.ReactNode }, ItemModel> { public static moduleName: string = 'splitButtonItem'; } export class SplitButtonI...
syncfusion/ej2-react
components/progressbar/src/progressbar/annotations-directive.tsx
<reponame>syncfusion/ej2-react import { ComplexBase } from '@syncfusion/ej2-react-base'; import { ProgressAnnotationSettingsModel } from '@syncfusion/ej2-progressbar'; export interface ProgressAnnotationSettingsDirTypecast { content?: string | Function | any; } /** * `ProgressBarAnnotationsDirective` directive re...
syncfusion/ej2-react
components/charts/src/stock-chart/trendlines-directive.tsx
<filename>components/charts/src/stock-chart/trendlines-directive.tsx import { ComplexBase } from '@syncfusion/ej2-react-base'; import { StockChartTrendlineModel } from '@syncfusion/ej2-charts'; /** * `TrendlineDirective` directive represent a trendline of the react chart. * It must be contained in a Chart componen...
syncfusion/ej2-react
components/gantt/src/gantt/eventmarkers-directive.tsx
<reponame>syncfusion/ej2-react import { ComplexBase } from '@syncfusion/ej2-react-base'; import { EventMarkerModel } from '@syncfusion/ej2-gantt'; /** * `EventMarkersDirective` represent a event marker collection in Gantt * It must be contained in a Gantt component(`GanttComponent`). * ```tsx * <GanttComponent d...
syncfusion/ej2-react
components/navigations/src/breadcrumb/index.ts
export * from './items-directive'; export * from './breadcrumb.component';
syncfusion/ej2-react
components/charts/src/chart/trendlines-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { TrendlineModel } from '@syncfusion/ej2-charts'; /** * `TrendlineDirective` directive represent a trendline of the react chart. * It must be contained in a Chart component(`ChartComponent`). * ```tsx * <ChartComponent> * <SeriesCollectionDirecti...
syncfusion/ej2-react
components/treegrid/src/treegrid/aggregates-directive.tsx
<filename>components/treegrid/src/treegrid/aggregates-directive.tsx import { ComplexBase } from '@syncfusion/ej2-react-base'; import { AggregateRowModel } from '@syncfusion/ej2-treegrid'; /** * `AggregateDirective` represent a aggregate row of the react TreeGrid. * It must be contained in a TreeGrid component(`Tre...
syncfusion/ej2-react
components/base/src/component-base.ts
/** * React Component Base */ import * as React from 'react'; import * as ReactDOM from 'react-dom'; import { extend, isNullOrUndefined, setValue, getValue, isObject } from '@syncfusion/ej2-base'; /** * Interface for processing directives */ interface Directive { children: Object; type: { ...
syncfusion/ej2-react
components/inputs/src/signature/index.ts
export * from './signature.component';
syncfusion/ej2-react
components/charts/src/chart/series-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { SeriesModel } from '@syncfusion/ej2-charts'; export interface SeriesDirTypecast { dataLabelTemplate?: string | Function | any; } /** * `SeriesDirective` directive represent a series of the react chart. * It must be contained in a Chart component...
syncfusion/ej2-react
components/charts/src/chart/striplines-directive.tsx
<gh_stars>0 import { ComplexBase } from '@syncfusion/ej2-react-base'; import { StripLineSettingsModel } from '@syncfusion/ej2-charts'; /** * `StriplineDirective` directive represent a stripline of the react chart. * It must be contained in a Chart component(`ChartComponent`). * ```tsx * <ChartComponent> * <Axe...
syncfusion/ej2-react
components/lineargauge/src/linear-gauge/annotations-directive.tsx
import { ComplexBase } from '@syncfusion/ej2-react-base'; import { AnnotationModel } from '@syncfusion/ej2-lineargauge'; export interface AnnotationDirTypecast { content?: string | Function | any; } /** * `Annotations` directive represent a annotations of the react linear gauge. * It must be contained in a Line...
syncfusion/ej2-react
components/navigations/src/carousel/items-directive.tsx
<reponame>syncfusion/ej2-react<filename>components/navigations/src/carousel/items-directive.tsx import { ComplexBase } from '@syncfusion/ej2-react-base'; import { CarouselItemModel } from '@syncfusion/ej2-navigations'; export interface CarouselItemDirTypecast { template?: string | Function | any; } /** * `Carouse...
sassy-labs/datepicker
src/date-picker/index.tsx
import React from 'react'; import MonthPicker from './month-picker'; import DateButton from './date-button'; import { getDatesOfMonth } from '../util'; import './styles.css'; export type DatePickerProps = { /** * This function is called when the selected date is changed. */ onChange?: (date: Date) => void;...
sassy-labs/datepicker
src/index.tsx
<reponame>sassy-labs/datepicker import DatePicker from './date-picker'; import './styles.css'; export { default as TimePicker } from './time-picker'; export default DatePicker;
sassy-labs/datepicker
src/time-picker/index.tsx
<gh_stars>10-100 import React from 'react'; import CustomSelect, { OptionType } from './custom-select'; import './styles.css'; /** * Time type */ export type Time = { hours: number; minutes: number; }; /** * Props for TimePicker React Component */ export type TimePickerProps = { /** * This function is c...
sassy-labs/datepicker
src/time-picker/custom-select.tsx
<gh_stars>10-100 import React from 'react'; import CustomOption from './custom-option'; export type OptionType = { value: string[]; disabled: boolean; }; type CustomSelectProps = { /** * The value of the select. */ value: string; /** * A callback triggered whenever the value of the select changes. ...
sassy-labs/datepicker
src/date-picker/month-picker.tsx
<reponame>sassy-labs/datepicker<filename>src/date-picker/month-picker.tsx import React from 'react'; import { getMonthNameFromNumber } from '../util'; export type MonthPickerProps = { month: number; year: number; nextMonth: () => void; prevMonth: () => void; }; const MonthPicker: React.FC<MonthPickerProps> = ...
sassy-labs/datepicker
src/time-picker/custom-option.tsx
<reponame>sassy-labs/datepicker<filename>src/time-picker/custom-option.tsx import React from 'react'; type CustomOptionProps = { /** * If the option is currently selected. */ selected: boolean; /** * The label to display for the option. */ label: string; /** * The value of the option. */ ...