@coreui/angular-pro 4.2.23 → 4.2.24
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/esm2020/lib/sidebar/sidebar/sidebar.component.mjs +7 -7
- package/esm2020/lib/smart-table/smart-table/smart-table.component.mjs +8 -3
- package/esm2020/lib/smart-table/smart-table-column-filter/smart-table-column-filter.component.mjs +30 -0
- package/esm2020/lib/smart-table/smart-table-filter/filter-input.directive.mjs +78 -0
- package/esm2020/lib/smart-table/smart-table-filter/smart-table-filter.component.mjs +17 -67
- package/esm2020/lib/smart-table/smart-table-head/smart-table-head.component.mjs +14 -9
- package/esm2020/lib/smart-table/smart-table.module.mjs +8 -2
- package/fesm2015/coreui-angular-pro.mjs +123 -65
- package/fesm2015/coreui-angular-pro.mjs.map +1 -1
- package/fesm2020/coreui-angular-pro.mjs +123 -63
- package/fesm2020/coreui-angular-pro.mjs.map +1 -1
- package/lib/sidebar/sidebar/sidebar.component.d.ts +5 -5
- package/lib/smart-table/smart-table/smart-table.component.d.ts +5 -1
- package/lib/smart-table/smart-table-column-filter/smart-table-column-filter.component.d.ts +11 -0
- package/lib/smart-table/smart-table-filter/filter-input.directive.d.ts +24 -0
- package/lib/smart-table/smart-table-filter/smart-table-filter.component.d.ts +8 -13
- package/lib/smart-table/smart-table-head/smart-table-head.component.d.ts +6 -1
- package/lib/smart-table/smart-table.module.d.ts +13 -11
- package/package.json +1 -1
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from
|
|
2
|
-
import { BooleanInput } from
|
|
3
|
-
import { BreakpointObserver } from
|
|
4
|
-
import { ISidebarAction, SidebarService } from
|
|
5
|
-
import { SidebarBackdropService } from
|
|
1
|
+
import { EventEmitter, OnChanges, OnDestroy, OnInit, Renderer2, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
3
|
+
import { BreakpointObserver } from '@angular/cdk/layout';
|
|
4
|
+
import { ISidebarAction, SidebarService } from '../sidebar.service';
|
|
5
|
+
import { SidebarBackdropService } from '../sidebar-backdrop/sidebar-backdrop.service';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
7
|
export declare class SidebarComponent implements OnChanges, OnDestroy, OnInit {
|
|
8
8
|
#private;
|
|
@@ -104,6 +104,7 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
|
|
|
104
104
|
get rawColumnNames(): any[];
|
|
105
105
|
get itemsDataColumns(): any[];
|
|
106
106
|
get sortedItems(): IItemInternal[];
|
|
107
|
+
get tableFilterEvent(): 'change' | 'input';
|
|
107
108
|
private _columnFiltered;
|
|
108
109
|
get columnFiltered(): IItemInternal[];
|
|
109
110
|
get tableFiltered(): IItemInternal[];
|
|
@@ -117,7 +118,10 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
|
|
|
117
118
|
handleSorterChange(column: string, index: number): void;
|
|
118
119
|
setActivePage($event: number): void;
|
|
119
120
|
handleColumnFilterChange($event: any): void;
|
|
120
|
-
handleTableFilterChange($event:
|
|
121
|
+
handleTableFilterChange($event: {
|
|
122
|
+
value: string;
|
|
123
|
+
type: string;
|
|
124
|
+
}): void;
|
|
121
125
|
clean($event: MouseEvent): void;
|
|
122
126
|
handleItemsPerPageChange(value: number): void;
|
|
123
127
|
handleRowChecked($event: Event, item: IItemInternal): void;
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { IColumn } from '../smart-table.type';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class SmartTableColumnFilterComponent {
|
|
4
|
+
#private;
|
|
5
|
+
constructor();
|
|
6
|
+
readonly value$: import("rxjs").BehaviorSubject<string>;
|
|
7
|
+
set column(value: string | IColumn);
|
|
8
|
+
sizing?: 'sm' | 'lg';
|
|
9
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableColumnFilterComponent, never>;
|
|
10
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableColumnFilterComponent, "c-smart-table-column-filter", never, { "column": "column"; "sizing": "sizing"; }, {}, never, never, false>;
|
|
11
|
+
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
+
import { BehaviorSubject } from 'rxjs';
|
|
3
|
+
import { IColumn } from '../smart-table.type';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class FilterInputDirective implements AfterViewInit, OnDestroy {
|
|
6
|
+
#private;
|
|
7
|
+
private readonly elementRef;
|
|
8
|
+
constructor(elementRef: ElementRef);
|
|
9
|
+
readonly value$: BehaviorSubject<string>;
|
|
10
|
+
emitObject: {
|
|
11
|
+
value: string;
|
|
12
|
+
type?: string;
|
|
13
|
+
column?: (string | IColumn);
|
|
14
|
+
};
|
|
15
|
+
delay: number;
|
|
16
|
+
onEvent: 'change' | 'input';
|
|
17
|
+
set value(value: string);
|
|
18
|
+
readonly valueChange: EventEmitter<any>;
|
|
19
|
+
ngAfterViewInit(): void;
|
|
20
|
+
ngOnDestroy(): void;
|
|
21
|
+
private setSubscription;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterInputDirective, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FilterInputDirective, "[cFilterInput]", ["cFilterInput"], { "delay": "delay"; "onEvent": "onEvent"; "value": "value"; }, { "valueChange": "valueChange"; }, never, never, false>;
|
|
24
|
+
}
|
|
@@ -1,21 +1,16 @@
|
|
|
1
|
-
import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
|
|
2
|
-
import { BehaviorSubject } from 'rxjs';
|
|
3
|
-
import { ITableFilter } from '../smart-table.type';
|
|
4
1
|
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class SmartTableFilterComponent
|
|
2
|
+
export declare class SmartTableFilterComponent {
|
|
6
3
|
#private;
|
|
7
4
|
constructor();
|
|
8
|
-
readonly value$: BehaviorSubject<string>;
|
|
5
|
+
readonly value$: import("rxjs").BehaviorSubject<string>;
|
|
9
6
|
filterLabel: string;
|
|
10
7
|
filterPlaceholder: string;
|
|
11
|
-
|
|
12
|
-
set value(value: string);
|
|
13
|
-
readonly valueChange: EventEmitter<any>;
|
|
14
|
-
filterInput: ElementRef;
|
|
8
|
+
sizing?: 'sm' | 'lg';
|
|
15
9
|
get hostClasses(): any;
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
10
|
+
get labelClasses(): {
|
|
11
|
+
[x: string]: boolean;
|
|
12
|
+
'col-form-label': boolean;
|
|
13
|
+
};
|
|
19
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableFilterComponent, never>;
|
|
20
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableFilterComponent, "c-smart-table-filter", never, { "filterLabel": "filterLabel"; "filterPlaceholder": "filterPlaceholder"; "
|
|
15
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableFilterComponent, "c-smart-table-filter", never, { "filterLabel": "filterLabel"; "filterPlaceholder": "filterPlaceholder"; "sizing": "sizing"; }, {}, never, never, false>;
|
|
21
16
|
}
|
|
@@ -32,9 +32,14 @@ export declare class SmartTableHeadComponent implements OnInit {
|
|
|
32
32
|
handleSortClick(column: IColumn | string, i: number): void;
|
|
33
33
|
columnFilterEnabled(column: IColumn | string): boolean;
|
|
34
34
|
columnSorterEnabled(column: IColumn | string): boolean;
|
|
35
|
-
handleColumnFilterValueChange($event:
|
|
35
|
+
handleColumnFilterValueChange($event: {
|
|
36
|
+
value: string;
|
|
37
|
+
type?: string;
|
|
38
|
+
column: (IColumn | string);
|
|
39
|
+
}): void;
|
|
36
40
|
handleSelectAllChecked($event: Event): void;
|
|
37
41
|
getColumnFilter(column: IColumn | string): string;
|
|
42
|
+
get columnFilterEvent(): 'change' | 'input';
|
|
38
43
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableHeadComponent, never>;
|
|
39
44
|
static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableHeadComponent, "c-smart-table-head", never, { "columnFilter": "columnFilter"; "columnFilterState": "columnFilterState"; "columnSorter": "columnSorter"; "component": "component"; "columns": "columns"; "selectable": "selectable"; "selectAll": "selectAll"; "sorterValue": "sorterValue"; "columnFilterTemplates": "columnFilterTemplates"; }, { "columnFilterStateChange": "columnFilterStateChange"; "sorterStateChange": "sorterStateChange"; "selectAllChange": "selectAllChange"; }, never, never, false>;
|
|
40
45
|
}
|
|
@@ -3,18 +3,20 @@ import * as i1 from "./smart-table/smart-table.component";
|
|
|
3
3
|
import * as i2 from "./smart-table-filter/smart-table-filter.component";
|
|
4
4
|
import * as i3 from "./smart-table-items-per-page-selector/smart-table-items-per-page-selector.component";
|
|
5
5
|
import * as i4 from "./smart-table-head/smart-table-head.component";
|
|
6
|
-
import * as i5 from "
|
|
7
|
-
import * as i6 from "
|
|
8
|
-
import * as i7 from "
|
|
9
|
-
import * as i8 from "../
|
|
10
|
-
import * as i9 from "../
|
|
11
|
-
import * as i10 from "../
|
|
12
|
-
import * as i11 from "
|
|
13
|
-
import * as i12 from "../
|
|
14
|
-
import * as i13 from "
|
|
15
|
-
import * as i14 from "../
|
|
6
|
+
import * as i5 from "./smart-table-filter/filter-input.directive";
|
|
7
|
+
import * as i6 from "./smart-table-column-filter/smart-table-column-filter.component";
|
|
8
|
+
import * as i7 from "@angular/common";
|
|
9
|
+
import * as i8 from "../element-cover/element-cover.module";
|
|
10
|
+
import * as i9 from "../table/table.module";
|
|
11
|
+
import * as i10 from "../pagination/pagination.module";
|
|
12
|
+
import * as i11 from "../smart-pagination/smart-pagination.module";
|
|
13
|
+
import * as i12 from "../form/form.module";
|
|
14
|
+
import * as i13 from "@angular/forms";
|
|
15
|
+
import * as i14 from "../button/button.module";
|
|
16
|
+
import * as i15 from "../shared/shared.module";
|
|
17
|
+
import * as i16 from "../utilities/utilities.module";
|
|
16
18
|
export declare class SmartTableModule {
|
|
17
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableModule, never>;
|
|
18
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartTableModule, [typeof i1.SmartTableComponent, typeof i2.SmartTableFilterComponent, typeof i3.SmartTableItemsPerPageSelectorComponent, typeof i4.SmartTableHeadComponent], [typeof
|
|
20
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<SmartTableModule, [typeof i1.SmartTableComponent, typeof i2.SmartTableFilterComponent, typeof i3.SmartTableItemsPerPageSelectorComponent, typeof i4.SmartTableHeadComponent, typeof i5.FilterInputDirective, typeof i6.SmartTableColumnFilterComponent], [typeof i7.CommonModule, typeof i8.ElementCoverModule, typeof i9.TableModule, typeof i10.PaginationModule, typeof i11.SmartPaginationModule, typeof i12.FormModule, typeof i13.FormsModule, typeof i14.ButtonModule, typeof i15.SharedModule, typeof i13.ReactiveFormsModule, typeof i16.UtilitiesModule], [typeof i1.SmartTableComponent, typeof i2.SmartTableFilterComponent]>;
|
|
19
21
|
static ɵinj: i0.ɵɵInjectorDeclaration<SmartTableModule>;
|
|
20
22
|
}
|