asksuite-citrus 3.9.1 → 3.9.2-beta.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/email-channel.svg +4 -0
- package/assets/icons/whatsapp-channel.svg +4 -0
- package/esm2022/lib/asksuite-citrus.module.mjs +10 -5
- package/esm2022/lib/components/accordion/extendable-panel/extendable-panel.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/icon/icon.component.mjs +20 -0
- 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/table/table.component.mjs +2 -2
- package/esm2022/lib/components/toast/toast.component.mjs +2 -2
- package/esm2022/lib/directives/button/ask-base-button.directive.mjs +32 -9
- package/esm2022/lib/directives/button/ask-button.directive.mjs +8 -8
- package/esm2022/lib/directives/button/ask-stroked-button.directive.mjs +8 -8
- package/esm2022/lib/directives/button/ask-text-button.directive.mjs +7 -7
- package/esm2022/public-api.mjs +2 -1
- package/fesm2022/asksuite-citrus.mjs +114 -70
- package/fesm2022/asksuite-citrus.mjs.map +1 -1
- package/lib/asksuite-citrus.module.d.ts +2 -1
- package/lib/components/icon/icon.component.d.ts +7 -0
- package/lib/directives/button/ask-base-button.directive.d.ts +9 -3
- package/lib/directives/button/ask-button.directive.d.ts +3 -3
- package/lib/directives/button/ask-stroked-button.directive.d.ts +3 -3
- package/lib/directives/button/ask-text-button.directive.d.ts +3 -3
- package/package.json +1 -1
- package/public-api.d.ts +1 -0
- package/styles/colors.scss +4 -6
@@ -50,11 +50,12 @@ import * as i47 from "ngx-skeleton-loader";
|
|
50
50
|
import * as i48 from "@angular/material/tooltip";
|
51
51
|
import * as i49 from "ngx-mask";
|
52
52
|
import * as i50 from "@angular/material/progress-bar";
|
53
|
+
import * as i51 from "./components/icon/icon.component";
|
53
54
|
export declare class AsksuiteCitrusModule {
|
54
55
|
static forRoot(params?: {
|
55
56
|
flagUrl?: string;
|
56
57
|
}): ModuleWithProviders<AsksuiteCitrusModule>;
|
57
58
|
static ɵfac: i0.ɵɵFactoryDeclaration<AsksuiteCitrusModule, never>;
|
58
|
-
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.PaginationComponent, typeof i32.PaginatePipe, typeof i33.RichtextToolboxDirective, typeof i34.RichtextUrlPromptComponent, typeof i35.RichtextToolboxComponent, typeof i36.AskTextButtonDirective, typeof i37.ForceBreakLinePipe, typeof i38.ConfirmationModalComponent, typeof i39.LoadingBarComponent, typeof i40.AskStrokedButtonDirective, typeof i41.InputDirective, typeof i42.ListItemDirective], [typeof i43.CommonModule, typeof i44.FormsModule, typeof i44.ReactiveFormsModule, typeof i45.CdkOverlayOrigin, typeof i45.CdkConnectedOverlay, typeof i45.OverlayModule, typeof i46.TranslateModule, typeof i47.NgxSkeletonLoaderModule, typeof i48.MatTooltipModule, typeof i49.NgxMaskDirective, typeof i49.NgxMaskPipe, typeof i50.MatProgressBarModule], [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 i36.AskTextButtonDirective, typeof i24.ModalBodyDirective, typeof i25.ModalHeaderDirective, typeof i26.ModalFooterDirective, typeof i27.CharacterCounterComponent, typeof i28.AccordionComponent, typeof i29.ExtendablePanelComponent, typeof i30.TableComponent, typeof i31.PaginationComponent, typeof i32.PaginatePipe, typeof i33.RichtextToolboxDirective, typeof i37.ForceBreakLinePipe, typeof i39.LoadingBarComponent, typeof i40.AskStrokedButtonDirective, typeof i41.InputDirective, typeof i42.ListItemDirective]>;
|
59
|
+
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.PaginationComponent, typeof i32.PaginatePipe, typeof i33.RichtextToolboxDirective, typeof i34.RichtextUrlPromptComponent, typeof i35.RichtextToolboxComponent, typeof i36.AskTextButtonDirective, typeof i37.ForceBreakLinePipe, typeof i38.ConfirmationModalComponent, typeof i39.LoadingBarComponent, typeof i40.AskStrokedButtonDirective, typeof i41.InputDirective, typeof i42.ListItemDirective], [typeof i43.CommonModule, typeof i44.FormsModule, typeof i44.ReactiveFormsModule, typeof i45.CdkOverlayOrigin, typeof i45.CdkConnectedOverlay, typeof i45.OverlayModule, typeof i46.TranslateModule, typeof i47.NgxSkeletonLoaderModule, typeof i48.MatTooltipModule, typeof i49.NgxMaskDirective, typeof i49.NgxMaskPipe, typeof i50.MatProgressBarModule, typeof i51.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 i36.AskTextButtonDirective, typeof i24.ModalBodyDirective, typeof i25.ModalHeaderDirective, typeof i26.ModalFooterDirective, typeof i27.CharacterCounterComponent, typeof i28.AccordionComponent, typeof i29.ExtendablePanelComponent, typeof i30.TableComponent, typeof i31.PaginationComponent, typeof i32.PaginatePipe, typeof i33.RichtextToolboxDirective, typeof i37.ForceBreakLinePipe, typeof i39.LoadingBarComponent, typeof i40.AskStrokedButtonDirective, typeof i41.InputDirective, typeof i42.ListItemDirective, typeof i51.IconComponent]>;
|
59
60
|
static ɵinj: i0.ɵɵInjectorDeclaration<AsksuiteCitrusModule>;
|
60
61
|
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class IconComponent {
|
3
|
+
name: string;
|
4
|
+
protected get path(): string;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<IconComponent, never>;
|
6
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<IconComponent, "ask-icon", never, { "name": { "alias": "name"; "required": true; }; }, {}, never, never, true, never>;
|
7
|
+
}
|
@@ -1,15 +1,21 @@
|
|
1
|
-
import { ElementRef, OnChanges, SimpleChanges } from '@angular/core';
|
1
|
+
import { ElementRef, OnChanges, Renderer2, SimpleChanges, ViewContainerRef } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export declare abstract class AskBaseButtonDirective implements OnChanges {
|
4
|
+
private viewContainerRef;
|
4
5
|
private el;
|
6
|
+
private renderer;
|
5
7
|
color: ButtonColor;
|
6
8
|
size: ButtonSize;
|
7
|
-
|
9
|
+
icon: string;
|
10
|
+
private className;
|
11
|
+
private iconComponentRef?;
|
12
|
+
constructor(className: string, viewContainerRef: ViewContainerRef, el: ElementRef, renderer: Renderer2);
|
8
13
|
ngOnChanges(changes: SimpleChanges): void;
|
9
14
|
private updateColor;
|
10
15
|
private updateSize;
|
16
|
+
private updateIcon;
|
11
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<AskBaseButtonDirective, never>;
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AskBaseButtonDirective, never, never, { "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; }, {}, never, never, false, never>;
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AskBaseButtonDirective, never, never, { "color": { "alias": "color"; "required": false; }; "size": { "alias": "size"; "required": false; }; "icon": { "alias": "icon"; "required": false; }; }, {}, never, never, false, never>;
|
13
19
|
}
|
14
20
|
type ButtonSize = 'x-large' | 'large' | 'default' | 'medium' | 'small' | 'mini' | 'x-mini';
|
15
21
|
export type ButtonAppearance = 'outline' | 'text' | 'default';
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
2
|
-
import { AskBaseButtonDirective } from
|
1
|
+
import { ElementRef, Renderer2, ViewContainerRef } from '@angular/core';
|
2
|
+
import { AskBaseButtonDirective } from './ask-base-button.directive';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class AskButtonDirective extends AskBaseButtonDirective {
|
5
|
-
constructor(el: ElementRef);
|
5
|
+
constructor(viewContainerRef: ViewContainerRef, el: ElementRef, renderer: Renderer2);
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<AskButtonDirective, never>;
|
7
7
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AskButtonDirective, "button[askButton]", never, {}, {}, never, never, false, never>;
|
8
8
|
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
2
|
-
import { AskBaseButtonDirective } from
|
1
|
+
import { ElementRef, Renderer2, ViewContainerRef } from '@angular/core';
|
2
|
+
import { AskBaseButtonDirective } from './ask-base-button.directive';
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class AskStrokedButtonDirective extends AskBaseButtonDirective {
|
5
|
-
constructor(el: ElementRef);
|
5
|
+
constructor(viewContainerRef: ViewContainerRef, el: ElementRef, renderer: Renderer2);
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<AskStrokedButtonDirective, never>;
|
7
7
|
static ɵdir: i0.ɵɵDirectiveDeclaration<AskStrokedButtonDirective, "button[askStrokedButton]", never, {}, {}, never, never, false, never>;
|
8
8
|
}
|
@@ -1,8 +1,8 @@
|
|
1
|
-
import { ElementRef } from '@angular/core';
|
1
|
+
import { ElementRef, Renderer2, ViewContainerRef } from '@angular/core';
|
2
2
|
import { AskBaseButtonDirective } from "./ask-base-button.directive";
|
3
3
|
import * as i0 from "@angular/core";
|
4
4
|
export declare class AskTextButtonDirective extends AskBaseButtonDirective {
|
5
|
-
constructor(el: ElementRef);
|
5
|
+
constructor(viewContainerRef: ViewContainerRef, el: ElementRef, renderer: Renderer2);
|
6
6
|
static ɵfac: i0.ɵɵFactoryDeclaration<AskTextButtonDirective, never>;
|
7
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AskTextButtonDirective, "[askTextButton]", never, {}, {}, never, never, false, never>;
|
7
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AskTextButtonDirective, "button[askTextButton]", never, {}, {}, never, never, false, never>;
|
8
8
|
}
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
@@ -18,6 +18,7 @@ export * from './lib/components/accordion/extendable-panel/extendable-panel.comp
|
|
18
18
|
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
|
+
export * from './lib/components/icon/icon.component';
|
21
22
|
export * from './lib/directives';
|
22
23
|
export * from './lib/components/modal/directives';
|
23
24
|
export * from './lib/services/toast/toast.service';
|
package/styles/colors.scss
CHANGED
@@ -269,8 +269,6 @@ $color-light-neutral-NLA300: #13293921;
|
|
269
269
|
//TODO: REMOVE DUPLICATE SEMANTICS
|
270
270
|
$color-texticon-brand-asksuite-contrast: $color-a-600;
|
271
271
|
$color-texticon-inverse-default: $color-nl-0;
|
272
|
-
$color-texticon-contrast: $color-nla-1500;
|
273
|
-
$color-texticon-subtle: $color-nla-1200;
|
274
272
|
$color-texticon-subtlest: $color-nla-1000;
|
275
273
|
$color-texticon-disabled: $color-nla-700;
|
276
274
|
$color-texticon-link-default: $color-b-500;
|
@@ -588,12 +586,10 @@ $color-texticon-danger: $color-texticon-accent-red-contrast;
|
|
588
586
|
$color-texticon-info: $color-texticon-accent-blue-contrast;
|
589
587
|
$color-texticon-success: $color-texticon-accent-green-contrast;
|
590
588
|
$color-texticon-warning: $color-texticon-accent-yellow-contrast;
|
591
|
-
|
592
|
-
|
593
|
-
$color-divider-default: $color-nl-400;
|
594
589
|
$color-skeleton: $color-nla-200;
|
595
|
-
|
596
590
|
$color-text-link-default: $color-b-500;
|
591
|
+
$color-texticon-inverse-default: $color-nl-0;
|
592
|
+
$color-texticon-danger: $color-r-600;
|
597
593
|
|
598
594
|
:root {
|
599
595
|
// brand
|
@@ -685,6 +681,8 @@ $color-text-link-default: $color-b-500;
|
|
685
681
|
--color-divider-default: #{$color-divider-default};
|
686
682
|
--color-skeleton: #{$color-skeleton};
|
687
683
|
--color-text-link-default: #{$color-text-link-default};
|
684
|
+
--color-texticon-danger: #{$color-texticon-danger};
|
685
|
+
--color-background-danger-contrast-default: #{$color-background-danger-contrast-default};
|
688
686
|
--color-background-accent-green-subtle-default: #{$color-background-accent-green-subtle-default};
|
689
687
|
--color-background-accent-grey-contrast-default: #{$color-background-accent-grey-contrast-default};
|
690
688
|
--color-background-accent-red-subtle-default: #{$color-background-accent-red-subtle-default};
|