# Getting Started with calendar-update

### Install the package

`npm i calendar-update`

## Components available in this package

1. **Calendar**

   _Import calendar_

   `import {PtgUiCalendar} from 'calendar-update;`

   _Properties_
   
    __The " ? " represents here that this property is optional__
 
   > onChange?: any;   
   > date?: any;   
   > selected?: any;   
   > className: any;   
   > startDate?: any;   
   > endDate?: any;   
   > disabled?: boolean;   
   > startRef?: any;   
   > onKeyDown?: any;   
   > accessKey?: string;

2. **Charts**   
   - D3 Charts   
     **Import charts**   
     `import { PtgUiD3Line, PtgUiD3Bar, PtgUiD3Pie } from "calendar-update";`
     1. Bar chart   
        _Properties_    
         __The " ? " represents here that this property is optional.__
         __Data array must contain color property for its color in chart.__
        >data?:any,   
        >height?:any,    
        >width?:any,    
        >source?:any,    
        >title?:any,    
        >x_title:string,    
        >y_title:string,    
        >start?:any,    
        >end?:any    
        
     2. Line chart    
         _Properties_    
         __The " ? " represents here that this property is optional.__

        >data:any,    
        >height:any,    
        >width:any,    
        
     3. Pie chart    
        _Properties_    
          __The " ? " represents here that this property is optional.__    
        >data: any;    
        >height?: any;    
        >width?: any;    
        >innerRadius?: any;    
        >outerRadius?: any;    
        >colorsArray?: any;    
   - HighCharts    
     - 2D    
       **Import charts**    
       `import { PtgUiColumn, PtgUiPie,PtgUiLine,PtgUiLineBar,PtgUiStackedColumn } from 'calendar-update';` 
        1. Column chart     
            _Properties_    
             __The " ? " represents here that this property is optional.__    
            >remainingOptions:any,    
            >highcharts?:any,    
            >title?:any,    
            >data?:any    

        2. Line chart     
            _Properties_    
            __The " ? " represents here that this property is optional.__
            >remainingOptions:any,    
            >highcharts?:any,    
            >title?:any,    
            >data?:any    
            
        3.  Linebar chart     
            _Properties_    
            __The " ? " represents here that this property is optional.__
            >remainingOptions:any,    
            >highcharts?:any,    
            >title?:any,    
            >subtitle?:any,    
            >categories?:any    
         
        4. Pie chart     
            _Properties_    
            __The " ? " represents here that this property is optional.__
            >remainingOptions:any,    
            >highcharts?:any,    
            >title?:any,    
            >data?:any    
         
        5. Stacked Column chart    
            _Properties_    
            __The " ? " represents here that this property is optional.__
            >remainingOptions:any,    
            >highcharts?:any,    
            >title?:any,    
            >data?:any,    
            >yTitle?:any,    
            >categories?:any    
            
     - 3D    
       **Import charts**    
       `import { PtgUiColumn, PtgUiPie,PtgUiLine,PtgUiLineBar,PtgUiStackedColumn} from 'calendar-update';` 
        1. Column chart     
            _Properties_    
            __The " ? " represents here that this property is optional.__
            >remainingOptions:any,    
            >highcharts?:any,    
            >title?:any,    
            >data?:any,    
            >categories?:any,    
            >xTitle?:any,    
            >yTitle?:any    

        2. Line chart     
            _Properties_    
            __The " ? " represents here that this property is optional.__
            >remainingOptions:any,    
            >highcharts?:any,    
            >title?:any,    
            >data?:any,    
            >categories?:any,    
            >xTitle?:any,        
            >yTitle?:any    

        3. Pie chart    
            _Properties_    
            __The " ? " represents here that this property is optional.__
            >remainingOptions:any,    
            >highcharts?:any,    
            >title?:any,    
            >data?:any,    
            >categories?:any,    
            >seriesName?:any,    
3. **Data Table**    
   - Ag grid    
        **Import Ag Grid**    
        `import { PtgUiAgGrid } from 'calendar-update';`
        _Properties_    
        __The " ? " represents here that this property is optional.__
        >data:any[],    
        >autoGroupColumnDef:any,    
        >columnDefs:any,    
        >defaultColDef:any,    
        >rowSelection?:string,    
        >groupSelectsChildren?:boolean,    
        >pagination?:boolean,    
        >paginationPageSize?:number,    
        >customPagination?: boolean,    
        >domLayout?:any    

   - React table    
        **Import React Table**    
        `import { PtgUiReactTable } from 'calendar-update';`
        _Properties_    
        __The " ? " represents here that this property is optional.__
        >data?:any;    
        >columns?:any;    
        
4. **Download file**
    **Import Download**    
    `import { PtgUiDownload } from 'calendar-update';`
    _Properties_    
    __The " ? " represents here that this property is optional.__
    >columns?: any;    
    >dataToDownload?: any;    
    >allowFileTypes?: any;    

- Formats
    1. PDF
    2. Word
    3. Image
    4. Excel
5. **Indeterminate Checkbox**
    **Import Indeterminate Checkbox**    
    `import { PtgUiIndeterminateCheckbox } from 'calendar-update';`
    _Properties_    
    >items:any;    
6. **Input**    
    **Import input**    
    `import { PtgUiInput } from 'calendar-update';`
    _Properties_    
    __The " ? " represents here that this property is optional.__
    >type: string;    
    >value?: any;    
    >onChange?: any;    
    >placeholder?: string;    
    >disabled?: boolean;    
    >required?: boolean;    
    >className?: string;    
    >inputsize?: string;    
    >name?: string;    
    >onBlur?: any;    
    >ref?: any;    
    >maxlength?: any;    
    >onKeyUp?: any;    
    >id?: string;    
7. **loader**    
    **Import Loader**    
    `import { PtgUiLoading } from 'calendar-update';`
8. **Multi Select**    
    **Import Multi Select**    
    `import { PtgUiMultiSelectbox } from 'calendar-update';`    
    _Properties_    
    __The " ? " represents here that this property is optional.__    
    >name?: string,    
    >selectedValues?: any,    
    >id?: string,    
    >className?:string,    
    >list: { value: any, label: any }[],    
    >showCheckbox?: boolean,    
    >placeholder?:string    
    >singleSelect?: boolean,    
    >onSelect?:any,    
9. **Radio**    
    **Import Radio**    
    `import { PtgUiRadio } from 'calendar-update';`    
    _Properties_    
    __The " ? " represents here that this property is optional.__    
    >name?: string;    
    >value?: string;    
    >id?: string;    
    >htmlFor?: string;    
    >onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;    
    >list: { id: string; name: string; value: string }[];    
    >children?: React.ReactNode;    
    >checked?: boolean;    
    >accessKey?: string;    

10. **Select**    
    **Import Select**    
    `import { PtgUiSelect } from 'calendar-update';`    
    _Properties_    
    __The " ? " represents here that this property is optional.__    
    >name?: string;    
    >value?: string;    
    >id?: string;    
    >className?: string;    
    >list: { label: any; value: any }[];    
    >onBlur?: any;    
    >htmlFor?: string;    
    >onChange?: (event: React.ChangeEvent<HTMLInputElement>) => void;    

11. **Text Area**    
    **Import Text Area**    
    `import { PtgUiTextArea } from 'calendar-update';`    
    _Properties_    
    __The " ? " represents here that this property is optional.__    
    >value?: any;    
    >onChange?: any;    
    >placeholder?: string;    
    >disabled?: boolean;    
    >hasError?: boolean;    
    >onFocus?: any;    
    >dataTest?: string;    
    >required?: boolean;    
    >className?: string;    
    >inputsize?: string;    
    >name?: string;    
    >onBlur?: any;    
    >ref?: any;    
    >rows?: any;    
    >cols?: any;    
    >form?: any;    
    >maxlength?: any;    
    >onKeyUp?: any;    
    >id?: string;   
