asksuite-citrus 3.15.8 → 3.16.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/assets/icons/proprietary/dark-chatweb-contrast.svg +5 -0
- package/assets/icons/proprietary/dark-chatweb-default.svg +5 -0
- package/assets/icons/proprietary/dark-chatweb-disabled.svg +5 -0
- package/assets/icons/proprietary/dark-chatweb-grey.svg +5 -0
- package/assets/icons/proprietary/dark-chatweb-inverse.svg +5 -0
- package/assets/icons/proprietary/dark-email-contrast.svg +8 -0
- package/assets/icons/proprietary/dark-email-default.svg +8 -0
- package/assets/icons/proprietary/dark-email-disabled.svg +8 -0
- package/assets/icons/proprietary/dark-email-grey.svg +8 -0
- package/assets/icons/proprietary/dark-email-inverse.svg +8 -0
- package/assets/icons/proprietary/dark-facebook-contrast.svg +8 -0
- package/assets/icons/proprietary/dark-facebook-default.svg +8 -0
- package/assets/icons/proprietary/dark-facebook-disabled.svg +8 -0
- package/assets/icons/proprietary/dark-facebook-grey.svg +8 -0
- package/assets/icons/proprietary/dark-facebook-inverse.svg +8 -0
- package/assets/icons/proprietary/dark-instagram-contrast.svg +8 -0
- package/assets/icons/proprietary/dark-instagram-default.svg +8 -0
- package/assets/icons/proprietary/dark-instagram-disabled.svg +8 -0
- package/assets/icons/proprietary/dark-instagram-grey.svg +8 -0
- package/assets/icons/proprietary/dark-instagram-inverse.svg +8 -0
- package/assets/icons/proprietary/dark-phone-contrast.svg +7 -0
- package/assets/icons/proprietary/dark-phone-default.svg +7 -0
- package/assets/icons/proprietary/dark-phone-disabled.svg +7 -0
- package/assets/icons/proprietary/dark-phone-grey.svg +7 -0
- package/assets/icons/proprietary/dark-phone-inverse.svg +7 -0
- package/assets/icons/proprietary/dark-whatsapp-contrast.svg +8 -0
- package/assets/icons/proprietary/dark-whatsapp-default.svg +8 -0
- package/assets/icons/proprietary/dark-whatsapp-disabled.svg +8 -0
- package/assets/icons/proprietary/dark-whatsapp-grey.svg +8 -0
- package/assets/icons/proprietary/dark-whatsapp-inverse.svg +8 -0
- package/assets/icons/proprietary/light-chatweb-contrast.svg +5 -0
- package/assets/icons/proprietary/light-chatweb-default.svg +5 -0
- package/assets/icons/proprietary/light-chatweb-disabled.svg +5 -0
- package/assets/icons/proprietary/light-chatweb-grey.svg +5 -0
- package/assets/icons/proprietary/light-chatweb-inverse.svg +5 -0
- package/assets/icons/proprietary/light-email-contrast.svg +8 -0
- package/assets/icons/proprietary/light-email-default.svg +8 -0
- package/assets/icons/proprietary/light-email-disabled.svg +8 -0
- package/assets/icons/proprietary/light-email-grey.svg +8 -0
- package/assets/icons/proprietary/light-email-inverse.svg +8 -0
- package/assets/icons/proprietary/light-facebook-contrast.svg +8 -0
- package/assets/icons/proprietary/light-facebook-default.svg +8 -0
- package/assets/icons/proprietary/light-facebook-disabled.svg +8 -0
- package/assets/icons/proprietary/light-facebook-grey.svg +8 -0
- package/assets/icons/proprietary/light-facebook-inverse.svg +8 -0
- package/assets/icons/proprietary/light-instagram-contrast.svg +8 -0
- package/assets/icons/proprietary/light-instagram-default.svg +8 -0
- package/assets/icons/proprietary/light-instagram-disabled.svg +8 -0
- package/assets/icons/proprietary/light-instagram-grey.svg +8 -0
- package/assets/icons/proprietary/light-instagram-inverse.svg +8 -0
- package/assets/icons/proprietary/light-phone-contrast.svg +7 -0
- package/assets/icons/proprietary/light-phone-default.svg +7 -0
- package/assets/icons/proprietary/light-phone-disabled.svg +7 -0
- package/assets/icons/proprietary/light-phone-grey.svg +7 -0
- package/assets/icons/proprietary/light-phone-inverse.svg +7 -0
- package/assets/icons/proprietary/light-whatsapp-contrast.svg +8 -0
- package/assets/icons/proprietary/light-whatsapp-default.svg +8 -0
- package/assets/icons/proprietary/light-whatsapp-disabled.svg +8 -0
- package/assets/icons/proprietary/light-whatsapp-grey.svg +8 -0
- package/assets/icons/proprietary/light-whatsapp-inverse.svg +8 -0
- package/esm2022/lib/asksuite-citrus.module.mjs +36 -13
- package/esm2022/lib/components/icon-v2/icon-v2.component.mjs +65 -0
- package/esm2022/lib/constants/icons.mjs +17 -0
- package/esm2022/lib/directives/sizeable/sizeable.directive.mjs +33 -0
- package/esm2022/lib/interfaces/icons.type.mjs +2 -0
- package/esm2022/lib/services/custom-icon-register/custom-icon-register.service.mjs +46 -0
- package/esm2022/lib/services/dynamic-dropdown/dynamic-dropdown.service.mjs +28 -17
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/asksuite-citrus.mjs +263 -83
- package/fesm2022/asksuite-citrus.mjs.map +1 -1
- package/lib/asksuite-citrus.module.d.ts +7 -1
- package/lib/components/icon-v2/icon-v2.component.d.ts +27 -0
- package/lib/constants/icons.d.ts +3 -0
- package/lib/directives/sizeable/sizeable.directive.d.ts +10 -0
- package/lib/interfaces/icons.type.d.ts +4 -0
- package/lib/services/custom-icon-register/custom-icon-register.service.d.ts +18 -0
- package/lib/services/dynamic-dropdown/dynamic-dropdown.service.d.ts +12 -7
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
@@ -1,4 +1,6 @@
|
|
1
1
|
import { ModuleWithProviders } from '@angular/core';
|
2
|
+
import { CustomIconsRegisterService } from './services/custom-icon-register/custom-icon-register.service';
|
3
|
+
import { StorageUtilService } from './services/storage/storage-util.service';
|
2
4
|
import * as i0 from "@angular/core";
|
3
5
|
import * as i1 from "./components/button/button.component";
|
4
6
|
import * as i2 from "./components/input/input.component";
|
@@ -55,11 +57,15 @@ import * as i52 from "@angular/material/tooltip";
|
|
55
57
|
import * as i53 from "ngx-mask";
|
56
58
|
import * as i54 from "@angular/material/progress-bar";
|
57
59
|
import * as i55 from "./components/icon/icon.component";
|
60
|
+
import * as i56 from "./components/icon-v2/icon-v2.component";
|
61
|
+
export declare function initMyLib(myLibService: Storage): StorageUtilService<unknown>;
|
58
62
|
export declare class AsksuiteCitrusModule {
|
63
|
+
private customIconsRegisterService;
|
59
64
|
static forRoot(params?: {
|
60
65
|
flagUrl?: string;
|
61
66
|
}): ModuleWithProviders<AsksuiteCitrusModule>;
|
67
|
+
constructor(customIconsRegisterService: CustomIconsRegisterService);
|
62
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<AsksuiteCitrusModule, never>;
|
63
|
-
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 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]>;
|
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]>;
|
64
70
|
static ɵinj: i0.ɵɵInjectorDeclaration<AsksuiteCitrusModule>;
|
65
71
|
}
|
@@ -0,0 +1,27 @@
|
|
1
|
+
import { MatIcon } from '@angular/material/icon';
|
2
|
+
import { CustomIconsRegisterService } from '../../services/custom-icon-register/custom-icon-register.service';
|
3
|
+
import { SizeableDirective } from '../../directives/sizeable/sizeable.directive';
|
4
|
+
import { CustomIconNames, CustomIconVariations } from '../../interfaces/icons.type';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
type MatIconFontSets = 'material-icons' | 'material-symbols-outlined' | 'material-icons-outlined';
|
7
|
+
export declare class IconV2Component extends SizeableDirective {
|
8
|
+
private customIconRegister;
|
9
|
+
matIcon?: MatIcon;
|
10
|
+
name: CustomIconNames | string;
|
11
|
+
appearance: Exclude<CustomIconVariations, 'disabled'>;
|
12
|
+
theme: 'dark' | 'light';
|
13
|
+
color?: string;
|
14
|
+
matFontSet: MatIconFontSets;
|
15
|
+
protected fontIcon: string;
|
16
|
+
protected svgIcon: string;
|
17
|
+
private iconSubscription?;
|
18
|
+
constructor(customIconRegister: CustomIconsRegisterService);
|
19
|
+
ngOnInit(): void;
|
20
|
+
ngOnChanges(): void;
|
21
|
+
ngOnDestroy(): void;
|
22
|
+
private prepareIcon;
|
23
|
+
private prepareCustomIconName;
|
24
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconV2Component, never>;
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconV2Component, "ask-icon-v2", never, { "name": { "alias": "name"; "required": true; }; "appearance": { "alias": "appearance"; "required": false; }; "theme": { "alias": "theme"; "required": false; }; "color": { "alias": "color"; "required": false; }; "matFontSet": { "alias": "matFontSet"; "required": false; }; }, {}, never, never, true, never>;
|
26
|
+
}
|
27
|
+
export {};
|
@@ -0,0 +1,10 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
type Size = 8 | 10 | 12 | 14 | 16 | 18 | 20 | 24 | 28 | 30 | 32 | 40 | 48 | 56 | 64;
|
3
|
+
export declare class SizeableDirective {
|
4
|
+
size: Size;
|
5
|
+
disabled: boolean;
|
6
|
+
ngOnChanges(): void;
|
7
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SizeableDirective, never>;
|
8
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SizeableDirective, never, never, { "size": { "alias": "size"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, false, never>;
|
9
|
+
}
|
10
|
+
export {};
|
@@ -0,0 +1,18 @@
|
|
1
|
+
import { MatIconRegistry } from '@angular/material/icon';
|
2
|
+
import { DomSanitizer } from '@angular/platform-browser';
|
3
|
+
import { Observable } from 'rxjs';
|
4
|
+
import { ThemeService } from '../theme/theme.service';
|
5
|
+
import { CustomIconNames, CustomIconVariations } from '../../interfaces/icons.type';
|
6
|
+
import * as i0 from "@angular/core";
|
7
|
+
export declare class CustomIconsRegisterService {
|
8
|
+
private matIconRegistry;
|
9
|
+
private domSanitizer;
|
10
|
+
private theme;
|
11
|
+
constructor(matIconRegistry: MatIconRegistry, domSanitizer: DomSanitizer, theme: ThemeService);
|
12
|
+
register(): void;
|
13
|
+
getIcon$(name: CustomIconNames, variations: CustomIconVariations): Observable<string>;
|
14
|
+
hasIcon(name: string): boolean;
|
15
|
+
private getIconSrcs;
|
16
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<CustomIconsRegisterService, never>;
|
17
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<CustomIconsRegisterService>;
|
18
|
+
}
|
@@ -16,17 +16,22 @@ export interface DropdownRef {
|
|
16
16
|
export declare class DynamicDropdownService {
|
17
17
|
private overlay;
|
18
18
|
private overlayRefs;
|
19
|
+
private renderedDropdowns;
|
19
20
|
constructor(overlay: Overlay);
|
20
21
|
/**
|
21
|
-
* Opens a new
|
22
|
+
* Opens a new dropdown with the given configuration.
|
22
23
|
*/
|
23
24
|
open(config: DropdownConfig): DropdownRef;
|
25
|
+
/**
|
26
|
+
* Exposes a function to check if a given template is rendered.
|
27
|
+
*/
|
28
|
+
isTemplateRendered(template: TemplateRef<any>): boolean;
|
24
29
|
/**
|
25
30
|
* Creates an overlay with the specified position and configuration.
|
26
31
|
*/
|
27
32
|
private createOverlay;
|
28
33
|
/**
|
29
|
-
* Creates a flexible position strategy for the
|
34
|
+
* Creates a flexible position strategy for the dropdown.
|
30
35
|
*/
|
31
36
|
private createPositionStrategy;
|
32
37
|
/**
|
@@ -38,23 +43,23 @@ export declare class DynamicDropdownService {
|
|
38
43
|
*/
|
39
44
|
private attachTemplateToOverlay;
|
40
45
|
/**
|
41
|
-
* Sets up listeners for
|
46
|
+
* Sets up listeners for overlay events.
|
42
47
|
*/
|
43
48
|
private setupOverlayListeners;
|
44
49
|
/**
|
45
|
-
* Creates a subject that
|
50
|
+
* Creates a subject that emits when the dropdown is closed.
|
46
51
|
*/
|
47
52
|
private createAfterClosedSubject;
|
48
53
|
/**
|
49
|
-
* Creates a reference for
|
54
|
+
* Creates a reference for controlling the dropdown.
|
50
55
|
*/
|
51
56
|
private createModalRef;
|
52
57
|
/**
|
53
|
-
* Closes the
|
58
|
+
* Closes the dropdown and cleans up.
|
54
59
|
*/
|
55
60
|
private closeModal;
|
56
61
|
/**
|
57
|
-
* Closes all open
|
62
|
+
* Closes all open dropdowns.
|
58
63
|
*/
|
59
64
|
closeAll(): void;
|
60
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<DynamicDropdownService, never>;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -19,6 +19,7 @@ export * from './lib/components/table/table.component';
|
|
19
19
|
export * from './lib/components/pagination/pagination.component';
|
20
20
|
export * from './lib/components/loading-bar/loading-bar.component';
|
21
21
|
export * from './lib/components/icon/icon.component';
|
22
|
+
export * from './lib/components/icon-v2/icon-v2.component';
|
22
23
|
export * from './lib/components/tag/tag.component';
|
23
24
|
export * from './lib/components/arrow-tag/arrow-tag.component';
|
24
25
|
export * from './lib/components/tab-group/tab-group.component';
|