@jm-7c3/common-lib 1.7.6 → 1.8.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/fesm2022/jm-7c3-common-lib.mjs +124 -128
- package/fesm2022/jm-7c3-common-lib.mjs.map +1 -1
- package/index.d.ts +343 -5
- package/jm-7c3-common-lib-1.8.0.tgz +0 -0
- package/package.json +3 -3
- package/jm-7c3-common-lib-1.7.6.tgz +0 -0
- package/lib/common-lib.module.d.ts +0 -6
- package/lib/controls/button/button.component.d.ts +0 -14
- package/lib/controls/button/button.models.d.ts +0 -1
- package/lib/controls/button/index.d.ts +0 -1
- package/lib/controls/confirmation/confirmation.component.d.ts +0 -12
- package/lib/controls/confirmation/confirmation.models.d.ts +0 -7
- package/lib/controls/confirmation/confirmation.service.d.ts +0 -11
- package/lib/controls/confirmation/index.d.ts +0 -3
- package/lib/controls/content-dialog/content-dialog.component.d.ts +0 -15
- package/lib/controls/content-dialog/content-dialog.models.d.ts +0 -10
- package/lib/controls/content-dialog/content-dialog.service.d.ts +0 -13
- package/lib/controls/content-dialog/index.d.ts +0 -3
- package/lib/controls/form-dialog/form-dialog.component.d.ts +0 -21
- package/lib/controls/form-dialog/form-dialog.models.d.ts +0 -13
- package/lib/controls/form-dialog/form-dialog.service.d.ts +0 -12
- package/lib/controls/form-dialog/index.d.ts +0 -3
- package/lib/controls/icon-button/icon-button.component.d.ts +0 -15
- package/lib/controls/icon-button/index.d.ts +0 -1
- package/lib/controls/progress-bar-dialog/index.d.ts +0 -2
- package/lib/controls/progress-bar-dialog/progress-bar-dialog.component.d.ts +0 -9
- package/lib/controls/progress-bar-dialog/progress-bar-dialog.service.d.ts +0 -8
- package/lib/controls/readonly-value/index.d.ts +0 -1
- package/lib/controls/readonly-value/readonly-value.component.d.ts +0 -7
- package/lib/controls/toasts/index.d.ts +0 -3
- package/lib/controls/toasts/toasts.component.d.ts +0 -9
- package/lib/controls/toasts/toasts.models.d.ts +0 -5
- package/lib/controls/toasts/toasts.service.d.ts +0 -9
- package/lib/forms/base-form/base-form.component.d.ts +0 -24
- package/lib/forms/base-form/index.d.ts +0 -1
- package/lib/forms/file-input/file-input.component.d.ts +0 -43
- package/lib/forms/file-input/index.d.ts +0 -1
- package/lib/forms/file-inputs/file-inputs.component.d.ts +0 -24
- package/lib/forms/file-inputs/index.d.ts +0 -1
- package/lib/forms/form-field/error.directive.d.ts +0 -7
- package/lib/forms/form-field/form-field.component.d.ts +0 -10
- package/lib/forms/form-field/form-field.module.d.ts +0 -9
- package/lib/forms/form-field/index.d.ts +0 -4
- package/lib/forms/form-field/label.directive.d.ts +0 -7
- package/lib/models/cl-dialog.model.d.ts +0 -15
- package/lib/models/cl-state.model.d.ts +0 -9
- package/lib/models/index.d.ts +0 -2
- package/lib/rxjs-operators/index.d.ts +0 -1
- package/lib/rxjs-operators/operators.d.ts +0 -2
- package/lib/services/cl-state.service.d.ts +0 -12
- package/lib/services/index.d.ts +0 -1
- package/public-api.d.ts +0 -16
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { OnDestroy } from '@angular/core';
|
|
2
|
-
import { AbstractControl, ControlValueAccessor, FormArray, FormControl, FormGroup, ValidationErrors, Validator } from '@angular/forms';
|
|
3
|
-
import { Subscription } from 'rxjs';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class BaseFormComponent implements ControlValueAccessor, OnDestroy, Validator {
|
|
6
|
-
readonly control: FormArray<any> | FormControl<any> | FormGroup<any>;
|
|
7
|
-
readonly disabled: import("@angular/core").WritableSignal<boolean>;
|
|
8
|
-
protected readonly subscription: Subscription;
|
|
9
|
-
ngOnDestroy(): void;
|
|
10
|
-
registerOnChange(fn: any): void;
|
|
11
|
-
registerOnTouched(fn: any): void;
|
|
12
|
-
setDisabledState(isDisabled: boolean): void;
|
|
13
|
-
writeValue(obj: any): void;
|
|
14
|
-
validate(control?: AbstractControl): ValidationErrors | null;
|
|
15
|
-
protected getForm(): FormArray | FormControl | FormGroup;
|
|
16
|
-
protected setValue(value: any): void;
|
|
17
|
-
private onChanged;
|
|
18
|
-
private onTouched;
|
|
19
|
-
get formArray(): FormArray;
|
|
20
|
-
get formControl(): FormControl;
|
|
21
|
-
get formGroup(): FormGroup;
|
|
22
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<BaseFormComponent, never>;
|
|
23
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<BaseFormComponent, "ng-component", never, {}, {}, never, never, true, never>;
|
|
24
|
-
}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './base-form.component';
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
|
2
|
-
import { ControlValueAccessor } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class FileInputComponent implements ControlValueAccessor {
|
|
5
|
-
readonly directory: import("@angular/core").InputSignal<string>;
|
|
6
|
-
readonly icon: import("@angular/core").InputSignal<string>;
|
|
7
|
-
readonly label: import("@angular/core").InputSignal<string>;
|
|
8
|
-
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
9
|
-
readonly onDownloadEmitter: import("@angular/core").OutputEmitterRef<FileInput[]>;
|
|
10
|
-
readonly fileInput: import("@angular/core").Signal<ElementRef<any> | undefined>;
|
|
11
|
-
readonly fileName: import("@angular/core").WritableSignal<string>;
|
|
12
|
-
readonly isDisabled: import("@angular/core").WritableSignal<boolean>;
|
|
13
|
-
readonly isFileSelected: import("@angular/core").WritableSignal<boolean>;
|
|
14
|
-
readonly value: import("@angular/core").WritableSignal<FileInputValue>;
|
|
15
|
-
registerOnChange(fn: any): void;
|
|
16
|
-
registerOnTouched(fn: any): void;
|
|
17
|
-
setDisabledState(isDisabled: boolean): void;
|
|
18
|
-
writeValue(value?: FileInput[] | string | null): void;
|
|
19
|
-
onClick(): void;
|
|
20
|
-
onFileSelected(event: Event): void;
|
|
21
|
-
onDelete(): void;
|
|
22
|
-
onDownload(): void;
|
|
23
|
-
private getFileNameParts;
|
|
24
|
-
private getHashFromFileName;
|
|
25
|
-
private getLastFile;
|
|
26
|
-
private getSafeFileName;
|
|
27
|
-
private onChange;
|
|
28
|
-
private onTouched;
|
|
29
|
-
private selectFile;
|
|
30
|
-
private setValue;
|
|
31
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileInputComponent, never>;
|
|
32
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileInputComponent, "cl-file-input", never, { "directory": { "alias": "directory"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "onDownloadEmitter": "onDownload"; }, never, never, true, never>;
|
|
33
|
-
}
|
|
34
|
-
export interface FileInput {
|
|
35
|
-
file?: File;
|
|
36
|
-
hash: string;
|
|
37
|
-
isNew: boolean;
|
|
38
|
-
name: string;
|
|
39
|
-
path: string;
|
|
40
|
-
toDelete: boolean;
|
|
41
|
-
}
|
|
42
|
-
type FileInputValue = FileInput[] | null;
|
|
43
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './file-input.component';
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
import { AbstractControl, FormArray, ValidationErrors } from '@angular/forms';
|
|
2
|
-
import { BaseFormComponent } from '../base-form';
|
|
3
|
-
import { FileInput } from '../file-input';
|
|
4
|
-
import * as i0 from "@angular/core";
|
|
5
|
-
export declare class FileInputsComponent extends BaseFormComponent {
|
|
6
|
-
private readonly cdRef;
|
|
7
|
-
readonly directory: import("@angular/core").InputSignal<string>;
|
|
8
|
-
readonly icon: import("@angular/core").InputSignal<string>;
|
|
9
|
-
readonly label: import("@angular/core").InputSignal<string>;
|
|
10
|
-
readonly max: import("@angular/core").InputSignal<number>;
|
|
11
|
-
readonly readonly: import("@angular/core").InputSignal<boolean>;
|
|
12
|
-
readonly onDownloadEmitter: import("@angular/core").OutputEmitterRef<FileInput[]>;
|
|
13
|
-
onAdd(): void;
|
|
14
|
-
onDelete(index: number): void;
|
|
15
|
-
onDownload(file: FileInput[]): void;
|
|
16
|
-
setDisabledState(isDisabled: boolean): void;
|
|
17
|
-
validate(control?: AbstractControl): ValidationErrors | null;
|
|
18
|
-
writeValue(value: FileInputsValue): void;
|
|
19
|
-
protected getForm(): FormArray<any>;
|
|
20
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FileInputsComponent, never>;
|
|
21
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FileInputsComponent, "cl-file-inputs", never, { "directory": { "alias": "directory"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; }, { "onDownloadEmitter": "onDownload"; }, never, never, true, never>;
|
|
22
|
-
}
|
|
23
|
-
type FileInputsValue = FileInput[][] | null;
|
|
24
|
-
export {};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './file-inputs.component';
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare const ERROR_DIRECTIVE: InjectionToken<ErrorDirective>;
|
|
4
|
-
export declare class ErrorDirective {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ErrorDirective, never>;
|
|
6
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<ErrorDirective, "ff-error", never, {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,10 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import { FormControlName } from '@angular/forms';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare const FORM_FIELD: InjectionToken<FormFieldComponent>;
|
|
5
|
-
export declare class FormFieldComponent {
|
|
6
|
-
readonly control: import("@angular/core").Signal<FormControlName | undefined>;
|
|
7
|
-
readonly isRequired: import("@angular/core").Signal<boolean>;
|
|
8
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldComponent, never>;
|
|
9
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormFieldComponent, "cl-form-field", never, {}, {}, ["control"], ["ff-label", "*", "ff-error"], true, never>;
|
|
10
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "./error.directive";
|
|
3
|
-
import * as i2 from "./form-field.component";
|
|
4
|
-
import * as i3 from "./label.directive";
|
|
5
|
-
export declare class FormFieldModule {
|
|
6
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormFieldModule, never>;
|
|
7
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormFieldModule, never, [typeof i1.ErrorDirective, typeof i2.FormFieldComponent, typeof i3.LabelDirective], [typeof i1.ErrorDirective, typeof i2.FormFieldComponent, typeof i3.LabelDirective]>;
|
|
8
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<FormFieldModule>;
|
|
9
|
-
}
|
|
@@ -1,7 +0,0 @@
|
|
|
1
|
-
import { InjectionToken } from '@angular/core';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
export declare const LABEL_DIRECTIVE: InjectionToken<LabelDirective>;
|
|
4
|
-
export declare class LabelDirective {
|
|
5
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<LabelDirective, never>;
|
|
6
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<LabelDirective, "ff-label", never, {}, {}, never, never, true, never>;
|
|
7
|
-
}
|
|
@@ -1,15 +0,0 @@
|
|
|
1
|
-
export interface ConfirmationConfig {
|
|
2
|
-
acceptLabel: string;
|
|
3
|
-
cancelLabel: string;
|
|
4
|
-
}
|
|
5
|
-
export interface ContentDialogConfig {
|
|
6
|
-
closeLabel: string;
|
|
7
|
-
}
|
|
8
|
-
export interface FieldOption {
|
|
9
|
-
label: string;
|
|
10
|
-
value: any;
|
|
11
|
-
}
|
|
12
|
-
export interface FormDialogConfig {
|
|
13
|
-
cancelLabel: string;
|
|
14
|
-
submitLabel: string;
|
|
15
|
-
}
|
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
export type ClState = {
|
|
2
|
-
stateMessage: ClStateMessage | null;
|
|
3
|
-
};
|
|
4
|
-
export interface ClStateMessage {
|
|
5
|
-
key?: string;
|
|
6
|
-
payload?: any;
|
|
7
|
-
type: ClStateMessageType;
|
|
8
|
-
}
|
|
9
|
-
export type ClStateMessageType = 'confirmation' | 'confirmation-accept' | 'confirmation-cancel' | 'content-dialog' | 'content-dialog-cancel' | 'content-dialog-close' | 'form-dialog' | 'form-dialog-cancel' | 'form-dialog-submit' | 'progess-bar-dialog-close' | 'progess-bar-dialog-open' | 'toast';
|
package/lib/models/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './operators';
|
|
@@ -1,12 +0,0 @@
|
|
|
1
|
-
import { Observable } from 'rxjs';
|
|
2
|
-
import { ClStateMessage, ClStateMessageType } from '../models';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
export declare class ClStateService {
|
|
5
|
-
private readonly state;
|
|
6
|
-
readonly stateMessage: any;
|
|
7
|
-
private readonly stateMessage$;
|
|
8
|
-
onStateMessage(type: ClStateMessageType): Observable<ClStateMessage | null>;
|
|
9
|
-
updateStateMessage(stateMessage: ClStateMessage | null): void;
|
|
10
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<ClStateService, never>;
|
|
11
|
-
static ɵprov: i0.ɵɵInjectableDeclaration<ClStateService>;
|
|
12
|
-
}
|
package/lib/services/index.d.ts
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export * from './cl-state.service';
|
package/public-api.d.ts
DELETED
|
@@ -1,16 +0,0 @@
|
|
|
1
|
-
export * from './lib/controls/button';
|
|
2
|
-
export * from './lib/controls/confirmation';
|
|
3
|
-
export * from './lib/controls/content-dialog';
|
|
4
|
-
export * from './lib/controls/form-dialog';
|
|
5
|
-
export * from './lib/controls/icon-button';
|
|
6
|
-
export * from './lib/controls/progress-bar-dialog';
|
|
7
|
-
export * from './lib/controls/readonly-value';
|
|
8
|
-
export * from './lib/controls/toasts';
|
|
9
|
-
export * from './lib/forms/base-form';
|
|
10
|
-
export * from './lib/forms/file-input';
|
|
11
|
-
export * from './lib/forms/file-inputs';
|
|
12
|
-
export * from './lib/forms/form-field';
|
|
13
|
-
export * from './lib/models';
|
|
14
|
-
export * from './lib/common-lib.module';
|
|
15
|
-
export * from './lib/rxjs-operators';
|
|
16
|
-
export * from './lib/services';
|