New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@angular-generic-table/core

Package Overview
Dependencies
Maintainers
3
Versions
52
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@angular-generic-table/core - npm Package Compare versions

Comparing version 5.0.0-rc.13 to 5.0.0-rc.14

18

lib/core.component.d.ts

@@ -15,9 +15,9 @@ import { EventEmitter } from '@angular/core';

set search(string: Observable<string> | string | null);
set config(config: Observable<TableConfig> | TableConfig);
set config(config: Observable<TableConfig<any>> | TableConfig<any>);
set data(data: Observable<Array<TableRow>> | Array<TableRow>);
rowClick: EventEmitter<GtRowClickEvent>;
rowClick: EventEmitter<GtRowClickEvent<TableRow>>;
_rowClick(row: TableRow, index: number, event: MouseEvent): void;
private _rowHover$;
rowHover: EventEmitter<GtRowHoverEvent>;
rowHover$: Observable<GtRowHoverEvent>;
rowHover: EventEmitter<GtRowHoverEvent<TableRow>>;
rowHover$: Observable<GtRowHoverEvent<TableRow>>;
hoverRow(id: string): void;

@@ -34,5 +34,10 @@ hoverRow(index: number): void;

private _tableConfig$;
tableConfig$: Observable<TableConfig>;
tableConfig$: Observable<TableConfig<any>>;
private _data$;
data$: Observable<Array<TableRow>>;
calculations$: Observable<{
calculated: any;
calculations: string[];
calculatedColumnsCount: number;
}>;
table$: Observable<TableMeta>;

@@ -42,2 +47,3 @@ private _currentPage$;

colspan$: Observable<number>;
footerColspan$: Observable<number>;
sort(property: string): void;

@@ -47,3 +53,3 @@ columnOrder: (a: KeyValue<string, TableColumn>, b: KeyValue<string, TableColumn>) => number;

static ɵfac: i0.ɵɵFactoryDeclaration<CoreComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<CoreComponent, "angular-generic-table", never, { "loading": "loading"; "page": "page"; "search": "search"; "config": "config"; "data": "data"; }, { "rowClick": "rowClick"; "rowHover": "rowHover"; }, never, [".table-loading", ".table-no-data"], false>;
static ɵcmp: i0.ɵɵComponentDeclaration<CoreComponent, "angular-generic-table", never, { "loading": "loading"; "page": "page"; "search": "search"; "config": "config"; "data": "data"; }, { "rowClick": "rowClick"; "rowHover": "rowHover"; }, never, [".table-loading", ".table-no-data"], true>;
}
import * as i0 from "@angular/core";
import * as i1 from "./core.component";
import * as i2 from "./pipes/sort-class.pipe";
import * as i3 from "./pipes/dash-case.pipe";
import * as i4 from "./pipes/highlight.pipe";
import * as i5 from "./pipes/capital-case.pipe";
import * as i6 from "./pipes/dynamic.pipe";
import * as i7 from "./gt-delta/gt-delta.component";
import * as i8 from "@angular/common";
import * as i1 from "@angular/common";
import * as i2 from "./core.component";
import * as i3 from "./pipes/sort-class.pipe";
import * as i4 from "./pipes/dash-case.pipe";
import * as i5 from "./pipes/highlight.pipe";
import * as i6 from "./pipes/capital-case.pipe";
import * as i7 from "./pipes/dynamic.pipe";
import * as i8 from "./gt-delta/gt-delta.component";
export declare class GenericTableCoreModule {
static ɵfac: i0.ɵɵFactoryDeclaration<GenericTableCoreModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericTableCoreModule, [typeof i1.CoreComponent, typeof i2.SortClassPipe, typeof i3.DashCasePipe, typeof i4.HighlightPipe, typeof i5.CapitalCasePipe, typeof i5.CapitalCasePipe, typeof i6.DynamicPipe, typeof i7.GtDeltaComponent], [typeof i8.CommonModule], [typeof i1.CoreComponent, typeof i7.GtDeltaComponent]>;
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericTableCoreModule, never, [typeof i1.CommonModule, typeof i2.CoreComponent, typeof i3.SortClassPipe, typeof i4.DashCasePipe, typeof i5.HighlightPipe, typeof i6.CapitalCasePipe, typeof i6.CapitalCasePipe, typeof i7.DynamicPipe, typeof i8.GtDeltaComponent], [typeof i2.CoreComponent, typeof i8.GtDeltaComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<GenericTableCoreModule>;
}

@@ -1,2 +0,2 @@

import { TableRows } from '../models/table-row.interface';
import { TableRow } from '../models/table-row.interface';
import * as i0 from "@angular/core";

@@ -7,3 +7,3 @@ export declare class GtDeltaComponent {

Number: NumberConstructor;
data: TableRows;
data: Array<TableRow>;
index: number;

@@ -20,3 +20,3 @@ baseIndex?: number;

static ɵfac: i0.ɵɵFactoryDeclaration<GtDeltaComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<GtDeltaComponent, "gt-delta", never, { "data": "data"; "index": "index"; "baseIndex": "baseIndex"; "classes": "classes"; "key": "key"; "notApplicableValue": "notApplicableValue"; "initialValue": "initialValue"; }, {}, never, never, false>;
static ɵcmp: i0.ɵɵComponentDeclaration<GtDeltaComponent, "gt-delta", never, { "data": "data"; "index": "index"; "baseIndex": "baseIndex"; "classes": "classes"; "key": "key"; "notApplicableValue": "notApplicableValue"; "initialValue": "initialValue"; }, {}, never, never, true>;
}
import { TemplateRef } from '@angular/core';
export interface TableColumn {
import { TableRow } from './table-row.interface';
export interface TableColumn<R = TableRow> {
header?: string | false;

@@ -8,3 +9,3 @@ mobileHeader?: string | boolean;

order?: number;
search?: boolean;
search?: boolean | SearchFunction<R>;
templateRef?: TemplateRef<any>;

@@ -21,1 +22,2 @@ transform?: {

}
export declare type SearchFunction<R = TableRow> = (row: R, column: keyof R, value: typeof row[keyof R]) => string;
import { TableColumn } from './table-column.interface';
export interface TableConfig {
import { TableRow } from './table-row.interface';
export interface TableConfig<R = TableRow> {
hidden?: boolean;

@@ -11,6 +12,6 @@ mobileLayout?: boolean;

rows?: {
[key: string]: TableColumn;
[Property in keyof R]: TableColumn<R>;
};
columns?: {
[key: string]: TableColumn;
[Property in keyof R]: TableColumn<R>;
};

@@ -22,2 +23,20 @@ pagination?: {

rowHover?: boolean;
footer?: {
headers?: {
[key: FooterCalculation | string]: string | boolean;
};
columns?: {
[Property in keyof R]: Partial<TableFooterColumn<R>>;
};
rowOrder?: Array<keyof R | FooterCalculation>;
emptyContent?: string;
};
}
interface TableFooterColumn<R> {
[key: FooterCalculation | string]: boolean | number | string | CalcFunc<R>;
}
interface CalcFunc<R> {
(data: Array<R>, key: keyof R): number | string;
}
declare type FooterCalculation = 'sum' | 'avg' | 'count' | 'max' | 'min';
export {};
import { TableRow } from './table-row.interface';
export interface GtRowClickEvent {
row: TableRow;
export interface GtRowClickEvent<R = TableRow> {
row: R;
index: number;
event: MouseEvent;
}
export interface GtRowHoverEvent {
row: TableRow | null;
export interface GtRowHoverEvent<R = TableRow> {
row: R | null;
index: number | null;
event?: MouseEvent;
}
import { TableRow } from './table-row.interface';
import { TableConfig } from './table-config.interface';
import { TableInfo } from './table-info.interface';
export interface TableMeta {
data: Array<Array<TableRow>>;
config: TableConfig;
export interface TableMeta<R = TableRow> {
data: Array<Array<R>>;
config: TableConfig<R>;
info: TableInfo;
}

@@ -1,4 +0,3 @@

export declare type TableRows = Array<TableRow>;
export interface TableRow {
[key: string]: number | string | boolean | any;
}

@@ -12,4 +12,4 @@ import { ReplaySubject } from 'rxjs';

set ariaLabels(value: GtPaginationAriaLabels);
get table(): CoreComponent | undefined;
set table(value: any);
get table(): CoreComponent;
set table(value: CoreComponent);
table$: ReplaySubject<CoreComponent>;

@@ -24,3 +24,3 @@ private _table;

static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "angular-generic-table-pagination", never, { "paginationLength": "paginationLength"; "classes": "classes"; "ariaLabels": "ariaLabels"; "table": "table"; }, {}, never, never, false>;
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "angular-generic-table-pagination", never, { "paginationLength": "paginationLength"; "classes": "classes"; "ariaLabels": "ariaLabels"; "table": "table"; }, {}, never, never, true>;
}
import * as i0 from "@angular/core";
import * as i1 from "./pagination.component";
import * as i2 from "@angular/common";
import * as i1 from "@angular/common";
import * as i2 from "./pagination.component";
export declare class GenericTablePaginationModule {
static ɵfac: i0.ɵɵFactoryDeclaration<GenericTablePaginationModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericTablePaginationModule, [typeof i1.PaginationComponent], [typeof i2.CommonModule], [typeof i1.PaginationComponent]>;
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericTablePaginationModule, never, [typeof i1.CommonModule, typeof i2.PaginationComponent], [typeof i2.PaginationComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<GenericTablePaginationModule>;
}

@@ -6,3 +6,3 @@ import { PipeTransform } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<CapitalCasePipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<CapitalCasePipe, "capitalCase", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<CapitalCasePipe, "capitalCase", true>;
}

@@ -6,3 +6,3 @@ import { PipeTransform } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<DashCasePipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<DashCasePipe, "dashCase", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<DashCasePipe, "dashCase", true>;
}

@@ -8,3 +8,3 @@ import { Injector, PipeTransform, Type } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<DynamicPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<DynamicPipe, "dynamicPipe", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<DynamicPipe, "dynamicPipe", true>;
}

@@ -6,3 +6,3 @@ import { PipeTransform } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<HighlightPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<HighlightPipe, "highlight", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<HighlightPipe, "highlight", true>;
}

@@ -10,3 +10,3 @@ import { PipeTransform } from '@angular/core';

static ɵfac: i0.ɵɵFactoryDeclaration<SortClassPipe, never>;
static ɵpipe: i0.ɵɵPipeDeclaration<SortClassPipe, "sortClass", false>;
static ɵpipe: i0.ɵɵPipeDeclaration<SortClassPipe, "sortClass", true>;
}

@@ -7,1 +7,6 @@ import { TableRow } from '../models/table-row.interface';

export declare let search: (text: string, caseSensitive: boolean, data: Array<TableRow>, config: TableConfig) => TableRow[];
export declare let calculate: (data: Array<TableRow>, config: TableConfig) => {
calculated: any;
calculations: string[];
calculatedColumnsCount: number;
};
{
"name": "@angular-generic-table/core",
"version": "5.0.0-rc.13",
"version": "5.0.0-rc.14",
"author": "Robert Hjalmers <opensource@rhj.se> (http://www.linkedin.com/in/robert-hjalmers/)",

@@ -5,0 +5,0 @@ "license": "MIT",

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc