@sixbell-telco/sdk 3.1.1 → 3.2.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 (143) hide show
  1. package/CHANGELOG.md +77 -1
  2. package/README.md +74 -56
  3. package/_index.css +290 -122
  4. package/components/accordion/README.md +20 -0
  5. package/components/audio-player/README.md +18 -0
  6. package/components/avatar/README.md +17 -0
  7. package/components/badge/README.md +17 -0
  8. package/components/badge/src/badge.component.d.ts +3 -3
  9. package/components/button/README.md +18 -0
  10. package/components/button/src/button.component.d.ts +2 -2
  11. package/components/card/README.md +36 -0
  12. package/components/countdown/README.md +18 -0
  13. package/components/data-table/README.md +31 -0
  14. package/components/dialog/README.md +24 -0
  15. package/components/dialog/src/dialog.component.d.ts +4 -1
  16. package/components/divider/README.md +17 -0
  17. package/components/dropdown/README.md +25 -0
  18. package/components/dropdown/dropdown-chevron/dropdown-chevron.component.d.ts +3 -2
  19. package/components/dropdown/dropdown-item-radio/dropdown-item-radio.component.d.ts +4 -0
  20. package/components/dropdown/dropdown-trigger/dropdown-trigger.component.d.ts +2 -0
  21. package/components/dropdown-menu/README.md +24 -0
  22. package/components/dropdown-menu/bar/dropdown-menu-bar-item-radio/dropdown-menu-bar-item-radio.component.d.ts +4 -0
  23. package/components/dual-list/README.md +17 -0
  24. package/components/file-upload/README.md +17 -0
  25. package/components/file-upload/file-uploader/file-uploader.component.d.ts +1 -1
  26. package/components/forms/checkbox/README.md +17 -0
  27. package/components/forms/checkbox/src/checkbox.component.d.ts +2 -2
  28. package/components/forms/combobox/README.md +26 -0
  29. package/components/forms/combobox/src/combobox.component.d.ts +16 -4
  30. package/components/forms/date-picker/README.md +27 -0
  31. package/components/forms/date-picker/src/date-picker.component.d.ts +8 -1
  32. package/components/forms/form-error/README.md +21 -0
  33. package/components/forms/form-group/src/form-group.component.d.ts +27 -38
  34. package/components/forms/input/README.md +18 -0
  35. package/components/forms/input/src/input.component.d.ts +2 -2
  36. package/components/forms/radio/README.md +14 -0
  37. package/components/forms/radio/src/radio.component.d.ts +2 -2
  38. package/components/forms/range/README.md +13 -0
  39. package/components/forms/range/src/range.component.d.ts +2 -2
  40. package/components/forms/select/README.md +18 -0
  41. package/components/forms/select/src/select.component.d.ts +15 -4
  42. package/components/forms/switch/README.md +13 -0
  43. package/components/forms/switch/src/switch.component.d.ts +2 -2
  44. package/components/forms/textarea/README.md +17 -0
  45. package/components/forms/textarea/src/textarea.component.d.ts +2 -2
  46. package/components/forms/toggle/README.md +13 -0
  47. package/components/forms/toggle/src/toggle.component.d.ts +5 -36
  48. package/components/icon/README.md +18 -0
  49. package/components/link/README.md +17 -0
  50. package/components/link/src/link.component.d.ts +2 -2
  51. package/components/notification/README.md +13 -0
  52. package/components/notification/src/notification.component.d.ts +3 -3
  53. package/components/overlay/README.md +33 -0
  54. package/components/overlay/overlay-trigger/overlay-trigger.component.d.ts +3 -0
  55. package/components/overlay/src/overlay.component.d.ts +34 -0
  56. package/components/paginator/README.md +17 -0
  57. package/components/product-card/README.md +13 -0
  58. package/components/progress/README.md +17 -0
  59. package/components/progress/src/progress.component.d.ts +3 -3
  60. package/components/sonner/README.md +23 -0
  61. package/components/sonner/src/sonner.component.d.ts +2 -2
  62. package/components/tab/README.md +17 -0
  63. package/components/table/README.md +20 -0
  64. package/components/table/table-action/table-action.component.d.ts +26 -3
  65. package/components/text/README.md +14 -0
  66. package/components/tooltip/README.md +29 -0
  67. package/components/tooltip/src/tooltip.component.d.ts +64 -4
  68. package/components/wizard/README.md +25 -0
  69. package/components/wizard/services/wizard.service.d.ts +1 -0
  70. package/components/wizard/wizard-content/wizard-content.component.d.ts +1 -1
  71. package/components/wizard/wizard-marker/wizard-marker.component.d.ts +2 -0
  72. package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +1 -1
  73. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +6 -6
  74. package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
  75. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs +1 -1
  76. package/fesm2022/sixbell-telco-sdk-components-avatar.mjs.map +1 -1
  77. package/fesm2022/sixbell-telco-sdk-components-badge.mjs +3 -2
  78. package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
  79. package/fesm2022/sixbell-telco-sdk-components-button.mjs +3 -3
  80. package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
  81. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +1 -1
  82. package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
  83. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +6 -3
  84. package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
  85. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +8 -2
  86. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
  87. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +1 -1
  88. package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
  89. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +22 -13
  90. package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
  91. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +5 -5
  92. package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
  93. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +4 -3
  94. package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
  95. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +92 -23
  96. package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
  97. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +29 -7
  98. package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
  99. package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs +27 -38
  100. package/fesm2022/sixbell-telco-sdk-components-forms-form-group.mjs.map +1 -1
  101. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +5 -4
  102. package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
  103. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs +4 -3
  104. package/fesm2022/sixbell-telco-sdk-components-forms-radio.mjs.map +1 -1
  105. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs +4 -3
  106. package/fesm2022/sixbell-telco-sdk-components-forms-range.mjs.map +1 -1
  107. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +53 -21
  108. package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
  109. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs +4 -3
  110. package/fesm2022/sixbell-telco-sdk-components-forms-switch.mjs.map +1 -1
  111. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +6 -4
  112. package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
  113. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs +99 -153
  114. package/fesm2022/sixbell-telco-sdk-components-forms-toggle.mjs.map +1 -1
  115. package/fesm2022/sixbell-telco-sdk-components-link.mjs +2 -1
  116. package/fesm2022/sixbell-telco-sdk-components-link.mjs.map +1 -1
  117. package/fesm2022/sixbell-telco-sdk-components-notification.mjs +23 -2
  118. package/fesm2022/sixbell-telco-sdk-components-notification.mjs.map +1 -1
  119. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs +312 -23
  120. package/fesm2022/sixbell-telco-sdk-components-overlay.mjs.map +1 -1
  121. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +29 -19
  122. package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
  123. package/fesm2022/sixbell-telco-sdk-components-progress.mjs +3 -2
  124. package/fesm2022/sixbell-telco-sdk-components-progress.mjs.map +1 -1
  125. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +2 -2
  126. package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
  127. package/fesm2022/sixbell-telco-sdk-components-table.mjs +34 -8
  128. package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
  129. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +364 -8
  130. package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
  131. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +61 -41
  132. package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
  133. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +284 -145
  134. package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
  135. package/package.json +5 -5
  136. package/utils/runtime-config/README.md +1 -1
  137. package/utils/theme/README.md +34 -19
  138. package/utils/theme/public-api.d.ts +2 -2
  139. package/utils/theme/src/constants.d.ts +6 -6
  140. package/utils/theme/src/models/theme.d.ts +14 -6
  141. package/utils/theme/src/theme-assets/theme-assets.service.d.ts +1 -1
  142. package/utils/theme/src/theme-dom/theme-dom.service.d.ts +6 -1
  143. package/utils/theme/src/utils/utils.d.ts +9 -3
@@ -19,6 +19,7 @@ const WIZARD_STEP_STATUS = {
19
19
  IN_PROGRESS: 'in progress',
20
20
  PENDING: 'pending',
21
21
  COMPLETED: 'completed',
22
+ ERROR: 'error',
22
23
  };
23
24
  /**
24
25
  * Service for managing wizard state and navigation
@@ -464,13 +465,16 @@ class WizardMarkerComponent {
464
465
  inProgress = signal('in progress');
465
466
  /** @internal Signal holding translated "pending" text */
466
467
  pending = signal('pending');
468
+ /** @internal Signal holding translated "error" text */
469
+ error = signal('error');
467
470
  /** @internal Base CSS classes for the marker */
468
- baseClasses = 'rounded-field transition-colors duration-300 ease-out delay-150 text-nowrap w-max';
471
+ baseClasses = 'rounded-selector transition-colors duration-300 ease-out delay-150 text-nowrap w-max';
469
472
  /** @internal Status-to-class mapping */
470
473
  statusClassMap = {
471
- completed: 'bg-primary/20 text-primary px-3 py-[5px]',
472
- 'in progress': 'bg-neutral text-neutral-content border-[2px] border-neutral px-[10px] py-[3px]',
473
- pending: 'bg-neutral/20 text-neutral-content/20 border-[2px] border-neutral px-[10px] py-[3px]',
474
+ completed: 'bg-success/20 text-success border-[2px] border-success px-3 py-[5px]',
475
+ 'in progress': 'bg-primary text-primary-content border-[2px] border-primary px-[10px] py-[3px]',
476
+ pending: 'bg-base-200 text-base-content border-[2px] border-base-300 px-[10px] py-[3px]',
477
+ error: 'bg-error/20 text-error border-[2px] border-error px-[10px] py-[3px]',
474
478
  };
475
479
  /**
476
480
  * Initializes component translations
@@ -485,7 +489,13 @@ class WizardMarkerComponent {
485
489
  * @internal
486
490
  */
487
491
  getStatusMarkerMessage() {
488
- return this.status() === 'completed' ? this.completed() : this.status() === 'in progress' ? this.inProgress() : this.pending();
492
+ if (this.status() === 'completed')
493
+ return this.completed();
494
+ if (this.status() === 'in progress')
495
+ return this.inProgress();
496
+ if (this.status() === 'error')
497
+ return this.error();
498
+ return this.pending();
489
499
  }
490
500
  /**
491
501
  * Computes CSS classes based on current status
@@ -513,6 +523,9 @@ class WizardMarkerComponent {
513
523
  this.translateService.get(_('sdk.wizard.wizardMarker.pending')).subscribe((res) => {
514
524
  this.pending.set(res);
515
525
  });
526
+ this.translateService.get(_('sdk.wizard.wizardMarker.error')).subscribe((res) => {
527
+ this.error.set(res);
528
+ });
516
529
  }
517
530
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardMarkerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
518
531
  static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "19.2.25", type: WizardMarkerComponent, isStandalone: true, selector: "st-wizard-marker", inputs: { status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"statusMarkerClasses()\">\n\t<span stText=\"10\" stTextWeight=\"medium\">{{ statusMarkerMessage() }}</span>\n</div>\n", dependencies: [{ kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
@@ -579,27 +592,24 @@ class WizardStepComponent {
579
592
  * @internal
580
593
  */
581
594
  stepClasses = computed(() => {
582
- // Base classes
583
595
  const baseOuterClasses = 'flex h-[50px] min-h-[50px] w-[50px] min-w-[50px] items-center justify-center rounded-full border-[1px] border-solid p-[2px] font-medium text-neutral-content';
584
- const baseInnerClasses = 'flex h-full w-full items-center justify-center rounded-full bg-secondary';
585
- // State variables
586
- const isCurrentStep = this.wizardService.currentStepIndex() === this.stepIndex();
596
+ const baseInnerClasses = 'flex h-full w-full items-center justify-center rounded-full';
587
597
  const currentStatus = this.status();
588
598
  const isCompleted = currentStatus === 'completed';
589
599
  const isInProgress = currentStatus === 'in progress';
590
- // Conditions
591
- const isCurrentActive = isCurrentStep && (isInProgress || isCompleted);
592
- const isCompletedNotCurrent = !isCurrentStep && isCompleted;
593
- const isPendingNotCurrent = !isCurrentStep && currentStatus === 'pending';
600
+ const isPending = currentStatus === 'pending';
601
+ const isError = currentStatus === 'error';
594
602
  const outerClasses = cn(baseOuterClasses, {
595
- 'border-primary currentStep transition-colors duration-300 ease-out': isCurrentActive,
596
- 'border-primary notCurrentStep transition-colors duration-300 ease-out': isCompletedNotCurrent,
597
- 'border-secondary notCurrentStep transition-colors delay-[300ms] duration-300 ease-out': isPendingNotCurrent,
603
+ 'border-primary currentStep transition-colors duration-300 ease-out': isInProgress,
604
+ 'border-success notCurrentStep transition-colors duration-300 ease-out': isCompleted,
605
+ 'border-error notCurrentStep transition-colors duration-300 ease-out': isError,
606
+ 'border-base-300 notCurrentStep transition-colors delay-[300ms] duration-300 ease-out': isPending,
598
607
  });
599
608
  const innerClasses = cn(baseInnerClasses, {
600
- 'bg-primary text-primary-content currentStep transition-colors duration-300 ease-out': isCurrentActive,
601
- 'bg-primary text-primary-content notCurrentStep transition-colors duration-300 ease-out': isCompletedNotCurrent,
602
- 'bg-secondary text-secondary-content notCurrentStep transition-colors delay-[300ms] duration-300 ease-out': isPendingNotCurrent,
609
+ 'bg-primary text-primary-content currentStep transition-colors duration-300 ease-out': isInProgress,
610
+ 'bg-success text-success-content notCurrentStep transition-colors duration-300 ease-out': isCompleted,
611
+ 'bg-error text-error-content notCurrentStep transition-colors duration-300 ease-out': isError,
612
+ 'bg-base-200 text-base-content notCurrentStep transition-colors delay-[300ms] duration-300 ease-out': isPending,
603
613
  });
604
614
  return { outerClasses, innerClasses };
605
615
  });
@@ -613,8 +623,8 @@ class WizardStepComponent {
613
623
  */
614
624
  stepNumberClasses = computed(() => {
615
625
  const isCompleted = this.status() === 'completed';
616
- return cn({
617
- 'hidden opacity-0': isCompleted,
626
+ return cn('col-start-1 row-start-1 grid place-items-center leading-none', {
627
+ 'invisible opacity-0': isCompleted,
618
628
  'animate-fade-in animate-duration-300 opacity-100 delay-[350ms]': !isCompleted,
619
629
  });
620
630
  });
@@ -628,17 +638,17 @@ class WizardStepComponent {
628
638
  */
629
639
  stepIconClasses = computed(() => {
630
640
  const isCompleted = this.status() === 'completed';
631
- return cn({
641
+ return cn('col-start-1 row-start-1 grid place-items-center leading-none', {
632
642
  'animate-fade-in animate-duration-300 opacity-100 delay-[350ms]': isCompleted,
633
- 'hidden opacity-0': !isCompleted,
643
+ 'invisible opacity-0': !isCompleted,
634
644
  });
635
645
  });
636
646
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
637
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WizardStepComponent, isStandalone: true, selector: "st-wizard-step", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, stepIndex: { classPropertyName: "stepIndex", publicName: "stepIndex", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"stepClasses().outerClasses\">\n\t<div [class]=\"stepClasses().innerClasses\">\n\t\t<div [class]=\"stepNumberClasses()\">\n\t\t\t@let iconVar = icon();\n\t\t\t@if (iconVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t} @else {\n\t\t\t\t<span stText=\"7\" stTextColor=\"base\" stTextWeight=\"semibold\">\n\t\t\t\t\t{{ stepIndex() + 1 }}\n\t\t\t\t</span>\n\t\t\t}\n\t\t</div>\n\t\t<div [class]=\"stepIconClasses()\">\n\t\t\t<st-icon [icon]=\"iconCheck\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
647
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WizardStepComponent, isStandalone: true, selector: "st-wizard-step", inputs: { icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, status: { classPropertyName: "status", publicName: "status", isSignal: true, isRequired: true, transformFunction: null }, stepIndex: { classPropertyName: "stepIndex", publicName: "stepIndex", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "<div [class]=\"stepClasses().outerClasses\">\n\t<div [class]=\"stepClasses().innerClasses\">\n\t\t<div class=\"wizard-step-overlay grid h-full w-full place-items-center\">\n\t\t\t<div [class]=\"stepNumberClasses()\">\n\t\t\t\t@let iconVar = icon();\n\t\t\t\t@if (iconVar) {\n\t\t\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t} @else {\n\t\t\t\t\t<span stText=\"7\" stTextColor=\"base\" stTextWeight=\"semibold\">\n\t\t\t\t\t\t{{ stepIndex() + 1 }}\n\t\t\t\t\t</span>\n\t\t\t\t}\n\t\t\t</div>\n\t\t\t<div [class]=\"stepIconClasses()\">\n\t\t\t\t<st-icon [icon]=\"iconCheck\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n", dependencies: [{ kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
638
648
  }
639
649
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardStepComponent, decorators: [{
640
650
  type: Component,
641
- args: [{ selector: 'st-wizard-step', imports: [TextDirective, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"stepClasses().outerClasses\">\n\t<div [class]=\"stepClasses().innerClasses\">\n\t\t<div [class]=\"stepNumberClasses()\">\n\t\t\t@let iconVar = icon();\n\t\t\t@if (iconVar) {\n\t\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t} @else {\n\t\t\t\t<span stText=\"7\" stTextColor=\"base\" stTextWeight=\"semibold\">\n\t\t\t\t\t{{ stepIndex() + 1 }}\n\t\t\t\t</span>\n\t\t\t}\n\t\t</div>\n\t\t<div [class]=\"stepIconClasses()\">\n\t\t\t<st-icon [icon]=\"iconCheck\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t</div>\n\t</div>\n</div>\n" }]
651
+ args: [{ selector: 'st-wizard-step', imports: [TextDirective, IconComponent], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [class]=\"stepClasses().outerClasses\">\n\t<div [class]=\"stepClasses().innerClasses\">\n\t\t<div class=\"wizard-step-overlay grid h-full w-full place-items-center\">\n\t\t\t<div [class]=\"stepNumberClasses()\">\n\t\t\t\t@let iconVar = icon();\n\t\t\t\t@if (iconVar) {\n\t\t\t\t\t<st-icon [icon]=\"iconVar\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t\t} @else {\n\t\t\t\t\t<span stText=\"7\" stTextColor=\"base\" stTextWeight=\"semibold\">\n\t\t\t\t\t\t{{ stepIndex() + 1 }}\n\t\t\t\t\t</span>\n\t\t\t\t}\n\t\t\t</div>\n\t\t\t<div [class]=\"stepIconClasses()\">\n\t\t\t\t<st-icon [icon]=\"iconCheck\" color=\"inherit\" size=\"md\"></st-icon>\n\t\t\t</div>\n\t\t</div>\n\t</div>\n</div>\n" }]
642
652
  }] });
643
653
 
644
654
  /**
@@ -698,8 +708,9 @@ class WizardSubStepComponent {
698
708
  horizontalLeftClasses = computed(() => {
699
709
  const isCompleted = this.stepStatus() === 'completed';
700
710
  const isInProgress = this.stepStatus() === 'in progress';
701
- const afterWidthClass = isCompleted || (this.isCurrentStep() && isInProgress) ? 'after:w-full' : 'after:w-0';
702
- return cn('bg-secondary relative h-[2px] w-full', 'after:bg-primary after:absolute after:bottom-0 after:left-0 after:h-[2px]', 'after:transition-[width] after:duration-300 after:ease-out', afterWidthClass);
711
+ const isError = this.stepStatus() === 'error';
712
+ const afterWidthClass = isCompleted || isError || (this.isCurrentStep() && isInProgress) ? 'after:w-full' : 'after:w-0';
713
+ return cn('bg-secondary relative h-[2px] w-full', 'after:absolute after:bottom-0 after:left-0 after:h-[2px]', isCompleted ? 'after:bg-success' : isError ? 'after:bg-error' : 'after:bg-primary', 'after:transition-[width] after:duration-300 after:ease-out', afterWidthClass);
703
714
  });
704
715
  /**
705
716
  * Computed classes for horizontal center indicator
@@ -707,8 +718,11 @@ class WizardSubStepComponent {
707
718
  * @internal
708
719
  */
709
720
  horizontalCenterClasses = computed(() => {
710
- const isPrimaryBg = (this.isCurrentStep() && this.stepStatus() !== 'pending') || (!this.isCurrentStep() && this.stepStatus() === 'completed');
711
- return cn('h-3 min-h-3 w-3 min-w-3 rounded-full', 'transition-colors duration-300 ease-out', isPrimaryBg ? 'bg-primary' : 'bg-secondary', isPrimaryBg && !this.isCurrentStep() ? '' : 'delay-300');
721
+ const isCompleted = this.stepStatus() === 'completed';
722
+ const isInProgress = this.stepStatus() === 'in progress';
723
+ const isError = this.stepStatus() === 'error';
724
+ const isPrimaryBg = (this.isCurrentStep() && isInProgress) || (!this.isCurrentStep() && isCompleted);
725
+ return cn('h-3 min-h-3 w-3 min-w-3 rounded-full', 'transition-colors duration-300 ease-out', isCompleted ? 'bg-success' : isError ? 'bg-error' : isPrimaryBg ? 'bg-primary' : 'bg-secondary', isPrimaryBg && !this.isCurrentStep() ? '' : 'delay-300');
712
726
  });
713
727
  /**
714
728
  * Computed classes for horizontal right connector segment
@@ -717,8 +731,9 @@ class WizardSubStepComponent {
717
731
  */
718
732
  horizontalRightClasses = computed(() => {
719
733
  const isCompleted = this.stepStatus() === 'completed';
720
- const afterWidthClass = isCompleted ? 'after:w-full' : 'after:w-0';
721
- return cn('bg-secondary relative h-[2px] w-full', 'after:bg-primary after:absolute after:bottom-0 after:left-0 after:h-[2px]', 'after:transition-[width] after:duration-300 after:ease-out', afterWidthClass);
734
+ const isError = this.stepStatus() === 'error';
735
+ const afterWidthClass = isCompleted || isError ? 'after:w-full' : 'after:w-0';
736
+ return cn('bg-secondary relative h-[2px] w-full', 'after:absolute after:bottom-0 after:left-0 after:h-[2px]', isCompleted ? 'after:bg-success' : isError ? 'after:bg-error' : 'after:bg-primary', 'after:transition-[width] after:duration-300 after:ease-out', afterWidthClass);
722
737
  });
723
738
  /**
724
739
  * Computed classes for vertical left connector segment
@@ -728,8 +743,9 @@ class WizardSubStepComponent {
728
743
  verticalLeftClasses = computed(() => {
729
744
  const isCompleted = this.stepStatus() === 'completed';
730
745
  const isInProgress = this.stepStatus() === 'in progress';
731
- const afterHeightClass = isCompleted || (this.isCurrentStep() && isInProgress) ? 'after:h-full' : 'after:h-0';
732
- return cn('bg-secondary relative h-full w-[2px] rotate-180', 'after:bg-primary after:absolute after:bottom-0 after:left-0 after:w-[2px]', 'after:transition-[height] after:duration-300 after:ease-out', afterHeightClass);
746
+ const isError = this.stepStatus() === 'error';
747
+ const afterHeightClass = isCompleted || isError || (this.isCurrentStep() && isInProgress) ? 'after:h-full' : 'after:h-0';
748
+ return cn('bg-secondary relative h-full w-[2px] rotate-180', 'after:absolute after:bottom-0 after:left-0 after:w-[2px]', isCompleted ? 'after:bg-success' : isError ? 'after:bg-error' : 'after:bg-primary', 'after:transition-[height] after:duration-300 after:ease-out', afterHeightClass);
733
749
  });
734
750
  /**
735
751
  * Computed classes for vertical center indicator
@@ -737,8 +753,11 @@ class WizardSubStepComponent {
737
753
  * @internal
738
754
  */
739
755
  verticalCenterClasses = computed(() => {
740
- const isPrimaryBg = (this.isCurrentStep() && this.stepStatus() !== 'pending') || (!this.isCurrentStep() && this.stepStatus() === 'completed');
741
- return cn('h-3 min-h-3 w-3 min-w-3 rounded-full', 'transition-colors duration-300 ease-out', isPrimaryBg ? 'bg-primary' : 'bg-secondary', isPrimaryBg && !this.isCurrentStep() ? '' : 'delay-300');
756
+ const isCompleted = this.stepStatus() === 'completed';
757
+ const isInProgress = this.stepStatus() === 'in progress';
758
+ const isError = this.stepStatus() === 'error';
759
+ const isPrimaryBg = (this.isCurrentStep() && isInProgress) || (!this.isCurrentStep() && isCompleted);
760
+ return cn('h-3 min-h-3 w-3 min-w-3 rounded-full', 'transition-colors duration-300 ease-out', isCompleted ? 'bg-success' : isError ? 'bg-error' : isPrimaryBg ? 'bg-primary' : 'bg-secondary', isPrimaryBg && !this.isCurrentStep() ? '' : 'delay-300');
742
761
  });
743
762
  /**
744
763
  * Computed classes for vertical right connector segment
@@ -747,15 +766,16 @@ class WizardSubStepComponent {
747
766
  */
748
767
  verticalRightClasses = computed(() => {
749
768
  const isCompleted = this.stepStatus() === 'completed';
750
- const afterHeightClass = isCompleted ? 'after:h-full' : 'after:h-0';
751
- return cn('bg-secondary relative h-full w-[2px] rotate-180', 'after:bg-primary after:absolute after:bottom-0 after:left-0 after:w-[2px]', 'after:transition-[height] after:duration-300 after:ease-out', afterHeightClass);
769
+ const isError = this.stepStatus() === 'error';
770
+ const afterHeightClass = isCompleted || isError ? 'after:h-full' : 'after:h-0';
771
+ return cn('bg-secondary relative h-full w-[2px] rotate-180', 'after:absolute after:bottom-0 after:left-0 after:w-[2px]', isCompleted ? 'after:bg-success' : isError ? 'after:bg-error' : 'after:bg-primary', 'after:transition-[height] after:duration-300 after:ease-out', afterHeightClass);
752
772
  });
753
773
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardSubStepComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
754
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WizardSubStepComponent, isStandalone: true, selector: "st-wizard-sub-step", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, stepIndex: { classPropertyName: "stepIndex", publicName: "stepIndex", isSignal: true, isRequired: true, transformFunction: null }, stepStatus: { classPropertyName: "stepStatus", publicName: "stepStatus", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@if (variant() === 'horizontal') {\n\t<div class=\"flex w-full min-w-full -translate-y-[18px] items-center\">\n\t\t<div [class]=\"horizontalLeftClasses()\"></div>\n\t\t<div [class]=\"horizontalCenterClasses()\"></div>\n\t\t<div [class]=\"horizontalRightClasses()\"></div>\n\t</div>\n} @else {\n\t<div class=\"flex h-20 min-h-20 w-fit translate-x-[18px] flex-col items-center\">\n\t\t<div [class]=\"verticalLeftClasses()\"></div>\n\t\t<div [class]=\"verticalCenterClasses()\"></div>\n\t\t<div [class]=\"verticalRightClasses()\"></div>\n\t</div>\n}\n" });
774
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WizardSubStepComponent, isStandalone: true, selector: "st-wizard-sub-step", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, stepIndex: { classPropertyName: "stepIndex", publicName: "stepIndex", isSignal: true, isRequired: true, transformFunction: null }, stepStatus: { classPropertyName: "stepStatus", publicName: "stepStatus", isSignal: true, isRequired: true, transformFunction: null } }, ngImport: i0, template: "@if (variant() === 'horizontal') {\n\t<div class=\"wizard-sub-step-horizontal flex w-full min-w-full -translate-y-[25px] items-center\">\n\t\t<div [class]=\"horizontalLeftClasses()\"></div>\n\t\t<div [class]=\"horizontalCenterClasses()\"></div>\n\t\t<div [class]=\"horizontalRightClasses()\"></div>\n\t</div>\n} @else {\n\t<div class=\"wizard-sub-step-vertical flex h-20 min-h-20 w-fit translate-x-[25px] flex-col items-center\">\n\t\t<div [class]=\"verticalLeftClasses()\"></div>\n\t\t<div [class]=\"verticalCenterClasses()\"></div>\n\t\t<div [class]=\"verticalRightClasses()\"></div>\n\t</div>\n}\n" });
755
775
  }
756
776
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardSubStepComponent, decorators: [{
757
777
  type: Component,
758
- args: [{ selector: 'st-wizard-sub-step', imports: [], template: "@if (variant() === 'horizontal') {\n\t<div class=\"flex w-full min-w-full -translate-y-[18px] items-center\">\n\t\t<div [class]=\"horizontalLeftClasses()\"></div>\n\t\t<div [class]=\"horizontalCenterClasses()\"></div>\n\t\t<div [class]=\"horizontalRightClasses()\"></div>\n\t</div>\n} @else {\n\t<div class=\"flex h-20 min-h-20 w-fit translate-x-[18px] flex-col items-center\">\n\t\t<div [class]=\"verticalLeftClasses()\"></div>\n\t\t<div [class]=\"verticalCenterClasses()\"></div>\n\t\t<div [class]=\"verticalRightClasses()\"></div>\n\t</div>\n}\n" }]
778
+ args: [{ selector: 'st-wizard-sub-step', imports: [], template: "@if (variant() === 'horizontal') {\n\t<div class=\"wizard-sub-step-horizontal flex w-full min-w-full -translate-y-[25px] items-center\">\n\t\t<div [class]=\"horizontalLeftClasses()\"></div>\n\t\t<div [class]=\"horizontalCenterClasses()\"></div>\n\t\t<div [class]=\"horizontalRightClasses()\"></div>\n\t</div>\n} @else {\n\t<div class=\"wizard-sub-step-vertical flex h-20 min-h-20 w-fit translate-x-[25px] flex-col items-center\">\n\t\t<div [class]=\"verticalLeftClasses()\"></div>\n\t\t<div [class]=\"verticalCenterClasses()\"></div>\n\t\t<div [class]=\"verticalRightClasses()\"></div>\n\t</div>\n}\n" }]
759
779
  }] });
760
780
 
761
781
  /**
@@ -919,7 +939,7 @@ class WizardWrapperComponent {
919
939
  this.complete.emit();
920
940
  }
921
941
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardWrapperComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
922
- static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WizardWrapperComponent, isStandalone: true, selector: "st-wizard", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, card: { classPropertyName: "card", publicName: "card", isSignal: true, isRequired: false, transformFunction: null }, showControls: { classPropertyName: "showControls", publicName: "showControls", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { back: "back", previous: "previous", next: "next", complete: "complete" }, queries: [{ propertyName: "contents", predicate: WizardContentComponent, isSignal: true }], ngImport: i0, template: "@let contentsVar = contents();\n@let varinatVar = variant();\n\n<div\n\t[class]=\"varinatVar === 'horizontal' ? 'flex flex-col gap-6' : 'flex gap-6'\"\n\t[ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'horizontal' }\"\n>\n\t<!-- Steps -->\n\t@if (varinatVar === 'horizontal') {\n\t\t<ul class=\"mx-auto my-0 flex w-full max-w-[80%_40vw] min-w-fit gap-4 px-3.5 pt-6 md:px-4 lg:px-5\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex min-w-min flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t\t<st-wizard-marker [status]=\"step.status\"></st-wizard-marker>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<st-wizard-sub-step [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-1 w-[50px]\">\n\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col items-center\">\n\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"text-secondary relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t} @else {\n\t\t<ul class=\"grid h-min max-h-min gap-4\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() }\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li>\n\t\t\t\t\t<!-- step pogress -->\n\t\t\t\t\t<div class=\"grid grid-rows-[min-content_min-content] gap-4\">\n\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t\t<!-- step info -->\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col\">\n\t\t\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"text-neutral relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex flex-col justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-sub-step variant=\"vertical\" [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t}\n\n\t<div class=\"flex flex-1 flex-col gap-6\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'vertical' }\">\n\t\t<!-- Content -->\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\n\t\t<!-- Actions -->\n\t\t@if (this.showControls()) {\n\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t@if (wizardService.isCurrentStepFirst()) {\n\t\t\t\t\t<st-button variant=\"secondary\" [outline]=\"true\" [icon]=\"iconReturn\" (click)=\"handleBack()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.back' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronLeft\" variant=\"secondary\" [outline]=\"true\" (click)=\"handlePrevious()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.previous' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t\t@if (wizardService.isCurrentStepLast()) {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\t[disabled]=\"!wizardService.areAllStepsValid()\"\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t\t\t\t[disabled]=\"loading()\"\n\t\t\t\t\t\t[loader]=\"loading()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (!loading()) {\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconSave\"></st-icon>\n\n\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.end' | translate }}\n\t\t\t\t\t\t}\n\t\t\t\t\t</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronRight\" iconPosition=\"right\" [disabled]=\"!wizardService.currentStep().isValid\" (click)=\"handleNext()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.next' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<ng-content select=\"st-wizard-actions\"></ng-content>\n\t\t}\n\t</div>\n</div>\n", dependencies: [{ kind: "component", type: WizardStepComponent, selector: "st-wizard-step", inputs: ["icon", "status", "stepIndex"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: WizardMarkerComponent, selector: "st-wizard-marker", inputs: ["status"] }, { kind: "component", type: WizardSubStepComponent, selector: "st-wizard-sub-step", inputs: ["variant", "stepIndex", "stepStatus"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }] });
942
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "19.2.25", type: WizardWrapperComponent, isStandalone: true, selector: "st-wizard", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, card: { classPropertyName: "card", publicName: "card", isSignal: true, isRequired: false, transformFunction: null }, showControls: { classPropertyName: "showControls", publicName: "showControls", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { back: "back", previous: "previous", next: "next", complete: "complete" }, queries: [{ propertyName: "contents", predicate: WizardContentComponent, isSignal: true }], ngImport: i0, template: "@let contentsVar = contents();\n@let varinatVar = variant();\n\n<div\n\t[class]=\"varinatVar === 'horizontal' ? 'flex flex-col gap-6' : 'flex gap-6'\"\n\t[ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'horizontal' }\"\n>\n\t<!-- Steps -->\n\t@if (varinatVar === 'horizontal') {\n\t\t<ul class=\"mx-auto my-0 flex w-full max-w-[80%_40vw] min-w-fit gap-4 px-3.5 pt-6 md:px-4 lg:px-5\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex min-w-min flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t\t<st-wizard-marker [status]=\"step.status\"></st-wizard-marker>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<st-wizard-sub-step [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-1 w-[50px]\">\n\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col items-center\">\n\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"text-secondary relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t} @else {\n\t\t<ul class=\"grid h-min max-h-min gap-4\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() }\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li>\n\t\t\t\t\t<!-- step pogress -->\n\t\t\t\t\t<div class=\"grid grid-rows-[min-content_min-content] gap-4\">\n\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t\t<!-- step info -->\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col\">\n\t\t\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"text-neutral relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex flex-col justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-sub-step variant=\"vertical\" [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t}\n\n\t<div class=\"flex flex-1 flex-col gap-6\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'vertical' }\">\n\t\t<!-- Content -->\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\n\t\t<!-- Actions -->\n\t\t@if (this.showControls()) {\n\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t@if (wizardService.isCurrentStepFirst()) {\n\t\t\t\t\t<st-button variant=\"secondary\" [outline]=\"true\" [icon]=\"iconReturn\" (click)=\"handleBack()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.back' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronLeft\" variant=\"secondary\" [outline]=\"true\" (click)=\"handlePrevious()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.previous' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t\t@if (wizardService.isCurrentStepLast()) {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\t[disabled]=\"!wizardService.areAllStepsValid()\"\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t\t\t\t[disabled]=\"loading()\"\n\t\t\t\t\t\t[loader]=\"loading()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (!loading()) {\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconSave\"></st-icon>\n\n\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.end' | translate }}\n\t\t\t\t\t\t}\n\t\t\t\t\t</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t[icon]=\"iconChevronRight\"\n\t\t\t\t\t\ticonPosition=\"right\"\n\t\t\t\t\t\t[disabled]=\"!wizardService.currentStep().isValid\"\n\t\t\t\t\t\t(click)=\"handleNext()\"\n\t\t\t\t\t\t>{{ 'sdk.wizard.wizardWrapper.next' | translate }}</st-button\n\t\t\t\t\t>\n\t\t\t\t}\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<ng-content select=\"st-wizard-actions\"></ng-content>\n\t\t}\n\t</div>\n</div>\n", dependencies: [{ kind: "component", type: WizardStepComponent, selector: "st-wizard-step", inputs: ["icon", "status", "stepIndex"] }, { kind: "component", type: ButtonComponent, selector: "st-button", inputs: ["variant", "ghost", "outline", "link", "soft", "dash", "wide", "circle", "square", "glass", "block", "loader", "size", "shadow", "focusable", "icon", "iconPosition", "type", "disabled", "stopPropagation"], outputs: ["clicked", "pointerDown", "keyDownEnter", "keyDownSpace", "triggered"] }, { kind: "directive", type: NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: TextDirective, selector: "[stText]", inputs: ["stText", "stTextWeight", "stTextColor", "stTextOverflow", "stTextLineClamp", "stTextClass"] }, { kind: "component", type: WizardMarkerComponent, selector: "st-wizard-marker", inputs: ["status"] }, { kind: "component", type: WizardSubStepComponent, selector: "st-wizard-sub-step", inputs: ["variant", "stepIndex", "stepStatus"] }, { kind: "pipe", type: TranslatePipe, name: "translate" }, { kind: "component", type: IconComponent, selector: "st-icon", inputs: ["color", "size", "icon"] }] });
923
943
  }
924
944
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImport: i0, type: WizardWrapperComponent, decorators: [{
925
945
  type: Component,
@@ -932,7 +952,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.25", ngImpo
932
952
  WizardSubStepComponent,
933
953
  TranslatePipe,
934
954
  IconComponent,
935
- ], template: "@let contentsVar = contents();\n@let varinatVar = variant();\n\n<div\n\t[class]=\"varinatVar === 'horizontal' ? 'flex flex-col gap-6' : 'flex gap-6'\"\n\t[ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'horizontal' }\"\n>\n\t<!-- Steps -->\n\t@if (varinatVar === 'horizontal') {\n\t\t<ul class=\"mx-auto my-0 flex w-full max-w-[80%_40vw] min-w-fit gap-4 px-3.5 pt-6 md:px-4 lg:px-5\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex min-w-min flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t\t<st-wizard-marker [status]=\"step.status\"></st-wizard-marker>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<st-wizard-sub-step [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-1 w-[50px]\">\n\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col items-center\">\n\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"text-secondary relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t} @else {\n\t\t<ul class=\"grid h-min max-h-min gap-4\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() }\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li>\n\t\t\t\t\t<!-- step pogress -->\n\t\t\t\t\t<div class=\"grid grid-rows-[min-content_min-content] gap-4\">\n\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t\t<!-- step info -->\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col\">\n\t\t\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"text-neutral relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex flex-col justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-sub-step variant=\"vertical\" [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t}\n\n\t<div class=\"flex flex-1 flex-col gap-6\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'vertical' }\">\n\t\t<!-- Content -->\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\n\t\t<!-- Actions -->\n\t\t@if (this.showControls()) {\n\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t@if (wizardService.isCurrentStepFirst()) {\n\t\t\t\t\t<st-button variant=\"secondary\" [outline]=\"true\" [icon]=\"iconReturn\" (click)=\"handleBack()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.back' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronLeft\" variant=\"secondary\" [outline]=\"true\" (click)=\"handlePrevious()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.previous' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t\t@if (wizardService.isCurrentStepLast()) {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\t[disabled]=\"!wizardService.areAllStepsValid()\"\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t\t\t\t[disabled]=\"loading()\"\n\t\t\t\t\t\t[loader]=\"loading()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (!loading()) {\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconSave\"></st-icon>\n\n\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.end' | translate }}\n\t\t\t\t\t\t}\n\t\t\t\t\t</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronRight\" iconPosition=\"right\" [disabled]=\"!wizardService.currentStep().isValid\" (click)=\"handleNext()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.next' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<ng-content select=\"st-wizard-actions\"></ng-content>\n\t\t}\n\t</div>\n</div>\n" }]
955
+ ], template: "@let contentsVar = contents();\n@let varinatVar = variant();\n\n<div\n\t[class]=\"varinatVar === 'horizontal' ? 'flex flex-col gap-6' : 'flex gap-6'\"\n\t[ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'horizontal' }\"\n>\n\t<!-- Steps -->\n\t@if (varinatVar === 'horizontal') {\n\t\t<ul class=\"mx-auto my-0 flex w-full max-w-[80%_40vw] min-w-fit gap-4 px-3.5 pt-6 md:px-4 lg:px-5\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li [ngClass]=\"{ 'flex-1': contentsVar.length - 1 !== $index }\">\n\t\t\t\t\t<div class=\"flex items-center gap-4\">\n\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex min-w-min flex-1 flex-col justify-center\">\n\t\t\t\t\t\t\t\t<div class=\"flex -translate-y-6 justify-center\">\n\t\t\t\t\t\t\t\t\t<st-wizard-marker [status]=\"step.status\"></st-wizard-marker>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t<st-wizard-sub-step [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t\t<div class=\"mt-1 w-[50px]\">\n\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col items-center\">\n\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t<div class=\"text-secondary relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t} @else {\n\t\t<ul class=\"grid h-min max-h-min gap-4\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() }\">\n\t\t\t@for (step of wizardService.steps(); track $index) {\n\t\t\t\t<li>\n\t\t\t\t\t<!-- step pogress -->\n\t\t\t\t\t<div class=\"grid grid-rows-[min-content_min-content] gap-4\">\n\t\t\t\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t\t\t\t<st-wizard-step [icon]=\"step.icon\" [stepIndex]=\"$index\" [status]=\"step.status\"></st-wizard-step>\n\t\t\t\t\t\t\t<!-- step info -->\n\t\t\t\t\t\t\t<div>\n\t\t\t\t\t\t\t\t<div class=\"relative flex max-w-fit flex-col\">\n\t\t\t\t\t\t\t\t\t<div class=\"min-w-max\">\n\t\t\t\t\t\t\t\t\t\t<span stText=\"8\" stTextColor=\"base\" stTextWeight=\"medium\">{{ step.label }}</span>\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t\t<div class=\"text-neutral relative -top-1 min-w-max\" stText=\"9\">\n\t\t\t\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.step' | translate: { index: $index + 1 } }}\n\t\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t</div>\n\t\t\t\t\t\t@if (contentsVar.length - 1 !== $index) {\n\t\t\t\t\t\t\t<div class=\"flex flex-col justify-center\">\n\t\t\t\t\t\t\t\t<st-wizard-sub-step variant=\"vertical\" [stepIndex]=\"$index\" [stepStatus]=\"step.status\"></st-wizard-sub-step>\n\t\t\t\t\t\t\t</div>\n\t\t\t\t\t\t}\n\t\t\t\t\t</div>\n\t\t\t\t</li>\n\t\t\t}\n\t\t</ul>\n\t}\n\n\t<div class=\"flex flex-1 flex-col gap-6\" [ngClass]=\"{ 'rounded-box bg-base-200 shadow-main p-6': card() && varinatVar === 'vertical' }\">\n\t\t<!-- Content -->\n\t\t<div>\n\t\t\t<ng-content></ng-content>\n\t\t</div>\n\n\t\t<!-- Actions -->\n\t\t@if (this.showControls()) {\n\t\t\t<div class=\"flex items-center gap-3\">\n\t\t\t\t@if (wizardService.isCurrentStepFirst()) {\n\t\t\t\t\t<st-button variant=\"secondary\" [outline]=\"true\" [icon]=\"iconReturn\" (click)=\"handleBack()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.back' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button [icon]=\"iconChevronLeft\" variant=\"secondary\" [outline]=\"true\" (click)=\"handlePrevious()\">{{\n\t\t\t\t\t\t'sdk.wizard.wizardWrapper.previous' | translate\n\t\t\t\t\t}}</st-button>\n\t\t\t\t}\n\t\t\t\t@if (wizardService.isCurrentStepLast()) {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\t[disabled]=\"!wizardService.areAllStepsValid()\"\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t(click)=\"handleComplete()\"\n\t\t\t\t\t\t[disabled]=\"loading()\"\n\t\t\t\t\t\t[loader]=\"loading()\"\n\t\t\t\t\t>\n\t\t\t\t\t\t@if (!loading()) {\n\t\t\t\t\t\t\t<st-icon [icon]=\"iconSave\"></st-icon>\n\n\t\t\t\t\t\t\t{{ 'sdk.wizard.wizardWrapper.end' | translate }}\n\t\t\t\t\t\t}\n\t\t\t\t\t</st-button>\n\t\t\t\t} @else {\n\t\t\t\t\t<st-button\n\t\t\t\t\t\tvariant=\"primary\"\n\t\t\t\t\t\t[icon]=\"iconChevronRight\"\n\t\t\t\t\t\ticonPosition=\"right\"\n\t\t\t\t\t\t[disabled]=\"!wizardService.currentStep().isValid\"\n\t\t\t\t\t\t(click)=\"handleNext()\"\n\t\t\t\t\t\t>{{ 'sdk.wizard.wizardWrapper.next' | translate }}</st-button\n\t\t\t\t\t>\n\t\t\t\t}\n\t\t\t</div>\n\t\t} @else {\n\t\t\t<ng-content select=\"st-wizard-actions\"></ng-content>\n\t\t}\n\t</div>\n</div>\n" }]
936
956
  }] });
937
957
 
938
958
  /**