asksuite-citrus 3.16.23-beta.0 → 3.16.23
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/esm2022/lib/asksuite-citrus.module.mjs +6 -9
- package/esm2022/lib/classes/richtext-wrapper.mjs +182 -25
- package/esm2022/lib/components/accordion/extendable-panel/extendable-panel.component.mjs +2 -2
- package/esm2022/lib/components/arrow-tag/arrow-tag.component.mjs +2 -2
- package/esm2022/lib/components/autocomplete/autocomplete.component.mjs +2 -2
- package/esm2022/lib/components/avatar/avatar.component.mjs +2 -2
- package/esm2022/lib/components/box/box.component.mjs +2 -2
- package/esm2022/lib/components/button/button.component.mjs +2 -2
- package/esm2022/lib/components/character-counter/character-counter.component.mjs +2 -2
- package/esm2022/lib/components/checkbox/checkbox.component.mjs +2 -2
- package/esm2022/lib/components/chips/chips.component.mjs +2 -2
- package/esm2022/lib/components/date-picker/date-picker-calendar/date-picker-calendar.component.mjs +2 -2
- package/esm2022/lib/components/date-picker/date-picker.component.mjs +2 -2
- package/esm2022/lib/components/dropdown-container/dropdown-container.component.mjs +2 -2
- package/esm2022/lib/components/input/input.component.mjs +2 -2
- package/esm2022/lib/components/modal/confirmation-modal/confirmation-modal.component.mjs +2 -2
- package/esm2022/lib/components/modal/modal.component.mjs +2 -2
- package/esm2022/lib/components/pagination/pagination.component.mjs +2 -2
- package/esm2022/lib/components/phone-ddi/phone-ddi.component.mjs +2 -2
- package/esm2022/lib/components/richtext-toolbox/richtext-toolbox.component.mjs +2 -2
- package/esm2022/lib/components/richtext-url-prompt/richtext-url-prompt.component.mjs +2 -2
- package/esm2022/lib/components/select/select.component.mjs +2 -2
- package/esm2022/lib/components/tab-group/tab/tab.component.mjs +2 -2
- package/esm2022/lib/components/tab-group/tab-group.component.mjs +2 -2
- package/esm2022/lib/components/table/table.component.mjs +2 -2
- package/esm2022/lib/components/toast/toast.component.mjs +2 -2
- package/esm2022/lib/constants/url-regex.constant.mjs +2 -2
- package/esm2022/lib/directives/richtext-toolbox/richtext-toolbox.directive.mjs +4 -1
- package/esm2022/lib/helpers/emoji-quill-blot.helper.mjs +23 -0
- package/esm2022/public-api.mjs +1 -2
- package/fesm2022/asksuite-citrus.mjs +258 -124
- package/fesm2022/asksuite-citrus.mjs.map +1 -1
- package/lib/asksuite-citrus.module.d.ts +11 -12
- package/lib/classes/richtext-wrapper.d.ts +8 -0
- package/lib/directives/richtext-toolbox/richtext-toolbox.directive.d.ts +1 -0
- package/lib/helpers/emoji-quill-blot.helper.d.ts +11 -0
- package/package.json +1 -1
- package/public-api.d.ts +0 -1
- package/styles/colors-dark.scss +3 -1
- package/styles/colors-light.scss +3 -2
- package/styles/theme-colors.scss +2 -0
- package/styles/theme-primitives.scss +21 -1
- package/esm2022/lib/components/notification-tooltip/notification-tooltip.component.mjs +0 -48
- package/lib/components/notification-tooltip/notification-tooltip.component.d.ts +0 -19
@@ -48,17 +48,16 @@ import * as i43 from "./directives/list-item/list-item.directive";
|
|
48
48
|
import * as i44 from "./components/arrow-tag/arrow-tag.component";
|
49
49
|
import * as i45 from "./components/tab-group/tab-group.component";
|
50
50
|
import * as i46 from "./components/tab-group/tab/tab.component";
|
51
|
-
import * as i47 from "
|
52
|
-
import * as i48 from "@angular/
|
53
|
-
import * as i49 from "@angular/
|
54
|
-
import * as i50 from "@
|
55
|
-
import * as i51 from "
|
56
|
-
import * as i52 from "
|
57
|
-
import * as i53 from "
|
58
|
-
import * as i54 from "
|
59
|
-
import * as i55 from "
|
60
|
-
import * as i56 from "./components/icon/icon.component";
|
61
|
-
import * as i57 from "./components/icon-v2/icon-v2.component";
|
51
|
+
import * as i47 from "@angular/common";
|
52
|
+
import * as i48 from "@angular/forms";
|
53
|
+
import * as i49 from "@angular/cdk/overlay";
|
54
|
+
import * as i50 from "@ngx-translate/core";
|
55
|
+
import * as i51 from "ngx-skeleton-loader";
|
56
|
+
import * as i52 from "@angular/material/tooltip";
|
57
|
+
import * as i53 from "ngx-mask";
|
58
|
+
import * as i54 from "@angular/material/progress-bar";
|
59
|
+
import * as i55 from "./components/icon/icon.component";
|
60
|
+
import * as i56 from "./components/icon-v2/icon-v2.component";
|
62
61
|
export declare function initMyLib(myLibService: Storage): StorageUtilService<unknown>;
|
63
62
|
export declare class AsksuiteCitrusModule {
|
64
63
|
private customIconsRegisterService;
|
@@ -67,6 +66,6 @@ export declare class AsksuiteCitrusModule {
|
|
67
66
|
}): ModuleWithProviders<AsksuiteCitrusModule>;
|
68
67
|
constructor(customIconsRegisterService: CustomIconsRegisterService);
|
69
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<AsksuiteCitrusModule, never>;
|
70
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<AsksuiteCitrusModule, [typeof i1.ButtonComponent, typeof i2.InputComponent, typeof i3.SelectComponent, typeof i4.BoxComponent, typeof i5.AvatarComponent, typeof i6.DropdownContainerComponent, typeof i7.AskDropdownDirective, typeof i8.AutocompleteComponent, typeof i9.PhoneDdiComponent, typeof i10.ChipsComponent, typeof i11.CheckboxComponent, typeof i12.DatePickerComponent, typeof i13.DatePickerCalendarComponent, typeof i14.SkeletonComponent, typeof i15.SpinnerComponent, typeof i16.SpinnerDirective, typeof i17.BadgeDirective, typeof i18.AutofocusDirective, typeof i19.ScrollDirective, typeof i20.AskTooltipDirective, typeof i21.ToastComponent, typeof i22.AskButtonDirective, typeof i23.ModalComponent, typeof i24.ModalBodyDirective, typeof i25.ModalHeaderDirective, typeof i26.ModalFooterDirective, typeof i27.CharacterCounterComponent, typeof i28.AccordionComponent, typeof i29.ExtendablePanelComponent, typeof i30.TableComponent, typeof i31.TagComponent, typeof i32.PaginationComponent, typeof i33.PaginatePipe, typeof i34.RichtextToolboxDirective, typeof i35.RichtextUrlPromptComponent, typeof i36.RichtextToolboxComponent, typeof i37.AskTextButtonDirective, typeof i38.ForceBreakLinePipe, typeof i39.ConfirmationModalComponent, typeof i40.LoadingBarComponent, typeof i41.AskStrokedButtonDirective, typeof i42.InputDirective, typeof i43.ListItemDirective, typeof i44.ArrowTagComponent, typeof i45.TabGroupComponent, typeof i46.TabComponent
|
69
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<AsksuiteCitrusModule, [typeof i1.ButtonComponent, typeof i2.InputComponent, typeof i3.SelectComponent, typeof i4.BoxComponent, typeof i5.AvatarComponent, typeof i6.DropdownContainerComponent, typeof i7.AskDropdownDirective, typeof i8.AutocompleteComponent, typeof i9.PhoneDdiComponent, typeof i10.ChipsComponent, typeof i11.CheckboxComponent, typeof i12.DatePickerComponent, typeof i13.DatePickerCalendarComponent, typeof i14.SkeletonComponent, typeof i15.SpinnerComponent, typeof i16.SpinnerDirective, typeof i17.BadgeDirective, typeof i18.AutofocusDirective, typeof i19.ScrollDirective, typeof i20.AskTooltipDirective, typeof i21.ToastComponent, typeof i22.AskButtonDirective, typeof i23.ModalComponent, typeof i24.ModalBodyDirective, typeof i25.ModalHeaderDirective, typeof i26.ModalFooterDirective, typeof i27.CharacterCounterComponent, typeof i28.AccordionComponent, typeof i29.ExtendablePanelComponent, typeof i30.TableComponent, typeof i31.TagComponent, typeof i32.PaginationComponent, typeof i33.PaginatePipe, typeof i34.RichtextToolboxDirective, typeof i35.RichtextUrlPromptComponent, typeof i36.RichtextToolboxComponent, typeof i37.AskTextButtonDirective, typeof i38.ForceBreakLinePipe, typeof i39.ConfirmationModalComponent, typeof i40.LoadingBarComponent, typeof i41.AskStrokedButtonDirective, typeof i42.InputDirective, typeof i43.ListItemDirective, typeof i44.ArrowTagComponent, typeof i45.TabGroupComponent, typeof i46.TabComponent], [typeof i47.CommonModule, typeof i48.FormsModule, typeof i48.ReactiveFormsModule, typeof i49.CdkOverlayOrigin, typeof i49.CdkConnectedOverlay, typeof i49.OverlayModule, typeof i50.TranslateModule, typeof i51.NgxSkeletonLoaderModule, typeof i52.MatTooltipModule, typeof i53.NgxMaskDirective, typeof i53.NgxMaskPipe, typeof i54.MatProgressBarModule, typeof i55.IconComponent, typeof i56.IconV2Component], [typeof i1.ButtonComponent, typeof i2.InputComponent, typeof i3.SelectComponent, typeof i4.BoxComponent, typeof i5.AvatarComponent, typeof i6.DropdownContainerComponent, typeof i7.AskDropdownDirective, typeof i8.AutocompleteComponent, typeof i9.PhoneDdiComponent, typeof i10.ChipsComponent, typeof i11.CheckboxComponent, typeof i12.DatePickerComponent, typeof i13.DatePickerCalendarComponent, typeof i14.SkeletonComponent, typeof i16.SpinnerDirective, typeof i17.BadgeDirective, typeof i18.AutofocusDirective, typeof i19.ScrollDirective, typeof i20.AskTooltipDirective, typeof i22.AskButtonDirective, typeof i37.AskTextButtonDirective, typeof i24.ModalBodyDirective, typeof i25.ModalHeaderDirective, typeof i26.ModalFooterDirective, typeof i27.CharacterCounterComponent, typeof i28.AccordionComponent, typeof i29.ExtendablePanelComponent, typeof i30.TableComponent, typeof i32.PaginationComponent, typeof i33.PaginatePipe, typeof i34.RichtextToolboxDirective, typeof i38.ForceBreakLinePipe, typeof i40.LoadingBarComponent, typeof i41.AskStrokedButtonDirective, typeof i42.InputDirective, typeof i43.ListItemDirective, typeof i55.IconComponent, typeof i31.TagComponent, typeof i44.ArrowTagComponent, typeof i45.TabGroupComponent, typeof i46.TabComponent, typeof i56.IconV2Component]>;
|
71
70
|
static ɵinj: i0.ɵɵInjectorDeclaration<AsksuiteCitrusModule>;
|
72
71
|
}
|
@@ -14,6 +14,9 @@ export declare class RichtextWrapper implements RichTextFunctions {
|
|
14
14
|
private maxLength;
|
15
15
|
private breakOnEnter;
|
16
16
|
private allowImages;
|
17
|
+
private isFormatting;
|
18
|
+
private pendingFormat;
|
19
|
+
private lastKeyCombination;
|
17
20
|
private quillFormats;
|
18
21
|
private textChangeHandler;
|
19
22
|
private selectionChangeHandler;
|
@@ -25,6 +28,7 @@ export declare class RichtextWrapper implements RichTextFunctions {
|
|
25
28
|
get listenEscape$(): import("rxjs").Observable<boolean>;
|
26
29
|
get listenEnter$(): import("rxjs").Observable<boolean>;
|
27
30
|
constructor(ngZone: NgZone, cd: ChangeDetectorRef, elementRef: ElementRef<HTMLElement>);
|
31
|
+
private emojiMatcher;
|
28
32
|
setItalic(): void;
|
29
33
|
setBold(): void;
|
30
34
|
setUnderline(): void;
|
@@ -52,13 +56,17 @@ export declare class RichtextWrapper implements RichTextFunctions {
|
|
52
56
|
setBreakOnEnter(breakOnEnter: boolean): void;
|
53
57
|
setAllowImages(allowImages: boolean): void;
|
54
58
|
getCurrentCursorPosition(): RangeStatic | null;
|
59
|
+
setCursorPosition(position: number): void;
|
55
60
|
destroy(): void;
|
56
61
|
private isToolDisabled;
|
57
62
|
private urlMatcher;
|
58
63
|
private imageMatcher;
|
59
64
|
private htmlPanelMatcher;
|
60
65
|
private listenEditorChanges;
|
66
|
+
private setupKeyListeners;
|
61
67
|
private update;
|
68
|
+
private setupEmojiDetection;
|
69
|
+
private formatEmoji;
|
62
70
|
}
|
63
71
|
export declare const QuillProxy: {
|
64
72
|
Quill: typeof Quill;
|
@@ -38,6 +38,7 @@ export declare class RichtextToolboxDirective implements OnChanges, ControlValue
|
|
38
38
|
registerOnTouched(fn: any): void;
|
39
39
|
setDisabledState(isDisabled: boolean): void;
|
40
40
|
getCurrentCursorPosition(): import("quill").RangeStatic | null | undefined;
|
41
|
+
setCursorPosition(position: number): void | undefined;
|
41
42
|
getTextWithoutHtmlTags(): string;
|
42
43
|
insertText(index: number, text: string, emitEvent?: boolean): void;
|
43
44
|
private prepareToolbar;
|
@@ -0,0 +1,11 @@
|
|
1
|
+
declare const Inline: any;
|
2
|
+
export declare const EMOJI_REGEX: RegExp;
|
3
|
+
export declare class EmojiBlot extends Inline {
|
4
|
+
static blotName: string;
|
5
|
+
static tagName: string;
|
6
|
+
static className: string;
|
7
|
+
static create(value: any): any;
|
8
|
+
static formats(node: HTMLElement): HTMLElement;
|
9
|
+
static value(node: HTMLElement): HTMLElement;
|
10
|
+
}
|
11
|
+
export {};
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -24,7 +24,6 @@ export * from './lib/components/tag/tag.component';
|
|
24
24
|
export * from './lib/components/arrow-tag/arrow-tag.component';
|
25
25
|
export * from './lib/components/tab-group/tab-group.component';
|
26
26
|
export * from './lib/components/tab-group/tab/tab.component';
|
27
|
-
export * from './lib/components/notification-tooltip/notification-tooltip.component';
|
28
27
|
export * from './lib/directives';
|
29
28
|
export * from './lib/components/modal/directives';
|
30
29
|
export * from './lib/services/toast/toast.service';
|
package/styles/colors-dark.scss
CHANGED
@@ -346,7 +346,9 @@
|
|
346
346
|
|
347
347
|
--color-elevation-surface-sunken-hovered: #{$color-nd-100};
|
348
348
|
--color-elevation-surface-selected: #{$color-a-100};
|
349
|
-
--color-elevation-shadow-raised: #{$color-
|
349
|
+
--color-elevation-shadow-raised: #{$color-sda-700};
|
350
|
+
--color-elevation-shadow-overlay: #{$color-sda-200};
|
351
|
+
--color-elevation-shadow-base: #{$color-nd-500};
|
350
352
|
|
351
353
|
--color-background-accent-grey-bold-default: #{$color-background-accent-grey-bold-default};
|
352
354
|
--color-border-inverse-subtle: #{$color-border-inverse-subtle};
|
package/styles/colors-light.scss
CHANGED
@@ -279,7 +279,7 @@ $color-elevation-surface-selected-flow: $color-f-100;
|
|
279
279
|
$color-elevation-surface-sunken-default: $color-nl-0;
|
280
280
|
$color-elevation-surface-sunken-hovered: $color-nl-100;
|
281
281
|
$color-elevation-surface-selected: $color-a-100;
|
282
|
-
$color-elevation-shadow-raised: #13293933;
|
282
|
+
// $color-elevation-shadow-raised: #13293933;
|
283
283
|
|
284
284
|
|
285
285
|
$color-border-default: $color-nla-300;
|
@@ -684,7 +684,8 @@ $color-border-contrast: $color-nla-1200;
|
|
684
684
|
--color-elevation-surface-sunken-default: #{$color-elevation-surface-sunken-default};
|
685
685
|
--color-elevation-surface-sunken-hovered: #{$color-elevation-surface-sunken-hovered};
|
686
686
|
--color-elevation-surface-selected: #{$color-elevation-surface-selected};
|
687
|
-
--color-elevation-shadow-raised: #{$color-
|
687
|
+
--color-elevation-shadow-raised: #{$color-nla-400};
|
688
|
+
--color-elevation-shadow-overlay: #{$color-nla-700};
|
688
689
|
--color-elevation-surface-overlay: #{$color-nl-0};
|
689
690
|
--color-border-default: #{$color-border-default};
|
690
691
|
--color-border-brand-asksuite-subtle: #{$color-border-brand-asksuite-subtle};
|
package/styles/theme-colors.scss
CHANGED
@@ -6,8 +6,10 @@
|
|
6
6
|
|
7
7
|
body.light{
|
8
8
|
@include colors-light.theme();
|
9
|
+
--elevation-shadow: 0px 0px 1px 0px var(--color-elevation-shadow-overlay), 0px 8px 12px 0px var(--color-elevation-shadow-raised);
|
9
10
|
}
|
10
11
|
|
11
12
|
body.dark{
|
12
13
|
@include colors-dark.theme();
|
14
|
+
--elevation-shadow: -1px 2px 0px var(--color-elevation-shadow-overlay), 0px 8px 12px 0px var(--color-elevation-shadow-raised), 0px 0px 0px 0px var(--color-elevation-shadow-base);
|
13
15
|
}
|
@@ -196,6 +196,26 @@ $color-nda-1600: rgba(217, 229, 242, 0.94);
|
|
196
196
|
$color-nda-1700: #d9e5f2;
|
197
197
|
$color-Y200: #FFE5B2;
|
198
198
|
|
199
|
+
//grey shadow dark
|
200
|
+
$color-sda-0: rgba(3, 4, 4, 0);
|
201
|
+
$color-sda-100: rgba(3, 4, 4, 0.03);
|
202
|
+
$color-sda-200: rgba(3, 4, 4, 0.06);
|
203
|
+
$color-sda-300: rgba(3, 4, 4, 0.13);
|
204
|
+
$color-sda-400: rgba(3, 4, 4, 0.19);
|
205
|
+
$color-sda-500: rgba(3, 4, 4, 0.25);
|
206
|
+
$color-sda-600: rgba(3, 4, 4, 0.31);
|
207
|
+
$color-sda-700: rgba(3, 4, 4, 0.38);
|
208
|
+
$color-sda-800: rgba(3, 4, 4, 0.44);
|
209
|
+
$color-sda-900: rgba(3, 4, 4, 0.5);
|
210
|
+
$color-sda-1000: rgba(3, 4, 4, 0.56);
|
211
|
+
$color-sda-1100: rgba(3, 4, 4, 0.63);
|
212
|
+
$color-sda-1200: rgba(3, 4, 4, 0.69);
|
213
|
+
$color-sda-1300: rgba(3, 4, 4, 0.75);
|
214
|
+
$color-sda-1400: rgba(3, 4, 4, 0.81);
|
215
|
+
$color-sda-1500: rgba(3, 4, 4, 0.88);
|
216
|
+
$color-sda-1600: rgba(3, 4, 4, 0.94);
|
217
|
+
$color-sda-1700: #030404;
|
218
|
+
|
199
219
|
|
200
220
|
//outros
|
201
221
|
$color-background-selected-ask-default: $color-a-900;
|
@@ -205,4 +225,4 @@ $color-elevation-surface-sunken-default: $color-nd-0;
|
|
205
225
|
$color-background-accent-grey-bold-default: $color-nl-1400;
|
206
226
|
$color-border-inverse-subtle: $color-nl-400;
|
207
227
|
$color-background-accent-grey-subtler-hovered: $color-nl-400;
|
208
|
-
//
|
228
|
+
//
|
@@ -1,48 +0,0 @@
|
|
1
|
-
import { Component, EventEmitter, Input, Output } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
import * as i1 from "@angular/common";
|
4
|
-
import * as i2 from "@ngx-translate/core";
|
5
|
-
export class NotificationTooltipComponent {
|
6
|
-
constructor() {
|
7
|
-
this.title = '';
|
8
|
-
this.message = '';
|
9
|
-
this.direction = 'horizontal';
|
10
|
-
this.positionArrowHorizontal = 'center';
|
11
|
-
this.positionArrowVertical = 'center';
|
12
|
-
this.sideArrow = 'bottom';
|
13
|
-
this.buttonTitle = "'ACTIONS.CLOSE' | translate'";
|
14
|
-
this.onClick = new EventEmitter();
|
15
|
-
this.visible = true;
|
16
|
-
this.class = '';
|
17
|
-
}
|
18
|
-
ngOnInit() {
|
19
|
-
this.class = `tooltip-arrow-${this.direction} -side-${this.sideArrow} -${this.direction === 'horizontal'
|
20
|
-
? this.positionArrowHorizontal : this.positionArrowVertical}`;
|
21
|
-
}
|
22
|
-
closeTooltip() {
|
23
|
-
this.visible = false;
|
24
|
-
}
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: NotificationTooltipComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "17.3.7", type: NotificationTooltipComponent, selector: "app-tooltip", inputs: { title: "title", message: "message", direction: "direction", positionArrowHorizontal: "positionArrowHorizontal", positionArrowVertical: "positionArrowVertical", sideArrow: "sideArrow", buttonTitle: "buttonTitle" }, outputs: { onClick: "onClick" }, ngImport: i0, template: "\n <div class=\"tooltip-container\">\n <div [ngClass]=\"class\"></div>\n <div class=\"tooltip-content\">\n @if(title !==''){\n <p class=\"title\">{{ title | translate }}</p>\n }\n <p class=\"message\">{{ message | translate }}</p>\n <button class=\"button\" (click)=\"onClick.emit($event)\">{{buttonTitle | translate}}</button>\n </div>\n </div>\n\n", styles: [".tooltip-container{display:flex;padding:12px 16px;flex-direction:column;justify-content:center;align-items:center;gap:12px;flex:1 0 0;z-index:1000;position:absolute}.tooltip-arrow-horizontal{position:absolute;transform:translate(-50%);width:0;height:0;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);z-index:1001}.tooltip-arrow-horizontal.-side-top{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:8px solid var(--color-background-alpha-bolder-default);top:4%}.tooltip-arrow-horizontal.-side-bottom{border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid var(--color-background-alpha-bolder-default);top:90%}.tooltip-arrow-horizontal.-left{left:7%}.tooltip-arrow-horizontal.-center{left:50%}.tooltip-arrow-horizontal.-right{left:93%}.tooltip-arrow-vertical{position:absolute;transform:translate(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:8px solid var(--color-background-alpha-bolder-default);z-index:1001}.tooltip-arrow-vertical.-side-left{border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:8px solid;left:4%}.tooltip-arrow-vertical.-side-right{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:8px solid;left:96%}.tooltip-arrow-vertical.-top{top:18%}.tooltip-arrow-vertical.-center{top:45%}.tooltip-arrow-vertical.-bottom{top:73%}.tooltip-content{display:flex;padding:12px 16px;flex-direction:column;justify-content:center;align-items:center;gap:12px;flex:1 0 0;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);width:214px;border-radius:8px;background:var(--color-background-alpha-bolder-default);align-self:stretch}.button{display:flex;height:32px;width:168px;padding:6px 12px;justify-content:center;align-items:center;gap:8px;border-radius:8px;background-color:var(--color-background-inverse-default);color:var(--color-texticon-contrast)}.title{color:var(--color-texticon-inverse-default);font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:20px;align-self:stretch}.message{color:var(--color-texticon-inverse-default, #FFF);font-family:Inter;font-size:13px;font-style:normal;font-weight:400;line-height:20px}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "pipe", type: i2.TranslatePipe, name: "translate" }] }); }
|
27
|
-
}
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "17.3.7", ngImport: i0, type: NotificationTooltipComponent, decorators: [{
|
29
|
-
type: Component,
|
30
|
-
args: [{ selector: 'app-tooltip', template: "\n <div class=\"tooltip-container\">\n <div [ngClass]=\"class\"></div>\n <div class=\"tooltip-content\">\n @if(title !==''){\n <p class=\"title\">{{ title | translate }}</p>\n }\n <p class=\"message\">{{ message | translate }}</p>\n <button class=\"button\" (click)=\"onClick.emit($event)\">{{buttonTitle | translate}}</button>\n </div>\n </div>\n\n", styles: [".tooltip-container{display:flex;padding:12px 16px;flex-direction:column;justify-content:center;align-items:center;gap:12px;flex:1 0 0;z-index:1000;position:absolute}.tooltip-arrow-horizontal{position:absolute;transform:translate(-50%);width:0;height:0;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);z-index:1001}.tooltip-arrow-horizontal.-side-top{border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:8px solid var(--color-background-alpha-bolder-default);top:4%}.tooltip-arrow-horizontal.-side-bottom{border-left:6px solid transparent;border-right:6px solid transparent;border-top:8px solid var(--color-background-alpha-bolder-default);top:90%}.tooltip-arrow-horizontal.-left{left:7%}.tooltip-arrow-horizontal.-center{left:50%}.tooltip-arrow-horizontal.-right{left:93%}.tooltip-arrow-vertical{position:absolute;transform:translate(-50%);width:0;height:0;border-left:6px solid transparent;border-right:6px solid transparent;border-bottom:8px solid var(--color-background-alpha-bolder-default);z-index:1001}.tooltip-arrow-vertical.-side-left{border-top:6px solid transparent;border-bottom:6px solid transparent;border-right:8px solid;left:4%}.tooltip-arrow-vertical.-side-right{border-top:6px solid transparent;border-bottom:6px solid transparent;border-left:8px solid;left:96%}.tooltip-arrow-vertical.-top{top:18%}.tooltip-arrow-vertical.-center{top:45%}.tooltip-arrow-vertical.-bottom{top:73%}.tooltip-content{display:flex;padding:12px 16px;flex-direction:column;justify-content:center;align-items:center;gap:12px;flex:1 0 0;-webkit-backdrop-filter:blur(1.5px);backdrop-filter:blur(1.5px);width:214px;border-radius:8px;background:var(--color-background-alpha-bolder-default);align-self:stretch}.button{display:flex;height:32px;width:168px;padding:6px 12px;justify-content:center;align-items:center;gap:8px;border-radius:8px;background-color:var(--color-background-inverse-default);color:var(--color-texticon-contrast)}.title{color:var(--color-texticon-inverse-default);font-family:Inter;font-size:14px;font-style:normal;font-weight:500;line-height:20px;align-self:stretch}.message{color:var(--color-texticon-inverse-default, #FFF);font-family:Inter;font-size:13px;font-style:normal;font-weight:400;line-height:20px}\n"] }]
|
31
|
-
}], ctorParameters: () => [], propDecorators: { title: [{
|
32
|
-
type: Input
|
33
|
-
}], message: [{
|
34
|
-
type: Input
|
35
|
-
}], direction: [{
|
36
|
-
type: Input
|
37
|
-
}], positionArrowHorizontal: [{
|
38
|
-
type: Input
|
39
|
-
}], positionArrowVertical: [{
|
40
|
-
type: Input
|
41
|
-
}], sideArrow: [{
|
42
|
-
type: Input
|
43
|
-
}], buttonTitle: [{
|
44
|
-
type: Input
|
45
|
-
}], onClick: [{
|
46
|
-
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mFsc2U7XG4gIH1cbn1cbiIsIlxuICA8ZGl2IGNsYXNzPVwidG9vbHRpcC1jb250YWluZXJcIj5cbiAgICA8ZGl2IFtuZ0NsYXNzXT1cImNsYXNzXCI+PC9kaXY+XG4gICAgPGRpdiBjbGFzcz1cInRvb2x0aXAtY29udGVudFwiPlxuICAgICAgICBAaWYodGl0bGUgIT09Jycpe1xuICAgICAgICAgIDxwIGNsYXNzPVwidGl0bGVcIj57eyB0aXRsZSB8IHRyYW5zbGF0ZSB9fTwvcD5cbiAgICAgICAgfVxuICAgICAgICA8cCBjbGFzcz1cIm1lc3NhZ2VcIj57eyBtZXNzYWdlIHwgdHJhbnNsYXRlIH19PC9wPlxuICAgICAgPGJ1dHRvbiBjbGFzcz1cImJ1dHRvblwiIChjbGljayk9XCJvbkNsaWNrLmVtaXQoJGV2ZW50KVwiPnt7YnV0dG9uVGl0bGUgfCB0cmFuc2xhdGV9fTwvYnV0dG9uPlxuICAgIDwvZGl2PlxuICA8L2Rpdj5cblxuIl19
|
@@ -1,19 +0,0 @@
|
|
1
|
-
import { EventEmitter, OnInit } from '@angular/core';
|
2
|
-
import * as i0 from "@angular/core";
|
3
|
-
export declare class NotificationTooltipComponent implements OnInit {
|
4
|
-
title: string;
|
5
|
-
message: string;
|
6
|
-
direction: 'vertical' | 'horizontal';
|
7
|
-
positionArrowHorizontal: 'left' | 'right' | 'center';
|
8
|
-
positionArrowVertical: 'top' | 'bottom' | 'center';
|
9
|
-
sideArrow: 'top' | 'bottom' | 'right' | 'left';
|
10
|
-
buttonTitle: string;
|
11
|
-
onClick: EventEmitter<MouseEvent>;
|
12
|
-
visible: boolean;
|
13
|
-
class: string;
|
14
|
-
constructor();
|
15
|
-
ngOnInit(): void;
|
16
|
-
closeTooltip(): void;
|
17
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<NotificationTooltipComponent, never>;
|
18
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<NotificationTooltipComponent, "app-tooltip", never, { "title": { "alias": "title"; "required": false; }; "message": { "alias": "message"; "required": false; }; "direction": { "alias": "direction"; "required": false; }; "positionArrowHorizontal": { "alias": "positionArrowHorizontal"; "required": false; }; "positionArrowVertical": { "alias": "positionArrowVertical"; "required": false; }; "sideArrow": { "alias": "sideArrow"; "required": false; }; "buttonTitle": { "alias": "buttonTitle"; "required": false; }; }, { "onClick": "onClick"; }, never, never, false, never>;
|
19
|
-
}
|