carriera-intern-components 0.0.93 → 0.0.94
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/app/components/document-preview/document-preview.component.d.ts +7 -2
- package/app/components/drop-zone/drop-zone.component.d.ts +2 -3
- package/app/components/input/input.component.d.ts +7 -18
- package/app/components/input/models/input.model.d.ts +2 -0
- package/app/components/input/pipes/filter-by-search.pipe.d.ts +9 -0
- package/app/models/appFile.model.d.ts +1 -1
- package/fesm2022/carriera-intern-components.mjs +210 -217
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public/assets/icons/fuel-contact/cai-count.svg +3 -0
- package/public/assets/json/icons.json +6 -2
- /package/public/assets/icons/{cai-people.svg → fuel-contact/cai-people.svg} +0 -0
- /package/public/assets/icons/{cai-share.svg → fuel-contact/cai-share.svg} +0 -0
|
@@ -1,10 +1,15 @@
|
|
|
1
|
+
import { OnChanges, SimpleChanges } from '@angular/core';
|
|
1
2
|
import { AppFile } from '../../models/appFile.model';
|
|
2
3
|
import * as i0 from "@angular/core";
|
|
3
4
|
/**
|
|
4
5
|
* This component displays a preview of a document, including its name, size,
|
|
5
6
|
* and provides actions to delete, download, and tag the document.
|
|
6
7
|
*/
|
|
7
|
-
export declare class DocumentPreviewComponent {
|
|
8
|
+
export declare class DocumentPreviewComponent implements OnChanges {
|
|
9
|
+
coverMinimalMod: import("@angular/core").InputSignal<boolean>;
|
|
10
|
+
isCrop: import("@angular/core").WritableSignal<boolean>;
|
|
11
|
+
constructor();
|
|
12
|
+
ngOnChanges(changes: SimpleChanges): void;
|
|
8
13
|
/**
|
|
9
14
|
* Signal that controls whether the delete modal is visible.Used to confirm the file deletion.
|
|
10
15
|
*/
|
|
@@ -89,5 +94,5 @@ export declare class DocumentPreviewComponent {
|
|
|
89
94
|
*/
|
|
90
95
|
handleShare(): void;
|
|
91
96
|
static ɵfac: i0.ɵɵFactoryDeclaration<DocumentPreviewComponent, never>;
|
|
92
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentPreviewComponent, "cai-document-preview", never, { "file": { "alias": "file"; "required": true; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": true; "isSignal": true; }; }, { "onDelete": "onDelete"; "onDownload": "onDownload"; "onTagChange": "onTagChange"; }, never, never, true, never>;
|
|
97
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<DocumentPreviewComponent, "cai-document-preview", never, { "coverMinimalMod": { "alias": "coverMinimalMod"; "required": false; "isSignal": true; }; "file": { "alias": "file"; "required": true; "isSignal": true; }; "viewMode": { "alias": "viewMode"; "required": true; "isSignal": true; }; }, { "onDelete": "onDelete"; "onDownload": "onDownload"; "onTagChange": "onTagChange"; }, never, never, true, never>;
|
|
93
98
|
}
|
|
@@ -20,6 +20,7 @@ export declare class DropZoneComponent {
|
|
|
20
20
|
isCropperReady: import("@angular/core").WritableSignal<boolean>;
|
|
21
21
|
originalImageWidth: number;
|
|
22
22
|
originalImageHeight: number;
|
|
23
|
+
smallView: import("@angular/core").WritableSignal<boolean>;
|
|
23
24
|
coverUrl: string;
|
|
24
25
|
profileUrl: string;
|
|
25
26
|
logoUrl: string;
|
|
@@ -36,14 +37,12 @@ export declare class DropZoneComponent {
|
|
|
36
37
|
cropDimensions(): void;
|
|
37
38
|
ratioHelper(): number;
|
|
38
39
|
onZoomChange(event: Event): void;
|
|
39
|
-
onTransformChange(event: ImageTransform): void;
|
|
40
|
-
getLimitedTransform(transform: ImageTransform): ImageTransform;
|
|
41
40
|
fileChangeEvent(event: Event): void;
|
|
42
41
|
imageCropped(event: ImageCroppedEvent): void;
|
|
43
42
|
imageLoaded(image: LoadedImage): void;
|
|
44
43
|
cropperReady(): void;
|
|
45
44
|
loadImageFailed(): void;
|
|
46
|
-
|
|
45
|
+
onTransformChange(event: ImageTransform): void;
|
|
47
46
|
cancelCrop(): void;
|
|
48
47
|
submitCrop(): void;
|
|
49
48
|
/**
|
|
@@ -39,17 +39,19 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
39
39
|
- `mask`: A pattern string for input masking (e.g., `'(000) 000-0000'`).
|
|
40
40
|
- `min`: Minimum value for number inputs.
|
|
41
41
|
- `max`: Maximum value for number inputs or maximum length for text inputs.
|
|
42
|
+
- `step`: Step value for number inputs. Can also be `automatic` for automatic step calculation.
|
|
42
43
|
- `withButtons`: If `true`, adds increment/decrement buttons for number inputs.
|
|
43
44
|
- `autocomplete`: The HTML `autocomplete` attribute.
|
|
44
45
|
- `disabled`: If `true`, the input is disabled (for use without reactive form).
|
|
45
46
|
- `passwordRequirements`: If `true`, shows password requirements for password inputs.
|
|
46
47
|
- `optionValue`: The value to use in the formControl for the selected option in the dropdown.
|
|
48
|
+
- `subContent`: An optional slot for additional content to be displayed next to the content the user is entering. (ex. lbs, months, etc.)
|
|
47
49
|
*/
|
|
48
50
|
config: import("@angular/core").InputSignal<CaiInputConfig>;
|
|
49
51
|
/**
|
|
50
52
|
* Input property to hold the dropdown options.
|
|
51
53
|
*/
|
|
52
|
-
options: import("@angular/core").InputSignal<
|
|
54
|
+
options: import("@angular/core").InputSignal<DispatchBoard[] | Dispatch[] | LabelOption[] | Broker[] | DropdownOption[] | DepartmentContactsPair[] | Shipper[]>;
|
|
53
55
|
/**
|
|
54
56
|
* Input property to hold the label colors for the label picker.
|
|
55
57
|
*/
|
|
@@ -69,7 +71,7 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
69
71
|
/**
|
|
70
72
|
* A signal that holds the locally added options.
|
|
71
73
|
*/
|
|
72
|
-
localOptions: import("@angular/core").WritableSignal<
|
|
74
|
+
localOptions: import("@angular/core").WritableSignal<DispatchBoard[] | Dispatch[] | LabelOption[] | Broker[] | DropdownOption[] | DepartmentContactsPair[] | Shipper[]>;
|
|
73
75
|
/**
|
|
74
76
|
* A signal that holds the currently selected option from the dropdown.
|
|
75
77
|
* @type {Signal<DropdownOption | null>}
|
|
@@ -112,22 +114,9 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
112
114
|
/**
|
|
113
115
|
* A computed signal that dynamically calculates the step value for number inputs.
|
|
114
116
|
*/
|
|
115
|
-
step: import("@angular/core").Signal<
|
|
117
|
+
step: import("@angular/core").Signal<number>;
|
|
118
|
+
combinedOptions: import("@angular/core").Signal<DispatchBoard[] | Dispatch[] | LabelOption[] | Broker[] | DropdownOption[] | DepartmentContactsPair[] | Shipper[]>;
|
|
116
119
|
dispatchCount: import("@angular/core").Signal<number>;
|
|
117
|
-
filteredDispatches: import("@angular/core").Signal<DispatchBoard[]>;
|
|
118
|
-
/**
|
|
119
|
-
* A computed signal that provides the current list of options to display in the dropdown.
|
|
120
|
-
*
|
|
121
|
-
* If `search` is `false`, it returns the full `dropdownOptions`.
|
|
122
|
-
* If `search` is `true`, it filters `dropdownOptions` based on the `value` signal,
|
|
123
|
-
* performing a case-insensitive partial text match.
|
|
124
|
-
*
|
|
125
|
-
*/
|
|
126
|
-
filteredOptions: import("@angular/core").Signal<DropdownOption[]>;
|
|
127
|
-
filteredLabels: import("@angular/core").Signal<LabelOption[]>;
|
|
128
|
-
filteredBrokers: import("@angular/core").Signal<Broker[]>;
|
|
129
|
-
filteredContacts: import("@angular/core").Signal<DepartmentContactsPair[]>;
|
|
130
|
-
filteredShippers: import("@angular/core").Signal<Shipper[]>;
|
|
131
120
|
/**
|
|
132
121
|
* An output signal that emits the value of the added option.
|
|
133
122
|
*/
|
|
@@ -137,7 +126,7 @@ export declare class InputComponent implements ControlValueAccessor {
|
|
|
137
126
|
*/
|
|
138
127
|
onAdd: import("@angular/core").OutputEmitterRef<void>;
|
|
139
128
|
/**
|
|
140
|
-
* An output signal that emits the
|
|
129
|
+
* An output signal that emits the `optionValue` or `id` of the changed dropdown option.
|
|
141
130
|
*/
|
|
142
131
|
onSelectionChange: import("@angular/core").OutputEmitterRef<any>;
|
|
143
132
|
inputRef: ElementRef<HTMLInputElement>;
|
|
@@ -10,11 +10,13 @@ export interface CaiInputConfig {
|
|
|
10
10
|
dropdown?: boolean | 'dispatch' | 'ftl-dispatch' | 'label' | 'broker' | 'contact' | 'shipper';
|
|
11
11
|
search?: boolean;
|
|
12
12
|
add?: boolean;
|
|
13
|
+
subcontent?: string;
|
|
13
14
|
placeholderBehavior?: 'dynamic' | 'fade' | 'static';
|
|
14
15
|
label?: string;
|
|
15
16
|
mask?: string;
|
|
16
17
|
min?: number;
|
|
17
18
|
max?: number;
|
|
19
|
+
step?: number | 'automatic';
|
|
18
20
|
withButtons?: boolean;
|
|
19
21
|
autocomplete?: string;
|
|
20
22
|
list?: boolean;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { Broker, CaiInputConfig, Contact, DepartmentContactsPair, Dispatch, DispatchBoard, DropdownOption, LabelOption, Shipper } from '../models';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class FilterBySearchPipe implements PipeTransform {
|
|
5
|
+
hasProperty<T extends object>(obj: T, prop: PropertyKey): prop is keyof T;
|
|
6
|
+
transform(options: DispatchBoard[] | Dispatch[] | LabelOption[] | Broker[] | Contact[] | DropdownOption[] | DepartmentContactsPair[] | Shipper[], value: string | undefined | null, type: CaiInputConfig['dropdown'], shouldSearch?: boolean, foldedBoards?: number[]): any[];
|
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FilterBySearchPipe, never>;
|
|
8
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<FilterBySearchPipe, "filterBySearch", true>;
|
|
9
|
+
}
|