@sixbell-telco/sdk 0.7.0 → 0.7.2

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.
Files changed (95) hide show
  1. package/CHANGELOG.md +64 -25
  2. package/README.md +345 -65
  3. package/components/audio-player/src/audio-player.component.d.ts +1 -2
  4. package/components/countdown/src/countdown.component.d.ts +1 -5
  5. package/components/dual-list/src/dual-list.component.d.ts +2 -3
  6. package/components/forms/combobox/src/combobox.component.d.ts +1 -1
  7. package/components/forms/form-error/src/form-error.component.d.ts +1 -8
  8. package/components/forms/select/src/select.component.d.ts +3 -1
  9. package/components/icon/src/icon.component.d.ts +2 -2
  10. package/components/modal/src/modal.component.d.ts +72 -4
  11. package/components/product-card/src/product-card.component.d.ts +1 -2
  12. package/components/table/src/table.component.d.ts +136 -5
  13. package/components/table/table-header-checkbox/table-header-checkbox.component.d.ts +42 -0
  14. package/components/table/table-row-checkbox/table-row-checkbox.component.d.ts +46 -0
  15. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +10 -2
  16. package/directives/typography/src/typography.directive.d.ts +47 -1
  17. package/esm2022/components/audio-player/audio-timeline/audio-timeline.component.mjs +3 -3
  18. package/esm2022/components/audio-player/button-play/button-play.component.mjs +5 -5
  19. package/esm2022/components/audio-player/src/audio-player.component.mjs +5 -4
  20. package/esm2022/components/audio-player/track-info/track-info.component.mjs +4 -3
  21. package/esm2022/components/avatar/src/avatar.component.mjs +3 -3
  22. package/esm2022/components/badge/src/badge.component.mjs +6 -5
  23. package/esm2022/components/button/src/button.component.mjs +6 -6
  24. package/esm2022/components/countdown/src/countdown.component.mjs +4 -7
  25. package/esm2022/components/dropdown/src/dropdown.component.mjs +6 -6
  26. package/esm2022/components/dual-list/src/dual-list.component.mjs +15 -5
  27. package/esm2022/components/file-upload/file-dropzone/src/file-dropzone.component.mjs +10 -8
  28. package/esm2022/components/file-upload/file-uploader/src/file-uploader.component.mjs +4 -3
  29. package/esm2022/components/forms/combobox/src/combobox.component.mjs +6 -5
  30. package/esm2022/components/forms/form-error/src/form-error.component.mjs +4 -11
  31. package/esm2022/components/forms/input/src/input.component.mjs +12 -11
  32. package/esm2022/components/forms/select/src/select.component.mjs +9 -7
  33. package/esm2022/components/forms/textarea/src/textarea.component.mjs +9 -8
  34. package/esm2022/components/forms/toggle/src/toggle.component.mjs +31 -31
  35. package/esm2022/components/icon/src/icon.component.mjs +5 -4
  36. package/esm2022/components/link/src/link.component.mjs +2 -2
  37. package/esm2022/components/modal/src/modal.component.mjs +79 -6
  38. package/esm2022/components/product-card/src/product-card.component.mjs +4 -7
  39. package/esm2022/components/tab/src/tab.component.mjs +5 -5
  40. package/esm2022/components/table/src/table.component.mjs +157 -17
  41. package/esm2022/components/table/table-header-checkbox/table-header-checkbox.component.mjs +43 -1
  42. package/esm2022/components/table/table-row-checkbox/table-row-checkbox.component.mjs +47 -1
  43. package/esm2022/components/tooltip/src/tooltip.component.mjs +2 -2
  44. package/esm2022/components/wizard/wizard-marker/wizard-marker.component.mjs +22 -3
  45. package/esm2022/components/wizard/wizard-wrapper/wizard-wrapper.component.mjs +4 -3
  46. package/esm2022/directives/typography/src/typography.directive.mjs +63 -13
  47. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +12 -11
  48. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  49. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +2 -2
  50. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  51. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +5 -4
  52. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  53. package/fesm2022/sixbell-telco-sdk-components-button.mjs +5 -5
  54. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  55. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs +3 -6
  56. package/fesm2022/sixbell-telco-sdk-components-countdown.mjs.map +1 -1
  57. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +5 -5
  58. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  59. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +14 -4
  60. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  61. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs +9 -7
  62. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-dropzone.mjs.map +1 -1
  63. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs +3 -2
  64. package/fesm2022/sixbell-telco-sdk-components-file-upload-file-uploader.mjs.map +1 -1
  65. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +5 -4
  66. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  67. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +3 -10
  68. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  69. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +11 -10
  70. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  71. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +8 -6
  72. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  73. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +8 -7
  74. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  75. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +30 -30
  76. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  77. package/fesm2022/sixbell-telco-sdk-components-icon.mjs +4 -3
  78. package/fesm2022/sixbell-telco-sdk-components-icon.mjs.map +1 -1
  79. package/fesm2022/sixbell-telco-sdk-components-link.mjs +1 -1
  80. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  81. package/fesm2022/sixbell-telco-sdk-components-modal.mjs +78 -5
  82. package/fesm2022/sixbell-telco-sdk-components-modal.mjs.map +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +3 -6
  84. package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
  85. package/fesm2022/sixbell-telco-sdk-components-tab.mjs +4 -4
  86. package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-table.mjs +244 -16
  88. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  89. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +1 -1
  90. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  91. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +23 -4
  92. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  93. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs +62 -12
  94. package/fesm2022/sixbell-telco-sdk-directives-typography.mjs.map +1 -1
  95. package/package.json +68 -68
@@ -6,10 +6,9 @@ export type DualListData<T> = T & {
6
6
  export declare class DualListComponent<T> {
7
7
  size: import("@angular/core").InputSignal<TableContentSizeProps>;
8
8
  height: import("@angular/core").InputSignal<TableContainerHeightProps>;
9
- inputPlaceholder: import("@angular/core").InputSignal<string>;
10
- emptyListMessage: import("@angular/core").InputSignal<string>;
11
9
  chevronLeftIcon: string;
12
10
  chevronRightIcon: string;
11
+ searchIcon: string;
13
12
  key: import("@angular/core").InputSignal<string>;
14
13
  value: import("@angular/core").InputSignal<string>;
15
14
  label: import("@angular/core").InputSignal<string>;
@@ -49,5 +48,5 @@ export declare class DualListComponent<T> {
49
48
  handleRemoveItems(): void;
50
49
  private updateTargetList;
51
50
  static ɵfac: i0.ɵɵFactoryDeclaration<DualListComponent<any>, never>;
52
- static ɵcmp: i0.ɵɵComponentDeclaration<DualListComponent<any>, "st-dual-list", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "inputPlaceholder": { "alias": "inputPlaceholder"; "required": false; "isSignal": true; }; "emptyListMessage": { "alias": "emptyListMessage"; "required": false; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "titleLeft": { "alias": "titleLeft"; "required": false; "isSignal": true; }; "titleRight": { "alias": "titleRight"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": true; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "addedItems": { "alias": "addedItems"; "required": true; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": true; "isSignal": true; }; }, { "onListChange": "onListChange"; "onSearch": "onSearch"; "onPageChange": "onPageChange"; "onPageSizeChange": "onPageSizeChange"; }, never, never, true, never>;
51
+ static ɵcmp: i0.ɵɵComponentDeclaration<DualListComponent<any>, "st-dual-list", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; "key": { "alias": "key"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "titleLeft": { "alias": "titleLeft"; "required": false; "isSignal": true; }; "titleRight": { "alias": "titleRight"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": true; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "required": false; "isSignal": true; }; "addedItems": { "alias": "addedItems"; "required": true; "isSignal": true; }; "pagination": { "alias": "pagination"; "required": true; "isSignal": true; }; }, { "onListChange": "onListChange"; "onSearch": "onSearch"; "onPageChange": "onPageChange"; "onPageSizeChange": "onPageSizeChange"; }, never, never, true, never>;
53
52
  }
@@ -23,7 +23,7 @@ export declare class ComboboxComponent implements ControlValueAccessor {
23
23
  label: import("@angular/core").InputSignal<string>;
24
24
  value: import("@angular/core").ModelSignal<unknown>;
25
25
  options: import("@angular/core").InputSignal<any[]>;
26
- emptyOptionText: import("@angular/core").InputSignal<string>;
26
+ emptyOptionText: import("@angular/core").InputSignal<string | undefined>;
27
27
  loading: import("@angular/core").InputSignal<boolean>;
28
28
  search: string;
29
29
  trackBy: import("@angular/core").InputSignal<string>;
@@ -3,15 +3,8 @@ import * as i0 from "@angular/core";
3
3
  export declare class FormErrorsComponent {
4
4
  parentForm: import("@angular/core").InputSignal<FormGroup<any>>;
5
5
  formField: import("@angular/core").InputSignal<string>;
6
- isRequired: import("@angular/core").InputSignal<string | undefined>;
7
- isMinLength: import("@angular/core").InputSignal<string | undefined>;
8
- isMaxLength: import("@angular/core").InputSignal<string | undefined>;
9
- isMin: import("@angular/core").InputSignal<string | undefined>;
10
- isMax: import("@angular/core").InputSignal<string | undefined>;
11
- isPattern: import("@angular/core").InputSignal<string | undefined>;
12
- isEmail: import("@angular/core").InputSignal<string | undefined>;
13
6
  formControl: import("@angular/core").Signal<FormControl<any>>;
14
7
  customError: import("@angular/core").Signal<any>;
15
8
  static ɵfac: i0.ɵɵFactoryDeclaration<FormErrorsComponent, never>;
16
- static ɵcmp: i0.ɵɵComponentDeclaration<FormErrorsComponent, "st-form-errors", never, { "parentForm": { "alias": "parentForm"; "required": true; "isSignal": true; }; "formField": { "alias": "formField"; "required": true; "isSignal": true; }; "isRequired": { "alias": "isRequired"; "required": false; "isSignal": true; }; "isMinLength": { "alias": "isMinLength"; "required": false; "isSignal": true; }; "isMaxLength": { "alias": "isMaxLength"; "required": false; "isSignal": true; }; "isMin": { "alias": "isMin"; "required": false; "isSignal": true; }; "isMax": { "alias": "isMax"; "required": false; "isSignal": true; }; "isPattern": { "alias": "isPattern"; "required": false; "isSignal": true; }; "isEmail": { "alias": "isEmail"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
+ static ɵcmp: i0.ɵɵComponentDeclaration<FormErrorsComponent, "st-form-errors", never, { "parentForm": { "alias": "parentForm"; "required": true; "isSignal": true; }; "formField": { "alias": "formField"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
17
10
  }
@@ -1,4 +1,5 @@
1
1
  import { FormControl, FormGroup } from '@angular/forms';
2
+ import { TranslateService } from '@ngx-translate/core';
2
3
  import * as i0 from "@angular/core";
3
4
  export type SelectVariantProps = 'primary' | 'secondary' | 'tertiary' | 'accent' | 'info' | 'success' | 'error' | 'warning' | null | undefined;
4
5
  export type SelectSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;
@@ -7,6 +8,7 @@ export type SelectProps = {
7
8
  size?: SelectSizeProps;
8
9
  };
9
10
  export declare class SelectComponent {
11
+ translateService: TranslateService;
10
12
  variant: import("@angular/core").InputSignal<SelectVariantProps>;
11
13
  size: import("@angular/core").InputSignal<SelectSizeProps>;
12
14
  ghost: import("@angular/core").InputSignal<boolean>;
@@ -15,7 +17,7 @@ export declare class SelectComponent {
15
17
  label: import("@angular/core").InputSignal<string>;
16
18
  value: import("@angular/core").ModelSignal<unknown>;
17
19
  options: import("@angular/core").InputSignal<any[]>;
18
- emptyOptionText: import("@angular/core").InputSignal<string>;
20
+ emptyOptionText: import("@angular/core").InputSignal<string | undefined>;
19
21
  trackBy: import("@angular/core").InputSignal<string>;
20
22
  key: import("@angular/core").InputSignal<string>;
21
23
  parentForm: import("@angular/core").InputSignal<FormGroup<any> | null>;
@@ -1,9 +1,9 @@
1
1
  import * as i0 from "@angular/core";
2
2
  export declare const iconComponent: (props?: ({
3
- color?: "white" | "black" | "primary" | "inherit" | null | undefined;
3
+ color?: "white" | "black" | "primary" | "base" | "inherit" | null | undefined;
4
4
  size?: "sm" | "md" | "lg" | "xl" | null | undefined;
5
5
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
6
- export type IconColorProps = 'white' | 'black' | 'primary' | 'inherit' | null | undefined;
6
+ export type IconColorProps = 'white' | 'black' | 'primary' | 'base' | 'inherit' | null | undefined;
7
7
  export type IconSizeProps = 'sm' | 'md' | 'lg' | 'xl' | null | undefined;
8
8
  export type IconProps = {
9
9
  color?: IconColorProps;
@@ -1,33 +1,101 @@
1
1
  import { ElementRef } from '@angular/core';
2
2
  import * as i0 from "@angular/core";
3
+ /**
4
+ * CSS class generator for modal component variants
5
+ * @internal
6
+ */
3
7
  export declare const modalComponent: (props?: ({
4
- width?: "full" | "fit" | null | undefined;
8
+ width?: "xs" | "sm" | "md" | "lg" | "xl" | "2xl" | "3xl" | "4xl" | "5xl" | null | undefined;
5
9
  aligment?: "center" | "top" | "bottom" | null | undefined;
6
10
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
7
- export type ModalPaddingProps = 'none' | 'sm' | 'md' | 'lg' | null | undefined;
8
- export type ModalWidthProps = 'full' | 'fit' | null | undefined;
11
+ /** Possible width values for the modal component */
12
+ export type ModalWidthProps = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl' | '4xl' | '5xl' | null | undefined;
13
+ /** Possible vertical alignment values for the modal component */
9
14
  export type ModalAlignmentProps = 'top' | 'center' | 'bottom' | null | undefined;
15
+ /** Configuration properties for the modal component */
10
16
  export type ModalProps = {
11
- padding?: ModalPaddingProps;
12
17
  width?: ModalWidthProps;
13
18
  alignment?: ModalAlignmentProps;
14
19
  };
20
+ /**
21
+ * A customizable modal dialog component with Tailwind CSS integration
22
+ *
23
+ * @remarks
24
+ * Uses Angular's signal-based inputs and outputs for reactive state management.
25
+ * Supports various sizes and vertical alignments through input properties.
26
+ *
27
+ * @example
28
+ * ```html
29
+ * <st-modal
30
+ * modalId="confirmDialog"
31
+ * [(opened)]="isOpen"
32
+ * width="lg"
33
+ * alignment="top"
34
+ * (onClose)="handleClose()"
35
+ * (onClickOutside)="handleClickOustide()"
36
+ * />
37
+ * ```
38
+ */
15
39
  export declare class ModalComponent {
40
+ /**
41
+ * Specifies the maximum width of the modal content
42
+ * @defaultValue 'md'
43
+ */
16
44
  width: import("@angular/core").InputSignal<ModalWidthProps>;
45
+ /**
46
+ * Controls the vertical positioning of the modal
47
+ * @defaultValue 'center'
48
+ */
17
49
  alignment: import("@angular/core").InputSignal<ModalAlignmentProps>;
50
+ /** Required unique identifier for the modal dialog */
18
51
  modalId: import("@angular/core").InputSignal<string>;
52
+ /** Event emitted when clicking outside the modal content */
19
53
  onClickOutside: import("@angular/core").OutputEmitterRef<void>;
54
+ /** Event emitted when the modal closes */
20
55
  onClose: import("@angular/core").OutputEmitterRef<void>;
56
+ /** @internal Icon reference for close button */
21
57
  iconClose: string;
58
+ /** @internal Reference to the underlying dialog element */
22
59
  dialog: import("@angular/core").Signal<ElementRef<HTMLDialogElement> | undefined>;
60
+ /**
61
+ * Controls the visibility state of the modal
62
+ * Supports two-way binding via Angular's model
63
+ */
23
64
  opened: import("@angular/core").ModelSignal<boolean>;
65
+ /** @internal Handles open/close state changes */
24
66
  openedEffect: import("@angular/core").EffectRef;
67
+ /**
68
+ * Computes CSS classes for modal content based on current configuration
69
+ * @returns Combined Tailwind classes string
70
+ * @internal
71
+ */
25
72
  get componentClass(): string;
73
+ /**
74
+ * Computes CSS classes for modal overlay positioning
75
+ * @returns Combined positioning classes string
76
+ * @internal
77
+ */
26
78
  get modalClass(): string;
79
+ /** @internal Opens the native dialog element */
27
80
  handleOpen(): void;
81
+ /** @internal Closes the native dialog element */
28
82
  handleClose(): void;
83
+ /**
84
+ * Public method to close the modal and emit onClose event
85
+ * Can be called directly from parent components
86
+ */
29
87
  handleCloseClick(): void;
88
+ /**
89
+ * Handles cancel events from the dialog element
90
+ * @param event - Native dialog cancel event
91
+ * @internal
92
+ */
30
93
  handleCancelClick(event: Event): void;
94
+ /**
95
+ * Handles click events outside the modal content
96
+ * @param event - Native mouse event
97
+ * @internal
98
+ */
31
99
  handleClickOutside(event: Event): void;
32
100
  static ɵfac: i0.ɵɵFactoryDeclaration<ModalComponent, never>;
33
101
  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"; "onClose": "onClose"; "opened": "openedChange"; }, never, ["st-modal-title", "st-modal-content", "st-modal-actions"], true, never>;
@@ -46,7 +46,6 @@ export declare class ProductCardComponent {
46
46
  figureAlignment: import("@angular/core").InputSignal<ProductCardFigureAlignmentProps>;
47
47
  figurePaddingY: import("@angular/core").InputSignal<ProductCardFigurePaddingYProps>;
48
48
  figurePaddingX: import("@angular/core").InputSignal<ProductCardFigurePaddingXProps>;
49
- containerClasses: import("@angular/core").InputSignal<string>;
50
49
  titleClasses: import("@angular/core").InputSignal<string>;
51
50
  actionsClasses: import("@angular/core").InputSignal<string>;
52
51
  image: import("@angular/core").InputSignal<{
@@ -63,5 +62,5 @@ export declare class ProductCardComponent {
63
62
  get titleClass(): string;
64
63
  get actionsClass(): string;
65
64
  static ɵfac: i0.ɵɵFactoryDeclaration<ProductCardComponent, never>;
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>;
65
+ 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; }; "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>;
67
66
  }
@@ -1,61 +1,192 @@
1
+ import { TypographyVariantProps } from '@sixbell-telco/sdk/directives/typography';
1
2
  import { TableHeaderCheckboxComponent } from '../table-header-checkbox/table-header-checkbox.component';
2
3
  import { TableRowCheckboxComponent } from '../table-row-checkbox/table-row-checkbox.component';
3
4
  import * as i0 from "@angular/core";
5
+ /** Type definition for pagination display variants */
4
6
  export type PaginationType = 'default' | 'dots';
7
+ /**
8
+ * @internal
9
+ * Generates base table classes with size variants
10
+ */
5
11
  export declare const tableContent: (props?: ({
6
12
  size?: "xs" | "sm" | "md" | "lg" | null | undefined;
7
13
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
14
+ /** Possible table size variants */
8
15
  export type TableContentSizeProps = 'xs' | 'sm' | 'md' | 'lg' | null | undefined;
16
+ /**
17
+ * @internal
18
+ * Generates table container classes with height variants
19
+ */
9
20
  export declare const tableContainer: (props?: ({
10
21
  containerHeight?: "sm" | "md" | "lg" | "auto" | "full" | "xl" | null | undefined;
11
22
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
23
+ /** Possible table container height values */
12
24
  export type TableContainerHeightProps = 'auto' | 'full' | 'sm' | 'md' | 'lg' | 'xl' | null | undefined;
25
+ /** Configuration object for table styling variants */
13
26
  export type TableVariantProps = {
14
27
  size?: TableContentSizeProps;
15
28
  containerHeight?: TableContainerHeightProps;
16
29
  };
30
+ /**
31
+ * @internal
32
+ * Combines table content and container classes
33
+ */
17
34
  export declare const tableComponent: ({ size, containerHeight }?: TableVariantProps) => string;
35
+ /** Pagination configuration structure */
18
36
  export type TablePagination = {
19
37
  id: string;
20
38
  currentPage: number;
21
39
  itemsPerPage: number;
22
40
  search: string;
23
41
  };
42
+ /**
43
+ * A feature-rich data table component with sorting, pagination, and row selection
44
+ *
45
+ * @remarks
46
+ * Integrates with Tailwind CSS for styling and supports responsive layouts.
47
+ * Includes built-in pagination controls and checkbox selection functionality.
48
+ *
49
+ * @example
50
+ * ```html
51
+ * <st-table
52
+ * [data]="users"
53
+ * [totalItems]="100"
54
+ * [pagination]="{ currentPage: 1, itemsPerPage: 10 }"
55
+ * (onPageChange)="handlePageChange($event)"
56
+ * size="md"
57
+ * height="lg"
58
+ * zebra
59
+ * >
60
+ * <!-- Table columns and content -->
61
+ * </st-table>
62
+ * ```
63
+ */
24
64
  export declare class TableComponent {
65
+ /**
66
+ * Table size variant
67
+ * @defaultValue 'sm'
68
+ */
25
69
  size: import("@angular/core").InputSignal<TableContentSizeProps>;
70
+ /**
71
+ * Table container height preset
72
+ * @defaultValue 'auto'
73
+ */
26
74
  height: import("@angular/core").InputSignal<TableContainerHeightProps>;
75
+ /**
76
+ * Enable sticky header row
77
+ * @defaultValue false
78
+ */
27
79
  pinRows: import("@angular/core").InputSignal<boolean>;
80
+ /**
81
+ * Enable sticky first column
82
+ * @defaultValue false
83
+ */
28
84
  pinColumns: import("@angular/core").InputSignal<boolean>;
85
+ /**
86
+ * Apply zebra-striping to rows
87
+ * @defaultValue false
88
+ */
29
89
  zebra: import("@angular/core").InputSignal<boolean>;
90
+ /**
91
+ * Pagination control display variant
92
+ * @defaultValue 'default'
93
+ */
30
94
  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>;
95
+ /** @internal Info icon reference */
34
96
  infoIcon: string;
97
+ /**
98
+ * Array of data items to display
99
+ * @defaultValue []
100
+ */
35
101
  data: import("@angular/core").InputSignal<unknown[]>;
102
+ /**
103
+ * Total number of items across all pages
104
+ * @defaultValue 0
105
+ */
36
106
  totalItems: import("@angular/core").InputSignal<number>;
37
- error: import("@angular/core").InputSignal<string>;
107
+ /**
108
+ * Pagination configuration
109
+ * @defaultValue { id: 'paginator', currentPage: 1, itemsPerPage: 10, search: '' }
110
+ */
38
111
  pagination: import("@angular/core").InputSignal<TablePagination>;
112
+ /**
113
+ * Maximum number of pagination buttons to display
114
+ * @defaultValue 7
115
+ */
39
116
  maxSize: import("@angular/core").InputSignal<number>;
117
+ /** Event emitted when page changes */
40
118
  onPageChange: import("@angular/core").OutputEmitterRef<number>;
119
+ /** Event emitted when page size changes */
41
120
  onPageSizeChange: import("@angular/core").OutputEmitterRef<number>;
121
+ /**
122
+ * Show items per page selector
123
+ * @defaultValue true
124
+ */
42
125
  showItemsPerPage: import("@angular/core").InputSignal<boolean>;
126
+ /**
127
+ * Show entries count display
128
+ * @defaultValue true
129
+ */
43
130
  showEntries: import("@angular/core").InputSignal<boolean>;
131
+ /**
132
+ * Show pagination controls
133
+ * @defaultValue true
134
+ */
44
135
  showPagination: import("@angular/core").InputSignal<boolean>;
136
+ /**
137
+ * Computed display range for current page entries
138
+ * @example "1-10" of 100 entries
139
+ */
45
140
  paginationRange: import("@angular/core").Signal<string>;
141
+ /**
142
+ * Handles page navigation events
143
+ * @param page - New page number
144
+ */
46
145
  handlePageChange(page: number): void;
146
+ /**
147
+ * Handles page size changes
148
+ * @param size - New items per page value
149
+ */
47
150
  handlePageSizeChange(size: number): void;
151
+ /**
152
+ * @internal
153
+ * Computes table element classes based on current configuration
154
+ */
48
155
  get tableClass(): string;
156
+ /**
157
+ * @internal
158
+ * Computes table container classes based on height input
159
+ */
49
160
  get tableContainerClass(): string;
161
+ /**
162
+ * @internal
163
+ * Computes outer container classes based on size
164
+ */
50
165
  get containerClass(): string;
166
+ get paginatorTextSize(): TypographyVariantProps;
167
+ /** @internal Reference to header checkbox component */
51
168
  header: import("@angular/core").Signal<TableHeaderCheckboxComponent | undefined>;
169
+ /** @internal List of row checkbox components */
52
170
  rows: import("@angular/core").Signal<readonly TableRowCheckboxComponent[]>;
171
+ /** @internal Track selected row identifiers */
53
172
  identifiers: import("@angular/core").WritableSignal<Set<unknown>>;
173
+ /** Event emitted with array of selected item identifiers */
54
174
  onCheck: import("@angular/core").OutputEmitterRef<unknown[]>;
175
+ /** @internal Sync checkbox state with output */
55
176
  checkEffect: import("@angular/core").EffectRef;
177
+ /**
178
+ * Toggle all row checkboxes
179
+ * @param value - Whether to check or uncheck all rows
180
+ */
56
181
  handleToggleAll(value: boolean): void;
182
+ /**
183
+ * Handle individual checkbox toggle
184
+ * @param value - Checkbox state
185
+ * @param identifier - Unique row identifier
186
+ */
57
187
  handleToggleCheckbox(value: boolean, identifier: unknown): void;
188
+ /** @internal Clear all selections */
58
189
  private clearList;
59
190
  static ɵfac: i0.ɵɵFactoryDeclaration<TableComponent, 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>;
191
+ 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; }; "data": { "alias": "data"; "required": false; "isSignal": true; }; "totalItems": { "alias": "totalItems"; "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>;
61
192
  }
@@ -1,12 +1,54 @@
1
1
  import { CheckboxSizeProps, CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';
2
2
  import { TableComponent } from '../src/table.component';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Header checkbox component for the table.
6
+ *
7
+ * This component renders a checkbox within a table header row,
8
+ * allowing users to select or deselect all rows in the table.
9
+ *
10
+ * @remarks
11
+ * Utilizes Angular's dependency injection to access the parent {@link TableComponent}
12
+ * and propagate the checkbox state changes.
13
+ *
14
+ * @example
15
+ * ```html
16
+ * <tr header-checkbox></tr>
17
+ * ```
18
+ */
4
19
  export declare class TableHeaderCheckboxComponent {
5
20
  private table;
21
+ /**
22
+ * Defines the variant styling of the checkbox.
23
+ *
24
+ * @defaultValue 'primary'
25
+ */
6
26
  checkboxVariant: import("@angular/core").InputSignal<CheckboxVariantProps>;
27
+ /**
28
+ * Defines the size of the checkbox.
29
+ *
30
+ * @defaultValue 'md'
31
+ */
7
32
  checkboxSize: import("@angular/core").InputSignal<CheckboxSizeProps>;
33
+ /**
34
+ * Signal that tracks the checked state of the header checkbox.
35
+ *
36
+ * @defaultValue false
37
+ */
8
38
  checked: import("@angular/core").WritableSignal<boolean>;
39
+ /**
40
+ * Creates an instance of TableHeaderCheckboxComponent.
41
+ *
42
+ * @param table - Reference to the parent {@link TableComponent} to access table-level operations.
43
+ */
9
44
  constructor(table: TableComponent);
45
+ /**
46
+ * Handles the event when the header checkbox is toggled.
47
+ *
48
+ * This method notifies the parent table component to either select or deselect all rows.
49
+ *
50
+ * @param value - The new checked state (true to select all rows, false to deselect all).
51
+ */
10
52
  handleSelectAll(value: boolean): void;
11
53
  static ɵfac: i0.ɵɵFactoryDeclaration<TableHeaderCheckboxComponent, [{ host: true; }]>;
12
54
  static ɵcmp: i0.ɵɵComponentDeclaration<TableHeaderCheckboxComponent, "tr[header-checkbox]", never, { "checkboxVariant": { "alias": "checkboxVariant"; "required": false; "isSignal": true; }; "checkboxSize": { "alias": "checkboxSize"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
@@ -1,13 +1,59 @@
1
1
  import { CheckboxSizeProps, CheckboxVariantProps } from '@sixbell-telco/sdk/components/forms/checkbox';
2
2
  import { TableComponent } from '../src/table.component';
3
3
  import * as i0 from "@angular/core";
4
+ /**
5
+ * Row checkbox component for table row selection.
6
+ *
7
+ * This component renders a checkbox within a table row,
8
+ * enabling individual row selection. It interacts with the parent
9
+ * {@link TableComponent} to update the selection state.
10
+ *
11
+ * @example
12
+ * ```html
13
+ * <tr row-checkbox [identifier]="rowId"></tr>
14
+ * ```
15
+ */
4
16
  export declare class TableRowCheckboxComponent {
5
17
  private table;
18
+ /**
19
+ * Defines the variant styling of the checkbox.
20
+ *
21
+ * @defaultValue 'primary'
22
+ */
6
23
  checkboxVariant: import("@angular/core").InputSignal<CheckboxVariantProps>;
24
+ /**
25
+ * Defines the size of the checkbox.
26
+ *
27
+ * @defaultValue 'md'
28
+ */
7
29
  checkboxSize: import("@angular/core").InputSignal<CheckboxSizeProps>;
30
+ /**
31
+ * Unique identifier for the table row.
32
+ *
33
+ * This input is required to track the specific row in the table.
34
+ */
8
35
  identifier: import("@angular/core").InputSignal<unknown>;
36
+ /**
37
+ * Signal that tracks the checked state of the row checkbox.
38
+ *
39
+ * @defaultValue false
40
+ */
9
41
  checked: import("@angular/core").WritableSignal<boolean>;
42
+ /**
43
+ * Creates an instance of TableRowCheckboxComponent.
44
+ *
45
+ * @param table - Reference to the parent {@link TableComponent} to access
46
+ * table-level operations for row selection.
47
+ */
10
48
  constructor(table: TableComponent);
49
+ /**
50
+ * Handles the selection event of the row checkbox.
51
+ *
52
+ * This method notifies the parent table component to update the selection state
53
+ * for the corresponding row, based on the checkbox's new value.
54
+ *
55
+ * @param value - The new checked state (true for selected, false for deselected).
56
+ */
11
57
  handleSelect(value: boolean): void;
12
58
  static ɵfac: i0.ɵɵFactoryDeclaration<TableRowCheckboxComponent, [{ host: true; }]>;
13
59
  static ɵcmp: i0.ɵɵComponentDeclaration<TableRowCheckboxComponent, "tr[row-checkbox]", never, { "checkboxVariant": { "alias": "checkboxVariant"; "required": false; "isSignal": true; }; "checkboxSize": { "alias": "checkboxSize"; "required": false; "isSignal": true; }; "identifier": { "alias": "identifier"; "required": true; "isSignal": true; }; }, {}, never, ["*"], true, never>;
@@ -1,9 +1,17 @@
1
+ import { OnInit } from '@angular/core';
2
+ import { TranslateService } from '@ngx-translate/core';
1
3
  import { WizardContentComponent } from '../wizard-content/wizard-content.component';
2
4
  import * as i0 from "@angular/core";
3
- export declare class WizardMarkerComponent {
5
+ export declare class WizardMarkerComponent implements OnInit {
6
+ translateService: TranslateService;
7
+ completed: import("@angular/core").WritableSignal<string>;
8
+ inProgress: import("@angular/core").WritableSignal<string>;
9
+ pending: import("@angular/core").WritableSignal<string>;
4
10
  content: import("@angular/core").InputSignal<WizardContentComponent>;
5
- getStatusMarkerMessage(content: WizardContentComponent): "Completado" | "En progreso" | "Pendiente";
11
+ ngOnInit(): void;
12
+ getStatusMarkerMessage(content: WizardContentComponent): string;
6
13
  getStepStatusMarkerClasses(content: WizardContentComponent): string;
14
+ initTranslatations(): void;
7
15
  static ɵfac: i0.ɵɵFactoryDeclaration<WizardMarkerComponent, never>;
8
16
  static ɵcmp: i0.ɵɵComponentDeclaration<WizardMarkerComponent, "st-wizard-marker", never, { "content": { "alias": "content"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
9
17
  }
@@ -1,21 +1,67 @@
1
1
  import * as i0 from "@angular/core";
2
- export type TypographyVariantProps = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'body-sm' | 'body-xs' | 'inherit' | null | undefined;
2
+ /** Available typography heading and body variants */
3
+ export type TypographyVariantProps = 'h1' | 'h2' | 'h3' | 'h4' | 'h5' | 'h6' | 'body' | 'body-sm' | 'body-xs' | 'body-xxs' | 'inherit' | null | undefined;
4
+ /** Text color variants for typography */
3
5
  export type TypographyColorProps = 'base' | 'base-placeholder' | 'inherit' | null | undefined;
6
+ /** Font weight options for typography */
4
7
  export type TypographyFontWeightProps = 'bold' | 'semibold' | 'medium' | 'normal' | 'inherit' | null | undefined;
8
+ /** Text overflow handling methods */
5
9
  export type TypographyTextOverflowProps = 'clip' | 'ellipsis' | 'truncate' | null | undefined;
10
+ /** Configuration object for typography styles */
6
11
  export type TypographyProps = {
7
12
  variant?: TypographyVariantProps;
8
13
  color?: TypographyColorProps;
9
14
  fontWeight?: TypographyFontWeightProps;
10
15
  textOverflow?: TypographyTextOverflowProps;
11
16
  };
17
+ /**
18
+ * A directive for applying consistent typography styles using Tailwind CSS
19
+ *
20
+ * @remarks
21
+ * Applies text styling based on variant, color, weight, and overflow properties.
22
+ * Uses Angular's signal-based inputs for reactive style updates.
23
+ *
24
+ * @example
25
+ * ```html
26
+ * <h1 typography tyVariant="h2" tyColor="base" tyFontWeight="bold">
27
+ * Heading with custom typography
28
+ * </h1>
29
+ *
30
+ * <p typography tyVariant="body-sm" tyTextOverflow="ellipsis">
31
+ * Small body text with ellipsis overflow
32
+ * </p>
33
+ * ```
34
+ */
12
35
  export declare class TypographyDirective {
36
+ /**
37
+ * Typography variant style (heading level or body type)
38
+ * @alias tyVariant
39
+ * @defaultValue 'body'
40
+ */
13
41
  variant: import("@angular/core").InputSignal<TypographyVariantProps>;
42
+ /**
43
+ * Text color variant
44
+ * @alias tyColor
45
+ * @defaultValue 'inherit'
46
+ */
14
47
  color: import("@angular/core").InputSignal<TypographyColorProps>;
48
+ /**
49
+ * Font weight variant
50
+ * @alias tyFontWeight
51
+ * @defaultValue 'normal'
52
+ */
15
53
  fontWeight: import("@angular/core").InputSignal<TypographyFontWeightProps>;
54
+ /**
55
+ * Text overflow handling method
56
+ * @alias tyTextOverflow
57
+ * @defaultValue 'clip'
58
+ */
16
59
  textOverflow: import("@angular/core").InputSignal<TypographyTextOverflowProps>;
60
+ /** @internal Reference to host element */
17
61
  private element;
62
+ /** @internal Angular renderer instance */
18
63
  private renderer;
64
+ /** @internal Effect to update classes when inputs change */
19
65
  classListEffect: import("@angular/core").EffectRef;
20
66
  static ɵfac: i0.ɵɵFactoryDeclaration<TypographyDirective, never>;
21
67
  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; }; "textOverflow": { "alias": "tyTextOverflow"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;