@visuno/angular 0.0.0-stage → 0.1.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 (175) hide show
  1. package/LICENSE +24 -0
  2. package/README.md +56 -2
  3. package/account-table/account-table.component.d.ts +72 -0
  4. package/action-log/action-log.component.d.ts +41 -0
  5. package/activity-heatmap/activity-heatmap.component.d.ts +67 -0
  6. package/agent-inbox/agent-inbox.component.d.ts +75 -0
  7. package/agent-lanes/agent-lanes.component.d.ts +152 -0
  8. package/agent-phases/agent-phases.component.d.ts +62 -0
  9. package/agent-run-timeline/agent-run-timeline.component.d.ts +113 -0
  10. package/agent-tree/agent-tree.component.d.ts +80 -0
  11. package/answer-action-bar/answer-action-bar.component.d.ts +110 -0
  12. package/artifact-card/artifact-card.component.d.ts +145 -0
  13. package/attachment-tray/attachment-tray.component.d.ts +84 -0
  14. package/badge/badge.component.d.ts +25 -0
  15. package/bar-chart/bar-chart.component.d.ts +87 -0
  16. package/browser-session/browser-session.component.d.ts +70 -0
  17. package/buttons/buttons.component.d.ts +63 -0
  18. package/card/card.component.d.ts +21 -0
  19. package/change-review/change-review.component.d.ts +97 -0
  20. package/citation-hover-card/citation-hover-card.component.d.ts +95 -0
  21. package/code-viewer/code-viewer.component.d.ts +86 -0
  22. package/composer/composer.component.d.ts +114 -0
  23. package/context-meter/context-meter.component.d.ts +60 -0
  24. package/core/icon.component.d.ts +10 -0
  25. package/core/reduced-motion.service.d.ts +15 -0
  26. package/decision-prompt/decision-prompt.component.d.ts +56 -0
  27. package/design-review/design-review.component.d.ts +108 -0
  28. package/design-tuner/design-tuner.component.d.ts +75 -0
  29. package/details-panel/details-panel.component.d.ts +150 -0
  30. package/donut-chart/donut-chart.component.d.ts +63 -0
  31. package/draft-review/draft-review.component.d.ts +128 -0
  32. package/error-recovery/error-recovery.component.d.ts +59 -0
  33. package/esm2022/account-table/account-table.component.mjs +399 -0
  34. package/esm2022/action-log/action-log.component.mjs +177 -0
  35. package/esm2022/activity-heatmap/activity-heatmap.component.mjs +285 -0
  36. package/esm2022/agent-inbox/agent-inbox.component.mjs +284 -0
  37. package/esm2022/agent-lanes/agent-lanes.component.mjs +600 -0
  38. package/esm2022/agent-phases/agent-phases.component.mjs +300 -0
  39. package/esm2022/agent-run-timeline/agent-run-timeline.component.mjs +412 -0
  40. package/esm2022/agent-tree/agent-tree.component.mjs +393 -0
  41. package/esm2022/answer-action-bar/answer-action-bar.component.mjs +636 -0
  42. package/esm2022/artifact-card/artifact-card.component.mjs +916 -0
  43. package/esm2022/attachment-tray/attachment-tray.component.mjs +402 -0
  44. package/esm2022/badge/badge.component.mjs +97 -0
  45. package/esm2022/bar-chart/bar-chart.component.mjs +300 -0
  46. package/esm2022/browser-session/browser-session.component.mjs +352 -0
  47. package/esm2022/buttons/buttons.component.mjs +215 -0
  48. package/esm2022/card/card.component.mjs +107 -0
  49. package/esm2022/change-review/change-review.component.mjs +398 -0
  50. package/esm2022/citation-hover-card/citation-hover-card.component.mjs +360 -0
  51. package/esm2022/code-viewer/code-viewer.component.mjs +291 -0
  52. package/esm2022/composer/composer.component.mjs +743 -0
  53. package/esm2022/context-meter/context-meter.component.mjs +275 -0
  54. package/esm2022/core/icon.component.mjs +111 -0
  55. package/esm2022/core/reduced-motion.service.mjs +34 -0
  56. package/esm2022/decision-prompt/decision-prompt.component.mjs +259 -0
  57. package/esm2022/design-review/design-review.component.mjs +428 -0
  58. package/esm2022/design-tuner/design-tuner.component.mjs +341 -0
  59. package/esm2022/details-panel/details-panel.component.mjs +537 -0
  60. package/esm2022/donut-chart/donut-chart.component.mjs +240 -0
  61. package/esm2022/draft-review/draft-review.component.mjs +549 -0
  62. package/esm2022/error-recovery/error-recovery.component.mjs +231 -0
  63. package/esm2022/eval-results/eval-results.component.mjs +368 -0
  64. package/esm2022/feedback-sheet/feedback-sheet.component.mjs +411 -0
  65. package/esm2022/field-extraction/field-extraction.component.mjs +368 -0
  66. package/esm2022/funnel-chart/funnel-chart.component.mjs +258 -0
  67. package/esm2022/grid/grid.component.mjs +66 -0
  68. package/esm2022/health-score/health-score.component.mjs +420 -0
  69. package/esm2022/human-handoff/human-handoff.component.mjs +676 -0
  70. package/esm2022/image-generation/image-generation.component.mjs +1028 -0
  71. package/esm2022/inline-text-diff/inline-text-diff.component.mjs +390 -0
  72. package/esm2022/launch-checklist/launch-checklist.component.mjs +229 -0
  73. package/esm2022/line-chart/line-chart.component.mjs +417 -0
  74. package/esm2022/live-answer/live-answer.component.mjs +411 -0
  75. package/esm2022/metric-insight/metric-insight.component.mjs +511 -0
  76. package/esm2022/modal/modal.component.mjs +202 -0
  77. package/esm2022/model-picker/model-picker.component.mjs +491 -0
  78. package/esm2022/permission-gate/permission-gate.component.mjs +498 -0
  79. package/esm2022/plan-review/plan-review.component.mjs +432 -0
  80. package/esm2022/progress/progress.component.mjs +503 -0
  81. package/esm2022/prompt-library/prompt-library.component.mjs +453 -0
  82. package/esm2022/prompt-starters/prompt-starters.component.mjs +272 -0
  83. package/esm2022/proposal-card/proposal-card.component.mjs +402 -0
  84. package/esm2022/public-api.mjs +88 -0
  85. package/esm2022/radar-chart/radar-chart.component.mjs +500 -0
  86. package/esm2022/radial-goals/radial-goals.component.mjs +418 -0
  87. package/esm2022/reasoning-trail/reasoning-trail.component.mjs +284 -0
  88. package/esm2022/response-versions/response-versions.component.mjs +288 -0
  89. package/esm2022/rewrite-toolbar/rewrite-toolbar.component.mjs +397 -0
  90. package/esm2022/rich-text-editor/rich-text-editor.component.mjs +1755 -0
  91. package/esm2022/run-cost/run-cost.component.mjs +215 -0
  92. package/esm2022/run-queue/run-queue.component.mjs +481 -0
  93. package/esm2022/run-summary/run-summary.component.mjs +331 -0
  94. package/esm2022/scatter-chart/scatter-chart.component.mjs +705 -0
  95. package/esm2022/score-breakdown/score-breakdown.component.mjs +460 -0
  96. package/esm2022/segmented-control/segmented-control.component.mjs +180 -0
  97. package/esm2022/source-stack/source-stack.component.mjs +245 -0
  98. package/esm2022/stat-cards/stat-cards.component.mjs +258 -0
  99. package/esm2022/status-pill/status-pill.component.mjs +305 -0
  100. package/esm2022/steering/steering.component.mjs +343 -0
  101. package/esm2022/step-loader/step-loader.component.mjs +209 -0
  102. package/esm2022/task-table/task-table.component.mjs +534 -0
  103. package/esm2022/terminal-stream/terminal-stream.component.mjs +583 -0
  104. package/esm2022/thinking/thinking.component.mjs +276 -0
  105. package/esm2022/thinking-states/thinking-states.component.mjs +333 -0
  106. package/esm2022/thread-panel/thread-panel.component.mjs +271 -0
  107. package/esm2022/toast/toast.component.mjs +195 -0
  108. package/esm2022/toast-stack/toast-stack.component.mjs +301 -0
  109. package/esm2022/tool-call/tool-call.component.mjs +273 -0
  110. package/esm2022/tooltip/tooltip.component.mjs +417 -0
  111. package/esm2022/top-pages/top-pages.component.mjs +240 -0
  112. package/esm2022/trace-view/trace-view.component.mjs +440 -0
  113. package/esm2022/visuno-angular.mjs +5 -0
  114. package/esm2022/voice-capture/voice-capture.component.mjs +650 -0
  115. package/esm2022/voice-orb/voice-orb.component.mjs +538 -0
  116. package/esm2022/web-search/web-search.component.mjs +374 -0
  117. package/eval-results/eval-results.component.d.ts +67 -0
  118. package/feedback-sheet/feedback-sheet.component.d.ts +74 -0
  119. package/fesm2022/visuno-angular.mjs +31992 -0
  120. package/fesm2022/visuno-angular.mjs.map +1 -0
  121. package/field-extraction/field-extraction.component.d.ts +82 -0
  122. package/funnel-chart/funnel-chart.component.d.ts +70 -0
  123. package/grid/grid.component.d.ts +22 -0
  124. package/health-score/health-score.component.d.ts +87 -0
  125. package/human-handoff/human-handoff.component.d.ts +125 -0
  126. package/image-generation/image-generation.component.d.ts +253 -0
  127. package/index.d.ts +5 -0
  128. package/inline-text-diff/inline-text-diff.component.d.ts +76 -0
  129. package/launch-checklist/launch-checklist.component.d.ts +46 -0
  130. package/line-chart/line-chart.component.d.ts +89 -0
  131. package/live-answer/live-answer.component.d.ts +110 -0
  132. package/metric-insight/metric-insight.component.d.ts +110 -0
  133. package/modal/modal.component.d.ts +37 -0
  134. package/model-picker/model-picker.component.d.ts +97 -0
  135. package/package.json +51 -4
  136. package/permission-gate/permission-gate.component.d.ts +100 -0
  137. package/plan-review/plan-review.component.d.ts +86 -0
  138. package/progress/progress.component.d.ts +91 -0
  139. package/prompt-library/prompt-library.component.d.ts +121 -0
  140. package/prompt-starters/prompt-starters.component.d.ts +65 -0
  141. package/proposal-card/proposal-card.component.d.ts +101 -0
  142. package/public-api.d.ts +82 -0
  143. package/radar-chart/radar-chart.component.d.ts +110 -0
  144. package/radial-goals/radial-goals.component.d.ts +90 -0
  145. package/reasoning-trail/reasoning-trail.component.d.ts +73 -0
  146. package/response-versions/response-versions.component.d.ts +54 -0
  147. package/rewrite-toolbar/rewrite-toolbar.component.d.ts +92 -0
  148. package/rich-text-editor/rich-text-editor.component.d.ts +180 -0
  149. package/run-cost/run-cost.component.d.ts +43 -0
  150. package/run-queue/run-queue.component.d.ts +93 -0
  151. package/run-summary/run-summary.component.d.ts +81 -0
  152. package/scatter-chart/scatter-chart.component.d.ts +139 -0
  153. package/score-breakdown/score-breakdown.component.d.ts +107 -0
  154. package/segmented-control/segmented-control.component.d.ts +44 -0
  155. package/source-stack/source-stack.component.d.ts +60 -0
  156. package/stat-cards/stat-cards.component.d.ts +86 -0
  157. package/status-pill/status-pill.component.d.ts +64 -0
  158. package/steering/steering.component.d.ts +75 -0
  159. package/step-loader/step-loader.component.d.ts +40 -0
  160. package/styles.css +424 -0
  161. package/task-table/task-table.component.d.ts +114 -0
  162. package/terminal-stream/terminal-stream.component.d.ts +110 -0
  163. package/thinking/thinking.component.d.ts +63 -0
  164. package/thinking-states/thinking-states.component.d.ts +51 -0
  165. package/thread-panel/thread-panel.component.d.ts +75 -0
  166. package/toast/toast.component.d.ts +56 -0
  167. package/toast-stack/toast-stack.component.d.ts +72 -0
  168. package/tokens.css +424 -0
  169. package/tool-call/tool-call.component.d.ts +61 -0
  170. package/tooltip/tooltip.component.d.ts +89 -0
  171. package/top-pages/top-pages.component.d.ts +75 -0
  172. package/trace-view/trace-view.component.d.ts +95 -0
  173. package/voice-capture/voice-capture.component.d.ts +103 -0
  174. package/voice-orb/voice-orb.component.d.ts +78 -0
  175. package/web-search/web-search.component.d.ts +77 -0
@@ -0,0 +1,209 @@
1
+ // framework/angular/step-loader/step-loader.component.ts
2
+ //
3
+ // Native Angular port of framework/react/step-loader/StepLoader.tsx.
4
+ // Named steps with a progress track and a loader glyph beside the running step.
5
+ // Click the row to expand the full list of steps. Inputs mirror the React props.
6
+ import { Component, EventEmitter, Input, Output, ViewEncapsulation, } from '@angular/core';
7
+ import { NgTemplateOutlet } from '@angular/common';
8
+ import { VoIconComponent } from '../core/icon.component';
9
+ import * as i0 from "@angular/core";
10
+ export class StepLoaderComponent {
11
+ constructor() {
12
+ /** The named steps. */
13
+ this.steps = [];
14
+ /** Index of the step running now. steps.length (or more) means every step is done. */
15
+ this.current = 0;
16
+ /** The loader beside the running step. */
17
+ this.loader = 'radar';
18
+ /** Label once every step is done. */
19
+ this.doneLabel = 'Ready for review';
20
+ /** Initial open state when uncontrolled. */
21
+ this.defaultOpen = false;
22
+ /** Emitted when the open state changes. */
23
+ this.openChange = new EventEmitter();
24
+ /** The open state shown now (controlled by `open`, else held internally). */
25
+ this.isOpen = false;
26
+ this.touched = false;
27
+ }
28
+ ngOnChanges(changes) {
29
+ if (changes['open'] && this.open !== undefined) {
30
+ this.isOpen = this.open;
31
+ }
32
+ else if (!this.touched) {
33
+ this.isOpen = this.open ?? this.defaultOpen;
34
+ }
35
+ }
36
+ /** Number of steps. */
37
+ get n() {
38
+ return this.steps.length;
39
+ }
40
+ /** Whether every step is done. */
41
+ get allDone() {
42
+ return this.current >= this.n;
43
+ }
44
+ /** Index of the step to show as running (clamped to the last step). */
45
+ get at() {
46
+ return Math.min(this.current, this.n - 1);
47
+ }
48
+ toggle() {
49
+ this.touched = true;
50
+ const next = !this.isOpen;
51
+ // controlled: tell the parent; uncontrolled: flip locally
52
+ if (this.open === undefined)
53
+ this.isOpen = next;
54
+ this.openChange.emit(next);
55
+ }
56
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StepLoaderComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
57
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.14", type: StepLoaderComponent, isStandalone: true, selector: "vo-step-loader", inputs: { steps: "steps", current: "current", loader: "loader", doneLabel: "doneLabel", open: "open", defaultOpen: "defaultOpen" }, outputs: { openChange: "openChange" }, usesOnChanges: true, ngImport: i0, template: `
58
+ <div data-vo="" class="vo-stl">
59
+ <button type="button" class="vo-stl-row" [attr.aria-expanded]="isOpen" (click)="toggle()">
60
+ <span class="vo-stl-g">
61
+ @if (allDone) {
62
+ <span style="color:var(--vo-ok);display:grid"><vo-icon name="ok"></vo-icon></span>
63
+ } @else {
64
+ <ng-container [ngTemplateOutlet]="glyph"></ng-container>
65
+ }
66
+ </span>
67
+ <span class="vo-stl-t">
68
+ <span class="vo-stl-lab" [class.vo-shim]="!allDone">{{ allDone ? doneLabel : steps[at]?.label }}</span>
69
+ </span>
70
+ <span class="vo-stl-n vo-num">{{ (allDone ? n : at + 1) }}/{{ n }}</span>
71
+ <vo-icon name="chev-d" size="xs" class="vo-stl-chev"></vo-icon>
72
+ </button>
73
+
74
+ <div class="vo-stl-track" role="progressbar" [attr.aria-valuemin]="0"
75
+ [attr.aria-valuemax]="n" [attr.aria-valuenow]="allDone ? n : at">
76
+ @for (s of steps; track $index) {
77
+ <i [class.vo-on]="allDone || $index < current"
78
+ [class.vo-run]="!allDone && $index === current"></i>
79
+ }
80
+ </div>
81
+
82
+ <div class="vo-fold vo-stl-fold" [class.vo-shut]="!isOpen" [attr.inert]="!isOpen ? '' : null"
83
+ [attr.aria-hidden]="!isOpen">
84
+ <div>
85
+ <ol class="vo-stl-list">
86
+ @for (s of steps; track $index) {
87
+ <li [class.vo-done]="allDone || $index < current"
88
+ [class.vo-run]="!allDone && $index === current">
89
+ <span class="vo-g">
90
+ @if (allDone || $index < current) {
91
+ <span style="color:var(--vo-ok);display:grid"><vo-icon name="check" size="xs"></vo-icon></span>
92
+ } @else if ($index === current) {
93
+ <ng-container [ngTemplateOutlet]="glyph"></ng-container>
94
+ } @else {
95
+ <span class="vo-dot" style="color:var(--vo-faint)" aria-hidden="true"></span>
96
+ }
97
+ </span>
98
+ {{ (allDone || $index < current) ? (s.done ?? s.label) : s.label }}
99
+ </li>
100
+ }
101
+ </ol>
102
+ </div>
103
+ </div>
104
+ </div>
105
+
106
+ <!-- the loader glyph for the chosen kind -->
107
+ <ng-template #glyph>
108
+ @switch (loader) {
109
+ @case ('dots') {
110
+ <span class="vo-think vo-on" aria-hidden="true"><i></i><i></i><i></i><i></i></span>
111
+ }
112
+ @case ('ring') {
113
+ <span class="vo-spin" aria-hidden="true"></span>
114
+ }
115
+ @case ('bars') {
116
+ <span class="vo-bars3" aria-hidden="true"><i></i><i></i><i></i></span>
117
+ }
118
+ @default {
119
+ <span class="vo-radar" aria-hidden="true"></span>
120
+ }
121
+ }
122
+ </ng-template>
123
+ `, isInline: true, styles: [".vo-stl{display:flex;flex-direction:column;align-items:center;gap:10px}.vo-stl-row{display:flex;align-items:center;gap:10px;background:var(--vo-surface);border-radius:var(--vo-r-pill);box-shadow:var(--vo-shadow);height:40px;padding:0 14px 0 13px;font-size:13.5px;min-width:250px;cursor:pointer;transition:box-shadow .3s}@media (hover:hover) and (pointer:fine){.vo-stl-row:hover{box-shadow:var(--vo-shadow-pop)}}.vo-stl-g{width:16px;display:grid;place-items:center;color:var(--vo-fg)}.vo-stl-t{flex:1;text-align:left}.vo-stl-n{color:var(--vo-muted);font-size:12.5px}.vo-stl-chev{color:var(--vo-muted);transition:transform .4s var(--vo-ease)}.vo-stl-row[aria-expanded=true] .vo-stl-chev{transform:rotate(180deg)}.vo-stl-track{display:flex;gap:var(--vo-s-1);width:250px}.vo-stl-track i{flex:1;height:3px;border-radius:2px;background:var(--vo-line);position:relative;overflow:hidden}.vo-stl-track i:after{content:\"\";position:absolute;inset:0;background:var(--vo-accent-mark,var(--vo-accent));transform:scaleX(0);transform-origin:left;transition:transform .9s var(--vo-ease)}.vo-stl-track i.vo-on:after{transform:scaleX(1)}.vo-stl-track i.vo-run:after{transform:scaleX(.45);transition-duration:2.2s}.vo-stl-fold{width:250px}.vo-stl-fold>div{margin-inline:-16px;padding-inline:var(--vo-s-4)}.vo-stl-list{list-style:none;margin:6px 0 18px;padding:6px;background:var(--vo-surface);border-radius:calc(14px * var(--vo-rk));box-shadow:var(--vo-shadow)}.vo-stl-list li{display:flex;align-items:center;gap:9px;padding:6px var(--vo-s-2);font-size:13px;color:var(--vo-muted)}.vo-stl-list li.vo-done{color:var(--vo-fg2)}.vo-stl-list li.vo-run{color:var(--vo-fg)}.vo-stl-list li .vo-g{width:14px;display:grid;place-items:center}.vo-bars3{display:inline-flex;gap:2px;align-items:center;height:12px}.vo-bars3 i{width:2.5px;height:100%;border-radius:2px;background:currentColor;animation:vo-b3 .9s var(--vo-ease-io) infinite}.vo-bars3 i:nth-child(2){animation-delay:.15s}.vo-bars3 i:nth-child(3){animation-delay:.3s}@keyframes vo-b3{0%,to{transform:scaleY(.35)}50%{transform:scaleY(1)}}.vo-num{font-variant-numeric:tabular-nums}.vo-dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex:none;display:inline-block}.vo-spin{width:12px;height:12px;border-radius:50%;border:1.5px solid currentColor;border-right-color:transparent;animation:vo-rot .8s linear infinite;flex:none;display:inline-block}@keyframes vo-rot{to{transform:rotate(360deg)}}.vo-radar{position:relative;width:13px;height:13px;flex:none;display:inline-block}.vo-radar:before{content:\"\";position:absolute;inset:3.5px;border-radius:50%;background:currentColor}.vo-radar:after{content:\"\";position:absolute;inset:0;border-radius:50%;border:1.3px solid currentColor;border-right-color:transparent;animation:vo-rot .9s linear infinite}.vo-think{width:14px;height:14px;position:relative;flex:none;display:inline-block}.vo-think i{position:absolute;width:3.4px;height:3.4px;border-radius:50%;background:currentColor;left:50%;top:50%;margin:-1.7px}.vo-think i:nth-child(1){transform:translate(-3.6px,-3.6px)}.vo-think i:nth-child(2){transform:translate(3.6px,-3.6px)}.vo-think i:nth-child(3){transform:translate(3.6px,3.6px)}.vo-think i:nth-child(4){transform:translate(-3.6px,3.6px)}.vo-think.vo-on{animation:vo-thinkrot 1.6s var(--vo-ease-io) infinite}.vo-think.vo-on i{animation:vo-thinkpulse 1.6s var(--vo-ease-io) infinite}.vo-think.vo-on i:nth-child(2){animation-delay:.2s}.vo-think.vo-on i:nth-child(3){animation-delay:.4s}.vo-think.vo-on i:nth-child(4){animation-delay:.6s}@keyframes vo-thinkrot{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes vo-thinkpulse{0%,to{opacity:1}50%{opacity:.35}}.vo-shim{background:linear-gradient(90deg,var(--vo-fg) 0%,var(--vo-fg) 38%,var(--vo-faint) 50%,var(--vo-fg) 62%,var(--vo-fg) 100%);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:vo-shim 2.2s linear infinite}@keyframes vo-shim{0%{background-position:100% 0}to{background-position:-160% 0}}.vo-fold{display:grid;grid-template-rows:1fr;grid-template-columns:minmax(0,1fr);transition:grid-template-rows var(--vo-t) var(--vo-ease),opacity var(--vo-t) var(--vo-ease)}.vo-fold>*{overflow:clip;overflow-clip-margin:12px;min-height:0;min-width:0}.vo-fold.vo-shut{grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows var(--vo-t) var(--vo-ease),opacity var(--vo-t) var(--vo-ease),visibility 0s var(--vo-t)}@media (prefers-reduced-motion:reduce){.vo-shim{color:var(--vo-fg);background:none}.vo-stl .vo-spin,.vo-stl .vo-radar:after,.vo-stl .vo-think.vo-on,.vo-stl .vo-think.vo-on i,.vo-stl .vo-bars3 i{animation-duration:.01ms!important;animation-iteration-count:1!important}}\n"], dependencies: [{ kind: "component", type: VoIconComponent, selector: "vo-icon", inputs: ["name", "size"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }], encapsulation: i0.ViewEncapsulation.None }); }
124
+ }
125
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.14", ngImport: i0, type: StepLoaderComponent, decorators: [{
126
+ type: Component,
127
+ args: [{ selector: 'vo-step-loader', standalone: true, encapsulation: ViewEncapsulation.None, imports: [VoIconComponent, NgTemplateOutlet], template: `
128
+ <div data-vo="" class="vo-stl">
129
+ <button type="button" class="vo-stl-row" [attr.aria-expanded]="isOpen" (click)="toggle()">
130
+ <span class="vo-stl-g">
131
+ @if (allDone) {
132
+ <span style="color:var(--vo-ok);display:grid"><vo-icon name="ok"></vo-icon></span>
133
+ } @else {
134
+ <ng-container [ngTemplateOutlet]="glyph"></ng-container>
135
+ }
136
+ </span>
137
+ <span class="vo-stl-t">
138
+ <span class="vo-stl-lab" [class.vo-shim]="!allDone">{{ allDone ? doneLabel : steps[at]?.label }}</span>
139
+ </span>
140
+ <span class="vo-stl-n vo-num">{{ (allDone ? n : at + 1) }}/{{ n }}</span>
141
+ <vo-icon name="chev-d" size="xs" class="vo-stl-chev"></vo-icon>
142
+ </button>
143
+
144
+ <div class="vo-stl-track" role="progressbar" [attr.aria-valuemin]="0"
145
+ [attr.aria-valuemax]="n" [attr.aria-valuenow]="allDone ? n : at">
146
+ @for (s of steps; track $index) {
147
+ <i [class.vo-on]="allDone || $index < current"
148
+ [class.vo-run]="!allDone && $index === current"></i>
149
+ }
150
+ </div>
151
+
152
+ <div class="vo-fold vo-stl-fold" [class.vo-shut]="!isOpen" [attr.inert]="!isOpen ? '' : null"
153
+ [attr.aria-hidden]="!isOpen">
154
+ <div>
155
+ <ol class="vo-stl-list">
156
+ @for (s of steps; track $index) {
157
+ <li [class.vo-done]="allDone || $index < current"
158
+ [class.vo-run]="!allDone && $index === current">
159
+ <span class="vo-g">
160
+ @if (allDone || $index < current) {
161
+ <span style="color:var(--vo-ok);display:grid"><vo-icon name="check" size="xs"></vo-icon></span>
162
+ } @else if ($index === current) {
163
+ <ng-container [ngTemplateOutlet]="glyph"></ng-container>
164
+ } @else {
165
+ <span class="vo-dot" style="color:var(--vo-faint)" aria-hidden="true"></span>
166
+ }
167
+ </span>
168
+ {{ (allDone || $index < current) ? (s.done ?? s.label) : s.label }}
169
+ </li>
170
+ }
171
+ </ol>
172
+ </div>
173
+ </div>
174
+ </div>
175
+
176
+ <!-- the loader glyph for the chosen kind -->
177
+ <ng-template #glyph>
178
+ @switch (loader) {
179
+ @case ('dots') {
180
+ <span class="vo-think vo-on" aria-hidden="true"><i></i><i></i><i></i><i></i></span>
181
+ }
182
+ @case ('ring') {
183
+ <span class="vo-spin" aria-hidden="true"></span>
184
+ }
185
+ @case ('bars') {
186
+ <span class="vo-bars3" aria-hidden="true"><i></i><i></i><i></i></span>
187
+ }
188
+ @default {
189
+ <span class="vo-radar" aria-hidden="true"></span>
190
+ }
191
+ }
192
+ </ng-template>
193
+ `, styles: [".vo-stl{display:flex;flex-direction:column;align-items:center;gap:10px}.vo-stl-row{display:flex;align-items:center;gap:10px;background:var(--vo-surface);border-radius:var(--vo-r-pill);box-shadow:var(--vo-shadow);height:40px;padding:0 14px 0 13px;font-size:13.5px;min-width:250px;cursor:pointer;transition:box-shadow .3s}@media (hover:hover) and (pointer:fine){.vo-stl-row:hover{box-shadow:var(--vo-shadow-pop)}}.vo-stl-g{width:16px;display:grid;place-items:center;color:var(--vo-fg)}.vo-stl-t{flex:1;text-align:left}.vo-stl-n{color:var(--vo-muted);font-size:12.5px}.vo-stl-chev{color:var(--vo-muted);transition:transform .4s var(--vo-ease)}.vo-stl-row[aria-expanded=true] .vo-stl-chev{transform:rotate(180deg)}.vo-stl-track{display:flex;gap:var(--vo-s-1);width:250px}.vo-stl-track i{flex:1;height:3px;border-radius:2px;background:var(--vo-line);position:relative;overflow:hidden}.vo-stl-track i:after{content:\"\";position:absolute;inset:0;background:var(--vo-accent-mark,var(--vo-accent));transform:scaleX(0);transform-origin:left;transition:transform .9s var(--vo-ease)}.vo-stl-track i.vo-on:after{transform:scaleX(1)}.vo-stl-track i.vo-run:after{transform:scaleX(.45);transition-duration:2.2s}.vo-stl-fold{width:250px}.vo-stl-fold>div{margin-inline:-16px;padding-inline:var(--vo-s-4)}.vo-stl-list{list-style:none;margin:6px 0 18px;padding:6px;background:var(--vo-surface);border-radius:calc(14px * var(--vo-rk));box-shadow:var(--vo-shadow)}.vo-stl-list li{display:flex;align-items:center;gap:9px;padding:6px var(--vo-s-2);font-size:13px;color:var(--vo-muted)}.vo-stl-list li.vo-done{color:var(--vo-fg2)}.vo-stl-list li.vo-run{color:var(--vo-fg)}.vo-stl-list li .vo-g{width:14px;display:grid;place-items:center}.vo-bars3{display:inline-flex;gap:2px;align-items:center;height:12px}.vo-bars3 i{width:2.5px;height:100%;border-radius:2px;background:currentColor;animation:vo-b3 .9s var(--vo-ease-io) infinite}.vo-bars3 i:nth-child(2){animation-delay:.15s}.vo-bars3 i:nth-child(3){animation-delay:.3s}@keyframes vo-b3{0%,to{transform:scaleY(.35)}50%{transform:scaleY(1)}}.vo-num{font-variant-numeric:tabular-nums}.vo-dot{width:6px;height:6px;border-radius:50%;background:currentColor;flex:none;display:inline-block}.vo-spin{width:12px;height:12px;border-radius:50%;border:1.5px solid currentColor;border-right-color:transparent;animation:vo-rot .8s linear infinite;flex:none;display:inline-block}@keyframes vo-rot{to{transform:rotate(360deg)}}.vo-radar{position:relative;width:13px;height:13px;flex:none;display:inline-block}.vo-radar:before{content:\"\";position:absolute;inset:3.5px;border-radius:50%;background:currentColor}.vo-radar:after{content:\"\";position:absolute;inset:0;border-radius:50%;border:1.3px solid currentColor;border-right-color:transparent;animation:vo-rot .9s linear infinite}.vo-think{width:14px;height:14px;position:relative;flex:none;display:inline-block}.vo-think i{position:absolute;width:3.4px;height:3.4px;border-radius:50%;background:currentColor;left:50%;top:50%;margin:-1.7px}.vo-think i:nth-child(1){transform:translate(-3.6px,-3.6px)}.vo-think i:nth-child(2){transform:translate(3.6px,-3.6px)}.vo-think i:nth-child(3){transform:translate(3.6px,3.6px)}.vo-think i:nth-child(4){transform:translate(-3.6px,3.6px)}.vo-think.vo-on{animation:vo-thinkrot 1.6s var(--vo-ease-io) infinite}.vo-think.vo-on i{animation:vo-thinkpulse 1.6s var(--vo-ease-io) infinite}.vo-think.vo-on i:nth-child(2){animation-delay:.2s}.vo-think.vo-on i:nth-child(3){animation-delay:.4s}.vo-think.vo-on i:nth-child(4){animation-delay:.6s}@keyframes vo-thinkrot{0%{transform:rotate(0)}50%{transform:rotate(90deg)}to{transform:rotate(180deg)}}@keyframes vo-thinkpulse{0%,to{opacity:1}50%{opacity:.35}}.vo-shim{background:linear-gradient(90deg,var(--vo-fg) 0%,var(--vo-fg) 38%,var(--vo-faint) 50%,var(--vo-fg) 62%,var(--vo-fg) 100%);background-size:260% 100%;-webkit-background-clip:text;background-clip:text;color:transparent;animation:vo-shim 2.2s linear infinite}@keyframes vo-shim{0%{background-position:100% 0}to{background-position:-160% 0}}.vo-fold{display:grid;grid-template-rows:1fr;grid-template-columns:minmax(0,1fr);transition:grid-template-rows var(--vo-t) var(--vo-ease),opacity var(--vo-t) var(--vo-ease)}.vo-fold>*{overflow:clip;overflow-clip-margin:12px;min-height:0;min-width:0}.vo-fold.vo-shut{grid-template-rows:0fr;opacity:0;visibility:hidden;transition:grid-template-rows var(--vo-t) var(--vo-ease),opacity var(--vo-t) var(--vo-ease),visibility 0s var(--vo-t)}@media (prefers-reduced-motion:reduce){.vo-shim{color:var(--vo-fg);background:none}.vo-stl .vo-spin,.vo-stl .vo-radar:after,.vo-stl .vo-think.vo-on,.vo-stl .vo-think.vo-on i,.vo-stl .vo-bars3 i{animation-duration:.01ms!important;animation-iteration-count:1!important}}\n"] }]
194
+ }], propDecorators: { steps: [{
195
+ type: Input
196
+ }], current: [{
197
+ type: Input
198
+ }], loader: [{
199
+ type: Input
200
+ }], doneLabel: [{
201
+ type: Input
202
+ }], open: [{
203
+ type: Input
204
+ }], defaultOpen: [{
205
+ type: Input
206
+ }], openChange: [{
207
+ type: Output
208
+ }] } });
209
+ //# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcC1sb2FkZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vc3RlcC1sb2FkZXIvc3RlcC1sb2FkZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLHlEQUF5RDtBQUN6RCxFQUFFO0FBQ0YscUVBQXFFO0FBQ3JFLGdGQUFnRjtBQUNoRixpRkFBaUY7QUFFakYsT0FBTyxFQUNMLFNBQVMsRUFDVCxZQUFZLEVBQ1osS0FBSyxFQUVMLE1BQU0sRUFFTixpQkFBaUIsR0FDbEIsTUFBTSxlQUFlLENBQUM7QUFDdkIsT0FBTyxFQUFFLGdCQUFnQixFQUFFLE1BQU0saUJBQWlCLENBQUM7QUFDbkQsT0FBTyxFQUFFLGVBQWUsRUFBRSxNQUFNLHdCQUF3QixDQUFDOztBQXVGekQsTUFBTSxPQUFPLG1CQUFtQjtJQTFFaEM7UUEyRUUsdUJBQXVCO1FBQ2QsVUFBSyxHQUFXLEVBQUUsQ0FBQztRQUM1QixzRkFBc0Y7UUFDN0UsWUFBTyxHQUFHLENBQUMsQ0FBQztRQUNyQiwwQ0FBMEM7UUFDakMsV0FBTSxHQUFvQixPQUFPLENBQUM7UUFDM0MscUNBQXFDO1FBQzVCLGNBQVMsR0FBRyxrQkFBa0IsQ0FBQztRQUd4Qyw0Q0FBNEM7UUFDbkMsZ0JBQVcsR0FBRyxLQUFLLENBQUM7UUFFN0IsMkNBQTJDO1FBQ2pDLGVBQVUsR0FBRyxJQUFJLFlBQVksRUFBVyxDQUFD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8c3BhbiBjbGFzcz1cInZvLWdcIj5cbiAgICAgICAgICAgICAgICAgIEBpZiAoYWxsRG9uZSB8fCAkaW5kZXggPCBjdXJyZW50KSB7XG4gICAgICAgICAgICAgICAgICAgIDxzcGFuIHN0eWxlPVwiY29sb3I6dmFyKC0tdm8tb2spO2Rpc3BsYXk6Z3JpZFwiPjx2by1pY29uIG5hbWU9XCJjaGVja1wiIHNpemU9XCJ4c1wiPjwvdm8taWNvbj48L3NwYW4+XG4gICAgICAgICAgICAgICAgICB9IEBlbHNlIGlmICgkaW5kZXggPT09IGN1cnJlbnQpIHtcbiAgICAgICAgICAgICAgICAgICAgPG5nLWNvbnRhaW5lciBbbmdUZW1wbGF0ZU91dGxldF09XCJnbHlwaFwiPjwvbmctY29udGFpbmVyPlxuICAgICAgICAgICAgICAgICAgfSBAZWxzZSB7XG4gICAgICAgICAgICAgICAgICAgIDxzcGFuIGNsYXNzPVwidm8tZG90XCIgc3R5bGU9XCJjb2xvcjp2YXIoLS12by1mYWludClcIiBhcmlhLWhpZGRlbj1cInRydWVcIj48L3NwYW4+XG4gICAgICAgICAgICAgICAgICB9XG4gICAgICAgICAgICAgICAgPC9zcGFuPlxuICAgICAgICAgICAgICAgIHt7IChhbGxEb25lIHx8ICRpbmRleCA8IGN1cnJlbnQpID8gKHMuZG9uZSA/PyBzLmxhYmVsKSA6IHMubGFiZWwgfX1cbiAgICAgICAgICAgICAgPC9saT5cbiAgICAgICAgICAgIH1cbiAgICAgICAgICA8L29sPlxuICAgICAgICA8L2Rpdj5cbiAgICAgIDwvZGl2PlxuICAgIDwvZGl2PlxuXG4gICAgPCEtLSB0aGUgbG9hZGVyIGdseXBoIGZvciB0aGUgY2hvc2VuIGtpbmQgLS0+XG4gICAgPG5nLXRlbXBsYXRlICNnbHlwaD5cbiAgICAgIEBzd2l0Y2ggKGxvYWRlcikge1xuICAgICAgICBAY2FzZSAoJ2RvdHMnKSB7XG4gICAgICAgICAgPHNwYW4gY2xhc3M9XCJ2by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