@coreui/angular-pro 4.5.23 → 4.5.25
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/esm2022/lib/calendar/calendar.service.mjs +1 -2
- package/esm2022/lib/calendar/calendar.utils.mjs +6 -9
- package/esm2022/lib/date-picker/date-picker.component.mjs +6 -4
- package/esm2022/lib/date-range-picker/date-range-picker/custom-range-key.pipe.mjs +17 -0
- package/esm2022/lib/date-range-picker/date-range-picker/date-range-picker.component.mjs +24 -9
- package/esm2022/lib/smart-table/smart-table/smart-table.component.mjs +8 -3
- package/esm2022/lib/smart-table/smart-table-head/smart-table-column-label.pipe.mjs +26 -0
- package/esm2022/lib/smart-table/smart-table-head/smart-table-head.component.mjs +24 -21
- package/fesm2022/coreui-angular-pro.mjs +100 -43
- package/fesm2022/coreui-angular-pro.mjs.map +1 -1
- package/lib/calendar/calendar.utils.d.ts +1 -1
- package/lib/date-range-picker/date-range-picker/custom-range-key.pipe.d.ts +8 -0
- package/lib/date-range-picker/date-range-picker/date-range-picker.component.d.ts +1 -0
- package/lib/smart-table/smart-table/smart-table.component.d.ts +1 -0
- package/lib/smart-table/smart-table-head/smart-table-column-label.pipe.d.ts +9 -0
- package/lib/smart-table/smart-table-head/smart-table-head.component.d.ts +5 -6
- package/package.json +1 -1
|
@@ -21,6 +21,6 @@ export declare const isStartDate: (date: Date | null, start: Date | null, end: D
|
|
|
21
21
|
export declare const isToday: (date: Date) => boolean;
|
|
22
22
|
export declare const isThisMonth: (date: Date, index: number) => boolean;
|
|
23
23
|
export declare const isThisYear: (year: number) => boolean;
|
|
24
|
-
export declare const isValidDate: (date:
|
|
24
|
+
export declare const isValidDate: (date: number | string | Date) => boolean;
|
|
25
25
|
export declare const tryDate: (value: string | number | Date, propName?: string) => Date;
|
|
26
26
|
export declare const isDateInRangeDisabled: (startDate?: Date | null, endDate?: Date | null, dates?: (Date | Date[])[]) => boolean;
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { TCustomRange } from './date-range-picker.component';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class CustomRangeKeyPipe implements PipeTransform {
|
|
5
|
+
transform(customRange: TCustomRange, ...args: unknown[]): unknown;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomRangeKeyPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<CustomRangeKeyPipe, "customRangeKey", true>;
|
|
8
|
+
}
|
|
@@ -214,6 +214,7 @@ export declare class DateRangePickerComponent implements OnInit, OnDestroy, Cont
|
|
|
214
214
|
onBlur(): void;
|
|
215
215
|
isMobile: boolean;
|
|
216
216
|
customRanges: TCustomRange[];
|
|
217
|
+
showRanges: boolean;
|
|
217
218
|
set startDateValue(value: string);
|
|
218
219
|
get startDateValue(): string;
|
|
219
220
|
private _startDateValue;
|
|
@@ -95,6 +95,7 @@ export declare class SmartTableComponent implements ISmartTable, AfterContentIni
|
|
|
95
95
|
columnFilterTemplates: {
|
|
96
96
|
[key: string]: (TemplateRef<any> | null);
|
|
97
97
|
};
|
|
98
|
+
summaryRowTemplate: TemplateRef<unknown> | null;
|
|
98
99
|
ngAfterContentInit(): void;
|
|
99
100
|
get selectedAll(): boolean | "indeterminate";
|
|
100
101
|
get tableFilterState(): string;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { IColumn } from '../smart-table.type';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class SmartTableColumnLabelPipe implements PipeTransform {
|
|
5
|
+
transform(column: IColumn | string, ...args: unknown[]): unknown;
|
|
6
|
+
prettifyName(name: string): string;
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableColumnLabelPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<SmartTableColumnLabelPipe, "columnLabel", true>;
|
|
9
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
|
1
|
+
import { EventEmitter, OnInit, TemplateRef } from '@angular/core';
|
|
2
2
|
import { BehaviorSubject } from 'rxjs';
|
|
3
3
|
import { IColumn, IColumnFilter, IColumnFilterValue, ISorter, ISorterValue } from '../smart-table.type';
|
|
4
4
|
import { Colors } from '../../coreui.types';
|
|
@@ -19,8 +19,9 @@ export declare class SmartTableHeadComponent implements OnInit {
|
|
|
19
19
|
sorterValue?: ISorterValue;
|
|
20
20
|
set columnFilterTemplates(value: any);
|
|
21
21
|
get columnFilterTemplates(): any;
|
|
22
|
-
|
|
23
|
-
|
|
22
|
+
set summaryRowTemplate(value: TemplateRef<unknown> | null);
|
|
23
|
+
get summaryRowTemplate(): TemplateRef<unknown> | null;
|
|
24
|
+
readonly indeterminate$: BehaviorSubject<boolean>;
|
|
24
25
|
readonly columnFilterStateChange: EventEmitter<any>;
|
|
25
26
|
readonly sorterStateChange: EventEmitter<any>;
|
|
26
27
|
readonly selectAllChange: EventEmitter<boolean>;
|
|
@@ -34,10 +35,8 @@ export declare class SmartTableHeadComponent implements OnInit {
|
|
|
34
35
|
};
|
|
35
36
|
tableHeaderCellColor(column: IColumn | string): Colors;
|
|
36
37
|
tableHeaderCellStyles(column: IColumn | string): any;
|
|
37
|
-
columnLabel(column: IColumn | string): string;
|
|
38
38
|
columnKey(column: IColumn | string): string;
|
|
39
39
|
getColumnSorterState(column: IColumn | string): string | number;
|
|
40
|
-
prettifyName(name: string): string;
|
|
41
40
|
handleSortClick(column: IColumn | string, i: number): void;
|
|
42
41
|
columnFilterEnabled(column: IColumn | string): boolean | ((column: import("../smart-table.type").IItem, value: string) => boolean);
|
|
43
42
|
columnSorterEnabled(column: IColumn | string): boolean | ((a: import("../smart-table.type").IItem, b: import("../smart-table.type").IItem) => number);
|
|
@@ -50,5 +49,5 @@ export declare class SmartTableHeadComponent implements OnInit {
|
|
|
50
49
|
getColumnFilter(column: IColumn | string): string;
|
|
51
50
|
get columnFilterEvent(): 'change' | 'input';
|
|
52
51
|
static ɵfac: i0.ɵɵFactoryDeclaration<SmartTableHeadComponent, never>;
|
|
53
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableHeadComponent, "c-smart-table-head", never, { "columnFilter": { "alias": "columnFilter"; "required": false; }; "columnFilterState": { "alias": "columnFilterState"; "required": false; }; "columnSorter": { "alias": "columnSorter"; "required": false; }; "component": { "alias": "component"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selectAll": { "alias": "selectAll"; "required": false; }; "selectedAll": { "alias": "selectedAll"; "required": false; }; "sorterValue": { "alias": "sorterValue"; "required": false; }; "columnFilterTemplates": { "alias": "columnFilterTemplates"; "required": false; }; }, { "columnFilterStateChange": "columnFilterStateChange"; "sorterStateChange": "sorterStateChange"; "selectAllChange": "selectAllChange"; }, never, never, true, never>;
|
|
52
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SmartTableHeadComponent, "c-smart-table-head", never, { "columnFilter": { "alias": "columnFilter"; "required": false; }; "columnFilterState": { "alias": "columnFilterState"; "required": false; }; "columnSorter": { "alias": "columnSorter"; "required": false; }; "component": { "alias": "component"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selectAll": { "alias": "selectAll"; "required": false; }; "selectedAll": { "alias": "selectedAll"; "required": false; }; "sorterValue": { "alias": "sorterValue"; "required": false; }; "columnFilterTemplates": { "alias": "columnFilterTemplates"; "required": false; }; "summaryRowTemplate": { "alias": "summaryRowTemplate"; "required": false; }; }, { "columnFilterStateChange": "columnFilterStateChange"; "sorterStateChange": "sorterStateChange"; "selectAllChange": "selectAllChange"; }, never, never, true, never>;
|
|
54
53
|
}
|
package/package.json
CHANGED