shirkasoft-ui-components 1.13.18 → 2.0.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 (98) hide show
  1. package/README.md +415 -42
  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 +367 -73
  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 +976 -0
  9. package/fesm2022/shirkasoft-ui-components-config.mjs.map +1 -0
  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 +1624 -1400
  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 +484 -293
  17. package/fesm2022/shirkasoft-ui-components-file-upload.mjs.map +1 -1
  18. package/fesm2022/shirkasoft-ui-components-icons.mjs +1141 -0
  19. package/fesm2022/shirkasoft-ui-components-icons.mjs.map +1 -0
  20. package/fesm2022/shirkasoft-ui-components-knob.mjs +395 -180
  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 -303
  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 +517 -277
  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 +1014 -814
  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 +1918 -1676
  39. package/fesm2022/shirkasoft-ui-components-table.mjs.map +1 -1
  40. package/fesm2022/shirkasoft-ui-components-tabs.mjs +419 -177
  41. package/fesm2022/shirkasoft-ui-components-tabs.mjs.map +1 -1
  42. package/fesm2022/shirkasoft-ui-components-tag.mjs +177 -51
  43. package/fesm2022/shirkasoft-ui-components-tag.mjs.map +1 -1
  44. package/fesm2022/shirkasoft-ui-components-text-field.mjs +687 -369
  45. package/fesm2022/shirkasoft-ui-components-text-field.mjs.map +1 -1
  46. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs +466 -0
  47. package/fesm2022/shirkasoft-ui-components-theme-picker.mjs.map +1 -0
  48. package/fesm2022/shirkasoft-ui-components-theme.mjs +147 -0
  49. package/fesm2022/shirkasoft-ui-components-theme.mjs.map +1 -0
  50. package/fesm2022/shirkasoft-ui-components-timeline.mjs +791 -215
  51. package/fesm2022/shirkasoft-ui-components-timeline.mjs.map +1 -1
  52. package/fesm2022/shirkasoft-ui-components-toggle.mjs +205 -128
  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 +97 -125
  57. package/fesm2022/shirkasoft-ui-components-utils.mjs.map +1 -1
  58. package/fesm2022/shirkasoft-ui-components-wizard.mjs +673 -166
  59. package/fesm2022/shirkasoft-ui-components-wizard.mjs.map +1 -1
  60. package/fesm2022/shirkasoft-ui-components.mjs +0 -9
  61. package/package.json +37 -7
  62. package/src/baseline.css +2472 -0
  63. package/src/theme.css +15 -543
  64. package/src/themes/ocean.css +56 -0
  65. package/src/themes/sunset.css +55 -0
  66. package/src/themes/violet.css +25 -0
  67. package/src/tokens.css +612 -0
  68. package/types/shirkasoft-ui-components-breadcrumb.d.ts +59 -44
  69. package/types/shirkasoft-ui-components-button.d.ts +142 -49
  70. package/types/shirkasoft-ui-components-chart.d.ts +59 -44
  71. package/types/shirkasoft-ui-components-config.d.ts +357 -0
  72. package/types/shirkasoft-ui-components-confirm-dialog.d.ts +107 -65
  73. package/types/shirkasoft-ui-components-date-picker.d.ts +527 -373
  74. package/types/shirkasoft-ui-components-fieldset.d.ts +135 -59
  75. package/types/shirkasoft-ui-components-file-upload.d.ts +176 -106
  76. package/types/shirkasoft-ui-components-icons.d.ts +1430 -0
  77. package/types/shirkasoft-ui-components-knob.d.ts +151 -64
  78. package/types/shirkasoft-ui-components-loading.d.ts +155 -64
  79. package/types/shirkasoft-ui-components-modal.d.ts +134 -132
  80. package/types/shirkasoft-ui-components-notification.d.ts +63 -58
  81. package/types/shirkasoft-ui-components-price-input.d.ts +198 -85
  82. package/types/shirkasoft-ui-components-rail-sidebar.d.ts +262 -142
  83. package/types/shirkasoft-ui-components-select.d.ts +301 -192
  84. package/types/shirkasoft-ui-components-sidebar.d.ts +198 -92
  85. package/types/shirkasoft-ui-components-skeleton.d.ts +68 -27
  86. package/types/shirkasoft-ui-components-table.d.ts +849 -649
  87. package/types/shirkasoft-ui-components-tabs.d.ts +102 -61
  88. package/types/shirkasoft-ui-components-tag.d.ts +54 -23
  89. package/types/shirkasoft-ui-components-text-field.d.ts +231 -111
  90. package/types/shirkasoft-ui-components-theme-picker.d.ts +117 -0
  91. package/types/shirkasoft-ui-components-theme.d.ts +80 -0
  92. package/types/shirkasoft-ui-components-timeline.d.ts +326 -150
  93. package/types/shirkasoft-ui-components-toggle.d.ts +76 -45
  94. package/types/shirkasoft-ui-components-tooltip.d.ts +64 -43
  95. package/types/shirkasoft-ui-components-utils.d.ts +26 -17
  96. package/types/shirkasoft-ui-components-wizard.d.ts +236 -86
  97. package/types/shirkasoft-ui-components.d.ts +1 -2
  98. 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,13 +1,24 @@
1
- import * as i0 from '@angular/core';
2
-
3
- /** Maps the icon names used across the library to their Lucide component. */
4
- declare const ICONS: Record<string, any>;
5
1
  /**
6
- * Resolves the icon passed to a component into a lucide component.
7
- * Accepts a registered string name, an existing lucide component or a LucideIconData object.
2
+ * Generated bundle index. Do not edit.
8
3
  */
9
- declare function getIcon(icon?: any, fallback?: any): any;
10
-
4
+ import { IconNode } from "shirkasoft-ui-components/icons";
5
+ import * as i0 from "@angular/core";
6
+ /** Maps the icon names used across the library to their SVG data. */
7
+ export declare const ICONS: Record<string, IconNode>;
8
+ /**
9
+ * True when `icon` is a per-item resolver function such as `(row) => 'pencil'`.
10
+ *
11
+ * Classes are functions too, but must never be called: a v1 `@lucide/angular`
12
+ * component passed by an app that has not migrated yet would throw
13
+ * "Class constructor cannot be invoked without 'new'". Those fall through to
14
+ * `getIcon()`, which renders the fallback icon instead.
15
+ */
16
+ export declare function isIconResolver(icon: unknown): icon is (...args: any[]) => unknown;
17
+ /**
18
+ * Resolves the icon passed to a component into SVG data.
19
+ * Accepts a registered string name or an icon node array.
20
+ */
21
+ export declare function getIcon(icon?: any, fallback?: any): IconNode | null;
11
22
  /**
12
23
  * Shirkasoft UI Components.
13
24
  * Authors: Roberto Valladares Martin (Ansem13), Julio César García García (Sanjuli14).
@@ -31,7 +42,7 @@ declare function getIcon(icon?: any, fallback?: any): any;
31
42
  * Returns a function that removes the element from the DOM; call it when the
32
43
  * owner component is destroyed so the element does not stay orphaned in `body`.
33
44
  */
34
- declare function portalToBody(element: HTMLElement, anchor?: HTMLElement | null): () => void;
45
+ export declare function portalToBody(element: HTMLElement, anchor?: HTMLElement | null): () => void;
35
46
  /**
36
47
  * Renders the host element in `document.body` (see `portalToBody`) once it is
37
48
  * rendered, and removes it when the element or its owner is destroyed.
@@ -42,11 +53,9 @@ declare function portalToBody(element: HTMLElement, anchor?: HTMLElement | null)
42
53
  * }
43
54
  * ```
44
55
  */
45
- declare class PortalDirective {
46
- private readonly el;
47
- constructor();
48
- static ɵfac: i0.ɵɵFactoryDeclaration<PortalDirective, never>;
49
- static ɵdir: i0.ɵɵDirectiveDeclaration<PortalDirective, "[shkPortal]", never, {}, {}, never, never, true, never>;
50
- }
51
-
52
- export { ICONS, PortalDirective, getIcon, portalToBody };
56
+ export declare class PortalDirective {
57
+ private readonly el;
58
+ constructor();
59
+ static ɵfac: i0.ɵɵFactoryDeclaration<PortalDirective, never>;
60
+ static ɵdir: i0.ɵɵDirectiveDeclaration<PortalDirective, "[shkPortal]", never, {}, {}, never, never, true, never>;
61
+ }
@@ -1,24 +1,32 @@
1
- import * as _angular_core from '@angular/core';
2
- import { TemplateRef } from '@angular/core';
3
-
1
+ /**
2
+ * Generated bundle index. Do not edit.
3
+ */
4
+ import * as i0 from "@angular/core";
5
+ import { TemplateRef } from "@angular/core";
4
6
  /** A step of the wizard shown in the stepper. */
5
7
  interface WizardStep {
6
- id: string | number;
7
- label: string;
8
- /** Optional lucide icon rendered inside the step circle. */
9
- icon?: string;
10
- /** Overrides the primary footer button label for this step. */
11
- primaryLabel?: string;
12
- /** Overrides the primary footer button icon for this step. */
13
- 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;
14
16
  }
15
17
  /** Declares a step's content template: <ng-template shkWizardStepContent="stepId">…</ng-template>. */
16
- declare class ShkWizardStepContent {
17
- templateRef: TemplateRef<unknown>;
18
- stepId: _angular_core.InputSignal<string | number>;
19
- constructor(templateRef: TemplateRef<unknown>);
20
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ShkWizardStepContent, never>;
21
- 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>;
22
30
  }
23
31
  /**
24
32
  * Shirkasoft UI Components.
@@ -29,73 +37,215 @@ declare class ShkWizardStepContent {
29
37
  * Multi-step wizard with a progress stepper, header, footer actions and
30
38
  * content templates declared with `shkWizardStepContent`.
31
39
  */
32
- declare class WizardComponent {
33
- protected getIcon: (name: any) => any;
34
- /** Steps definition shown in the stepper and used to resolve step content. */
35
- steps: _angular_core.InputSignal<WizardStep[]>;
36
- /** Active step id. Two-way bindable with [(currentStep)]. Null resolves to the first step. */
37
- currentStep: _angular_core.ModelSignal<string | number | null>;
38
- /** Shows the sticky header (back button + title). */
39
- showHeader: _angular_core.InputSignal<boolean>;
40
- headerTitle: _angular_core.InputSignal<string>;
41
- headerSubtitle: _angular_core.InputSignal<string>;
42
- /** Shows the round back button in the header. */
43
- showBackButton: _angular_core.InputSignal<boolean>;
44
- backTooltip: _angular_core.InputSignal<string>;
45
- /** Optional lucide icon shown before the title. */
46
- headerIcon: _angular_core.InputSignal<string>;
47
- /** Shows the progress stepper (hide it for edit mode, like wac-app does). */
48
- showStepper: _angular_core.InputSignal<boolean>;
49
- /** Lets the user click on previous steps to jump back. */
50
- stepperClickable: _angular_core.InputSignal<boolean>;
51
- showFooter: _angular_core.InputSignal<boolean>;
52
- /** Shows a "Paso X / N" counter on the left of the footer. */
53
- showStepCounter: _angular_core.InputSignal<boolean>;
54
- stepCounterPrefix: _angular_core.InputSignal<string>;
55
- /** Shows the Cancel button on the first step (instead of a back button). */
56
- showCancel: _angular_core.InputSignal<boolean>;
57
- /** Auto-advances to the next step on the primary button when it is not the last step. */
58
- advanceOnNext: _angular_core.InputSignal<boolean>;
59
- prevLabel: _angular_core.InputSignal<string>;
60
- prevIcon: _angular_core.InputSignal<string>;
61
- cancelLabel: _angular_core.InputSignal<string>;
62
- cancelIcon: _angular_core.InputSignal<string>;
63
- nextLabel: _angular_core.InputSignal<string>;
64
- nextIcon: _angular_core.InputSignal<string>;
65
- finishLabel: _angular_core.InputSignal<string>;
66
- finishIcon: _angular_core.InputSignal<string>;
67
- /** Overrides the primary footer button label for every step. */
68
- primaryLabel: _angular_core.InputSignal<string | null>;
69
- /** Overrides the primary footer button icon for every step. */
70
- primaryIcon: _angular_core.InputSignal<string | null>;
71
- /** Shows a loading spinner on the primary button and disables it. */
72
- primaryLoading: _angular_core.InputSignal<boolean>;
73
- /** Disables the primary footer button (e.g. while the step form is invalid). */
74
- primaryDisabled: _angular_core.InputSignal<boolean>;
75
- back: _angular_core.OutputEmitterRef<void>;
76
- cancel: _angular_core.OutputEmitterRef<void>;
77
- prev: _angular_core.OutputEmitterRef<void>;
78
- next: _angular_core.OutputEmitterRef<void>;
79
- finish: _angular_core.OutputEmitterRef<void>;
80
- stepChange: _angular_core.OutputEmitterRef<{
81
- step: WizardStep | null;
82
- index: number;
83
- }>;
84
- readonly stepContents: _angular_core.Signal<readonly ShkWizardStepContent[]>;
85
- currentIndex: _angular_core.Signal<number>;
86
- currentStepObj: _angular_core.Signal<WizardStep>;
87
- isFirstStep: _angular_core.Signal<boolean>;
88
- isLastStep: _angular_core.Signal<boolean>;
89
- primaryActionLabel: _angular_core.Signal<string>;
90
- primaryActionIcon: _angular_core.Signal<string>;
91
- getStepTemplate(id: string | number): TemplateRef<unknown> | undefined;
92
- goTo(stepId: string | number): void;
93
- onPrev(): void;
94
- onNext(): void;
95
- onPrimary(): void;
96
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<WizardComponent, never>;
97
- 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>;
98
250
  }
99
-
100
- export { ShkWizardStepContent, WizardComponent };
101
- 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"}