@tekus/design-system 5.34.0 → 5.35.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 (39) hide show
  1. package/fesm2022/tekus-design-system-components-action-group.mjs +1 -1
  2. package/fesm2022/tekus-design-system-components-action-group.mjs.map +1 -1
  3. package/fesm2022/tekus-design-system-components-button.mjs +24 -3
  4. package/fesm2022/tekus-design-system-components-button.mjs.map +1 -1
  5. package/fesm2022/tekus-design-system-components-card.mjs +1 -1
  6. package/fesm2022/tekus-design-system-components-card.mjs.map +1 -1
  7. package/fesm2022/tekus-design-system-components-carousel.mjs +209 -0
  8. package/fesm2022/tekus-design-system-components-carousel.mjs.map +1 -0
  9. package/fesm2022/tekus-design-system-components-color-picker.mjs +1 -1
  10. package/fesm2022/tekus-design-system-components-color-picker.mjs.map +1 -1
  11. package/fesm2022/tekus-design-system-components-drawer.mjs +1 -1
  12. package/fesm2022/tekus-design-system-components-drawer.mjs.map +1 -1
  13. package/fesm2022/tekus-design-system-components-dropdown.mjs +1 -1
  14. package/fesm2022/tekus-design-system-components-dropdown.mjs.map +1 -1
  15. package/fesm2022/tekus-design-system-components-fallback-view.mjs +1 -1
  16. package/fesm2022/tekus-design-system-components-fallback-view.mjs.map +1 -1
  17. package/fesm2022/tekus-design-system-components-icon.mjs +2 -2
  18. package/fesm2022/tekus-design-system-components-icon.mjs.map +1 -1
  19. package/fesm2022/tekus-design-system-components-modal.mjs +2 -2
  20. package/fesm2022/tekus-design-system-components-modal.mjs.map +1 -1
  21. package/fesm2022/tekus-design-system-components-process-steps.mjs +111 -0
  22. package/fesm2022/tekus-design-system-components-process-steps.mjs.map +1 -0
  23. package/fesm2022/tekus-design-system-components-sidebar-layout.mjs +1 -1
  24. package/fesm2022/tekus-design-system-components-sidebar-layout.mjs.map +1 -1
  25. package/fesm2022/tekus-design-system-components-stepper.mjs +1 -1
  26. package/fesm2022/tekus-design-system-components-stepper.mjs.map +1 -1
  27. package/fesm2022/tekus-design-system-components-table.mjs +1 -1
  28. package/fesm2022/tekus-design-system-components-table.mjs.map +1 -1
  29. package/fesm2022/tekus-design-system-components-toast.mjs +1 -1
  30. package/fesm2022/tekus-design-system-components-toast.mjs.map +1 -1
  31. package/fesm2022/tekus-design-system-components-toolbar.mjs +1 -1
  32. package/fesm2022/tekus-design-system-components-toolbar.mjs.map +1 -1
  33. package/fesm2022/tekus-design-system-components-topbar.mjs +1 -1
  34. package/fesm2022/tekus-design-system-components-topbar.mjs.map +1 -1
  35. package/package.json +9 -1
  36. package/types/tekus-design-system-components-button.d.ts +20 -1
  37. package/types/tekus-design-system-components-carousel.d.ts +196 -0
  38. package/types/tekus-design-system-components-modal.d.ts +1 -1
  39. package/types/tekus-design-system-components-process-steps.d.ts +57 -0
@@ -0,0 +1,57 @@
1
+ import * as _angular_core from '@angular/core';
2
+
3
+ type StepState = 'waiting' | 'active' | 'done' | 'error' | 'warning';
4
+ interface ProcessStep {
5
+ label: string;
6
+ state: StepState;
7
+ }
8
+ /**
9
+ * Overall result of the process:
10
+ * - `progress`: shows the spinner header and the step list.
11
+ * - `success` | `error` | `warning`: replaces the progress view with a
12
+ * final result message (used once polling finishes).
13
+ */
14
+ type ProcessStepsStatus = 'progress' | 'success' | 'error' | 'warning';
15
+
16
+ declare class ProcessStepsComponent {
17
+ readonly steps: _angular_core.InputSignal<ProcessStep[]>;
18
+ readonly title: _angular_core.InputSignal<string>;
19
+ readonly description: _angular_core.InputSignal<string | undefined>;
20
+ readonly icon: _angular_core.InputSignal<string>;
21
+ readonly status: _angular_core.InputSignal<ProcessStepsStatus>;
22
+ /** Specific problems to list inside the result message box (ignored when `status` is `success`). */
23
+ readonly errors: _angular_core.InputSignal<string[]>;
24
+ /** Seconds until the countdown finishes; omit to disable it. */
25
+ readonly countdownSeconds: _angular_core.InputSignal<number | undefined>;
26
+ /**
27
+ * Countdown text; `{seconds}` is replaced with the seconds left. Defaults to a "closing"
28
+ * message, but the countdown isn't only for closing — override it to match what
29
+ * `(countdownFinished)` actually does.
30
+ */
31
+ readonly countdownLabel: _angular_core.InputSignal<string>;
32
+ /** Emitted once when the countdown reaches zero — the consumer decides what happens next (close a modal, show a toast, etc.). */
33
+ readonly countdownFinished: _angular_core.OutputEmitterRef<void>;
34
+ /** Seconds left in the countdown, or `undefined` while it's disabled. */
35
+ readonly remainingSeconds: _angular_core.WritableSignal<number | undefined>;
36
+ constructor();
37
+ /** Starts (or disables) the countdown whenever `status`/`countdownSeconds` change. */
38
+ private runCountdown;
39
+ /** Decrements `remainingSeconds` by one and emits `countdownFinished` once it bottoms out. */
40
+ private tickCountdown;
41
+ /**
42
+ * Accessible suffix announced per step since state is otherwise
43
+ * conveyed only through color/icon.
44
+ */
45
+ stepStatusLabel(state: StepState): string;
46
+ readonly resultIcon: _angular_core.Signal<string>;
47
+ readonly resultColor: _angular_core.Signal<"warning" | "success" | "danger">;
48
+ /** Severity for the message box wrapping `description`/`errors` (success has no box). */
49
+ readonly resultMessageSeverity: _angular_core.Signal<"error" | "warn">;
50
+ /** `countdownLabel` with `{seconds}` filled in, or `undefined` while the countdown is disabled. */
51
+ readonly countdownText: _angular_core.Signal<string | undefined>;
52
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<ProcessStepsComponent, never>;
53
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<ProcessStepsComponent, "tk-process-steps", never, { "steps": { "alias": "steps"; "required": false; "isSignal": true; }; "title": { "alias": "title"; "required": true; "isSignal": true; }; "description": { "alias": "description"; "required": false; "isSignal": true; }; "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": false; "isSignal": true; }; "errors": { "alias": "errors"; "required": false; "isSignal": true; }; "countdownSeconds": { "alias": "countdownSeconds"; "required": false; "isSignal": true; }; "countdownLabel": { "alias": "countdownLabel"; "required": false; "isSignal": true; }; }, { "countdownFinished": "countdownFinished"; }, never, never, true, never>;
54
+ }
55
+
56
+ export { ProcessStepsComponent };
57
+ export type { ProcessStep, ProcessStepsStatus, StepState };