asksuite-citrus 2.0.0-beta.6 → 2.0.0-beta.8
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 +14 -6
- package/esm2022/lib/components/accordion/accordion.component.mjs +8 -5
- package/esm2022/lib/components/accordion/extendable-panel/extendable-panel.component.mjs +21 -4
- 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 +4 -7
- 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/index.mjs +3 -1
- package/esm2022/lib/directives/input/input.directive.mjs +19 -0
- package/esm2022/lib/directives/list-item/list-item.directive.mjs +19 -0
- package/fesm2022/asksuite-citrus.mjs +114 -55
- package/fesm2022/asksuite-citrus.mjs.map +1 -1
- package/lib/asksuite-citrus.module.d.ts +11 -9
- package/lib/components/accordion/accordion.component.d.ts +2 -1
- package/lib/components/accordion/extendable-panel/extendable-panel.component.d.ts +7 -2
- package/lib/components/dropdown-container/dropdown-container.component.d.ts +2 -4
- package/lib/directives/index.d.ts +2 -0
- package/lib/directives/input/input.directive.d.ts +6 -0
- package/lib/directives/list-item/list-item.directive.d.ts +6 -0
- package/package.json +1 -1
- package/styles/badge.scss +64 -0
- package/styles/input.scss +5 -0
- package/styles/list-item.scss +8 -0
- package/styles/styles.scss +3 -63
@@ -40,19 +40,21 @@ import * as i37 from "./pipes/force-break-line/force-break-line.pipe";
|
|
40
40
|
import * as i38 from "./components/modal/confirmation-modal/confirmation-modal.component";
|
41
41
|
import * as i39 from "./components/loading-bar/loading-bar.component";
|
42
42
|
import * as i40 from "./directives/button/ask-stroked-button.directive";
|
43
|
-
import * as i41 from "
|
44
|
-
import * as i42 from "
|
45
|
-
import * as i43 from "@angular/
|
46
|
-
import * as i44 from "@
|
47
|
-
import * as i45 from "
|
48
|
-
import * as i46 from "@
|
49
|
-
import * as i47 from "ngx-
|
50
|
-
import * as i48 from "@angular/material/
|
43
|
+
import * as i41 from "./directives/input/input.directive";
|
44
|
+
import * as i42 from "./directives/list-item/list-item.directive";
|
45
|
+
import * as i43 from "@angular/common";
|
46
|
+
import * as i44 from "@angular/forms";
|
47
|
+
import * as i45 from "@angular/cdk/overlay";
|
48
|
+
import * as i46 from "@ngx-translate/core";
|
49
|
+
import * as i47 from "ngx-skeleton-loader";
|
50
|
+
import * as i48 from "@angular/material/tooltip";
|
51
|
+
import * as i49 from "ngx-mask";
|
52
|
+
import * as i50 from "@angular/material/progress-bar";
|
51
53
|
export declare class AsksuiteCitrusModule {
|
52
54
|
static forRoot(params?: {
|
53
55
|
flagUrl?: string;
|
54
56
|
}): ModuleWithProviders<AsksuiteCitrusModule>;
|
55
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<AsksuiteCitrusModule, never>;
|
56
|
-
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
|
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]>;
|
57
59
|
static ɵinj: i0.ɵɵInjectorDeclaration<AsksuiteCitrusModule>;
|
58
60
|
}
|
@@ -2,7 +2,8 @@ import { ExtendablePanelComponent } from "./extendable-panel/extendable-panel.co
|
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export declare class AccordionComponent {
|
4
4
|
private subscriptions;
|
5
|
+
multiple: boolean;
|
5
6
|
set panels(elements: ExtendablePanelComponent[]);
|
6
7
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionComponent, never>;
|
7
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "ask-accordion", never, {}, {}, ["panels"], ["ask-extendable-panel"], false, never>;
|
8
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<AccordionComponent, "ask-accordion", never, { "multiple": { "alias": "multiple"; "required": false; }; }, {}, ["panels"], ["ask-extendable-panel"], false, never>;
|
8
9
|
}
|
@@ -1,15 +1,20 @@
|
|
1
|
-
import { ChangeDetectorRef, EventEmitter } from '@angular/core';
|
1
|
+
import { ChangeDetectorRef, EventEmitter, TemplateRef } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
3
|
export declare class ExtendablePanelComponent {
|
4
4
|
private changeRef;
|
5
5
|
isOpen: boolean;
|
6
6
|
id?: number;
|
7
7
|
highlight: boolean;
|
8
|
+
arrowPosition: 'left' | 'right';
|
9
|
+
headerTemplate: TemplateRef<any> | null;
|
10
|
+
panelClass: string;
|
11
|
+
contentGray: boolean;
|
12
|
+
isReply: boolean;
|
8
13
|
closed: EventEmitter<void>;
|
9
14
|
opened: EventEmitter<void>;
|
10
15
|
constructor(changeRef: ChangeDetectorRef);
|
11
16
|
open(): void;
|
12
17
|
close(): void;
|
13
18
|
static ɵfac: i0.ɵɵFactoryDeclaration<ExtendablePanelComponent, never>;
|
14
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ExtendablePanelComponent, "ask-extendable-panel", never, { "highlight": { "alias": "highlight"; "required": false; }; }, { "closed": "closed"; "opened": "opened"; }, never, ["[title]", "[description]", "[content]"], false, never>;
|
19
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ExtendablePanelComponent, "ask-extendable-panel", never, { "isOpen": { "alias": "isOpen"; "required": false; }; "highlight": { "alias": "highlight"; "required": false; }; "arrowPosition": { "alias": "arrowPosition"; "required": false; }; "headerTemplate": { "alias": "headerTemplate"; "required": false; }; "panelClass": { "alias": "panelClass"; "required": false; }; "contentGray": { "alias": "contentGray"; "required": false; }; "isReply": { "alias": "isReply"; "required": false; }; }, { "closed": "closed"; "opened": "opened"; }, never, ["[title]", "[description]", "[content]", "[footer]"], false, never>;
|
15
20
|
}
|
@@ -1,9 +1,7 @@
|
|
1
|
-
import {
|
1
|
+
import { TemplateRef } from '@angular/core';
|
2
2
|
import * as i0 from "@angular/core";
|
3
|
-
export declare class DropdownContainerComponent
|
3
|
+
export declare class DropdownContainerComponent {
|
4
4
|
content: TemplateRef<any>;
|
5
|
-
constructor();
|
6
|
-
ngOnInit(): void;
|
7
5
|
static ɵfac: i0.ɵɵFactoryDeclaration<DropdownContainerComponent, never>;
|
8
6
|
static ɵcmp: i0.ɵɵComponentDeclaration<DropdownContainerComponent, "ask-dropdown-container", never, { "content": { "alias": "content"; "required": false; }; }, {}, never, never, false, never>;
|
9
7
|
}
|
@@ -6,3 +6,5 @@ export * from './spinner/spinner.directive';
|
|
6
6
|
export * from './ask-dropdown.directive';
|
7
7
|
export * from './autofocus/autofocus.directive';
|
8
8
|
export * from './richtext-toolbox/richtext-toolbox.directive';
|
9
|
+
export * from './input/input.directive';
|
10
|
+
export * from './list-item/list-item.directive';
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class InputDirective {
|
3
|
+
defaultButton: boolean;
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<InputDirective, never>;
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<InputDirective, "input[askInput]", never, {}, {}, never, never, false, never>;
|
6
|
+
}
|
@@ -0,0 +1,6 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class ListItemDirective {
|
3
|
+
listItem: boolean;
|
4
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ListItemDirective, never>;
|
5
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ListItemDirective, "[askListItem]", never, {}, {}, never, never, false, never>;
|
6
|
+
}
|
package/package.json
CHANGED
@@ -0,0 +1,64 @@
|
|
1
|
+
|
2
|
+
/**
|
3
|
+
Badge
|
4
|
+
*/
|
5
|
+
/* TODO: Remove not used styles or mode to another class */
|
6
|
+
.ask-badge {
|
7
|
+
position: relative;
|
8
|
+
|
9
|
+
> .badge {
|
10
|
+
position: absolute;
|
11
|
+
display: flex;
|
12
|
+
justify-content: center;
|
13
|
+
align-items: center;
|
14
|
+
background-color: var(--bg-color);
|
15
|
+
color: #fff;
|
16
|
+
font-size: 12px;
|
17
|
+
text-overflow: ellipsis;
|
18
|
+
white-space: nowrap;
|
19
|
+
overflow: hidden;
|
20
|
+
border-radius: 50%;
|
21
|
+
box-shadow: 0 2px 6px -1px rgb(0 0 0 / 50%);
|
22
|
+
}
|
23
|
+
|
24
|
+
> .badge.-primary {
|
25
|
+
--bg-color: var(--asksuite-orange);
|
26
|
+
}
|
27
|
+
|
28
|
+
> .badge.-secondary {
|
29
|
+
--bg-color: var(--grey-800);
|
30
|
+
}
|
31
|
+
|
32
|
+
> .badge.-top {
|
33
|
+
top: -10px;
|
34
|
+
}
|
35
|
+
> .badge.-bottom {
|
36
|
+
bottom: -10px;
|
37
|
+
}
|
38
|
+
|
39
|
+
> .badge.-left {
|
40
|
+
left: -10px;
|
41
|
+
}
|
42
|
+
|
43
|
+
> .badge.-right {
|
44
|
+
right: -10px;
|
45
|
+
}
|
46
|
+
|
47
|
+
> .badge.-small {
|
48
|
+
width: 18px;
|
49
|
+
height: 18px;
|
50
|
+
font-size: 10px;
|
51
|
+
}
|
52
|
+
> .badge.-regular {
|
53
|
+
width: 22px;
|
54
|
+
height: 22px;
|
55
|
+
font-size: 11px;
|
56
|
+
}
|
57
|
+
|
58
|
+
> .badge.-large {
|
59
|
+
width: 28px;
|
60
|
+
height: 28px;
|
61
|
+
font-size: 12px;
|
62
|
+
}
|
63
|
+
}
|
64
|
+
|
package/styles/styles.scss
CHANGED
@@ -12,6 +12,9 @@
|
|
12
12
|
@import './modal';
|
13
13
|
@import './ask-mixins';
|
14
14
|
@import './quill';
|
15
|
+
@import './input';
|
16
|
+
@import './badge';
|
17
|
+
@import './list-item';
|
15
18
|
|
16
19
|
/*
|
17
20
|
* Material Icons
|
@@ -48,69 +51,6 @@ input {
|
|
48
51
|
font-size: $font-md;
|
49
52
|
}
|
50
53
|
|
51
|
-
/**
|
52
|
-
Badge
|
53
|
-
*/
|
54
|
-
|
55
|
-
.ask-badge {
|
56
|
-
position: relative;
|
57
|
-
|
58
|
-
> .badge {
|
59
|
-
position: absolute;
|
60
|
-
display: flex;
|
61
|
-
justify-content: center;
|
62
|
-
align-items: center;
|
63
|
-
background-color: var(--bg-color);
|
64
|
-
color: #fff;
|
65
|
-
font-size: 12px;
|
66
|
-
text-overflow: ellipsis;
|
67
|
-
white-space: nowrap;
|
68
|
-
overflow: hidden;
|
69
|
-
border-radius: 50%;
|
70
|
-
box-shadow: 0 2px 6px -1px rgb(0 0 0 / 50%);
|
71
|
-
}
|
72
|
-
|
73
|
-
> .badge.-primary {
|
74
|
-
--bg-color: var(--asksuite-orange);
|
75
|
-
}
|
76
|
-
|
77
|
-
> .badge.-secondary {
|
78
|
-
--bg-color: var(--grey-800);
|
79
|
-
}
|
80
|
-
|
81
|
-
> .badge.-top {
|
82
|
-
top: -10px;
|
83
|
-
}
|
84
|
-
> .badge.-bottom {
|
85
|
-
bottom: -10px;
|
86
|
-
}
|
87
|
-
|
88
|
-
> .badge.-left {
|
89
|
-
left: -10px;
|
90
|
-
}
|
91
|
-
|
92
|
-
> .badge.-right {
|
93
|
-
right: -10px;
|
94
|
-
}
|
95
|
-
|
96
|
-
> .badge.-small {
|
97
|
-
width: 18px;
|
98
|
-
height: 18px;
|
99
|
-
font-size: 10px;
|
100
|
-
}
|
101
|
-
> .badge.-regular {
|
102
|
-
width: 22px;
|
103
|
-
height: 22px;
|
104
|
-
font-size: 11px;
|
105
|
-
}
|
106
|
-
|
107
|
-
> .badge.-large {
|
108
|
-
width: 28px;
|
109
|
-
height: 28px;
|
110
|
-
font-size: 12px;
|
111
|
-
}
|
112
|
-
}
|
113
|
-
|
114
54
|
|
115
55
|
/*
|
116
56
|
* Material Icons
|