@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
|
@@ -1,8 +0,0 @@
|
|
|
1
|
-
import { PipeTransform, EventEmitter } from '@angular/core';
|
|
2
|
-
import { GtInformation } from '../interfaces/gt-information';
|
|
3
|
-
import { GtEvent } from '../interfaces/gt-event';
|
|
4
|
-
export declare class GtChunkPipe implements PipeTransform {
|
|
5
|
-
transform(array: any[], gtInfo: GtInformation, chunkSize: number, page: number, refreshPageArray: boolean, refreshData: number, gtEvent: EventEmitter<GtEvent>, data: {
|
|
6
|
-
exportData: Array<any>;
|
|
7
|
-
}): any[];
|
|
8
|
-
}
|
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { GtConfigField } from '../interfaces/gt-config-field';
|
|
3
|
-
import { GtRow } from '../interfaces/gt-row';
|
|
4
|
-
export declare class GtColumnClassPipe implements PipeTransform {
|
|
5
|
-
transform(gtFields: Array<GtConfigField<any, any>>, column: GtConfigField<GtRow, any>, row?: GtRow): any;
|
|
6
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { GtInformation } from '../interfaces/gt-information';
|
|
3
|
-
export declare class GtFilterPipe implements PipeTransform {
|
|
4
|
-
transform(allRows: any[], filterBy: Object, gtInfo: GtInformation, refreshFilter: boolean, refreshData: number): any[];
|
|
5
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
|
|
3
|
-
export declare class GtHighlightPipe implements PipeTransform {
|
|
4
|
-
private sanitizer;
|
|
5
|
-
constructor(sanitizer: DomSanitizer);
|
|
6
|
-
transform(text: string, searchTerm: string): SafeHtml;
|
|
7
|
-
}
|
|
@@ -1,11 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { GtConfigField } from '../interfaces/gt-config-field';
|
|
3
|
-
import { GtRow } from '../interfaces/gt-row';
|
|
4
|
-
export declare class GtOrderByPipe<R extends GtRow> implements PipeTransform {
|
|
5
|
-
static _orderByComparator(a: any, b: any): number;
|
|
6
|
-
/** Return property */
|
|
7
|
-
private getProperty;
|
|
8
|
-
/** Return sort function */
|
|
9
|
-
private getSortFunction;
|
|
10
|
-
transform(input: any, sortByProperties: Array<string>, fields: GtConfigField<R, any>[], refreshSorting: boolean, refreshData: number): any;
|
|
11
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { GtConfigField } from '../interfaces/gt-config-field';
|
|
3
|
-
import { GtConfigSetting } from '../interfaces/gt-config-setting';
|
|
4
|
-
import { GtRow } from '../interfaces/gt-row';
|
|
5
|
-
export declare class GtPropertyPipe<R extends GtRow> implements PipeTransform {
|
|
6
|
-
transform(config: GtConfigField<R, any>[] | GtConfigSetting[], objectKey: string, property: string, refresh?: boolean): any;
|
|
7
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { GtConfigSetting } from '../interfaces/gt-config-setting';
|
|
3
|
-
import { GtConfigField } from '../interfaces/gt-config-field';
|
|
4
|
-
import { DomSanitizer } from '@angular/platform-browser';
|
|
5
|
-
import { GtRow } from '../interfaces/gt-row';
|
|
6
|
-
import { GtRenderField } from '../interfaces/gt-render-field';
|
|
7
|
-
import { GtHighlightPipe } from './gt-highlight.pipe';
|
|
8
|
-
export declare class GtRenderPipe<R extends GtRow> implements PipeTransform {
|
|
9
|
-
private sanitizer;
|
|
10
|
-
private gtHighlightPipe;
|
|
11
|
-
constructor(sanitizer: DomSanitizer, gtHighlightPipe: GtHighlightPipe);
|
|
12
|
-
/** Sort by column order */
|
|
13
|
-
private getColumnOrder;
|
|
14
|
-
/** Sort by length */
|
|
15
|
-
private getOrderByLength;
|
|
16
|
-
/** Return property */
|
|
17
|
-
private getProperty;
|
|
18
|
-
transform(row: any, settings: Array<GtConfigSetting>, fields: Array<GtConfigField<R, any>>, updated: boolean, loading: boolean, highlight?: boolean, searchString?: string): Array<GtRenderField<R, any>>;
|
|
19
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { GtConfigField } from '../interfaces/gt-config-field';
|
|
3
|
-
import { GtRow } from '../interfaces/gt-row';
|
|
4
|
-
import { GtConfigSetting } from '../interfaces/gt-config-setting';
|
|
5
|
-
import { GtInformation } from '../interfaces/gt-information';
|
|
6
|
-
export declare class GtSearchPipe<R extends GtRow> implements PipeTransform {
|
|
7
|
-
/** Return property */
|
|
8
|
-
private getProperty;
|
|
9
|
-
transform(allRows: any, searchTerms: string, gtInfo: GtInformation, settings: Array<GtConfigSetting>, fields: Array<GtConfigField<R, any>>, refreshData: number): any;
|
|
10
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { GtConfigTotal } from '../interfaces/gt-config-total';
|
|
3
|
-
export declare class GtTotalsPositionPipe implements PipeTransform {
|
|
4
|
-
transform(array: Array<GtConfigTotal>, position?: 'header' | 'footer'): Array<any>;
|
|
5
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { PipeTransform } from '@angular/core';
|
|
2
|
-
import { GtConfigField } from '../interfaces/gt-config-field';
|
|
3
|
-
import { GtConfigSetting } from '../interfaces/gt-config-setting';
|
|
4
|
-
import { GtRow } from '../interfaces/gt-row';
|
|
5
|
-
export declare class GtVisiblePipe<R extends GtRow> implements PipeTransform {
|
|
6
|
-
/** Sort by column order */
|
|
7
|
-
private getColumnOrder;
|
|
8
|
-
transform(array: Array<any>, settings: Array<GtConfigSetting>, refreshPipe?: boolean): Array<GtConfigField<R, any>> | Array<GtConfigSetting>;
|
|
9
|
-
}
|
package/public_api.d.ts
DELETED
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
export * from './lib/components/gt-table-info/gt-table-info.component';
|
|
2
|
-
export * from './lib/components/gt-pagination/gt-pagination.component';
|
|
3
|
-
export * from './lib/components/gt-expanding-row/gt-expanding-row.component';
|
|
4
|
-
export * from './lib/components/gt-dropdown/gt-dropdown.component';
|
|
5
|
-
export * from './lib/components/gt-drilldown/gt-drilldown.component';
|
|
6
|
-
export * from './lib/components/gt-custom-component-factory/gt-custom-component-factory.component';
|
|
7
|
-
export * from './lib/components/gt-checkbox/gt-checkbox.component';
|
|
8
|
-
export * from './lib/components/generic-table/generic-table.component';
|
|
9
|
-
export * from './lib/interfaces/gt-config';
|
|
10
|
-
export * from './lib/interfaces/gt-config-field';
|
|
11
|
-
export * from './lib/interfaces/gt-config-setting';
|
|
12
|
-
export * from './lib/interfaces/gt-config-total';
|
|
13
|
-
export * from './lib/interfaces/gt-row';
|
|
14
|
-
export * from './lib/interfaces/gt-event';
|
|
15
|
-
export * from './lib/interfaces/gt-options';
|
|
16
|
-
export * from './lib/interfaces/gt-texts';
|
|
17
|
-
export * from './lib/interfaces/gt-information';
|
|
18
|
-
export * from './lib/core.module';
|
package/scss/generic-table.scss
DELETED
|
@@ -1,246 +0,0 @@
|
|
|
1
|
-
// import variables from bootstrap or change to your own bootstrap theme variables
|
|
2
|
-
|
|
3
|
-
// default values for bootstrap 4 beta for backwards compatibility,
|
|
4
|
-
// override by importing bootstrap variables before this file or by setting your own variables
|
|
5
|
-
$gray-100: #f8f9fa !default;
|
|
6
|
-
$gray-700: #495057 !default;
|
|
7
|
-
$gray-200: #e9ecef !default;
|
|
8
|
-
$blue: #007bff !default;
|
|
9
|
-
|
|
10
|
-
$table-cell-padding: 0.75rem !default;
|
|
11
|
-
$table-cell-padding-sm: 0.3rem !default;
|
|
12
|
-
$table-border-color: $gray-200 !default;
|
|
13
|
-
|
|
14
|
-
$font-weight-bold: bold !default;
|
|
15
|
-
$font-size-sm: 0.875rem !default;
|
|
16
|
-
|
|
17
|
-
$grid-breakpoints: (
|
|
18
|
-
xs: 0,
|
|
19
|
-
sm: 576px,
|
|
20
|
-
md: 768px,
|
|
21
|
-
lg: 992px,
|
|
22
|
-
xl: 1200px
|
|
23
|
-
) !default;
|
|
24
|
-
|
|
25
|
-
// variables used by generic table
|
|
26
|
-
$gt-inline-edit-color: $blue !default;
|
|
27
|
-
$gt-totals-font-weight: $font-weight-bold !default;
|
|
28
|
-
$gt-totals-color: $gray-700 !default;
|
|
29
|
-
$gt-totals-bg: $gray-100 !default;
|
|
30
|
-
$gt-totals-font-size: $font-size-sm !default;
|
|
31
|
-
$gt-table-border-color: $table-border-color !default;
|
|
32
|
-
$gt-table-cell-padding: $table-cell-padding !default;
|
|
33
|
-
$gt-table-cell-padding-sm: $table-cell-padding-sm !default;
|
|
34
|
-
$gt-table-cell-padding-expanded: 0 !default;
|
|
35
|
-
$gt-medium-width: map-get($grid-breakpoints, md) !default;
|
|
36
|
-
|
|
37
|
-
// basic table styles for sorting and for stacked table layout
|
|
38
|
-
generic-table {
|
|
39
|
-
table {
|
|
40
|
-
thead tr {
|
|
41
|
-
th {
|
|
42
|
-
&.sort-enable {
|
|
43
|
-
cursor: pointer;
|
|
44
|
-
&:hover {
|
|
45
|
-
text-decoration: underline;
|
|
46
|
-
}
|
|
47
|
-
}
|
|
48
|
-
&.sort-asc {
|
|
49
|
-
cursor: pointer;
|
|
50
|
-
&:hover {
|
|
51
|
-
text-decoration: underline;
|
|
52
|
-
}
|
|
53
|
-
&::after {
|
|
54
|
-
content: '';
|
|
55
|
-
display: inline-block;
|
|
56
|
-
width: 0;
|
|
57
|
-
height: 0;
|
|
58
|
-
border-left: 5px solid transparent;
|
|
59
|
-
border-right: 5px solid transparent;
|
|
60
|
-
border-bottom: 5px solid #000;
|
|
61
|
-
border-radius: 2px;
|
|
62
|
-
margin-left: 4px;
|
|
63
|
-
position: absolute;
|
|
64
|
-
margin-top: 9px;
|
|
65
|
-
}
|
|
66
|
-
}
|
|
67
|
-
&.sort-desc {
|
|
68
|
-
cursor: pointer;
|
|
69
|
-
&:hover {
|
|
70
|
-
text-decoration: underline;
|
|
71
|
-
}
|
|
72
|
-
&::after {
|
|
73
|
-
content: '';
|
|
74
|
-
display: inline-block;
|
|
75
|
-
width: 0;
|
|
76
|
-
height: 0;
|
|
77
|
-
border-left: 5px solid transparent;
|
|
78
|
-
border-right: 5px solid transparent;
|
|
79
|
-
border-top: 5px solid #000;
|
|
80
|
-
border-radius: 2px;
|
|
81
|
-
margin-left: 4px;
|
|
82
|
-
position: absolute;
|
|
83
|
-
margin-top: 9px;
|
|
84
|
-
}
|
|
85
|
-
}
|
|
86
|
-
&.checkbox-column {
|
|
87
|
-
min-width: 30px;
|
|
88
|
-
}
|
|
89
|
-
}
|
|
90
|
-
}
|
|
91
|
-
|
|
92
|
-
span.gt-row-label,
|
|
93
|
-
th.gt-sort-label {
|
|
94
|
-
display: none;
|
|
95
|
-
}
|
|
96
|
-
tr td.gt-button {
|
|
97
|
-
vertical-align: middle;
|
|
98
|
-
padding-top: 0;
|
|
99
|
-
padding-bottom: 0;
|
|
100
|
-
width: 1px;
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
tr.row-expanded > td {
|
|
104
|
-
padding: $gt-table-cell-padding-expanded;
|
|
105
|
-
}
|
|
106
|
-
input.inline-edit {
|
|
107
|
-
border: none;
|
|
108
|
-
outline: none;
|
|
109
|
-
line-height: initial;
|
|
110
|
-
width: 100%;
|
|
111
|
-
background: none;
|
|
112
|
-
position: relative;
|
|
113
|
-
text-align: inherit;
|
|
114
|
-
}
|
|
115
|
-
.gt-inline-edit {
|
|
116
|
-
position: relative;
|
|
117
|
-
&::before {
|
|
118
|
-
opacity: 0;
|
|
119
|
-
position: absolute;
|
|
120
|
-
content: '';
|
|
121
|
-
margin-left: -$gt-table-cell-padding;
|
|
122
|
-
background: $gt-inline-edit-color;
|
|
123
|
-
height: 1px;
|
|
124
|
-
width: 100%;
|
|
125
|
-
top: auto;
|
|
126
|
-
bottom: -1px;
|
|
127
|
-
transform: scaleX(0);
|
|
128
|
-
transition: all 0.2s ease-in-out;
|
|
129
|
-
}
|
|
130
|
-
&.gt-edited::before {
|
|
131
|
-
transform: scaleX(1);
|
|
132
|
-
opacity: 1;
|
|
133
|
-
}
|
|
134
|
-
.gt-dropdown .dropdown-menu {
|
|
135
|
-
animation: fade-in 0.2s ease-in-out;
|
|
136
|
-
.dropdown-item {
|
|
137
|
-
cursor: pointer;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
140
|
-
.gt-inline-edit-notice {
|
|
141
|
-
opacity: 0;
|
|
142
|
-
transition: opacity 0.5s ease-in-out;
|
|
143
|
-
position: absolute;
|
|
144
|
-
bottom: 0;
|
|
145
|
-
left: 0;
|
|
146
|
-
display: inline-block;
|
|
147
|
-
width: 100%;
|
|
148
|
-
font-size: 7px;
|
|
149
|
-
text-transform: uppercase;
|
|
150
|
-
color: $gt-inline-edit-color;
|
|
151
|
-
text-align: center;
|
|
152
|
-
}
|
|
153
|
-
&.gt-edited .gt-inline-edit-notice {
|
|
154
|
-
opacity: 1;
|
|
155
|
-
}
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
thead.gt-totals {
|
|
159
|
-
border-bottom: 2px solid $gt-table-border-color;
|
|
160
|
-
}
|
|
161
|
-
|
|
162
|
-
tfoot.gt-totals {
|
|
163
|
-
border-top: 2px solid $gt-table-border-color;
|
|
164
|
-
}
|
|
165
|
-
.gt-totals tr td {
|
|
166
|
-
font-weight: $gt-totals-font-weight;
|
|
167
|
-
color: $gt-totals-color;
|
|
168
|
-
background: $gt-totals-bg;
|
|
169
|
-
font-size: $gt-totals-font-size;
|
|
170
|
-
}
|
|
171
|
-
}
|
|
172
|
-
table.table-sm {
|
|
173
|
-
.gt-inline-edit {
|
|
174
|
-
&::before {
|
|
175
|
-
margin-left: -$gt-table-cell-padding-sm;
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
}
|
|
179
|
-
gt-checkbox label {
|
|
180
|
-
margin: 0;
|
|
181
|
-
vertical-align: middle;
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
|
|
185
|
-
.gt-dropdown-menu.show {
|
|
186
|
-
max-height: 320px;
|
|
187
|
-
overflow: auto;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
// get break point for medium devices from bootstrap
|
|
191
|
-
@media (max-width: $gt-medium-width) {
|
|
192
|
-
generic-table {
|
|
193
|
-
table.table-stacked {
|
|
194
|
-
thead tr {
|
|
195
|
-
display: table;
|
|
196
|
-
width: 100%;
|
|
197
|
-
th {
|
|
198
|
-
text-align: right;
|
|
199
|
-
&:first-child {
|
|
200
|
-
text-align: left;
|
|
201
|
-
}
|
|
202
|
-
&.sort-disable {
|
|
203
|
-
display: none;
|
|
204
|
-
}
|
|
205
|
-
&.gt-sort-label {
|
|
206
|
-
display: table-cell;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
}
|
|
210
|
-
tr {
|
|
211
|
-
& + tr {
|
|
212
|
-
border-top: 1px solid #ddd;
|
|
213
|
-
}
|
|
214
|
-
|
|
215
|
-
td {
|
|
216
|
-
display: block;
|
|
217
|
-
border: none;
|
|
218
|
-
> span {
|
|
219
|
-
display: table-cell;
|
|
220
|
-
}
|
|
221
|
-
> span.gt-row-label {
|
|
222
|
-
white-space: nowrap;
|
|
223
|
-
font-weight: bold;
|
|
224
|
-
}
|
|
225
|
-
> span.gt-row-content {
|
|
226
|
-
text-align: right;
|
|
227
|
-
width: 100%;
|
|
228
|
-
}
|
|
229
|
-
&.hidden-stacked {
|
|
230
|
-
display: none;
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
}
|
|
234
|
-
}
|
|
235
|
-
}
|
|
236
|
-
}
|
|
237
|
-
|
|
238
|
-
@keyframes fade-in {
|
|
239
|
-
0% {
|
|
240
|
-
opacity: 0;
|
|
241
|
-
}
|
|
242
|
-
|
|
243
|
-
100% {
|
|
244
|
-
opacity: 1;
|
|
245
|
-
}
|
|
246
|
-
}
|