shirkasoft-ui-components 1.14.0 → 2.0.1

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 (92) hide show
  1. package/README.md +12 -9
  2. package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs +189 -100
  3. package/fesm2022/shirkasoft-ui-components-breadcrumb.mjs.map +1 -1
  4. package/fesm2022/shirkasoft-ui-components-button.mjs +363 -69
  5. package/fesm2022/shirkasoft-ui-components-button.mjs.map +1 -1
  6. package/fesm2022/shirkasoft-ui-components-chart.mjs +206 -142
  7. package/fesm2022/shirkasoft-ui-components-chart.mjs.map +1 -1
  8. package/fesm2022/shirkasoft-ui-components-config.mjs +905 -843
  9. package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -1
  10. package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs +307 -142
  11. package/fesm2022/shirkasoft-ui-components-confirm-dialog.mjs.map +1 -1
  12. package/fesm2022/shirkasoft-ui-components-date-picker.mjs +1697 -1440
  13. package/fesm2022/shirkasoft-ui-components-date-picker.mjs.map +1 -1
  14. package/fesm2022/shirkasoft-ui-components-fieldset.mjs +347 -92
  15. package/fesm2022/shirkasoft-ui-components-fieldset.mjs.map +1 -1
  16. package/fesm2022/shirkasoft-ui-components-file-upload.mjs +555 -300
  17. package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
  18. package/fesm2022/shirkasoft-ui-components-icons.mjs +1028 -533
  19. package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -1
  20. package/fesm2022/shirkasoft-ui-components-knob.mjs +389 -201
  21. package/fesm2022/shirkasoft-ui-components-knob.mjs.map +1 -1
  22. package/fesm2022/shirkasoft-ui-components-loading.mjs +505 -128
  23. package/fesm2022/shirkasoft-ui-components-loading.mjs.map +1 -1
  24. package/fesm2022/shirkasoft-ui-components-modal.mjs +311 -314
  25. package/fesm2022/shirkasoft-ui-components-modal.mjs.map +1 -1
  26. package/fesm2022/shirkasoft-ui-components-notification.mjs +188 -142
  27. package/fesm2022/shirkasoft-ui-components-notification.mjs.map +1 -1
  28. package/fesm2022/shirkasoft-ui-components-price-input.mjs +585 -327
  29. package/fesm2022/shirkasoft-ui-components-price-input.mjs.map +1 -1
  30. package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs +669 -289
  31. package/fesm2022/shirkasoft-ui-components-rail-sidebar.mjs.map +1 -1
  32. package/fesm2022/shirkasoft-ui-components-select.mjs +1076 -819
  33. package/fesm2022/shirkasoft-ui-components-select.mjs.map +1 -1
  34. package/fesm2022/shirkasoft-ui-components-sidebar.mjs +508 -184
  35. package/fesm2022/shirkasoft-ui-components-sidebar.mjs.map +1 -1
  36. package/fesm2022/shirkasoft-ui-components-skeleton.mjs +197 -57
  37. package/fesm2022/shirkasoft-ui-components-skeleton.mjs.map +1 -1
  38. package/fesm2022/shirkasoft-ui-components-table.mjs +1916 -1698
  39. package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
  40. package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -175
  41. package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
  42. package/fesm2022/shirkasoft-ui-components-tag.mjs +175 -49
  43. package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
  44. package/fesm2022/shirkasoft-ui-components-text-field.mjs +749 -402
  45. package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
  46. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +310 -124
  47. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -1
  48. package/fesm2022/shirkasoft-ui-components-theme.mjs +141 -174
  49. package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -1
  50. package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -203
  51. package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
  52. package/fesm2022/shirkasoft-ui-components-toggle.mjs +179 -109
  53. package/fesm2022/shirkasoft-ui-components-toggle.mjs.map +1 -1
  54. package/fesm2022/shirkasoft-ui-components-tooltip.mjs +244 -180
  55. package/fesm2022/shirkasoft-ui-components-tooltip.mjs.map +1 -1
  56. package/fesm2022/shirkasoft-ui-components-utils.mjs +129 -133
  57. package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
  58. package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -165
  59. package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
  60. package/fesm2022/shirkasoft-ui-components.mjs +0 -9
  61. package/package.json +5 -5
  62. package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
  63. package/types/shirkasoft-ui-components-button.d.ts +142 -49
  64. package/types/shirkasoft-ui-components-chart.d.ts +59 -44
  65. package/types/shirkasoft-ui-components-config.d.ts +193 -204
  66. package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -66
  67. package/types/shirkasoft-ui-components-date-picker.d.ts +561 -398
  68. package/types/shirkasoft-ui-components-fieldset.d.ts +135 -60
  69. package/types/shirkasoft-ui-components-file-upload.d.ts +210 -112
  70. package/types/shirkasoft-ui-components-icons.d.ts +1302 -1294
  71. package/types/shirkasoft-ui-components-knob.d.ts +144 -78
  72. package/types/shirkasoft-ui-components-loading.d.ts +155 -64
  73. package/types/shirkasoft-ui-components-modal.d.ts +134 -136
  74. package/types/shirkasoft-ui-components-notification.d.ts +63 -59
  75. package/types/shirkasoft-ui-components-price-input.d.ts +232 -113
  76. package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
  77. package/types/shirkasoft-ui-components-select.d.ts +335 -196
  78. package/types/shirkasoft-ui-components-sidebar.d.ts +198 -93
  79. package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
  80. package/types/shirkasoft-ui-components-table.d.ts +849 -660
  81. package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
  82. package/types/shirkasoft-ui-components-tag.d.ts +54 -23
  83. package/types/shirkasoft-ui-components-text-field.d.ts +263 -127
  84. package/types/shirkasoft-ui-components-theme-picker.d.ts +92 -58
  85. package/types/shirkasoft-ui-components-theme.d.ts +56 -64
  86. package/types/shirkasoft-ui-components-timeline.d.ts +325 -150
  87. package/types/shirkasoft-ui-components-toggle.d.ts +73 -49
  88. package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
  89. package/types/shirkasoft-ui-components-utils.d.ts +47 -15
  90. package/types/shirkasoft-ui-components-wizard.d.ts +236 -87
  91. package/types/shirkasoft-ui-components.d.ts +1 -2
  92. package/fesm2022/shirkasoft-ui-components.mjs.map +0 -1
@@ -1,6 +1,8 @@
1
- import * as _angular_core from '@angular/core';
2
- import { OnDestroy } from '@angular/core';
3
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { OnDestroy } from "@angular/core";
4
6
  /**
5
7
  * Shirkasoft UI Components.
6
8
  * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
@@ -11,43 +13,62 @@ import { OnDestroy } from '@angular/core';
11
13
  * floats above any container (tables with `overflow: hidden`, modals, scroll
12
14
  * wrappers, etc.) and never gets clipped or hidden behind its anchor element.
13
15
  */
14
- declare class TooltipComponent implements OnDestroy {
15
- /** Content of the tooltip. */
16
- readonly text: _angular_core.InputSignal<string>;
17
- /** Preferred placement relative to the trigger. */
18
- readonly position: _angular_core.InputSignal<"top" | "bottom" | "right">;
19
- /** 'hover' shows on mouse enter; 'fixed' stays pinned to the content. */
20
- readonly mode: _angular_core.InputSignal<"hover" | "fixed">;
21
- /** Distance (px) between the tooltip and the trigger. */
22
- readonly offset: _angular_core.InputSignal<number>;
23
- private readonly host;
24
- private readonly document;
25
- /** The dynamically created tooltip element. */
26
- private tooltipEl;
27
- /** Unsubscribe callbacks for the scroll/resize listeners. */
28
- private cleanup;
29
- /** Shows the tooltip over the host trigger on mouseenter. */
30
- onMouseEnter(): void;
31
- /** Hides the tooltip on mouseleave. */
32
- onMouseLeave(): void;
33
- /** Also opens on keyboard focus, so icon-only triggers are readable. */
34
- onFocusIn(): void;
35
- /** Closes when the focus leaves the trigger. */
36
- onFocusOut(): void;
37
- /** Opens the tooltip when there is text to show. */
38
- private open;
39
- /** Creates and positions the tooltip element on `document.body`. */
40
- private show;
41
- /** Computes the tooltip position, clamped to the viewport. */
42
- private computePosition;
43
- /** Fades the tooltip out and removes it from the DOM. */
44
- private hide;
45
- /** Removes the tooltip and its listeners. */
46
- private removeTooltip;
47
- /** Cleans up the tooltip on component destroy. */
48
- ngOnDestroy(): void;
49
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<TooltipComponent, never>;
50
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<TooltipComponent, "shk-tooltip", never, { "text": { "alias": "text"; "required": false; "isSignal": true; }; "position": { "alias": "position"; "required": false; "isSignal": true; }; "mode": { "alias": "mode"; "required": false; "isSignal": true; }; "offset": { "alias": "offset"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
51
- }
52
-
53
- export { TooltipComponent };
16
+ export declare class TooltipComponent implements OnDestroy {
17
+ /** Content of the tooltip. */
18
+ readonly text: import("@angular/core").InputSignal<string>;
19
+ /** Preferred placement relative to the trigger. */
20
+ readonly position: import("@angular/core").InputSignal<"top" | "bottom" | "right">;
21
+ /** 'hover' shows on mouse enter; 'fixed' stays pinned to the content. */
22
+ readonly mode: import("@angular/core").InputSignal<"hover" | "fixed">;
23
+ /** Distance (px) between the tooltip and the trigger. */
24
+ readonly offset: import("@angular/core").InputSignal<number>;
25
+ private readonly host;
26
+ private readonly document;
27
+ /** The dynamically created tooltip element. */
28
+ private tooltipEl;
29
+ /** Unsubscribe callbacks for the scroll/resize listeners. */
30
+ private cleanup;
31
+ /** Shows the tooltip over the host trigger on mouseenter. */
32
+ onMouseEnter(): void;
33
+ /** Hides the tooltip on mouseleave. */
34
+ onMouseLeave(): void;
35
+ /** Also opens on keyboard focus, so icon-only triggers are readable. */
36
+ onFocusIn(): void;
37
+ /** Closes when the focus leaves the trigger. */
38
+ onFocusOut(): void;
39
+ /** Opens the tooltip when there is text to show. */
40
+ private open;
41
+ /** Creates and positions the tooltip element on `document.body`. */
42
+ private show;
43
+ /** Computes the tooltip position, clamped to the viewport. */
44
+ private computePosition;
45
+ /** Fades the tooltip out and removes it from the DOM. */
46
+ private hide;
47
+ /** Removes the tooltip and its listeners. */
48
+ private removeTooltip;
49
+ /** Cleans up the tooltip on component destroy. */
50
+ ngOnDestroy(): void;
51
+ static ɵfac: i0.ɵɵFactoryDeclaration<TooltipComponent, never>;
52
+ static ɵcmp: i0.ɵɵComponentDeclaration<TooltipComponent, "shk-tooltip", never, {
53
+ "text": {
54
+ "alias": "text";
55
+ "required": false;
56
+ "isSignal": true;
57
+ };
58
+ "position": {
59
+ "alias": "position";
60
+ "required": false;
61
+ "isSignal": true;
62
+ };
63
+ "mode": {
64
+ "alias": "mode";
65
+ "required": false;
66
+ "isSignal": true;
67
+ };
68
+ "offset": {
69
+ "alias": "offset";
70
+ "required": false;
71
+ "isSignal": true;
72
+ };
73
+ }, {}, never, ["*"], true, never>;
74
+ }
@@ -1,8 +1,11 @@
1
- import { IconNode } from 'shirkasoft-ui-components/icons';
2
- import * as i0 from '@angular/core';
3
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import { IconNode } from "shirkasoft-ui-components/icons";
5
+ import * as i0 from "@angular/core";
6
+ import { ValidationError } from "@angular/forms/signals";
4
7
  /** Maps the icon names used across the library to their SVG data. */
5
- declare const ICONS: Record<string, IconNode>;
8
+ export declare const ICONS: Record<string, IconNode>;
6
9
  /**
7
10
  * True when `icon` is a per-item resolver function such as `(row) => 'pencil'`.
8
11
  *
@@ -11,13 +14,12 @@ declare const ICONS: Record<string, IconNode>;
11
14
  * "Class constructor cannot be invoked without 'new'". Those fall through to
12
15
  * `getIcon()`, which renders the fallback icon instead.
13
16
  */
14
- declare function isIconResolver(icon: unknown): icon is (...args: any[]) => unknown;
17
+ export declare function isIconResolver(icon: unknown): icon is (...args: any[]) => unknown;
15
18
  /**
16
19
  * Resolves the icon passed to a component into SVG data.
17
20
  * Accepts a registered string name or an icon node array.
18
21
  */
19
- declare function getIcon(icon?: any, fallback?: any): IconNode | null;
20
-
22
+ export declare function getIcon(icon?: any, fallback?: any): IconNode | null;
21
23
  /**
22
24
  * Shirkasoft UI Components.
23
25
  * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
@@ -41,7 +43,7 @@ declare function getIcon(icon?: any, fallback?: any): IconNode | null;
41
43
  * Returns a function that removes the element from the DOM; call it when the
42
44
  * owner component is destroyed so the element does not stay orphaned in `body`.
43
45
  */
44
- declare function portalToBody(element: HTMLElement, anchor?: HTMLElement | null): () => void;
46
+ export declare function portalToBody(element: HTMLElement, anchor?: HTMLElement | null): () => void;
45
47
  /**
46
48
  * Renders the host element in `document.body` (see `portalToBody`) once it is
47
49
  * rendered, and removes it when the element or its owner is destroyed.
@@ -52,11 +54,41 @@ declare function portalToBody(element: HTMLElement, anchor?: HTMLElement | null)
52
54
  * }
53
55
  * ```
54
56
  */
55
- declare class PortalDirective {
56
- private readonly el;
57
- constructor();
58
- static ɵfac: i0.ɵɵFactoryDeclaration<PortalDirective, never>;
59
- static ɵdir: i0.ɵɵDirectiveDeclaration<PortalDirective, "[shkPortal]", never, {}, {}, never, never, true, never>;
57
+ export declare class PortalDirective {
58
+ private readonly el;
59
+ constructor();
60
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortalDirective, never>;
61
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PortalDirective, "[shkPortal]", never, {}, {}, never, never, true, never>;
60
62
  }
61
-
62
- export { ICONS, PortalDirective, getIcon, isIconResolver, portalToBody };
63
+ /**
64
+ * Messages keyed by error kind. Accepts both Reactive Forms keys
65
+ * (`required`, `minlength`, `maxlength`…) and Signal Forms keys
66
+ * (`required`, `minLength`, `maxLength`, `minDate`…).
67
+ */
68
+ type ShkErrorMessages = {
69
+ [kind: string]: string;
70
+ };
71
+ /**
72
+ * Converts Signal Forms errors (the ones the `FormField` directive delivers to
73
+ * the `errors` input) into the same map exposed by `AbstractControl.errors`.
74
+ *
75
+ * This way controls reuse a single message mapping for Reactive Forms and
76
+ * Signal Forms, and the error parameters (`minLength`, `min`, `maxDate`…) are
77
+ * available under the names Signal Forms uses.
78
+ */
79
+ export declare function signalErrorsToMap(errors: readonly ValidationError.WithOptionalFieldTree[] | undefined): Record<string, any> | null;
80
+ /**
81
+ * Builds the readable message list for an error map.
82
+ *
83
+ * The map may come from `AbstractControl.errors` (Reactive Forms) or from
84
+ * `signalErrorsToMap` (Signal Forms). Priority order:
85
+ * 1. Message configured in `errorMessages`.
86
+ * 2. The error's own message (`message`), e.g. `requiredError({ message })`.
87
+ * 3. Translated message for the error kind.
88
+ *
89
+ * Signal Forms `minLength`/`maxLength` keys are translated with the same
90
+ * `validation.minlength`/`validation.maxlength` keys Reactive Forms uses, so no
91
+ * extra translations are needed.
92
+ */
93
+ export declare function errorMessagesFromMap(errors: Record<string, any> | null | undefined, customErrors: ShkErrorMessages, translate: (key: string, params?: Record<string, any>) => string): string[];
94
+ export type { ShkErrorMessages };
@@ -1,25 +1,32 @@
1
- import * as shirkasoft_ui_components_icons from 'shirkasoft-ui-components/icons';
2
- import * as _angular_core from '@angular/core';
3
- import { TemplateRef } from '@angular/core';
4
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { TemplateRef } from "@angular/core";
5
6
  /** A step of the wizard shown in the stepper. */
6
7
  interface WizardStep {
7
- id: string | number;
8
- label: string;
9
- /** Optional icon (name or `IconNode` data) rendered inside the step circle. */
10
- icon?: string;
11
- /** Overrides the primary footer button label for this step. */
12
- primaryLabel?: string;
13
- /** Overrides the primary footer button icon for this step. */
14
- primaryIcon?: string;
8
+ id: string | number;
9
+ label: string;
10
+ /** Optional icon (name or `IconNode` data) rendered inside the step circle. */
11
+ icon?: string;
12
+ /** Overrides the primary footer button label for this step. */
13
+ primaryLabel?: string;
14
+ /** Overrides the primary footer button icon for this step. */
15
+ primaryIcon?: string;
15
16
  }
16
17
  /** Declares a step's content template: <ng-template shkWizardStepContent="stepId">…</ng-template>. */
17
- declare class ShkWizardStepContent {
18
- templateRef: TemplateRef<unknown>;
19
- stepId: _angular_core.InputSignal<string | number>;
20
- constructor(templateRef: TemplateRef<unknown>);
21
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShkWizardStepContent, never>;
22
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<ShkWizardStepContent, "ng-template[shkWizardStepContent]", never, { "stepId": { "alias": "shkWizardStepContent"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
18
+ export declare class ShkWizardStepContent {
19
+ templateRef: TemplateRef<unknown>;
20
+ stepId: import("@angular/core").InputSignal<string | number>;
21
+ constructor(templateRef: TemplateRef<unknown>);
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<ShkWizardStepContent, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<ShkWizardStepContent, "ng-template[shkWizardStepContent]", never, {
24
+ "stepId": {
25
+ "alias": "shkWizardStepContent";
26
+ "required": true;
27
+ "isSignal": true;
28
+ };
29
+ }, {}, never, never, true, never>;
23
30
  }
24
31
  /**
25
32
  * Shirkasoft UI Components.
@@ -30,73 +37,215 @@ declare class ShkWizardStepContent {
30
37
  * Multi-step wizard with a progress stepper, header, footer actions and
31
38
  * content templates declared with `shkWizardStepContent`.
32
39
  */
33
- declare class WizardComponent {
34
- protected getIcon: (name: any) => shirkasoft_ui_components_icons.IconNode | null;
35
- /** Steps definition shown in the stepper and used to resolve step content. */
36
- steps: _angular_core.InputSignal<WizardStep[]>;
37
- /** Active step id. Two-way bindable with [(currentStep)]. Null resolves to the first step. */
38
- currentStep: _angular_core.ModelSignal<string | number | null>;
39
- /** Shows the sticky header (back button + title). */
40
- showHeader: _angular_core.InputSignal<boolean>;
41
- headerTitle: _angular_core.InputSignal<string>;
42
- headerSubtitle: _angular_core.InputSignal<string>;
43
- /** Shows the round back button in the header. */
44
- showBackButton: _angular_core.InputSignal<boolean>;
45
- backTooltip: _angular_core.InputSignal<string>;
46
- /** Optional icon (name or `IconNode` data) shown before the title. */
47
- headerIcon: _angular_core.InputSignal<string>;
48
- /** Shows the progress stepper (hide it for edit mode, like wac-app does). */
49
- showStepper: _angular_core.InputSignal<boolean>;
50
- /** Lets the user click on previous steps to jump back. */
51
- stepperClickable: _angular_core.InputSignal<boolean>;
52
- showFooter: _angular_core.InputSignal<boolean>;
53
- /** Shows a "Paso X / N" counter on the left of the footer. */
54
- showStepCounter: _angular_core.InputSignal<boolean>;
55
- stepCounterPrefix: _angular_core.InputSignal<string>;
56
- /** Shows the Cancel button on the first step (instead of a back button). */
57
- showCancel: _angular_core.InputSignal<boolean>;
58
- /** Auto-advances to the next step on the primary button when it is not the last step. */
59
- advanceOnNext: _angular_core.InputSignal<boolean>;
60
- prevLabel: _angular_core.InputSignal<string>;
61
- prevIcon: _angular_core.InputSignal<string>;
62
- cancelLabel: _angular_core.InputSignal<string>;
63
- cancelIcon: _angular_core.InputSignal<string>;
64
- nextLabel: _angular_core.InputSignal<string>;
65
- nextIcon: _angular_core.InputSignal<string>;
66
- finishLabel: _angular_core.InputSignal<string>;
67
- finishIcon: _angular_core.InputSignal<string>;
68
- /** Overrides the primary footer button label for every step. */
69
- primaryLabel: _angular_core.InputSignal<string | null>;
70
- /** Overrides the primary footer button icon for every step. */
71
- primaryIcon: _angular_core.InputSignal<string | null>;
72
- /** Shows a loading spinner on the primary button and disables it. */
73
- primaryLoading: _angular_core.InputSignal<boolean>;
74
- /** Disables the primary footer button (e.g. while the step form is invalid). */
75
- primaryDisabled: _angular_core.InputSignal<boolean>;
76
- back: _angular_core.OutputEmitterRef<void>;
77
- cancel: _angular_core.OutputEmitterRef<void>;
78
- prev: _angular_core.OutputEmitterRef<void>;
79
- next: _angular_core.OutputEmitterRef<void>;
80
- finish: _angular_core.OutputEmitterRef<void>;
81
- stepChange: _angular_core.OutputEmitterRef<{
82
- step: WizardStep | null;
83
- index: number;
84
- }>;
85
- readonly stepContents: _angular_core.Signal<readonly ShkWizardStepContent[]>;
86
- currentIndex: _angular_core.Signal<number>;
87
- currentStepObj: _angular_core.Signal<WizardStep>;
88
- isFirstStep: _angular_core.Signal<boolean>;
89
- isLastStep: _angular_core.Signal<boolean>;
90
- primaryActionLabel: _angular_core.Signal<string>;
91
- primaryActionIcon: _angular_core.Signal<string>;
92
- getStepTemplate(id: string | number): TemplateRef<unknown> | undefined;
93
- goTo(stepId: string | number): void;
94
- onPrev(): void;
95
- onNext(): void;
96
- onPrimary(): void;
97
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<WizardComponent, never>;
98
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<WizardComponent, "shk-wizard", never, { "steps": { "alias": "steps"; "required": false; "isSignal": true; }; "currentStep": { "alias": "currentStep"; "required": false; "isSignal": true; }; "showHeader": { "alias": "showHeader"; "required": false; "isSignal": true; }; "headerTitle": { "alias": "headerTitle"; "required": false; "isSignal": true; }; "headerSubtitle": { "alias": "headerSubtitle"; "required": false; "isSignal": true; }; "showBackButton": { "alias": "showBackButton"; "required": false; "isSignal": true; }; "backTooltip": { "alias": "backTooltip"; "required": false; "isSignal": true; }; "headerIcon": { "alias": "headerIcon"; "required": false; "isSignal": true; }; "showStepper": { "alias": "showStepper"; "required": false; "isSignal": true; }; "stepperClickable": { "alias": "stepperClickable"; "required": false; "isSignal": true; }; "showFooter": { "alias": "showFooter"; "required": false; "isSignal": true; }; "showStepCounter": { "alias": "showStepCounter"; "required": false; "isSignal": true; }; "stepCounterPrefix": { "alias": "stepCounterPrefix"; "required": false; "isSignal": true; }; "showCancel": { "alias": "showCancel"; "required": false; "isSignal": true; }; "advanceOnNext": { "alias": "advanceOnNext"; "required": false; "isSignal": true; }; "prevLabel": { "alias": "prevLabel"; "required": false; "isSignal": true; }; "prevIcon": { "alias": "prevIcon"; "required": false; "isSignal": true; }; "cancelLabel": { "alias": "cancelLabel"; "required": false; "isSignal": true; }; "cancelIcon": { "alias": "cancelIcon"; "required": false; "isSignal": true; }; "nextLabel": { "alias": "nextLabel"; "required": false; "isSignal": true; }; "nextIcon": { "alias": "nextIcon"; "required": false; "isSignal": true; }; "finishLabel": { "alias": "finishLabel"; "required": false; "isSignal": true; }; "finishIcon": { "alias": "finishIcon"; "required": false; "isSignal": true; }; "primaryLabel": { "alias": "primaryLabel"; "required": false; "isSignal": true; }; "primaryIcon": { "alias": "primaryIcon"; "required": false; "isSignal": true; }; "primaryLoading": { "alias": "primaryLoading"; "required": false; "isSignal": true; }; "primaryDisabled": { "alias": "primaryDisabled"; "required": false; "isSignal": true; }; }, { "currentStep": "currentStepChange"; "back": "back"; "cancel": "cancel"; "prev": "prev"; "next": "next"; "finish": "finish"; "stepChange": "stepChange"; }, ["stepContents"], ["[shkWizardHeaderActions]"], true, never>;
40
+ export declare class WizardComponent {
41
+ protected getIcon: (name: any) => import("shirkasoft-ui-components/icons").IconNode | null;
42
+ /** Steps definition shown in the stepper and used to resolve step content. */
43
+ steps: import("@angular/core").InputSignal<WizardStep[]>;
44
+ /** Active step id. Two-way bindable with [(currentStep)]. Null resolves to the first step. */
45
+ currentStep: import("@angular/core").ModelSignal<string | number | null>;
46
+ /** Shows the sticky header (back button + title). */
47
+ showHeader: import("@angular/core").InputSignal<boolean>;
48
+ headerTitle: import("@angular/core").InputSignal<string>;
49
+ headerSubtitle: import("@angular/core").InputSignal<string>;
50
+ /** Shows the round back button in the header. */
51
+ showBackButton: import("@angular/core").InputSignal<boolean>;
52
+ backTooltip: import("@angular/core").InputSignal<string>;
53
+ /** Optional icon (name or `IconNode` data) shown before the title. */
54
+ headerIcon: import("@angular/core").InputSignal<string>;
55
+ /** Shows the progress stepper (hide it for edit mode, like wac-app does). */
56
+ showStepper: import("@angular/core").InputSignal<boolean>;
57
+ /** Lets the user click on previous steps to jump back. */
58
+ stepperClickable: import("@angular/core").InputSignal<boolean>;
59
+ showFooter: import("@angular/core").InputSignal<boolean>;
60
+ /** Shows a "Paso X / N" counter on the left of the footer. */
61
+ showStepCounter: import("@angular/core").InputSignal<boolean>;
62
+ stepCounterPrefix: import("@angular/core").InputSignal<string>;
63
+ /** Shows the Cancel button on the first step (instead of a back button). */
64
+ showCancel: import("@angular/core").InputSignal<boolean>;
65
+ /** Auto-advances to the next step on the primary button when it is not the last step. */
66
+ advanceOnNext: import("@angular/core").InputSignal<boolean>;
67
+ prevLabel: import("@angular/core").InputSignal<string>;
68
+ prevIcon: import("@angular/core").InputSignal<string>;
69
+ cancelLabel: import("@angular/core").InputSignal<string>;
70
+ cancelIcon: import("@angular/core").InputSignal<string>;
71
+ nextLabel: import("@angular/core").InputSignal<string>;
72
+ nextIcon: import("@angular/core").InputSignal<string>;
73
+ finishLabel: import("@angular/core").InputSignal<string>;
74
+ finishIcon: import("@angular/core").InputSignal<string>;
75
+ /** Overrides the primary footer button label for every step. */
76
+ primaryLabel: import("@angular/core").InputSignal<string | null>;
77
+ /** Overrides the primary footer button icon for every step. */
78
+ primaryIcon: import("@angular/core").InputSignal<string | null>;
79
+ /** Shows a loading spinner on the primary button and disables it. */
80
+ primaryLoading: import("@angular/core").InputSignal<boolean>;
81
+ /** Disables the primary footer button (e.g. while the step form is invalid). */
82
+ primaryDisabled: import("@angular/core").InputSignal<boolean>;
83
+ back: import("@angular/core").OutputEmitterRef<void>;
84
+ cancel: import("@angular/core").OutputEmitterRef<void>;
85
+ prev: import("@angular/core").OutputEmitterRef<void>;
86
+ next: import("@angular/core").OutputEmitterRef<void>;
87
+ finish: import("@angular/core").OutputEmitterRef<void>;
88
+ stepChange: import("@angular/core").OutputEmitterRef<{
89
+ step: WizardStep | null;
90
+ index: number;
91
+ }>;
92
+ readonly stepContents: import("@angular/core").Signal<readonly ShkWizardStepContent[]>;
93
+ currentIndex: import("@angular/core").Signal<number>;
94
+ currentStepObj: import("@angular/core").Signal<WizardStep>;
95
+ isFirstStep: import("@angular/core").Signal<boolean>;
96
+ isLastStep: import("@angular/core").Signal<boolean>;
97
+ primaryActionLabel: import("@angular/core").Signal<string>;
98
+ primaryActionIcon: import("@angular/core").Signal<string>;
99
+ getStepTemplate(id: string | number): TemplateRef<unknown> | undefined;
100
+ goTo(stepId: string | number): void;
101
+ onPrev(): void;
102
+ onNext(): void;
103
+ onPrimary(): void;
104
+ static ɵfac: i0.ɵɵFactoryDeclaration<WizardComponent, never>;
105
+ static ɵcmp: i0.ɵɵComponentDeclaration<WizardComponent, "shk-wizard", never, {
106
+ "steps": {
107
+ "alias": "steps";
108
+ "required": false;
109
+ "isSignal": true;
110
+ };
111
+ "currentStep": {
112
+ "alias": "currentStep";
113
+ "required": false;
114
+ "isSignal": true;
115
+ };
116
+ "showHeader": {
117
+ "alias": "showHeader";
118
+ "required": false;
119
+ "isSignal": true;
120
+ };
121
+ "headerTitle": {
122
+ "alias": "headerTitle";
123
+ "required": false;
124
+ "isSignal": true;
125
+ };
126
+ "headerSubtitle": {
127
+ "alias": "headerSubtitle";
128
+ "required": false;
129
+ "isSignal": true;
130
+ };
131
+ "showBackButton": {
132
+ "alias": "showBackButton";
133
+ "required": false;
134
+ "isSignal": true;
135
+ };
136
+ "backTooltip": {
137
+ "alias": "backTooltip";
138
+ "required": false;
139
+ "isSignal": true;
140
+ };
141
+ "headerIcon": {
142
+ "alias": "headerIcon";
143
+ "required": false;
144
+ "isSignal": true;
145
+ };
146
+ "showStepper": {
147
+ "alias": "showStepper";
148
+ "required": false;
149
+ "isSignal": true;
150
+ };
151
+ "stepperClickable": {
152
+ "alias": "stepperClickable";
153
+ "required": false;
154
+ "isSignal": true;
155
+ };
156
+ "showFooter": {
157
+ "alias": "showFooter";
158
+ "required": false;
159
+ "isSignal": true;
160
+ };
161
+ "showStepCounter": {
162
+ "alias": "showStepCounter";
163
+ "required": false;
164
+ "isSignal": true;
165
+ };
166
+ "stepCounterPrefix": {
167
+ "alias": "stepCounterPrefix";
168
+ "required": false;
169
+ "isSignal": true;
170
+ };
171
+ "showCancel": {
172
+ "alias": "showCancel";
173
+ "required": false;
174
+ "isSignal": true;
175
+ };
176
+ "advanceOnNext": {
177
+ "alias": "advanceOnNext";
178
+ "required": false;
179
+ "isSignal": true;
180
+ };
181
+ "prevLabel": {
182
+ "alias": "prevLabel";
183
+ "required": false;
184
+ "isSignal": true;
185
+ };
186
+ "prevIcon": {
187
+ "alias": "prevIcon";
188
+ "required": false;
189
+ "isSignal": true;
190
+ };
191
+ "cancelLabel": {
192
+ "alias": "cancelLabel";
193
+ "required": false;
194
+ "isSignal": true;
195
+ };
196
+ "cancelIcon": {
197
+ "alias": "cancelIcon";
198
+ "required": false;
199
+ "isSignal": true;
200
+ };
201
+ "nextLabel": {
202
+ "alias": "nextLabel";
203
+ "required": false;
204
+ "isSignal": true;
205
+ };
206
+ "nextIcon": {
207
+ "alias": "nextIcon";
208
+ "required": false;
209
+ "isSignal": true;
210
+ };
211
+ "finishLabel": {
212
+ "alias": "finishLabel";
213
+ "required": false;
214
+ "isSignal": true;
215
+ };
216
+ "finishIcon": {
217
+ "alias": "finishIcon";
218
+ "required": false;
219
+ "isSignal": true;
220
+ };
221
+ "primaryLabel": {
222
+ "alias": "primaryLabel";
223
+ "required": false;
224
+ "isSignal": true;
225
+ };
226
+ "primaryIcon": {
227
+ "alias": "primaryIcon";
228
+ "required": false;
229
+ "isSignal": true;
230
+ };
231
+ "primaryLoading": {
232
+ "alias": "primaryLoading";
233
+ "required": false;
234
+ "isSignal": true;
235
+ };
236
+ "primaryDisabled": {
237
+ "alias": "primaryDisabled";
238
+ "required": false;
239
+ "isSignal": true;
240
+ };
241
+ }, {
242
+ "currentStep": "currentStepChange";
243
+ "back": "back";
244
+ "cancel": "cancel";
245
+ "prev": "prev";
246
+ "next": "next";
247
+ "finish": "finish";
248
+ "stepChange": "stepChange";
249
+ }, ["stepContents"], ["[shkWizardHeaderActions]"], true, never>;
99
250
  }
100
-
101
- export { ShkWizardStepContent, WizardComponent };
102
- export type { WizardStep };
251
+ export type { WizardStep };
@@ -1,2 +1 @@
1
-
2
- export { };
1
+ export {}
@@ -1 +0,0 @@
1
- {"version":3,"file":"shirkasoft-ui-components.mjs","sources":["../../../projects/ui-components/src/index.ts","../../../projects/ui-components/src/shirkasoft-ui-components.ts"],"sourcesContent":["/* Theme — import theme.css in your global styles.css:\n @import '@shirkasoft/ui-components/theme.css';\n Override --shk-* CSS variables at :root or .dark to theme.\n*/\n\n/* SHA-256 edge case: root entry point intentionally empty.\n Import components from subpath entry points, e.g.:\n import { ButtonComponent } from 'shirkasoft-ui-components/button';\n*/\nexport {};","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":"AAAA;;;AAGE;;ACHF;;AAEG"}