carriera-intern-components 1.1.30 → 1.1.31
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/avatar/avatar.component.d.ts +1 -1
- package/app/components/input-address/stories/address.stories.d.ts +11 -0
- package/app/components/rating_review/enums/filter-type.enum.d.ts +7 -0
- package/app/components/rating_review/rating-review/rating-review/rating-review.component.d.ts +4 -5
- package/app/components/rating_review/review-modal/review-modal.component.d.ts +9 -8
- package/app/components/tab-option-dropdown/interfaces/index.d.ts +2 -0
- package/app/components/tab-option-dropdown/interfaces/tab-option-config.interface.d.ts +4 -0
- package/app/components/tab-option-dropdown/interfaces/tab-option.interface.d.ts +4 -0
- package/app/components/tab-option-dropdown/pipes/index.d.ts +1 -0
- package/app/components/tab-option-dropdown/pipes/tab-search-filter.pipe.d.ts +8 -0
- package/app/components/tab-option-dropdown/tab-option-dropdown.component.d.ts +26 -0
- package/app/utils/constants/input-character-sets.constants.d.ts +5 -5
- package/fesm2022/carriera-intern-components.mjs +189 -36
- package/fesm2022/carriera-intern-components.mjs.map +1 -1
- package/package.json +1 -1
- package/public-api.d.ts +2 -0
- package/src/styles/review_variables.scss +1 -0
- package/src/styles/tooltip.scss +6 -0
- package/src/styles.scss +5 -0
|
@@ -14,7 +14,7 @@ export declare class AvatarComponent {
|
|
|
14
14
|
* The size of the avatar in pixels.
|
|
15
15
|
* @type {Size}
|
|
16
16
|
*/
|
|
17
|
-
size: import("@angular/core").InputSignal<18 |
|
|
17
|
+
size: import("@angular/core").InputSignal<18 | 22 | 32 | 74 | 160>;
|
|
18
18
|
/**
|
|
19
19
|
* Whether the avatar should be rounded or not.
|
|
20
20
|
* @type {boolean}
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import { Meta, StoryObj } from '@storybook/angular';
|
|
2
|
+
import { InputAddressComponent } from '../input-address.component';
|
|
3
|
+
declare const meta: Meta<InputAddressComponent>;
|
|
4
|
+
export default meta;
|
|
5
|
+
type Story = StoryObj<InputAddressComponent>;
|
|
6
|
+
export declare const Default: Story;
|
|
7
|
+
export declare const Short: Story;
|
|
8
|
+
export declare const Filled: Story;
|
|
9
|
+
export declare const NoIcon: Story;
|
|
10
|
+
export declare const inTable: Story;
|
|
11
|
+
export declare const Filter: Story;
|
package/app/components/rating_review/rating-review/rating-review/rating-review.component.d.ts
CHANGED
|
@@ -1,7 +1,9 @@
|
|
|
1
1
|
import { SimpleChanges } from '@angular/core';
|
|
2
2
|
import { IReview } from '../../../../models/review.model';
|
|
3
|
+
import { FilterType } from '../../enums/filter-type.enum';
|
|
3
4
|
import * as i0 from "@angular/core";
|
|
4
5
|
export declare class RatingReviewComponent {
|
|
6
|
+
FilterType: typeof FilterType;
|
|
5
7
|
ngOnInit(): void;
|
|
6
8
|
ngOnChanges(changes: SimpleChanges): void;
|
|
7
9
|
ratingReviews: IReview[];
|
|
@@ -10,11 +12,9 @@ export declare class RatingReviewComponent {
|
|
|
10
12
|
countLikes: number;
|
|
11
13
|
countDislikes: number;
|
|
12
14
|
countReviews: number;
|
|
15
|
+
titleInput: string;
|
|
16
|
+
show: import("@angular/core").WritableSignal<boolean>;
|
|
13
17
|
onReturnMost(): string;
|
|
14
|
-
/**
|
|
15
|
-
* Emits an event when a review is successfully deleted.
|
|
16
|
-
* This event carries no data.
|
|
17
|
-
*/
|
|
18
18
|
/**
|
|
19
19
|
* Initializes review data when the component is initialized or when the `reviews` input changes.
|
|
20
20
|
* It copies the original reviews array, resets counters, calculates new counts, and
|
|
@@ -33,7 +33,6 @@ export declare class RatingReviewComponent {
|
|
|
33
33
|
* @private
|
|
34
34
|
*/
|
|
35
35
|
private calculateReviewCounts;
|
|
36
|
-
show: import("@angular/core").WritableSignal<boolean>;
|
|
37
36
|
handleOpen(): void;
|
|
38
37
|
handleClose(): void;
|
|
39
38
|
static ɵfac: i0.ɵɵFactoryDeclaration<RatingReviewComponent, never>;
|
|
@@ -1,13 +1,17 @@
|
|
|
1
1
|
import { IReview } from './../../../models/review.model';
|
|
2
2
|
import { OnInit, OnChanges, SimpleChanges, EventEmitter } from '@angular/core';
|
|
3
3
|
import { ReviewType } from '../enums/review-type.enum';
|
|
4
|
+
import { FilterType } from '../enums/filter-type.enum';
|
|
4
5
|
import * as i0 from "@angular/core";
|
|
5
6
|
export declare class ReviewModalComponent implements OnInit, OnChanges {
|
|
6
7
|
ReviewType: typeof ReviewType;
|
|
8
|
+
FilterType: typeof FilterType;
|
|
7
9
|
ngOnInit(): void;
|
|
8
10
|
ngOnChanges(changes: SimpleChanges): void;
|
|
9
11
|
ratingReviews: IReview[];
|
|
10
12
|
modaltype: string;
|
|
13
|
+
titleInput: string;
|
|
14
|
+
reviewDeleted: EventEmitter<void>;
|
|
11
15
|
activeLikes: import("@angular/core").WritableSignal<boolean>;
|
|
12
16
|
activeDislikes: import("@angular/core").WritableSignal<boolean>;
|
|
13
17
|
activeReviews: import("@angular/core").WritableSignal<boolean>;
|
|
@@ -19,12 +23,8 @@ export declare class ReviewModalComponent implements OnInit, OnChanges {
|
|
|
19
23
|
countDislikes: number;
|
|
20
24
|
countReviews: number;
|
|
21
25
|
hasPersonalReview: boolean;
|
|
26
|
+
currentActiveFilter: string;
|
|
22
27
|
onReturnMost(): string;
|
|
23
|
-
/**
|
|
24
|
-
* Emits an event when a review is successfully deleted.
|
|
25
|
-
* This event carries no data.
|
|
26
|
-
*/
|
|
27
|
-
reviewDeleted: EventEmitter<void>;
|
|
28
28
|
/**
|
|
29
29
|
* Adds a new empty review to the `presentReviews` list and sets `addingReview` to `true`.
|
|
30
30
|
* This review is marked as "personal" and pre-filled with basic user data.
|
|
@@ -57,7 +57,6 @@ export declare class ReviewModalComponent implements OnInit, OnChanges {
|
|
|
57
57
|
* @private
|
|
58
58
|
*/
|
|
59
59
|
private calculateReviewCounts;
|
|
60
|
-
currentActiveFilter: string;
|
|
61
60
|
onSwitchActive(value: string): void;
|
|
62
61
|
/**
|
|
63
62
|
* Changes the displayed reviews in `presentReviews` based on the selected type.
|
|
@@ -65,7 +64,7 @@ export declare class ReviewModalComponent implements OnInit, OnChanges {
|
|
|
65
64
|
* written reviews, or all reviews.
|
|
66
65
|
* @param type The type of reviews to display: 'likes', 'dislikes', 'reviews' (only written), or 'all'.
|
|
67
66
|
*/
|
|
68
|
-
onChangePresentReviews(type:
|
|
67
|
+
onChangePresentReviews(type: FilterType): void;
|
|
69
68
|
/**
|
|
70
69
|
* Updates the value and edit time of an existing review in the `presentReviews` list.
|
|
71
70
|
* Sets the `edited` flag to `true` for the modified review.
|
|
@@ -84,6 +83,8 @@ export declare class ReviewModalComponent implements OnInit, OnChanges {
|
|
|
84
83
|
*/
|
|
85
84
|
onDeleteReview(id: number): void;
|
|
86
85
|
onCheckPersonal(): void;
|
|
86
|
+
onSelectFilter(type: FilterType): void;
|
|
87
|
+
onCancelFilter(event: any, type: FilterType): void;
|
|
87
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<ReviewModalComponent, never>;
|
|
88
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ReviewModalComponent, "cai-review-modal", never, { "ratingReviews": { "alias": "ratingReviews"; "required": false; }; "modaltype": { "alias": "modaltype"; "required": false; }; }, { "reviewDeleted": "reviewDeleted"; }, never, never, true, never>;
|
|
89
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ReviewModalComponent, "cai-review-modal", never, { "ratingReviews": { "alias": "ratingReviews"; "required": false; }; "modaltype": { "alias": "modaltype"; "required": false; }; "titleInput": { "alias": "titleInput"; "required": false; }; }, { "reviewDeleted": "reviewDeleted"; }, never, never, true, never>;
|
|
89
90
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './tab-search-filter.pipe';
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import { PipeTransform } from '@angular/core';
|
|
2
|
+
import { ITabOption } from '../interfaces';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class TabSearchFilterPipe implements PipeTransform {
|
|
5
|
+
transform(options: ITabOption[] | null | undefined, searchValue?: string): ITabOption[];
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabSearchFilterPipe, never>;
|
|
7
|
+
static ɵpipe: i0.ɵɵPipeDeclaration<TabSearchFilterPipe, "tabSearchFilter", true>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import { NgbDropdown } from '@ng-bootstrap/ng-bootstrap';
|
|
3
|
+
import { ITabOptionConfig, ITabOption } from './interfaces';
|
|
4
|
+
import * as i0 from "@angular/core";
|
|
5
|
+
export declare class TabOptionDropdownComponent {
|
|
6
|
+
dropdown: NgbDropdown;
|
|
7
|
+
containerRef: ElementRef<HTMLDivElement>;
|
|
8
|
+
inputRef: ElementRef<HTMLInputElement>;
|
|
9
|
+
selectedOption: import("@angular/core").InputSignal<ITabOption | null>;
|
|
10
|
+
count: import("@angular/core").InputSignal<number>;
|
|
11
|
+
isLoading: import("@angular/core").InputSignal<boolean>;
|
|
12
|
+
options: import("@angular/core").InputSignal<ITabOption[]>;
|
|
13
|
+
config: import("@angular/core").InputSignal<ITabOptionConfig>;
|
|
14
|
+
onSelectionChange: import("@angular/core").OutputEmitterRef<ITabOption>;
|
|
15
|
+
searchValue: import("@angular/core").WritableSignal<string>;
|
|
16
|
+
closing: import("@angular/core").WritableSignal<boolean>;
|
|
17
|
+
containerWidth: import("@angular/core").WritableSignal<number>;
|
|
18
|
+
private updateContainerWidth;
|
|
19
|
+
private closeDropdown;
|
|
20
|
+
handleFocus(): void;
|
|
21
|
+
handleClick(): void;
|
|
22
|
+
handleBlur(): void;
|
|
23
|
+
handleOption(event: MouseEvent, option: ITabOption): void;
|
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabOptionDropdownComponent, never>;
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabOptionDropdownComponent, "cai-tab-option-dropdown", never, { "selectedOption": { "alias": "selectedOption"; "required": false; "isSignal": true; }; "count": { "alias": "count"; "required": false; "isSignal": true; }; "isLoading": { "alias": "isLoading"; "required": false; "isSignal": true; }; "options": { "alias": "options"; "required": false; "isSignal": true; }; "config": { "alias": "config"; "required": false; "isSignal": true; }; }, { "onSelectionChange": "onSelectionChange"; }, never, never, true, never>;
|
|
26
|
+
}
|
|
@@ -8,11 +8,11 @@ export declare const INPUT_CHARACTER_SETS: {
|
|
|
8
8
|
readonly QUOTES: readonly ["\"", "'", "`"];
|
|
9
9
|
readonly WHITESPACE: readonly [" ", "\t"];
|
|
10
10
|
readonly DBA_SPECIAL: readonly ["!", "#", "'", "$", "&", "%", "(", ")", "*", "+", ",", "-", ".", "/", ":", ";", "=", ">", "?", "[", "]", "\\", "^"];
|
|
11
|
-
readonly ALPHANUMERIC: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "
|
|
11
|
+
readonly ALPHANUMERIC: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z")[];
|
|
12
12
|
readonly ALPHANUMERIC_WITH_SPACES: string[];
|
|
13
13
|
readonly EMAIL_SPECIAL: readonly ["@", ".", "-", "_", "+"];
|
|
14
|
-
readonly EMAIL_CHARACTERS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "
|
|
15
|
-
readonly SPECIAL_EXCEPT_NAME_FRIENDLY: ("
|
|
16
|
-
readonly NAME_CHARACTER_EXCLUSIONS: ("0" | "1" | "2" | "3" | "
|
|
17
|
-
readonly SPECIAL: ("
|
|
14
|
+
readonly EMAIL_CHARACTERS: ("0" | "1" | "2" | "3" | "4" | "5" | "6" | "7" | "8" | "9" | "a" | "b" | "c" | "d" | "e" | "f" | "g" | "h" | "i" | "j" | "k" | "l" | "m" | "n" | "o" | "p" | "q" | "r" | "s" | "t" | "u" | "v" | "w" | "x" | "y" | "z" | "." | "@" | "+" | "-" | "_")[];
|
|
15
|
+
readonly SPECIAL_EXCEPT_NAME_FRIENDLY: ("*" | "." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
16
|
+
readonly NAME_CHARACTER_EXCLUSIONS: ("0" | "1" | "2" | "3" | "*" | "4" | "5" | "6" | "7" | "8" | "9" | "." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
17
|
+
readonly SPECIAL: ("*" | "." | "," | "!" | "?" | ";" | ":" | "@" | "#" | "$" | "%" | "&" | "+" | "-" | "=" | "_" | "|" | "~" | "`" | "^" | "<" | ">" | "/" | "\\" | "(" | ")" | "[" | "]" | "{" | "}" | "\"" | "'")[];
|
|
18
18
|
};
|