ng-inail-common 2.0.21 → 2.0.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/bundles/ng-inail-common.umd.js +244 -15
- package/bundles/ng-inail-common.umd.js.map +1 -1
- package/bundles/ng-inail-common.umd.min.js +2 -2
- package/bundles/ng-inail-common.umd.min.js.map +1 -1
- package/esm2015/lib/components/core/form/form-element.component.js +2 -1
- package/esm2015/lib/components/core/form/input-file/input-file.component.js +3 -1
- package/esm2015/lib/components/core/form/multi-select/multi-select.component.js +121 -0
- package/esm2015/lib/components/core/table/table/table.component.js +54 -8
- package/esm2015/lib/components/core/ux/feedback/feedback.component.js +5 -3
- package/esm2015/lib/components/core/ux/progress-bar/progress-bar.component.js +50 -0
- package/esm2015/lib/ng-inail-common.module.js +9 -3
- package/esm2015/public-api.js +3 -1
- package/fesm2015/ng-inail-common.js +231 -12
- package/fesm2015/ng-inail-common.js.map +1 -1
- package/lib/components/core/form/multi-select/multi-select.component.d.ts +40 -0
- package/lib/components/core/table/table/table.component.d.ts +13 -3
- package/lib/components/core/ux/feedback/feedback.component.d.ts +1 -0
- package/lib/components/core/ux/progress-bar/progress-bar.component.d.ts +12 -0
- package/ng-inail-common.metadata.json +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { FormElementComponent } from "../form-element.component";
|
|
3
|
+
import { SelectOption } from "../select/select.component";
|
|
4
|
+
import { CheckboxState } from "../checkbox/checkbox.component";
|
|
5
|
+
export interface MultiSelectOption extends SelectOption {
|
|
6
|
+
title?: string;
|
|
7
|
+
beforeDivider?: boolean;
|
|
8
|
+
afterDivider?: boolean;
|
|
9
|
+
}
|
|
10
|
+
export declare class MultiSelectComponent extends FormElementComponent implements OnInit, OnChanges, AfterViewInit, OnDestroy {
|
|
11
|
+
private cdr;
|
|
12
|
+
multiSelect: ElementRef<HTMLElement>;
|
|
13
|
+
formControlElement: ElementRef<HTMLElement>;
|
|
14
|
+
dropdownMenu: ElementRef<HTMLElement>;
|
|
15
|
+
options: MultiSelectOption[];
|
|
16
|
+
values: string[];
|
|
17
|
+
valuesChange: EventEmitter<string[]>;
|
|
18
|
+
placeholder: string;
|
|
19
|
+
sort: 'asc' | 'desc';
|
|
20
|
+
inputTextValue: string;
|
|
21
|
+
toggle: () => any;
|
|
22
|
+
isExpanded: () => boolean;
|
|
23
|
+
hasFormControlFocus: () => boolean;
|
|
24
|
+
hasDropdownMenuFocus: () => boolean;
|
|
25
|
+
isChecked: (value: string) => boolean;
|
|
26
|
+
getInputTextValue: () => string;
|
|
27
|
+
pushValue: (value: string) => string[];
|
|
28
|
+
isFocusOut: () => boolean;
|
|
29
|
+
constructor(cdr: ChangeDetectorRef);
|
|
30
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
31
|
+
ngOnInit(): void;
|
|
32
|
+
ngAfterViewInit(): void;
|
|
33
|
+
ngOnDestroy(): void;
|
|
34
|
+
onKeypress($event: KeyboardEvent): void;
|
|
35
|
+
onFocusIn(): void;
|
|
36
|
+
onFocusOut(): void;
|
|
37
|
+
showDropdownMenu(): void;
|
|
38
|
+
closeDropdownMenu(): void;
|
|
39
|
+
onCheck(cb: CheckboxState): void;
|
|
40
|
+
}
|
|
@@ -4,16 +4,20 @@ import { Observable, Subscription } from "rxjs";
|
|
|
4
4
|
import { InailTablePageSelectorComponent } from "../inail-table-page-selector/inail-table-page-selector.component";
|
|
5
5
|
import { SortingInfo, ThLabelComponent } from "../th-label/th-label.component";
|
|
6
6
|
import { TrCheckboxComponent } from "../tr-checkbox/tr-checkbox.component";
|
|
7
|
-
|
|
7
|
+
declare type SortDirection = 'asc' | 'desc';
|
|
8
|
+
export interface SortState {
|
|
9
|
+
sortProperty?: string;
|
|
10
|
+
sortDirection?: 'asc' | 'desc';
|
|
11
|
+
}
|
|
12
|
+
export interface PaginationState extends SortState {
|
|
8
13
|
fullListSize?: number;
|
|
9
14
|
pageNumber?: number;
|
|
10
15
|
pageSize?: number;
|
|
11
|
-
sortProperty?: string;
|
|
12
|
-
sortDirection?: 'asc' | 'desc';
|
|
13
16
|
}
|
|
14
17
|
interface TableChanges extends SimpleChanges {
|
|
15
18
|
dataSource?: SimpleChange;
|
|
16
19
|
paginationState?: SimpleChange;
|
|
20
|
+
initialSort?: SimpleChange;
|
|
17
21
|
doPagination?: SimpleChange;
|
|
18
22
|
noDataFound?: SimpleChange;
|
|
19
23
|
elementsPerPage?: SimpleChange;
|
|
@@ -29,6 +33,7 @@ export declare class TableComponent extends ResponsiveElementComponent implement
|
|
|
29
33
|
displayedDataChange: EventEmitter<any[]>;
|
|
30
34
|
doPagination: Observable<PaginationState>;
|
|
31
35
|
elementsPerPage: number;
|
|
36
|
+
initialSort: SortState;
|
|
32
37
|
paginationState: PaginationState;
|
|
33
38
|
elementsPerPageOptions: number[];
|
|
34
39
|
noDataFound: boolean;
|
|
@@ -145,5 +150,10 @@ export declare class TableComponent extends ResponsiveElementComponent implement
|
|
|
145
150
|
pageOnChange(page: number): void;
|
|
146
151
|
emitSubset(page: number): void;
|
|
147
152
|
visualizzaPaginazione(): boolean;
|
|
153
|
+
/**
|
|
154
|
+
* Attiva il th label inerente l'ordinamento specificato
|
|
155
|
+
*/
|
|
156
|
+
attivaThLabelOrdinamentoSpecificato(): void;
|
|
157
|
+
setSortDirection(thLabel: ThLabelComponent, direction: SortDirection): void;
|
|
148
158
|
}
|
|
149
159
|
export {};
|
|
@@ -19,6 +19,7 @@ export declare class FeedbackComponent extends BasicUxElementComponent implement
|
|
|
19
19
|
focus: Observable<boolean | void>;
|
|
20
20
|
autoCatchFocus: boolean;
|
|
21
21
|
scrollToFocus: boolean;
|
|
22
|
+
labelFeedback: boolean;
|
|
22
23
|
feedbackContent: ElementRef;
|
|
23
24
|
hasContent: () => boolean;
|
|
24
25
|
constructor(cdr: ChangeDetectorRef);
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
|
|
2
|
+
import { ResponsiveElementComponent } from "../../responsive-element.component";
|
|
3
|
+
export declare class ProgressBarComponent extends ResponsiveElementComponent implements OnInit, OnChanges, OnDestroy, AfterViewInit {
|
|
4
|
+
private cdr;
|
|
5
|
+
label: string;
|
|
6
|
+
valuenow: number;
|
|
7
|
+
constructor(cdr: ChangeDetectorRef);
|
|
8
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
9
|
+
ngOnInit(): void;
|
|
10
|
+
ngAfterViewInit(): void;
|
|
11
|
+
ngOnDestroy(): void;
|
|
12
|
+
}
|