chrv-components 1.10.78 → 1.11.0
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.0.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 +1 -1
- 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,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;
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class CookiesService {
|
|
3
|
-
constructor();
|
|
4
|
-
/**
|
|
5
|
-
* delete cookie
|
|
6
|
-
* @param name
|
|
7
|
-
*/
|
|
8
|
-
deleteCookie(name: string): void;
|
|
9
|
-
/**
|
|
10
|
-
* get cookie
|
|
11
|
-
* @param {string} name
|
|
12
|
-
* @returns {string}
|
|
13
|
-
*/
|
|
14
|
-
getCookie(name: string): string;
|
|
15
|
-
/**
|
|
16
|
-
* set cookie
|
|
17
|
-
* @param {string} name
|
|
18
|
-
* @param {string} value
|
|
19
|
-
* @param {number} expireDays
|
|
20
|
-
* @param {string} path
|
|
21
|
-
*/
|
|
22
|
-
setCookie(name: string, value: string, expireDays: number, path?: string): void;
|
|
23
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<CookiesService, never>;
|
|
24
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<CookiesService>;
|
|
25
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare class DataService {
|
|
4
|
-
private platformId;
|
|
5
|
-
private data;
|
|
6
|
-
private persistData;
|
|
7
|
-
private syncData;
|
|
8
|
-
constructor(platformId: Object);
|
|
9
|
-
set: (key: string, value: any, persist?: boolean) => void;
|
|
10
|
-
get: (key: string) => Observable<any>;
|
|
11
|
-
getSync: (key: string) => any;
|
|
12
|
-
clear: (key: string) => void;
|
|
13
|
-
remove: (key: string) => boolean;
|
|
14
|
-
private persist;
|
|
15
|
-
private load;
|
|
16
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DataService, never>;
|
|
17
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DataService>;
|
|
18
|
-
}
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { MatDialog, MatDialogConfig, MatDialogRef } from '@angular/material/dialog';
|
|
2
|
-
import { IDefaultDialogConfig } from '../chr-default-modal/chr-default-modal.component';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class DialogService {
|
|
5
|
-
private dialog;
|
|
6
|
-
constructor(dialog: MatDialog);
|
|
7
|
-
openDelete: (callback?: Function, ...elements: Parameters<any>) => void;
|
|
8
|
-
openDefault: (config?: IDefaultDialogConfig) => void;
|
|
9
|
-
open: (component: any, options?: MatDialogConfig<any>) => MatDialogRef<any, any>;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<DialogService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<DialogService>;
|
|
12
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { IFile } from '../models/file';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FileService {
|
|
5
|
-
constructor();
|
|
6
|
-
fileToBase64: (file: File) => Observable<IFile>;
|
|
7
|
-
toBase64: (file: IFile) => Observable<IFile>;
|
|
8
|
-
toBase64WithProgress: (file: IFile) => Observable<{
|
|
9
|
-
progress: number;
|
|
10
|
-
file?: IFile;
|
|
11
|
-
}>;
|
|
12
|
-
batchToBase64: (files: IFile[]) => Observable<IFile[]>;
|
|
13
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileService, never>;
|
|
14
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<FileService>;
|
|
15
|
-
}
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import { ILiveUpdateMessage } from "../models/live-update-message";
|
|
3
|
-
import { DataService } from "./data.service";
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class LiveUpdateService {
|
|
6
|
-
private dataService;
|
|
7
|
-
private _hubUrl;
|
|
8
|
-
private _connection;
|
|
9
|
-
private _xsrf;
|
|
10
|
-
private _xsrfHeader;
|
|
11
|
-
private _message;
|
|
12
|
-
private _update;
|
|
13
|
-
constructor(hubUrl: string, xsrfHeader: string, dataService: DataService);
|
|
14
|
-
initConnection: () => Observable<void>;
|
|
15
|
-
onUpdate(): Observable<string>;
|
|
16
|
-
closeConnection(): Observable<void>;
|
|
17
|
-
getMessage(): Observable<ILiveUpdateMessage>;
|
|
18
|
-
getHubUrl: () => string;
|
|
19
|
-
private pushMessage;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LiveUpdateService, [{ optional: true; }, { optional: true; }, null]>;
|
|
21
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LiveUpdateService>;
|
|
22
|
-
}
|
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
export declare class LoaderService {
|
|
3
|
-
private is_loading;
|
|
4
|
-
private is_loading$;
|
|
5
|
-
private requestStatckSize;
|
|
6
|
-
constructor();
|
|
7
|
-
setLoading: (is: boolean) => void;
|
|
8
|
-
isLoading: () => boolean;
|
|
9
|
-
isLoadingAsync: () => import("rxjs").Observable<boolean>;
|
|
10
|
-
getStackSize: () => number;
|
|
11
|
-
incrementStackSize: () => number;
|
|
12
|
-
decrementStackSize: () => number;
|
|
13
|
-
setStackSize: (value: number) => number;
|
|
14
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LoaderService, never>;
|
|
15
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<LoaderService>;
|
|
16
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
import { Observable } from "rxjs";
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export interface Toast {
|
|
4
|
-
type: "error" | "success" | "warning";
|
|
5
|
-
message: string;
|
|
6
|
-
duration?: number;
|
|
7
|
-
}
|
|
8
|
-
export declare class ToastService {
|
|
9
|
-
private toastQueue;
|
|
10
|
-
private currentToastSubject;
|
|
11
|
-
currentToast$: Observable<Toast | null>;
|
|
12
|
-
private toastCloseSubject;
|
|
13
|
-
private default_duration;
|
|
14
|
-
constructor();
|
|
15
|
-
current: () => Observable<Toast | null>;
|
|
16
|
-
next: () => void;
|
|
17
|
-
setSuccess(message?: string, time?: number): void;
|
|
18
|
-
setError(message: string, time?: number): void;
|
|
19
|
-
setWarning(message: string, time?: number): void;
|
|
20
|
-
private set;
|
|
21
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ToastService, never>;
|
|
22
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ToastService>;
|
|
23
|
-
}
|
package/public-api.d.ts
DELETED
|
@@ -1,49 +0,0 @@
|
|
|
1
|
-
export * from './lib/chr-breadcrumb/chr-breadcrumb.component';
|
|
2
|
-
export * from './lib/chr-button/chr-button.component';
|
|
3
|
-
export * from './lib/chr-delete-modal/chr-delete-modal.component';
|
|
4
|
-
export * from './lib/chr-form/chr-form.component';
|
|
5
|
-
export * from './lib/chr-form/chr-base-input/chr-base-input.component';
|
|
6
|
-
export * from './lib/chr-form/chr-color-input/chr-color-input.component';
|
|
7
|
-
export * from './lib/chr-form/chr-date-input/chr-date-input.component';
|
|
8
|
-
export * from './lib/chr-form/chr-datetime-input/chr-datetime-input.component';
|
|
9
|
-
export * from './lib/chr-form/chr-file-input/chr-file-input.component';
|
|
10
|
-
export * from './lib/chr-form/chr-textarea-input/chr-textarea-input.component';
|
|
11
|
-
export * from './lib/chr-form/chr-toggle-input/chr-toggle-input.component';
|
|
12
|
-
export * from './lib/chr-search-select/chr-search-select.component';
|
|
13
|
-
export * from './lib/chr-tag-select/chr-tag-select.component';
|
|
14
|
-
export * from './lib/chr-table-new/chr-table-new.component';
|
|
15
|
-
export * from './lib/chr-form/chr-nice-file-input/chr-nice-file-input.component';
|
|
16
|
-
export * from './lib/chr-searchbar/chr-searchbar.component';
|
|
17
|
-
export * from './lib/chr-paginator/chr-paginator.component';
|
|
18
|
-
export * from './lib/chr-table/chr-table.component';
|
|
19
|
-
export * from './lib/chr-table-header-cell/chr-table-header-cell.component';
|
|
20
|
-
export * from './lib/chr-checkbox/chr-checkbox.component';
|
|
21
|
-
export * from './lib/chr-separator/chr-separator.component';
|
|
22
|
-
export * from './lib/models/chr-validators/decimal-validator';
|
|
23
|
-
export * from './lib/models/chr-validators/max-date-validator';
|
|
24
|
-
export * from './lib/models/chr-validators/type-validator';
|
|
25
|
-
export * from './lib/chr-spinner/chr-spinner.component';
|
|
26
|
-
export * from './lib/chr-toast/chr-toast.component';
|
|
27
|
-
export * from './lib/chr-default-modal/chr-default-modal.component';
|
|
28
|
-
export * from './lib/directives/tab-input-only-handler.directive';
|
|
29
|
-
export * from './lib/directives/tab-to-enter-handler.directive';
|
|
30
|
-
export * from './lib/directives/autofocus.directive';
|
|
31
|
-
export * from './lib/animations/in-out.animation';
|
|
32
|
-
export * from './lib/animations/rotation.animation';
|
|
33
|
-
export * from './lib/services/dialog.service';
|
|
34
|
-
export * from './lib/services/data.service';
|
|
35
|
-
export * from './lib/services/live-update.service';
|
|
36
|
-
export * from './lib/services/loader.service';
|
|
37
|
-
export * from './lib/services/toast.service';
|
|
38
|
-
export * from './lib/services/cookie.service';
|
|
39
|
-
export * from './lib/services/files.service';
|
|
40
|
-
export * from './lib/models/live-update-message';
|
|
41
|
-
export * from './lib/config/interceptors/SpinnerInterceptor';
|
|
42
|
-
export * from './lib/config/interceptors/XsrfInterceptor';
|
|
43
|
-
export * from './lib/config/providers/xsrf-provider';
|
|
44
|
-
export * from './lib/models/chr-validators/base-validator';
|
|
45
|
-
export * from './lib/models/colors';
|
|
46
|
-
export * from 'ngx-pagination';
|
|
47
|
-
export * from 'chrv-pipes';
|
|
48
|
-
export * from '@angular/material/dialog';
|
|
49
|
-
export * from 'ngx-mask';
|