@angular-generic-table/core 5.0.0-alpha.1 → 5.0.0-rc.10
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 +13 -134
- package/angular-generic-table-core.d.ts +2 -19
- package/esm2020/angular-generic-table-core.mjs +5 -0
- package/esm2020/lib/core.component.mjs +122 -0
- package/esm2020/lib/core.module.mjs +23 -0
- package/esm2020/lib/core.service.mjs +14 -0
- package/esm2020/lib/enums/order.enum.mjs +6 -0
- package/esm2020/lib/models/table-column.interface.mjs +2 -0
- package/esm2020/lib/models/table-config.interface.mjs +2 -0
- package/esm2020/lib/models/table-info.interface.mjs +2 -0
- package/esm2020/lib/models/table-meta.interface.mjs +2 -0
- package/esm2020/lib/models/table-row.interface.mjs +2 -0
- package/esm2020/lib/models/table-sort.interface.mjs +2 -0
- package/esm2020/lib/pagination/pagination.component.mjs +63 -0
- package/esm2020/lib/pagination/pagination.module.mjs +18 -0
- package/esm2020/lib/pipes/capital-case.pipe.mjs +17 -0
- package/esm2020/lib/pipes/dash-case.pipe.mjs +17 -0
- package/esm2020/lib/pipes/dynamic.pipe.mjs +25 -0
- package/esm2020/lib/pipes/highlight.pipe.mjs +48 -0
- package/esm2020/lib/pipes/sort-class.pipe.mjs +16 -0
- package/esm2020/lib/utilities/utilities.mjs +39 -0
- package/esm2020/public-api.mjs +15 -0
- package/fesm2015/angular-generic-table-core.mjs +384 -0
- package/fesm2015/angular-generic-table-core.mjs.map +1 -0
- package/fesm2020/angular-generic-table-core.mjs +381 -0
- package/fesm2020/angular-generic-table-core.mjs.map +1 -0
- package/lib/core.component.d.ts +33 -0
- package/lib/core.module.d.ts +12 -1
- package/lib/core.service.d.ts +6 -0
- package/lib/enums/order.enum.d.ts +4 -0
- package/lib/models/table-column.interface.d.ts +15 -0
- package/lib/models/table-config.interface.d.ts +15 -0
- package/lib/models/table-info.interface.d.ts +4 -0
- package/lib/models/table-meta.interface.d.ts +8 -0
- package/lib/models/table-row.interface.d.ts +4 -0
- package/lib/models/table-sort.interface.d.ts +5 -0
- package/lib/pagination/pagination.component.d.ts +14 -0
- package/lib/pagination/pagination.module.d.ts +8 -0
- package/lib/pipes/capital-case.pipe.d.ts +7 -0
- package/lib/pipes/dash-case.pipe.d.ts +4 -1
- package/lib/pipes/dynamic.pipe.d.ts +9 -0
- package/lib/pipes/highlight.pipe.d.ts +7 -0
- package/lib/pipes/sort-class.pipe.d.ts +11 -0
- package/lib/utilities/utilities.d.ts +6 -0
- package/package.json +26 -24
- package/public-api.d.ts +11 -0
- package/scss/index.scss +102 -0
- package/CHANGELOG.md +0 -461
- package/LICENSE.md +0 -201
- package/angular-generic-table-core.metadata.json +0 -1
- package/bundles/angular-generic-table-core.umd.js +0 -3675
- package/bundles/angular-generic-table-core.umd.js.map +0 -1
- package/bundles/angular-generic-table-core.umd.min.js +0 -2
- package/bundles/angular-generic-table-core.umd.min.js.map +0 -1
- package/css/generic-table.css +0 -168
- package/css/generic-table.css.map +0 -9
- package/css/generic-table.min.css +0 -2
- package/css/generic-table.min.css.map +0 -1
- package/esm2015/angular-generic-table-core.js +0 -28
- package/esm2015/angular-generic-table-core.metadata.json +0 -1
- package/esm2015/lib/components/generic-table/generic-table.component.js +0 -1738
- package/esm2015/lib/components/generic-table/generic-table.component.metadata.json +0 -1
- package/esm2015/lib/components/gt-checkbox/gt-checkbox.component.js +0 -88
- package/esm2015/lib/components/gt-checkbox/gt-checkbox.component.metadata.json +0 -1
- package/esm2015/lib/components/gt-custom-component-factory/gt-custom-component-factory.component.js +0 -112
- package/esm2015/lib/components/gt-custom-component-factory/gt-custom-component-factory.component.metadata.json +0 -1
- package/esm2015/lib/components/gt-drilldown/gt-drilldown.component.js +0 -53
- package/esm2015/lib/components/gt-drilldown/gt-drilldown.component.metadata.json +0 -1
- package/esm2015/lib/components/gt-dropdown/gt-dropdown.component.js +0 -176
- package/esm2015/lib/components/gt-dropdown/gt-dropdown.component.metadata.json +0 -1
- package/esm2015/lib/components/gt-expanding-row/gt-expanding-row.component.js +0 -147
- package/esm2015/lib/components/gt-expanding-row/gt-expanding-row.component.metadata.json +0 -1
- package/esm2015/lib/components/gt-pagination/gt-pagination.component.js +0 -141
- package/esm2015/lib/components/gt-pagination/gt-pagination.component.metadata.json +0 -1
- package/esm2015/lib/components/gt-table-info/gt-table-info.component.js +0 -103
- package/esm2015/lib/components/gt-table-info/gt-table-info.component.metadata.json +0 -1
- package/esm2015/lib/core.module.js +0 -96
- package/esm2015/lib/core.module.metadata.json +0 -1
- package/esm2015/lib/directives/component-anchor.directive.js +0 -65
- package/esm2015/lib/directives/component-anchor.directive.metadata.json +0 -1
- package/esm2015/lib/directives/gt-column-width.directive.js +0 -73
- package/esm2015/lib/directives/gt-column-width.directive.metadata.json +0 -1
- package/esm2015/lib/interfaces/gt-config-field.js +0 -96
- package/esm2015/lib/interfaces/gt-config-field.metadata.json +0 -1
- package/esm2015/lib/interfaces/gt-config-setting.js +0 -41
- package/esm2015/lib/interfaces/gt-config-setting.metadata.json +0 -1
- package/esm2015/lib/interfaces/gt-config-total.js +0 -20
- package/esm2015/lib/interfaces/gt-config-total.metadata.json +0 -1
- package/esm2015/lib/interfaces/gt-config.js +0 -24
- package/esm2015/lib/interfaces/gt-config.metadata.json +0 -1
- package/esm2015/lib/interfaces/gt-event.js +0 -16
- package/esm2015/lib/interfaces/gt-event.metadata.json +0 -1
- package/esm2015/lib/interfaces/gt-information.js +0 -38
- package/esm2015/lib/interfaces/gt-information.metadata.json +0 -1
- package/esm2015/lib/interfaces/gt-options.js +0 -55
- package/esm2015/lib/interfaces/gt-options.metadata.json +0 -1
- package/esm2015/lib/interfaces/gt-render-field.js +0 -29
- package/esm2015/lib/interfaces/gt-render-field.metadata.json +0 -1
- package/esm2015/lib/interfaces/gt-row-meta.js +0 -18
- package/esm2015/lib/interfaces/gt-row-meta.metadata.json +0 -1
- package/esm2015/lib/interfaces/gt-row.js +0 -20
- package/esm2015/lib/interfaces/gt-row.metadata.json +0 -1
- package/esm2015/lib/interfaces/gt-texts.js +0 -36
- package/esm2015/lib/interfaces/gt-texts.metadata.json +0 -1
- package/esm2015/lib/pipes/dash-case.pipe.js +0 -30
- package/esm2015/lib/pipes/dash-case.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-chunk.pipe.js +0 -52
- package/esm2015/lib/pipes/gt-chunk.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-column-class.pipe.js +0 -51
- package/esm2015/lib/pipes/gt-column-class.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-filter.pipe.js +0 -60
- package/esm2015/lib/pipes/gt-filter.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-highlight.pipe.js +0 -72
- package/esm2015/lib/pipes/gt-highlight.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-is-editable.pipe.js +0 -37
- package/esm2015/lib/pipes/gt-is-editable.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-is-observable.pipe.js +0 -31
- package/esm2015/lib/pipes/gt-is-observable.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-meta.pipe.js +0 -54
- package/esm2015/lib/pipes/gt-meta.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-order-by.pipe.js +0 -202
- package/esm2015/lib/pipes/gt-order-by.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-property.pipe.js +0 -52
- package/esm2015/lib/pipes/gt-property.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-render.pipe.js +0 -173
- package/esm2015/lib/pipes/gt-render.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-row-class.pipe.js +0 -66
- package/esm2015/lib/pipes/gt-row-class.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-search.pipe.js +0 -114
- package/esm2015/lib/pipes/gt-search.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-totals-position.pipe.js +0 -35
- package/esm2015/lib/pipes/gt-totals-position.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-totals.pipe.js +0 -46
- package/esm2015/lib/pipes/gt-totals.pipe.metadata.json +0 -1
- package/esm2015/lib/pipes/gt-visible.pipe.js +0 -71
- package/esm2015/lib/pipes/gt-visible.pipe.metadata.json +0 -1
- package/esm2015/public_api.js +0 -18
- package/esm2015/public_api.metadata.json +0 -1
- package/esm5/angular-generic-table-core.js +0 -28
- package/esm5/angular-generic-table-core.metadata.json +0 -1
- package/esm5/lib/components/generic-table/generic-table.component.js +0 -1813
- package/esm5/lib/components/generic-table/generic-table.component.metadata.json +0 -1
- package/esm5/lib/components/gt-checkbox/gt-checkbox.component.js +0 -100
- package/esm5/lib/components/gt-checkbox/gt-checkbox.component.metadata.json +0 -1
- package/esm5/lib/components/gt-custom-component-factory/gt-custom-component-factory.component.js +0 -136
- package/esm5/lib/components/gt-custom-component-factory/gt-custom-component-factory.component.metadata.json +0 -1
- package/esm5/lib/components/gt-drilldown/gt-drilldown.component.js +0 -41
- package/esm5/lib/components/gt-drilldown/gt-drilldown.component.metadata.json +0 -1
- package/esm5/lib/components/gt-dropdown/gt-dropdown.component.js +0 -179
- package/esm5/lib/components/gt-dropdown/gt-dropdown.component.metadata.json +0 -1
- package/esm5/lib/components/gt-expanding-row/gt-expanding-row.component.js +0 -173
- package/esm5/lib/components/gt-expanding-row/gt-expanding-row.component.metadata.json +0 -1
- package/esm5/lib/components/gt-pagination/gt-pagination.component.js +0 -149
- package/esm5/lib/components/gt-pagination/gt-pagination.component.metadata.json +0 -1
- package/esm5/lib/components/gt-table-info/gt-table-info.component.js +0 -111
- package/esm5/lib/components/gt-table-info/gt-table-info.component.metadata.json +0 -1
- package/esm5/lib/core.module.js +0 -100
- package/esm5/lib/core.module.metadata.json +0 -1
- package/esm5/lib/directives/component-anchor.directive.js +0 -66
- package/esm5/lib/directives/component-anchor.directive.metadata.json +0 -1
- package/esm5/lib/directives/gt-column-width.directive.js +0 -81
- package/esm5/lib/directives/gt-column-width.directive.metadata.json +0 -1
- package/esm5/lib/interfaces/gt-config-field.js +0 -96
- package/esm5/lib/interfaces/gt-config-field.metadata.json +0 -1
- package/esm5/lib/interfaces/gt-config-setting.js +0 -41
- package/esm5/lib/interfaces/gt-config-setting.metadata.json +0 -1
- package/esm5/lib/interfaces/gt-config-total.js +0 -20
- package/esm5/lib/interfaces/gt-config-total.metadata.json +0 -1
- package/esm5/lib/interfaces/gt-config.js +0 -24
- package/esm5/lib/interfaces/gt-config.metadata.json +0 -1
- package/esm5/lib/interfaces/gt-event.js +0 -16
- package/esm5/lib/interfaces/gt-event.metadata.json +0 -1
- package/esm5/lib/interfaces/gt-information.js +0 -38
- package/esm5/lib/interfaces/gt-information.metadata.json +0 -1
- package/esm5/lib/interfaces/gt-options.js +0 -55
- package/esm5/lib/interfaces/gt-options.metadata.json +0 -1
- package/esm5/lib/interfaces/gt-render-field.js +0 -29
- package/esm5/lib/interfaces/gt-render-field.metadata.json +0 -1
- package/esm5/lib/interfaces/gt-row-meta.js +0 -18
- package/esm5/lib/interfaces/gt-row-meta.metadata.json +0 -1
- package/esm5/lib/interfaces/gt-row.js +0 -20
- package/esm5/lib/interfaces/gt-row.metadata.json +0 -1
- package/esm5/lib/interfaces/gt-texts.js +0 -36
- package/esm5/lib/interfaces/gt-texts.metadata.json +0 -1
- package/esm5/lib/pipes/dash-case.pipe.js +0 -38
- package/esm5/lib/pipes/dash-case.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-chunk.pipe.js +0 -70
- package/esm5/lib/pipes/gt-chunk.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-column-class.pipe.js +0 -61
- package/esm5/lib/pipes/gt-column-class.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-filter.pipe.js +0 -73
- package/esm5/lib/pipes/gt-filter.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-highlight.pipe.js +0 -77
- package/esm5/lib/pipes/gt-highlight.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-is-editable.pipe.js +0 -47
- package/esm5/lib/pipes/gt-is-editable.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-is-observable.pipe.js +0 -39
- package/esm5/lib/pipes/gt-is-observable.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-meta.pipe.js +0 -65
- package/esm5/lib/pipes/gt-meta.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-order-by.pipe.js +0 -223
- package/esm5/lib/pipes/gt-order-by.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-property.pipe.js +0 -63
- package/esm5/lib/pipes/gt-property.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-render.pipe.js +0 -182
- package/esm5/lib/pipes/gt-render.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-row-class.pipe.js +0 -75
- package/esm5/lib/pipes/gt-row-class.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-search.pipe.js +0 -125
- package/esm5/lib/pipes/gt-search.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-totals-position.pipe.js +0 -45
- package/esm5/lib/pipes/gt-totals-position.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-totals.pipe.js +0 -57
- package/esm5/lib/pipes/gt-totals.pipe.metadata.json +0 -1
- package/esm5/lib/pipes/gt-visible.pipe.js +0 -79
- package/esm5/lib/pipes/gt-visible.pipe.metadata.json +0 -1
- package/esm5/public_api.js +0 -18
- package/esm5/public_api.metadata.json +0 -1
- package/fesm2015/angular-generic-table-core.js +0 -3285
- package/fesm2015/angular-generic-table-core.js.map +0 -1
- package/fesm5/angular-generic-table-core.js +0 -3574
- package/fesm5/angular-generic-table-core.js.map +0 -1
- package/lib/components/generic-table/generic-table.component.d.ts +0 -282
- package/lib/components/gt-checkbox/gt-checkbox.component.d.ts +0 -12
- package/lib/components/gt-custom-component-factory/gt-custom-component-factory.component.d.ts +0 -27
- package/lib/components/gt-drilldown/gt-drilldown.component.d.ts +0 -6
- package/lib/components/gt-dropdown/gt-dropdown.component.d.ts +0 -21
- package/lib/components/gt-expanding-row/gt-expanding-row.component.d.ts +0 -34
- package/lib/components/gt-pagination/gt-pagination.component.d.ts +0 -11
- package/lib/components/gt-table-info/gt-table-info.component.d.ts +0 -15
- package/lib/directives/component-anchor.directive.d.ts +0 -10
- package/lib/directives/gt-column-width.directive.d.ts +0 -11
- package/lib/interfaces/gt-config-field.d.ts +0 -87
- package/lib/interfaces/gt-config-setting.d.ts +0 -21
- package/lib/interfaces/gt-config-total.d.ts +0 -8
- package/lib/interfaces/gt-config.d.ts +0 -12
- package/lib/interfaces/gt-event.d.ts +0 -4
- package/lib/interfaces/gt-information.d.ts +0 -15
- package/lib/interfaces/gt-options.d.ts +0 -27
- package/lib/interfaces/gt-render-field.d.ts +0 -19
- package/lib/interfaces/gt-row-meta.d.ts +0 -5
- package/lib/interfaces/gt-row.d.ts +0 -6
- package/lib/interfaces/gt-texts.d.ts +0 -14
- package/lib/pipes/gt-chunk.pipe.d.ts +0 -8
- package/lib/pipes/gt-column-class.pipe.d.ts +0 -6
- package/lib/pipes/gt-filter.pipe.d.ts +0 -5
- package/lib/pipes/gt-highlight.pipe.d.ts +0 -7
- package/lib/pipes/gt-is-editable.pipe.d.ts +0 -4
- package/lib/pipes/gt-is-observable.pipe.d.ts +0 -4
- package/lib/pipes/gt-meta.pipe.d.ts +0 -5
- package/lib/pipes/gt-order-by.pipe.d.ts +0 -11
- package/lib/pipes/gt-property.pipe.d.ts +0 -7
- package/lib/pipes/gt-render.pipe.d.ts +0 -19
- package/lib/pipes/gt-row-class.pipe.d.ts +0 -5
- package/lib/pipes/gt-search.pipe.d.ts +0 -10
- package/lib/pipes/gt-totals-position.pipe.d.ts +0 -5
- package/lib/pipes/gt-totals.pipe.d.ts +0 -4
- package/lib/pipes/gt-visible.pipe.d.ts +0 -9
- package/public_api.d.ts +0 -18
- package/scss/generic-table.scss +0 -246
package/lib/core.module.d.ts
CHANGED
|
@@ -1,2 +1,13 @@
|
|
|
1
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./core.component";
|
|
3
|
+
import * as i2 from "./pipes/sort-class.pipe";
|
|
4
|
+
import * as i3 from "./pipes/dash-case.pipe";
|
|
5
|
+
import * as i4 from "./pipes/highlight.pipe";
|
|
6
|
+
import * as i5 from "./pipes/capital-case.pipe";
|
|
7
|
+
import * as i6 from "./pipes/dynamic.pipe";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
export declare class GenericTableCoreModule {
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericTableCoreModule, never>;
|
|
11
|
+
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.CommonModule], [typeof i1.CoreComponent]>;
|
|
12
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GenericTableCoreModule>;
|
|
2
13
|
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
|
2
|
+
export interface TableColumn {
|
|
3
|
+
header?: string | false;
|
|
4
|
+
mobileHeader?: string | boolean;
|
|
5
|
+
hidden?: boolean;
|
|
6
|
+
sortable?: boolean;
|
|
7
|
+
order?: number;
|
|
8
|
+
search?: boolean;
|
|
9
|
+
templateRef?: TemplateRef<any>;
|
|
10
|
+
transform?: {
|
|
11
|
+
pipe: any;
|
|
12
|
+
args?: Array<any>;
|
|
13
|
+
};
|
|
14
|
+
class?: string;
|
|
15
|
+
}
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
import { TableColumn } from './table-column.interface';
|
|
2
|
+
export interface TableConfig {
|
|
3
|
+
hidden?: boolean;
|
|
4
|
+
mobileLayout?: boolean;
|
|
5
|
+
class?: string;
|
|
6
|
+
rows?: {
|
|
7
|
+
[key: string]: TableColumn;
|
|
8
|
+
};
|
|
9
|
+
columns?: {
|
|
10
|
+
[key: string]: TableColumn;
|
|
11
|
+
};
|
|
12
|
+
pagination?: {
|
|
13
|
+
length?: number;
|
|
14
|
+
};
|
|
15
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { TableRow } from './table-row.interface';
|
|
2
|
+
import { TableConfig } from './table-config.interface';
|
|
3
|
+
import { TableInfo } from './table-info.interface';
|
|
4
|
+
export interface TableMeta {
|
|
5
|
+
data: Array<Array<TableRow>>;
|
|
6
|
+
config: TableConfig;
|
|
7
|
+
info: TableInfo;
|
|
8
|
+
}
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
import { ReplaySubject } from 'rxjs';
|
|
2
|
+
import { CoreComponent } from '../core.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class PaginationComponent {
|
|
5
|
+
get table(): CoreComponent | undefined;
|
|
6
|
+
set table(value: any);
|
|
7
|
+
table$: ReplaySubject<CoreComponent>;
|
|
8
|
+
private _table;
|
|
9
|
+
pagination$: import("rxjs").Observable<number[]>;
|
|
10
|
+
generateList(pages: number, currentPosition: number): Array<number>;
|
|
11
|
+
goto(page: number): void;
|
|
12
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<PaginationComponent, never>;
|
|
13
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<PaginationComponent, "angular-generic-table-pagination", never, { "table": "table"; }, {}, never, never>;
|
|
14
|
+
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import * as i1 from "./pagination.component";
|
|
3
|
+
import * as i2 from "@angular/common";
|
|
4
|
+
export declare class GenericTablePaginationModule {
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<GenericTablePaginationModule, never>;
|
|
6
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<GenericTablePaginationModule, [typeof i1.PaginationComponent], [typeof i2.CommonModule], [typeof i1.PaginationComponent]>;
|
|
7
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<GenericTablePaginationModule>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class CapitalCasePipe implements PipeTransform {
|
|
4
|
+
transform(s: string): any;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CapitalCasePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CapitalCasePipe, "capitalCase">;
|
|
7
|
+
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
1
|
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
2
3
|
export declare class DashCasePipe implements PipeTransform {
|
|
3
|
-
transform(
|
|
4
|
+
transform(s: string): any;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DashCasePipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DashCasePipe, "dashCase">;
|
|
4
7
|
}
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Injector, PipeTransform, Type } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class DynamicPipe implements PipeTransform {
|
|
4
|
+
private injector;
|
|
5
|
+
constructor(injector: Injector);
|
|
6
|
+
transform(value: any, requiredPipe: Type<any>, pipeArgs: any[]): any;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<DynamicPipe, "dynamicPipe">;
|
|
9
|
+
}
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class HighlightPipe implements PipeTransform {
|
|
4
|
+
transform(text: any, searchTerm: string | null): string;
|
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<HighlightPipe, never>;
|
|
6
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<HighlightPipe, "highlight">;
|
|
7
|
+
}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Order } from '../enums/order.enum';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SortClassPipe implements PipeTransform {
|
|
5
|
+
transform(selection: {
|
|
6
|
+
sortBy: string;
|
|
7
|
+
sortByOrder: Order;
|
|
8
|
+
} | any, property: string): string;
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SortClassPipe, never>;
|
|
10
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SortClassPipe, "sortClass">;
|
|
11
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { TableRow } from '../models/table-row.interface';
|
|
2
|
+
import { TableConfig } from '../models/table-config.interface';
|
|
3
|
+
export declare let dashed: (s: string) => string;
|
|
4
|
+
export declare let capitalize: (s: string) => string;
|
|
5
|
+
export declare let chunk: (array: Array<any>, chunkSize: number) => Array<Array<TableRow>>;
|
|
6
|
+
export declare let search: (text: string, caseSensitive: boolean, data: Array<TableRow>, config: TableConfig) => TableRow[];
|
package/package.json
CHANGED
|
@@ -1,35 +1,37 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@angular-generic-table/core",
|
|
3
|
-
"version": "5.0.0-
|
|
4
|
-
"description": "A generic table component for Angular",
|
|
5
|
-
"keywords": [
|
|
6
|
-
"Angular",
|
|
7
|
-
"Table"
|
|
8
|
-
],
|
|
9
|
-
"publishConfig": {
|
|
10
|
-
"registry": "https://registry.npmjs.org/"
|
|
11
|
-
},
|
|
3
|
+
"version": "5.0.0-rc.10",
|
|
12
4
|
"author": "Robert Hjalmers <opensource@rhj.se> (http://www.linkedin.com/in/robert-hjalmers/)",
|
|
13
|
-
"license": "
|
|
5
|
+
"license": "MIT",
|
|
14
6
|
"repository": {
|
|
15
7
|
"type": "git",
|
|
16
8
|
"url": "https://github.com/hjalmers/angular-generic-table.git"
|
|
17
9
|
},
|
|
18
10
|
"peerDependencies": {
|
|
19
|
-
"@angular/common": "^
|
|
20
|
-
"@angular/core": "^
|
|
11
|
+
"@angular/common": "^12.0.0 || ^13.0.0",
|
|
12
|
+
"@angular/core": "^12.0.0 || ^13.0.0"
|
|
21
13
|
},
|
|
22
|
-
"main": "bundles/angular-generic-table-core.umd.js",
|
|
23
|
-
"module": "fesm5/angular-generic-table-core.js",
|
|
24
|
-
"es2015": "fesm2015/angular-generic-table-core.js",
|
|
25
|
-
"esm5": "esm5/angular-generic-table-core.js",
|
|
26
|
-
"esm2015": "esm2015/angular-generic-table-core.js",
|
|
27
|
-
"fesm5": "fesm5/angular-generic-table-core.js",
|
|
28
|
-
"fesm2015": "fesm2015/angular-generic-table-core.js",
|
|
29
|
-
"typings": "angular-generic-table-core.d.ts",
|
|
30
|
-
"metadata": "angular-generic-table-core.metadata.json",
|
|
31
|
-
"sideEffects": false,
|
|
32
14
|
"dependencies": {
|
|
33
|
-
"tslib": "^
|
|
34
|
-
}
|
|
15
|
+
"tslib": "^2.0.0"
|
|
16
|
+
},
|
|
17
|
+
"module": "fesm2015/angular-generic-table-core.mjs",
|
|
18
|
+
"es2020": "fesm2020/angular-generic-table-core.mjs",
|
|
19
|
+
"esm2020": "esm2020/angular-generic-table-core.mjs",
|
|
20
|
+
"fesm2020": "fesm2020/angular-generic-table-core.mjs",
|
|
21
|
+
"fesm2015": "fesm2015/angular-generic-table-core.mjs",
|
|
22
|
+
"typings": "angular-generic-table-core.d.ts",
|
|
23
|
+
"exports": {
|
|
24
|
+
"./package.json": {
|
|
25
|
+
"default": "./package.json"
|
|
26
|
+
},
|
|
27
|
+
".": {
|
|
28
|
+
"types": "./angular-generic-table-core.d.ts",
|
|
29
|
+
"esm2020": "./esm2020/angular-generic-table-core.mjs",
|
|
30
|
+
"es2020": "./fesm2020/angular-generic-table-core.mjs",
|
|
31
|
+
"es2015": "./fesm2015/angular-generic-table-core.mjs",
|
|
32
|
+
"node": "./fesm2015/angular-generic-table-core.mjs",
|
|
33
|
+
"default": "./fesm2020/angular-generic-table-core.mjs"
|
|
34
|
+
}
|
|
35
|
+
},
|
|
36
|
+
"sideEffects": false
|
|
35
37
|
}
|
package/public-api.d.ts
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
export * from './lib/core.service';
|
|
2
|
+
export * from './lib/core.component';
|
|
3
|
+
export * from './lib/core.module';
|
|
4
|
+
export * from './lib/pagination/pagination.component';
|
|
5
|
+
export * from './lib/pagination/pagination.module';
|
|
6
|
+
export * from './lib/models/table-config.interface';
|
|
7
|
+
export * from './lib/models/table-column.interface';
|
|
8
|
+
export * from './lib/models/table-info.interface';
|
|
9
|
+
export * from './lib/models/table-row.interface';
|
|
10
|
+
export * from './lib/models/table-sort.interface';
|
|
11
|
+
export * from './lib/models/table-meta.interface';
|
package/scss/index.scss
ADDED
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
$highlight-background-color: #ffdd00 !default;
|
|
2
|
+
$mobile-style-selector: 'table.table-mobile' !default;
|
|
3
|
+
$mobile-style-max-width: 576px !default;
|
|
4
|
+
$mobile-style-header-font-weight: 500 !default;
|
|
5
|
+
$mobile-style-header-background-color: #fff !default;
|
|
6
|
+
$mobile-style-button-selector: '.btn-sm' !default;
|
|
7
|
+
$mobile-style-border-bottom: solid 1px #dedede !default;
|
|
8
|
+
$mobile-style-button-font-size: 1rem !default;
|
|
9
|
+
$mobile-style-button-padding: 0.5625rem 1rem !default;
|
|
10
|
+
$pagination-ellipsis-content: '...' !default;
|
|
11
|
+
$pagination-active-color: #000 !default;
|
|
12
|
+
$pagination-justify-content: center !default;
|
|
13
|
+
|
|
14
|
+
@mixin styles() {
|
|
15
|
+
@include search-style;
|
|
16
|
+
@include mobile-style;
|
|
17
|
+
@include pagination-style;
|
|
18
|
+
}
|
|
19
|
+
@mixin search-style {
|
|
20
|
+
.gt-highlight-search {
|
|
21
|
+
background: $highlight-background-color;
|
|
22
|
+
}
|
|
23
|
+
}
|
|
24
|
+
@mixin mobile-style($selector: $mobile-style-selector) {
|
|
25
|
+
#{$selector} {
|
|
26
|
+
.mobile-header {
|
|
27
|
+
display: none;
|
|
28
|
+
}
|
|
29
|
+
}
|
|
30
|
+
@media (max-width: $mobile-style-max-width) {
|
|
31
|
+
#{$selector} {
|
|
32
|
+
table-layout: fixed;
|
|
33
|
+
border-bottom: none;
|
|
34
|
+
thead {
|
|
35
|
+
position: sticky;
|
|
36
|
+
top: 0;
|
|
37
|
+
display: block;
|
|
38
|
+
@media (hover: none) and (pointer: coarse) {
|
|
39
|
+
display: table-header-group;
|
|
40
|
+
}
|
|
41
|
+
background: $mobile-style-header-background-color;
|
|
42
|
+
tr {
|
|
43
|
+
display: flex;
|
|
44
|
+
overflow: auto;
|
|
45
|
+
&::-webkit-scrollbar {
|
|
46
|
+
display: none;
|
|
47
|
+
}
|
|
48
|
+
th {
|
|
49
|
+
flex: auto;
|
|
50
|
+
text-align: left !important;
|
|
51
|
+
white-space: nowrap;
|
|
52
|
+
}
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
tbody {
|
|
56
|
+
tr {
|
|
57
|
+
display: flex;
|
|
58
|
+
flex-direction: column;
|
|
59
|
+
border-bottom: $mobile-style-border-bottom;
|
|
60
|
+
}
|
|
61
|
+
td {
|
|
62
|
+
display: flex;
|
|
63
|
+
justify-content: space-between;
|
|
64
|
+
align-items: center;
|
|
65
|
+
border-top: none !important;
|
|
66
|
+
& > .mobile-header {
|
|
67
|
+
font-weight: $mobile-style-header-font-weight;
|
|
68
|
+
display: block;
|
|
69
|
+
}
|
|
70
|
+
#{$mobile-style-button-selector} {
|
|
71
|
+
width: 100%;
|
|
72
|
+
font-size: $mobile-style-button-font-size;
|
|
73
|
+
padding: $mobile-style-button-padding;
|
|
74
|
+
}
|
|
75
|
+
}
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
}
|
|
79
|
+
}
|
|
80
|
+
@mixin pagination-style() {
|
|
81
|
+
nav.gt-pagination {
|
|
82
|
+
display: flex;
|
|
83
|
+
justify-content: $pagination-justify-content;
|
|
84
|
+
ul {
|
|
85
|
+
display: inline-flex;
|
|
86
|
+
list-style: none;
|
|
87
|
+
margin: 0;
|
|
88
|
+
padding: 0;
|
|
89
|
+
li {
|
|
90
|
+
&.ellipsis::after {
|
|
91
|
+
content: $pagination-ellipsis-content;
|
|
92
|
+
display: inline-flex;
|
|
93
|
+
}
|
|
94
|
+
&.active button {
|
|
95
|
+
color: $pagination-active-color;
|
|
96
|
+
}
|
|
97
|
+
}
|
|
98
|
+
}
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
|