@ruc-lib/grid-list 2.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +7 -0
- package/esm2020/index.mjs +8 -0
- package/esm2020/interfaces/toolbar.config.mjs +2 -0
- package/esm2020/lib/grid-cards/grid-cards.component.mjs +30 -0
- package/esm2020/lib/grid-chart/grid-chart.component.mjs +28 -0
- package/esm2020/lib/grid-chart-dialog/grid-chart-dialog.component.mjs +34 -0
- package/esm2020/lib/grid-column/grid-column.component.mjs +16 -0
- package/esm2020/lib/ruclib-grid-list/ruclib-grid-list.component.mjs +240 -0
- package/esm2020/lib/ruclib-grid-list.module.mjs +84 -0
- package/esm2020/models/grid-default.config.mjs +22 -0
- package/esm2020/models/grid-list-default-data.mjs +72 -0
- package/esm2020/ruc-lib-grid-list.mjs +5 -0
- package/esm2020/service-ui/grid-list.service.mjs +27 -0
- package/fesm2015/ruc-lib-grid-list.mjs +456 -0
- package/fesm2015/ruc-lib-grid-list.mjs.map +1 -0
- package/fesm2020/ruc-lib-grid-list.mjs +453 -0
- package/fesm2020/ruc-lib-grid-list.mjs.map +1 -0
- package/index.d.ts +7 -0
- package/interfaces/toolbar.config.d.ts +4 -0
- package/lib/grid-cards/grid-cards.component.d.ts +14 -0
- package/lib/grid-chart/grid-chart.component.d.ts +13 -0
- package/lib/grid-chart-dialog/grid-chart-dialog.component.d.ts +16 -0
- package/lib/grid-column/grid-column.component.d.ts +8 -0
- package/lib/ruclib-grid-list/ruclib-grid-list.component.d.ts +96 -0
- package/lib/ruclib-grid-list.module.d.ts +24 -0
- package/models/grid-default.config.d.ts +40 -0
- package/models/grid-list-default-data.d.ts +19 -0
- package/package.json +37 -0
- package/service-ui/grid-list.service.d.ts +15 -0
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ruc-lib-grid-list.mjs","sources":["../../src/lib/grid-cards/grid-cards.component.ts","../../src/lib/grid-cards/grid-cards.component.html","../../src/lib/grid-column/grid-column.component.ts","../../src/lib/grid-column/grid-column.component.html","../../src/models/grid-default.config.ts","../../src/lib/grid-chart-dialog/grid-chart-dialog.component.ts","../../src/lib/grid-chart-dialog/grid-chart-dialog.component.html","../../src/service-ui/grid-list.service.ts","../../src/lib/grid-chart/grid-chart.component.ts","../../src/lib/grid-chart/grid-chart.component.html","../../src/lib/ruclib-grid-list/ruclib-grid-list.component.ts","../../src/lib/ruclib-grid-list/ruclib-grid-list.component.html","../../src/lib/ruclib-grid-list.module.ts","../../src/ruc-lib-grid-list.ts"],"sourcesContent":["import { AfterViewInit, Component, Input, OnInit } from '@angular/core';\r\nimport { GridCardConfig } from '../../models/grid-default.config';\r\n\r\n@Component({\r\n selector: 'ruc-grid-cards',\r\n templateUrl: './grid-cards.component.html',\r\n styleUrls: ['./grid-cards.component.scss']\r\n})\r\nexport class GridCardsComponent implements OnInit, AfterViewInit {\r\n\r\n @Input()\r\n data: any = [];\r\n\r\n @Input()\r\n gridItem: any;\r\n\r\n @Input()\r\n config: GridCardConfig = {};\r\n\r\n @Input()\r\n header!: any;\r\n\r\n constructor() { }\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n ngAfterViewInit(): void {}\r\n\r\n}\r\n"," <mat-card [style]=\"config.style?.card\">\r\n <mat-card-content>\r\n <div class=\"card-top\">\r\n <span>{{gridItem.title}}</span>\r\n <div>\r\n <mat-icon [style]=\"config.style?.icon\" *ngFor=\"let icon of config.actions\" (click)=\"icon?.handler($event, gridItem)\">{{icon.icon}}</mat-icon>\r\n </div>\r\n \r\n </div>\r\n <div *ngFor=\"let value of header\">\r\n <p *ngIf=\"value.showInCardView\">\r\n {{value['header']}} : {{gridItem[value['name']]}}\r\n </p>\r\n </div>\r\n </mat-card-content>\r\n </mat-card>\r\n\r\n","import { Component, ContentChild, Input, TemplateRef } from '@angular/core';\r\n\r\n@Component({\r\n selector: 'ruc-grid-column',\r\n templateUrl: './grid-column.component.html',\r\n styleUrls: ['./grid-column.component.scss']\r\n})\r\nexport class GridColumnComponent {\r\n\r\n //column field name, field name should be same as field name in column config.\r\n @Input()\r\n name!: string;\r\n\r\n //content child of column template.\r\n @ContentChild('cellTemplate')\r\n cellTemplate!: TemplateRef<any>;\r\n\r\n\r\n}\r\n","","import { PageEvent } from \"@angular/material/paginator\";\r\n\r\nexport class GridColumnConfig {\r\n name!: string;\r\n header!: string;\r\n headerStyle?: any;\r\n isCustom?: boolean;\r\n sticky?: boolean;\r\n isSort?: boolean;\r\n actionColumn?: boolean;\r\n action?: GridListActions[];\r\n showInCardView!: boolean\r\n}\r\n\r\nexport class GridCardConfig{\r\n title?:string;\r\n actions?: GridListActions[];\r\n style?: GridCardStyle\r\n}\r\n\r\nexport class GridCardStyle{\r\n card?: any;\r\n icon?: any\r\n}\r\n\r\nexport class GridListActions {\r\n icon!: string;\r\n title!: string;\r\n handler?: (event?: any, rowData?: any) => void;\r\n}\r\n\r\n\r\nexport class GridConfig<T> {\r\n showFilter: boolean = true;\r\n\r\n showGridView: boolean = true;\r\n\r\n pagination: boolean = true;\r\n\r\n isPaginatedApi: boolean = false;\r\n\r\n isExpandable = false;\r\n\r\n isSelectable = true;\r\n \r\n stickyTableHeader = true;\r\n\r\n cardStyle: any = {};\r\n\r\n loadData!: (event?: PageEvent) => any;\r\n\r\n data?: any;\r\n\r\n showListView: boolean = false;\r\n\r\n loadChartData!: () => any;\r\n}\r\n","import { AfterViewInit, Component, Inject, OnDestroy, OnInit } from '@angular/core';\r\nimport { FormControl, FormGroup } from '@angular/forms';\r\nimport { MAT_DIALOG_DATA, MatDialogRef } from '@angular/material/dialog';\r\nimport { Chart } from 'chart.js';\r\n\r\n@Component({\r\n selector: 'ruclib-grid-chart-dialog',\r\n templateUrl: './grid-chart-dialog.component.html',\r\n styleUrls: ['./grid-chart-dialog.component.scss']\r\n})\r\nexport class RucGridChartDialogComponent implements OnInit, AfterViewInit {\r\n newItemForm!: FormGroup;\r\n constructor(public dialogRef: MatDialogRef<RucGridChartDialogComponent>,\r\n @Inject(MAT_DIALOG_DATA) public data: any) { }\r\n\r\n chart: any;\r\n\r\n ngOnInit(): void {\r\n }\r\n\r\n ngAfterViewInit(): void {\r\n this.data.chartConfig.forEach((chartData: any, index: number) => {\r\n const ctx = document.getElementById(`chart${index}`) as HTMLCanvasElement;\r\n new Chart(ctx, chartData);\r\n });\r\n }\r\n\r\n onCancel(): void {\r\n this.dialogRef.close(null);\r\n }\r\n}\r\n","<div class=\"chart-container\">\r\n <div *ngFor=\"let chart of data.chartConfig; let i = index\" style=\"position: relative; height:50vh; width:40vw\">\r\n <canvas id=\"chart{{i}}\"></canvas>\r\n </div>\r\n</div>\r\n<button mat-button (click)=\"onCancel()\">Cancel</button>","import { Injectable } from '@angular/core';\r\nimport { Subject } from 'rxjs';\r\n\r\n/**\r\n * This service will handle the tabData\r\n */\r\n@Injectable({\r\n providedIn: 'root'\r\n})\r\nexport class GridListService {\r\n\r\n private gridChartDetails = new Subject();\r\n gridChartDetails$ = this.gridChartDetails.asObservable();\r\n\r\n constructor() { }\r\n\r\n /**\r\n * method for handling the tabData which will have tabData as argument \r\n */\r\n sendGridChartData(dataSource?: any) {\r\n this.gridChartDetails.next(dataSource);\r\n }\r\n}","import { AfterContentChecked, AfterContentInit, AfterViewInit, Component, DoCheck, Input, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';\r\nimport { GridCardConfig } from '../../models/grid-default.config';\r\nimport Chart from 'chart.js/auto';\r\n\r\n@Component({\r\n selector: 'ruc-grid-chart',\r\n templateUrl: './grid-chart.component.html',\r\n styleUrls: ['./grid-chart.component.scss']\r\n})\r\nexport class GridChartComponent implements OnInit, AfterViewInit, OnDestroy{\r\n\r\n constructor() { }\r\n chart: any;\r\n @Input()\r\n index = 0;\r\n\r\n @Input()\r\n chartConfig: any;\r\n\r\n ngOnInit(): void {}\r\n\r\n\r\n \r\n ngAfterViewInit(): void {\r\n this.chart = new Chart('canvas' + this.index, this.chartConfig);\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this.chart.destroy();\r\n this.chart = null;\r\n this.chartConfig = null;\r\n }\r\n}","<div style=\"position: relative; height:50vh; width:40vw\">\r\n <canvas id=\"canvas{{index}}\">{{chart}}</canvas>\r\n</div>\r\n\r\n","import { SelectionModel } from \"@angular/cdk/collections\";\r\nimport { AfterContentInit, AfterViewInit, Component, ContentChildren, EventEmitter, Input, OnInit, Output, QueryList, ViewChild } from \"@angular/core\";\r\nimport { MatTableDataSource } from \"@angular/material/table\";\r\nimport { GridColumnComponent } from \"../grid-column/grid-column.component\";\r\nimport { MatPaginator, PageEvent } from '@angular/material/paginator';\r\nimport { MatSort } from '@angular/material/sort';\r\nimport { GridCardConfig, GridColumnConfig, GridConfig } from \"../../models/grid-default.config\";\r\nimport { MatDialog } from '@angular/material/dialog';\r\nimport { animate, state, style, transition, trigger } from \"@angular/animations\";\r\nimport { GridData } from \"../../models/grid-list-default-data\";\r\nimport { GridChartComponent } from \"../grid-chart/grid-chart.component\";\r\nimport { RucGridChartDialogComponent } from \"../grid-chart-dialog/grid-chart-dialog.component\";\r\nimport { GridListService } from \"../../service-ui/grid-list.service\";\r\n\r\n\r\n\r\n@Component({\r\n selector: 'uxp-ruclib-grid-list',\r\n templateUrl: './ruclib-grid-list.component.html',\r\n styleUrls: ['./ruclib-grid-list.component.scss'],\r\n animations: [\r\n trigger('detailExpand', [\r\n state('collapsed', style({ height: '0px', minHeight: '0' })),\r\n state('expanded', style({ height: '*' })),\r\n transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),\r\n ]),\r\n ],\r\n\r\n})\r\nexport class RuclibGridListComponent implements AfterContentInit, OnInit, AfterViewInit {\r\n\r\n displayedColumns: string[] = [];\r\n dataSource:any;\r\n search = '';\r\n selection = new SelectionModel<any>(true, []);\r\n\r\n gridViewData: any = [];\r\n\r\n @ViewChild(MatPaginator) paginator!: MatPaginator;\r\n\r\n @ViewChild(MatSort) sort!: MatSort;\r\n\r\n @ContentChildren(GridColumnComponent)\r\n cellTemplate!: QueryList<GridColumnComponent>;\r\n\r\n @Output()\r\n rowExpanded = new EventEmitter(false);\r\n\r\n @Input()\r\n columnConfig!: GridColumnConfig[];\r\n\r\n @Input()\r\n inputData: any;\r\n\r\n gridCardConfig: GridCardConfig = {};\r\n\r\n @Input()\r\n gridConfig = new GridConfig<any>();\r\n\r\n @Input()\r\n chartConfig: any;\r\n\r\n @Input()\r\n customTheme: any;\r\n\r\n\r\n @Input()\r\n rucInputData: any;\r\n\r\n customColumnMap: any = [];\r\n\r\n listView = true;\r\n\r\n expandedElement: any;\r\n\r\n columnsToDisplayWithExpand: any;\r\n\r\n expanded = false;\r\n\r\n currentStateObj: any;\r\n\r\n @Output()\r\n infoClicked = new EventEmitter();\r\n\r\n @Output() rucEvent = new EventEmitter<any>();\r\n\r\n\r\n constructor(private dialog: MatDialog, private gridListService: GridListService) { }\r\n\r\n ngOnInit(): void {\r\n this.columnConfig = this.rucInputData.columnConfig;\r\n this.gridConfig = this.rucInputData.gridConfig;\r\n this.listView = !this.gridConfig.showListView;\r\n this.currentStateObj = {};\r\n \r\n this.dataSource = new MatTableDataSource(this.inputData);\r\n this.displayedColumns = this.columnConfig.map(column => column.name);\r\n if (this.gridConfig.isSelectable) {\r\n this.displayedColumns = ['select', ...this.displayedColumns];\r\n }\r\n this.columnsToDisplayWithExpand = [...this.displayedColumns, 'expand'];\r\n const cardActions = this.columnConfig.filter(x => x.actionColumn)[0].action;\r\n this.gridCardConfig.actions = cardActions;\r\n this.gridCardConfig.title = 'transformation';\r\n this.gridCardConfig.style = this.gridConfig.cardStyle;\r\n this.gridListService.gridChartDetails$.subscribe(res=>{\r\n this.dialog.open(RucGridChartDialogComponent, {\r\n data: {\r\n chartConfig: res\r\n }\r\n })\r\n }) \r\n }\r\n\r\n ngAfterViewInit() {\r\n this.dataSource.paginator = this.paginator;\r\n this.dataSource.sort = this.sort;\r\n if(!this.listView){\r\n this.createGridViewData();\r\n }\r\n }\r\n\r\n ngAfterContentInit(): void {\r\n this.cellTemplate.forEach(oColumn => {\r\n this.customColumnMap[oColumn.name] = oColumn.cellTemplate;\r\n })\r\n }\r\n\r\n /**\r\n * \r\n * @param event \r\n * @param rowData \r\n */\r\n infoClickHandler(event: any, rowData: GridData){\r\n this.infoClicked.emit(rowData);\r\n }\r\n\r\n /**\r\n * \r\n * @param event \r\n */\r\n onSortChange(event: any) {\r\n this.currentStateObj.sortOrder = event.direction;\r\n this.currentStateObj.sortBy = event.active;\r\n this.rucEvent.emit({ 'eventName': 'sortByColumn', 'eventOutput': event })\r\n this.rucEvent.emit({ 'eventName': 'currentStateObjChange', 'eventOutput': this.currentStateObj });\r\n }\r\n\r\n /**\r\n * Filter Table\r\n * @param event \r\n */\r\n applyFilter(event: Event) {\r\n const filterValue = (event.target as HTMLInputElement).value;\r\n this.currentStateObj.searchText = filterValue ? filterValue.trim().toLowerCase() : '';\r\n this.dataSource.filter = filterValue.trim().toLowerCase();\r\n this.rucEvent.emit({ 'eventName': 'currentStateObjChange', 'eventOutput': this.currentStateObj });\r\n this.createGridViewData(this.dataSource.filteredData);\r\n\r\n if (this.dataSource.paginator) {\r\n this.dataSource.paginator.firstPage();\r\n }\r\n }\r\n\r\n /**\r\n * pagination handler\r\n * @param event \r\n * @returns \r\n */\r\n pageChangeHandler(event: PageEvent) {\r\n this.createGridViewData();\r\n if (!this.gridConfig.isPaginatedApi) return;\r\n if(this.gridConfig.isPaginatedApi){\r\n this.rucEvent.emit({ 'eventName': 'paginatorChange', 'eventOutput': { pageIndex: event } });\r\n }\r\n this.inputData = this.gridConfig.data;\r\n this.dataSource = new MatTableDataSource(this.inputData);\r\n }\r\n\r\n /**\r\n * Create Grid view\r\n * @param filteredData \r\n */\r\n createGridViewData(filteredData?: any) {\r\n filteredData = this.search ? this.dataSource.filteredData : this.dataSource.data;\r\n const data: any = this.cloneDeep(filteredData);\r\n const pageSize = this.dataSource.paginator?.pageSize;\r\n const currentPageIndex = this.dataSource.paginator?.pageIndex;\r\n if (pageSize !== undefined && currentPageIndex !== undefined) {\r\n const start = pageSize * currentPageIndex;\r\n const end = (currentPageIndex + 1) * pageSize;\r\n this.gridViewData = data.slice(start, end);\r\n }\r\n }\r\n\r\n /**\r\n * \r\n * @param data \r\n * @returns \r\n */\r\n cloneDeep(data: any) {\r\n return JSON.parse(JSON.stringify(data));\r\n }\r\n\r\n /**\r\n * \r\n * @returns \r\n */\r\n isAllSelected() {\r\n const numSelected = this.selection.selected.length;\r\n const numRows = this.dataSource.data.length;\r\n return numSelected === numRows;\r\n }\r\n\r\n /**\r\n * \r\n * @returns \r\n */\r\n toggleAllRows() {\r\n if (this.isAllSelected()) {\r\n this.selection.clear();\r\n return;\r\n }\r\n this.selection.select(...this.dataSource.data);\r\n }\r\n\r\n /** The label for the checkbox on the passed row */\r\n checkboxLabel(row?: any): string {\r\n if (!row) {\r\n return `${this.isAllSelected() ? 'deselect' : 'select'} all`;\r\n }\r\n // return `${this.selection.isSelected(row) ? 'deselect' : 'select'} row ${row.position + 1}`;\r\n return `${this.selection.isSelected(row) ? 'deselect' : 'select'} row`;\r\n }\r\n\r\n /**\r\n * \r\n * @param i \r\n * @param expandedElement \r\n * @param element \r\n */\r\n handleClick(i: number, expandedElement: any, element: any) {\r\n if (expandedElement != element) { //expand the row\r\n this.expanded = false;\r\n this.rowExpanded.emit({...element, isExpanded: false});\r\n }\r\n else {\r\n this.expanded = true;\r\n this.rowExpanded.emit({...element, isExpanded: true});\r\n }\r\n }\r\n}\r\n\r\n","<div class=\"grid-list-container\" class={{customTheme}}>\r\n <div class=\"header-container\">\r\n <mat-form-field *ngIf=\"gridConfig.showFilter\" appearance=\"outline\">\r\n <input matInput [(ngModel)]=\"search\" (keyup)=\"applyFilter($event)\" placeholder=\"Search\">\r\n </mat-form-field>\r\n\r\n <div *ngIf=\"gridConfig.showGridView\" class=\"icon-container\">\r\n <div (click)=\"listView=true\"\r\n [style.background-color]=\"listView ? gridCardConfig.style?.icon.color : 'white'\"\r\n [class.active-icon]=\"listView\" class=\"icon list\">\r\n <mat-icon>view_list</mat-icon>\r\n </div>\r\n <div (click)=\"listView=false;createGridViewData()\"\r\n [style.background-color]=\"!listView ? gridCardConfig.style?.icon.color : 'white'\"\r\n [class.active-icon]=\"!listView\" class=\"icon grid\">\r\n <mat-icon>grid_on</mat-icon>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div [hidden]=\"!listView\" class=\"mat-elevation-z8\" class=\"overflow\">\r\n <table mat-table [dataSource]=\"dataSource\" multiTemplateDataRows matSort (matSortChange)=\"onSortChange($event)\">\r\n <ng-container matColumnDef=\"select\" *ngIf=\"gridConfig.isSelectable\">\r\n <th mat-header-cell *matHeaderCellDef>\r\n <mat-checkbox color=\"primary\" (change)=\"$event ? toggleAllRows() : null\"\r\n [checked]=\"selection.hasValue() && isAllSelected()\"\r\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\" [aria-label]=\"checkboxLabel()\">\r\n </mat-checkbox>\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <mat-checkbox color=\"primary\" (click)=\"$event.stopPropagation()\"\r\n (change)=\"$event ? selection.toggle(row) : null\" [checked]=\"selection.isSelected(row)\"\r\n [aria-label]=\"checkboxLabel(row)\">\r\n </mat-checkbox>\r\n </td>\r\n </ng-container>\r\n <ng-container *ngFor=\"let column of columnConfig\">\r\n <ng-container [matColumnDef]=\"column.name\" [sticky]=\"\">\r\n\r\n <!--table headers start-->\r\n <th [ngStyle]=\"column?.headerStyle\" mat-header-cell *matHeaderCellDef mat-sort-header>\r\n {{column.header}} </th>\r\n <!--table headers end-->\r\n\r\n\r\n <!--table rows start-->\r\n <ng-container *ngIf=\"!column.isCustom; else customColumn\">\r\n <ng-container *ngIf=\"!column.actionColumn; else actionColumn\">\r\n <td #tooltip=\"matTooltip\" matTooltip=\"{{row[column.name]!}}\" mat-cell *matCellDef=\"let row\">\r\n {{row[column.name]!}} </td>\r\n </ng-container>\r\n\r\n <!--table action rows start-->\r\n <ng-template #actionColumn>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <div class=\"icons\">\r\n <mat-icon [style]=\"gridCardConfig.style?.icon\" *ngFor=\"let action of column.action\"\r\n (click)=\"action?.handler($event, row)\">{{action.icon}}</mat-icon>\r\n </div>\r\n </td>\r\n </ng-template>\r\n <!--table action rows end-->\r\n\r\n </ng-container>\r\n <!--table rows end-->\r\n\r\n\r\n <!--table custom column start-->\r\n <ng-template #customColumn>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <ng-container [ngTemplateOutlet]=\"customColumnMap[column.name]\"\r\n [ngTemplateOutletContext]=\"{element: element}\"></ng-container>\r\n </td>\r\n </ng-template>\r\n <!--table custom column end-->\r\n\r\n </ng-container>\r\n </ng-container>\r\n\r\n\r\n <ng-container matColumnDef=\"expand\">\r\n <th mat-header-cell *matHeaderCellDef aria-label=\"row actions\"> </th>\r\n <td mat-cell *matCellDef=\"let element; let i = index\">\r\n <button mat-icon-button aria-label=\"expand row\"\r\n (click)=\"(expandedElement = expandedElement === element ? null : element); $event.stopPropagation();handleClick(i,expandedElement, element)\">\r\n <mat-icon *ngIf=\"expandedElement !== element\">keyboard_arrow_down</mat-icon>\r\n <mat-icon *ngIf=\"expandedElement === element\">keyboard_arrow_up</mat-icon>\r\n </button>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"expandedDetail\">\r\n <td mat-cell *matCellDef=\"let element; let i = index\"\r\n [attr.colspan]=\"columnsToDisplayWithExpand.length\">\r\n <div class=\"example-element-detail\"\r\n [@detailExpand]=\"element == expandedElement ? 'expanded' : 'collapsed'\">\r\n Expanded\r\n <ng-container *ngIf=\"element === expandedElement && (chartConfig && chartConfig.length); else noChartData\">\r\n <div *ngFor=\"let config of chartConfig; let i=index\">\r\n <ruc-grid-chart [index]=\"i\" [chartConfig]=\"config\"></ruc-grid-chart>\r\n </div>\r\n </ng-container>\r\n <ng-template #noChartData>\r\n No Chart Data exist for this element\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"columnsToDisplayWithExpand\"></tr>\r\n <tr mat-row *matRowDef=\"let element; columns: columnsToDisplayWithExpand;\" class=\"example-element-row\"\r\n [class.example-expanded-row]=\"expandedElement === element\">\r\n </tr>\r\n <tr mat-row *matRowDef=\"let row; columns: ['expandedDetail']\" class=\"expanded-content\"></tr>\r\n\r\n </table>\r\n </div>\r\n\r\n <div [hidden]=\"listView\">\r\n <div #ref><ng-content select=\"[customCard]\"></ng-content></div>\r\n <div *ngIf=\"!ref.children.length\" class=\"grid\">\r\n <ruc-grid-cards *ngFor=\"let data of gridViewData\" class=\"grid-view-container\" [gridItem]=\"data\"\r\n [config]=\"gridCardConfig\" [header]=\"columnConfig\" [data]=\"gridViewData\">\r\n </ruc-grid-cards>\r\n </div>\r\n \r\n </div>\r\n\r\n <mat-paginator (page)=\"pageChangeHandler($event)\" *ngIf=\"gridConfig.pagination\" [pageSizeOptions]=\"[5, 10, 25, 100]\"\r\n aria-label=\"Select page of users\"></mat-paginator>\r\n</div>","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { MatFormFieldModule } from '@angular/material/form-field';\r\nimport { MatTableModule } from '@angular/material/table';\r\nimport { MatPaginatorModule } from '@angular/material/paginator';\r\nimport { FormsModule, ReactiveFormsModule } from '@angular/forms';\r\nimport { MatInputModule } from '@angular/material/input';\r\nimport { MatIconModule } from '@angular/material/icon';\r\nimport { MatSortModule } from '@angular/material/sort';\r\nimport { MatCardModule } from '@angular/material/card';\r\nimport { MatButtonModule } from '@angular/material/button';\r\nimport { MatCheckboxModule } from '@angular/material/checkbox';\r\nimport { MatTooltipModule} from '@angular/material/tooltip';\r\nimport { GridCardsComponent } from './grid-cards/grid-cards.component';\r\nimport { GridColumnComponent } from './grid-column/grid-column.component';\r\nimport { RuclibGridListComponent } from './ruclib-grid-list/ruclib-grid-list.component';\r\nimport { MatDialogModule } from '@angular/material/dialog';\r\nimport { GridChartComponent } from './grid-chart/grid-chart.component';\r\nimport { RucGridChartDialogComponent } from './grid-chart-dialog/grid-chart-dialog.component';\r\n \r\n\r\n\r\n@NgModule({\r\n declarations:[\r\n RuclibGridListComponent,\r\n GridColumnComponent,\r\n GridCardsComponent,\r\n GridChartComponent,\r\n RucGridChartDialogComponent\r\n ],\r\n imports: [ CommonModule,\r\n FormsModule,\r\n MatFormFieldModule,\r\n MatTableModule,\r\n MatPaginatorModule,\r\n MatInputModule,\r\n MatIconModule,\r\n MatSortModule,\r\n MatCardModule,\r\n MatButtonModule,\r\n ReactiveFormsModule,\r\n MatCheckboxModule,\r\n MatTooltipModule,\r\n MatDialogModule,\r\n],\r\nexports: [RuclibGridListComponent, GridColumnComponent]\r\n})\r\nexport class RuclibGridListModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i3","i2","Chart","i2.GridListService","i9","i11","i14.GridCardsComponent","i15.GridChartComponent"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;MAQa,kBAAkB,CAAA;AAc7B,IAAA,WAAA,GAAA;AAXA,QAAA,IAAI,CAAA,IAAA,GAAQ,EAAE,CAAC;AAMf,QAAA,IAAM,CAAA,MAAA,GAAmB,EAAE,CAAC;KAKX;IAEjB,QAAQ,GAAA;KACP;AAED,IAAA,eAAe,MAAW;;gHAnBf,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAlB,kBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,kBAAkB,0ICR/B,2sBAiBA,EAAA,MAAA,EAAA,CAAA,mPAAA,CAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAAA,EAAA,CAAA,OAAA,EA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AA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAjBpB,YAAY;QACrB,WAAW;QACX,kBAAkB;QAClB,cAAc;QACd,kBAAkB;QAClB,cAAc;QACd,aAAa;QACb,aAAa;QACb,aAAa;QACb,eAAe;QACf,mBAAmB;QACnB,iBAAiB;QACjB,gBAAgB;QAChB,eAAe,CAAA,EAAA,CAAA,CAAA;4FAIN,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBAzBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAC;wBACX,uBAAuB;wBACvB,mBAAmB;wBACnB,kBAAkB;wBAClB,kBAAkB;wBAClB,2BAA2B;AAC5B,qBAAA;oBACD,OAAO,EAAE,CAAE,YAAY;wBACrB,WAAW;wBACX,kBAAkB;wBAClB,cAAc;wBACd,kBAAkB;wBAClB,cAAc;wBACd,aAAa;wBACb,aAAa;wBACb,aAAa;wBACb,eAAe;wBACf,mBAAmB;wBACnB,iBAAiB;wBACjB,gBAAgB;wBAChB,eAAe;AAClB,qBAAA;AACD,oBAAA,OAAO,EAAE,CAAC,uBAAuB,EAAE,mBAAmB,CAAC;iBACtD,CAAA;;;AC9CD;;AAEG;;;;"}
|
|
@@ -0,0 +1,453 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Component, Input, ContentChild, Inject, Injectable, EventEmitter, ViewChild, ContentChildren, Output, NgModule } from '@angular/core';
|
|
3
|
+
import * as i3 from '@angular/common';
|
|
4
|
+
import { CommonModule } from '@angular/common';
|
|
5
|
+
import * as i5 from '@angular/material/form-field';
|
|
6
|
+
import { MatFormFieldModule } from '@angular/material/form-field';
|
|
7
|
+
import * as i6 from '@angular/material/table';
|
|
8
|
+
import { MatTableDataSource, MatTableModule } from '@angular/material/table';
|
|
9
|
+
import * as i7 from '@angular/material/paginator';
|
|
10
|
+
import { MatPaginator, MatPaginatorModule } from '@angular/material/paginator';
|
|
11
|
+
import * as i4 from '@angular/forms';
|
|
12
|
+
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
|
|
13
|
+
import * as i8 from '@angular/material/input';
|
|
14
|
+
import { MatInputModule } from '@angular/material/input';
|
|
15
|
+
import * as i2 from '@angular/material/icon';
|
|
16
|
+
import { MatIconModule } from '@angular/material/icon';
|
|
17
|
+
import * as i10 from '@angular/material/sort';
|
|
18
|
+
import { MatSort, MatSortModule } from '@angular/material/sort';
|
|
19
|
+
import * as i3$1 from '@angular/material/card';
|
|
20
|
+
import { MatCardModule } from '@angular/material/card';
|
|
21
|
+
import * as i3$2 from '@angular/material/button';
|
|
22
|
+
import { MatButtonModule } from '@angular/material/button';
|
|
23
|
+
import * as i12 from '@angular/material/checkbox';
|
|
24
|
+
import { MatCheckboxModule } from '@angular/material/checkbox';
|
|
25
|
+
import * as i13 from '@angular/material/tooltip';
|
|
26
|
+
import { MatTooltipModule } from '@angular/material/tooltip';
|
|
27
|
+
import { SelectionModel } from '@angular/cdk/collections';
|
|
28
|
+
import * as i1 from '@angular/material/dialog';
|
|
29
|
+
import { MAT_DIALOG_DATA, MatDialogModule } from '@angular/material/dialog';
|
|
30
|
+
import { trigger, state, style, transition, animate } from '@angular/animations';
|
|
31
|
+
import { Chart } from 'chart.js';
|
|
32
|
+
import { Subject } from 'rxjs';
|
|
33
|
+
import Chart$1 from 'chart.js/auto';
|
|
34
|
+
|
|
35
|
+
class GridColumnConfig {
|
|
36
|
+
}
|
|
37
|
+
class GridCardConfig {
|
|
38
|
+
}
|
|
39
|
+
class GridCardStyle {
|
|
40
|
+
}
|
|
41
|
+
class GridListActions {
|
|
42
|
+
}
|
|
43
|
+
class GridConfig {
|
|
44
|
+
constructor() {
|
|
45
|
+
this.showFilter = true;
|
|
46
|
+
this.showGridView = true;
|
|
47
|
+
this.pagination = true;
|
|
48
|
+
this.isPaginatedApi = false;
|
|
49
|
+
this.isExpandable = false;
|
|
50
|
+
this.isSelectable = true;
|
|
51
|
+
this.stickyTableHeader = true;
|
|
52
|
+
this.cardStyle = {};
|
|
53
|
+
this.showListView = false;
|
|
54
|
+
}
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
class GridCardsComponent {
|
|
58
|
+
constructor() {
|
|
59
|
+
this.data = [];
|
|
60
|
+
this.config = {};
|
|
61
|
+
}
|
|
62
|
+
ngOnInit() {
|
|
63
|
+
}
|
|
64
|
+
ngAfterViewInit() { }
|
|
65
|
+
}
|
|
66
|
+
GridCardsComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridCardsComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
67
|
+
GridCardsComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: GridCardsComponent, selector: "ruc-grid-cards", inputs: { data: "data", gridItem: "gridItem", config: "config", header: "header" }, ngImport: i0, template: " <mat-card [style]=\"config.style?.card\">\r\n <mat-card-content>\r\n <div class=\"card-top\">\r\n <span>{{gridItem.title}}</span>\r\n <div>\r\n <mat-icon [style]=\"config.style?.icon\" *ngFor=\"let icon of config.actions\" (click)=\"icon?.handler($event, gridItem)\">{{icon.icon}}</mat-icon>\r\n </div>\r\n \r\n </div>\r\n <div *ngFor=\"let value of header\">\r\n <p *ngIf=\"value.showInCardView\">\r\n {{value['header']}} : {{gridItem[value['name']]}}\r\n </p>\r\n </div>\r\n </mat-card-content>\r\n </mat-card>\r\n\r\n", styles: ["mat-card:hover{background-color:#0000000a}mat-card:hover .card-top div{visibility:visible}.card-top{display:flex;justify-content:space-between}.card-top div{visibility:hidden}.card-top div mat-icon{cursor:pointer;margin:0 5px;color:orange}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "component", type: i3$1.MatCard, selector: "mat-card", inputs: ["appearance"], exportAs: ["matCard"] }, { kind: "directive", type: i3$1.MatCardContent, selector: "mat-card-content" }] });
|
|
68
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridCardsComponent, decorators: [{
|
|
69
|
+
type: Component,
|
|
70
|
+
args: [{ selector: 'ruc-grid-cards', template: " <mat-card [style]=\"config.style?.card\">\r\n <mat-card-content>\r\n <div class=\"card-top\">\r\n <span>{{gridItem.title}}</span>\r\n <div>\r\n <mat-icon [style]=\"config.style?.icon\" *ngFor=\"let icon of config.actions\" (click)=\"icon?.handler($event, gridItem)\">{{icon.icon}}</mat-icon>\r\n </div>\r\n \r\n </div>\r\n <div *ngFor=\"let value of header\">\r\n <p *ngIf=\"value.showInCardView\">\r\n {{value['header']}} : {{gridItem[value['name']]}}\r\n </p>\r\n </div>\r\n </mat-card-content>\r\n </mat-card>\r\n\r\n", styles: ["mat-card:hover{background-color:#0000000a}mat-card:hover .card-top div{visibility:visible}.card-top{display:flex;justify-content:space-between}.card-top div{visibility:hidden}.card-top div mat-icon{cursor:pointer;margin:0 5px;color:orange}\n"] }]
|
|
71
|
+
}], ctorParameters: function () { return []; }, propDecorators: { data: [{
|
|
72
|
+
type: Input
|
|
73
|
+
}], gridItem: [{
|
|
74
|
+
type: Input
|
|
75
|
+
}], config: [{
|
|
76
|
+
type: Input
|
|
77
|
+
}], header: [{
|
|
78
|
+
type: Input
|
|
79
|
+
}] } });
|
|
80
|
+
|
|
81
|
+
class GridColumnComponent {
|
|
82
|
+
}
|
|
83
|
+
GridColumnComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
84
|
+
GridColumnComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: GridColumnComponent, selector: "ruc-grid-column", inputs: { name: "name" }, queries: [{ propertyName: "cellTemplate", first: true, predicate: ["cellTemplate"], descendants: true }], ngImport: i0, template: "", styles: [""] });
|
|
85
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridColumnComponent, decorators: [{
|
|
86
|
+
type: Component,
|
|
87
|
+
args: [{ selector: 'ruc-grid-column', template: "" }]
|
|
88
|
+
}], propDecorators: { name: [{
|
|
89
|
+
type: Input
|
|
90
|
+
}], cellTemplate: [{
|
|
91
|
+
type: ContentChild,
|
|
92
|
+
args: ['cellTemplate']
|
|
93
|
+
}] } });
|
|
94
|
+
|
|
95
|
+
class RucGridChartDialogComponent {
|
|
96
|
+
constructor(dialogRef, data) {
|
|
97
|
+
this.dialogRef = dialogRef;
|
|
98
|
+
this.data = data;
|
|
99
|
+
}
|
|
100
|
+
ngOnInit() {
|
|
101
|
+
}
|
|
102
|
+
ngAfterViewInit() {
|
|
103
|
+
this.data.chartConfig.forEach((chartData, index) => {
|
|
104
|
+
const ctx = document.getElementById(`chart${index}`);
|
|
105
|
+
new Chart(ctx, chartData);
|
|
106
|
+
});
|
|
107
|
+
}
|
|
108
|
+
onCancel() {
|
|
109
|
+
this.dialogRef.close(null);
|
|
110
|
+
}
|
|
111
|
+
}
|
|
112
|
+
RucGridChartDialogComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RucGridChartDialogComponent, deps: [{ token: i1.MatDialogRef }, { token: MAT_DIALOG_DATA }], target: i0.ɵɵFactoryTarget.Component });
|
|
113
|
+
RucGridChartDialogComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: RucGridChartDialogComponent, selector: "ruclib-grid-chart-dialog", ngImport: i0, template: "<div class=\"chart-container\">\r\n <div *ngFor=\"let chart of data.chartConfig; let i = index\" style=\"position: relative; height:50vh; width:40vw\">\r\n <canvas id=\"chart{{i}}\"></canvas>\r\n </div>\r\n</div>\r\n<button mat-button (click)=\"onCancel()\">Cancel</button>", styles: ["::ng-deep .ruc-grid-list-dialog .mat-dialog-container{padding:24px!important}.ruc-grid-list-dialog .mat-dialog-container{padding:24px!important}.chart-container{display:flex}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3$2.MatButton, selector: " button[mat-button], button[mat-raised-button], button[mat-flat-button], button[mat-stroked-button] ", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }] });
|
|
114
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RucGridChartDialogComponent, decorators: [{
|
|
115
|
+
type: Component,
|
|
116
|
+
args: [{ selector: 'ruclib-grid-chart-dialog', template: "<div class=\"chart-container\">\r\n <div *ngFor=\"let chart of data.chartConfig; let i = index\" style=\"position: relative; height:50vh; width:40vw\">\r\n <canvas id=\"chart{{i}}\"></canvas>\r\n </div>\r\n</div>\r\n<button mat-button (click)=\"onCancel()\">Cancel</button>", styles: ["::ng-deep .ruc-grid-list-dialog .mat-dialog-container{padding:24px!important}.ruc-grid-list-dialog .mat-dialog-container{padding:24px!important}.chart-container{display:flex}\n"] }]
|
|
117
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialogRef }, { type: undefined, decorators: [{
|
|
118
|
+
type: Inject,
|
|
119
|
+
args: [MAT_DIALOG_DATA]
|
|
120
|
+
}] }]; } });
|
|
121
|
+
|
|
122
|
+
/**
|
|
123
|
+
* This service will handle the tabData
|
|
124
|
+
*/
|
|
125
|
+
class GridListService {
|
|
126
|
+
constructor() {
|
|
127
|
+
this.gridChartDetails = new Subject();
|
|
128
|
+
this.gridChartDetails$ = this.gridChartDetails.asObservable();
|
|
129
|
+
}
|
|
130
|
+
/**
|
|
131
|
+
* method for handling the tabData which will have tabData as argument
|
|
132
|
+
*/
|
|
133
|
+
sendGridChartData(dataSource) {
|
|
134
|
+
this.gridChartDetails.next(dataSource);
|
|
135
|
+
}
|
|
136
|
+
}
|
|
137
|
+
GridListService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridListService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
|
|
138
|
+
GridListService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridListService, providedIn: 'root' });
|
|
139
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridListService, decorators: [{
|
|
140
|
+
type: Injectable,
|
|
141
|
+
args: [{
|
|
142
|
+
providedIn: 'root'
|
|
143
|
+
}]
|
|
144
|
+
}], ctorParameters: function () { return []; } });
|
|
145
|
+
|
|
146
|
+
class GridChartComponent {
|
|
147
|
+
constructor() {
|
|
148
|
+
this.index = 0;
|
|
149
|
+
}
|
|
150
|
+
ngOnInit() { }
|
|
151
|
+
ngAfterViewInit() {
|
|
152
|
+
this.chart = new Chart$1('canvas' + this.index, this.chartConfig);
|
|
153
|
+
}
|
|
154
|
+
ngOnDestroy() {
|
|
155
|
+
this.chart.destroy();
|
|
156
|
+
this.chart = null;
|
|
157
|
+
this.chartConfig = null;
|
|
158
|
+
}
|
|
159
|
+
}
|
|
160
|
+
GridChartComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridChartComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
161
|
+
GridChartComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: GridChartComponent, selector: "ruc-grid-chart", inputs: { index: "index", chartConfig: "chartConfig" }, ngImport: i0, template: "<div style=\"position: relative; height:50vh; width:40vw\">\r\n <canvas id=\"canvas{{index}}\">{{chart}}</canvas>\r\n</div>\r\n\r\n", styles: [""] });
|
|
162
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: GridChartComponent, decorators: [{
|
|
163
|
+
type: Component,
|
|
164
|
+
args: [{ selector: 'ruc-grid-chart', template: "<div style=\"position: relative; height:50vh; width:40vw\">\r\n <canvas id=\"canvas{{index}}\">{{chart}}</canvas>\r\n</div>\r\n\r\n" }]
|
|
165
|
+
}], ctorParameters: function () { return []; }, propDecorators: { index: [{
|
|
166
|
+
type: Input
|
|
167
|
+
}], chartConfig: [{
|
|
168
|
+
type: Input
|
|
169
|
+
}] } });
|
|
170
|
+
|
|
171
|
+
class RuclibGridListComponent {
|
|
172
|
+
constructor(dialog, gridListService) {
|
|
173
|
+
this.dialog = dialog;
|
|
174
|
+
this.gridListService = gridListService;
|
|
175
|
+
this.displayedColumns = [];
|
|
176
|
+
this.search = '';
|
|
177
|
+
this.selection = new SelectionModel(true, []);
|
|
178
|
+
this.gridViewData = [];
|
|
179
|
+
this.rowExpanded = new EventEmitter(false);
|
|
180
|
+
this.gridCardConfig = {};
|
|
181
|
+
this.gridConfig = new GridConfig();
|
|
182
|
+
this.customColumnMap = [];
|
|
183
|
+
this.listView = true;
|
|
184
|
+
this.expanded = false;
|
|
185
|
+
this.infoClicked = new EventEmitter();
|
|
186
|
+
this.rucEvent = new EventEmitter();
|
|
187
|
+
}
|
|
188
|
+
ngOnInit() {
|
|
189
|
+
this.columnConfig = this.rucInputData.columnConfig;
|
|
190
|
+
this.gridConfig = this.rucInputData.gridConfig;
|
|
191
|
+
this.listView = !this.gridConfig.showListView;
|
|
192
|
+
this.currentStateObj = {};
|
|
193
|
+
this.dataSource = new MatTableDataSource(this.inputData);
|
|
194
|
+
this.displayedColumns = this.columnConfig.map(column => column.name);
|
|
195
|
+
if (this.gridConfig.isSelectable) {
|
|
196
|
+
this.displayedColumns = ['select', ...this.displayedColumns];
|
|
197
|
+
}
|
|
198
|
+
this.columnsToDisplayWithExpand = [...this.displayedColumns, 'expand'];
|
|
199
|
+
const cardActions = this.columnConfig.filter(x => x.actionColumn)[0].action;
|
|
200
|
+
this.gridCardConfig.actions = cardActions;
|
|
201
|
+
this.gridCardConfig.title = 'transformation';
|
|
202
|
+
this.gridCardConfig.style = this.gridConfig.cardStyle;
|
|
203
|
+
this.gridListService.gridChartDetails$.subscribe(res => {
|
|
204
|
+
this.dialog.open(RucGridChartDialogComponent, {
|
|
205
|
+
data: {
|
|
206
|
+
chartConfig: res
|
|
207
|
+
}
|
|
208
|
+
});
|
|
209
|
+
});
|
|
210
|
+
}
|
|
211
|
+
ngAfterViewInit() {
|
|
212
|
+
this.dataSource.paginator = this.paginator;
|
|
213
|
+
this.dataSource.sort = this.sort;
|
|
214
|
+
if (!this.listView) {
|
|
215
|
+
this.createGridViewData();
|
|
216
|
+
}
|
|
217
|
+
}
|
|
218
|
+
ngAfterContentInit() {
|
|
219
|
+
this.cellTemplate.forEach(oColumn => {
|
|
220
|
+
this.customColumnMap[oColumn.name] = oColumn.cellTemplate;
|
|
221
|
+
});
|
|
222
|
+
}
|
|
223
|
+
/**
|
|
224
|
+
*
|
|
225
|
+
* @param event
|
|
226
|
+
* @param rowData
|
|
227
|
+
*/
|
|
228
|
+
infoClickHandler(event, rowData) {
|
|
229
|
+
this.infoClicked.emit(rowData);
|
|
230
|
+
}
|
|
231
|
+
/**
|
|
232
|
+
*
|
|
233
|
+
* @param event
|
|
234
|
+
*/
|
|
235
|
+
onSortChange(event) {
|
|
236
|
+
this.currentStateObj.sortOrder = event.direction;
|
|
237
|
+
this.currentStateObj.sortBy = event.active;
|
|
238
|
+
this.rucEvent.emit({ 'eventName': 'sortByColumn', 'eventOutput': event });
|
|
239
|
+
this.rucEvent.emit({ 'eventName': 'currentStateObjChange', 'eventOutput': this.currentStateObj });
|
|
240
|
+
}
|
|
241
|
+
/**
|
|
242
|
+
* Filter Table
|
|
243
|
+
* @param event
|
|
244
|
+
*/
|
|
245
|
+
applyFilter(event) {
|
|
246
|
+
const filterValue = event.target.value;
|
|
247
|
+
this.currentStateObj.searchText = filterValue ? filterValue.trim().toLowerCase() : '';
|
|
248
|
+
this.dataSource.filter = filterValue.trim().toLowerCase();
|
|
249
|
+
this.rucEvent.emit({ 'eventName': 'currentStateObjChange', 'eventOutput': this.currentStateObj });
|
|
250
|
+
this.createGridViewData(this.dataSource.filteredData);
|
|
251
|
+
if (this.dataSource.paginator) {
|
|
252
|
+
this.dataSource.paginator.firstPage();
|
|
253
|
+
}
|
|
254
|
+
}
|
|
255
|
+
/**
|
|
256
|
+
* pagination handler
|
|
257
|
+
* @param event
|
|
258
|
+
* @returns
|
|
259
|
+
*/
|
|
260
|
+
pageChangeHandler(event) {
|
|
261
|
+
this.createGridViewData();
|
|
262
|
+
if (!this.gridConfig.isPaginatedApi)
|
|
263
|
+
return;
|
|
264
|
+
if (this.gridConfig.isPaginatedApi) {
|
|
265
|
+
this.rucEvent.emit({ 'eventName': 'paginatorChange', 'eventOutput': { pageIndex: event } });
|
|
266
|
+
}
|
|
267
|
+
this.inputData = this.gridConfig.data;
|
|
268
|
+
this.dataSource = new MatTableDataSource(this.inputData);
|
|
269
|
+
}
|
|
270
|
+
/**
|
|
271
|
+
* Create Grid view
|
|
272
|
+
* @param filteredData
|
|
273
|
+
*/
|
|
274
|
+
createGridViewData(filteredData) {
|
|
275
|
+
filteredData = this.search ? this.dataSource.filteredData : this.dataSource.data;
|
|
276
|
+
const data = this.cloneDeep(filteredData);
|
|
277
|
+
const pageSize = this.dataSource.paginator?.pageSize;
|
|
278
|
+
const currentPageIndex = this.dataSource.paginator?.pageIndex;
|
|
279
|
+
if (pageSize !== undefined && currentPageIndex !== undefined) {
|
|
280
|
+
const start = pageSize * currentPageIndex;
|
|
281
|
+
const end = (currentPageIndex + 1) * pageSize;
|
|
282
|
+
this.gridViewData = data.slice(start, end);
|
|
283
|
+
}
|
|
284
|
+
}
|
|
285
|
+
/**
|
|
286
|
+
*
|
|
287
|
+
* @param data
|
|
288
|
+
* @returns
|
|
289
|
+
*/
|
|
290
|
+
cloneDeep(data) {
|
|
291
|
+
return JSON.parse(JSON.stringify(data));
|
|
292
|
+
}
|
|
293
|
+
/**
|
|
294
|
+
*
|
|
295
|
+
* @returns
|
|
296
|
+
*/
|
|
297
|
+
isAllSelected() {
|
|
298
|
+
const numSelected = this.selection.selected.length;
|
|
299
|
+
const numRows = this.dataSource.data.length;
|
|
300
|
+
return numSelected === numRows;
|
|
301
|
+
}
|
|
302
|
+
/**
|
|
303
|
+
*
|
|
304
|
+
* @returns
|
|
305
|
+
*/
|
|
306
|
+
toggleAllRows() {
|
|
307
|
+
if (this.isAllSelected()) {
|
|
308
|
+
this.selection.clear();
|
|
309
|
+
return;
|
|
310
|
+
}
|
|
311
|
+
this.selection.select(...this.dataSource.data);
|
|
312
|
+
}
|
|
313
|
+
/** The label for the checkbox on the passed row */
|
|
314
|
+
checkboxLabel(row) {
|
|
315
|
+
if (!row) {
|
|
316
|
+
return `${this.isAllSelected() ? 'deselect' : 'select'} all`;
|
|
317
|
+
}
|
|
318
|
+
// return `${this.selection.isSelected(row) ? 'deselect' : 'select'} row ${row.position + 1}`;
|
|
319
|
+
return `${this.selection.isSelected(row) ? 'deselect' : 'select'} row`;
|
|
320
|
+
}
|
|
321
|
+
/**
|
|
322
|
+
*
|
|
323
|
+
* @param i
|
|
324
|
+
* @param expandedElement
|
|
325
|
+
* @param element
|
|
326
|
+
*/
|
|
327
|
+
handleClick(i, expandedElement, element) {
|
|
328
|
+
if (expandedElement != element) { //expand the row
|
|
329
|
+
this.expanded = false;
|
|
330
|
+
this.rowExpanded.emit({ ...element, isExpanded: false });
|
|
331
|
+
}
|
|
332
|
+
else {
|
|
333
|
+
this.expanded = true;
|
|
334
|
+
this.rowExpanded.emit({ ...element, isExpanded: true });
|
|
335
|
+
}
|
|
336
|
+
}
|
|
337
|
+
}
|
|
338
|
+
RuclibGridListComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RuclibGridListComponent, deps: [{ token: i1.MatDialog }, { token: GridListService }], target: i0.ɵɵFactoryTarget.Component });
|
|
339
|
+
RuclibGridListComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.10", type: RuclibGridListComponent, selector: "uxp-ruclib-grid-list", inputs: { columnConfig: "columnConfig", inputData: "inputData", gridConfig: "gridConfig", chartConfig: "chartConfig", customTheme: "customTheme", rucInputData: "rucInputData" }, outputs: { rowExpanded: "rowExpanded", infoClicked: "infoClicked", rucEvent: "rucEvent" }, queries: [{ propertyName: "cellTemplate", predicate: GridColumnComponent }], viewQueries: [{ propertyName: "paginator", first: true, predicate: MatPaginator, descendants: true }, { propertyName: "sort", first: true, predicate: MatSort, descendants: true }], ngImport: i0, template: "<div class=\"grid-list-container\" class={{customTheme}}>\r\n <div class=\"header-container\">\r\n <mat-form-field *ngIf=\"gridConfig.showFilter\" appearance=\"outline\">\r\n <input matInput [(ngModel)]=\"search\" (keyup)=\"applyFilter($event)\" placeholder=\"Search\">\r\n </mat-form-field>\r\n\r\n <div *ngIf=\"gridConfig.showGridView\" class=\"icon-container\">\r\n <div (click)=\"listView=true\"\r\n [style.background-color]=\"listView ? gridCardConfig.style?.icon.color : 'white'\"\r\n [class.active-icon]=\"listView\" class=\"icon list\">\r\n <mat-icon>view_list</mat-icon>\r\n </div>\r\n <div (click)=\"listView=false;createGridViewData()\"\r\n [style.background-color]=\"!listView ? gridCardConfig.style?.icon.color : 'white'\"\r\n [class.active-icon]=\"!listView\" class=\"icon grid\">\r\n <mat-icon>grid_on</mat-icon>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div [hidden]=\"!listView\" class=\"mat-elevation-z8\" class=\"overflow\">\r\n <table mat-table [dataSource]=\"dataSource\" multiTemplateDataRows matSort (matSortChange)=\"onSortChange($event)\">\r\n <ng-container matColumnDef=\"select\" *ngIf=\"gridConfig.isSelectable\">\r\n <th mat-header-cell *matHeaderCellDef>\r\n <mat-checkbox color=\"primary\" (change)=\"$event ? toggleAllRows() : null\"\r\n [checked]=\"selection.hasValue() && isAllSelected()\"\r\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\" [aria-label]=\"checkboxLabel()\">\r\n </mat-checkbox>\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <mat-checkbox color=\"primary\" (click)=\"$event.stopPropagation()\"\r\n (change)=\"$event ? selection.toggle(row) : null\" [checked]=\"selection.isSelected(row)\"\r\n [aria-label]=\"checkboxLabel(row)\">\r\n </mat-checkbox>\r\n </td>\r\n </ng-container>\r\n <ng-container *ngFor=\"let column of columnConfig\">\r\n <ng-container [matColumnDef]=\"column.name\" [sticky]=\"\">\r\n\r\n <!--table headers start-->\r\n <th [ngStyle]=\"column?.headerStyle\" mat-header-cell *matHeaderCellDef mat-sort-header>\r\n {{column.header}} </th>\r\n <!--table headers end-->\r\n\r\n\r\n <!--table rows start-->\r\n <ng-container *ngIf=\"!column.isCustom; else customColumn\">\r\n <ng-container *ngIf=\"!column.actionColumn; else actionColumn\">\r\n <td #tooltip=\"matTooltip\" matTooltip=\"{{row[column.name]!}}\" mat-cell *matCellDef=\"let row\">\r\n {{row[column.name]!}} </td>\r\n </ng-container>\r\n\r\n <!--table action rows start-->\r\n <ng-template #actionColumn>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <div class=\"icons\">\r\n <mat-icon [style]=\"gridCardConfig.style?.icon\" *ngFor=\"let action of column.action\"\r\n (click)=\"action?.handler($event, row)\">{{action.icon}}</mat-icon>\r\n </div>\r\n </td>\r\n </ng-template>\r\n <!--table action rows end-->\r\n\r\n </ng-container>\r\n <!--table rows end-->\r\n\r\n\r\n <!--table custom column start-->\r\n <ng-template #customColumn>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <ng-container [ngTemplateOutlet]=\"customColumnMap[column.name]\"\r\n [ngTemplateOutletContext]=\"{element: element}\"></ng-container>\r\n </td>\r\n </ng-template>\r\n <!--table custom column end-->\r\n\r\n </ng-container>\r\n </ng-container>\r\n\r\n\r\n <ng-container matColumnDef=\"expand\">\r\n <th mat-header-cell *matHeaderCellDef aria-label=\"row actions\"> </th>\r\n <td mat-cell *matCellDef=\"let element; let i = index\">\r\n <button mat-icon-button aria-label=\"expand row\"\r\n (click)=\"(expandedElement = expandedElement === element ? null : element); $event.stopPropagation();handleClick(i,expandedElement, element)\">\r\n <mat-icon *ngIf=\"expandedElement !== element\">keyboard_arrow_down</mat-icon>\r\n <mat-icon *ngIf=\"expandedElement === element\">keyboard_arrow_up</mat-icon>\r\n </button>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"expandedDetail\">\r\n <td mat-cell *matCellDef=\"let element; let i = index\"\r\n [attr.colspan]=\"columnsToDisplayWithExpand.length\">\r\n <div class=\"example-element-detail\"\r\n [@detailExpand]=\"element == expandedElement ? 'expanded' : 'collapsed'\">\r\n Expanded\r\n <ng-container *ngIf=\"element === expandedElement && (chartConfig && chartConfig.length); else noChartData\">\r\n <div *ngFor=\"let config of chartConfig; let i=index\">\r\n <ruc-grid-chart [index]=\"i\" [chartConfig]=\"config\"></ruc-grid-chart>\r\n </div>\r\n </ng-container>\r\n <ng-template #noChartData>\r\n No Chart Data exist for this element\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"columnsToDisplayWithExpand\"></tr>\r\n <tr mat-row *matRowDef=\"let element; columns: columnsToDisplayWithExpand;\" class=\"example-element-row\"\r\n [class.example-expanded-row]=\"expandedElement === element\">\r\n </tr>\r\n <tr mat-row *matRowDef=\"let row; columns: ['expandedDetail']\" class=\"expanded-content\"></tr>\r\n\r\n </table>\r\n </div>\r\n\r\n <div [hidden]=\"listView\">\r\n <div #ref><ng-content select=\"[customCard]\"></ng-content></div>\r\n <div *ngIf=\"!ref.children.length\" class=\"grid\">\r\n <ruc-grid-cards *ngFor=\"let data of gridViewData\" class=\"grid-view-container\" [gridItem]=\"data\"\r\n [config]=\"gridCardConfig\" [header]=\"columnConfig\" [data]=\"gridViewData\">\r\n </ruc-grid-cards>\r\n </div>\r\n \r\n </div>\r\n\r\n <mat-paginator (page)=\"pageChangeHandler($event)\" *ngIf=\"gridConfig.pagination\" [pageSizeOptions]=\"[5, 10, 25, 100]\"\r\n aria-label=\"Select page of users\"></mat-paginator>\r\n</div>", styles: [".mat-table{width:100%}.header-container{display:flex;justify-content:end;gap:16px;margin-bottom:24px}.icon-container{border:1px solid gray;border-radius:16px;display:flex;justify-content:center;align-items:center;width:120px;height:56px}.icon-container :first-child{border-top-left-radius:16px;border-bottom-left-radius:16px}.icon-container :nth-child(2){border-top-right-radius:16px;border-bottom-right-radius:16px}.icon{display:flex;height:100%;align-items:center;width:100%;justify-content:center}.active-icon mat-icon{color:#fff}mat-icon{cursor:pointer}::ng-deep .mat-form-field-appearance-outline .mat-form-field-wrapper{margin:0!important}::ng-deep .mat-form-field-wrapper{padding-bottom:0}.grid-view-container{display:flex;gap:16px;flex-wrap:wrap}.grid-view-container .grid{cursor:pointer}.grid-view-container .grid :hover{background-color:#ffdfb4}.icons{width:fit-content;display:flex;gap:12px}.icons mat-icon{visibility:hidden}.mat-mdc-row:hover{background-color:#008fd51f;border:2px solid #008fd5!important;border-radius:4px}.mat-mdc-row:hover .icons mat-icon{visibility:visible}.mat-column-action{width:100px}.mat-cell{padding-right:20px}.overflow{overflow-x:auto}.grid{display:flex;flex-wrap:wrap;gap:15px}table{width:100%}.expanded-content{height:0!important}tr.example-element-row:not(.example-expanded-row):hover{background:whitesmoke}tr.example-element-row:not(.example-expanded-row):active{background:#efefef}.example-element-row td{border-bottom-width:0}.example-element-detail{overflow:hidden;display:flex}\n"], dependencies: [{ kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i4.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i4.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i4.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { kind: "component", type: i5.MatFormField, selector: "mat-form-field", inputs: ["hideRequiredMarker", "color", "floatLabel", "appearance", "subscriptSizing", "hintLabel"], exportAs: ["matFormField"] }, { kind: "component", type: i6.MatTable, selector: "mat-table, table[mat-table]", exportAs: ["matTable"] }, { kind: "directive", type: i6.MatHeaderCellDef, selector: "[matHeaderCellDef]" }, { kind: "directive", type: i6.MatHeaderRowDef, selector: "[matHeaderRowDef]", inputs: ["matHeaderRowDef", "matHeaderRowDefSticky"] }, { kind: "directive", type: i6.MatColumnDef, selector: "[matColumnDef]", inputs: ["sticky", "matColumnDef"] }, { kind: "directive", type: i6.MatCellDef, selector: "[matCellDef]" }, { kind: "directive", type: i6.MatRowDef, selector: "[matRowDef]", inputs: ["matRowDefColumns", "matRowDefWhen"] }, { kind: "directive", type: i6.MatHeaderCell, selector: "mat-header-cell, th[mat-header-cell]" }, { kind: "directive", type: i6.MatCell, selector: "mat-cell, td[mat-cell]" }, { kind: "component", type: i6.MatHeaderRow, selector: "mat-header-row, tr[mat-header-row]", exportAs: ["matHeaderRow"] }, { kind: "component", type: i6.MatRow, selector: "mat-row, tr[mat-row]", exportAs: ["matRow"] }, { kind: "component", type: i7.MatPaginator, selector: "mat-paginator", inputs: ["disabled"], exportAs: ["matPaginator"] }, { kind: "directive", type: i8.MatInput, selector: "input[matInput], textarea[matInput], select[matNativeControl], input[matNativeControl], textarea[matNativeControl]", inputs: ["disabled", "id", "placeholder", "name", "required", "type", "errorStateMatcher", "aria-describedby", "value", "readonly"], exportAs: ["matInput"] }, { kind: "component", type: i2.MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }, { kind: "directive", type: i10.MatSort, selector: "[matSort]", inputs: ["matSortDisabled", "matSortActive", "matSortStart", "matSortDirection", "matSortDisableClear"], outputs: ["matSortChange"], exportAs: ["matSort"] }, { kind: "component", type: i10.MatSortHeader, selector: "[mat-sort-header]", inputs: ["disabled", "mat-sort-header", "arrowPosition", "start", "sortActionDescription", "disableClear"], exportAs: ["matSortHeader"] }, { kind: "component", type: i3$2.MatIconButton, selector: "button[mat-icon-button]", inputs: ["disabled", "disableRipple", "color"], exportAs: ["matButton"] }, { kind: "component", type: i12.MatCheckbox, selector: "mat-checkbox", inputs: ["disableRipple", "color", "tabIndex"], exportAs: ["matCheckbox"] }, { kind: "directive", type: i13.MatTooltip, selector: "[matTooltip]", exportAs: ["matTooltip"] }, { kind: "component", type: GridCardsComponent, selector: "ruc-grid-cards", inputs: ["data", "gridItem", "config", "header"] }, { kind: "component", type: GridChartComponent, selector: "ruc-grid-chart", inputs: ["index", "chartConfig"] }], animations: [
|
|
340
|
+
trigger('detailExpand', [
|
|
341
|
+
state('collapsed', style({ height: '0px', minHeight: '0' })),
|
|
342
|
+
state('expanded', style({ height: '*' })),
|
|
343
|
+
transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
|
|
344
|
+
]),
|
|
345
|
+
] });
|
|
346
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RuclibGridListComponent, decorators: [{
|
|
347
|
+
type: Component,
|
|
348
|
+
args: [{ selector: 'uxp-ruclib-grid-list', animations: [
|
|
349
|
+
trigger('detailExpand', [
|
|
350
|
+
state('collapsed', style({ height: '0px', minHeight: '0' })),
|
|
351
|
+
state('expanded', style({ height: '*' })),
|
|
352
|
+
transition('expanded <=> collapsed', animate('225ms cubic-bezier(0.4, 0.0, 0.2, 1)')),
|
|
353
|
+
]),
|
|
354
|
+
], template: "<div class=\"grid-list-container\" class={{customTheme}}>\r\n <div class=\"header-container\">\r\n <mat-form-field *ngIf=\"gridConfig.showFilter\" appearance=\"outline\">\r\n <input matInput [(ngModel)]=\"search\" (keyup)=\"applyFilter($event)\" placeholder=\"Search\">\r\n </mat-form-field>\r\n\r\n <div *ngIf=\"gridConfig.showGridView\" class=\"icon-container\">\r\n <div (click)=\"listView=true\"\r\n [style.background-color]=\"listView ? gridCardConfig.style?.icon.color : 'white'\"\r\n [class.active-icon]=\"listView\" class=\"icon list\">\r\n <mat-icon>view_list</mat-icon>\r\n </div>\r\n <div (click)=\"listView=false;createGridViewData()\"\r\n [style.background-color]=\"!listView ? gridCardConfig.style?.icon.color : 'white'\"\r\n [class.active-icon]=\"!listView\" class=\"icon grid\">\r\n <mat-icon>grid_on</mat-icon>\r\n </div>\r\n </div>\r\n </div>\r\n\r\n <div [hidden]=\"!listView\" class=\"mat-elevation-z8\" class=\"overflow\">\r\n <table mat-table [dataSource]=\"dataSource\" multiTemplateDataRows matSort (matSortChange)=\"onSortChange($event)\">\r\n <ng-container matColumnDef=\"select\" *ngIf=\"gridConfig.isSelectable\">\r\n <th mat-header-cell *matHeaderCellDef>\r\n <mat-checkbox color=\"primary\" (change)=\"$event ? toggleAllRows() : null\"\r\n [checked]=\"selection.hasValue() && isAllSelected()\"\r\n [indeterminate]=\"selection.hasValue() && !isAllSelected()\" [aria-label]=\"checkboxLabel()\">\r\n </mat-checkbox>\r\n </th>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <mat-checkbox color=\"primary\" (click)=\"$event.stopPropagation()\"\r\n (change)=\"$event ? selection.toggle(row) : null\" [checked]=\"selection.isSelected(row)\"\r\n [aria-label]=\"checkboxLabel(row)\">\r\n </mat-checkbox>\r\n </td>\r\n </ng-container>\r\n <ng-container *ngFor=\"let column of columnConfig\">\r\n <ng-container [matColumnDef]=\"column.name\" [sticky]=\"\">\r\n\r\n <!--table headers start-->\r\n <th [ngStyle]=\"column?.headerStyle\" mat-header-cell *matHeaderCellDef mat-sort-header>\r\n {{column.header}} </th>\r\n <!--table headers end-->\r\n\r\n\r\n <!--table rows start-->\r\n <ng-container *ngIf=\"!column.isCustom; else customColumn\">\r\n <ng-container *ngIf=\"!column.actionColumn; else actionColumn\">\r\n <td #tooltip=\"matTooltip\" matTooltip=\"{{row[column.name]!}}\" mat-cell *matCellDef=\"let row\">\r\n {{row[column.name]!}} </td>\r\n </ng-container>\r\n\r\n <!--table action rows start-->\r\n <ng-template #actionColumn>\r\n <td mat-cell *matCellDef=\"let row\">\r\n <div class=\"icons\">\r\n <mat-icon [style]=\"gridCardConfig.style?.icon\" *ngFor=\"let action of column.action\"\r\n (click)=\"action?.handler($event, row)\">{{action.icon}}</mat-icon>\r\n </div>\r\n </td>\r\n </ng-template>\r\n <!--table action rows end-->\r\n\r\n </ng-container>\r\n <!--table rows end-->\r\n\r\n\r\n <!--table custom column start-->\r\n <ng-template #customColumn>\r\n <td mat-cell *matCellDef=\"let element\">\r\n <ng-container [ngTemplateOutlet]=\"customColumnMap[column.name]\"\r\n [ngTemplateOutletContext]=\"{element: element}\"></ng-container>\r\n </td>\r\n </ng-template>\r\n <!--table custom column end-->\r\n\r\n </ng-container>\r\n </ng-container>\r\n\r\n\r\n <ng-container matColumnDef=\"expand\">\r\n <th mat-header-cell *matHeaderCellDef aria-label=\"row actions\"> </th>\r\n <td mat-cell *matCellDef=\"let element; let i = index\">\r\n <button mat-icon-button aria-label=\"expand row\"\r\n (click)=\"(expandedElement = expandedElement === element ? null : element); $event.stopPropagation();handleClick(i,expandedElement, element)\">\r\n <mat-icon *ngIf=\"expandedElement !== element\">keyboard_arrow_down</mat-icon>\r\n <mat-icon *ngIf=\"expandedElement === element\">keyboard_arrow_up</mat-icon>\r\n </button>\r\n </td>\r\n </ng-container>\r\n\r\n <ng-container matColumnDef=\"expandedDetail\">\r\n <td mat-cell *matCellDef=\"let element; let i = index\"\r\n [attr.colspan]=\"columnsToDisplayWithExpand.length\">\r\n <div class=\"example-element-detail\"\r\n [@detailExpand]=\"element == expandedElement ? 'expanded' : 'collapsed'\">\r\n Expanded\r\n <ng-container *ngIf=\"element === expandedElement && (chartConfig && chartConfig.length); else noChartData\">\r\n <div *ngFor=\"let config of chartConfig; let i=index\">\r\n <ruc-grid-chart [index]=\"i\" [chartConfig]=\"config\"></ruc-grid-chart>\r\n </div>\r\n </ng-container>\r\n <ng-template #noChartData>\r\n No Chart Data exist for this element\r\n </ng-template>\r\n </div>\r\n </td>\r\n </ng-container>\r\n\r\n <tr mat-header-row *matHeaderRowDef=\"columnsToDisplayWithExpand\"></tr>\r\n <tr mat-row *matRowDef=\"let element; columns: columnsToDisplayWithExpand;\" class=\"example-element-row\"\r\n [class.example-expanded-row]=\"expandedElement === element\">\r\n </tr>\r\n <tr mat-row *matRowDef=\"let row; columns: ['expandedDetail']\" class=\"expanded-content\"></tr>\r\n\r\n </table>\r\n </div>\r\n\r\n <div [hidden]=\"listView\">\r\n <div #ref><ng-content select=\"[customCard]\"></ng-content></div>\r\n <div *ngIf=\"!ref.children.length\" class=\"grid\">\r\n <ruc-grid-cards *ngFor=\"let data of gridViewData\" class=\"grid-view-container\" [gridItem]=\"data\"\r\n [config]=\"gridCardConfig\" [header]=\"columnConfig\" [data]=\"gridViewData\">\r\n </ruc-grid-cards>\r\n </div>\r\n \r\n </div>\r\n\r\n <mat-paginator (page)=\"pageChangeHandler($event)\" *ngIf=\"gridConfig.pagination\" [pageSizeOptions]=\"[5, 10, 25, 100]\"\r\n aria-label=\"Select page of users\"></mat-paginator>\r\n</div>", styles: [".mat-table{width:100%}.header-container{display:flex;justify-content:end;gap:16px;margin-bottom:24px}.icon-container{border:1px solid gray;border-radius:16px;display:flex;justify-content:center;align-items:center;width:120px;height:56px}.icon-container :first-child{border-top-left-radius:16px;border-bottom-left-radius:16px}.icon-container :nth-child(2){border-top-right-radius:16px;border-bottom-right-radius:16px}.icon{display:flex;height:100%;align-items:center;width:100%;justify-content:center}.active-icon mat-icon{color:#fff}mat-icon{cursor:pointer}::ng-deep .mat-form-field-appearance-outline .mat-form-field-wrapper{margin:0!important}::ng-deep .mat-form-field-wrapper{padding-bottom:0}.grid-view-container{display:flex;gap:16px;flex-wrap:wrap}.grid-view-container .grid{cursor:pointer}.grid-view-container .grid :hover{background-color:#ffdfb4}.icons{width:fit-content;display:flex;gap:12px}.icons mat-icon{visibility:hidden}.mat-mdc-row:hover{background-color:#008fd51f;border:2px solid #008fd5!important;border-radius:4px}.mat-mdc-row:hover .icons mat-icon{visibility:visible}.mat-column-action{width:100px}.mat-cell{padding-right:20px}.overflow{overflow-x:auto}.grid{display:flex;flex-wrap:wrap;gap:15px}table{width:100%}.expanded-content{height:0!important}tr.example-element-row:not(.example-expanded-row):hover{background:whitesmoke}tr.example-element-row:not(.example-expanded-row):active{background:#efefef}.example-element-row td{border-bottom-width:0}.example-element-detail{overflow:hidden;display:flex}\n"] }]
|
|
355
|
+
}], ctorParameters: function () { return [{ type: i1.MatDialog }, { type: GridListService }]; }, propDecorators: { paginator: [{
|
|
356
|
+
type: ViewChild,
|
|
357
|
+
args: [MatPaginator]
|
|
358
|
+
}], sort: [{
|
|
359
|
+
type: ViewChild,
|
|
360
|
+
args: [MatSort]
|
|
361
|
+
}], cellTemplate: [{
|
|
362
|
+
type: ContentChildren,
|
|
363
|
+
args: [GridColumnComponent]
|
|
364
|
+
}], rowExpanded: [{
|
|
365
|
+
type: Output
|
|
366
|
+
}], columnConfig: [{
|
|
367
|
+
type: Input
|
|
368
|
+
}], inputData: [{
|
|
369
|
+
type: Input
|
|
370
|
+
}], gridConfig: [{
|
|
371
|
+
type: Input
|
|
372
|
+
}], chartConfig: [{
|
|
373
|
+
type: Input
|
|
374
|
+
}], customTheme: [{
|
|
375
|
+
type: Input
|
|
376
|
+
}], rucInputData: [{
|
|
377
|
+
type: Input
|
|
378
|
+
}], infoClicked: [{
|
|
379
|
+
type: Output
|
|
380
|
+
}], rucEvent: [{
|
|
381
|
+
type: Output
|
|
382
|
+
}] } });
|
|
383
|
+
|
|
384
|
+
class RuclibGridListModule {
|
|
385
|
+
}
|
|
386
|
+
RuclibGridListModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RuclibGridListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
387
|
+
RuclibGridListModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.2.10", ngImport: i0, type: RuclibGridListModule, declarations: [RuclibGridListComponent,
|
|
388
|
+
GridColumnComponent,
|
|
389
|
+
GridCardsComponent,
|
|
390
|
+
GridChartComponent,
|
|
391
|
+
RucGridChartDialogComponent], imports: [CommonModule,
|
|
392
|
+
FormsModule,
|
|
393
|
+
MatFormFieldModule,
|
|
394
|
+
MatTableModule,
|
|
395
|
+
MatPaginatorModule,
|
|
396
|
+
MatInputModule,
|
|
397
|
+
MatIconModule,
|
|
398
|
+
MatSortModule,
|
|
399
|
+
MatCardModule,
|
|
400
|
+
MatButtonModule,
|
|
401
|
+
ReactiveFormsModule,
|
|
402
|
+
MatCheckboxModule,
|
|
403
|
+
MatTooltipModule,
|
|
404
|
+
MatDialogModule], exports: [RuclibGridListComponent, GridColumnComponent] });
|
|
405
|
+
RuclibGridListModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RuclibGridListModule, imports: [CommonModule,
|
|
406
|
+
FormsModule,
|
|
407
|
+
MatFormFieldModule,
|
|
408
|
+
MatTableModule,
|
|
409
|
+
MatPaginatorModule,
|
|
410
|
+
MatInputModule,
|
|
411
|
+
MatIconModule,
|
|
412
|
+
MatSortModule,
|
|
413
|
+
MatCardModule,
|
|
414
|
+
MatButtonModule,
|
|
415
|
+
ReactiveFormsModule,
|
|
416
|
+
MatCheckboxModule,
|
|
417
|
+
MatTooltipModule,
|
|
418
|
+
MatDialogModule] });
|
|
419
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.10", ngImport: i0, type: RuclibGridListModule, decorators: [{
|
|
420
|
+
type: NgModule,
|
|
421
|
+
args: [{
|
|
422
|
+
declarations: [
|
|
423
|
+
RuclibGridListComponent,
|
|
424
|
+
GridColumnComponent,
|
|
425
|
+
GridCardsComponent,
|
|
426
|
+
GridChartComponent,
|
|
427
|
+
RucGridChartDialogComponent
|
|
428
|
+
],
|
|
429
|
+
imports: [CommonModule,
|
|
430
|
+
FormsModule,
|
|
431
|
+
MatFormFieldModule,
|
|
432
|
+
MatTableModule,
|
|
433
|
+
MatPaginatorModule,
|
|
434
|
+
MatInputModule,
|
|
435
|
+
MatIconModule,
|
|
436
|
+
MatSortModule,
|
|
437
|
+
MatCardModule,
|
|
438
|
+
MatButtonModule,
|
|
439
|
+
ReactiveFormsModule,
|
|
440
|
+
MatCheckboxModule,
|
|
441
|
+
MatTooltipModule,
|
|
442
|
+
MatDialogModule,
|
|
443
|
+
],
|
|
444
|
+
exports: [RuclibGridListComponent, GridColumnComponent]
|
|
445
|
+
}]
|
|
446
|
+
}] });
|
|
447
|
+
|
|
448
|
+
/**
|
|
449
|
+
* Generated bundle index. Do not edit.
|
|
450
|
+
*/
|
|
451
|
+
|
|
452
|
+
export { GridCardConfig, GridCardStyle, GridCardsComponent, GridColumnComponent, GridColumnConfig, GridConfig, GridListActions, GridListService, RuclibGridListComponent, RuclibGridListModule };
|
|
453
|
+
//# sourceMappingURL=ruc-lib-grid-list.mjs.map
|