@sixbell-telco/sdk 4.4.0 → 4.6.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.
- package/CHANGELOG.md +272 -985
- package/GLOSSARY.md +76 -0
- package/README.md +143 -1346
- package/banner.webp +0 -0
- package/components/badge/src/badge.component.d.ts +6 -1
- package/components/dropdown-menu/README.md +1 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar/dropdown-menu-bar.component.d.ts +2 -0
- package/components/dropdown-menu/bar/dropdown-menu-bar-sub-trigger/dropdown-menu-bar-sub-trigger.component.d.ts +9 -2
- package/components/dropdown-menu/bar/dropdown-menu-bar-trigger/dropdown-menu-bar-trigger.component.d.ts +6 -0
- package/components/dropdown-menu/context/dropdown-context-menu-trigger/dropdown-context-menu-trigger.component.d.ts +7 -0
- package/components/dropdown-menu/public-api.d.ts +1 -0
- package/components/dropdown-menu/src/directives/dropdown-menu-keyboard.directive.d.ts +54 -0
- package/components/dropdown-menu/src/dropdown-menu-sub-trigger/dropdown-menu-sub-trigger.component.d.ts +5 -0
- package/components/dropdown-menu/src/dropdown-menu-trigger/dropdown-menu-trigger.component.d.ts +15 -2
- package/components/forms/checkbox/src/checkbox.component.d.ts +12 -1
- package/components/status-illustration/README.md +38 -0
- package/components/status-illustration/index.d.ts +5 -0
- package/components/status-illustration/public-api.d.ts +1 -0
- package/components/status-illustration/src/status-illustration.component.d.ts +42 -0
- package/components/tab/directives/tab-content/tab-content.directive.d.ts +1 -1
- package/components/tree/README.md +11 -1
- package/components/tree/src/tree.component.d.ts +44 -5
- package/components/wizard/README.md +17 -0
- package/components/wizard/services/wizard.service.d.ts +9 -0
- package/components/wizard/wizard-indicator/wizard-indicator.component.d.ts +71 -0
- package/components/wizard/wizard-wrapper/wizard-wrapper.component.d.ts +24 -1
- package/directives/text/src/text.directive.d.ts +6 -2
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs +5 -5
- package/fesm2022/sixbell-telco-sdk-components-audio-player.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs +8 -2
- package/fesm2022/sixbell-telco-sdk-components-badge.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-card.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-data-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs +3 -3
- package/fesm2022/sixbell-telco-sdk-components-dialog.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs +92 -25
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-bar.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs +29 -3
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu-context.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs +271 -21
- package/fesm2022/sixbell-telco-sdk-components-dropdown-menu.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-dropdown.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-dual-list.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-file-upload.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs +14 -3
- package/fesm2022/sixbell-telco-sdk-components-forms-checkbox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-combobox.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-date-picker.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-form-error.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-input.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-forms-select.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs +15 -5
- package/fesm2022/sixbell-telco-sdk-components-forms-textarea.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-paginator.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-product-card.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-segmented-button.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-sonner-toaster.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-components-sonner.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-status-illustration.mjs +66 -0
- package/fesm2022/sixbell-telco-sdk-components-status-illustration.mjs.map +1 -0
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs +1 -0
- package/fesm2022/sixbell-telco-sdk-components-tab.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-table.mjs +4 -4
- package/fesm2022/sixbell-telco-sdk-components-table.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tooltip.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs +171 -51
- package/fesm2022/sixbell-telco-sdk-components-tree.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs +123 -356
- package/fesm2022/sixbell-telco-sdk-components-wizard.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs +4 -1
- package/fesm2022/sixbell-telco-sdk-directives-text.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs +2 -2
- package/fesm2022/sixbell-telco-sdk-directives-truncate.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-layouts.mjs +61 -17
- package/fesm2022/sixbell-telco-sdk-layouts.mjs.map +1 -1
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs +23 -4
- package/fesm2022/sixbell-telco-sdk-utils-theme.mjs.map +1 -1
- package/i18n/sdk/en.json +4 -1
- package/i18n/sdk/es.json +4 -1
- package/i18n/sdk/pt.json +4 -1
- package/layouts/README.md +24 -6
- package/layouts/public-api.d.ts +1 -1
- package/layouts/src/layout-account.d.ts +16 -0
- package/layouts/src/page-banner/page-banner.component.d.ts +37 -6
- package/layouts/src/user-menu/user-menu.component.d.ts +4 -2
- package/manifest.json +10943 -0
- package/package.json +50 -38
- package/schematics/lib/plan.cjs +179 -0
- package/schematics/lib/tokens.cjs +133 -0
- package/schematics/lib/workspace.cjs +118 -0
- package/schematics/manual-steps.json +90 -0
- package/schematics/migration.json +15 -0
- package/schematics/migrations/v4-0-0/assets.cjs +331 -0
- package/schematics/migrations/v4-0-0/canonical/enghouse_networks.json +360 -0
- package/schematics/migrations/v4-0-0/canonical/shell.json +25 -0
- package/schematics/migrations/v4-0-0/canonical/theme-assets.json +44 -0
- package/schematics/migrations/v4-0-0/canonical/themes.json +11 -0
- package/schematics/migrations/v4-0-0/index.cjs +96 -0
- package/schematics/migrations/v4-0-0/layout.cjs +269 -0
- package/schematics/migrations/v4-0-0/shell.cjs +1864 -0
- package/schematics/migrations/v4-6-0/index.cjs +394 -0
- package/src/_index.css +257 -26
- package/utils/theme/README.md +1 -1
- package/utils/theme/public-api.d.ts +1 -1
- package/utils/theme/src/models/theme.d.ts +10 -0
- package/utils/theme/src/theme-assets/theme-assets.service.d.ts +12 -1
- package/banner.png +0 -0
- package/components/wizard/wizard-marker/wizard-marker.component.d.ts +0 -85
- package/components/wizard/wizard-step/wizard-step.component.d.ts +0 -83
- package/components/wizard/wizard-sub-step/wizard-sub-step.component.d.ts +0 -95
package/src/_index.css
CHANGED
|
@@ -7,6 +7,8 @@
|
|
|
7
7
|
@plugin 'daisyui' {
|
|
8
8
|
exclude: rootscrollgutter, rootscrolllock, scrollbar;
|
|
9
9
|
themes: false;
|
|
10
|
+
/* No daisyUI version banner in every app build log; `npm ls daisyui` gives the version. */
|
|
11
|
+
logs: false;
|
|
10
12
|
}
|
|
11
13
|
|
|
12
14
|
@plugin 'daisyui/theme' {
|
|
@@ -74,8 +76,16 @@
|
|
|
74
76
|
--color-neutral-secondary-content: oklch(100% 0 0);
|
|
75
77
|
--color-neutral-tertiary: oklch(100% 0 0);
|
|
76
78
|
--color-neutral-tertiary-content: oklch(42% 0.018 260);
|
|
77
|
-
|
|
79
|
+
/* Text scale: base-content, then base-content-secondary (derived, see @layer base), then base-content-muted */
|
|
80
|
+
--color-base-content-muted: oklch(52% 0.012 255);
|
|
78
81
|
--color-backdrop: oklch(0% 0 0 / 0.42);
|
|
82
|
+
/* Classic page-banner veil behind the text: dark under white text over dark art, light under black text over light art */
|
|
83
|
+
--color-banner-scrim-dark: oklch(0% 0 0 / 0.25);
|
|
84
|
+
--color-banner-scrim-light: oklch(100% 0 0 / 0.25);
|
|
85
|
+
--color-banner-caption-dark: oklch(0% 0 0 / 0.62);
|
|
86
|
+
--color-banner-caption-light: oklch(100% 0 0 / 0.62);
|
|
87
|
+
--color-banner-caption-dark-content: oklch(100% 0 0);
|
|
88
|
+
--color-banner-caption-light-content: oklch(20% 0.015 260);
|
|
79
89
|
|
|
80
90
|
/* Shadow color tokens */
|
|
81
91
|
--color-shadow-primary: oklch(20% 0.01 260 / 0.12);
|
|
@@ -160,8 +170,16 @@
|
|
|
160
170
|
--color-neutral-secondary-content: oklch(100% 0 0);
|
|
161
171
|
--color-neutral-tertiary: oklch(30% 0.004 260);
|
|
162
172
|
--color-neutral-tertiary-content: oklch(94% 0.002 255);
|
|
163
|
-
|
|
173
|
+
/* Text scale: base-content, then base-content-secondary (derived, see @layer base), then base-content-muted */
|
|
174
|
+
--color-base-content-muted: oklch(68% 0.003 255);
|
|
164
175
|
--color-backdrop: oklch(0% 0 0 / 0.62);
|
|
176
|
+
/* Classic page-banner veil behind the text: dark under white text over dark art, light under black text over light art */
|
|
177
|
+
--color-banner-scrim-dark: oklch(0% 0 0 / 0.25);
|
|
178
|
+
--color-banner-scrim-light: oklch(100% 0 0 / 0.25);
|
|
179
|
+
--color-banner-caption-dark: oklch(0% 0 0 / 0.62);
|
|
180
|
+
--color-banner-caption-light: oklch(100% 0 0 / 0.62);
|
|
181
|
+
--color-banner-caption-dark-content: oklch(100% 0 0);
|
|
182
|
+
--color-banner-caption-light-content: oklch(20% 0.015 260);
|
|
165
183
|
|
|
166
184
|
/* Shadow color tokens */
|
|
167
185
|
--color-shadow-primary: oklch(0% 0 0 / 0.38);
|
|
@@ -195,6 +213,8 @@
|
|
|
195
213
|
--color-error-strong: var(--color-error-strong, color-mix(in oklab, var(--color-error) 40%, var(--color-base-content)));
|
|
196
214
|
--color-primary-light: var(--color-primary-light, color-mix(in oklch, var(--color-primary) 78%, oklch(100% 0 0)));
|
|
197
215
|
--color-primary-gradient: var(--color-primary-gradient, color-mix(in oklch, var(--color-primary) 90%, var(--color-base-content)));
|
|
216
|
+
/* Soft primary tint for a selected row on any surface (st-wizard current step) */
|
|
217
|
+
--color-primary-soft: var(--color-primary-soft, color-mix(in oklab, var(--color-primary) 10%, transparent));
|
|
198
218
|
--color-primary-gradient-content: var(--color-primary-gradient-content, oklch(100% 0 0));
|
|
199
219
|
--color-secondary-gradient: var(--color-secondary-gradient, color-mix(in oklch, var(--color-secondary) 90%, var(--color-base-content)));
|
|
200
220
|
--color-secondary-gradient-content: var(--color-secondary-gradient-content, oklch(100% 0 0));
|
|
@@ -208,8 +228,20 @@
|
|
|
208
228
|
--color-neutral-secondary-content: var(--color-neutral-secondary-content, oklch(100% 0 0));
|
|
209
229
|
--color-neutral-tertiary: var(--color-neutral-tertiary, oklch(100% 0 0));
|
|
210
230
|
--color-neutral-tertiary-content: var(--color-neutral-tertiary-content, oklch(42% 0.018 260));
|
|
211
|
-
|
|
231
|
+
/* Text scale. secondary defaults to base-content at 80% (set per theme root in @layer base); a theme may set a solid value. */
|
|
232
|
+
--color-base-content-secondary: var(--color-base-content-secondary, color-mix(in oklab, var(--color-base-content) 80%, transparent));
|
|
233
|
+
--color-base-content-muted: var(--color-base-content-muted, var(--color-base-placeholder, oklch(52% 0.012 255)));
|
|
234
|
+
/* deprecated: use --color-base-content-muted (text-base-content-muted); input placeholders keep this name until the next major */
|
|
235
|
+
--color-base-placeholder: var(--color-base-content-muted, var(--color-base-placeholder, oklch(52% 0.012 255)));
|
|
212
236
|
--color-backdrop: var(--color-backdrop, oklch(0% 0 0 / 0.42));
|
|
237
|
+
/* Classic page-banner scrim behind white (dark) or black (light) text over art; tuned by the banner text contrast contract */
|
|
238
|
+
--color-banner-scrim-dark: var(--color-banner-scrim-dark, oklch(0% 0 0 / 0.25));
|
|
239
|
+
--color-banner-scrim-light: var(--color-banner-scrim-light, oklch(100% 0 0 / 0.25));
|
|
240
|
+
/* Classic page-banner caption (default text surface): the fade at the bottom-left corner over dark / light art, and the text on it */
|
|
241
|
+
--color-banner-caption-dark: var(--color-banner-caption-dark, oklch(0% 0 0 / 0.62));
|
|
242
|
+
--color-banner-caption-light: var(--color-banner-caption-light, oklch(100% 0 0 / 0.62));
|
|
243
|
+
--color-banner-caption-dark-content: var(--color-banner-caption-dark-content, oklch(100% 0 0));
|
|
244
|
+
--color-banner-caption-light-content: var(--color-banner-caption-light-content, oklch(20% 0.015 260));
|
|
213
245
|
--color-metrics-increase: var(--color-metrics-increase, oklch(68% 0.16 145));
|
|
214
246
|
--color-metrics-decrease: var(--color-metrics-decrease, oklch(55% 0.2 25));
|
|
215
247
|
--color-metrics-neutral: var(--color-metrics-neutral, oklch(42% 0.018 260));
|
|
@@ -225,19 +257,40 @@
|
|
|
225
257
|
--color-shadow-backdrop: var(--color-shadow-backdrop, oklch(0% 0 0 / 0.24));
|
|
226
258
|
}
|
|
227
259
|
|
|
260
|
+
/* Plain `border` / `divide-*` and the page font follow the theme, not Tailwind's 1px and system font. */
|
|
261
|
+
@theme inline {
|
|
262
|
+
--default-border-width: var(--border);
|
|
263
|
+
--default-font-family: var(--font-body);
|
|
264
|
+
/*
|
|
265
|
+
* Deprecated aliases are inlined: the utility carries the same value as its role utility, so the
|
|
266
|
+
* theme variables resolve on the element that uses it, not once at :root.
|
|
267
|
+
*/
|
|
268
|
+
/* deprecated: use --font-body (font-body) or --font-heading (font-heading); removed in the next major */
|
|
269
|
+
--font-nunito-sans: var(--font-body);
|
|
270
|
+
/* deprecated: use --ease-out-back (ease-out-back); removed in the next major */
|
|
271
|
+
--ease-ease-out-back: var(--ease-out-back);
|
|
272
|
+
/* deprecated: use --ease-in-out-back (ease-in-out-back); removed in the next major */
|
|
273
|
+
--ease-ease-in-and-out-back: var(--ease-in-out-back);
|
|
274
|
+
/* deprecated: use --shadow-overlay (shadow-overlay); removed in the next major */
|
|
275
|
+
--shadow-main: 0px 4px 6px -1px var(--color-shadow-primary), 0px 2px 4px -2px var(--color-shadow-primary);
|
|
276
|
+
/* deprecated: use --shadow-floating (shadow-floating); removed in the next major */
|
|
277
|
+
--shadow-main-lg: 0 4px 12px var(--color-shadow-primary);
|
|
278
|
+
/* deprecated: use --shadow-modal (shadow-modal); removed in the next major */
|
|
279
|
+
--shadow-backdrop: 0px 25px 50px -12px var(--color-shadow-backdrop);
|
|
280
|
+
}
|
|
281
|
+
|
|
228
282
|
@theme {
|
|
229
283
|
/* Non-color design tokens (kept for convenience) */
|
|
230
|
-
--font-nunito-sans: Nunito Sans, sans-serif;
|
|
231
284
|
--font-heading: Nunito Sans, sans-serif;
|
|
232
285
|
--font-body: Nunito Sans, sans-serif;
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
--shadow-
|
|
237
|
-
--shadow-
|
|
286
|
+
/* Shadows by role: raised (in-flow, selected), overlay (dropdown, select, popover), floating (toast, drag preview), modal (dialog, sticky footer) */
|
|
287
|
+
--shadow-raised: 0 1px 3px 0 var(--color-shadow-primary), 0 1px 2px -1px var(--color-shadow-primary);
|
|
288
|
+
--shadow-overlay: 0px 4px 6px -1px var(--color-shadow-primary), 0px 2px 4px -2px var(--color-shadow-primary);
|
|
289
|
+
--shadow-floating: 0 4px 12px var(--color-shadow-primary);
|
|
290
|
+
--shadow-modal: 0px 25px 50px -12px var(--color-shadow-backdrop);
|
|
238
291
|
--font-weight-inherit: inherit;
|
|
239
|
-
--ease-
|
|
240
|
-
--ease-
|
|
292
|
+
--ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
293
|
+
--ease-in-out-back: cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
|
241
294
|
--animate-slide-in: slideIn 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
242
295
|
--animate-slide-out: slideOut 0.8s cubic-bezier(0.34, 1.56, 0.64, 1);
|
|
243
296
|
--animate-toast-slide-out: toastSlideOut 0.8s cubic-bezier(0.68, -0.55, 0.27, 1.55);
|
|
@@ -292,12 +345,23 @@
|
|
|
292
345
|
* the default theme is emitted on :where(:root), which every page matches.
|
|
293
346
|
*/
|
|
294
347
|
:where(:root, [data-theme]) {
|
|
348
|
+
--color-base-content-secondary: color-mix(in oklab, var(--color-base-content) 80%, transparent);
|
|
295
349
|
--color-info-strong: color-mix(in oklab, var(--color-info) 40%, var(--color-base-content));
|
|
296
350
|
--color-success-strong: color-mix(in oklab, var(--color-success) 40%, var(--color-base-content));
|
|
297
351
|
--color-warning-strong: color-mix(in oklab, var(--color-warning) 40%, var(--color-base-content));
|
|
298
352
|
--color-error-strong: color-mix(in oklab, var(--color-error) 40%, var(--color-base-content));
|
|
299
353
|
}
|
|
300
354
|
|
|
355
|
+
/* Deprecated alias of the muted token, resolved on every theme root (document and runtime [data-theme]) */
|
|
356
|
+
:where(:root, [data-theme]) {
|
|
357
|
+
--color-base-placeholder: var(--color-base-content-muted);
|
|
358
|
+
}
|
|
359
|
+
|
|
360
|
+
/* The page font follows the theme on whichever element carries it: html, or body for a runtime theme */
|
|
361
|
+
:where(html, [data-theme]) {
|
|
362
|
+
font-family: var(--font-body);
|
|
363
|
+
}
|
|
364
|
+
|
|
301
365
|
:root:not([data-theme]),
|
|
302
366
|
[data-theme='enghouse_networks__light'] {
|
|
303
367
|
--color-info-strong: oklch(50% 0.12 235);
|
|
@@ -540,6 +604,7 @@
|
|
|
540
604
|
|
|
541
605
|
calendar-month {
|
|
542
606
|
--color-accent: var(--color-primary);
|
|
607
|
+
/* cally reads its own --color-accent / --color-text-on-accent here; they are not kit theme tokens. */
|
|
543
608
|
--color-text-on-accent: var(--color-primary-content);
|
|
544
609
|
|
|
545
610
|
@apply font-body;
|
|
@@ -1027,8 +1092,10 @@
|
|
|
1027
1092
|
* Ported from shadcn@4.21.4 (dist/tailwind.css), https://ui.shadcn.com/docs/utils/scroll-fade
|
|
1028
1093
|
* and https://ui.shadcn.com/docs/utils/shimmer. MIT License, Copyright (c) 2023 shadcn;
|
|
1029
1094
|
* full license text in THIRD_PARTY_NOTICES.md (shipped next to this file).
|
|
1030
|
-
* Kit adaptations: mask stops use oklch(0% 0 0) instead of hex; the
|
|
1031
|
-
*
|
|
1095
|
+
* Kit adaptations: mask stops use oklch(0% 0 0) instead of hex; the shimmer highlight is a currentColor
|
|
1096
|
+
* fade (20% alpha) in both color schemes, with no dark-scheme brightening: the kit's dark base-content is
|
|
1097
|
+
* already near white (l 0.94), so shadcn's "l + 0.4" highlight clamps to white and the sweep vanishes,
|
|
1098
|
+
* while a fade shows on any text color and background; var() fallbacks and
|
|
1032
1099
|
* scoped resets keep both utilities working in shadow roots where @property may not register; RTL
|
|
1033
1100
|
* also matches :dir(rtl) so it crosses shadow boundaries. Animated vars stay registered for
|
|
1034
1101
|
* smooth interpolation where @property is honored.
|
|
@@ -1405,13 +1472,6 @@
|
|
|
1405
1472
|
/* Same as shadcn's oklch(from currentColor l c h / calc(alpha * 0.2)) without relative color syntax */
|
|
1406
1473
|
--_highlight: var(--shimmer-color, color-mix(in oklch, currentColor 20%, transparent));
|
|
1407
1474
|
|
|
1408
|
-
@supports (color: light-dark(red, red)) and (color: oklch(from red l c h)) {
|
|
1409
|
-
--_highlight: var(
|
|
1410
|
-
--shimmer-color,
|
|
1411
|
-
light-dark(color-mix(in oklch, currentColor 20%, transparent), oklch(from currentColor max(0.8, calc(l + 0.4)) c h / calc(alpha + 0.4)))
|
|
1412
|
-
);
|
|
1413
|
-
}
|
|
1414
|
-
|
|
1415
1475
|
background-image: var(
|
|
1416
1476
|
--shimmer-image,
|
|
1417
1477
|
linear-gradient(
|
|
@@ -1492,18 +1552,19 @@
|
|
|
1492
1552
|
|
|
1493
1553
|
/*
|
|
1494
1554
|
* Page background of the modern layout (st-app-layout): a dark brand band behind the navbar and the
|
|
1495
|
-
* page-banner title, fading into base-100. The ink is primary
|
|
1496
|
-
* and primary-gradient-content keep their contrast in every scheme
|
|
1497
|
-
*
|
|
1555
|
+
* page-banner title, fading into base-100. The ink is primary (or a theme's --color-modern-gradient-ink)
|
|
1556
|
+
* with a lightness ceiling, so white art and primary-gradient-content keep their contrast in every scheme
|
|
1557
|
+
* and theme. The dark band holds down to 16rem, below the page-banner subtitle
|
|
1558
|
+
* (scripts/banner-text-contrast.contract.test.mjs).
|
|
1498
1559
|
*/
|
|
1499
1560
|
@utility bg-modern-gradient {
|
|
1500
|
-
--st-modern-gradient-ink: var(--color-modern-gradient-ink,
|
|
1561
|
+
--st-modern-gradient-ink: oklch(from var(--color-modern-gradient-ink, var(--color-primary)) min(l, 0.4) c h);
|
|
1501
1562
|
background-color: var(--color-base-100);
|
|
1502
1563
|
background-image: linear-gradient(
|
|
1503
1564
|
to bottom,
|
|
1504
1565
|
var(--st-modern-gradient-ink) 0,
|
|
1505
|
-
color-mix(in oklch, var(--st-modern-gradient-ink) 85%, var(--color-primary))
|
|
1506
|
-
color-mix(in oklch, var(--color-primary) 18%, var(--color-base-100))
|
|
1566
|
+
color-mix(in oklch, var(--st-modern-gradient-ink) 85%, var(--color-primary)) 16rem,
|
|
1567
|
+
color-mix(in oklch, var(--color-primary) 18%, var(--color-base-100)) 26rem,
|
|
1507
1568
|
var(--color-base-100) 38rem
|
|
1508
1569
|
);
|
|
1509
1570
|
|
|
@@ -1523,15 +1584,97 @@
|
|
|
1523
1584
|
@layer components {
|
|
1524
1585
|
[data-st-navbar] {
|
|
1525
1586
|
--st-navbar-page-content: var(--color-base-content);
|
|
1587
|
+
--st-navbar-page-content-secondary: var(--color-base-content-secondary);
|
|
1526
1588
|
}
|
|
1527
1589
|
|
|
1590
|
+
/* base-content-secondary derives from base-content where it is declared, so every scope that reassigns base-content re-points it. */
|
|
1528
1591
|
[data-st-navbar-band] {
|
|
1529
1592
|
--color-base-content: var(--color-primary-gradient-content);
|
|
1593
|
+
--color-base-content-secondary: color-mix(in oklab, var(--color-primary-gradient-content) 80%, transparent);
|
|
1594
|
+
color: var(--color-base-content);
|
|
1595
|
+
}
|
|
1596
|
+
|
|
1597
|
+
/* The modern st-page-banner title column sits on the same band. */
|
|
1598
|
+
[data-st-banner-band-text] {
|
|
1599
|
+
--color-base-content: var(--color-primary-gradient-content);
|
|
1600
|
+
--color-base-content-secondary: color-mix(in oklab, var(--color-primary-gradient-content) 80%, transparent);
|
|
1601
|
+
color: var(--color-base-content);
|
|
1602
|
+
}
|
|
1603
|
+
|
|
1604
|
+
/*
|
|
1605
|
+
* Classic st-page-banner over art: a veil matched to the image tone, solid across the text column
|
|
1606
|
+
* (36rem) and fading out to the right, with white text over dark art and black text over light art.
|
|
1607
|
+
* The scrim tokens are tuned so every catalog banner meets AA (scripts/banner-text-contrast.contract.test.mjs).
|
|
1608
|
+
*/
|
|
1609
|
+
[data-st-banner-scrim] {
|
|
1610
|
+
background-image: linear-gradient(to right, var(--st-banner-scrim) 0, var(--st-banner-scrim) 36rem, transparent 100%);
|
|
1611
|
+
}
|
|
1612
|
+
|
|
1613
|
+
[data-st-banner-scrim='dark'] {
|
|
1614
|
+
--st-banner-scrim: var(--color-banner-scrim-dark, oklch(0% 0 0 / 0.25));
|
|
1615
|
+
}
|
|
1616
|
+
|
|
1617
|
+
[data-st-banner-scrim='light'] {
|
|
1618
|
+
--st-banner-scrim: var(--color-banner-scrim-light, oklch(100% 0 0 / 0.25));
|
|
1619
|
+
}
|
|
1620
|
+
|
|
1621
|
+
/*
|
|
1622
|
+
* Default classic surface: a caption fade rising from the bottom-left corner like a photo caption,
|
|
1623
|
+
* matched to the image tone: a dark fade under white text over dark (or unknown) art, a light fade
|
|
1624
|
+
* under near-black text over light art. Sized in px so its shape is the same at any banner width; the
|
|
1625
|
+
* eased stops (alpha 0.62, 0.55, 0.44, 0.30, 0.15, 0.05, 0) leave no visible edge. Every catalog banner
|
|
1626
|
+
* on the caption keeps AA (scripts/banner-text-contrast.contract.test.mjs).
|
|
1627
|
+
*/
|
|
1628
|
+
[data-st-banner-caption] {
|
|
1629
|
+
background-image: radial-gradient(
|
|
1630
|
+
ellipse 460px 170px at 0 100%,
|
|
1631
|
+
var(--st-banner-caption) 0%,
|
|
1632
|
+
color-mix(in oklab, var(--st-banner-caption) 88.7%, transparent) 15%,
|
|
1633
|
+
color-mix(in oklab, var(--st-banner-caption) 71%, transparent) 30%,
|
|
1634
|
+
color-mix(in oklab, var(--st-banner-caption) 48.4%, transparent) 45%,
|
|
1635
|
+
color-mix(in oklab, var(--st-banner-caption) 24.2%, transparent) 60%,
|
|
1636
|
+
color-mix(in oklab, var(--st-banner-caption) 8.1%, transparent) 72%,
|
|
1637
|
+
transparent 80%
|
|
1638
|
+
);
|
|
1639
|
+
}
|
|
1640
|
+
|
|
1641
|
+
[data-st-banner-caption='dark'] {
|
|
1642
|
+
--st-banner-caption: var(--color-banner-caption-dark, oklch(0% 0 0 / 0.62));
|
|
1643
|
+
}
|
|
1644
|
+
|
|
1645
|
+
[data-st-banner-caption='light'] {
|
|
1646
|
+
--st-banner-caption: var(--color-banner-caption-light, oklch(100% 0 0 / 0.62));
|
|
1647
|
+
}
|
|
1648
|
+
|
|
1649
|
+
[data-st-banner-text='caption-dark'] {
|
|
1650
|
+
--color-base-content: var(--color-banner-caption-dark-content, oklch(100% 0 0));
|
|
1651
|
+
--color-base-content-secondary: color-mix(in oklab, var(--color-banner-caption-dark-content, oklch(100% 0 0)) 86%, transparent);
|
|
1652
|
+
color: var(--color-base-content);
|
|
1653
|
+
text-shadow: 0 1px 2px oklch(0% 0 0 / 0.35);
|
|
1654
|
+
}
|
|
1655
|
+
|
|
1656
|
+
[data-st-banner-text='caption-light'] {
|
|
1657
|
+
--color-base-content: var(--color-banner-caption-light-content, oklch(20% 0.015 260));
|
|
1658
|
+
--color-base-content-secondary: color-mix(in oklab, var(--color-banner-caption-light-content, oklch(20% 0.015 260)) 86%, transparent);
|
|
1659
|
+
color: var(--color-base-content);
|
|
1660
|
+
text-shadow: 0 1px 2px oklch(100% 0 0 / 0.35);
|
|
1661
|
+
}
|
|
1662
|
+
|
|
1663
|
+
[data-st-banner-text='dark'] {
|
|
1664
|
+
--color-base-content: oklch(100% 0 0);
|
|
1665
|
+
--color-base-content-secondary: color-mix(in oklab, oklch(100% 0 0) 80%, transparent);
|
|
1666
|
+
color: var(--color-base-content);
|
|
1667
|
+
}
|
|
1668
|
+
|
|
1669
|
+
[data-st-banner-text='light'] {
|
|
1670
|
+
--color-base-content: oklch(0% 0 0);
|
|
1671
|
+
--color-base-content-secondary: color-mix(in oklab, oklch(0% 0 0) 80%, transparent);
|
|
1530
1672
|
color: var(--color-base-content);
|
|
1531
1673
|
}
|
|
1532
1674
|
|
|
1533
1675
|
[data-st-navbar-band] :where(.dropdown-content, [popover], dialog) {
|
|
1534
1676
|
--color-base-content: var(--st-navbar-page-content);
|
|
1677
|
+
--color-base-content-secondary: var(--st-navbar-page-content-secondary);
|
|
1535
1678
|
color: var(--color-base-content);
|
|
1536
1679
|
}
|
|
1537
1680
|
}
|
|
@@ -1699,3 +1842,91 @@ st-side-menu [data-st-menu-group][data-state='closing'] {
|
|
|
1699
1842
|
--_popover-scale: 1;
|
|
1700
1843
|
}
|
|
1701
1844
|
}
|
|
1845
|
+
|
|
1846
|
+
/*
|
|
1847
|
+
* st-wizard step indicator motion: one orchestrated moment per step change.
|
|
1848
|
+
* The check draws itself while its circle pops (ease-out-back), the new current step's ring grows in with
|
|
1849
|
+
* one halo, the state line rises in, the active segment sweeps once. Durations stay within 150-450ms.
|
|
1850
|
+
* Easing values mirror the kit roles: ease-out-back = cubic-bezier(0.34, 1.56, 0.64, 1).
|
|
1851
|
+
* Reduced motion: the global backstop plus motion-reduce:animate-none keep every state static and legible.
|
|
1852
|
+
*/
|
|
1853
|
+
@theme {
|
|
1854
|
+
--animate-wizard-pop: wizard-pop 380ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
|
1855
|
+
--animate-wizard-ring: wizard-ring 340ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
|
1856
|
+
--animate-wizard-halo: wizard-halo 450ms cubic-bezier(0, 0, 0.2, 1) 120ms both;
|
|
1857
|
+
--animate-wizard-check: wizard-check 300ms cubic-bezier(0.65, 0, 0.35, 1) 80ms both;
|
|
1858
|
+
--animate-wizard-rise: wizard-rise 260ms cubic-bezier(0, 0, 0.2, 1) both;
|
|
1859
|
+
--animate-wizard-roll: wizard-roll 320ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
|
1860
|
+
--animate-wizard-roll-back: wizard-roll-back 320ms cubic-bezier(0.34, 1.56, 0.64, 1) both;
|
|
1861
|
+
--animate-wizard-sweep: wizard-sweep 450ms cubic-bezier(0.4, 0, 0.2, 1) 200ms both;
|
|
1862
|
+
|
|
1863
|
+
@keyframes wizard-pop {
|
|
1864
|
+
0% {
|
|
1865
|
+
transform: scale(0.9);
|
|
1866
|
+
}
|
|
1867
|
+
60% {
|
|
1868
|
+
transform: scale(1.06);
|
|
1869
|
+
}
|
|
1870
|
+
100% {
|
|
1871
|
+
transform: scale(1);
|
|
1872
|
+
}
|
|
1873
|
+
}
|
|
1874
|
+
@keyframes wizard-ring {
|
|
1875
|
+
from {
|
|
1876
|
+
transform: scale(0.82);
|
|
1877
|
+
border-color: var(--color-base-300);
|
|
1878
|
+
}
|
|
1879
|
+
}
|
|
1880
|
+
@keyframes wizard-halo {
|
|
1881
|
+
from {
|
|
1882
|
+
box-shadow: 0 0 0 0 color-mix(in oklab, var(--color-primary) 40%, transparent);
|
|
1883
|
+
}
|
|
1884
|
+
to {
|
|
1885
|
+
box-shadow: 0 0 0 8px color-mix(in oklab, var(--color-primary) 0%, transparent);
|
|
1886
|
+
}
|
|
1887
|
+
}
|
|
1888
|
+
@keyframes wizard-check {
|
|
1889
|
+
from {
|
|
1890
|
+
stroke-dashoffset: 1;
|
|
1891
|
+
}
|
|
1892
|
+
to {
|
|
1893
|
+
stroke-dashoffset: 0;
|
|
1894
|
+
}
|
|
1895
|
+
}
|
|
1896
|
+
@keyframes wizard-rise {
|
|
1897
|
+
from {
|
|
1898
|
+
opacity: 0;
|
|
1899
|
+
transform: translateY(4px);
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1902
|
+
@keyframes wizard-roll {
|
|
1903
|
+
from {
|
|
1904
|
+
opacity: 0;
|
|
1905
|
+
transform: translateY(60%);
|
|
1906
|
+
}
|
|
1907
|
+
}
|
|
1908
|
+
@keyframes wizard-roll-back {
|
|
1909
|
+
from {
|
|
1910
|
+
opacity: 0;
|
|
1911
|
+
transform: translateY(-60%);
|
|
1912
|
+
}
|
|
1913
|
+
}
|
|
1914
|
+
@keyframes wizard-sweep {
|
|
1915
|
+
from {
|
|
1916
|
+
transform: translateX(-100%);
|
|
1917
|
+
}
|
|
1918
|
+
to {
|
|
1919
|
+
transform: translateX(100%);
|
|
1920
|
+
}
|
|
1921
|
+
}
|
|
1922
|
+
}
|
|
1923
|
+
|
|
1924
|
+
/* The highlight that sweeps the active st-wizard segment once (theme-driven, no opacity utility) */
|
|
1925
|
+
@utility wizard-sweep-highlight {
|
|
1926
|
+
background-image: linear-gradient(90deg, transparent, color-mix(in oklab, var(--color-primary-content) 55%, transparent), transparent);
|
|
1927
|
+
}
|
|
1928
|
+
|
|
1929
|
+
/* Self-drawing check: the path carries pathLength="1" */
|
|
1930
|
+
@utility wizard-check-path {
|
|
1931
|
+
stroke-dasharray: 1;
|
|
1932
|
+
}
|
package/utils/theme/README.md
CHANGED
|
@@ -203,7 +203,7 @@ Theme file rules:
|
|
|
203
203
|
- `variables` are grouped by category and injected as CSS custom properties with a `data-theme` selector.
|
|
204
204
|
- `others` is required and intended for app-specific tokens not provided by the SDK.
|
|
205
205
|
- `assets` are optional but should have both light and dark variants for each asset.
|
|
206
|
-
- An asset may declare `tone: { "light": "light" | "dark", "dark": "light" | "dark" }`: the luminance of each variant's image, so content drawn over it (such as the `st-page-banner` title) can pick a readable color. Both variants are required when `tone` is present.
|
|
206
|
+
- An asset may declare `tone: { "light": "light" | "dark", "dark": "light" | "dark" }`: the luminance of each variant's image, so content drawn over it (such as the `st-page-banner` title) can pick a readable color. Both variants are required when `tone` is present. The `st-page-banner` caption uses it to pick a dark fade with white text or a light fade with near-black text (dark when no tone is declared), and its opt-in scrim needs it. An asset may also declare `textSurface: "caption" | "scrim"`, the text surface it prefers (read with `getAssetTextSurface()`); an app's `bannerTextSurface` input overrides it. When you declare a tone, the light and dark files should differ (art tuned to each scheme); when they are the same image, declare the same tone for both, as the shipped Enghouse banners do. Adding or changing a banner image in a catalog of this repo means regenerating the contrast fixture (`python3 scripts/banner-luminance-fixture.py`) so `npm run theme:test` can check the text over it.
|
|
207
207
|
|
|
208
208
|
```json
|
|
209
209
|
{
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
export { DEFAULT_BASE_THEME, DEFAULT_SCHEME, FALLBACK_RUNTIME_THEME_CONFIG, THEME_SCHEMA_VERSION, VALID_SCHEMES } from './src/constants';
|
|
2
|
-
export type { FontDefinition, FontFaceDefinition, FontFaceFormat, FontWeightRange, ResolvedThemeScheme, RuntimeThemeConfig, RuntimeThemeConfigFile, ThemeAsset, ThemeAssetTone, ThemeAssetTones, ThemeAssets, ThemeOverlay, ThemeOverlayVariables, ThemeScheme, ThemeStyleDefinition, ThemeVariablesByCategory, ThemeVariants, } from './src/models/theme';
|
|
2
|
+
export type { FontDefinition, FontFaceDefinition, FontFaceFormat, FontWeightRange, ResolvedThemeScheme, RuntimeThemeConfig, RuntimeThemeConfigFile, ThemeAsset, ThemeAssetTextSurface, ThemeAssetTone, ThemeAssetTones, ThemeAssets, ThemeOverlay, ThemeOverlayVariables, ThemeScheme, ThemeStyleDefinition, ThemeVariablesByCategory, ThemeVariants, } from './src/models/theme';
|
|
3
3
|
export { THEME_OVERLAY_CORE_TOKENS, THEME_OVERLAY_OVERRIDABLE_PREFIXES, THEME_OVERLAY_SCHEMA_VERSION, applyThemeOverlays, mergeThemeOverlay, themeOverlayAppliesTo, validateThemeOverlay, validateThemeOverlayFor, } from './src/overlay/theme-overlay';
|
|
4
4
|
export { provideRuntimeTheme } from './src/providers/theme.provider';
|
|
5
5
|
export { SCHEME_FAVICON_CONFIG, SchemeFaviconService, provideSchemeFavicon } from './src/scheme-favicon/scheme-favicon';
|
|
@@ -60,6 +60,11 @@ export interface ThemeAssetTones {
|
|
|
60
60
|
light: ThemeAssetTone;
|
|
61
61
|
dark: ThemeAssetTone;
|
|
62
62
|
}
|
|
63
|
+
/**
|
|
64
|
+
* Surface a component should put its text on over an asset image, when the theme prefers one: `caption` (a fade
|
|
65
|
+
* from the bottom-left corner, matched to the tone) or `scrim` (a veil across the text column, matched to the tone).
|
|
66
|
+
*/
|
|
67
|
+
export type ThemeAssetTextSurface = 'caption' | 'scrim';
|
|
63
68
|
/**
|
|
64
69
|
* Asset definition for a theme
|
|
65
70
|
* Contains a single asset with light/dark variants
|
|
@@ -77,6 +82,11 @@ export interface AssetDefinition {
|
|
|
77
82
|
* Read it with `ThemeAssetsService.getAssetTone()`.
|
|
78
83
|
*/
|
|
79
84
|
tone?: ThemeAssetTones;
|
|
85
|
+
/**
|
|
86
|
+
* Preferred text surface over this image (for example the `st-page-banner` title), for art the default
|
|
87
|
+
* surface does not suit. An app input still overrides it. Read it with `ThemeAssetsService.getAssetTextSurface()`.
|
|
88
|
+
*/
|
|
89
|
+
textSurface?: ThemeAssetTextSurface;
|
|
80
90
|
}
|
|
81
91
|
/**
|
|
82
92
|
* Asset definitions for a theme
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { ResolvedThemeScheme, RuntimeThemeConfig, ThemeAsset, ThemeAssets, ThemeAssetTone } from '../models/theme';
|
|
1
|
+
import { ResolvedThemeScheme, RuntimeThemeConfig, ThemeAsset, ThemeAssets, ThemeAssetTextSurface, ThemeAssetTone } from '../models/theme';
|
|
2
2
|
import * as i0 from "@angular/core";
|
|
3
3
|
export declare class ThemeAssetsService {
|
|
4
4
|
/**
|
|
@@ -163,6 +163,17 @@ export declare class ThemeAssetsService {
|
|
|
163
163
|
* // Returns: 'dark'
|
|
164
164
|
*/
|
|
165
165
|
getAssetTone(themeName: string, assetKey: string, scheme: ResolvedThemeScheme): ThemeAssetTone | null;
|
|
166
|
+
/**
|
|
167
|
+
* Get the text surface the theme prefers over an asset (`textSurface` in the catalog)
|
|
168
|
+
* Read from the config that serves the URL for that scheme, like `getAssetTone()`. Returns null when the
|
|
169
|
+
* theme declares none or an unknown value.
|
|
170
|
+
*
|
|
171
|
+
* @example
|
|
172
|
+
* // { name: 'banner', light: '...', dark: '...', tone: { ... }, textSurface: 'scrim' }
|
|
173
|
+
* getAssetTextSurface('enghouse_networks', 'banner', 'light')
|
|
174
|
+
* // Returns: 'scrim'
|
|
175
|
+
*/
|
|
176
|
+
getAssetTextSurface(themeName: string, assetKey: string, scheme: ResolvedThemeScheme): ThemeAssetTextSurface | null;
|
|
166
177
|
/**
|
|
167
178
|
* Internal: Resolve the declared tone of an asset variant from a specific config
|
|
168
179
|
* Only for an asset that config can serve; ignores values other than `light` and `dark`.
|
package/banner.png
DELETED
|
Binary file
|
|
@@ -1,85 +0,0 @@
|
|
|
1
|
-
import { TranslateService } from '@ngx-translate/core';
|
|
2
|
-
import { WizardService, WizardStepStatus } from '../services/wizard.service';
|
|
3
|
-
import * as i0 from "@angular/core";
|
|
4
|
-
/**
|
|
5
|
-
* Component that displays a status badge for wizard steps with translated labels.
|
|
6
|
-
*
|
|
7
|
-
* @remarks
|
|
8
|
-
* Shows visual indicators for different step states with automatic translations.
|
|
9
|
-
* Supports three status types with corresponding styling:
|
|
10
|
-
* - Completed (green background)
|
|
11
|
-
* - In progress (neutral border)
|
|
12
|
-
* - Pending (dimmed appearance)
|
|
13
|
-
*
|
|
14
|
-
* Uses NGX-Translate for localization of status labels.
|
|
15
|
-
*
|
|
16
|
-
* @example
|
|
17
|
-
* ```html
|
|
18
|
-
* <!-- Completed state -->
|
|
19
|
-
* <st-wizard-marker [status]="'completed'"></st-wizard-marker>
|
|
20
|
-
*
|
|
21
|
-
* <!-- In progress state -->
|
|
22
|
-
* <st-wizard-marker [status]="'in progress'"></st-wizard-marker>
|
|
23
|
-
* ```
|
|
24
|
-
*/
|
|
25
|
-
export declare class WizardMarkerComponent {
|
|
26
|
-
/** @internal Translation service instance */
|
|
27
|
-
translateService: TranslateService;
|
|
28
|
-
/** @internal Wizard state service */
|
|
29
|
-
wizardService: WizardService;
|
|
30
|
-
/**
|
|
31
|
-
* Current status of the associated wizard step
|
|
32
|
-
* @remarks Determines badge styling and label
|
|
33
|
-
*/
|
|
34
|
-
status: import("@angular/core").InputSignal<WizardStepStatus>;
|
|
35
|
-
/**
|
|
36
|
-
* Computed translated status message
|
|
37
|
-
* @internal
|
|
38
|
-
*/
|
|
39
|
-
statusMarkerMessage: import("@angular/core").Signal<string>;
|
|
40
|
-
/**
|
|
41
|
-
* Computed CSS classes for the status badge
|
|
42
|
-
* @internal
|
|
43
|
-
*/
|
|
44
|
-
statusMarkerClasses: import("@angular/core").Signal<string>;
|
|
45
|
-
/** @internal Signal holding translated "completed" text */
|
|
46
|
-
completed: import("@angular/core").WritableSignal<string>;
|
|
47
|
-
/** @internal Signal holding translated "in progress" text */
|
|
48
|
-
inProgress: import("@angular/core").WritableSignal<string>;
|
|
49
|
-
/** @internal Signal holding translated "pending" text */
|
|
50
|
-
pending: import("@angular/core").WritableSignal<string>;
|
|
51
|
-
/** @internal Signal holding translated "error" text */
|
|
52
|
-
error: import("@angular/core").WritableSignal<string>;
|
|
53
|
-
/** @internal Base CSS classes for the marker */
|
|
54
|
-
private baseClasses;
|
|
55
|
-
/** @internal Status-to-class mapping */
|
|
56
|
-
private statusClassMap;
|
|
57
|
-
/**
|
|
58
|
-
* Initializes component translations
|
|
59
|
-
* @remarks Loads translated status labels using NGX-Translate
|
|
60
|
-
*/
|
|
61
|
-
private readonly translationEffect;
|
|
62
|
-
/**
|
|
63
|
-
* Gets the appropriate translated status message
|
|
64
|
-
* @returns {string} Translated status label
|
|
65
|
-
* @internal
|
|
66
|
-
*/
|
|
67
|
-
private getStatusMarkerMessage;
|
|
68
|
-
/**
|
|
69
|
-
* Computes CSS classes based on current status
|
|
70
|
-
* @returns {string} Combined Tailwind classes
|
|
71
|
-
* @internal
|
|
72
|
-
*/
|
|
73
|
-
private getStepStatusMarkerClasses;
|
|
74
|
-
/**
|
|
75
|
-
* Initializes translations for status labels
|
|
76
|
-
* @remarks Uses translation keys:
|
|
77
|
-
* - 'sdk.wizard.wizardMarker.completed'
|
|
78
|
-
* - 'sdk.wizard.wizardMarker.inProgress'
|
|
79
|
-
* - 'sdk.wizard.wizardMarker.pending'
|
|
80
|
-
* @internal
|
|
81
|
-
*/
|
|
82
|
-
private initTranslatations;
|
|
83
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WizardMarkerComponent, never>;
|
|
84
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WizardMarkerComponent, "st-wizard-marker", never, { "status": { "alias": "status"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
85
|
-
}
|
|
@@ -1,83 +0,0 @@
|
|
|
1
|
-
import { WizardService, WizardStepStatus } from '../services/wizard.service';
|
|
2
|
-
import * as i0 from "@angular/core";
|
|
3
|
-
/**
|
|
4
|
-
* Visual indicator component for individual wizard steps with status-dependent styling and animations.
|
|
5
|
-
*
|
|
6
|
-
* @remarks
|
|
7
|
-
* Displays step progress through dynamic border and background colors. Supports three states:
|
|
8
|
-
* - Completed (checkmark icon)
|
|
9
|
-
* - In progress (highlighted border)
|
|
10
|
-
* - Pending (dimmed appearance)
|
|
11
|
-
*
|
|
12
|
-
* Uses Angular signals for optimized change detection and smooth transitions.
|
|
13
|
-
*
|
|
14
|
-
* @example
|
|
15
|
-
* ```html
|
|
16
|
-
* <!-- Completed step with custom icon -->
|
|
17
|
-
* <st-wizard-step
|
|
18
|
-
* [stepIndex]="1"
|
|
19
|
-
* [status]="'completed'"
|
|
20
|
-
* icon="user-profile"
|
|
21
|
-
* ></st-wizard-step>
|
|
22
|
-
*
|
|
23
|
-
* <!-- Current active step -->
|
|
24
|
-
* <st-wizard-step
|
|
25
|
-
* [stepIndex]="2"
|
|
26
|
-
* [status]="'in progress'"
|
|
27
|
-
* ></st-wizard-step>
|
|
28
|
-
* ```
|
|
29
|
-
*/
|
|
30
|
-
export declare class WizardStepComponent {
|
|
31
|
-
/** @internal Injected wizard state service */
|
|
32
|
-
wizardService: WizardService;
|
|
33
|
-
/**
|
|
34
|
-
* Optional custom icon name for completed state
|
|
35
|
-
* @default undefined (uses checkmark)
|
|
36
|
-
*/
|
|
37
|
-
icon: import("@angular/core").InputSignal<string | undefined>;
|
|
38
|
-
/**
|
|
39
|
-
* Current progress status of the step
|
|
40
|
-
* @remarks Determines visual state and transitions
|
|
41
|
-
*/
|
|
42
|
-
status: import("@angular/core").InputSignal<WizardStepStatus>;
|
|
43
|
-
/**
|
|
44
|
-
* Position in wizard sequence (0-based index)
|
|
45
|
-
* @remarks Used for current step comparison
|
|
46
|
-
*/
|
|
47
|
-
stepIndex: import("@angular/core").InputSignal<number>;
|
|
48
|
-
/** @internal Predefined checkmark icon */
|
|
49
|
-
iconCheck: string;
|
|
50
|
-
/**
|
|
51
|
-
* Computed CSS classes for step containers
|
|
52
|
-
* @returns {Object} Classes for outer/inner elements
|
|
53
|
-
* @remarks Applies:
|
|
54
|
-
* - 300ms color transitions
|
|
55
|
-
* - 300ms delay for pending states
|
|
56
|
-
* - Primary colors for active/completed states
|
|
57
|
-
* @internal
|
|
58
|
-
*/
|
|
59
|
-
stepClasses: import("@angular/core").Signal<{
|
|
60
|
-
outerClasses: string;
|
|
61
|
-
innerClasses: string;
|
|
62
|
-
}>;
|
|
63
|
-
/**
|
|
64
|
-
* Step number visibility classes
|
|
65
|
-
* @returns {string} Tailwind classes with fade animation
|
|
66
|
-
* @remarks
|
|
67
|
-
* - Hidden when completed
|
|
68
|
-
* - 350ms fade-in delay for smooth transitions
|
|
69
|
-
* @internal
|
|
70
|
-
*/
|
|
71
|
-
stepNumberClasses: import("@angular/core").Signal<string>;
|
|
72
|
-
/**
|
|
73
|
-
* Completion icon visibility classes
|
|
74
|
-
* @returns {string} Tailwind classes with fade animation
|
|
75
|
-
* @remarks
|
|
76
|
-
* - Only visible when completed
|
|
77
|
-
* - 350ms fade-in delay for smooth transition
|
|
78
|
-
* @internal
|
|
79
|
-
*/
|
|
80
|
-
stepIconClasses: import("@angular/core").Signal<string>;
|
|
81
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<WizardStepComponent, never>;
|
|
82
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<WizardStepComponent, "st-wizard-step", never, { "icon": { "alias": "icon"; "required": false; "isSignal": true; }; "status": { "alias": "status"; "required": true; "isSignal": true; }; "stepIndex": { "alias": "stepIndex"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
83
|
-
}
|