@sixbell-telco/sdk 1.2.1 → 1.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.
Files changed (88) hide show
  1. package/CHANGELOG.md +93 -0
  2. package/README.md +210 -70
  3. package/_index.css +232 -55
  4. package/assets/styles/toast.css +8 -0
  5. package/components/data-table/expandable/expandable.component.d.ts +129 -0
  6. package/components/{forms/datepicker → data-table}/index.d.ts +1 -1
  7. package/components/data-table/public-api.d.ts +7 -0
  8. package/components/data-table/selection/selection.component.d.ts +41 -0
  9. package/components/data-table/sortable-header/sortable-header.component.d.ts +61 -0
  10. package/components/data-table/src/data-table-context.service.d.ts +18 -0
  11. package/components/data-table/src/data-table.component.d.ts +158 -0
  12. package/components/data-table/src/models.d.ts +58 -0
  13. package/components/data-table/sub-component-toggle/index.d.ts +1 -0
  14. package/components/data-table/sub-component-toggle/sub-component-toggle.component.d.ts +12 -0
  15. package/components/dropdown/dropdown-group/dropdown-group.component.d.ts +1 -1
  16. package/components/dropdown/dropdown-item-checkbox/dropdown-item-checkbox.component.d.ts +2 -2
  17. package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +2 -2
  18. package/components/dropdown-menu/bar/dropdown-menu-bar-item-checkbox/dropdown-menu-bar-item-checkbox.component.d.ts +2 -2
  19. package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +2 -2
  20. package/components/forms/date-picker/constants/date-picker.constants.d.ts +13 -0
  21. package/components/forms/date-picker/index.d.ts +5 -0
  22. package/components/forms/date-picker/public-api.d.ts +3 -0
  23. package/components/forms/date-picker/src/date-picker.component.d.ts +323 -0
  24. package/components/forms/date-picker/types/date-picker.types.d.ts +39 -0
  25. package/components/overlay/index.d.ts +5 -0
  26. package/components/overlay/overlay-content/overlay-content.component.d.ts +23 -0
  27. package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +48 -0
  28. package/components/overlay/public-api.d.ts +3 -0
  29. package/components/overlay/src/overlay.component.d.ts +158 -0
  30. package/components/paginator/components/pagination-item/pagination-item.component.d.ts +8 -3
  31. package/components/paginator/pipes/pagination.pipe.d.ts +40 -0
  32. package/components/paginator/public-api.d.ts +1 -0
  33. package/components/paginator/src/paginator.component.d.ts +14 -12
  34. package/components/sonner/index.d.ts +5 -0
  35. package/components/sonner/public-api.d.ts +2 -0
  36. package/components/sonner/src/sonner.component.d.ts +39 -0
  37. package/components/sonner/toaster/index.d.ts +5 -0
  38. package/components/sonner/toaster/public-api.d.ts +1 -0
  39. package/components/sonner/toaster/src/toaster.component.d.ts +89 -0
  40. package/components/table/src/table.component.d.ts +9 -6
  41. package/components/toast/public-api.d.ts +9 -0
  42. package/components/toast/services/toast.service.d.ts +3 -0
  43. package/components/toast/toast-message/toast-message.component.d.ts +3 -0
  44. package/components/toast/toasts-container/toasts-container.component.d.ts +3 -0
  45. package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs +103 -0
  46. package/fesm2022/sixbell-telco-sdk-components-data-table-sub-component-toggle.mjs.map +1 -0
  47. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +1091 -0
  48. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -0
  49. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +6 -6
  50. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
  51. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +12 -10
  52. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  53. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +4 -5
  54. package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
  55. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +885 -0
  56. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -0
  57. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
  58. package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
  59. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +3 -3
  60. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  61. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +408 -0
  62. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -0
  63. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +150 -35
  64. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  65. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +132 -0
  66. package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -0
  67. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +179 -0
  68. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -0
  69. package/fesm2022/sixbell-telco-sdk-components-table.mjs +15 -6
  70. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  71. package/fesm2022/sixbell-telco-sdk-components-toast.mjs +14 -0
  72. package/fesm2022/sixbell-telco-sdk-components-toast.mjs.map +1 -1
  73. package/fesm2022/sixbell-telco-sdk-utils-date.mjs +242 -0
  74. package/fesm2022/sixbell-telco-sdk-utils-date.mjs.map +1 -0
  75. package/fesm2022/sixbell-telco-sdk-utils-sync.mjs +84 -0
  76. package/fesm2022/sixbell-telco-sdk-utils-sync.mjs.map +1 -0
  77. package/package.json +77 -47
  78. package/utils/date/index.d.ts +5 -0
  79. package/utils/date/public-api.d.ts +1 -0
  80. package/utils/date/src/date-utils.d.ts +125 -0
  81. package/utils/sync/index.d.ts +5 -0
  82. package/utils/sync/public-api.d.ts +1 -0
  83. package/utils/sync/src/sync.d.ts +37 -0
  84. package/components/forms/datepicker/public-api.d.ts +0 -2
  85. package/components/forms/datepicker/src/datepicker-format-month.pipe.d.ts +0 -10
  86. package/components/forms/datepicker/src/datepicker.component.d.ts +0 -54
  87. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs +0 -212
  88. package/fesm2022/sixbell-telco-sdk-components-forms-datepicker.mjs.map +0 -1
@@ -0,0 +1,323 @@
1
+ import { ControlValueAccessor, FormControl, FormGroup } from '@angular/forms';
2
+ import { OverlayComponent } from '@sixbell-telco/sdk/components/overlay';
3
+ import { DateRange, QuickRangePreset } from '@sixbell-telco/sdk/utils/date';
4
+ import 'cally';
5
+ import { DatePickerValue, OptionalTimeString } from '../types/date-picker.types';
6
+ import * as i0 from "@angular/core";
7
+ /**
8
+ * Datepicker - Single date and date range picker with optional time selection
9
+ *
10
+ * @remarks
11
+ * This component wraps Cally.js calendar elements and provides a rich, accessible
12
+ * date and date-range picking experience for Angular apps. It supports:
13
+ * - Single or range modes
14
+ * - Quick action ranges
15
+ * - Optional time selection with minutes or seconds
16
+ * - 12h/24h time display for the trigger text
17
+ * - Locale-aware calendar (auto-mapped from the TranslationService or overridden)
18
+ * - Form integration (reactive forms) and standalone usage
19
+ *
20
+ * The component is exported as `stDatepicker` for template reference variables
21
+ * to access methods (e.g. displayValue()).
22
+ *
23
+ * @example Basic single date
24
+ * ```html
25
+ * <st-datepicker
26
+ * label="Pick a date"
27
+ * mode="single"
28
+ * format="DD/MM/YYYY"
29
+ * (dateUpdated)="onDate($event)"
30
+ * #picker="stDatepicker"
31
+ * >
32
+ * <st-button [outline]="true">{{ picker.displayValue() || 'Pick a date' }}</st-button>
33
+ * </st-datepicker>
34
+ * ```
35
+ *
36
+ * @example Date range with time (minutes)
37
+ * ```html
38
+ * <st-datepicker
39
+ * label="Pick range with time"
40
+ * mode="range"
41
+ * [showTimePicker]="true"
42
+ * [showSeconds]="false"
43
+ * (rangeUpdated)="onRange($event)"
44
+ * (startTimeChanged)="onStartTime($event)"
45
+ * (endTimeChanged)="onEndTime($event)"
46
+ * #picker="stDatepicker"
47
+ * >
48
+ * <st-button [outline]="true">{{ picker.displayValue() || 'Pick range' }}</st-button>
49
+ * </st-datepicker>
50
+ * ```
51
+ *
52
+ * @example Reactive form control (range)
53
+ * ```html
54
+ * <form [formGroup]="form">
55
+ * <st-datepicker
56
+ * [parentForm]="form"
57
+ * formControlName="range"
58
+ * mode="range"
59
+ * [rangeCalendars]="2"
60
+ * [showQuickActions]="true"
61
+ * name="range"
62
+ * >
63
+ * <st-input [value]="picker.displayValue()" [readonly]="true" name="range"></st-input>
64
+ * </st-datepicker>
65
+ * </form>
66
+ * ```
67
+ */
68
+ export declare class DatepickerComponent implements ControlValueAccessor {
69
+ /** Internal state for single date (ISO format) */
70
+ private readonly _selectedDateValue;
71
+ /** Internal state for date range (ISO format) */
72
+ private readonly _selectedRangeValue;
73
+ /** Disabled state */
74
+ private readonly _disabled;
75
+ /** Flag to prevent concurrent range updates */
76
+ private isUpdatingRange;
77
+ /** Translation service for reactive language changes */
78
+ private readonly translationService;
79
+ /** Form change callback */
80
+ private onControlChange;
81
+ /** Form touch callback */
82
+ private onControlTouch;
83
+ /** Overlay reference for controlling calendar popup */
84
+ datePickerOverlay: import("@angular/core").Signal<OverlayComponent | undefined>;
85
+ /** Label displayed above the fieldset legend */
86
+ label: import("@angular/core").InputSignal<string>;
87
+ /**
88
+ * Picker mode
89
+ * @defaultValue 'single'
90
+ * @remarks 'single' for single date, 'range' for start/end selection
91
+ */
92
+ mode: import("@angular/core").InputSignal<"single" | "range">;
93
+ /**
94
+ * Display/parse format for dates
95
+ * @defaultValue 'DD/MM/YYYY'
96
+ * @remarks Used for trigger text and for parsing external values (when provided as display strings)
97
+ */
98
+ format: import("@angular/core").InputSignal<"DD/MM/YYYY" | "MM/DD/YYYY" | "YYYY-MM-DD" | "DD-MM-YYYY" | "MM-DD-YYYY" | "YYYY/MM/DD" | "DD.MM.YYYY" | "MM.DD.YYYY" | "YYYY.MM.DD">;
99
+ /**
100
+ * Locale used by the calendar web component
101
+ * @defaultValue 'en-US'
102
+ * @remarks If omitted or set to 'en-US', the component will auto-map from the TranslationService using `languageMapping`.
103
+ */
104
+ language: import("@angular/core").InputSignal<"en-US" | "en-GB" | "es-ES" | "es-MX" | "fr-FR" | "de-DE" | "it-IT" | "pt-BR" | "pt-PT" | "ja-JP" | "ko-KR" | "zh-CN" | "zh-TW" | "ru-RU" | "ar-SA" | "hi-IN" | "nl-NL" | "sv-SE" | "da-DK" | "no-NO" | "fi-FI" | "pl-PL" | "tr-TR" | "he-IL" | "th-TH" | "vi-VN">;
105
+ /** Optional minimum selectable date (display or ISO). Internally coerced to ISO. */
106
+ minDate: import("@angular/core").InputSignal<string | null>;
107
+ /** Optional maximum selectable date (display or ISO). Internally coerced to ISO. */
108
+ maxDate: import("@angular/core").InputSignal<string | null>;
109
+ /** Single date value (external binding). Accepts display or ISO; stored internally as ISO. */
110
+ value: import("@angular/core").InputSignal<string>;
111
+ /** Date range value (external binding). Accepts display or ISO; stored internally as ISO. */
112
+ rangeValue: import("@angular/core").InputSignal<DateRange | null>;
113
+ /** Name attribute for associated input (useful when wrapping with st-input). */
114
+ name: import("@angular/core").InputSignal<string>;
115
+ /**
116
+ * Number of calendars to show in range mode
117
+ * @defaultValue 2
118
+ */
119
+ rangeCalendars: import("@angular/core").InputSignal<2 | 1>;
120
+ /**
121
+ * Whether to show quick action buttons for common ranges
122
+ * @defaultValue true
123
+ */
124
+ showQuickActions: import("@angular/core").InputSignal<boolean>;
125
+ /**
126
+ * Whether to show time pickers for start/end
127
+ * @defaultValue false
128
+ */
129
+ showTimePicker: import("@angular/core").InputSignal<boolean>;
130
+ /**
131
+ * Whether to include seconds in time inputs and display
132
+ * @defaultValue false
133
+ */
134
+ showSeconds: import("@angular/core").InputSignal<boolean>;
135
+ /**
136
+ * Time display format for trigger text
137
+ * @defaultValue '24h'
138
+ * @remarks Affects only the textual display in the trigger, not the underlying stored time format
139
+ */
140
+ timeDisplayFormat: import("@angular/core").InputSignal<"24h" | "12h">;
141
+ /**
142
+ * Mapping of translation language codes (e.g. 'en','es','pt') to calendar locales (e.g. 'en-US','es-MX','pt-BR')
143
+ * @defaultValue { en: 'en-US', es: 'es-MX', pt: 'pt-BR' }
144
+ */
145
+ languageMapping: import("@angular/core").InputSignal<Record<string, "en-US" | "en-GB" | "es-ES" | "es-MX" | "fr-FR" | "de-DE" | "it-IT" | "pt-BR" | "pt-PT" | "ja-JP" | "ko-KR" | "zh-CN" | "zh-TW" | "ru-RU" | "ar-SA" | "hi-IN" | "nl-NL" | "sv-SE" | "da-DK" | "no-NO" | "fi-FI" | "pl-PL" | "tr-TR" | "he-IL" | "th-TH" | "vi-VN">>;
146
+ /**
147
+ * Use locale-based formatting for the trigger display instead of the custom pattern
148
+ * @defaultValue false
149
+ */
150
+ useLocaleDisplay: import("@angular/core").InputSignal<boolean>;
151
+ /**
152
+ * Locale date style when useLocaleDisplay=true
153
+ * @defaultValue 'short'
154
+ */
155
+ dateStyle: import("@angular/core").InputSignal<"short" | "medium" | "long" | "full">;
156
+ /** Optional external defaults for start/end time (HH:mm or HH:mm:ss). When empty string, inputs render blank. */
157
+ startTimeValue: import("@angular/core").InputSignal<OptionalTimeString>;
158
+ endTimeValue: import("@angular/core").InputSignal<OptionalTimeString>;
159
+ /**
160
+ * Current start time value (internal signal). Empty when unset.
161
+ * @internal
162
+ */
163
+ readonly startTime: import("@angular/core").WritableSignal<OptionalTimeString>;
164
+ /**
165
+ * Current end time value (internal signal). Empty when unset.
166
+ * @internal
167
+ */
168
+ readonly endTime: import("@angular/core").WritableSignal<OptionalTimeString>;
169
+ /** Parent reactive form group (optional) */
170
+ parentForm: import("@angular/core").InputSignal<FormGroup<any> | null>;
171
+ /** Name of the form control inside the parent form (optional) */
172
+ formControlName: import("@angular/core").InputSignal<string>;
173
+ /**
174
+ * Emits formatted single date when it changes
175
+ * @remarks Uses the `format` (or locale display if enabled). For range mode, use `rangeUpdated`.
176
+ */
177
+ dateUpdated: import("@angular/core").OutputEmitterRef<string>;
178
+ /**
179
+ * Emits an ISO `DateRange` when both start & end are selected
180
+ * @remarks Start/end are always emitted in ISO (YYYY-MM-DD). Time values are emitted separately.
181
+ */
182
+ rangeUpdated: import("@angular/core").OutputEmitterRef<DateRange>;
183
+ /** Emits formatted date when value changes (single mode). Alias of `dateUpdated`. */
184
+ valueChanged: import("@angular/core").OutputEmitterRef<string>;
185
+ /** Emits ISO date range (alias of `rangeUpdated`). */
186
+ rangeValueChanged: import("@angular/core").OutputEmitterRef<DateRange>;
187
+ /** Emits start time (HH:mm or HH:mm:ss) changes; empty string when cleared */
188
+ startTimeChanged: import("@angular/core").OutputEmitterRef<OptionalTimeString>;
189
+ /** Emits end time (HH:mm or HH:mm:ss) changes; empty string when cleared */
190
+ endTimeChanged: import("@angular/core").OutputEmitterRef<OptionalTimeString>;
191
+ /** Effective minimum date (input or default 10 years ago) */
192
+ effectiveMinDate: import("@angular/core").Signal<string>;
193
+ /** Effective maximum date (input or default 10 years ahead) */
194
+ effectiveMaxDate: import("@angular/core").Signal<string>;
195
+ /** Locale for calendar components */
196
+ calendarLocale: import("@angular/core").Signal<"en-US" | "en-GB" | "es-ES" | "es-MX" | "fr-FR" | "de-DE" | "it-IT" | "pt-BR" | "pt-PT" | "ja-JP" | "ko-KR" | "zh-CN" | "zh-TW" | "ru-RU" | "ar-SA" | "hi-IN" | "nl-NL" | "sv-SE" | "da-DK" | "no-NO" | "fi-FI" | "pl-PL" | "tr-TR" | "he-IL" | "th-TH" | "vi-VN">;
197
+ /** Form control instance from parent form group */
198
+ formField: import("@angular/core").Signal<FormControl<any> | null>;
199
+ /** Formatted display value for single date */
200
+ selectedDate: import("@angular/core").Signal<string>;
201
+ /** Formatted display value for date range */
202
+ selectedRange: import("@angular/core").Signal<{
203
+ start: string;
204
+ end: string;
205
+ } | null>;
206
+ /** @internal Value for calendar-range component (ISO/ISO format) */
207
+ rangeCalendarValue: import("@angular/core").Signal<string>;
208
+ displayValue: import("@angular/core").Signal<string>;
209
+ /** Time values normalized for the inputs based on showSeconds */
210
+ startTimeDisplay: import("@angular/core").Signal<string>;
211
+ endTimeDisplay: import("@angular/core").Signal<string>;
212
+ /** Keep internal state in sync when rangeValue input changes */
213
+ syncInputEff: import("@angular/core").EffectRef;
214
+ /** Sync external start/end time inputs into internal signals */
215
+ syncTimeInputsEff: import("@angular/core").EffectRef;
216
+ /** Exposed selected date value (ISO format) for template access */
217
+ selectedDateValue: import("@angular/core").Signal<string>;
218
+ private formatMonthYear;
219
+ private formatWeekday;
220
+ private formatDateLocale;
221
+ fromDay: import("@angular/core").Signal<string>;
222
+ fromMonthYear: import("@angular/core").Signal<string>;
223
+ fromWeekday: import("@angular/core").Signal<string>;
224
+ toDay: import("@angular/core").Signal<string>;
225
+ toMonthYear: import("@angular/core").Signal<string>;
226
+ toWeekday: import("@angular/core").Signal<string>;
227
+ constructor();
228
+ /**
229
+ * Initialize component values based on inputs
230
+ */
231
+ private initializeValues;
232
+ /**
233
+ * Set single date value programmatically
234
+ */
235
+ private setSingleDateValue;
236
+ /**
237
+ * Emit change events and notify form controls
238
+ */
239
+ private emitChanges;
240
+ /**
241
+ * Close overlay if available
242
+ */
243
+ private closeOverlay;
244
+ /**
245
+ * Handle calendar change events from Cally components
246
+ * @internal
247
+ */
248
+ onCalendarChange(calendarElement: HTMLElement, event?: Event): void;
249
+ /**
250
+ * Apply a predefined quick range preset
251
+ * @param preset One of: 'last7Days' | 'last30Days' | 'last6Months' | 'lastYear'
252
+ * @remarks This updates the date range (ISO). Time inputs are not modified.
253
+ */
254
+ selectQuickRange(preset: QuickRangePreset): Promise<void>;
255
+ /**
256
+ * Apply a time-based quick range (last N hours). Visible only when time picker is enabled.
257
+ * @param hours Number of hours to go back from now
258
+ * @remarks Updates the date range and emits start/end time strings (HH:mm:ss)
259
+ */
260
+ selectQuickLastHours(hours: number): Promise<void>;
261
+ /**
262
+ * Clear the current range selection
263
+ * @remarks Also clears start/end time inputs and emits empty strings for time changes.
264
+ */
265
+ clearRange(): Promise<void>;
266
+ /**
267
+ * Clear the current single date selection
268
+ */
269
+ clearDate(): void;
270
+ /**
271
+ * Set range value programmatically
272
+ */
273
+ private setRangeValue;
274
+ /**
275
+ * Update calendar element to ensure Cally.js synchronization
276
+ */
277
+ private updateCalendarElementValue;
278
+ /**
279
+ * Handle single date calendar change
280
+ */
281
+ private handleSingleCalendarChange;
282
+ /**
283
+ * Handle range calendar change
284
+ */
285
+ private handleRangeCalendarChange;
286
+ /**
287
+ * Finalize range selection: ensure same-day times if needed and emit when selection is complete
288
+ */
289
+ private finalizeRangeSelection;
290
+ /**
291
+ * Extract date value from calendar element
292
+ */
293
+ private extractDateValue;
294
+ /**
295
+ * Extract range value from calendar element
296
+ */
297
+ private extractRangeValue;
298
+ /**
299
+ * Write external model value into the component
300
+ */
301
+ writeValue(obj: DatePickerValue): void;
302
+ /**
303
+ * Register form change callback
304
+ */
305
+ registerOnChange(fn: (value: DatePickerValue) => void): void;
306
+ /**
307
+ * Register form touched callback
308
+ */
309
+ registerOnTouched(fn: () => void): void;
310
+ /**
311
+ * Update disabled state from Angular forms
312
+ */
313
+ setDisabledState(isDisabled: boolean): void;
314
+ /** Icons for navigation buttons */
315
+ readonly iconChevronLeft = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M15.41 7.41L14 6l-6 6l6 6l1.41-1.41L10.83 12z\"></path></svg>";
316
+ readonly iconChevronRight = "<svg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"currentColor\"><path d=\"M10 6L8.59 7.41L13.17 12l-4.58 4.59L10 18l6-6z\"></path></svg>";
317
+ readonly iconClock = "<svg xmlns=\"http://www.w3.org/2000/svg\" fill=\"none\" viewBox=\"0 0 24 24\" stroke=\"currentColor\" aria-hidden=\"true\" data-slot=\"icon\" style=\"stroke-width:var(--ng-icon__stroke-width, 1.5)\"><path stroke-linecap=\"round\" stroke-linejoin=\"round\" d=\"M12 6v6h4.5m4.5 0a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z\"></path></svg>";
318
+ private clampTime;
319
+ onStartTimeChange(ev: Event): void;
320
+ onEndTimeChange(ev: Event): void;
321
+ static ɵfac: i0.ɵɵFactoryDeclaration<DatepickerComponent, never>;
322
+ static ɵcmp: i0.ɵɵComponentDeclaration<DatepickerComponent, "st-datepicker", ["stDatepicker"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "language": { "alias": "language"; "required": false; "isSignal": true; }; "minDate": { "alias": "minDate"; "required": false; "isSignal": true; }; "maxDate": { "alias": "maxDate"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "rangeValue": { "alias": "rangeValue"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "rangeCalendars": { "alias": "rangeCalendars"; "required": false; "isSignal": true; }; "showQuickActions": { "alias": "showQuickActions"; "required": false; "isSignal": true; }; "showTimePicker": { "alias": "showTimePicker"; "required": false; "isSignal": true; }; "showSeconds": { "alias": "showSeconds"; "required": false; "isSignal": true; }; "timeDisplayFormat": { "alias": "timeDisplayFormat"; "required": false; "isSignal": true; }; "languageMapping": { "alias": "languageMapping"; "required": false; "isSignal": true; }; "useLocaleDisplay": { "alias": "useLocaleDisplay"; "required": false; "isSignal": true; }; "dateStyle": { "alias": "dateStyle"; "required": false; "isSignal": true; }; "startTimeValue": { "alias": "startTimeValue"; "required": false; "isSignal": true; }; "endTimeValue": { "alias": "endTimeValue"; "required": false; "isSignal": true; }; "parentForm": { "alias": "parentForm"; "required": false; "isSignal": true; }; "formControlName": { "alias": "formControlName"; "required": false; "isSignal": true; }; }, { "dateUpdated": "dateUpdated"; "rangeUpdated": "rangeUpdated"; "valueChanged": "valueChanged"; "rangeValueChanged": "rangeValueChanged"; "startTimeChanged": "startTimeChanged"; "endTimeChanged": "endTimeChanged"; }, never, ["*"], true, never>;
323
+ }
@@ -0,0 +1,39 @@
1
+ import { DATE_STYLES, DATEPICKER_MODES, RANGE_CALENDARS, SUPPORTED_LOCALES, TIME_DISPLAY_FORMATS } from '../constants/date-picker.constants';
2
+ /** Union type of all supported locale strings for the datepicker. */
3
+ export type SupportedLocale = (typeof SUPPORTED_LOCALES)[number];
4
+ /**
5
+ * Union type for datepicker component values
6
+ */
7
+ export type DatePickerValue = string | import('@sixbell-telco/sdk/utils/date').DateRange | null;
8
+ /** Derived union types from constants for the public API */
9
+ /** One of 'single' or 'range' */
10
+ export type DatepickerMode = (typeof DATEPICKER_MODES)[number];
11
+ /** Time display format for trigger text: '24h' | '12h' */
12
+ export type TimeDisplayFormat = (typeof TIME_DISPLAY_FORMATS)[number];
13
+ /** Intl.DateTimeFormat dateStyle value used when useLocaleDisplay=true */
14
+ export type DateStyle = (typeof DATE_STYLES)[number];
15
+ /** Number of calendars to display in range mode: 1 | 2 */
16
+ export type RangeCalendars = (typeof RANGE_CALENDARS)[number];
17
+ /** Time string with minutes precision (e.g. 09:30) */
18
+ /** Time with minutes precision (e.g. "09:30"). Always 2-digit HH and mm. */
19
+ export type TimeMinutesString = `${number}${number}:${number}${number}`;
20
+ /** Time string with seconds precision (e.g. 09:30:15) */
21
+ /** Time with seconds precision (e.g. "09:30:15"). Always 2-digit HH, mm, ss. */
22
+ export type TimeSecondsString = `${number}${number}:${number}${number}:${number}${number}`;
23
+ /** Time string accepted by the datepicker time inputs/outputs */
24
+ /**
25
+ * Canonical time string shape accepted by the datepicker time inputs/outputs.
26
+ * Values are either HH:mm or HH:mm:ss with leading zeros.
27
+ */
28
+ export type TimeString = TimeMinutesString | TimeSecondsString;
29
+ /** Time string or empty string to represent an unset time */
30
+ /**
31
+ * Official "unset time" representation used by the datepicker API.
32
+ * - Use '' (empty string) to indicate no time has been selected/set yet.
33
+ * - Use TimeString when a time is explicitly selected.
34
+ *
35
+ * Notes for consumers:
36
+ * - Bind startTimeValue/endTimeValue with '' to clear/reset the time input.
37
+ * - Listen to (startTimeChanged)/(endTimeChanged) which emit OptionalTimeString and handle '' as "no time".
38
+ */
39
+ export type OptionalTimeString = TimeString | '';
@@ -0,0 +1,5 @@
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ /// <amd-module name="@sixbell-telco/sdk/components/overlay" />
5
+ export * from './public-api';
@@ -0,0 +1,23 @@
1
+ import { TemplateRef } from '@angular/core';
2
+ import * as i0 from "@angular/core";
3
+ /**
4
+ * OverlayContent - Content container for overlay
5
+ *
6
+ * @remarks
7
+ * This component contains the overlay content and provides it as a template
8
+ * for the overlay component to display.
9
+ *
10
+ * @example
11
+ * ```html
12
+ * <st-overlay-content>
13
+ * <div class="p-4 bg-base-100 rounded-box shadow-lg">
14
+ * Your custom content here
15
+ * </div>
16
+ * </st-overlay-content>
17
+ * ```
18
+ */
19
+ export declare class OverlayContentComponent {
20
+ template: TemplateRef<unknown>;
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<OverlayContentComponent, never>;
22
+ static ɵcmp: i0.ɵɵComponentDeclaration<OverlayContentComponent, "st-overlay-content", never, {}, {}, never, ["*"], true, never>;
23
+ }
@@ -0,0 +1,48 @@
1
+ import { CdkOverlayOrigin } from '@angular/cdk/overlay';
2
+ import { ElementRef } from '@angular/core';
3
+ import { OverlayComponent } from '../src/overlay.component';
4
+ import * as i0 from "@angular/core";
5
+ /**
6
+ * OverlayTrigger - Trigger component for overlay positioning
7
+ *
8
+ * @remarks
9
+ * This component acts as the trigger that opens/closes the overlay content.
10
+ * It can contain any content (buttons, inputs, avatars, text, icons, etc.).
11
+ * Uses CdkOverlayOrigin for positioning reference.
12
+ *
13
+ * @example
14
+ * ```html
15
+ * <st-overlay>
16
+ * <st-overlay-trigger>
17
+ * <button class="btn btn-primary">Open Overlay</button>
18
+ * </st-overlay-trigger>
19
+ * <st-overlay-content>
20
+ * <div>Your content</div>
21
+ * </st-overlay-content>
22
+ * </st-overlay>
23
+ * ```
24
+ */
25
+ export declare class OverlayTriggerComponent {
26
+ overlayOrigin: CdkOverlayOrigin;
27
+ private overlayComponent;
28
+ private readonly elementRef;
29
+ constructor(elementRef: ElementRef);
30
+ /**
31
+ * Set the parent overlay component reference
32
+ */
33
+ setOverlayComponent(overlay: OverlayComponent): void;
34
+ /**
35
+ * Handle click events to toggle the overlay
36
+ */
37
+ onClick(event: Event): void;
38
+ /**
39
+ * Get the overlay origin element
40
+ */
41
+ get triggerElement(): CdkOverlayOrigin;
42
+ /**
43
+ * Get the native DOM element for width calculations
44
+ */
45
+ get nativeElement(): HTMLElement;
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<OverlayTriggerComponent, never>;
47
+ static ɵcmp: i0.ɵɵComponentDeclaration<OverlayTriggerComponent, "st-overlay-trigger", never, {}, {}, never, ["*"], true, never>;
48
+ }
@@ -0,0 +1,3 @@
1
+ export * from './overlay-content/overlay-content.component';
2
+ export * from './overlay-trigger/overlay-trigger.component';
3
+ export * from './src/overlay.component';
@@ -0,0 +1,158 @@
1
+ import { ConnectedOverlayPositionChange, ConnectedPosition } from '@angular/cdk/overlay';
2
+ import { AfterContentInit } from '@angular/core';
3
+ import { OverlayContentComponent } from '../overlay-content/overlay-content.component';
4
+ import { OverlayTriggerComponent } from '../overlay-trigger/overlay-trigger.component';
5
+ import * as i0 from "@angular/core";
6
+ /** Overlay X position options for CDK overlay positioning */
7
+ export type OverlayXPosition = 'start' | 'center' | 'end';
8
+ /** Overlay Y position options for CDK overlay positioning */
9
+ export type OverlayYPosition = 'top' | 'bottom' | 'center';
10
+ /** Overlay fallback position configuration */
11
+ export interface OverlayFallbackPositions {
12
+ /** Enable automatic fallback positions */
13
+ enabled: boolean;
14
+ /** Custom fallback positions - if not provided, default fallbacks will be used */
15
+ positions?: ConnectedPosition[];
16
+ }
17
+ /**
18
+ * Overlay - Shell component for creating custom overlays with positioning
19
+ *
20
+ * @remarks
21
+ * This component provides the infrastructure for creating custom overlays with proper positioning,
22
+ * accessibility, and animation support. It's designed to be used as a shell where the consumer
23
+ * has full control over the trigger and content styling.
24
+ *
25
+ * The overlay is controlled through methods: Use `open()`, `close()`, and `toggle()` methods programmatically
26
+ * via template reference variables.
27
+ *
28
+ * @example
29
+ * ```html
30
+ * <!-- Basic usage -->
31
+ * <st-overlay>
32
+ * <st-overlay-trigger>
33
+ * <button>Trigger</button>
34
+ * </st-overlay-trigger>
35
+ * <st-overlay-content>
36
+ * <div>Content</div>
37
+ * </st-overlay-content>
38
+ * </st-overlay>
39
+ *
40
+ * <!-- Using methods for programmatic control -->
41
+ * <st-overlay #overlay="stOverlay">
42
+ * <st-overlay-trigger>
43
+ * <button>Trigger</button>
44
+ * </st-overlay-trigger>
45
+ * <st-overlay-content>
46
+ * <div>Content</div>
47
+ * <button (click)="overlay.close()">Close</button>
48
+ * </st-overlay-content>
49
+ * </st-overlay-content>
50
+ * </st-overlay>
51
+ * <button (click)="overlay.open()">Open</button>
52
+ * <button (click)="overlay.close()">Close</button>
53
+ *
54
+ * <!-- Using width sync for dropdowns/selects -->
55
+ * <st-overlay [syncWidth]="true">
56
+ * <st-overlay-trigger>
57
+ * <button class="w-64">Trigger with specific width</button>
58
+ * </st-overlay-trigger>
59
+ * <st-overlay-content>
60
+ * <div>Content will match trigger width</div>
61
+ * </st-overlay-content>
62
+ * </st-overlay>
63
+ * ```
64
+ */
65
+ export declare class OverlayComponent implements AfterContentInit {
66
+ trigger: OverlayTriggerComponent;
67
+ content: OverlayContentComponent;
68
+ /** Offset X in pixels */
69
+ offsetX: import("@angular/core").InputSignal<number>;
70
+ /** Offset Y in pixels */
71
+ offsetY: import("@angular/core").InputSignal<number>;
72
+ /** Origin X position */
73
+ originX: import("@angular/core").InputSignal<OverlayXPosition>;
74
+ /** Origin Y position */
75
+ originY: import("@angular/core").InputSignal<OverlayYPosition>;
76
+ /** Overlay X position */
77
+ overlayX: import("@angular/core").InputSignal<OverlayXPosition>;
78
+ /** Overlay Y position */
79
+ overlayY: import("@angular/core").InputSignal<OverlayYPosition>;
80
+ /** Fallback positions configuration */
81
+ fallbacks: import("@angular/core").InputSignal<OverlayFallbackPositions>;
82
+ /** Whether to sync the overlay content width with the trigger width */
83
+ syncWidth: import("@angular/core").InputSignal<boolean>;
84
+ /** Internal signal to track overlay state */
85
+ readonly _isOpen: import("@angular/core").WritableSignal<boolean>;
86
+ /** Internal signal to track the synced width */
87
+ readonly _syncedWidth: import("@angular/core").WritableSignal<string | null>;
88
+ /** Current active position configuration */
89
+ currentPosition: import("@angular/core").WritableSignal<ConnectedPosition | null>;
90
+ /** Event emitted when overlay is opened */
91
+ opened: import("@angular/core").OutputEmitterRef<void>;
92
+ /** Event emitted when overlay is closed */
93
+ closed: import("@angular/core").OutputEmitterRef<void>;
94
+ constructor();
95
+ ngAfterContentInit(): void;
96
+ /**
97
+ * Computed positions array based on signal inputs
98
+ */
99
+ positions: import("@angular/core").Signal<ConnectedPosition[]>;
100
+ /**
101
+ * Generate default fallback positions based on the primary position
102
+ */
103
+ private generateDefaultFallbacks;
104
+ /**
105
+ * Helper to flip Y position
106
+ */
107
+ private getOppositeY;
108
+ /**
109
+ * Helper to flip X position
110
+ */
111
+ private getOppositeX;
112
+ /**
113
+ * Helper to create position variant
114
+ */
115
+ private createPosition;
116
+ /**
117
+ * Add axis flip fallbacks
118
+ */
119
+ private addAxisFlips;
120
+ /**
121
+ * Add standard overlay positions
122
+ */
123
+ private addStandardPositions;
124
+ /**
125
+ * Check if position is duplicate
126
+ */
127
+ private isPositionDuplicate;
128
+ /**
129
+ * Open the overlay
130
+ */
131
+ open(): void;
132
+ /**
133
+ * Close the overlay
134
+ */
135
+ close(): void;
136
+ /**
137
+ * Toggle the overlay open/close state
138
+ */
139
+ toggle(): void;
140
+ /**
141
+ * Update the synced width based on trigger element width
142
+ */
143
+ private updateSyncedWidth;
144
+ /**
145
+ * Handle position changes from CDK overlay
146
+ */
147
+ onPositionChange(position: ConnectedOverlayPositionChange): void;
148
+ /**
149
+ * Handle click outside to close overlay
150
+ */
151
+ onClickOutside(): void;
152
+ /**
153
+ * Handle window resize to update synced width
154
+ */
155
+ onWindowResize(): void;
156
+ static ɵfac: i0.ɵɵFactoryDeclaration<OverlayComponent, never>;
157
+ static ɵcmp: i0.ɵɵComponentDeclaration<OverlayComponent, "st-overlay", ["stOverlay"], { "offsetX": { "alias": "offsetX"; "required": false; "isSignal": true; }; "offsetY": { "alias": "offsetY"; "required": false; "isSignal": true; }; "originX": { "alias": "originX"; "required": false; "isSignal": true; }; "originY": { "alias": "originY"; "required": false; "isSignal": true; }; "overlayX": { "alias": "overlayX"; "required": false; "isSignal": true; }; "overlayY": { "alias": "overlayY"; "required": false; "isSignal": true; }; "fallbacks": { "alias": "fallbacks"; "required": false; "isSignal": true; }; "syncWidth": { "alias": "syncWidth"; "required": false; "isSignal": true; }; }, { "opened": "opened"; "closed": "closed"; }, ["trigger", "content"], ["st-overlay-trigger"], true, never>;
158
+ }
@@ -4,10 +4,10 @@ import * as i0 from "@angular/core";
4
4
  * Generates base pagination item classes with style variants
5
5
  */
6
6
  export declare const paginationItemComponent: (props?: ({
7
- variant?: "numeric" | "icon" | "dots" | null | undefined;
7
+ variant?: "numeric" | "icon" | "dots" | "ellipsis" | null | undefined;
8
8
  } & import("class-variance-authority/types").ClassProp) | undefined) => string;
9
9
  /** Possible pagination item style variants */
10
- export type PaginationItemVariantProps = 'numeric' | 'icon' | 'dots' | null | undefined;
10
+ export type PaginationItemVariantProps = 'numeric' | 'icon' | 'dots' | 'ellipsis' | null | undefined;
11
11
  /** Configuration object for pagination item styling */
12
12
  export type PaginationItemProps = {
13
13
  variant?: PaginationItemVariantProps;
@@ -69,11 +69,16 @@ export declare class PaginationItemComponent {
69
69
  * @defaultValue false
70
70
  */
71
71
  active: import("@angular/core").InputSignal<boolean>;
72
+ /**
73
+ * Disabled state styling
74
+ * @defaultValue false
75
+ */
76
+ disabled: import("@angular/core").InputSignal<boolean>;
72
77
  /**
73
78
  * @internal
74
79
  * Computed class string for the pagination item
75
80
  */
76
81
  componentClass: import("@angular/core").Signal<string>;
77
82
  static ɵfac: i0.ɵɵFactoryDeclaration<PaginationItemComponent, never>;
78
- static ɵcmp: i0.ɵɵComponentDeclaration<PaginationItemComponent, "st-pagination-item", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "number": { "alias": "number"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
83
+ static ɵcmp: i0.ɵɵComponentDeclaration<PaginationItemComponent, "st-pagination-item", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "number": { "alias": "number"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
79
84
  }