chrv-components 1.10.78 → 1.11.1
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/chrv-components-1.11.1.tgz +0 -0
- package/fesm2022/chrv-components.mjs +1196 -1028
- package/fesm2022/chrv-components.mjs.map +1 -1
- package/index.d.ts +1417 -3
- package/package.json +10 -11
- package/src/lib/styles/_colors-classes.css +111 -0
- package/src/lib/styles/_colors-selectors.css +79 -0
- package/src/lib/styles/colors.css +2 -0
- package/src/lib/styles/corners.css +251 -0
- package/src/lib/styles/h.css +17 -0
- package/src/lib/styles/hollow-font.css +35 -0
- package/src/lib/styles/links.css +41 -0
- package/src/lib/styles/trapeze.css +57 -0
- package/chrv-components-1.10.78.tgz +0 -0
- package/lib/animations/in-out.animation.d.ts +0 -1
- package/lib/animations/rotation.animation.d.ts +0 -1
- package/lib/chr-breadcrumb/chr-breadcrumb.component.d.ts +0 -15
- package/lib/chr-button/chr-button.component.d.ts +0 -27
- package/lib/chr-checkbox/chr-checkbox.component.d.ts +0 -13
- package/lib/chr-default-modal/chr-default-modal.component.d.ts +0 -36
- package/lib/chr-delete-modal/chr-delete-modal.component.d.ts +0 -12
- package/lib/chr-form/chr-base-input/chr-base-input.component.d.ts +0 -177
- package/lib/chr-form/chr-color-input/chr-color-input.component.d.ts +0 -10
- package/lib/chr-form/chr-date-input/chr-date-input.component.d.ts +0 -16
- package/lib/chr-form/chr-datetime-input/chr-datetime-input.component.d.ts +0 -16
- package/lib/chr-form/chr-file-input/chr-file-input.component.d.ts +0 -43
- package/lib/chr-form/chr-form.component.d.ts +0 -137
- package/lib/chr-form/chr-nice-file-input/chr-nice-file-input.component.d.ts +0 -8
- package/lib/chr-form/chr-textarea-input/chr-textarea-input.component.d.ts +0 -15
- package/lib/chr-form/chr-toggle-input/chr-toggle-input.component.d.ts +0 -10
- package/lib/chr-paginator/chr-paginator.component.d.ts +0 -42
- package/lib/chr-search-select/chr-search-select.component.d.ts +0 -71
- package/lib/chr-searchbar/chr-searchbar.component.d.ts +0 -14
- package/lib/chr-separator/chr-separator.component.d.ts +0 -5
- package/lib/chr-spinner/chr-spinner.component.d.ts +0 -16
- package/lib/chr-table/chr-table.component.d.ts +0 -94
- package/lib/chr-table-header-cell/chr-table-header-cell.component.d.ts +0 -19
- package/lib/chr-table-new/chr-table-new.component.d.ts +0 -147
- package/lib/chr-tag-select/chr-tag-select.component.d.ts +0 -66
- package/lib/chr-toast/chr-toast.component.d.ts +0 -9
- package/lib/config/interceptors/SpinnerInterceptor.d.ts +0 -2
- package/lib/config/interceptors/XsrfInterceptor.d.ts +0 -5
- package/lib/config/ngx-mask.config.d.ts +0 -49
- package/lib/config/providers/xsrf-provider.d.ts +0 -13
- package/lib/directives/autofocus.directive.d.ts +0 -10
- package/lib/directives/tab-input-only-handler.directive.d.ts +0 -9
- package/lib/directives/tab-to-enter-handler.directive.d.ts +0 -9
- package/lib/models/chr-validators/base-validator.d.ts +0 -12
- package/lib/models/chr-validators/decimal-validator.d.ts +0 -10
- package/lib/models/chr-validators/max-date-validator.d.ts +0 -10
- package/lib/models/chr-validators/max-file-size-validator.d.ts +0 -10
- package/lib/models/chr-validators/maxlength-validator.d.ts +0 -10
- package/lib/models/chr-validators/min-file-size-validator.d.ts +0 -10
- package/lib/models/chr-validators/minlength-validator.d.ts +0 -10
- package/lib/models/chr-validators/required-validator.d.ts +0 -10
- package/lib/models/chr-validators/type-validator.d.ts +0 -10
- package/lib/models/colors.d.ts +0 -10
- package/lib/models/controls.d.ts +0 -38
- package/lib/models/file.d.ts +0 -7
- package/lib/models/live-update-message.d.ts +0 -12
- package/lib/services/cookie.service.d.ts +0 -25
- package/lib/services/data.service.d.ts +0 -18
- package/lib/services/dialog.service.d.ts +0 -12
- package/lib/services/files.service.d.ts +0 -15
- package/lib/services/live-update.service.d.ts +0 -22
- package/lib/services/loader.service.d.ts +0 -16
- package/lib/services/toast.service.d.ts +0 -23
- package/public-api.d.ts +0 -49
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
import { AfterViewInit, EventEmitter, ChangeDetectorRef, OnInit } from '@angular/core';
|
|
2
|
-
import { DatePipe } from '@angular/common';
|
|
3
|
-
import { DataService } from '../services/data.service';
|
|
4
|
-
import { Color } from '../models/colors';
|
|
5
|
-
import * as i0 from "@angular/core";
|
|
6
|
-
export type Alignment = 'left' | 'center' | 'right';
|
|
7
|
-
export declare const Aligments: {
|
|
8
|
-
[key: string]: string;
|
|
9
|
-
};
|
|
10
|
-
export interface IChips {
|
|
11
|
-
display: string;
|
|
12
|
-
name: string;
|
|
13
|
-
callback: (entry: any) => string | boolean;
|
|
14
|
-
textColor?: Color;
|
|
15
|
-
backgroundColor?: Color;
|
|
16
|
-
}
|
|
17
|
-
export interface IColumn {
|
|
18
|
-
display: string;
|
|
19
|
-
alignment?: 'left' | 'center' | 'right';
|
|
20
|
-
chips?: IChips[];
|
|
21
|
-
properties?: string[];
|
|
22
|
-
callback?: Function;
|
|
23
|
-
date?: string;
|
|
24
|
-
isLink?: boolean;
|
|
25
|
-
linkStaticUrl?: string;
|
|
26
|
-
}
|
|
27
|
-
export interface IComputedRow {
|
|
28
|
-
columns: IComputedColumn[];
|
|
29
|
-
}
|
|
30
|
-
export interface IComputedColumn {
|
|
31
|
-
label?: string;
|
|
32
|
-
value?: any;
|
|
33
|
-
callback?: Function;
|
|
34
|
-
alignment?: 'left' | 'center' | 'right';
|
|
35
|
-
after?: string;
|
|
36
|
-
}
|
|
37
|
-
export interface IAction {
|
|
38
|
-
display?: string;
|
|
39
|
-
icon?: string;
|
|
40
|
-
callback: Function;
|
|
41
|
-
disabled?: boolean;
|
|
42
|
-
disabledCallback?: Function;
|
|
43
|
-
color: Color;
|
|
44
|
-
}
|
|
45
|
-
export declare class ChrTableComponent implements OnInit, AfterViewInit {
|
|
46
|
-
private _date;
|
|
47
|
-
private dataService;
|
|
48
|
-
private changeDetector;
|
|
49
|
-
computedRows?: IComputedRow[];
|
|
50
|
-
columns?: IColumn[];
|
|
51
|
-
private _data;
|
|
52
|
-
get data(): any[] | null;
|
|
53
|
-
set data(value: any[] | null);
|
|
54
|
-
actions?: IAction[];
|
|
55
|
-
isAsc: boolean;
|
|
56
|
-
isAscChange: EventEmitter<boolean>;
|
|
57
|
-
sortBy?: string[];
|
|
58
|
-
sortByChange: EventEmitter<string[]>;
|
|
59
|
-
pageSize: number;
|
|
60
|
-
pageSizeChange: EventEmitter<number>;
|
|
61
|
-
currentPage: number;
|
|
62
|
-
currentPageChange: EventEmitter<number>;
|
|
63
|
-
selectable: boolean;
|
|
64
|
-
selection: any[];
|
|
65
|
-
selectionChange: EventEmitter<any[]>;
|
|
66
|
-
id?: string;
|
|
67
|
-
color: Color;
|
|
68
|
-
textColor: Color;
|
|
69
|
-
private _page;
|
|
70
|
-
currentProperty: any | null;
|
|
71
|
-
currentText: string | null;
|
|
72
|
-
constructor(_date: DatePipe, dataService: DataService, changeDetector: ChangeDetectorRef);
|
|
73
|
-
ngOnInit(): void;
|
|
74
|
-
ngAfterViewInit(): void;
|
|
75
|
-
protected emitIsAsc(isAsc: any): void;
|
|
76
|
-
protected emitSortBy(sortBy: any): void;
|
|
77
|
-
protected emitPageSize(pageSize: any): void;
|
|
78
|
-
protected emitCurrentPage(currentPage: any): void;
|
|
79
|
-
protected getProperty: (entry: any, properties?: any[]) => any;
|
|
80
|
-
protected getText: (property: any, column: IColumn) => any;
|
|
81
|
-
protected select: (entry: any, event: MouseEvent) => void;
|
|
82
|
-
getSelection: () => any[];
|
|
83
|
-
setSelection: (data: any[]) => void;
|
|
84
|
-
protected contains: (entry: any) => boolean;
|
|
85
|
-
protected getIsAsc: () => boolean;
|
|
86
|
-
protected getSortBy: () => string[] | undefined;
|
|
87
|
-
protected getTextColor: (color?: Color) => string;
|
|
88
|
-
protected getBackgroundColor: (color?: Color) => string;
|
|
89
|
-
protected getContrastTextColor: (color?: Color) => string;
|
|
90
|
-
protected getBorderColor: (color?: Color) => string;
|
|
91
|
-
protected getAlignment: (alignment?: Alignment) => string;
|
|
92
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChrTableComponent, never>;
|
|
93
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChrTableComponent, "app-chr-table, [app-chr-table]", never, { "computedRows": { "alias": "computedRows"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; "data": { "alias": "data"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "isAsc": { "alias": "isAsc"; "required": false; }; "sortBy": { "alias": "sortBy"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "id": { "alias": "id"; "required": false; }; "color": { "alias": "color"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; }, { "isAscChange": "isAscChange"; "sortByChange": "sortByChange"; "pageSizeChange": "pageSizeChange"; "currentPageChange": "currentPageChange"; "selectionChange": "selectionChange"; }, never, ["*"], true, never>;
|
|
94
|
-
}
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { EventEmitter, ChangeDetectorRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* This should only be used as a directive
|
|
5
|
-
*/
|
|
6
|
-
export declare class ChrTableHeaderCellComponent {
|
|
7
|
-
private changeDetector;
|
|
8
|
-
display?: string;
|
|
9
|
-
column?: string[];
|
|
10
|
-
alignment?: string;
|
|
11
|
-
isAsc: boolean;
|
|
12
|
-
isAscChange: EventEmitter<boolean>;
|
|
13
|
-
sortBy?: string[];
|
|
14
|
-
sortByChange: EventEmitter<string[]>;
|
|
15
|
-
constructor(changeDetector: ChangeDetectorRef);
|
|
16
|
-
orderBy: (column?: string[]) => void;
|
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChrTableHeaderCellComponent, never>;
|
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChrTableHeaderCellComponent, "app-chr-table-header-cell, [app-chr-table-header-cell]", never, { "display": { "alias": "display"; "required": false; }; "column": { "alias": "column"; "required": false; }; "alignment": { "alias": "alignment"; "required": false; }; "isAsc": { "alias": "isAsc"; "required": false; }; "sortBy": { "alias": "sortBy"; "required": false; }; }, { "isAscChange": "isAscChange"; "sortByChange": "sortByChange"; }, never, ["*"], true, never>;
|
|
19
|
-
}
|
|
@@ -1,147 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { IAction } from '../chr-table/chr-table.component';
|
|
3
|
-
import { DataService } from '../services/data.service';
|
|
4
|
-
import { Color } from '../models/colors';
|
|
5
|
-
import { IControlValidation } from '../models/chr-validators/base-validator';
|
|
6
|
-
import * as i0 from "@angular/core";
|
|
7
|
-
export type TColumn = {
|
|
8
|
-
/**
|
|
9
|
-
* Nom de la colonne
|
|
10
|
-
*/
|
|
11
|
-
display: string;
|
|
12
|
-
/**
|
|
13
|
-
* Sélecteur qui représente la propriété ciblée. Ex: 'obj.id'.
|
|
14
|
-
*/
|
|
15
|
-
properties?: string;
|
|
16
|
-
/**
|
|
17
|
-
* Méthode callback qui sera appelée avec la valeur de la propriété cible.
|
|
18
|
-
* Elle est utilisée pour apporter un traitement personnalisé à la valeur.
|
|
19
|
-
* @param value valeur de la propriété cible
|
|
20
|
-
* @returns
|
|
21
|
-
*/
|
|
22
|
-
callback?: (value: any | null | undefined) => string;
|
|
23
|
-
/**
|
|
24
|
-
* Type de la colonne: lien, chips, input, date, default
|
|
25
|
-
*/
|
|
26
|
-
type?: TColumnType;
|
|
27
|
-
/**
|
|
28
|
-
* Format de la date pour les colonnes de type date
|
|
29
|
-
*/
|
|
30
|
-
format?: string;
|
|
31
|
-
/**
|
|
32
|
-
* Url de base pour les colonnes de type lien
|
|
33
|
-
*/
|
|
34
|
-
url?: string;
|
|
35
|
-
/**
|
|
36
|
-
* Type d'input pour les colonnes de type input
|
|
37
|
-
*/
|
|
38
|
-
inputType?: 'text' | 'number' | 'password' | 'date' | 'datetime' | 'file' | 'color' | 'toggle';
|
|
39
|
-
/**
|
|
40
|
-
* Règles de validations pour les colonnes de type input
|
|
41
|
-
*/
|
|
42
|
-
validations?: IControlValidation[];
|
|
43
|
-
/**
|
|
44
|
-
* Chips disponibles pour les colonnes de type chips
|
|
45
|
-
*/
|
|
46
|
-
chips?: {
|
|
47
|
-
[key: string]: IChip;
|
|
48
|
-
};
|
|
49
|
-
/**
|
|
50
|
-
* Méthode callback qui sera avec la valeur de la propriété cible.
|
|
51
|
-
* Elle est utilisée comme clef pour sélectionner quel chips afficher
|
|
52
|
-
* @param entry
|
|
53
|
-
* @returns
|
|
54
|
-
*/
|
|
55
|
-
chipsCallback?: (entry: any) => string;
|
|
56
|
-
};
|
|
57
|
-
export interface IChip {
|
|
58
|
-
/**
|
|
59
|
-
* Le text qui sera affiché dans le chips
|
|
60
|
-
*/
|
|
61
|
-
display: string;
|
|
62
|
-
/**
|
|
63
|
-
* La couleur du background du chips
|
|
64
|
-
*/
|
|
65
|
-
color: Color;
|
|
66
|
-
}
|
|
67
|
-
export type TColumnType = 'link' | 'chips' | 'input' | 'date' | 'default';
|
|
68
|
-
export declare class ChrDataTable {
|
|
69
|
-
private dataService;
|
|
70
|
-
private changeDetector;
|
|
71
|
-
private _data;
|
|
72
|
-
/**
|
|
73
|
-
* Data to display.
|
|
74
|
-
* @see If it's piped with | Async, please note that the input column may not work as expected
|
|
75
|
-
*/
|
|
76
|
-
get data(): any[] | null;
|
|
77
|
-
set data(value: any[] | null);
|
|
78
|
-
/**
|
|
79
|
-
* Whether or not the table will show a column with a checkbox to select entries. Default is false
|
|
80
|
-
*/
|
|
81
|
-
selectable: boolean;
|
|
82
|
-
/**
|
|
83
|
-
* The selected entries
|
|
84
|
-
*/
|
|
85
|
-
selection: any[];
|
|
86
|
-
/**
|
|
87
|
-
* The selected entries change event. This will be triggered on each selection and contain the full array of selected entries
|
|
88
|
-
*/
|
|
89
|
-
selectionChange: EventEmitter<any[]>;
|
|
90
|
-
/**
|
|
91
|
-
* The table's action column definition
|
|
92
|
-
*/
|
|
93
|
-
actions?: IAction[];
|
|
94
|
-
/**
|
|
95
|
-
* Wheter or not the current sort is ascendant. Default is true
|
|
96
|
-
*/
|
|
97
|
-
isAsc: boolean;
|
|
98
|
-
isAscChange: EventEmitter<boolean>;
|
|
99
|
-
/**
|
|
100
|
-
* The property by which the data will be sorted
|
|
101
|
-
*/
|
|
102
|
-
sortBy?: string;
|
|
103
|
-
sortByChange: EventEmitter<string>;
|
|
104
|
-
/**
|
|
105
|
-
* The page size for the table. Default is 20
|
|
106
|
-
*/
|
|
107
|
-
pageSize: number;
|
|
108
|
-
pageSizeChange: EventEmitter<number>;
|
|
109
|
-
/**
|
|
110
|
-
* The current page of the table. Default is 1
|
|
111
|
-
*/
|
|
112
|
-
currentPage: number;
|
|
113
|
-
currentPageChange: EventEmitter<number>;
|
|
114
|
-
/**
|
|
115
|
-
* The ID of the table. It's used to persist page size and currentpage when the user change pages
|
|
116
|
-
*/
|
|
117
|
-
id?: string;
|
|
118
|
-
/**
|
|
119
|
-
* The color to use for the table's header
|
|
120
|
-
*/
|
|
121
|
-
color?: Color;
|
|
122
|
-
/**
|
|
123
|
-
* The table's columns definitions
|
|
124
|
-
*/
|
|
125
|
-
columns: TColumn[];
|
|
126
|
-
constructor(dataService: DataService, changeDetector: ChangeDetectorRef);
|
|
127
|
-
ngOnInit(): void;
|
|
128
|
-
protected emitIsAsc(isAsc: any): void;
|
|
129
|
-
protected emitSortBy(sortBy: any): void;
|
|
130
|
-
protected emitPageSize(pageSize: any): void;
|
|
131
|
-
protected emitCurrentPage(currentPage: any): void;
|
|
132
|
-
protected getNestedProperty(obj: any, path?: string): any;
|
|
133
|
-
protected select: (entry: any | any[], event: MouseEvent) => void;
|
|
134
|
-
getSelection: () => any[];
|
|
135
|
-
setSelection: (data: any[]) => void;
|
|
136
|
-
protected contains: (entry: any) => boolean;
|
|
137
|
-
updateModel: (entry: any, properties: string, value: {
|
|
138
|
-
key: any;
|
|
139
|
-
}) => void;
|
|
140
|
-
protected getTextColor: (color?: Color) => string;
|
|
141
|
-
protected getBackgroundColor: (color?: Color) => string;
|
|
142
|
-
protected getContrastTextColor: (color?: Color) => string;
|
|
143
|
-
protected getBorderColor: (color?: Color) => string;
|
|
144
|
-
protected sort: (properties?: string) => void;
|
|
145
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChrDataTable, never>;
|
|
146
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChrDataTable, "chr-table", never, { "data": { "alias": "data"; "required": false; }; "selectable": { "alias": "selectable"; "required": false; }; "selection": { "alias": "selection"; "required": false; }; "actions": { "alias": "actions"; "required": false; }; "isAsc": { "alias": "isAsc"; "required": false; }; "sortBy": { "alias": "sortBy"; "required": false; }; "pageSize": { "alias": "pageSize"; "required": false; }; "currentPage": { "alias": "currentPage"; "required": false; }; "id": { "alias": "id"; "required": false; }; "color": { "alias": "color"; "required": false; }; "columns": { "alias": "columns"; "required": false; }; }, { "selectionChange": "selectionChange"; "isAscChange": "isAscChange"; "sortByChange": "sortByChange"; "pageSizeChange": "pageSizeChange"; "currentPageChange": "currentPageChange"; }, never, never, true, never>;
|
|
147
|
-
}
|
|
@@ -1,66 +0,0 @@
|
|
|
1
|
-
import { OnInit, OnDestroy } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor, NgControl } from '@angular/forms';
|
|
3
|
-
import { MatAutocomplete } from '@angular/material/autocomplete';
|
|
4
|
-
import { Observable, Subject } from 'rxjs';
|
|
5
|
-
import { ChrBaseInputComponent } from '../chr-form/chr-base-input/chr-base-input.component';
|
|
6
|
-
import { IInputSearchFilter } from '../chr-search-select/chr-search-select.component';
|
|
7
|
-
import * as i0 from "@angular/core";
|
|
8
|
-
export declare class ChrTagSelectComponent extends ChrBaseInputComponent implements ControlValueAccessor, OnInit, OnDestroy {
|
|
9
|
-
predicate: boolean;
|
|
10
|
-
autocomplete: MatAutocomplete;
|
|
11
|
-
protected overrideShowResults: boolean;
|
|
12
|
-
filteredModelOptions?: Observable<any>;
|
|
13
|
-
protected textInputValue: string;
|
|
14
|
-
private values;
|
|
15
|
-
placeholder?: string;
|
|
16
|
-
data: any[] | null;
|
|
17
|
-
display?: (entry: any) => string;
|
|
18
|
-
filters?: IInputSearchFilter[];
|
|
19
|
-
/**
|
|
20
|
-
* Callback that will be called on click of a chips. The entry will be passed as parameter.
|
|
21
|
-
* If this callback returns null, the entry will be removed.
|
|
22
|
-
* If this callback returns a different value (by reference (ex: different object)) the entry will be replaced by the new value.
|
|
23
|
-
*/
|
|
24
|
-
editCallback?: ((entry: any, subject: Subject<any>) => any | null | void) | null;
|
|
25
|
-
private editSubject;
|
|
26
|
-
/**
|
|
27
|
-
* Callback that will be called BEFORE the value is added with the selected value passed as parameter.
|
|
28
|
-
* If this callback returns null, the entry will NOT be added.
|
|
29
|
-
* This lets you update the value before it's added.
|
|
30
|
-
*/
|
|
31
|
-
addCallback?: ((entry: any, subject: Subject<any>) => any | null | void) | null;
|
|
32
|
-
private addSubject;
|
|
33
|
-
/**
|
|
34
|
-
* Callback that will be called during the removal of the value. This will be called with the deleted value passed as parameter.
|
|
35
|
-
*/
|
|
36
|
-
removeCallback: ((entry: any) => any | null | void) | null;
|
|
37
|
-
/**
|
|
38
|
-
* Indicate if the input accepts raw text or if the requires the selection to be made from the search list.
|
|
39
|
-
* This defaults to false.
|
|
40
|
-
* If there are neither data nor display function, this defaults to true.
|
|
41
|
-
*/
|
|
42
|
-
acceptText: boolean | null;
|
|
43
|
-
constructor(ngControl: NgControl);
|
|
44
|
-
protected filterIndex: number;
|
|
45
|
-
ngOnInit(): void;
|
|
46
|
-
writeValue(obj: any): void;
|
|
47
|
-
protected reset: () => void;
|
|
48
|
-
protected inputChange: (input: string) => void;
|
|
49
|
-
protected getModelDisplay: (model: any) => any;
|
|
50
|
-
protected addFromText: (event: any) => void;
|
|
51
|
-
protected add: (event: any) => void;
|
|
52
|
-
protected edit: (entry: any) => void;
|
|
53
|
-
protected remove(value: any): void;
|
|
54
|
-
protected registerFilters: () => void;
|
|
55
|
-
protected increment: (input: any) => void;
|
|
56
|
-
protected void: () => void;
|
|
57
|
-
protected enableShowPanel: (input: any) => void;
|
|
58
|
-
protected disableShowPanel: () => void;
|
|
59
|
-
protected getTooltip: () => "" | "Appuyez sur 'Enter' pour ajouter la valeur du champs à la liste" | "Entrez un espace pour voir les choix disponibles";
|
|
60
|
-
private _filterModel;
|
|
61
|
-
private _doFilterModelInt;
|
|
62
|
-
private _doFilterModelString;
|
|
63
|
-
private _filterValues;
|
|
64
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChrTagSelectComponent, [{ optional: true; }]>;
|
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChrTagSelectComponent, "app-chr-tag-select, [app-chr-tag-select]", never, { "placeholder": { "alias": "placeholder"; "required": false; }; "data": { "alias": "data"; "required": false; }; "display": { "alias": "display"; "required": false; }; "filters": { "alias": "filters"; "required": false; }; "editCallback": { "alias": "editCallback"; "required": false; }; "addCallback": { "alias": "addCallback"; "required": false; }; "removeCallback": { "alias": "removeCallback"; "required": false; }; "acceptText": { "alias": "acceptText"; "required": false; }; }, {}, never, ["*"], true, never>;
|
|
66
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ToastService } from '../services/toast.service';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class ChrToastComponent {
|
|
4
|
-
toastService: ToastService;
|
|
5
|
-
topmargin: string;
|
|
6
|
-
constructor(toastService: ToastService);
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ChrToastComponent, never>;
|
|
8
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ChrToastComponent, "app-chr-toast", never, { "topmargin": { "alias": "topmargin"; "required": false; }; }, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
import { HttpEvent, HttpInterceptorFn } from "@angular/common/http";
|
|
2
|
-
import { Observable } from "rxjs";
|
|
3
|
-
import { DataService } from "../../services/data.service";
|
|
4
|
-
export declare const XsrfInterceptor: HttpInterceptorFn;
|
|
5
|
-
export declare const WaitAndStoreXsrfToken: (headername: string, dataService: DataService) => (source: Observable<HttpEvent<any>>) => Observable<HttpEvent<any>>;
|
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export interface IMaskConfig {
|
|
2
|
-
mask: string | null;
|
|
3
|
-
showMaskTyped: boolean | null;
|
|
4
|
-
dropSpecialCharacters: boolean | string[] | readonly string[] | null;
|
|
5
|
-
placeHolderCharacter: string | null;
|
|
6
|
-
clearIfNotMatch: boolean | null;
|
|
7
|
-
validation: boolean | null;
|
|
8
|
-
specialCharacters: string[] | readonly string[];
|
|
9
|
-
patterns: {
|
|
10
|
-
[key: string]: {
|
|
11
|
-
pattern: RegExp;
|
|
12
|
-
optional?: boolean;
|
|
13
|
-
};
|
|
14
|
-
};
|
|
15
|
-
prefix: string;
|
|
16
|
-
suffix: string;
|
|
17
|
-
thousandSeparator: string;
|
|
18
|
-
decimalMarker: '.' | ',' | ['.', ','];
|
|
19
|
-
decimalLimit: number | null;
|
|
20
|
-
separatorLimit: string | null;
|
|
21
|
-
hiddenInput: boolean | null;
|
|
22
|
-
leadZeroDateTime: boolean | null;
|
|
23
|
-
allowNegativeNumbers: boolean | null;
|
|
24
|
-
}
|
|
25
|
-
export declare class MaskConfig implements IMaskConfig {
|
|
26
|
-
mask: string | null;
|
|
27
|
-
showMaskTyped: boolean | null;
|
|
28
|
-
dropSpecialCharacters: boolean | string[] | readonly string[] | null;
|
|
29
|
-
placeHolderCharacter: string | null;
|
|
30
|
-
clearIfNotMatch: boolean | null;
|
|
31
|
-
validation: boolean | null;
|
|
32
|
-
specialCharacters: string[] | readonly string[];
|
|
33
|
-
patterns: {
|
|
34
|
-
[key: string]: {
|
|
35
|
-
pattern: RegExp;
|
|
36
|
-
optional?: boolean;
|
|
37
|
-
};
|
|
38
|
-
};
|
|
39
|
-
prefix: string;
|
|
40
|
-
suffix: string;
|
|
41
|
-
thousandSeparator: string;
|
|
42
|
-
decimalMarker: '.' | ',' | ['.', ','];
|
|
43
|
-
decimalLimit: number | null;
|
|
44
|
-
separatorLimit: string | null;
|
|
45
|
-
hiddenInput: boolean | null;
|
|
46
|
-
leadZeroDateTime: boolean | null;
|
|
47
|
-
allowNegativeNumbers: boolean | null;
|
|
48
|
-
constructor(config?: IMaskConfig | null);
|
|
49
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
import { HttpFeature, HttpInterceptorFn } from "@angular/common/http";
|
|
2
|
-
import { InjectionToken } from "@angular/core";
|
|
3
|
-
export interface IXsrfProviderParams {
|
|
4
|
-
xsrfHeader: string;
|
|
5
|
-
xsrfCookie?: string;
|
|
6
|
-
hubUrl?: string;
|
|
7
|
-
interceptors?: HttpInterceptorFn[];
|
|
8
|
-
features?: HttpFeature<any>[];
|
|
9
|
-
}
|
|
10
|
-
export declare const provideXsrfHttpClient: (params: IXsrfProviderParams) => any[];
|
|
11
|
-
export declare const XSRFHEADERNAME: InjectionToken<string>;
|
|
12
|
-
export declare const XSRFCOOKIENAME: InjectionToken<string>;
|
|
13
|
-
export declare const HUBURL: InjectionToken<string>;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class AutofocusDirective {
|
|
4
|
-
private host;
|
|
5
|
-
chrAutofocus?: boolean | '' | null;
|
|
6
|
-
constructor(host: ElementRef);
|
|
7
|
-
ngAfterViewInit(): void;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<AutofocusDirective, never>;
|
|
9
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AutofocusDirective, "[chrAutofocus]", never, { "chrAutofocus": { "alias": "chrAutofocus"; "required": false; }; }, {}, never, never, true, never>;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TabToInputHandlerDirective {
|
|
4
|
-
private el;
|
|
5
|
-
constructor(el: ElementRef);
|
|
6
|
-
handleTab(event: KeyboardEvent): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TabToInputHandlerDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TabToInputHandlerDirective, "[tab-input-only]", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TabToEnterHandlerDirective {
|
|
4
|
-
private el;
|
|
5
|
-
constructor(el: ElementRef);
|
|
6
|
-
handleTab(event: KeyboardEvent): void;
|
|
7
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TabToEnterHandlerDirective, never>;
|
|
8
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TabToEnterHandlerDirective, "[tab-enter]", never, {}, {}, never, never, true, never>;
|
|
9
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, AsyncValidatorFn, ValidationErrors, ValidatorFn } from '@angular/forms';
|
|
2
|
-
export interface IControlValidation {
|
|
3
|
-
rule: string;
|
|
4
|
-
validator?: (control: AbstractControl) => ValidationErrors | null;
|
|
5
|
-
key?: string;
|
|
6
|
-
value?: any;
|
|
7
|
-
display?: string;
|
|
8
|
-
}
|
|
9
|
-
export declare function SyncValidatorToAsync(validator: ValidatorFn): AsyncValidatorFn;
|
|
10
|
-
export declare function getValidators(rules?: IControlValidation[]): ValidatorFn[];
|
|
11
|
-
export declare function getAsyncValidators(rules?: IControlValidation[]): AsyncValidatorFn[];
|
|
12
|
-
export declare function getSyncValidators(rules?: IControlValidation[]): ValidatorFn[];
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DecimalValidatorDirective implements Validator {
|
|
4
|
-
amount?: number;
|
|
5
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DecimalValidatorDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<DecimalValidatorDirective, "[app-decimal]", never, { "amount": { "alias": "amount"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DecimalValidatorDirective>;
|
|
9
|
-
}
|
|
10
|
-
export declare function decimal(amount: number): ValidatorFn;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MaxDateValidatorDirective implements Validator {
|
|
4
|
-
date?: Date;
|
|
5
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MaxDateValidatorDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxDateValidatorDirective, "[app-max-date]", never, { "date": { "alias": "date"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MaxDateValidatorDirective>;
|
|
9
|
-
}
|
|
10
|
-
export declare function maxDate(date: Date): ValidatorFn;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MaxFileSizeValidator implements Validator {
|
|
4
|
-
max: number;
|
|
5
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MaxFileSizeValidator, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxFileSizeValidator, "[app-max-file-size]", never, { "max": { "alias": "max"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MaxFileSizeValidator>;
|
|
9
|
-
}
|
|
10
|
-
export declare function maxFileSize(maxSize: number): ValidatorFn;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MaxLengthValidatorDirective implements Validator {
|
|
4
|
-
treshold?: number;
|
|
5
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MaxLengthValidatorDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MaxLengthValidatorDirective, "[app-maxlength]", never, { "treshold": { "alias": "treshold"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MaxLengthValidatorDirective>;
|
|
9
|
-
}
|
|
10
|
-
export declare function maxLength(treshold: number): ValidatorFn;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MinFileSizeValidator implements Validator {
|
|
4
|
-
min: number;
|
|
5
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MinFileSizeValidator, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MinFileSizeValidator, "[app-min-file-size]", never, { "min": { "alias": "min"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MinFileSizeValidator>;
|
|
9
|
-
}
|
|
10
|
-
export declare function minFileSize(minSize: number): ValidatorFn;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class MinLengthValidatorDirective implements Validator {
|
|
4
|
-
treshold?: number;
|
|
5
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<MinLengthValidatorDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<MinLengthValidatorDirective, "[app-minlength]", never, { "treshold": { "alias": "treshold"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<MinLengthValidatorDirective>;
|
|
9
|
-
}
|
|
10
|
-
export declare function minLength(treshold: number): ValidatorFn;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class RequiredValidatorDirective implements Validator {
|
|
4
|
-
required?: boolean;
|
|
5
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<RequiredValidatorDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<RequiredValidatorDirective, "[app-required]", never, { "required": { "alias": "required"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<RequiredValidatorDirective>;
|
|
9
|
-
}
|
|
10
|
-
export declare function required(required?: boolean): ValidatorFn;
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, ValidationErrors, Validator, ValidatorFn } from '@angular/forms';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class TypeValidatorDirective implements Validator {
|
|
4
|
-
type?: string;
|
|
5
|
-
validate(control: AbstractControl): ValidationErrors | null;
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<TypeValidatorDirective, never>;
|
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TypeValidatorDirective, "[app-type]", never, { "type": { "alias": "type"; "required": false; }; }, {}, never, never, true, never>;
|
|
8
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<TypeValidatorDirective>;
|
|
9
|
-
}
|
|
10
|
-
export declare function type(type: string): ValidatorFn;
|
package/lib/models/colors.d.ts
DELETED
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
export type Color = 'primary' | 'primary-contrast' | 'secondary' | 'secondary-contrast' | 'tertiary' | 'tertiary-contrast' | 'warn' | 'warn-contrast' | 'error' | 'error-contrast' | 'black' | 'white' | 'none';
|
|
2
|
-
export declare const Colors: {
|
|
3
|
-
[key: string]: string;
|
|
4
|
-
};
|
|
5
|
-
export declare function getTextColor(color?: Color): string;
|
|
6
|
-
export declare function getContrastTextColor(color: Color): string;
|
|
7
|
-
export declare function getBackgroundColor(color?: Color): string;
|
|
8
|
-
export declare function getContrastBackgroundColor(color: Color): never;
|
|
9
|
-
export declare function getBorderColor(color?: Color): string;
|
|
10
|
-
export declare function getContrastBorderColor(color?: Color): string;
|
package/lib/models/controls.d.ts
DELETED
|
@@ -1,38 +0,0 @@
|
|
|
1
|
-
import { Subject } from 'rxjs';
|
|
2
|
-
import { IControlValidation } from './chr-validators/base-validator';
|
|
3
|
-
export type InputType = 'text' | 'password' | 'textArea' | 'number' | 'date' | 'datetime' | 'searchSelect' | 'tagSelect' | 'color' | 'toggle' | 'file' | 'hidden';
|
|
4
|
-
export interface ISearchFilter {
|
|
5
|
-
display: string;
|
|
6
|
-
callback?: Function;
|
|
7
|
-
tooltip?: string;
|
|
8
|
-
}
|
|
9
|
-
export interface IControl {
|
|
10
|
-
label?: string;
|
|
11
|
-
name: string;
|
|
12
|
-
span?: string;
|
|
13
|
-
width?: 'col' | 'row';
|
|
14
|
-
col?: number;
|
|
15
|
-
row?: number;
|
|
16
|
-
type: InputType;
|
|
17
|
-
accept?: string[];
|
|
18
|
-
debounceTime?: number;
|
|
19
|
-
value?: any;
|
|
20
|
-
data?: any[] | null;
|
|
21
|
-
icon?: string;
|
|
22
|
-
iconCallback?: Function;
|
|
23
|
-
iconCallbackDisabled?: boolean;
|
|
24
|
-
iconTooltip?: string;
|
|
25
|
-
fn?: (object: any) => string;
|
|
26
|
-
filters?: ISearchFilter[];
|
|
27
|
-
validations?: IControlValidation[];
|
|
28
|
-
addCallback?: ((entry: any, subject: Subject<any>) => any | null | void) | null;
|
|
29
|
-
editCallback?: ((entry: any, subject: Subject<any>) => any | null | void) | null;
|
|
30
|
-
removeCallback?: ((entry: any) => any | null | void) | null;
|
|
31
|
-
acceptText?: boolean;
|
|
32
|
-
multiple?: boolean;
|
|
33
|
-
/**
|
|
34
|
-
* Should the file be converted to base64 for sending
|
|
35
|
-
*/
|
|
36
|
-
base64?: boolean;
|
|
37
|
-
autofocus?: boolean;
|
|
38
|
-
}
|
package/lib/models/file.d.ts
DELETED
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
export interface ILiveUpdateMessage {
|
|
2
|
-
status: LiveUpdateStatus;
|
|
3
|
-
message?: string | null;
|
|
4
|
-
}
|
|
5
|
-
export declare enum LiveUpdateStatus {
|
|
6
|
-
Info = 0,
|
|
7
|
-
Warning = 1,
|
|
8
|
-
Error = 2,
|
|
9
|
-
End = 3
|
|
10
|
-
}
|
|
11
|
-
export declare const DEFAULTLIVEUPDATEMESSAGE: ILiveUpdateMessage;
|
|
12
|
-
export declare const DefaultLiveUpdateMessage: ILiveUpdateMessage;
|