@rededor/site-front-end-lib 1.3.72 → 1.3.74

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.
@@ -42,3 +42,4 @@ export * from './carousels/testimonials-carousel/testimonials-carousel.component
42
42
  export * from './sidebar-navigation/sidebar-navigation.component';
43
43
  export * from './sticky-navigation/sticky-navigation.component';
44
44
  export * from './page-template-fullcontent/page-template-fullcontent.component';
45
+ export * from './input-file/input-file.component';
@@ -0,0 +1,88 @@
1
+ import { AfterViewInit, ElementRef, EventEmitter, OnDestroy } from '@angular/core';
2
+ import { CuraService } from '../../services';
3
+ import * as i0 from "@angular/core";
4
+ export declare class InputFileComponent implements AfterViewInit, OnDestroy {
5
+ private curaService;
6
+ status: 'error' | 'success' | 'default';
7
+ size: 'small' | 'medium' | 'large';
8
+ label: string;
9
+ name: string;
10
+ placeholder: string;
11
+ accept: string;
12
+ multiple: boolean;
13
+ disabled: boolean;
14
+ required: boolean;
15
+ iconName: string;
16
+ hideErrorIcon: boolean;
17
+ isLoading: boolean;
18
+ maxFileSize?: number;
19
+ helperText: string;
20
+ fileChange: EventEmitter<FileList | null>;
21
+ fileClear: EventEmitter<void>;
22
+ fileRejected: EventEmitter<void>;
23
+ fileSizeExceeded: EventEmitter<void>;
24
+ filePickerCancel: EventEmitter<void>;
25
+ fileName: string;
26
+ acceptError: boolean;
27
+ sizeError: boolean;
28
+ isHovered: boolean;
29
+ isFocused: boolean;
30
+ inputRef?: ElementRef<HTMLInputElement>;
31
+ private cancelListener?;
32
+ get style(): {
33
+ '--primary-base': string | null;
34
+ '--neutral-purewhite': string | null;
35
+ '--neutral-white': string | null;
36
+ '--neutral-black': string | null;
37
+ '--neutral-medium': string | null;
38
+ '--neutral-base': string | null;
39
+ '--neutral-dark': string | null;
40
+ '--success-dark': string | null;
41
+ '--success-darker': string | null;
42
+ '--success-lighter': string | null;
43
+ '--error-lighter': string | null;
44
+ '--error-dark': string | null;
45
+ '--error-darker': string | null;
46
+ '--error-base': string | null;
47
+ '--info-base': string | null;
48
+ '--font-size': string;
49
+ '--font-color': string;
50
+ '--font-family': string | null;
51
+ '--font-weight-medium': string;
52
+ '--font-weight-bold': string;
53
+ '--font-weight-regular': string;
54
+ };
55
+ constructor(curaService: CuraService);
56
+ ngAfterViewInit(): void;
57
+ ngOnDestroy(): void;
58
+ get effectiveStatus(): string;
59
+ get showIcon(): boolean;
60
+ get iconConfig(): {
61
+ name: string;
62
+ color: string;
63
+ };
64
+ get iconSize(): number;
65
+ get helperTextSize(): string;
66
+ get helperTextColor(): string;
67
+ getClasses(): {
68
+ [key: string]: boolean;
69
+ };
70
+ getLabelColor(): string;
71
+ handleMouseEnter(): void;
72
+ handleMouseLeave(): void;
73
+ handleInputFocus(): void;
74
+ handleInputBlur(): void;
75
+ handleButtonClick(): void;
76
+ handlePickerCancel(): void;
77
+ handleFileChange(event: Event): void;
78
+ clearFiles(): void;
79
+ private resetState;
80
+ private getFileName;
81
+ private isFileAccepted;
82
+ private isFileSizeValid;
83
+ private validateFiles;
84
+ private handleValidationError;
85
+ private handleSuccess;
86
+ static ɵfac: i0.ɵɵFactoryDeclaration<InputFileComponent, never>;
87
+ static ɵcmp: i0.ɵɵComponentDeclaration<InputFileComponent, "rdsite-input-file", never, { "status": { "alias": "status"; "required": false; }; "size": { "alias": "size"; "required": false; }; "label": { "alias": "label"; "required": false; }; "name": { "alias": "name"; "required": false; }; "placeholder": { "alias": "placeholder"; "required": false; }; "accept": { "alias": "accept"; "required": false; }; "multiple": { "alias": "multiple"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "required": { "alias": "required"; "required": false; }; "iconName": { "alias": "iconName"; "required": false; }; "hideErrorIcon": { "alias": "hideErrorIcon"; "required": false; }; "isLoading": { "alias": "isLoading"; "required": false; }; "maxFileSize": { "alias": "maxFileSize"; "required": false; }; "helperText": { "alias": "helperText"; "required": false; }; }, { "fileChange": "fileChange"; "fileClear": "fileClear"; "fileRejected": "fileRejected"; "fileSizeExceeded": "fileSizeExceeded"; "filePickerCancel": "filePickerCancel"; }, never, never, true, never>;
88
+ }
package/package.json CHANGED
@@ -1,11 +1,11 @@
1
1
  {
2
2
  "name": "@rededor/site-front-end-lib",
3
- "version": "1.3.72",
3
+ "version": "1.3.74",
4
4
  "peerDependencies": {
5
5
  "@angular/common": "^17.3.0",
6
6
  "@angular/core": "^17.3.0",
7
7
  "@ngu/carousel": "^9.0.0",
8
- "@rededor/cura": ">=0.5.1 <2.0.0 || 1.6.1-alpha.13",
8
+ "@rededor/cura": ">=0.5.1 <2.0.0 || 2.0.0-alpha.16",
9
9
  "algoliasearch": "^4.16.0",
10
10
  "express": "^4.18.2",
11
11
  "he": "^1.2.0",