@sixbell-telco/sdk 0.2.1 → 0.4.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/CHANGELOG.md +54 -0
- package/README.md +96 -55
- package/_index.scss +0 -2
- package/assets/styles/combobox.scss +17 -17
- package/components/accordion/accordion-item/accordion-item.component.d.ts +1 -2
- package/components/avatar/src/avatar.component.d.ts +11 -18
- package/components/button/src/button.component.d.ts +22 -41
- package/components/card/card-actions/card-actions.component.d.ts +8 -0
- package/components/card/card-content/card-content.component.d.ts +5 -0
- package/components/card/card-title/card-title.component.d.ts +5 -0
- package/components/card/public-api.d.ts +3 -0
- package/components/card/src/card.component.d.ts +19 -20
- package/components/countdown/src/countdown.component.d.ts +6 -1
- package/components/dropdown/dropdown-item/dropdown-item.component.d.ts +10 -0
- package/components/dropdown/public-api.d.ts +1 -0
- package/components/dropdown/src/dropdown.component.d.ts +24 -42
- package/components/dual-list/src/dual-list.component.d.ts +11 -60
- package/components/file-upload/file-uploader/src/file-uploader.component.d.ts +2 -5
- package/components/forms/checkbox/src/checkbox.component.d.ts +2 -3
- package/components/forms/input/src/input.component.d.ts +7 -8
- package/components/forms/radio/src/radio.component.d.ts +2 -6
- package/components/forms/select/src/select.component.d.ts +5 -8
- package/components/forms/textarea/src/textarea.component.d.ts +5 -11
- package/components/link/src/link.component.d.ts +18 -45
- package/components/modal/modal-actions/modal-actions.component.d.ts +8 -0
- package/components/modal/modal-content/modal-content.component.d.ts +5 -0
- package/components/modal/modal-title/modal-title.component.d.ts +5 -0
- package/components/modal/public-api.d.ts +3 -0
- package/components/modal/src/modal.component.d.ts +10 -14
- package/components/product-card/src/product-card.component.d.ts +5 -9
- package/components/tab/src/tab.component.d.ts +1 -2
- package/components/table/src/table.component.d.ts +14 -19
- package/directives/click-outside/index.d.ts +5 -0
- package/directives/click-outside/public-api.d.ts +1 -0
- package/directives/click-outside/src/click-outside.directive.d.ts +10 -0
- package/directives/typography/src/typography.directive.d.ts +3 -4
- package/esm2022/components/accordion/accordion-item/accordion-item.component.mjs +5 -6
- package/esm2022/components/avatar/src/avatar.component.mjs +27 -43
- package/esm2022/components/button/src/button.component.mjs +43 -118
- package/esm2022/components/card/card-actions/card-actions.component.mjs +22 -0
- package/esm2022/components/card/card-content/card-content.component.mjs +12 -0
- package/esm2022/components/card/card-title/card-title.component.mjs +12 -0
- package/esm2022/components/card/public-api.mjs +4 -1
- package/esm2022/components/card/src/card.component.mjs +20 -45
- package/esm2022/components/countdown/src/countdown.component.mjs +10 -3
- package/esm2022/components/dropdown/dropdown-item/dropdown-item.component.mjs +24 -0
- package/esm2022/components/dropdown/public-api.mjs +2 -1
- package/esm2022/components/dropdown/src/dropdown.component.mjs +65 -101
- package/esm2022/components/dual-list/src/dual-list.component.mjs +23 -63
- package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +3 -3
- package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +3 -7
- package/esm2022/components/forms/checkbox/src/checkbox.component.mjs +9 -8
- package/esm2022/components/forms/combobox/src/combobox.component.mjs +3 -3
- package/esm2022/components/forms/datepicker/src/datepicker.component.mjs +2 -2
- package/esm2022/components/forms/form-error/src/form-error.component.mjs +3 -3
- package/esm2022/components/forms/input/src/input.component.mjs +51 -45
- package/esm2022/components/forms/radio/src/radio.component.mjs +5 -18
- package/esm2022/components/forms/range/src/range.component.mjs +3 -3
- package/esm2022/components/forms/select/src/select.component.mjs +24 -34
- package/esm2022/components/forms/switch/src/switch.component.mjs +3 -3
- package/esm2022/components/forms/textarea/src/textarea.component.mjs +35 -48
- package/esm2022/components/forms/toggle/src/toggle.component.mjs +3 -3
- package/esm2022/components/link/src/link.component.mjs +27 -183
- package/esm2022/components/modal/modal-actions/modal-actions.component.mjs +22 -0
- package/esm2022/components/modal/modal-content/modal-content.component.mjs +12 -0
- package/esm2022/components/modal/modal-title/modal-title.component.mjs +13 -0
- package/esm2022/components/modal/public-api.mjs +4 -1
- package/esm2022/components/modal/src/modal.component.mjs +29 -32
- package/esm2022/components/notification/src/notification.component.mjs +2 -5
- package/esm2022/components/paginator/components/pagination-item/pagination-item.component.mjs +24 -24
- package/esm2022/components/product-card/src/product-card.component.mjs +5 -14
- package/esm2022/components/progress/src/progress.component.mjs +3 -3
- package/esm2022/components/tab/src/tab.component.mjs +2 -4
- package/esm2022/components/table/src/table.component.mjs +35 -40
- package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +3 -3
- package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +1 -1
- package/esm2022/components/toast/toast-message/toast-message.component.mjs +4 -4
- package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +4 -4
- package/esm2022/components/wizard/wizard-step/wizard-step.component.mjs +3 -3
- package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +3 -3
- package/esm2022/directives/click-outside/public-api.mjs +2 -0
- package/esm2022/directives/click-outside/sixbell-telco-sdk-directives-click-outside.mjs +5 -0
- package/esm2022/directives/click-outside/src/click-outside.directive.mjs +30 -0
- package/esm2022/directives/typography/src/typography.directive.mjs +19 -18
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs +4 -5
- package/fesm2022/sixbell-telco-sdk-components-accordion.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +26 -42
- package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +43 -118
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +57 -46
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +9 -2
- package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +86 -101
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +21 -61
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +2 -6
- package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +8 -7
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +51 -45
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +4 -17
- package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +23 -33
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +34 -47
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-link.mjs +27 -183
- package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs +67 -32
- package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs +1 -4
- package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +23 -23
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +4 -13
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +1 -3
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +37 -42
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +7 -7
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs +37 -0
- package/fesm2022/sixbell-telco-sdk-directives-click-outside.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +18 -17
- package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
- package/package.json +13 -7
|
@@ -1,62 +1,35 @@
|
|
|
1
|
-
import { OnInit } from '@angular/core';
|
|
2
1
|
import { Router } from '@angular/router';
|
|
3
|
-
import { TypographyVariantProps } from '@sixbell-telco/sdk/directives/typography';
|
|
4
2
|
import * as i0 from "@angular/core";
|
|
5
3
|
export type Route = {
|
|
6
4
|
label: string;
|
|
7
5
|
path: string;
|
|
8
6
|
};
|
|
9
|
-
export declare const
|
|
10
|
-
variant?: "primary" | "secondary" | "
|
|
11
|
-
shape?: "round-none" | "round-sm" | "round-md" | "round-lg" | null | undefined;
|
|
12
|
-
padding?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
13
|
-
alignment?: "center" | "left" | "right" | "between" | null | undefined;
|
|
14
|
-
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
15
|
-
export type LinkContainerVariantProps = 'primary' | 'secondary' | 'accent' | 'success' | 'info' | 'warning' | 'error' | 'btn-primary' | 'btn-secondary' | 'btn-warning' | 'btn-error' | 'btn-collapsable-primary';
|
|
16
|
-
export type LinkContainerShapeProps = 'round-none' | 'round-sm' | 'round-md' | 'round-lg';
|
|
17
|
-
export type LinkContainerPaddingProps = 'none' | 'sm' | 'md' | 'lg';
|
|
18
|
-
export type LinkContainerAlignmentProps = 'center' | 'left' | 'right' | 'between';
|
|
19
|
-
export declare const linkIcon: (props?: ({
|
|
7
|
+
export declare const linkComponent: (props?: ({
|
|
8
|
+
variant?: "primary" | "secondary" | "tertiary" | "accent" | "success" | "info" | "warning" | "error" | null | undefined;
|
|
20
9
|
iconPosition?: "left" | "right" | null | undefined;
|
|
21
10
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
22
|
-
export type
|
|
11
|
+
export type LinkVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'success' | 'info' | 'warning' | 'error' | null | undefined;
|
|
12
|
+
export type LinkIconPositionProps = 'left' | 'right' | null | undefined;
|
|
23
13
|
export type LinkProps = {
|
|
24
|
-
variant?:
|
|
25
|
-
shape?: LinkContainerShapeProps;
|
|
26
|
-
padding?: LinkContainerPaddingProps;
|
|
27
|
-
alignment?: LinkContainerAlignmentProps;
|
|
14
|
+
variant?: LinkVariantProps;
|
|
28
15
|
iconPosition?: LinkIconPositionProps;
|
|
29
16
|
};
|
|
30
|
-
export declare
|
|
31
|
-
export declare class LinkComponent implements OnInit {
|
|
17
|
+
export declare class LinkComponent {
|
|
32
18
|
private router;
|
|
33
|
-
variant: import("@angular/core").InputSignal<
|
|
34
|
-
shape: import("@angular/core").InputSignal<LinkContainerShapeProps | undefined>;
|
|
35
|
-
padding: import("@angular/core").InputSignal<LinkContainerPaddingProps | undefined>;
|
|
36
|
-
alignment: import("@angular/core").InputSignal<LinkContainerAlignmentProps | undefined>;
|
|
37
|
-
iconPosition: import("@angular/core").InputSignal<LinkIconPositionProps | undefined>;
|
|
38
|
-
fontSize: import("@angular/core").InputSignal<TypographyVariantProps>;
|
|
39
|
-
containerClasses: import("@angular/core").InputSignal<string>;
|
|
40
|
-
iconClasses: import("@angular/core").InputSignal<string>;
|
|
41
|
-
label: import("@angular/core").InputSignal<string>;
|
|
19
|
+
variant: import("@angular/core").InputSignal<LinkVariantProps>;
|
|
42
20
|
icon: import("@angular/core").InputSignal<string | undefined>;
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
route: import("@angular/core").InputSignal<Route | undefined>;
|
|
48
|
-
childrenRoutes: import("@angular/core").InputSignal<Route[] | undefined>;
|
|
49
|
-
routerLinkActiveOptions: import("@angular/core").InputSignal<{
|
|
21
|
+
iconPosition: import("@angular/core").InputSignal<LinkIconPositionProps>;
|
|
22
|
+
label: import("@angular/core").InputSignal<string>;
|
|
23
|
+
routerLink: import("@angular/core").InputSignal<string | any[] | import("@angular/router").UrlTree | null | undefined>;
|
|
24
|
+
routerLinkOptions: import("@angular/core").InputSignal<{
|
|
50
25
|
exact: boolean;
|
|
51
|
-
}>;
|
|
26
|
+
} | import("@angular/router").IsActiveMatchOptions>;
|
|
27
|
+
routerLinkActive: import("@angular/core").InputSignal<string | string[]>;
|
|
28
|
+
queryParams: import("@angular/core").InputSignal<import("@angular/router").Params | null | undefined>;
|
|
29
|
+
queryParamsHandling: import("@angular/core").InputSignal<import("@angular/router").QueryParamsHandling | null | undefined>;
|
|
30
|
+
fragment: import("@angular/core").InputSignal<string | undefined>;
|
|
52
31
|
constructor(router: Router);
|
|
53
|
-
get
|
|
54
|
-
get iconClass(): string;
|
|
55
|
-
get dropdownClass(): string;
|
|
56
|
-
get isOpenedClass(): string;
|
|
57
|
-
ngOnInit(): void;
|
|
58
|
-
updateOpenedState(currentPath: string): void;
|
|
59
|
-
toggle(): void;
|
|
32
|
+
get componentClass(): string;
|
|
60
33
|
static ɵfac: i0.ɵɵFactoryDeclaration<LinkComponent, never>;
|
|
61
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "st-link", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "
|
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<LinkComponent, "st-link", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "iconPosition": { "alias": "iconPosition"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "routerLink": { "alias": "routerLink"; "required": false; "isSignal": true; }; "routerLinkOptions": { "alias": "routerLinkOptions"; "required": false; "isSignal": true; }; "routerLinkActive": { "alias": "routerLinkActive"; "required": false; "isSignal": true; }; "queryParams": { "alias": "queryParams"; "required": false; "isSignal": true; }; "queryParamsHandling": { "alias": "queryParamsHandling"; "required": false; "isSignal": true; }; "fragment": { "alias": "fragment"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
62
35
|
}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export type ModalActionsAligmentProps = 'left' | 'right' | 'center';
|
|
3
|
+
export declare class ModalActionsComponent {
|
|
4
|
+
alignment: import("@angular/core").InputSignal<ModalActionsAligmentProps>;
|
|
5
|
+
get componentClass(): string;
|
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalActionsComponent, never>;
|
|
7
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalActionsComponent, "st-modal-actions", never, { "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
8
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ModalContentComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalContentComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalContentComponent, "st-modal-content", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
export declare class ModalTitleComponent {
|
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ModalTitleComponent, never>;
|
|
4
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalTitleComponent, "st-modal-title", never, {}, {}, never, ["*"], true, never>;
|
|
5
|
+
}
|
|
@@ -1,36 +1,32 @@
|
|
|
1
1
|
import { ElementRef } from '@angular/core';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare const modalComponent: (props?: ({
|
|
4
|
-
variant?: "primary" | null | undefined;
|
|
5
|
-
shape?: "round-sm" | "round-md" | "round-lg" | null | undefined;
|
|
6
|
-
padding?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
7
4
|
width?: "full" | "fit" | null | undefined;
|
|
5
|
+
aligment?: "center" | "top" | "bottom" | null | undefined;
|
|
8
6
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
-
export type ModalVariantProps = 'primary' | null | undefined;
|
|
10
|
-
export type ModalShapeProps = 'round-sm' | 'round-md' | 'round-lg' | null | undefined;
|
|
11
7
|
export type ModalPaddingProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;
|
|
12
8
|
export type ModalWidthProps = 'full' | 'fit' | null | undefined;
|
|
9
|
+
export type ModalAlignmentProps = 'top' | 'center' | 'bottom' | null | undefined;
|
|
13
10
|
export type ModalProps = {
|
|
14
|
-
variant?: ModalVariantProps;
|
|
15
|
-
shape?: ModalShapeProps;
|
|
16
11
|
padding?: ModalPaddingProps;
|
|
17
12
|
width?: ModalWidthProps;
|
|
13
|
+
alignment?: ModalAlignmentProps;
|
|
18
14
|
};
|
|
19
15
|
export declare class ModalComponent {
|
|
20
|
-
variant: import("@angular/core").InputSignal<ModalVariantProps>;
|
|
21
|
-
shape: import("@angular/core").InputSignal<ModalShapeProps>;
|
|
22
|
-
padding: import("@angular/core").InputSignal<ModalPaddingProps>;
|
|
23
16
|
width: import("@angular/core").InputSignal<ModalWidthProps>;
|
|
24
|
-
|
|
25
|
-
label: import("@angular/core").InputSignal<string>;
|
|
17
|
+
alignment: import("@angular/core").InputSignal<ModalAlignmentProps>;
|
|
26
18
|
modalId: import("@angular/core").InputSignal<string>;
|
|
27
19
|
onClickOutside: import("@angular/core").OutputEmitterRef<void>;
|
|
20
|
+
iconClose: string;
|
|
28
21
|
dialog: import("@angular/core").Signal<ElementRef<HTMLDialogElement> | undefined>;
|
|
29
|
-
opened: import("@angular/core").
|
|
22
|
+
opened: import("@angular/core").ModelSignal<boolean>;
|
|
30
23
|
openedEffect: import("@angular/core").EffectRef;
|
|
31
24
|
get componentClass(): string;
|
|
25
|
+
get modalClass(): string;
|
|
32
26
|
handleOpen(): void;
|
|
33
27
|
handleClose(): void;
|
|
28
|
+
handleCloseClick(): void;
|
|
29
|
+
handleCancelClick(event: Event): void;
|
|
34
30
|
static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
|
|
35
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "st-modal", never, { "
|
|
31
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ModalComponent, "st-modal", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "alignment": { "alias": "alignment"; "required": false; "isSignal": true; }; "modalId": { "alias": "modalId"; "required": true; "isSignal": true; }; "opened": { "alias": "opened"; "required": false; "isSignal": true; }; }, { "onClickOutside": "onClickOutside"; "opened": "openedChange"; }, never, ["st-modal-title", "st-modal-content", "st-modal-actions"], true, never>;
|
|
36
32
|
}
|
|
@@ -3,21 +3,19 @@ import { ProductCardContentDirective } from '../directives/product-card-content.
|
|
|
3
3
|
import { ProductCardHeaderDirective } from '../directives/product-card-header.directive';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
export declare const productCardContainer: (props?: ({
|
|
6
|
-
shadow?: "none" | "primary" |
|
|
6
|
+
shadow?: "none" | "primary" | null | undefined;
|
|
7
7
|
height?: "fit" | "auto" | "full" | "min-content" | "max-content" | null | undefined;
|
|
8
8
|
width?: "fit" | "auto" | "full" | "min-content" | "max-content" | null | undefined;
|
|
9
|
-
shape?: "round-sm" | "round-md" | "round-lg" | null | undefined;
|
|
10
9
|
size?: "sm" | "md" | null | undefined;
|
|
11
10
|
figurePosition?: "top" | "bottom" | "side" | null | undefined;
|
|
12
11
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
13
|
-
export type ProductCardContainerShadowProps = 'none' | 'primary' |
|
|
12
|
+
export type ProductCardContainerShadowProps = 'none' | 'primary' | null | undefined;
|
|
14
13
|
export type ProductCardContainerHeightProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | null | undefined;
|
|
15
14
|
export type ProductCardContainerWidthProps = 'fit' | 'auto' | 'full' | 'min-content' | 'max-content' | null | undefined;
|
|
16
|
-
export type ProductCardContainerShapeProps = 'round-sm' | 'round-md' | 'round-lg' | null | undefined;
|
|
17
15
|
export type ProductCardContainerSizeProps = 'sm' | 'md' | null | undefined;
|
|
18
16
|
export type ProductCardContainerFigurePositionProps = 'top' | 'bottom' | 'side' | null | undefined;
|
|
19
17
|
export declare const productCardFigure: (props?: ({
|
|
20
|
-
figureBackground?: "none" | "primary" | "
|
|
18
|
+
figureBackground?: "none" | "primary" | "image" | "secondary" | "warning" | "error" | "neutral" | null | undefined;
|
|
21
19
|
figureAlignment?: "auto" | "center" | "start" | "end" | null | undefined;
|
|
22
20
|
figurePaddingY?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
23
21
|
figurePaddingX?: "none" | "sm" | "md" | "lg" | null | undefined;
|
|
@@ -30,7 +28,6 @@ export type ProductCardVariantProps = {
|
|
|
30
28
|
shadow?: ProductCardContainerShadowProps;
|
|
31
29
|
height?: ProductCardContainerHeightProps;
|
|
32
30
|
width?: ProductCardContainerWidthProps;
|
|
33
|
-
shape?: ProductCardContainerShapeProps;
|
|
34
31
|
size?: ProductCardContainerSizeProps;
|
|
35
32
|
figureBackground?: ProductCardFigureBackgroundProps;
|
|
36
33
|
figurePosition?: ProductCardContainerFigurePositionProps;
|
|
@@ -38,12 +35,11 @@ export type ProductCardVariantProps = {
|
|
|
38
35
|
figurePaddingY?: ProductCardFigurePaddingYProps;
|
|
39
36
|
figurePaddingX?: ProductCardFigurePaddingXProps;
|
|
40
37
|
};
|
|
41
|
-
export declare const productCardComponent: ({ shadow, height, width,
|
|
38
|
+
export declare const productCardComponent: ({ shadow, height, width, size, figureBackground, figurePosition, figureAlignment, figurePaddingY, figurePaddingX, }?: ProductCardVariantProps) => string;
|
|
42
39
|
export declare class ProductCardComponent {
|
|
43
40
|
shadow: import("@angular/core").InputSignal<ProductCardContainerShadowProps>;
|
|
44
41
|
height: import("@angular/core").InputSignal<ProductCardContainerHeightProps>;
|
|
45
42
|
width: import("@angular/core").InputSignal<ProductCardContainerWidthProps>;
|
|
46
|
-
shape: import("@angular/core").InputSignal<ProductCardContainerShapeProps>;
|
|
47
43
|
size: import("@angular/core").InputSignal<ProductCardContainerSizeProps>;
|
|
48
44
|
figurePosition: import("@angular/core").InputSignal<ProductCardContainerFigurePositionProps>;
|
|
49
45
|
figureBackground: import("@angular/core").InputSignal<ProductCardFigureBackgroundProps>;
|
|
@@ -67,5 +63,5 @@ export declare class ProductCardComponent {
|
|
|
67
63
|
get titleClass(): string;
|
|
68
64
|
get actionsClass(): string;
|
|
69
65
|
static ɵfac: i0.ɵɵFactoryDeclaration<ProductCardComponent, never>;
|
|
70
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<ProductCardComponent, "st-product-card", never, { "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "
|
|
66
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<ProductCardComponent, "st-product-card", never, { "shadow": { "alias": "shadow"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "width": { "alias": "width"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "figurePosition": { "alias": "figurePosition"; "required": false; "isSignal": true; }; "figureBackground": { "alias": "figureBackground"; "required": false; "isSignal": true; }; "figureAlignment": { "alias": "figureAlignment"; "required": false; "isSignal": true; }; "figurePaddingY": { "alias": "figurePaddingY"; "required": false; "isSignal": true; }; "figurePaddingX": { "alias": "figurePaddingX"; "required": false; "isSignal": true; }; "containerClasses": { "alias": "containerClasses"; "required": false; "isSignal": true; }; "titleClasses": { "alias": "titleClasses"; "required": false; "isSignal": true; }; "actionsClasses": { "alias": "actionsClasses"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; }, {}, ["header", "content", "actions"], never, true, never>;
|
|
71
67
|
}
|
|
@@ -18,10 +18,9 @@ export type TabProps = {
|
|
|
18
18
|
export declare class TabComponent {
|
|
19
19
|
variant: import("@angular/core").InputSignal<TabVariantProps>;
|
|
20
20
|
size: import("@angular/core").InputSignal<TabSizeProps>;
|
|
21
|
-
classes: import("@angular/core").InputSignal<string>;
|
|
22
21
|
disabled: import("@angular/core").InputSignal<boolean>;
|
|
23
22
|
active: import("@angular/core").InputSignal<boolean>;
|
|
24
23
|
get componentClass(): string;
|
|
25
24
|
static ɵfac: i0.ɵɵFactoryDeclaration<TabComponent, never>;
|
|
26
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "st-tab", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "
|
|
25
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TabComponent, "st-tab", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
27
26
|
}
|
|
@@ -3,27 +3,18 @@ import { TableRowCheckboxComponent } from '../table-row-checkbox/table-row-check
|
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
export type PaginationType = 'default' | 'dots';
|
|
5
5
|
export declare const tableContent: (props?: ({
|
|
6
|
-
variant?: "default" | "zebra" | null | undefined;
|
|
7
6
|
size?: "xs" | "sm" | "md" | "lg" | null | undefined;
|
|
8
7
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
9
|
-
export type TableContentVariantProps = 'default' | 'zebra' | null | undefined;
|
|
10
8
|
export type TableContentSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;
|
|
11
9
|
export declare const tableContainer: (props?: ({
|
|
12
|
-
|
|
13
|
-
containerHeight?: "sm" | "md" | "lg" | "auto" | "full" | null | undefined;
|
|
14
|
-
containerShape?: "round-sm" | "round-md" | "round-lg" | null | undefined;
|
|
10
|
+
containerHeight?: "sm" | "md" | "lg" | "auto" | "full" | "xl" | null | undefined;
|
|
15
11
|
} & import("class-variance-authority/types").ClassProp) | undefined) => string;
|
|
16
|
-
export type
|
|
17
|
-
export type TableContainerHeightProps = 'auto' | 'full' | 'sm' | 'md' | 'lg' | null | undefined;
|
|
18
|
-
export type TableContainerShapeProps = 'round-sm' | 'round-md' | 'round-lg' | null | undefined;
|
|
12
|
+
export type TableContainerHeightProps = 'auto' | 'full' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;
|
|
19
13
|
export type TableVariantProps = {
|
|
20
14
|
size?: TableContentSizeProps;
|
|
21
|
-
variant?: TableContentVariantProps;
|
|
22
15
|
containerHeight?: TableContainerHeightProps;
|
|
23
|
-
containerShadow?: TableContainerShadowProps;
|
|
24
|
-
containerShape?: TableContainerShapeProps;
|
|
25
16
|
};
|
|
26
|
-
export declare const tableComponent: ({ size,
|
|
17
|
+
export declare const tableComponent: ({ size, containerHeight }?: TableVariantProps) => string;
|
|
27
18
|
export type TablePagination = {
|
|
28
19
|
id: string;
|
|
29
20
|
currentPage: number;
|
|
@@ -31,14 +22,16 @@ export type TablePagination = {
|
|
|
31
22
|
search: string;
|
|
32
23
|
};
|
|
33
24
|
export declare class TableComponent {
|
|
34
|
-
variant: import("@angular/core").InputSignal<TableContentVariantProps>;
|
|
35
25
|
size: import("@angular/core").InputSignal<TableContentSizeProps>;
|
|
36
26
|
height: import("@angular/core").InputSignal<TableContainerHeightProps>;
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
containerClasses: import("@angular/core").InputSignal<string>;
|
|
27
|
+
pinRows: import("@angular/core").InputSignal<boolean>;
|
|
28
|
+
pinColumns: import("@angular/core").InputSignal<boolean>;
|
|
29
|
+
zebra: import("@angular/core").InputSignal<boolean>;
|
|
41
30
|
paginatorType: import("@angular/core").InputSignal<PaginationType>;
|
|
31
|
+
labelEntriesByPage: import("@angular/core").InputSignal<string>;
|
|
32
|
+
labelShowEntriesOf: import("@angular/core").InputSignal<string>;
|
|
33
|
+
labelShowEntries: import("@angular/core").InputSignal<string>;
|
|
34
|
+
infoIcon: string;
|
|
42
35
|
data: import("@angular/core").InputSignal<unknown[]>;
|
|
43
36
|
totalItems: import("@angular/core").InputSignal<number>;
|
|
44
37
|
error: import("@angular/core").InputSignal<string>;
|
|
@@ -48,10 +41,12 @@ export declare class TableComponent {
|
|
|
48
41
|
onPageSizeChange: import("@angular/core").OutputEmitterRef<number>;
|
|
49
42
|
showItemsPerPage: import("@angular/core").InputSignal<boolean>;
|
|
50
43
|
showEntries: import("@angular/core").InputSignal<boolean>;
|
|
44
|
+
showPagination: import("@angular/core").InputSignal<boolean>;
|
|
51
45
|
paginationRange: import("@angular/core").Signal<string>;
|
|
52
46
|
handlePageChange(page: number): void;
|
|
53
47
|
handlePageSizeChange(size: number): void;
|
|
54
|
-
get
|
|
48
|
+
get tableClass(): string;
|
|
49
|
+
get tableContainerClass(): string;
|
|
55
50
|
get containerClass(): string;
|
|
56
51
|
header: import("@angular/core").Signal<TableHeaderCheckboxComponent | undefined>;
|
|
57
52
|
rows: import("@angular/core").Signal<readonly TableRowCheckboxComponent[]>;
|
|
@@ -62,5 +57,5 @@ export declare class TableComponent {
|
|
|
62
57
|
handleToggleCheckbox(value: boolean, identifier: unknown): void;
|
|
63
58
|
private clearList;
|
|
64
59
|
static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, never>;
|
|
65
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "st-table", never, { "
|
|
60
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<TableComponent, "st-table", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "pinRows": { "alias": "pinRows"; "required": false; "isSignal": true; }; "pinColumns": { "alias": "pinColumns"; "required": false; "isSignal": true; }; "zebra": { "alias": "zebra"; "required": false; "isSignal": true; }; "paginatorType": { "alias": "paginatorType"; "required": false; "isSignal": true; }; "labelEntriesByPage": { "alias": "labelEntriesByPage"; "required": false; "isSignal": true; }; "labelShowEntriesOf": { "alias": "labelShowEntriesOf"; "required": false; "isSignal": true; }; "labelShowEntries": { "alias": "labelShowEntries"; "required": false; "isSignal": true; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "error": { "alias": "error"; "required": false; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": false; "isSignal": true; }; "maxSize": { "alias": "maxSize"; "required": false; "isSignal": true; }; "showItemsPerPage": { "alias": "showItemsPerPage"; "required": false; "isSignal": true; }; "showEntries": { "alias": "showEntries"; "required": false; "isSignal": true; }; "showPagination": { "alias": "showPagination"; "required": false; "isSignal": true; }; }, { "onPageChange": "onPageChange"; "onPageSizeChange": "onPageSizeChange"; "onCheck": "onCheck"; }, ["header", "rows"], ["thead", "tbody"], true, never>;
|
|
66
61
|
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './src/click-outside.directive';
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
import { ElementRef } from '@angular/core';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class ClickOutsideDirective {
|
|
4
|
+
private elementRef;
|
|
5
|
+
clickOutside: import("@angular/core").OutputEmitterRef<void>;
|
|
6
|
+
constructor(elementRef: ElementRef);
|
|
7
|
+
onClickOutside(event: MouseEvent): void;
|
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<ClickOutsideDirective, never>;
|
|
9
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<ClickOutsideDirective, "[clickOutside]", never, {}, { "clickOutside": "clickOutside"; }, never, never, true, never>;
|
|
10
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
export type TypographyVariantProps = 'h1
|
|
3
|
-
export type TypographyColorProps = '
|
|
2
|
+
export type TypographyVariantProps = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'body-sm' | 'body-xs' | 'inherit' | null | undefined;
|
|
3
|
+
export type TypographyColorProps = 'base' | 'base-placeholder' | 'inherit' | null | undefined;
|
|
4
4
|
export type TypographyFontWeightProps = 'bold' | 'semibold' | 'medium' | 'normal' | 'inherit' | null | undefined;
|
|
5
5
|
export type TypographyProps = {
|
|
6
6
|
variant?: TypographyVariantProps;
|
|
@@ -11,10 +11,9 @@ export declare class TypographyDirective {
|
|
|
11
11
|
variant: import("@angular/core").InputSignal<TypographyVariantProps>;
|
|
12
12
|
color: import("@angular/core").InputSignal<TypographyColorProps>;
|
|
13
13
|
fontWeight: import("@angular/core").InputSignal<TypographyFontWeightProps>;
|
|
14
|
-
classes: import("@angular/core").InputSignal<string>;
|
|
15
14
|
private element;
|
|
16
15
|
private renderer;
|
|
17
16
|
classListEffect: import("@angular/core").EffectRef;
|
|
18
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<TypographyDirective, never>;
|
|
19
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<TypographyDirective, "[typography]", never, { "variant": { "alias": "
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TypographyDirective, "[typography]", never, { "variant": { "alias": "tyVariant"; "required": false; "isSignal": true; }; "color": { "alias": "tyColor"; "required": false; "isSignal": true; }; "fontWeight": { "alias": "tyFontWeight"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
19
|
}
|
|
@@ -4,7 +4,7 @@ import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
|
4
4
|
import { cva } from 'class-variance-authority';
|
|
5
5
|
import * as i0 from "@angular/core";
|
|
6
6
|
import * as i1 from "../src/accordion.component";
|
|
7
|
-
export const accordionItemComponent = cva(['collapse join-item border border-
|
|
7
|
+
export const accordionItemComponent = cva(['collapse join-item border border-neutral'], {
|
|
8
8
|
variants: {
|
|
9
9
|
variant: {
|
|
10
10
|
default: [],
|
|
@@ -21,7 +21,6 @@ export class AccordionItemComponent {
|
|
|
21
21
|
header = input('');
|
|
22
22
|
opened = input(false);
|
|
23
23
|
variant = input();
|
|
24
|
-
classes = input('');
|
|
25
24
|
name;
|
|
26
25
|
type;
|
|
27
26
|
constructor(accordion) {
|
|
@@ -30,15 +29,15 @@ export class AccordionItemComponent {
|
|
|
30
29
|
this.type = this.accordion.type() === 'single' ? 'radio' : 'checkbox';
|
|
31
30
|
}
|
|
32
31
|
get componentClass() {
|
|
33
|
-
return cn(accordionItemComponent({ variant: this.variant() })
|
|
32
|
+
return cn(accordionItemComponent({ variant: this.variant() }));
|
|
34
33
|
}
|
|
35
34
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AccordionItemComponent, deps: [{ token: i1.AccordionComponent, host: true }], target: i0.ɵɵFactoryTarget.Component });
|
|
36
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: AccordionItemComponent, isStandalone: true, selector: "st-accordion-item", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }
|
|
35
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "18.2.12", type: AccordionItemComponent, isStandalone: true, selector: "st-accordion-item", inputs: { header: { classPropertyName: "header", publicName: "header", isSignal: true, isRequired: false, transformFunction: null }, opened: { classPropertyName: "opened", publicName: "opened", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"componentClass\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t{{ header() }}\n\t\t</div>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight"] }] });
|
|
37
36
|
}
|
|
38
37
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AccordionItemComponent, decorators: [{
|
|
39
38
|
type: Component,
|
|
40
|
-
args: [{ selector: 'st-accordion-item', standalone: true, imports: [TypographyDirective], template: "<div [class]=\"componentClass\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<
|
|
39
|
+
args: [{ selector: 'st-accordion-item', standalone: true, imports: [TypographyDirective], template: "<div [class]=\"componentClass\">\n\t<input [type]=\"type\" [name]=\"name\" [checked]=\"opened()\" />\n\t<div class=\"collapse-title\">\n\t\t<div typography [tyVariant]=\"'body'\" [tyColor]=\"'inherit'\" [tyFontWeight]=\"'normal'\">\n\t\t\t{{ header() }}\n\t\t</div>\n\t</div>\n\t<div class=\"collapse-content\">\n\t\t<ng-content></ng-content>\n\t</div>\n</div>\n" }]
|
|
41
40
|
}], ctorParameters: () => [{ type: i1.AccordionComponent, decorators: [{
|
|
42
41
|
type: Host
|
|
43
42
|
}] }] });
|
|
44
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
43
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYWNjb3JkaW9uLWl0ZW0uY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvc2RrL2NvbXBvbmVudHMvYWNjb3JkaW9uL2FjY29yZGlvbi1pdGVtL2FjY29yZGlvbi1pdGVtLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Nkay9jb21wb25lbnRzL2FjY29yZGlvbi9hY2NvcmRpb24taXRlbS9hY2NvcmRpb24taXRlbS5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0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cdFx0cmV0dXJuIGNuKGFjY29yZGlvbkl0ZW1Db21wb25lbnQoeyB2YXJpYW50OiB0aGlzLnZhcmlhbnQoKSB9KSk7XG5cdH1cbn1cbiIsIjxkaXYgW2NsYXNzXT1cImNvbXBvbmVudENsYXNzXCI+XG5cdDxpbnB1dCBbdHlwZV09XCJ0eXBlXCIgW25hbWVdPVwibmFtZVwiIFtjaGVja2VkXT1cIm9wZW5lZCgpXCIgLz5cblx0PGRpdiBjbGFzcz1cImNvbGxhcHNlLXRpdGxlXCI+XG5cdFx0PGRpdiB0eXBvZ3JhcGh5IFt0eVZhcmlhbnRdPVwiJ2JvZHknXCIgW3R5Q29sb3JdPVwiJ2luaGVyaXQnXCIgW3R5Rm9udFdlaWdodF09XCInbm9ybWFsJ1wiPlxuXHRcdFx0e3sgaGVhZGVyKCkgfX1cblx0XHQ8L2Rpdj5cblx0PC9kaXY+XG5cdDxkaXYgY2xhc3M9XCJjb2xsYXBzZS1jb250ZW50XCI+XG5cdFx0PG5nLWNvbnRlbnQ+PC9uZy1jb250ZW50PlxuXHQ8L2Rpdj5cbjwvZGl2PlxuIl19
|
|
@@ -4,72 +4,56 @@ import { cn } from '@sixbell-telco/sdk/utils/cn';
|
|
|
4
4
|
// import { formatTitleCase } from '@shared/utils/formaters/title-case';
|
|
5
5
|
import { cva } from 'class-variance-authority';
|
|
6
6
|
import * as i0 from "@angular/core";
|
|
7
|
-
export const avatarComponent = cva([], {
|
|
7
|
+
export const avatarComponent = cva(['border-neutral-secondary bg-secondary'], {
|
|
8
8
|
variants: {
|
|
9
|
-
variant: {
|
|
10
|
-
primary: [
|
|
11
|
-
'btn',
|
|
12
|
-
'btn-circle',
|
|
13
|
-
'btn-outline',
|
|
14
|
-
'text-neutral',
|
|
15
|
-
'border-ring',
|
|
16
|
-
'bg-secondary-muted',
|
|
17
|
-
'hover:text-neutral',
|
|
18
|
-
'active:hover:text-neutral-content',
|
|
19
|
-
'hover:border-ring-accent',
|
|
20
|
-
'hover:bg-secondary-muted',
|
|
21
|
-
'active:hover:bg-ring-accent',
|
|
22
|
-
'active:focus:border-ring-accent',
|
|
23
|
-
],
|
|
24
|
-
},
|
|
25
9
|
shape: {
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
'round-md': ['rounded-btn-md'],
|
|
29
|
-
'round-lg': ['rounded-btn-lg'],
|
|
10
|
+
square: ['rounded-btn'],
|
|
11
|
+
rounded: ['rounded-full'],
|
|
30
12
|
},
|
|
31
13
|
size: {
|
|
32
|
-
|
|
14
|
+
xs: ['w-6', 'text-xs', 'border'],
|
|
15
|
+
sm: ['w-8', 'text-sm', 'border'],
|
|
16
|
+
md: ['w-12', 'text-base', 'border-2'],
|
|
17
|
+
lg: ['w-16', 'text-lg', 'border-2'],
|
|
18
|
+
xl: ['w-32', 'text-5xl', 'border-4'],
|
|
33
19
|
},
|
|
34
20
|
},
|
|
35
21
|
compoundVariants: [],
|
|
36
22
|
defaultVariants: {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
size: 'auto',
|
|
23
|
+
shape: 'square',
|
|
24
|
+
size: 'sm',
|
|
40
25
|
},
|
|
41
26
|
});
|
|
42
27
|
export class AvatarComponent {
|
|
43
|
-
variant = input();
|
|
44
28
|
shape = input();
|
|
45
29
|
size = input();
|
|
46
|
-
|
|
47
|
-
type = input('quick');
|
|
30
|
+
shadow = input(false);
|
|
48
31
|
user = input.required();
|
|
49
|
-
|
|
32
|
+
image = input('');
|
|
33
|
+
showNameAndRole = input(false);
|
|
50
34
|
get initials() {
|
|
51
35
|
return `${this.user().firstName[0].toUpperCase()}${this.user().lastName[0].toUpperCase()}`;
|
|
52
36
|
}
|
|
53
37
|
get componentClass() {
|
|
54
|
-
return cn(avatarComponent({
|
|
55
|
-
}
|
|
56
|
-
get profile() {
|
|
57
|
-
return this.formatTitleCase(this.user().profile);
|
|
38
|
+
return cn(avatarComponent({ shape: this.shape(), size: this.size() }));
|
|
58
39
|
}
|
|
59
|
-
get
|
|
60
|
-
return this.
|
|
40
|
+
get containerClass() {
|
|
41
|
+
return cn('avatar', { placeholder: !this.image(), 'shadow-main': this.shadow() });
|
|
61
42
|
}
|
|
62
|
-
|
|
63
|
-
return
|
|
64
|
-
.
|
|
65
|
-
|
|
66
|
-
.
|
|
43
|
+
get nameAndRoleTextSizeClass() {
|
|
44
|
+
return cn({
|
|
45
|
+
'text-xs': this.size() === 'xs',
|
|
46
|
+
'text-sm': this.size() === 'sm',
|
|
47
|
+
'text-base': this.size() === 'md',
|
|
48
|
+
'text-lg': this.size() === 'lg',
|
|
49
|
+
'text-5xl': this.size() === 'xl',
|
|
50
|
+
});
|
|
67
51
|
}
|
|
68
52
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
69
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: AvatarComponent, isStandalone: true, selector: "st-avatar", inputs: {
|
|
53
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: AvatarComponent, isStandalone: true, selector: "st-avatar", inputs: { shape: { classPropertyName: "shape", publicName: "shape", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, shadow: { classPropertyName: "shadow", publicName: "shadow", isSignal: true, isRequired: false, transformFunction: null }, user: { classPropertyName: "user", publicName: "user", isSignal: true, isRequired: true, transformFunction: null }, image: { classPropertyName: "image", publicName: "image", isSignal: true, isRequired: false, transformFunction: null }, showNameAndRole: { classPropertyName: "showNameAndRole", publicName: "showNameAndRole", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: "<div class=\"inline-flex items-center justify-start gap-3\">\n\t@let imageVar = image();\n\t@if (imageVar) {\n\t\t<div [class]=\"containerClass\">\n\t\t\t<div [class]=\"componentClass\">\n\t\t\t\t<img [src]=\"image()\" alt=\"avatar image\" />\n\t\t\t</div>\n\t\t</div>\n\t} @else {\n\t\t<div [class]=\"containerClass\">\n\t\t\t<div [class]=\"componentClass\">\n\t\t\t\t<span typography [tyVariant]=\"'inherit'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ initials }}</span>\n\t\t\t</div>\n\t\t</div>\n\t}\n\t@let showNameAndRolVar = showNameAndRole();\n\t@let userVar = user();\n\t@if (showNameAndRolVar) {\n\t\t<div [class]=\"nameAndRoleTextSizeClass\">\n\t\t\t<div>\n\t\t\t\t<span typography [tyVariant]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">{{ userVar.firstName }} {{ userVar.lastName }}</span>\n\t\t\t</div>\n\t\t\t<div class=\"space-x-1\" typography [tyVariant]=\"'inherit'\">{{ userVar.role }}</div>\n\t\t</div>\n\t}\n</div>\n", styles: [""], dependencies: [{ kind: "directive", type: TypographyDirective, selector: "[typography]", inputs: ["tyVariant", "tyColor", "tyFontWeight"] }] });
|
|
70
54
|
}
|
|
71
55
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: AvatarComponent, decorators: [{
|
|
72
56
|
type: Component,
|
|
73
|
-
args: [{ selector: 'st-avatar', standalone: true, imports: [TypographyDirective], template: "@
|
|
57
|
+
args: [{ selector: 'st-avatar', standalone: true, imports: [TypographyDirective], template: "<div class=\"inline-flex items-center justify-start gap-3\">\n\t@let imageVar = image();\n\t@if (imageVar) {\n\t\t<div [class]=\"containerClass\">\n\t\t\t<div [class]=\"componentClass\">\n\t\t\t\t<img [src]=\"image()\" alt=\"avatar image\" />\n\t\t\t</div>\n\t\t</div>\n\t} @else {\n\t\t<div [class]=\"containerClass\">\n\t\t\t<div [class]=\"componentClass\">\n\t\t\t\t<span typography [tyVariant]=\"'inherit'\" [tyColor]=\"'base'\" [tyFontWeight]=\"'normal'\">{{ initials }}</span>\n\t\t\t</div>\n\t\t</div>\n\t}\n\t@let showNameAndRolVar = showNameAndRole();\n\t@let userVar = user();\n\t@if (showNameAndRolVar) {\n\t\t<div [class]=\"nameAndRoleTextSizeClass\">\n\t\t\t<div>\n\t\t\t\t<span typography [tyVariant]=\"'inherit'\" [tyFontWeight]=\"'semibold'\">{{ userVar.firstName }} {{ userVar.lastName }}</span>\n\t\t\t</div>\n\t\t\t<div class=\"space-x-1\" typography [tyVariant]=\"'inherit'\">{{ userVar.role }}</div>\n\t\t</div>\n\t}\n</div>\n" }]
|
|
74
58
|
}] });
|
|
75
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
59
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYXZhdGFyLmNvbXBvbmVudC5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Nkay9jb21wb25lbnRzL2F2YXRhci9zcmMvYXZhdGFyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL3Nkay9jb21wb25lbnRzL2F2YXRhci9zcmMvYXZhdGFyLmNvbXBvbmVudC5odG1sIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxTQUFTLEVBQUUsS0FBSyxFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2pELE9BQU8sRUFBRSxtQkFBbUIsRUFBRSxNQUFNLDBDQUEwQyxDQUFDO0FBQy9FLE9BQU8sRUFBRSxFQUFFLEVBQUUsTUFBTSw2QkFBNkIsQ0FBQztBQUNqRCx3RUFBd0U7QUFDeEUsT0FBTyxFQUFFLEdBQUcsRUFBRSxNQUFNLDBCQUEwQixDQUFDOztBQVUvQyxNQUFNLENBQUMsTUFBTSxlQUFlLEdBQUcsR0FBRyxDQUFDLENBQUMsdUNBQXVDLENBQUMsRUFBRTtJQUM3RSxRQUFRLEVBQUU7UUFDVCxLQUFLLEVBQUU7WUFDTixNQUFNL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