@slotted/angular 0.1.0-beta.34 → 0.1.0-beta.36
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/docs/accordion.json +2 -0
- package/docs/accordion.md +1 -1
- package/docs/avatar.json +1 -0
- package/docs/avatar.md +1 -1
- package/docs/badge.json +1 -0
- package/docs/badge.md +1 -1
- package/docs/button.json +59 -2
- package/docs/button.md +8 -1
- package/docs/calendar.json +59 -0
- package/docs/calendar.md +8 -1
- package/docs/card.json +7 -0
- package/docs/card.md +1 -0
- package/docs/chart.json +32 -4
- package/docs/chart.md +9 -5
- package/docs/checkbox.json +8 -3
- package/docs/checkbox.md +3 -3
- package/docs/collapsible.json +33 -1
- package/docs/collapsible.md +5 -1
- package/docs/command-palette.json +3 -1
- package/docs/command-palette.md +1 -1
- package/docs/dashboard-grid.json +13 -4
- package/docs/dashboard-grid.md +3 -2
- package/docs/description-list.json +9 -1
- package/docs/description-list.md +2 -1
- package/docs/entity-picker.json +4 -2
- package/docs/entity-picker.md +2 -2
- package/docs/field-group.json +1 -1
- package/docs/field-group.md +1 -1
- package/docs/floating-panel.json +203 -0
- package/docs/floating-panel.md +97 -0
- package/docs/guidelines/index.md +2 -0
- package/docs/guidelines/own-elements.md +20 -0
- package/docs/index.md +3 -1
- package/docs/inline-message.json +1 -0
- package/docs/inline-message.md +1 -1
- package/docs/kbd.json +1 -0
- package/docs/kbd.md +1 -1
- package/docs/link.json +1 -1
- package/docs/link.md +1 -1
- package/docs/list-item.json +31 -8
- package/docs/list-item.md +19 -6
- package/docs/list.json +14 -0
- package/docs/list.md +3 -1
- package/docs/listbox.json +13 -0
- package/docs/listbox.md +2 -1
- package/docs/markdown.json +1 -1
- package/docs/markdown.md +1 -1
- package/docs/message.json +17 -2
- package/docs/message.md +4 -2
- package/docs/meter.json +248 -0
- package/docs/meter.md +121 -0
- package/docs/page.json +21 -0
- package/docs/page.md +3 -1
- package/docs/prompt-composer.json +1 -1
- package/docs/rating.json +1 -0
- package/docs/rating.md +1 -1
- package/docs/section.json +28 -3
- package/docs/section.md +6 -3
- package/docs/segmented-control.json +5 -4
- package/docs/segmented-control.md +3 -3
- package/docs/side-navigation.json +8 -0
- package/docs/side-navigation.md +2 -1
- package/docs/skills/build-own-element/SKILL.md +42 -2
- package/docs/slider.json +8 -0
- package/docs/slider.md +2 -1
- package/docs/sparkline.json +1 -1
- package/docs/sparkline.md +1 -1
- package/docs/stat-card.json +7 -0
- package/docs/stat-card.md +1 -0
- package/docs/switch.json +16 -0
- package/docs/switch.md +3 -1
- package/docs/table.json +39 -1
- package/docs/table.md +6 -1
- package/docs/tag.json +1 -0
- package/docs/tag.md +1 -1
- package/docs/tokens.md +13 -1
- package/docs/toolbar.json +2 -1
- package/docs/toolbar.md +1 -1
- package/docs/top-navigation.json +1 -0
- package/docs/top-navigation.md +1 -1
- package/docs/typography.json +15 -0
- package/docs/typography.md +3 -1
- package/fesm2022/slotted-angular-accordion.mjs +2 -2
- package/fesm2022/slotted-angular-accordion.mjs.map +1 -1
- package/fesm2022/slotted-angular-avatar.mjs +2 -2
- package/fesm2022/slotted-angular-avatar.mjs.map +1 -1
- package/fesm2022/slotted-angular-badge.mjs +2 -2
- package/fesm2022/slotted-angular-badge.mjs.map +1 -1
- package/fesm2022/slotted-angular-button.mjs +87 -23
- package/fesm2022/slotted-angular-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-calendar.mjs +114 -23
- package/fesm2022/slotted-angular-calendar.mjs.map +1 -1
- package/fesm2022/slotted-angular-card.mjs +15 -5
- package/fesm2022/slotted-angular-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-cascader.mjs +5 -5
- package/fesm2022/slotted-angular-cascader.mjs.map +1 -1
- package/fesm2022/slotted-angular-chart.mjs +47 -5
- package/fesm2022/slotted-angular-chart.mjs.map +1 -1
- package/fesm2022/slotted-angular-checkbox.mjs +2 -2
- package/fesm2022/slotted-angular-checkbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-collapsible.mjs +69 -8
- package/fesm2022/slotted-angular-collapsible.mjs.map +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs +1 -1
- package/fesm2022/slotted-angular-column-manager.mjs.map +1 -1
- package/fesm2022/slotted-angular-combobox.mjs +2 -2
- package/fesm2022/slotted-angular-combobox.mjs.map +1 -1
- package/fesm2022/slotted-angular-command-palette.mjs +11 -2
- package/fesm2022/slotted-angular-command-palette.mjs.map +1 -1
- package/fesm2022/slotted-angular-dashboard-grid.mjs +19 -5
- package/fesm2022/slotted-angular-dashboard-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-grid.mjs +40 -15
- package/fesm2022/slotted-angular-data-grid.mjs.map +1 -1
- package/fesm2022/slotted-angular-data-list.mjs +2 -2
- package/fesm2022/slotted-angular-data-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs +1 -1
- package/fesm2022/slotted-angular-date-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs +1 -1
- package/fesm2022/slotted-angular-date-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs +1 -1
- package/fesm2022/slotted-angular-datetime-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs +1 -1
- package/fesm2022/slotted-angular-datetime-range-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-description-list.mjs +13 -6
- package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs +1 -1
- package/fesm2022/slotted-angular-detail-panel.mjs.map +1 -1
- package/fesm2022/slotted-angular-entity-picker.mjs +14 -2
- package/fesm2022/slotted-angular-entity-picker.mjs.map +1 -1
- package/fesm2022/slotted-angular-field-group.mjs +2 -2
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-filter-bar.mjs +4 -4
- package/fesm2022/slotted-angular-filter-bar.mjs.map +1 -1
- package/fesm2022/slotted-angular-floating-panel.mjs +257 -0
- package/fesm2022/slotted-angular-floating-panel.mjs.map +1 -0
- package/fesm2022/slotted-angular-import-export-center.mjs +1 -1
- package/fesm2022/slotted-angular-import-export-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-inline-message.mjs +2 -2
- package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-kbd.mjs +4 -4
- package/fesm2022/slotted-angular-kbd.mjs.map +1 -1
- package/fesm2022/slotted-angular-list-item.mjs +41 -6
- package/fesm2022/slotted-angular-list-item.mjs.map +1 -1
- package/fesm2022/slotted-angular-list.mjs +20 -4
- package/fesm2022/slotted-angular-list.mjs.map +1 -1
- package/fesm2022/slotted-angular-listbox.mjs +63 -6
- package/fesm2022/slotted-angular-listbox.mjs.map +1 -1
- package/fesm2022/slotted-angular-markdown.mjs +1 -1
- package/fesm2022/slotted-angular-markdown.mjs.map +1 -1
- package/fesm2022/slotted-angular-message.mjs +78 -36
- package/fesm2022/slotted-angular-message.mjs.map +1 -1
- package/fesm2022/slotted-angular-meter.mjs +108 -0
- package/fesm2022/slotted-angular-meter.mjs.map +1 -0
- package/fesm2022/slotted-angular-multi-select.mjs +2 -2
- package/fesm2022/slotted-angular-multi-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs +1 -1
- package/fesm2022/slotted-angular-notification-center.mjs.map +1 -1
- package/fesm2022/slotted-angular-page.mjs +53 -6
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-prompt-composer.mjs +24 -6
- package/fesm2022/slotted-angular-prompt-composer.mjs.map +1 -1
- package/fesm2022/slotted-angular-rating.mjs +6 -6
- package/fesm2022/slotted-angular-rating.mjs.map +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs +1 -1
- package/fesm2022/slotted-angular-saved-views.mjs.map +1 -1
- package/fesm2022/slotted-angular-section.mjs +23 -6
- package/fesm2022/slotted-angular-section.mjs.map +1 -1
- package/fesm2022/slotted-angular-segmented-control.mjs +29 -7
- package/fesm2022/slotted-angular-segmented-control.mjs.map +1 -1
- package/fesm2022/slotted-angular-select.mjs +42 -18
- package/fesm2022/slotted-angular-select.mjs.map +1 -1
- package/fesm2022/slotted-angular-side-navigation.mjs +29 -7
- package/fesm2022/slotted-angular-side-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-slider.mjs +26 -16
- package/fesm2022/slotted-angular-slider.mjs.map +1 -1
- package/fesm2022/slotted-angular-split-button.mjs +4 -4
- package/fesm2022/slotted-angular-split-button.mjs.map +1 -1
- package/fesm2022/slotted-angular-stat-card.mjs +82 -28
- package/fesm2022/slotted-angular-stat-card.mjs.map +1 -1
- package/fesm2022/slotted-angular-status-indicator.mjs +2 -2
- package/fesm2022/slotted-angular-status-indicator.mjs.map +1 -1
- package/fesm2022/slotted-angular-switch.mjs +14 -4
- package/fesm2022/slotted-angular-switch.mjs.map +1 -1
- package/fesm2022/slotted-angular-table.mjs +76 -15
- package/fesm2022/slotted-angular-table.mjs.map +1 -1
- package/fesm2022/slotted-angular-tag.mjs +2 -2
- package/fesm2022/slotted-angular-tag.mjs.map +1 -1
- package/fesm2022/slotted-angular-tags-input.mjs +2 -2
- package/fesm2022/slotted-angular-tags-input.mjs.map +1 -1
- package/fesm2022/slotted-angular-toolbar.mjs +2 -2
- package/fesm2022/slotted-angular-toolbar.mjs.map +1 -1
- package/fesm2022/slotted-angular-tooltip.mjs +2 -2
- package/fesm2022/slotted-angular-tooltip.mjs.map +1 -1
- package/fesm2022/slotted-angular-top-navigation.mjs +2 -2
- package/fesm2022/slotted-angular-top-navigation.mjs.map +1 -1
- package/fesm2022/slotted-angular-tour.mjs +1 -1
- package/fesm2022/slotted-angular-tour.mjs.map +1 -1
- package/fesm2022/slotted-angular-transfer.mjs +1 -1
- package/fesm2022/slotted-angular-transfer.mjs.map +1 -1
- package/fesm2022/slotted-angular-typography.mjs +31 -6
- package/fesm2022/slotted-angular-typography.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +1 -1
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +11 -3
- package/types/slotted-angular-button.d.ts +57 -5
- package/types/slotted-angular-button.d.ts.map +1 -1
- package/types/slotted-angular-calendar.d.ts +62 -5
- package/types/slotted-angular-calendar.d.ts.map +1 -1
- package/types/slotted-angular-card.d.ts +7 -1
- package/types/slotted-angular-card.d.ts.map +1 -1
- package/types/slotted-angular-chart.d.ts +10 -2
- package/types/slotted-angular-chart.d.ts.map +1 -1
- package/types/slotted-angular-checkbox.d.ts +3 -1
- package/types/slotted-angular-checkbox.d.ts.map +1 -1
- package/types/slotted-angular-collapsible.d.ts +29 -3
- package/types/slotted-angular-collapsible.d.ts.map +1 -1
- package/types/slotted-angular-command-palette.d.ts.map +1 -1
- package/types/slotted-angular-dashboard-grid.d.ts +9 -1
- package/types/slotted-angular-dashboard-grid.d.ts.map +1 -1
- package/types/slotted-angular-data-grid.d.ts +5 -1
- package/types/slotted-angular-data-grid.d.ts.map +1 -1
- package/types/slotted-angular-description-list.d.ts +11 -3
- package/types/slotted-angular-description-list.d.ts.map +1 -1
- package/types/slotted-angular-entity-picker.d.ts +1 -0
- package/types/slotted-angular-entity-picker.d.ts.map +1 -1
- package/types/slotted-angular-floating-panel.d.ts +82 -0
- package/types/slotted-angular-floating-panel.d.ts.map +1 -0
- package/types/slotted-angular-list-item.d.ts +33 -6
- package/types/slotted-angular-list-item.d.ts.map +1 -1
- package/types/slotted-angular-list.d.ts +45 -29
- package/types/slotted-angular-list.d.ts.map +1 -1
- package/types/slotted-angular-listbox.d.ts +7 -1
- package/types/slotted-angular-listbox.d.ts.map +1 -1
- package/types/slotted-angular-message.d.ts +17 -3
- package/types/slotted-angular-message.d.ts.map +1 -1
- package/types/slotted-angular-meter.d.ts +67 -0
- package/types/slotted-angular-meter.d.ts.map +1 -0
- package/types/slotted-angular-page.d.ts +33 -10
- package/types/slotted-angular-page.d.ts.map +1 -1
- package/types/slotted-angular-prompt-composer.d.ts +2 -0
- package/types/slotted-angular-prompt-composer.d.ts.map +1 -1
- package/types/slotted-angular-section.d.ts +18 -3
- package/types/slotted-angular-section.d.ts.map +1 -1
- package/types/slotted-angular-segmented-control.d.ts +8 -2
- package/types/slotted-angular-segmented-control.d.ts.map +1 -1
- package/types/slotted-angular-select.d.ts.map +1 -1
- package/types/slotted-angular-side-navigation.d.ts +14 -2
- package/types/slotted-angular-side-navigation.d.ts.map +1 -1
- package/types/slotted-angular-slider.d.ts +7 -1
- package/types/slotted-angular-slider.d.ts.map +1 -1
- package/types/slotted-angular-stat-card.d.ts +20 -2
- package/types/slotted-angular-stat-card.d.ts.map +1 -1
- package/types/slotted-angular-switch.d.ts +16 -2
- package/types/slotted-angular-switch.d.ts.map +1 -1
- package/types/slotted-angular-table.d.ts +32 -3
- package/types/slotted-angular-table.d.ts.map +1 -1
- package/types/slotted-angular-typography.d.ts +21 -2
- package/types/slotted-angular-typography.d.ts.map +1 -1
|
@@ -1,3 +1,4 @@
|
|
|
1
|
+
import { textBoxValues } from '@slotted/core/text';
|
|
1
2
|
import * as i0 from '@angular/core';
|
|
2
3
|
import { inject, isDevMode, Directive, input, ElementRef, computed, ViewEncapsulation, ChangeDetectionStrategy, Component } from '@angular/core';
|
|
3
4
|
|
|
@@ -90,6 +91,14 @@ class SlHeading {
|
|
|
90
91
|
...(ngDevMode ? [{ debugName: "weight" }] : /* istanbul ignore next */ []));
|
|
91
92
|
wrap = input('balance', /* @ts-ignore */
|
|
92
93
|
...(ngDevMode ? [{ debugName: "wrap" }] : /* istanbul ignore next */ []));
|
|
94
|
+
/**
|
|
95
|
+
* Takes the half-leading off the start, the end or both edges of the box, so
|
|
96
|
+
* the heading shares a top edge, a bottom edge and an optical center with an
|
|
97
|
+
* element beside it. The edge defaults to the theme's
|
|
98
|
+
* `--slotted-text-box-edge` (`cap alphabetic`).
|
|
99
|
+
*/
|
|
100
|
+
textBox = input(/* @ts-ignore */
|
|
101
|
+
...(ngDevMode ? [undefined, { debugName: "textBox" }] : /* istanbul ignore next */ []));
|
|
93
102
|
element = inject(ElementRef).nativeElement;
|
|
94
103
|
section = inject(SlHeadingLevel, { optional: true });
|
|
95
104
|
/** The rank of the element the consumer wrote, which the tag already states. */
|
|
@@ -100,6 +109,8 @@ class SlHeading {
|
|
|
100
109
|
...(ngDevMode ? [{ debugName: "toneAttribute" }] : /* istanbul ignore next */ []));
|
|
101
110
|
lines = computed(() => truncatedLines(this.truncate()), /* @ts-ignore */
|
|
102
111
|
...(ngDevMode ? [{ debugName: "lines" }] : /* istanbul ignore next */ []));
|
|
112
|
+
box = computed(() => textBoxValues(this.textBox()), /* @ts-ignore */
|
|
113
|
+
...(ngDevMode ? [{ debugName: "box" }] : /* istanbul ignore next */ []));
|
|
103
114
|
constructor() {
|
|
104
115
|
const ambient = this.section?.level ?? 1;
|
|
105
116
|
if (isDevMode() && this.level > ambient + 1) {
|
|
@@ -107,7 +118,7 @@ class SlHeading {
|
|
|
107
118
|
}
|
|
108
119
|
}
|
|
109
120
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlHeading, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
110
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlHeading, isStandalone: true, selector: "h1[slHeading],h2[slHeading],h3[slHeading],h4[slHeading],h5[slHeading],h6[slHeading]", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, numeric: { classPropertyName: "numeric", publicName: "numeric", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, transform: { classPropertyName: "transform", publicName: "transform", isSignal: true, isRequired: false, transformFunction: null }, truncate: { classPropertyName: "truncate", publicName: "truncate", isSignal: true, isRequired: false, transformFunction: null }, weight: { classPropertyName: "weight", publicName: "weight", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "typography", "data-ui-typography": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.data-size": "resolvedSize()", "attr.data-weight": "weight()", "attr.data-tone": "toneAttribute()", "attr.data-align": "align() ?? null", "attr.data-wrap": "wrap()", "attr.data-transform": "transform() ?? null", "attr.data-numeric": "numeric() ?? null", "attr.data-truncate": "lines()", "style.--slotted-typography-lines": "lines()" } }, exportAs: ["slHeading"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@layer slotted.components{[data-ui-typography]{font-family:var( --slotted-typography-font-family, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--slotted-font-size-md, .875rem);font-weight:var(--slotted-font-weight-regular, 400);line-height:var(--slotted-line-height-md, 1.5);margin:0;overflow-wrap:anywhere}[data-ui-typography]:is(h1,h2,h3,h4,h5,h6){font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) )}[data-ui-typography][data-size=xs]{font-size:var(--slotted-font-size-xs, .75rem);line-height:var(--slotted-line-height-xs, 1.4)}[data-ui-typography][data-size=sm]{font-size:var(--slotted-font-size-sm, .8125rem);line-height:var(--slotted-line-height-sm, 1.45)}[data-ui-typography][data-size=md]{font-size:var(--slotted-font-size-md, .875rem);line-height:var(--slotted-line-height-md, 1.5)}[data-ui-typography][data-size=lg]{font-size:var(--slotted-font-size-lg, 1rem);line-height:var(--slotted-line-height-lg, 1.5)}[data-ui-typography][data-size=xl]{font-size:var(--slotted-font-size-xl, 1.125rem);line-height:var(--slotted-line-height-xl, 1.45)}[data-ui-typography][data-size=\"2xl\"]{font-size:var(--slotted-font-size-2xl, 1.25rem);line-height:var(--slotted-line-height-2xl, 1.4)}[data-ui-typography][data-size=\"3xl\"]{font-size:var(--slotted-font-size-3xl, 1.5rem);line-height:var(--slotted-line-height-3xl, 1.3)}[data-ui-typography][data-weight=regular]{font-weight:var(--slotted-font-weight-regular, 400)}[data-ui-typography][data-weight=medium]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui-typography][data-weight=semibold]{font-weight:var(--slotted-font-weight-semibold, 600)}[data-ui-typography][data-tone=default]{color:var(--slotted-text, CanvasText)}[data-ui-typography][data-tone=muted]{color:var(--slotted-text-muted, GrayText)}[data-ui-typography][data-tone=accent]{color:var(--slotted-tone-accent-text, LinkText)}[data-ui-typography][data-tone=success]{color:var(--slotted-tone-success-text, CanvasText)}[data-ui-typography][data-tone=info]{color:var(--slotted-tone-info-text, CanvasText)}[data-ui-typography][data-tone=warning]{color:var(--slotted-tone-warning-text, CanvasText)}[data-ui-typography][data-tone=danger]{color:var(--slotted-tone-danger-text, CanvasText)}[data-ui-typography][data-tone=inverse]{color:var(--slotted-text-inverse, Canvas)}[data-ui-typography][data-align]{display:block}[data-ui-typography][data-align=start]{text-align:start}[data-ui-typography][data-align=center]{text-align:center}[data-ui-typography][data-align=end]{text-align:end}[data-ui-typography][data-wrap=normal]{text-wrap:wrap;white-space:normal}[data-ui-typography][data-wrap=nowrap]{white-space:nowrap}[data-ui-typography][data-wrap=balance]{text-wrap:balance}[data-ui-typography][data-wrap=pretty]{text-wrap:pretty}[data-ui-typography][data-numeric=normal]{font-variant-numeric:normal}[data-ui-typography][data-numeric=tabular]{font-variant-numeric:tabular-nums}[data-ui-typography][data-transform=none]{text-transform:none}[data-ui-typography][data-transform=capitalize]{text-transform:capitalize}[data-ui-typography][data-transform=uppercase]{letter-spacing:var(--slotted-typography-uppercase-tracking, .06em);text-transform:uppercase}[data-ui-typography]:lang(ar),[data-ui-typography]:lang(fa),[data-ui-typography]:lang(ur){letter-spacing:normal}[data-ui-typography][data-truncate]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--slotted-typography-lines, 1);line-clamp:var(--slotted-typography-lines, 1);min-inline-size:0;overflow:hidden}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
121
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlHeading, isStandalone: true, selector: "h1[slHeading],h2[slHeading],h3[slHeading],h4[slHeading],h5[slHeading],h6[slHeading]", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, numeric: { classPropertyName: "numeric", publicName: "numeric", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, transform: { classPropertyName: "transform", publicName: "transform", isSignal: true, isRequired: false, transformFunction: null }, truncate: { classPropertyName: "truncate", publicName: "truncate", isSignal: true, isRequired: false, transformFunction: null }, weight: { classPropertyName: "weight", publicName: "weight", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, textBox: { classPropertyName: "textBox", publicName: "textBox", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "typography", "data-ui-typography": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.data-size": "resolvedSize()", "attr.data-weight": "weight()", "attr.data-tone": "toneAttribute()", "attr.data-align": "align() ?? null", "attr.data-wrap": "wrap()", "attr.data-transform": "transform() ?? null", "attr.data-numeric": "numeric() ?? null", "attr.data-truncate": "lines()", "style.--slotted-typography-lines": "lines()", "attr.data-text-box": "box().trim", "style.--_text-box-edge": "box().edge" } }, exportAs: ["slHeading"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@layer slotted.components{[data-ui-typography]{font-family:var( --slotted-typography-font-family, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--slotted-font-size-md, .875rem);font-weight:var(--slotted-font-weight-regular, 400);line-height:var(--slotted-line-height-md, 1.5);margin:0;overflow-wrap:anywhere}[data-ui-typography]:is(h1,h2,h3,h4,h5,h6){font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) )}[data-ui-typography][data-size=xs]{font-size:var(--slotted-font-size-xs, .75rem);line-height:var(--slotted-line-height-xs, 1.4)}[data-ui-typography][data-size=sm]{font-size:var(--slotted-font-size-sm, .8125rem);line-height:var(--slotted-line-height-sm, 1.45)}[data-ui-typography][data-size=md]{font-size:var(--slotted-font-size-md, .875rem);line-height:var(--slotted-line-height-md, 1.5)}[data-ui-typography][data-size=lg]{font-size:var(--slotted-font-size-lg, 1rem);line-height:var(--slotted-line-height-lg, 1.5)}[data-ui-typography][data-size=xl]{font-size:var(--slotted-font-size-xl, 1.125rem);line-height:var(--slotted-line-height-xl, 1.45)}[data-ui-typography][data-size=\"2xl\"]{font-size:var(--slotted-font-size-2xl, 1.25rem);line-height:var(--slotted-line-height-2xl, 1.4)}[data-ui-typography][data-size=\"3xl\"]{font-size:var(--slotted-font-size-3xl, 1.5rem);line-height:var(--slotted-line-height-3xl, 1.3)}[data-ui-typography][data-weight=regular]{font-weight:var(--slotted-font-weight-regular, 400)}[data-ui-typography][data-weight=medium]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui-typography][data-weight=semibold]{font-weight:var(--slotted-font-weight-semibold, 600)}[data-ui-typography][data-tone=default]{color:var(--slotted-text, CanvasText)}[data-ui-typography][data-tone=muted]{color:var(--slotted-text-muted, GrayText)}[data-ui-typography][data-tone=accent]{color:var(--slotted-tone-accent-text, LinkText)}[data-ui-typography][data-tone=success]{color:var(--slotted-tone-success-text, CanvasText)}[data-ui-typography][data-tone=info]{color:var(--slotted-tone-info-text, CanvasText)}[data-ui-typography][data-tone=warning]{color:var(--slotted-tone-warning-text, CanvasText)}[data-ui-typography][data-tone=danger]{color:var(--slotted-tone-danger-text, CanvasText)}[data-ui-typography][data-tone=inverse]{color:var(--slotted-text-inverse, Canvas)}[data-ui-typography][data-align]{display:block}[data-ui-typography][data-align=start]{text-align:start}[data-ui-typography][data-align=center]{text-align:center}[data-ui-typography][data-align=end]{text-align:end}[data-ui-typography][data-wrap=normal]{text-wrap:wrap;white-space:normal}[data-ui-typography][data-wrap=nowrap]{white-space:nowrap}[data-ui-typography][data-wrap=balance]{text-wrap:balance}[data-ui-typography][data-wrap=pretty]{text-wrap:pretty}[data-ui-typography][data-numeric=normal]{font-variant-numeric:normal}[data-ui-typography][data-numeric=tabular]{font-variant-numeric:tabular-nums}[data-ui-typography][data-transform=none]{text-transform:none}[data-ui-typography][data-transform=capitalize]{text-transform:capitalize}[data-ui-typography][data-transform=uppercase]{letter-spacing:var(--slotted-typography-uppercase-tracking, .06em);text-transform:uppercase}[data-ui-typography]:lang(ar),[data-ui-typography]:lang(fa),[data-ui-typography]:lang(ur){letter-spacing:normal}[data-ui-typography][data-truncate]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--slotted-typography-lines, 1);line-clamp:var(--slotted-typography-lines, 1);min-inline-size:0;overflow:hidden}@supports (text-box: trim-both cap alphabetic){[data-ui-typography][data-text-box]{text-box-edge:var(--_text-box-edge, var(--slotted-text-box-edge, cap alphabetic))}[data-ui-typography][data-text-box=trim-start]{text-box-trim:trim-start}[data-ui-typography][data-text-box=trim-end]{text-box-trim:trim-end}[data-ui-typography][data-text-box=trim-both]{text-box-trim:trim-both}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
111
122
|
}
|
|
112
123
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlHeading, decorators: [{
|
|
113
124
|
type: Component,
|
|
@@ -125,8 +136,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
125
136
|
'[attr.data-numeric]': 'numeric() ?? null',
|
|
126
137
|
'[attr.data-truncate]': 'lines()',
|
|
127
138
|
'[style.--slotted-typography-lines]': 'lines()',
|
|
128
|
-
|
|
129
|
-
|
|
139
|
+
'[attr.data-text-box]': 'box().trim',
|
|
140
|
+
'[style.--_text-box-edge]': 'box().edge',
|
|
141
|
+
}, styles: ["@layer slotted.components{[data-ui-typography]{font-family:var( --slotted-typography-font-family, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--slotted-font-size-md, .875rem);font-weight:var(--slotted-font-weight-regular, 400);line-height:var(--slotted-line-height-md, 1.5);margin:0;overflow-wrap:anywhere}[data-ui-typography]:is(h1,h2,h3,h4,h5,h6){font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) )}[data-ui-typography][data-size=xs]{font-size:var(--slotted-font-size-xs, .75rem);line-height:var(--slotted-line-height-xs, 1.4)}[data-ui-typography][data-size=sm]{font-size:var(--slotted-font-size-sm, .8125rem);line-height:var(--slotted-line-height-sm, 1.45)}[data-ui-typography][data-size=md]{font-size:var(--slotted-font-size-md, .875rem);line-height:var(--slotted-line-height-md, 1.5)}[data-ui-typography][data-size=lg]{font-size:var(--slotted-font-size-lg, 1rem);line-height:var(--slotted-line-height-lg, 1.5)}[data-ui-typography][data-size=xl]{font-size:var(--slotted-font-size-xl, 1.125rem);line-height:var(--slotted-line-height-xl, 1.45)}[data-ui-typography][data-size=\"2xl\"]{font-size:var(--slotted-font-size-2xl, 1.25rem);line-height:var(--slotted-line-height-2xl, 1.4)}[data-ui-typography][data-size=\"3xl\"]{font-size:var(--slotted-font-size-3xl, 1.5rem);line-height:var(--slotted-line-height-3xl, 1.3)}[data-ui-typography][data-weight=regular]{font-weight:var(--slotted-font-weight-regular, 400)}[data-ui-typography][data-weight=medium]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui-typography][data-weight=semibold]{font-weight:var(--slotted-font-weight-semibold, 600)}[data-ui-typography][data-tone=default]{color:var(--slotted-text, CanvasText)}[data-ui-typography][data-tone=muted]{color:var(--slotted-text-muted, GrayText)}[data-ui-typography][data-tone=accent]{color:var(--slotted-tone-accent-text, LinkText)}[data-ui-typography][data-tone=success]{color:var(--slotted-tone-success-text, CanvasText)}[data-ui-typography][data-tone=info]{color:var(--slotted-tone-info-text, CanvasText)}[data-ui-typography][data-tone=warning]{color:var(--slotted-tone-warning-text, CanvasText)}[data-ui-typography][data-tone=danger]{color:var(--slotted-tone-danger-text, CanvasText)}[data-ui-typography][data-tone=inverse]{color:var(--slotted-text-inverse, Canvas)}[data-ui-typography][data-align]{display:block}[data-ui-typography][data-align=start]{text-align:start}[data-ui-typography][data-align=center]{text-align:center}[data-ui-typography][data-align=end]{text-align:end}[data-ui-typography][data-wrap=normal]{text-wrap:wrap;white-space:normal}[data-ui-typography][data-wrap=nowrap]{white-space:nowrap}[data-ui-typography][data-wrap=balance]{text-wrap:balance}[data-ui-typography][data-wrap=pretty]{text-wrap:pretty}[data-ui-typography][data-numeric=normal]{font-variant-numeric:normal}[data-ui-typography][data-numeric=tabular]{font-variant-numeric:tabular-nums}[data-ui-typography][data-transform=none]{text-transform:none}[data-ui-typography][data-transform=capitalize]{text-transform:capitalize}[data-ui-typography][data-transform=uppercase]{letter-spacing:var(--slotted-typography-uppercase-tracking, .06em);text-transform:uppercase}[data-ui-typography]:lang(ar),[data-ui-typography]:lang(fa),[data-ui-typography]:lang(ur){letter-spacing:normal}[data-ui-typography][data-truncate]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--slotted-typography-lines, 1);line-clamp:var(--slotted-typography-lines, 1);min-inline-size:0;overflow:hidden}@supports (text-box: trim-both cap alphabetic){[data-ui-typography][data-text-box]{text-box-edge:var(--_text-box-edge, var(--slotted-text-box-edge, cap alphabetic))}[data-ui-typography][data-text-box=trim-start]{text-box-trim:trim-start}[data-ui-typography][data-text-box=trim-end]{text-box-trim:trim-end}[data-ui-typography][data-text-box=trim-both]{text-box-trim:trim-both}}}\n"] }]
|
|
142
|
+
}], ctorParameters: () => [], propDecorators: { align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], numeric: [{ type: i0.Input, args: [{ isSignal: true, alias: "numeric", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], transform: [{ type: i0.Input, args: [{ isSignal: true, alias: "transform", required: false }] }], truncate: [{ type: i0.Input, args: [{ isSignal: true, alias: "truncate", required: false }] }], weight: [{ type: i0.Input, args: [{ isSignal: true, alias: "weight", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], textBox: [{ type: i0.Input, args: [{ isSignal: true, alias: "textBox", required: false }] }] } });
|
|
130
143
|
|
|
131
144
|
/**
|
|
132
145
|
* Text sets the library's type on the element the consumer already wrote. The
|
|
@@ -154,12 +167,22 @@ class SlText {
|
|
|
154
167
|
...(ngDevMode ? [undefined, { debugName: "weight" }] : /* istanbul ignore next */ []));
|
|
155
168
|
wrap = input(/* @ts-ignore */
|
|
156
169
|
...(ngDevMode ? [undefined, { debugName: "wrap" }] : /* istanbul ignore next */ []));
|
|
170
|
+
/**
|
|
171
|
+
* Takes the half-leading off the start, the end or both edges of the box, so
|
|
172
|
+
* the text shares a top edge, a bottom edge and an optical center with an
|
|
173
|
+
* icon, a control or a text of another size beside it. The edge defaults to
|
|
174
|
+
* the theme's `--slotted-text-box-edge` (`cap alphabetic`).
|
|
175
|
+
*/
|
|
176
|
+
textBox = input(/* @ts-ignore */
|
|
177
|
+
...(ngDevMode ? [undefined, { debugName: "textBox" }] : /* istanbul ignore next */ []));
|
|
157
178
|
toneAttribute = computed(() => toneAttribute(this.tone()), /* @ts-ignore */
|
|
158
179
|
...(ngDevMode ? [{ debugName: "toneAttribute" }] : /* istanbul ignore next */ []));
|
|
159
180
|
lines = computed(() => truncatedLines(this.truncate()), /* @ts-ignore */
|
|
160
181
|
...(ngDevMode ? [{ debugName: "lines" }] : /* istanbul ignore next */ []));
|
|
182
|
+
box = computed(() => textBoxValues(this.textBox()), /* @ts-ignore */
|
|
183
|
+
...(ngDevMode ? [{ debugName: "box" }] : /* istanbul ignore next */ []));
|
|
161
184
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlText, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
162
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlText, isStandalone: true, selector: "[slText]", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, numeric: { classPropertyName: "numeric", publicName: "numeric", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, transform: { classPropertyName: "transform", publicName: "transform", isSignal: true, isRequired: false, transformFunction: null }, truncate: { classPropertyName: "truncate", publicName: "truncate", isSignal: true, isRequired: false, transformFunction: null }, weight: { classPropertyName: "weight", publicName: "weight", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "typography", "data-ui-typography": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.data-size": "size() ?? null", "attr.data-weight": "weight() ?? null", "attr.data-tone": "toneAttribute()", "attr.data-align": "align() ?? null", "attr.data-wrap": "wrap() ?? null", "attr.data-transform": "transform() ?? null", "attr.data-numeric": "numeric() ?? null", "attr.data-truncate": "lines()", "style.--slotted-typography-lines": "lines()" } }, exportAs: ["slText"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@layer slotted.components{[data-ui-typography]{font-family:var( --slotted-typography-font-family, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--slotted-font-size-md, .875rem);font-weight:var(--slotted-font-weight-regular, 400);line-height:var(--slotted-line-height-md, 1.5);margin:0;overflow-wrap:anywhere}[data-ui-typography]:is(h1,h2,h3,h4,h5,h6){font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) )}[data-ui-typography][data-size=xs]{font-size:var(--slotted-font-size-xs, .75rem);line-height:var(--slotted-line-height-xs, 1.4)}[data-ui-typography][data-size=sm]{font-size:var(--slotted-font-size-sm, .8125rem);line-height:var(--slotted-line-height-sm, 1.45)}[data-ui-typography][data-size=md]{font-size:var(--slotted-font-size-md, .875rem);line-height:var(--slotted-line-height-md, 1.5)}[data-ui-typography][data-size=lg]{font-size:var(--slotted-font-size-lg, 1rem);line-height:var(--slotted-line-height-lg, 1.5)}[data-ui-typography][data-size=xl]{font-size:var(--slotted-font-size-xl, 1.125rem);line-height:var(--slotted-line-height-xl, 1.45)}[data-ui-typography][data-size=\"2xl\"]{font-size:var(--slotted-font-size-2xl, 1.25rem);line-height:var(--slotted-line-height-2xl, 1.4)}[data-ui-typography][data-size=\"3xl\"]{font-size:var(--slotted-font-size-3xl, 1.5rem);line-height:var(--slotted-line-height-3xl, 1.3)}[data-ui-typography][data-weight=regular]{font-weight:var(--slotted-font-weight-regular, 400)}[data-ui-typography][data-weight=medium]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui-typography][data-weight=semibold]{font-weight:var(--slotted-font-weight-semibold, 600)}[data-ui-typography][data-tone=default]{color:var(--slotted-text, CanvasText)}[data-ui-typography][data-tone=muted]{color:var(--slotted-text-muted, GrayText)}[data-ui-typography][data-tone=accent]{color:var(--slotted-tone-accent-text, LinkText)}[data-ui-typography][data-tone=success]{color:var(--slotted-tone-success-text, CanvasText)}[data-ui-typography][data-tone=info]{color:var(--slotted-tone-info-text, CanvasText)}[data-ui-typography][data-tone=warning]{color:var(--slotted-tone-warning-text, CanvasText)}[data-ui-typography][data-tone=danger]{color:var(--slotted-tone-danger-text, CanvasText)}[data-ui-typography][data-tone=inverse]{color:var(--slotted-text-inverse, Canvas)}[data-ui-typography][data-align]{display:block}[data-ui-typography][data-align=start]{text-align:start}[data-ui-typography][data-align=center]{text-align:center}[data-ui-typography][data-align=end]{text-align:end}[data-ui-typography][data-wrap=normal]{text-wrap:wrap;white-space:normal}[data-ui-typography][data-wrap=nowrap]{white-space:nowrap}[data-ui-typography][data-wrap=balance]{text-wrap:balance}[data-ui-typography][data-wrap=pretty]{text-wrap:pretty}[data-ui-typography][data-numeric=normal]{font-variant-numeric:normal}[data-ui-typography][data-numeric=tabular]{font-variant-numeric:tabular-nums}[data-ui-typography][data-transform=none]{text-transform:none}[data-ui-typography][data-transform=capitalize]{text-transform:capitalize}[data-ui-typography][data-transform=uppercase]{letter-spacing:var(--slotted-typography-uppercase-tracking, .06em);text-transform:uppercase}[data-ui-typography]:lang(ar),[data-ui-typography]:lang(fa),[data-ui-typography]:lang(ur){letter-spacing:normal}[data-ui-typography][data-truncate]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--slotted-typography-lines, 1);line-clamp:var(--slotted-typography-lines, 1);min-inline-size:0;overflow:hidden}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
185
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.1.7", type: SlText, isStandalone: true, selector: "[slText]", inputs: { align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, numeric: { classPropertyName: "numeric", publicName: "numeric", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, transform: { classPropertyName: "transform", publicName: "transform", isSignal: true, isRequired: false, transformFunction: null }, truncate: { classPropertyName: "truncate", publicName: "truncate", isSignal: true, isRequired: false, transformFunction: null }, weight: { classPropertyName: "weight", publicName: "weight", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, textBox: { classPropertyName: "textBox", publicName: "textBox", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "typography", "data-ui-typography": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.data-size": "size() ?? null", "attr.data-weight": "weight() ?? null", "attr.data-tone": "toneAttribute()", "attr.data-align": "align() ?? null", "attr.data-wrap": "wrap() ?? null", "attr.data-transform": "transform() ?? null", "attr.data-numeric": "numeric() ?? null", "attr.data-truncate": "lines()", "style.--slotted-typography-lines": "lines()", "attr.data-text-box": "box().trim", "style.--_text-box-edge": "box().edge" } }, exportAs: ["slText"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: ["@layer slotted.components{[data-ui-typography]{font-family:var( --slotted-typography-font-family, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--slotted-font-size-md, .875rem);font-weight:var(--slotted-font-weight-regular, 400);line-height:var(--slotted-line-height-md, 1.5);margin:0;overflow-wrap:anywhere}[data-ui-typography]:is(h1,h2,h3,h4,h5,h6){font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) )}[data-ui-typography][data-size=xs]{font-size:var(--slotted-font-size-xs, .75rem);line-height:var(--slotted-line-height-xs, 1.4)}[data-ui-typography][data-size=sm]{font-size:var(--slotted-font-size-sm, .8125rem);line-height:var(--slotted-line-height-sm, 1.45)}[data-ui-typography][data-size=md]{font-size:var(--slotted-font-size-md, .875rem);line-height:var(--slotted-line-height-md, 1.5)}[data-ui-typography][data-size=lg]{font-size:var(--slotted-font-size-lg, 1rem);line-height:var(--slotted-line-height-lg, 1.5)}[data-ui-typography][data-size=xl]{font-size:var(--slotted-font-size-xl, 1.125rem);line-height:var(--slotted-line-height-xl, 1.45)}[data-ui-typography][data-size=\"2xl\"]{font-size:var(--slotted-font-size-2xl, 1.25rem);line-height:var(--slotted-line-height-2xl, 1.4)}[data-ui-typography][data-size=\"3xl\"]{font-size:var(--slotted-font-size-3xl, 1.5rem);line-height:var(--slotted-line-height-3xl, 1.3)}[data-ui-typography][data-weight=regular]{font-weight:var(--slotted-font-weight-regular, 400)}[data-ui-typography][data-weight=medium]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui-typography][data-weight=semibold]{font-weight:var(--slotted-font-weight-semibold, 600)}[data-ui-typography][data-tone=default]{color:var(--slotted-text, CanvasText)}[data-ui-typography][data-tone=muted]{color:var(--slotted-text-muted, GrayText)}[data-ui-typography][data-tone=accent]{color:var(--slotted-tone-accent-text, LinkText)}[data-ui-typography][data-tone=success]{color:var(--slotted-tone-success-text, CanvasText)}[data-ui-typography][data-tone=info]{color:var(--slotted-tone-info-text, CanvasText)}[data-ui-typography][data-tone=warning]{color:var(--slotted-tone-warning-text, CanvasText)}[data-ui-typography][data-tone=danger]{color:var(--slotted-tone-danger-text, CanvasText)}[data-ui-typography][data-tone=inverse]{color:var(--slotted-text-inverse, Canvas)}[data-ui-typography][data-align]{display:block}[data-ui-typography][data-align=start]{text-align:start}[data-ui-typography][data-align=center]{text-align:center}[data-ui-typography][data-align=end]{text-align:end}[data-ui-typography][data-wrap=normal]{text-wrap:wrap;white-space:normal}[data-ui-typography][data-wrap=nowrap]{white-space:nowrap}[data-ui-typography][data-wrap=balance]{text-wrap:balance}[data-ui-typography][data-wrap=pretty]{text-wrap:pretty}[data-ui-typography][data-numeric=normal]{font-variant-numeric:normal}[data-ui-typography][data-numeric=tabular]{font-variant-numeric:tabular-nums}[data-ui-typography][data-transform=none]{text-transform:none}[data-ui-typography][data-transform=capitalize]{text-transform:capitalize}[data-ui-typography][data-transform=uppercase]{letter-spacing:var(--slotted-typography-uppercase-tracking, .06em);text-transform:uppercase}[data-ui-typography]:lang(ar),[data-ui-typography]:lang(fa),[data-ui-typography]:lang(ur){letter-spacing:normal}[data-ui-typography][data-truncate]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--slotted-typography-lines, 1);line-clamp:var(--slotted-typography-lines, 1);min-inline-size:0;overflow:hidden}@supports (text-box: trim-both cap alphabetic){[data-ui-typography][data-text-box]{text-box-edge:var(--_text-box-edge, var(--slotted-text-box-edge, cap alphabetic))}[data-ui-typography][data-text-box=trim-start]{text-box-trim:trim-start}[data-ui-typography][data-text-box=trim-end]{text-box-trim:trim-end}[data-ui-typography][data-text-box=trim-both]{text-box-trim:trim-both}}}\n"], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
163
186
|
}
|
|
164
187
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlText, decorators: [{
|
|
165
188
|
type: Component,
|
|
@@ -177,8 +200,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
177
200
|
'[attr.data-numeric]': 'numeric() ?? null',
|
|
178
201
|
'[attr.data-truncate]': 'lines()',
|
|
179
202
|
'[style.--slotted-typography-lines]': 'lines()',
|
|
180
|
-
|
|
181
|
-
|
|
203
|
+
'[attr.data-text-box]': 'box().trim',
|
|
204
|
+
'[style.--_text-box-edge]': 'box().edge',
|
|
205
|
+
}, styles: ["@layer slotted.components{[data-ui-typography]{font-family:var( --slotted-typography-font-family, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--slotted-font-size-md, .875rem);font-weight:var(--slotted-font-weight-regular, 400);line-height:var(--slotted-line-height-md, 1.5);margin:0;overflow-wrap:anywhere}[data-ui-typography]:is(h1,h2,h3,h4,h5,h6){font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) )}[data-ui-typography][data-size=xs]{font-size:var(--slotted-font-size-xs, .75rem);line-height:var(--slotted-line-height-xs, 1.4)}[data-ui-typography][data-size=sm]{font-size:var(--slotted-font-size-sm, .8125rem);line-height:var(--slotted-line-height-sm, 1.45)}[data-ui-typography][data-size=md]{font-size:var(--slotted-font-size-md, .875rem);line-height:var(--slotted-line-height-md, 1.5)}[data-ui-typography][data-size=lg]{font-size:var(--slotted-font-size-lg, 1rem);line-height:var(--slotted-line-height-lg, 1.5)}[data-ui-typography][data-size=xl]{font-size:var(--slotted-font-size-xl, 1.125rem);line-height:var(--slotted-line-height-xl, 1.45)}[data-ui-typography][data-size=\"2xl\"]{font-size:var(--slotted-font-size-2xl, 1.25rem);line-height:var(--slotted-line-height-2xl, 1.4)}[data-ui-typography][data-size=\"3xl\"]{font-size:var(--slotted-font-size-3xl, 1.5rem);line-height:var(--slotted-line-height-3xl, 1.3)}[data-ui-typography][data-weight=regular]{font-weight:var(--slotted-font-weight-regular, 400)}[data-ui-typography][data-weight=medium]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui-typography][data-weight=semibold]{font-weight:var(--slotted-font-weight-semibold, 600)}[data-ui-typography][data-tone=default]{color:var(--slotted-text, CanvasText)}[data-ui-typography][data-tone=muted]{color:var(--slotted-text-muted, GrayText)}[data-ui-typography][data-tone=accent]{color:var(--slotted-tone-accent-text, LinkText)}[data-ui-typography][data-tone=success]{color:var(--slotted-tone-success-text, CanvasText)}[data-ui-typography][data-tone=info]{color:var(--slotted-tone-info-text, CanvasText)}[data-ui-typography][data-tone=warning]{color:var(--slotted-tone-warning-text, CanvasText)}[data-ui-typography][data-tone=danger]{color:var(--slotted-tone-danger-text, CanvasText)}[data-ui-typography][data-tone=inverse]{color:var(--slotted-text-inverse, Canvas)}[data-ui-typography][data-align]{display:block}[data-ui-typography][data-align=start]{text-align:start}[data-ui-typography][data-align=center]{text-align:center}[data-ui-typography][data-align=end]{text-align:end}[data-ui-typography][data-wrap=normal]{text-wrap:wrap;white-space:normal}[data-ui-typography][data-wrap=nowrap]{white-space:nowrap}[data-ui-typography][data-wrap=balance]{text-wrap:balance}[data-ui-typography][data-wrap=pretty]{text-wrap:pretty}[data-ui-typography][data-numeric=normal]{font-variant-numeric:normal}[data-ui-typography][data-numeric=tabular]{font-variant-numeric:tabular-nums}[data-ui-typography][data-transform=none]{text-transform:none}[data-ui-typography][data-transform=capitalize]{text-transform:capitalize}[data-ui-typography][data-transform=uppercase]{letter-spacing:var(--slotted-typography-uppercase-tracking, .06em);text-transform:uppercase}[data-ui-typography]:lang(ar),[data-ui-typography]:lang(fa),[data-ui-typography]:lang(ur){letter-spacing:normal}[data-ui-typography][data-truncate]{display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:var(--slotted-typography-lines, 1);line-clamp:var(--slotted-typography-lines, 1);min-inline-size:0;overflow:hidden}@supports (text-box: trim-both cap alphabetic){[data-ui-typography][data-text-box]{text-box-edge:var(--_text-box-edge, var(--slotted-text-box-edge, cap alphabetic))}[data-ui-typography][data-text-box=trim-start]{text-box-trim:trim-start}[data-ui-typography][data-text-box=trim-end]{text-box-trim:trim-end}[data-ui-typography][data-text-box=trim-both]{text-box-trim:trim-both}}}\n"] }]
|
|
206
|
+
}], propDecorators: { align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], numeric: [{ type: i0.Input, args: [{ isSignal: true, alias: "numeric", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], transform: [{ type: i0.Input, args: [{ isSignal: true, alias: "transform", required: false }] }], truncate: [{ type: i0.Input, args: [{ isSignal: true, alias: "truncate", required: false }] }], weight: [{ type: i0.Input, args: [{ isSignal: true, alias: "weight", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], textBox: [{ type: i0.Input, args: [{ isSignal: true, alias: "textBox", required: false }] }] } });
|
|
182
207
|
|
|
183
208
|
/**
|
|
184
209
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotted-angular-typography.mjs","sources":["../../typography/src/heading-level.ts","../../typography/src/typography.ts","../../typography/src/heading.ts","../../typography/src/text.ts","../../typography/src/slotted-angular-typography.ts"],"sourcesContent":["import { Directive, inject, isDevMode } from '@angular/core';\n\nimport type { HeadingLevelValue } from './typography';\n\n/**\n * One section deeper. A heading inside takes the next rank, which is how the\n * outline stays correct in a tree assembled from components that cannot see\n * each other: the HTML Standard requires each heading to be less than, equal\n * to, or one greater than the heading before it, and stepping by exactly one\n * is the only way to guarantee that without reading the document.\n *\n * The directive sits on the element the consumer already wrote for the\n * section, so it adds nothing to the DOM. The depth is fixed for the life of\n * the element, so it is a value rather than a signal.\n */\n@Directive({\n selector: '[slHeadingLevel]',\n standalone: true,\n exportAs: 'slHeadingLevel',\n})\nexport class SlHeadingLevel {\n private readonly parent = inject(SlHeadingLevel, { optional: true, skipSelf: true });\n\n readonly level: HeadingLevelValue;\n\n constructor() {\n const outer = this.parent?.level ?? 1;\n this.level = Math.min(outer + 1, 6) as HeadingLevelValue;\n\n if (isDevMode() && outer === 6) {\n console.warn(\n 'slHeadingLevel nested past level 6. The platform has six ranks, so a heading inside stays at 6 and the outline stops recording depth here.',\n );\n }\n }\n}\n","export type TypographySize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';\nexport type TypographyWeight = 'regular' | 'medium' | 'semibold';\nexport type TypographyTone =\n | 'inherit'\n | 'default'\n | 'muted'\n | 'accent'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger'\n | 'inverse';\nexport type TypographyAlign = 'start' | 'center' | 'end';\nexport type TypographyWrap = 'normal' | 'nowrap' | 'balance' | 'pretty';\nexport type TypographyTransform = 'none' | 'uppercase' | 'capitalize';\nexport type TypographyNumeric = 'normal' | 'tabular';\n\n/** The six the platform has. A seventh would be a heading no browser knows. */\nexport type HeadingLevelValue = 1 | 2 | 3 | 4 | 5 | 6;\n\n/**\n * `inherit` is the absence of a color rather than a color of its own, so it\n * removes the attribute and lets the surface decide.\n */\nexport function toneAttribute(tone: TypographyTone | undefined): string | null {\n return tone === undefined || tone === 'inherit' ? null : tone;\n}\n\n/**\n * `true` keeps one line, a number keeps that many, and nothing keeps them all.\n * The count travels to CSS as a custom property, because a line clamp cannot\n * be read from an attribute.\n */\nexport function truncatedLines(truncate: boolean | number | undefined): number | null {\n if (truncate === undefined || truncate === false) return null;\n if (truncate === true) return 1;\n return Math.max(1, Math.trunc(truncate));\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n isDevMode,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SlHeadingLevel } from './heading-level';\nimport { toneAttribute, truncatedLines } from './typography';\nimport type {\n HeadingLevelValue,\n TypographyAlign,\n TypographyNumeric,\n TypographySize,\n TypographyTone,\n TypographyTransform,\n TypographyWeight,\n TypographyWrap,\n} from './typography';\n\n/** The size each rank reads at before anyone asks for another. */\nconst SIZE_OF_LEVEL: Record<HeadingLevelValue, TypographySize> = {\n 1: '3xl',\n 2: '2xl',\n 3: 'xl',\n 4: 'lg',\n 5: 'md',\n 6: 'sm',\n};\n\n/**\n * A heading is a rank in the document outline and a size on the page, and the\n * two are separate. The rank is the element the consumer wrote, because that\n * is where the platform keeps it; the size follows the rank until `size` asks\n * for another.\n *\n * The section the heading sits in states the rank it expects, and a heading\n * more than one rank deeper than that has skipped one. The skip is reported,\n * never corrected: the element the consumer wrote is the element rendered.\n */\n@Component({\n selector: 'h1[slHeading],h2[slHeading],h3[slHeading],h4[slHeading],h5[slHeading],h6[slHeading]',\n standalone: true,\n exportAs: 'slHeading',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/typography/typography.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'typography',\n 'data-ui-typography': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-weight]': 'weight()',\n '[attr.data-tone]': 'toneAttribute()',\n '[attr.data-align]': 'align() ?? null',\n '[attr.data-wrap]': 'wrap()',\n '[attr.data-transform]': 'transform() ?? null',\n '[attr.data-numeric]': 'numeric() ?? null',\n '[attr.data-truncate]': 'lines()',\n '[style.--slotted-typography-lines]': 'lines()',\n },\n})\nexport class SlHeading {\n readonly align = input<TypographyAlign>();\n readonly numeric = input<TypographyNumeric>();\n readonly size = input<TypographySize>();\n readonly tone = input<TypographyTone>();\n readonly transform = input<TypographyTransform>();\n readonly truncate = input<boolean | number>();\n readonly weight = input<TypographyWeight>('semibold');\n readonly wrap = input<TypographyWrap>('balance');\n\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly section = inject(SlHeadingLevel, { optional: true });\n\n /** The rank of the element the consumer wrote, which the tag already states. */\n readonly level = Number(this.element.tagName.slice(1)) as HeadingLevelValue;\n\n protected readonly resolvedSize = computed(() => this.size() ?? SIZE_OF_LEVEL[this.level]);\n protected readonly toneAttribute = computed(() => toneAttribute(this.tone()));\n protected readonly lines = computed(() => truncatedLines(this.truncate()));\n\n constructor() {\n const ambient = this.section?.level ?? 1;\n\n if (isDevMode() && this.level > ambient + 1) {\n console.warn(\n `Heading level ${this.level} skips the outline: this section allows at most ${ambient + 1}. Put slHeadingLevel on the section, or write the rank the content actually has.`,\n );\n }\n }\n}\n","import {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { toneAttribute, truncatedLines } from './typography';\nimport type {\n TypographyAlign,\n TypographyNumeric,\n TypographySize,\n TypographyTone,\n TypographyTransform,\n TypographyWeight,\n TypographyWrap,\n} from './typography';\n\n/**\n * Text sets the library's type on the element the consumer already wrote. The\n * directive makes no claim about which element that is: a paragraph, a label\n * or a table cell is a claim the consumer makes by writing the tag.\n *\n * An axis reaches the stylesheet only when someone decided it. The base rule\n * already paints the family default, and text is the most numerous element in\n * any document.\n */\n@Component({\n selector: '[slText]',\n standalone: true,\n exportAs: 'slText',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/typography/typography.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'typography',\n 'data-ui-typography': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'size() ?? null',\n '[attr.data-weight]': 'weight() ?? null',\n '[attr.data-tone]': 'toneAttribute()',\n '[attr.data-align]': 'align() ?? null',\n '[attr.data-wrap]': 'wrap() ?? null',\n '[attr.data-transform]': 'transform() ?? null',\n '[attr.data-numeric]': 'numeric() ?? null',\n '[attr.data-truncate]': 'lines()',\n '[style.--slotted-typography-lines]': 'lines()',\n },\n})\nexport class SlText {\n readonly align = input<TypographyAlign>();\n readonly numeric = input<TypographyNumeric>();\n readonly size = input<TypographySize>();\n readonly tone = input<TypographyTone>();\n readonly transform = input<TypographyTransform>();\n readonly truncate = input<boolean | number>();\n readonly weight = input<TypographyWeight>();\n readonly wrap = input<TypographyWrap>();\n\n protected readonly toneAttribute = computed(() => toneAttribute(this.tone()));\n protected readonly lines = computed(() => truncatedLines(this.truncate()));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;AAIA;;;;;;;;;;AAUG;MAMU,cAAc,CAAA;AACR,IAAA,MAAM,GAAG,MAAM,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAE3E,IAAA,KAAK;AAEd,IAAA,WAAA,GAAA;QACE,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC;AACrC,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,CAAsB;AAExD,QAAA,IAAI,SAAS,EAAE,IAAI,KAAK,KAAK,CAAC,EAAE;AAC9B,YAAA,OAAO,CAAC,IAAI,CACV,4IAA4I,CAC7I;QACH;IACF;uGAdW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eA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,EAAE,iBAAiB;AACtC,wBAAA,kBAAkB,EAAE,gBAAgB;AACpC,wBAAA,uBAAuB,EAAE,qBAAqB;AAC9C,wBAAA,qBAAqB,EAAE,mBAAmB;AAC1C,wBAAA,sBAAsB,EAAE,SAAS;AACjC,wBAAA,oCAAoC,EAAE,SAAS;AAChD,qBAAA,EAAA,MAAA,EAAA,CAAA,uhHAAA,CAAA,EAAA;;;AClDH;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"slotted-angular-typography.mjs","sources":["../../typography/src/heading-level.ts","../../typography/src/typography.ts","../../typography/src/heading.ts","../../typography/src/text.ts","../../typography/src/slotted-angular-typography.ts"],"sourcesContent":["import { Directive, inject, isDevMode } from '@angular/core';\n\nimport type { HeadingLevelValue } from './typography';\n\n/**\n * One section deeper. A heading inside takes the next rank, which is how the\n * outline stays correct in a tree assembled from components that cannot see\n * each other: the HTML Standard requires each heading to be less than, equal\n * to, or one greater than the heading before it, and stepping by exactly one\n * is the only way to guarantee that without reading the document.\n *\n * The directive sits on the element the consumer already wrote for the\n * section, so it adds nothing to the DOM. The depth is fixed for the life of\n * the element, so it is a value rather than a signal.\n */\n@Directive({\n selector: '[slHeadingLevel]',\n standalone: true,\n exportAs: 'slHeadingLevel',\n})\nexport class SlHeadingLevel {\n private readonly parent = inject(SlHeadingLevel, { optional: true, skipSelf: true });\n\n readonly level: HeadingLevelValue;\n\n constructor() {\n const outer = this.parent?.level ?? 1;\n this.level = Math.min(outer + 1, 6) as HeadingLevelValue;\n\n if (isDevMode() && outer === 6) {\n console.warn(\n 'slHeadingLevel nested past level 6. The platform has six ranks, so a heading inside stays at 6 and the outline stops recording depth here.',\n );\n }\n }\n}\n","export type TypographySize = 'xs' | 'sm' | 'md' | 'lg' | 'xl' | '2xl' | '3xl';\nexport type TypographyWeight = 'regular' | 'medium' | 'semibold';\nexport type TypographyTone =\n | 'inherit'\n | 'default'\n | 'muted'\n | 'accent'\n | 'info'\n | 'success'\n | 'warning'\n | 'danger'\n | 'inverse';\nexport type TypographyAlign = 'start' | 'center' | 'end';\nexport type TypographyWrap = 'normal' | 'nowrap' | 'balance' | 'pretty';\nexport type TypographyTransform = 'none' | 'uppercase' | 'capitalize';\nexport type TypographyNumeric = 'normal' | 'tabular';\n\n/** The six the platform has. A seventh would be a heading no browser knows. */\nexport type HeadingLevelValue = 1 | 2 | 3 | 4 | 5 | 6;\n\n/**\n * `inherit` is the absence of a color rather than a color of its own, so it\n * removes the attribute and lets the surface decide.\n */\nexport function toneAttribute(tone: TypographyTone | undefined): string | null {\n return tone === undefined || tone === 'inherit' ? null : tone;\n}\n\n/**\n * `true` keeps one line, a number keeps that many, and nothing keeps them all.\n * The count travels to CSS as a custom property, because a line clamp cannot\n * be read from an attribute.\n */\nexport function truncatedLines(truncate: boolean | number | undefined): number | null {\n if (truncate === undefined || truncate === false) return null;\n if (truncate === true) return 1;\n return Math.max(1, Math.trunc(truncate));\n}\n","import { textBoxValues } from '@slotted/core/text';\nimport type { TextBox } from '@slotted/core/text';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n isDevMode,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { SlHeadingLevel } from './heading-level';\nimport { toneAttribute, truncatedLines } from './typography';\nimport type {\n HeadingLevelValue,\n TypographyAlign,\n TypographyNumeric,\n TypographySize,\n TypographyTone,\n TypographyTransform,\n TypographyWeight,\n TypographyWrap,\n} from './typography';\n\n/** The size each rank reads at before anyone asks for another. */\nconst SIZE_OF_LEVEL: Record<HeadingLevelValue, TypographySize> = {\n 1: '3xl',\n 2: '2xl',\n 3: 'xl',\n 4: 'lg',\n 5: 'md',\n 6: 'sm',\n};\n\n/**\n * A heading is a rank in the document outline and a size on the page, and the\n * two are separate. The rank is the element the consumer wrote, because that\n * is where the platform keeps it; the size follows the rank until `size` asks\n * for another.\n *\n * The section the heading sits in states the rank it expects, and a heading\n * more than one rank deeper than that has skipped one. The skip is reported,\n * never corrected: the element the consumer wrote is the element rendered.\n */\n@Component({\n selector: 'h1[slHeading],h2[slHeading],h3[slHeading],h4[slHeading],h5[slHeading],h6[slHeading]',\n standalone: true,\n exportAs: 'slHeading',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/typography/typography.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'typography',\n 'data-ui-typography': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-weight]': 'weight()',\n '[attr.data-tone]': 'toneAttribute()',\n '[attr.data-align]': 'align() ?? null',\n '[attr.data-wrap]': 'wrap()',\n '[attr.data-transform]': 'transform() ?? null',\n '[attr.data-numeric]': 'numeric() ?? null',\n '[attr.data-truncate]': 'lines()',\n '[style.--slotted-typography-lines]': 'lines()',\n '[attr.data-text-box]': 'box().trim',\n '[style.--_text-box-edge]': 'box().edge',\n },\n})\nexport class SlHeading {\n readonly align = input<TypographyAlign>();\n readonly numeric = input<TypographyNumeric>();\n readonly size = input<TypographySize>();\n readonly tone = input<TypographyTone>();\n readonly transform = input<TypographyTransform>();\n readonly truncate = input<boolean | number>();\n readonly weight = input<TypographyWeight>('semibold');\n readonly wrap = input<TypographyWrap>('balance');\n /**\n * Takes the half-leading off the start, the end or both edges of the box, so\n * the heading shares a top edge, a bottom edge and an optical center with an\n * element beside it. The edge defaults to the theme's\n * `--slotted-text-box-edge` (`cap alphabetic`).\n */\n readonly textBox = input<TextBox>();\n\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly section = inject(SlHeadingLevel, { optional: true });\n\n /** The rank of the element the consumer wrote, which the tag already states. */\n readonly level = Number(this.element.tagName.slice(1)) as HeadingLevelValue;\n\n protected readonly resolvedSize = computed(() => this.size() ?? SIZE_OF_LEVEL[this.level]);\n protected readonly toneAttribute = computed(() => toneAttribute(this.tone()));\n protected readonly lines = computed(() => truncatedLines(this.truncate()));\n protected readonly box = computed(() => textBoxValues(this.textBox()));\n\n constructor() {\n const ambient = this.section?.level ?? 1;\n\n if (isDevMode() && this.level > ambient + 1) {\n console.warn(\n `Heading level ${this.level} skips the outline: this section allows at most ${ambient + 1}. Put slHeadingLevel on the section, or write the rank the content actually has.`,\n );\n }\n }\n}\n","import { textBoxValues } from '@slotted/core/text';\nimport type { TextBox } from '@slotted/core/text';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n input,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { toneAttribute, truncatedLines } from './typography';\nimport type {\n TypographyAlign,\n TypographyNumeric,\n TypographySize,\n TypographyTone,\n TypographyTransform,\n TypographyWeight,\n TypographyWrap,\n} from './typography';\n\n/**\n * Text sets the library's type on the element the consumer already wrote. The\n * directive makes no claim about which element that is: a paragraph, a label\n * or a table cell is a claim the consumer makes by writing the tag.\n *\n * An axis reaches the stylesheet only when someone decided it. The base rule\n * already paints the family default, and text is the most numerous element in\n * any document.\n */\n@Component({\n selector: '[slText]',\n standalone: true,\n exportAs: 'slText',\n template: '<ng-content></ng-content>',\n styleUrl: '../../../styles/src/typography/typography.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'typography',\n 'data-ui-typography': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'size() ?? null',\n '[attr.data-weight]': 'weight() ?? null',\n '[attr.data-tone]': 'toneAttribute()',\n '[attr.data-align]': 'align() ?? null',\n '[attr.data-wrap]': 'wrap() ?? null',\n '[attr.data-transform]': 'transform() ?? null',\n '[attr.data-numeric]': 'numeric() ?? null',\n '[attr.data-truncate]': 'lines()',\n '[style.--slotted-typography-lines]': 'lines()',\n '[attr.data-text-box]': 'box().trim',\n '[style.--_text-box-edge]': 'box().edge',\n },\n})\nexport class SlText {\n readonly align = input<TypographyAlign>();\n readonly numeric = input<TypographyNumeric>();\n readonly size = input<TypographySize>();\n readonly tone = input<TypographyTone>();\n readonly transform = input<TypographyTransform>();\n readonly truncate = input<boolean | number>();\n readonly weight = input<TypographyWeight>();\n readonly wrap = input<TypographyWrap>();\n /**\n * Takes the half-leading off the start, the end or both edges of the box, so\n * the text shares a top edge, a bottom edge and an optical center with an\n * icon, a control or a text of another size beside it. The edge defaults to\n * the theme's `--slotted-text-box-edge` (`cap alphabetic`).\n */\n readonly textBox = input<TextBox>();\n\n protected readonly toneAttribute = computed(() => toneAttribute(this.tone()));\n protected readonly lines = computed(() => truncatedLines(this.truncate()));\n protected readonly box = computed(() => textBoxValues(this.textBox()));\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAIA;;;;;;;;;;AAUG;MAMU,cAAc,CAAA;AACR,IAAA,MAAM,GAAG,MAAM,CAAC,cAAc,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAE3E,IAAA,KAAK;AAEd,IAAA,WAAA,GAAA;QACE,MAAM,KAAK,GAAG,IAAI,CAAC,MAAM,EAAE,KAAK,IAAI,CAAC;AACrC,QAAA,IAAI,CAAC,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,KAAK,GAAG,CAAC,EAAE,CAAC,CAAsB;AAExD,QAAA,IAAI,SAAS,EAAE,IAAI,KAAK,KAAK,CAAC,EAAE;AAC9B,YAAA,OAAO,CAAC,IAAI,CACV,4IAA4I,CAC7I;QACH;IACF;uGAdW,cAAc,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAd,cAAc,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAd,cAAc,EAAA,UAAA,EAAA,CAAA;kBAL1B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,E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gB;AACpC,wBAAA,oBAAoB,EAAE,kBAAkB;AACxC,wBAAA,kBAAkB,EAAE,iBAAiB;AACrC,wBAAA,mBAAmB,EAAE,iBAAiB;AACtC,wBAAA,kBAAkB,EAAE,gBAAgB;AACpC,wBAAA,uBAAuB,EAAE,qBAAqB;AAC9C,wBAAA,qBAAqB,EAAE,mBAAmB;AAC1C,wBAAA,sBAAsB,EAAE,SAAS;AACjC,wBAAA,oCAAoC,EAAE,SAAS;AAC/C,wBAAA,sBAAsB,EAAE,YAAY;AACpC,wBAAA,0BAA0B,EAAE,YAAY;AACzC,qBAAA,EAAA,MAAA,EAAA,CAAA,+4HAAA,CAAA,EAAA;;;ACtDH;;AAEG;;"}
|
|
@@ -1307,7 +1307,7 @@ class SlWizard {
|
|
|
1307
1307
|
</span>
|
|
1308
1308
|
}
|
|
1309
1309
|
</ng-template>
|
|
1310
|
-
`, isInline: true, styles: ["@layer slotted.components{[data-ui-wizard]{--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_rule: var(--slotted-wizard-border, var(--slotted-border-subtle, ButtonBorder));--_rule-size: var(--slotted-border-width-thin, 1px);--_progress-size: var(--slotted-wizard-progress-inline-size, 14rem);--_gap: var(--slotted-wizard-gap, var(--slotted-space-9, 2rem));--_rhythm: var(--slotted-wizard-rhythm, var(--slotted-space-8, 1.5rem));--_header-gap: var(--slotted-wizard-header-gap, var(--slotted-space-6, 1rem));--_action-gap: var(--slotted-control-gap-md, var(--slotted-space-3, .375rem));--_ground: var(--slotted-page-ground, var(--slotted-surface, Canvas));--_ring-room: calc( var(--slotted-focus-ring-width, 2px) + var(--slotted-focus-ring-offset, 2px) );color:var(--_text);container-name:slotted-wizard;container-type:inline-size;display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);min-inline-size:0}[data-ui-wizard]>[data-part-layout]{display:grid;gap:var(--_gap);grid-template-columns:minmax(0,1fr);min-inline-size:0}[data-ui-wizard][data-progress=start]>[data-part-layout]{align-items:start;grid-template-columns:var(--_progress-size) minmax(0,1fr)}[data-ui-wizard][data-progress=none]>[data-part-layout]>[data-part-progress]{display:none}[data-ui-wizard]>[data-part-layout]>[data-part-progress]{display:flex;flex-direction:column;gap:var(--slotted-space-4, .5rem);min-inline-size:0}[data-ui-wizard][data-progress=start]:not([data-scroll=self])>[data-part-layout]>[data-part-progress]{inset-block-start:var(--slotted-page-sticky-top, 0px);position:sticky}[data-ui-wizard][data-progress=top]>[data-part-layout]>[data-part-progress]{border-block-end:var(--_rule-size) solid var(--_rule);padding-block-end:var(--_rhythm)}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]{align-items:center;appearance:none;background-color:var(--slotted-control-surface, Field);border:var(--slotted-control-border-width, 1px) solid var(--slotted-control-border-color, ButtonBorder);border-radius:var(--slotted-control-radius, 6px);box-shadow:var(--slotted-control-shadow, none);color:inherit;column-gap:var(--slotted-space-5, .75rem);cursor:pointer;display:none;font:inherit;grid-template-areas:\"position icon\" \"track icon\";grid-template-columns:minmax(0,1fr) auto;inline-size:100%;margin:0;min-block-size:var(--slotted-control-height-lg, 2.75rem);padding-block:var(--slotted-space-4, .5rem);padding-inline:var(--slotted-control-padding-inline-md, .75rem);row-gap:var(--slotted-space-3, .375rem);text-align:start;transition:border-color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard, ease)),box-shadow var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard, ease))}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]:hover:not(:disabled):not([data-disabled]){border-color:var( --slotted-wizard-toggle-hover-border-color, var(--slotted-tone-accent-border) )}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]:active:not(:disabled):not([data-disabled]){background-color:var( --slotted-wizard-toggle-active-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]:focus-visible{box-shadow:var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px) var(--slotted-focus-ring-color, Highlight);outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]>[data-part-progress-position]{font-size:var(--slotted-font-size-sm, .8125rem);font-weight:var(--slotted-font-weight-medium, 500);grid-area:position;line-height:var(--slotted-line-height-sm, 1.45)}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]>[data-part-progress-track]{align-items:center;block-size:var(--slotted-space-2, .25rem);display:flex;gap:var(--slotted-space-1, .125rem);grid-area:track;min-inline-size:0}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]>[data-part-progress-track]>[data-part-progress-segment]{background-color:var( --slotted-wizard-segment-color, var(--slotted-control-border-color, ButtonBorder) );block-size:100%;border-radius:var(--slotted-radius-full, 9999px);flex:1 1 0;transition:background-color var(--slotted-duration-medium) var(--slotted-easing-standard, ease)}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]>[data-part-progress-track]>[data-part-progress-segment]:is([data-complete],[data-current]){background-color:var( --slotted-wizard-segment-color-complete, var(--slotted-tone-accent-solid, Highlight) )}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]>[data-part-progress-track]>[data-part-progress-segment][data-invalid]{background-color:var( --slotted-wizard-segment-color-invalid, var(--slotted-tone-danger-solid, Mark) )}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]>[data-ui-icon]{color:var(--_muted);grid-area:icon;transition:rotate var(--slotted-duration-short) var(--slotted-easing-standard, ease)}[data-ui-wizard]>[data-part-layout]>[data-part-progress][data-open]>[data-part-progress-toggle]>[data-ui-icon]{rotate:180deg}[data-ui-wizard]>[data-part-layout]>[data-part-main]{display:flex;flex-direction:column;gap:var(--_rhythm);min-inline-size:0}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-error]{min-inline-size:0}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-step]{display:flex;flex-direction:column;gap:var(--_header-gap);min-inline-size:0}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-step-header]{display:flex;flex-direction:column;gap:var(--slotted-space-2, .25rem);min-inline-size:0}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-step-header]>[data-part-step-title]{font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--slotted-font-size-2xl, 1.25rem);font-weight:var(--slotted-font-weight-semibold, 600);line-height:var(--slotted-line-height-2xl, 1.4);margin:0;outline:none;overflow-wrap:anywhere}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-step-header]>[data-part-step-title]>[data-part-position]{color:var(--_muted);display:block;font-size:var(--slotted-font-size-sm, .8125rem);font-weight:var(--slotted-font-weight-medium, 500);line-height:var(--slotted-line-height-sm, 1.45);margin-block-end:var(--slotted-space-1, .125rem)}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-step-header]>[data-part-step-title]>[data-part-optional]{margin-inline-start:var(--slotted-space-1, .125rem);vertical-align:middle}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-step-header]>[data-part-step-description]{color:var(--_muted);font-size:var(--slotted-font-size-md, .875rem);line-height:var(--slotted-line-height-md, 1.5);margin:0}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-skeleton]{display:flex;flex-direction:column;min-inline-size:0}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]{align-items:center;border-block-start:var(--_rule-size) solid var(--_rule);display:flex;flex-wrap:wrap;gap:var(--_action-gap) var(--_gap);justify-content:space-between;padding-block-start:var(--_rhythm)}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>:is([data-part-actions-start],[data-part-actions-end]){align-items:center;display:flex;flex-wrap:wrap;gap:var(--_action-gap);min-inline-size:0}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>[data-part-actions-start]{align-items:baseline}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>[data-part-actions-end]{justify-content:flex-end;margin-inline-start:auto}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>[data-part-actions-start]>[data-ui-button][data-variant=ghost]:first-child{flex:none;max-inline-size:none;margin-inline-start:calc(var(--slotted-control-padding-inline-md, .75rem) * -1)}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>[data-part-actions-start]>[data-part-draft-status]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);line-height:var(--slotted-line-height-sm, 1.45)}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>[data-part-actions-start]>[data-part-draft-status]:empty{display:none}[data-ui-wizard] [data-part-edit]{appearance:none;background:none;border:0;border-radius:var(--slotted-radius-xs, 2px);color:var(--slotted-wizard-edit-color, var(--slotted-tone-accent-text, LinkText));cursor:pointer;font:inherit;font-weight:var(--slotted-font-weight-medium, 500);margin:0;padding:0;text-decoration-line:none;text-decoration-thickness:var(--slotted-border-width-thin, 1px);text-underline-offset:.2em}[data-ui-wizard] [data-part-edit]:hover:not(:disabled):not([aria-disabled=true]){text-decoration-line:underline}[data-ui-wizard] [data-part-edit]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui-wizard] [data-part-edit]:is(:disabled,[aria-disabled=true]){color:var(--slotted-disabled-foreground, GrayText);cursor:not-allowed}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-complete]{min-inline-size:0;outline:none}[data-ui-wizard][data-scroll=self]{block-size:100%;min-block-size:0}[data-ui-wizard][data-scroll=self]>[data-part-layout]{block-size:100%;min-block-size:0}[data-ui-wizard][data-scroll=self]>[data-part-layout]>[data-part-progress]{max-block-size:100%;overflow:auto;padding:var(--_ring-room)}[data-ui-wizard][data-scroll=self]>[data-part-layout]>[data-part-main]{block-size:100%;gap:0;min-block-size:0}[data-ui-wizard][data-scroll=self]>[data-part-layout]>[data-part-main]>:is([data-part-step],[data-part-complete]){flex:1 1 auto;min-block-size:0;overflow:auto;overscroll-behavior:contain;padding-block:var(--_ring-room) var(--_rhythm);padding-inline:var(--_ring-room)}[data-ui-wizard][data-scroll=self]>[data-part-layout]>[data-part-main]>[data-part-error]{padding-block-end:var(--_rhythm);padding-inline:var(--_ring-room)}[data-ui-wizard][data-scroll=self]>[data-part-layout]>[data-part-main]>[data-part-actions]{background-color:var(--_ground);flex:none;padding-block-end:0;padding-inline:var(--_ring-room)}@container slotted-wizard (width < 600px){[data-ui-wizard]>[data-part-layout]{gap:var(--_rhythm)}[data-ui-wizard][data-progress=start]>[data-part-layout]{grid-template-columns:minmax(0,1fr)}[data-ui-wizard][data-progress]>[data-part-layout]>[data-part-progress]{border-block-end:0;padding-block-end:0;position:static}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]{display:grid}[data-ui-wizard]>[data-part-layout]>[data-part-progress]:not([data-open])>[data-ui-stepper]{display:none}[data-ui-wizard]>[data-part-layout]>[data-part-progress][data-open]>[data-ui-stepper]{background-color:var(--slotted-surface-sunken, Canvas);border-radius:var(--slotted-control-radius, 6px);padding:var(--slotted-space-5, .75rem)}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>:is([data-part-actions-start],[data-part-actions-end]){inline-size:100%}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>[data-part-actions-end]>[data-ui-button]:not([data-variant=ghost]){flex:1 1 0}[data-ui-wizard][data-progress=start]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-step-header]>[data-part-step-title]>[data-part-position],[data-ui-wizard][data-progress=top]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-step-header]>[data-part-step-title]>[data-part-position]{block-size:1px;clip-path:inset(50%);inline-size:1px;margin:0;overflow:hidden;position:absolute;white-space:nowrap}}}\n", "@layer slotted.components{[data-ui-field][data-part-root]{--_font-size: var(--slotted-control-font-size-md, 13px);--_control-block-size: var(--slotted-control-height-md, 34px);--_row-gap: var(--slotted-field-row-gap, var(--slotted-space-3, .375rem));--_column-gap: var(--slotted-field-column-gap, var(--slotted-space-5, .75rem));align-content:start;container-name:slotted-field;container-type:inline-size;display:grid;font-family:var(--slotted-field-font-family, var(--slotted-control-font-family, sans-serif));grid-template-columns:minmax(0,var(--slotted-field-label-inline-size, 12rem)) minmax(0,1fr) auto;min-inline-size:0;row-gap:var(--_row-gap)}[data-ui-field][data-part-root]>*{grid-column:1 / -1}[data-ui-field]>[data-part-control]{min-inline-size:0}[data-ui-field][data-part-root][data-width=short]>:is([data-part-control],[data-ui]:not([data-ui-inline-message])){max-inline-size:var(--slotted-field-width-short, 6rem)}[data-ui-field][data-part-root][data-width=medium]>:is([data-part-control],[data-ui]:not([data-ui-inline-message])){max-inline-size:var(--slotted-field-width-medium, 15rem)}[data-ui-field][data-part-root][data-size=sm]{--_help-glyph: max( var(--slotted-field-icon-size-min, 14px), var(--slotted-control-icon-size-sm, 14px) );--_help-inner-size: var(--slotted-control-inner-size-sm, 22px);--_font-size: var(--slotted-control-font-size-sm, 12px);--_control-block-size: var(--slotted-control-height-sm, 30px)}[data-ui-field][data-part-root][data-size=md]{--_help-glyph: max( var(--slotted-field-icon-size-min, 14px), var(--slotted-control-icon-size-sm, 14px) );--_help-inner-size: var(--slotted-control-inner-size-sm, 22px);--_font-size: var(--slotted-control-font-size-md, 13px);--_control-block-size: var(--slotted-control-height-md, 34px)}[data-ui-field][data-part-root][data-size=lg]{--_help-glyph: max( var(--slotted-field-icon-size-min, 14px), var(--slotted-control-icon-size-md, 16px) );--_help-inner-size: var(--slotted-control-inner-size-md, 24px);--_font-size: var(--slotted-control-font-size-lg, 14px);--_control-block-size: var(--slotted-control-height-lg, 38px)}[data-ui-field]>[data-part-label],[data-ui-field]>[data-part-header]>[data-part-label]{color:var(--slotted-field-label-color, var(--slotted-text));font-size:var(--_font-size);font-weight:var(--slotted-field-label-font-weight, var(--slotted-font-weight-medium, 500));line-height:var(--slotted-field-line-height, var(--slotted-line-height-sm, 1.45));min-inline-size:0;overflow-wrap:anywhere;transition:color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-field]>[data-part-label],[data-ui-field]>[data-part-header]{grid-column:1 / -1;grid-row:1}[data-ui-field][data-part-root]:has(>[data-part-counter])>[data-part-label]{grid-column:1 / 3}[data-ui-field]>[data-part-label]>[data-part-mark],[data-ui-field]>[data-part-header]>[data-part-label]>[data-part-mark]{color:var(--slotted-field-mark-color, var(--slotted-tone-danger-text));margin-inline-start:var(--slotted-field-mark-gap, 0);overflow-wrap:normal;unicode-bidi:isolate}[data-ui-field]:is([data-necessity=optional],[data-necessity=words])>[data-part-label]>[data-part-mark],[data-ui-field]:is([data-necessity=optional],[data-necessity=words])>[data-part-header]>[data-part-label]>[data-part-mark]{color:var(--slotted-field-mark-text-color, var(--slotted-text-muted));font-size:var(--slotted-control-font-size-sm, 12px);font-weight:var(--slotted-font-weight-regular, 400)}[data-ui-field]>[data-part-header]{align-items:baseline;column-gap:var(--slotted-field-header-gap, var(--slotted-space-3, .375rem));display:flex;flex-wrap:wrap;font-size:var(--_font-size);line-height:var(--slotted-field-line-height, var(--slotted-line-height-sm, 1.45));min-inline-size:0}[data-ui-field]>[data-part-header]>[data-part-label]{flex:0 1 auto}[data-ui-field]>[data-part-header]>[data-part-action],[data-ui-field]>[data-part-header]>[data-part-counter]{margin-inline-start:auto}[data-ui-field]>[data-part-header]>[data-part-action]~[data-part-counter]{margin-inline-start:var(--slotted-space-3, .375rem)}[data-ui-field]>[data-part-header]>[data-part-help]{--_box: max( min(calc(var(--_help-glyph) + 2 * var(--slotted-space-2, .25rem)), var(--_help-inner-size)), 1lh );--slotted-icon-size: var(--_help-glyph);appearance:none;background-color:transparent;block-size:var(--_box);border:0;border-radius:var(--slotted-field-help-radius, var(--slotted-control-radius, 4px));color:var(--slotted-field-help-color, var(--slotted-text-muted));cursor:pointer;display:inline-block;flex:none;font:inherit;inline-size:var(--_box);margin-block:calc((var(--_font-size) * var(--slotted-field-line-height, var(--slotted-line-height-sm, 1.45)) - var(--_box)) / 2);margin-inline-start:calc(var(--slotted-space-1, .125rem) - var(--slotted-field-header-gap, var(--slotted-space-3, .375rem)));padding:0;position:relative;text-align:center;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-field]>[data-part-header]>[data-part-help]:before{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-min, 24px)) / 2));position:absolute}[data-ui-field]>[data-part-header]>[data-part-help]>[data-ui-icon]{vertical-align:calc(((1cap + 1ex) / 2 - var(--_help-glyph)) / 2)}[data-ui-field]>[data-part-header]>[data-part-help]:enabled:hover,[data-ui-field]>[data-part-header]>[data-part-help][data-open]{background-color:var( --slotted-field-help-surface-hover, var(--slotted-tone-secondary-subtle-hover, ButtonFace) )}[data-ui-field]>[data-part-header]>[data-part-help]:enabled:active{background-color:var( --slotted-field-help-surface-active, var(--slotted-tone-secondary-subtle-active, ButtonFace) )}[data-ui-field]>[data-part-header]>[data-part-help]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui-field]>[data-part-header]>[data-part-indicator]{align-items:center;align-self:center;column-gap:var(--slotted-space-2, .25rem);display:inline-flex;flex-wrap:wrap}[data-ui-field]>[data-part-header]>[data-part-action]{--_rest: var(--slotted-field-action-color, var(--slotted-tone-accent-text, LinkText));align-items:center;appearance:none;background:none;block-size:var(--slotted-target-min, 24px);border:0;border-radius:var(--slotted-field-action-radius, var(--slotted-control-radius, 4px));color:var(--_rest);cursor:pointer;display:inline-flex;flex:none;font-family:inherit;font-size:var(--slotted-control-font-size-sm, 12px);font-weight:var(--slotted-font-weight-regular, 400);line-height:var(--slotted-field-line-height, var(--slotted-line-height-sm, 1.45));margin-block:calc((1lh - var(--slotted-target-min, 24px)) / 2);padding:0;text-decoration-color:transparent;text-decoration-line:underline;text-decoration-thickness:from-font;text-underline-offset:.15em;transition:color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),text-decoration-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);unicode-bidi:plaintext}[data-ui-field]>[data-part-header]>[data-part-action]:not(:disabled,[aria-disabled=true]):hover{color:var( --slotted-field-action-color-hover, color-mix(in oklab, var(--_rest) 65%, var(--slotted-text, CanvasText)) );text-decoration-color:currentColor}[data-ui-field]>[data-part-header]>[data-part-action]:not(:disabled,[aria-disabled=true]):active{color:var( --slotted-field-action-color-active, color-mix(in oklab, var(--_rest) 35%, var(--slotted-text, CanvasText)) );text-decoration-color:currentColor}[data-ui-field]>[data-part-header]>[data-part-action]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px);text-decoration-color:currentColor}[data-ui-field]>[data-part-header]>[data-part-action]:is(:disabled,[aria-disabled=true]){color:var(--slotted-disabled-foreground, GrayText);cursor:not-allowed}@media(pointer:coarse){[data-ui-field]>[data-part-header]>[data-part-action]{position:relative}[data-ui-field]>[data-part-header]>[data-part-help]:before,[data-ui-field]>[data-part-header]>[data-part-action]:before{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}[data-ui-field]>[data-part-counter],[data-ui-field]>[data-part-header]>[data-part-counter]{color:var(--slotted-field-counter-color, var(--slotted-text-muted));font-size:var(--slotted-control-font-size-sm, 12px);font-variant-numeric:tabular-nums;line-height:var(--slotted-field-line-height, var(--slotted-line-height-sm, 1.45));transition:color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-field]>[data-part-counter]{align-self:end;grid-column:3;grid-row:1;justify-self:end;padding-inline-start:var(--_column-gap)}[data-ui-field]>[data-part-counter][data-invalid],[data-ui-field]>[data-part-header]>[data-part-counter][data-invalid]{color:var(--slotted-field-counter-invalid-color, var(--slotted-tone-danger-text));font-weight:var(--slotted-font-weight-medium, 500)}[data-ui-field]>[data-ui-inline-message]:not([data-reserve]):has([data-part-text]:empty){display:none}[data-ui-field][data-part-root]>[data-ui-inline-message]{font-size:var(--slotted-font-size-xs, .75rem)}[data-ui-field][data-part-root]>[data-ui-inline-message][data-tone=danger],[data-ui-field][data-part-root]>[data-ui-inline-message][data-tone=success]{font-weight:var(--slotted-font-weight-medium, 500)}@container slotted-field (min-width: 320px){[data-ui-field][data-part-root][data-label-placement=side]>*{align-self:start;grid-column:2 / 3}[data-ui-field][data-part-root][data-label-placement=side]>[data-part-label],[data-ui-field][data-part-root][data-label-placement=side]>[data-part-header]{grid-column:1;grid-row:1;padding-block-start:max(0px,calc((var(--_control-block-size) - 1lh) / 2));padding-inline-end:var(--_column-gap)}[data-ui-field][data-part-root][data-label-placement=side]>[data-part-counter]{grid-column:1;grid-row:2;justify-self:end;padding-inline:0 var(--_column-gap)}[data-ui-field][data-part-root][data-label-placement=side]>[data-part-header]>[data-part-counter]{flex-basis:100%;margin-inline-start:0;text-align:end}}[data-ui-field][data-part-root][data-disabled]>[data-part-label],[data-ui-field][data-part-root][data-disabled]>[data-part-counter],[data-ui-field][data-part-root][data-disabled]>[data-part-header]>[data-part-label],[data-ui-field][data-part-root][data-disabled]>[data-part-header]>[data-part-counter]{color:var(--slotted-disabled-foreground)}[data-ui-field][data-part-root][data-disabled]>[data-part-label]>[data-part-mark],[data-ui-field][data-part-root][data-disabled]>[data-part-header]>[data-part-label]>[data-part-mark]{color:var(--slotted-disabled-foreground)}[data-ui-field][data-part-root][data-disabled]>[data-part-counter][data-invalid],[data-ui-field][data-part-root][data-disabled]>[data-part-header]>[data-part-counter][data-invalid]{color:var(--slotted-disabled-foreground);font-weight:var(--slotted-font-weight-regular, 400)}}\n", "@layer slotted.components{[data-ui-visually-hidden]:not([data-focusable]:focus-within){block-size:1px;border:0;clip-path:inset(50%);inline-size:1px;inset-block-start:0;inset-inline-start:0;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap}}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => SlAlert), selector: "[slAlert]", inputs: ["tone", "variant", "reach", "live", "actionsPlacement", "hideIcon", "dismissible", "messages", "open", "defaultOpen", "restoreFocus"], outputs: ["openChange"], exportAs: ["slAlert"] }, { kind: "directive", type: i0.forwardRef(() => SlAlertContent), selector: "[slAlertContent]", exportAs: ["slAlertContent"] }, { kind: "directive", type: i0.forwardRef(() => SlAlertDescription), selector: "[slAlertDescription]", exportAs: ["slAlertDescription"] }, { kind: "component", type: i0.forwardRef(() => SlAlertTitle), selector: "[slAlertTitle]", exportAs: ["slAlertTitle"] }, { kind: "component", type: i0.forwardRef(() => SlButton), selector: "button[slButton]", inputs: ["disabled", "focusableWhenDisabled", "fullWidth", "justify", "loading", "loadingDelay", "messages", "size", "tone", "type", "variant"], exportAs: ["slButton"] }, { kind: "component", type: i0.forwardRef(() => SlGlyph), selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: i0.forwardRef(() => SlIcon), selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }, { kind: "component", type: i0.forwardRef(() => SlSkeleton), selector: "[slSkeleton]", inputs: ["shape", "size", "animation", "loading", "inlineSize", "blockSize"], exportAs: ["slSkeleton"] }, { kind: "component", type: i0.forwardRef(() => SlStepper), selector: "[slStepper]", inputs: ["step", "defaultStep", "messages", "orientation", "labelPlacement", "navigation", "linear", "autoComplete"], outputs: ["stepChange"], exportAs: ["slStepper"] }, { kind: "directive", type: i0.forwardRef(() => SlStepperList), selector: "ol[slStepperList]", exportAs: ["slStepperList"] }, { kind: "component", type: i0.forwardRef(() => SlStepperStep), selector: "li[slStepperStep]", inputs: ["label", "description", "complete", "disabled", "invalid", "loading", "href"], exportAs: ["slStepperStep"] }, { kind: "component", type: i0.forwardRef(() => SlTag), selector: "[slTag]", inputs: ["tone", "variant", "size", "shape", "disabled", "removable", "removeDisabled", "messages"], outputs: ["remove"], exportAs: ["slTag"] }, { kind: "directive", type: i0.forwardRef(() => SlWizardNext), selector: "button[slWizardNext]" }, { kind: "directive", type: i0.forwardRef(() => SlWizardPrevious), selector: "button[slWizardPrevious]" }, { kind: "directive", type: i0.forwardRef(() => SlWizardCancel), selector: "button[slWizardCancel]" }, { kind: "directive", type: i0.forwardRef(() => SlWizardSaveDraft), selector: "button[slWizardSaveDraft]" }, { kind: "directive", type: i0.forwardRef(() => SlWizardSkip), selector: "button[slWizardSkip]" }, { kind: "component", type: i0.forwardRef(() => SlWizardDraftStatus), selector: "[slWizardDraftStatus]" }, { kind: "directive", type: i0.forwardRef(() => SlWizardActionsStart), selector: "[slWizardActionsStart]" }, { kind: "directive", type: i0.forwardRef(() => SlWizardActionsEnd), selector: "[slWizardActionsEnd]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1310
|
+
`, isInline: true, styles: ["@layer slotted.components{[data-ui-wizard]{--_text: var(--slotted-text, CanvasText);--_muted: var(--slotted-text-muted, GrayText);--_rule: var(--slotted-wizard-border, var(--slotted-border-subtle, ButtonBorder));--_rule-size: var(--slotted-border-width-thin, 1px);--_progress-size: var(--slotted-wizard-progress-inline-size, 14rem);--_gap: var(--slotted-wizard-gap, var(--slotted-space-9, 2rem));--_rhythm: var(--slotted-wizard-rhythm, var(--slotted-space-8, 1.5rem));--_header-gap: var(--slotted-wizard-header-gap, var(--slotted-space-6, 1rem));--_action-gap: var(--slotted-control-gap-md, var(--slotted-space-3, .375rem));--_ground: var(--slotted-page-ground, var(--slotted-surface, Canvas));--_ring-room: calc( var(--slotted-focus-ring-width, 2px) + var(--slotted-focus-ring-offset, 2px) );color:var(--_text);container-name:slotted-wizard;container-type:inline-size;display:flex;flex-direction:column;font-family:var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif);min-inline-size:0}[data-ui-wizard]>[data-part-layout]{display:grid;gap:var(--_gap);grid-template-columns:minmax(0,1fr);min-inline-size:0}[data-ui-wizard][data-progress=start]>[data-part-layout]{align-items:start;grid-template-columns:var(--_progress-size) minmax(0,1fr)}[data-ui-wizard][data-progress=none]>[data-part-layout]>[data-part-progress]{display:none}[data-ui-wizard]>[data-part-layout]>[data-part-progress]{display:flex;flex-direction:column;gap:var(--slotted-space-4, .5rem);min-inline-size:0}[data-ui-wizard][data-progress=start]:not([data-scroll=self])>[data-part-layout]>[data-part-progress]{inset-block-start:var(--slotted-page-sticky-top, 0px);position:sticky}[data-ui-wizard][data-progress=top]>[data-part-layout]>[data-part-progress]{border-block-end:var(--_rule-size) solid var(--_rule);padding-block-end:var(--_rhythm)}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]{align-items:center;appearance:none;background-color:var(--slotted-control-surface, Field);border:var(--slotted-control-border-width, 1px) solid var(--slotted-control-border-color, ButtonBorder);border-radius:var(--slotted-control-radius, 6px);box-shadow:var(--slotted-control-shadow, none);color:inherit;column-gap:var(--slotted-space-5, .75rem);cursor:pointer;display:none;font:inherit;grid-template-areas:\"position icon\" \"track icon\";grid-template-columns:minmax(0,1fr) auto;inline-size:100%;margin:0;min-block-size:var(--slotted-control-height-lg, 2.75rem);padding-block:var(--slotted-space-4, .5rem);padding-inline:var(--slotted-control-padding-inline-md, .75rem);row-gap:var(--slotted-space-3, .375rem);text-align:start;transition:border-color var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard, ease)),box-shadow var(--slotted-control-transition-duration, var(--slotted-duration-short)) var(--slotted-control-transition-easing, var(--slotted-easing-standard, ease))}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]:hover:not(:disabled):not([data-disabled]){border-color:var( --slotted-wizard-toggle-hover-border-color, var(--slotted-tone-accent-border) )}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]:active:not(:disabled):not([data-disabled]){background-color:var( --slotted-wizard-toggle-active-background, var(--slotted-tone-secondary-subtle-hover) )}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]:focus-visible{box-shadow:var(--slotted-control-shadow-focus-geometry, 0 1px 4px -1px) var(--slotted-focus-ring-color, Highlight);outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]>[data-part-progress-position]{font-size:var(--slotted-font-size-sm, .8125rem);font-weight:var(--slotted-font-weight-medium, 500);grid-area:position;line-height:var(--slotted-line-height-sm, 1.45)}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]>[data-part-progress-track]{align-items:center;block-size:var(--slotted-space-2, .25rem);display:flex;gap:var(--slotted-space-1, .125rem);grid-area:track;min-inline-size:0}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]>[data-part-progress-track]>[data-part-progress-segment]{background-color:var( --slotted-wizard-segment-color, var(--slotted-control-border-color, ButtonBorder) );block-size:100%;border-radius:var(--slotted-radius-full, 9999px);flex:1 1 0;transition:background-color var(--slotted-duration-medium) var(--slotted-easing-standard, ease)}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]>[data-part-progress-track]>[data-part-progress-segment]:is([data-complete],[data-current]){background-color:var( --slotted-wizard-segment-color-complete, var(--slotted-tone-accent-solid, Highlight) )}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]>[data-part-progress-track]>[data-part-progress-segment][data-invalid]{background-color:var( --slotted-wizard-segment-color-invalid, var(--slotted-tone-danger-solid, Mark) )}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]>[data-ui-icon]{color:var(--_muted);grid-area:icon;transition:rotate var(--slotted-duration-short) var(--slotted-easing-standard, ease)}[data-ui-wizard]>[data-part-layout]>[data-part-progress][data-open]>[data-part-progress-toggle]>[data-ui-icon]{rotate:180deg}[data-ui-wizard]>[data-part-layout]>[data-part-main]{display:flex;flex-direction:column;gap:var(--_rhythm);min-inline-size:0}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-error]{min-inline-size:0}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-step]{display:flex;flex-direction:column;gap:var(--_header-gap);min-inline-size:0}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-step-header]{display:flex;flex-direction:column;gap:var(--slotted-space-2, .25rem);min-inline-size:0}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-step-header]>[data-part-step-title]{font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );font-size:var(--slotted-font-size-2xl, 1.25rem);font-weight:var(--slotted-font-weight-semibold, 600);line-height:var(--slotted-line-height-2xl, 1.4);margin:0;outline:none;overflow-wrap:anywhere}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-step-header]>[data-part-step-title]>[data-part-position]{color:var(--_muted);display:block;font-size:var(--slotted-font-size-sm, .8125rem);font-weight:var(--slotted-font-weight-medium, 500);line-height:var(--slotted-line-height-sm, 1.45);margin-block-end:var(--slotted-space-1, .125rem)}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-step-header]>[data-part-step-title]>[data-part-optional]{margin-inline-start:var(--slotted-space-1, .125rem);vertical-align:middle}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-step-header]>[data-part-step-description]{color:var(--_muted);font-size:var(--slotted-font-size-md, .875rem);line-height:var(--slotted-line-height-md, 1.5);margin:0}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-skeleton]{display:flex;flex-direction:column;min-inline-size:0}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]{align-items:center;border-block-start:var(--_rule-size) solid var(--_rule);display:flex;flex-wrap:wrap;gap:var(--_action-gap) var(--_gap);justify-content:space-between;padding-block-start:var(--_rhythm)}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>:is([data-part-actions-start],[data-part-actions-end]){align-items:center;display:flex;flex-wrap:wrap;gap:var(--_action-gap);min-inline-size:0}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>[data-part-actions-start]{align-items:baseline}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>[data-part-actions-end]{justify-content:flex-end;margin-inline-start:auto}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>[data-part-actions-start]>[data-ui-button][data-variant=ghost]:first-child{flex:none;max-inline-size:none;margin-inline-start:calc(var(--slotted-control-padding-inline-md, .75rem) * -1)}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>[data-part-actions-start]>[data-part-draft-status]{color:var(--_muted);font-size:var(--slotted-font-size-sm, .8125rem);line-height:var(--slotted-line-height-sm, 1.45)}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>[data-part-actions-start]>[data-part-draft-status]:empty{display:none}[data-ui-wizard] [data-part-edit]{appearance:none;background:none;border:0;border-radius:var(--slotted-radius-xs, 2px);color:var(--slotted-wizard-edit-color, var(--slotted-tone-accent-text, LinkText));cursor:pointer;font:inherit;font-weight:var(--slotted-font-weight-medium, 500);margin:0;padding:0;text-decoration-line:none;text-decoration-thickness:var(--slotted-border-width-thin, 1px);text-underline-offset:.2em}[data-ui-wizard] [data-part-edit]:hover:not(:disabled):not([aria-disabled=true]){text-decoration-line:underline}[data-ui-wizard] [data-part-edit]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui-wizard] [data-part-edit]:is(:disabled,[aria-disabled=true]){color:var(--slotted-disabled-foreground, GrayText);cursor:not-allowed}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-complete]{min-inline-size:0;outline:none}[data-ui-wizard][data-scroll=self]{block-size:100%;min-block-size:0}[data-ui-wizard][data-scroll=self]>[data-part-layout]{block-size:100%;min-block-size:0}[data-ui-wizard][data-scroll=self]>[data-part-layout]>[data-part-progress]{max-block-size:100%;overflow:auto;padding:var(--_ring-room)}[data-ui-wizard][data-scroll=self]>[data-part-layout]>[data-part-main]{block-size:100%;gap:0;min-block-size:0}[data-ui-wizard][data-scroll=self]>[data-part-layout]>[data-part-main]>:is([data-part-step],[data-part-complete]){flex:1 1 auto;min-block-size:0;overflow:auto;overscroll-behavior:contain;padding-block:var(--_ring-room) var(--_rhythm);padding-inline:var(--_ring-room)}[data-ui-wizard][data-scroll=self]>[data-part-layout]>[data-part-main]>[data-part-error]{padding-block-end:var(--_rhythm);padding-inline:var(--_ring-room)}[data-ui-wizard][data-scroll=self]>[data-part-layout]>[data-part-main]>[data-part-actions]{background-color:var(--_ground);flex:none;padding-block-end:0;padding-inline:var(--_ring-room)}@container slotted-wizard (width < 600px){[data-ui-wizard]>[data-part-layout]{gap:var(--_rhythm)}[data-ui-wizard][data-progress=start]>[data-part-layout]{grid-template-columns:minmax(0,1fr)}[data-ui-wizard][data-progress]>[data-part-layout]>[data-part-progress]{border-block-end:0;padding-block-end:0;position:static}[data-ui-wizard]>[data-part-layout]>[data-part-progress]>[data-part-progress-toggle]{display:grid}[data-ui-wizard]>[data-part-layout]>[data-part-progress]:not([data-open])>[data-ui-stepper]{display:none}[data-ui-wizard]>[data-part-layout]>[data-part-progress][data-open]>[data-ui-stepper]{background-color:var(--slotted-surface-sunken, Canvas);border-radius:var(--slotted-control-radius, 6px);padding:var(--slotted-space-5, .75rem)}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>:is([data-part-actions-start],[data-part-actions-end]){inline-size:100%}[data-ui-wizard]>[data-part-layout]>[data-part-main]>[data-part-actions]>[data-part-actions-end]>[data-ui-button]:not([data-variant=ghost]){flex:1 1 0}[data-ui-wizard][data-progress=start]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-step-header]>[data-part-step-title]>[data-part-position],[data-ui-wizard][data-progress=top]>[data-part-layout]>[data-part-main]>[data-part-step]>[data-part-step-header]>[data-part-step-title]>[data-part-position]{block-size:1px;clip-path:inset(50%);inline-size:1px;margin:0;overflow:hidden;position:absolute;white-space:nowrap}}}\n", "@layer slotted.components{[data-ui-field][data-part-root]{--_font-size: var(--slotted-control-font-size-md, 13px);--_control-block-size: var(--slotted-control-height-md, 34px);--_row-gap: var(--slotted-field-row-gap, var(--slotted-space-3, .375rem));--_column-gap: var(--slotted-field-column-gap, var(--slotted-space-5, .75rem));align-content:start;container-name:slotted-field;container-type:inline-size;display:grid;font-family:var(--slotted-field-font-family, var(--slotted-control-font-family, sans-serif));grid-template-columns:minmax(0,var(--slotted-field-label-inline-size, 12rem)) minmax(0,1fr) auto;min-inline-size:0;row-gap:var(--_row-gap)}[data-ui-field][data-part-root]>*{grid-column:1 / -1}[data-ui-field]>[data-part-control]{min-inline-size:0}[data-ui-field][data-part-root][data-width=short]>:is([data-part-control],[data-ui]:not([data-ui-inline-message])){max-inline-size:var(--slotted-field-width-short, 6rem)}[data-ui-field][data-part-root][data-width=medium]>:is([data-part-control],[data-ui]:not([data-ui-inline-message])){max-inline-size:var(--slotted-field-width-medium, 15rem)}[data-ui-field][data-part-root][data-size=sm]{--_help-glyph: max( var(--slotted-field-icon-size-min, 14px), var(--slotted-control-icon-size-sm, 14px) );--_help-inner-size: var(--slotted-control-inner-size-sm, 22px);--_font-size: var(--slotted-control-font-size-sm, 12px);--_control-block-size: var(--slotted-control-height-sm, 30px)}[data-ui-field][data-part-root][data-size=md]{--_help-glyph: max( var(--slotted-field-icon-size-min, 14px), var(--slotted-control-icon-size-sm, 14px) );--_help-inner-size: var(--slotted-control-inner-size-sm, 22px);--_font-size: var(--slotted-control-font-size-md, 13px);--_control-block-size: var(--slotted-control-height-md, 34px)}[data-ui-field][data-part-root][data-size=lg]{--_help-glyph: max( var(--slotted-field-icon-size-min, 14px), var(--slotted-control-icon-size-md, 16px) );--_help-inner-size: var(--slotted-control-inner-size-md, 24px);--_font-size: var(--slotted-control-font-size-lg, 14px);--_control-block-size: var(--slotted-control-height-lg, 38px)}[data-ui-field]>[data-part-label],[data-ui-field]>[data-part-header]>[data-part-label]{color:var(--slotted-field-label-color, var(--slotted-text));font-size:var(--_font-size);font-weight:var(--slotted-field-label-font-weight, var(--slotted-font-weight-medium, 500));line-height:var(--slotted-field-line-height, var(--slotted-line-height-sm, 1.45));min-inline-size:0;overflow-wrap:anywhere;transition:color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-field]>[data-part-label],[data-ui-field]>[data-part-header]{grid-column:1 / -1;grid-row:1}[data-ui-field][data-part-root]:has(>[data-part-counter])>[data-part-label]{grid-column:1 / 3}[data-ui-field]>[data-part-label]>[data-part-mark],[data-ui-field]>[data-part-header]>[data-part-label]>[data-part-mark]{color:var(--slotted-field-mark-color, var(--slotted-tone-danger-text));margin-inline-start:var(--slotted-field-mark-gap, 0);overflow-wrap:normal;unicode-bidi:isolate}[data-ui-field]:is([data-necessity=optional],[data-necessity=words])>[data-part-label]>[data-part-mark],[data-ui-field]:is([data-necessity=optional],[data-necessity=words])>[data-part-header]>[data-part-label]>[data-part-mark]{color:var(--slotted-field-mark-text-color, var(--slotted-text-muted));font-size:var(--slotted-control-font-size-sm, 12px);font-weight:var(--slotted-font-weight-regular, 400)}[data-ui-field]>[data-part-header]{align-items:baseline;column-gap:var(--slotted-field-header-gap, var(--slotted-space-3, .375rem));display:flex;flex-wrap:wrap;font-size:var(--_font-size);line-height:var(--slotted-field-line-height, var(--slotted-line-height-sm, 1.45));min-inline-size:0}[data-ui-field]>[data-part-header]>[data-part-label]{flex:0 1 auto}[data-ui-field]>[data-part-header]>[data-part-action],[data-ui-field]>[data-part-header]>[data-part-counter]{margin-inline-start:auto}[data-ui-field]>[data-part-header]>[data-part-action]~[data-part-counter]{margin-inline-start:var(--slotted-space-3, .375rem)}[data-ui-field]>[data-part-header]>[data-part-help]{--_box: max( min(calc(var(--_help-glyph) + 2 * var(--slotted-space-2, .25rem)), var(--_help-inner-size)), 1lh );--slotted-icon-size: var(--_help-glyph);appearance:none;background-color:transparent;block-size:var(--_box);border:0;border-radius:var(--slotted-field-help-radius, var(--slotted-control-radius, 4px));color:var(--slotted-field-help-color, var(--slotted-text-muted));cursor:pointer;display:inline-block;flex:none;font:inherit;inline-size:var(--_box);margin-block:calc((var(--_font-size) * var(--slotted-field-line-height, var(--slotted-line-height-sm, 1.45)) - var(--_box)) / 2);margin-inline-start:calc(var(--slotted-space-1, .125rem) - var(--slotted-field-header-gap, var(--slotted-space-3, .375rem)));padding:0;position:relative;text-align:center;transition:background-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-field]>[data-part-header]>[data-part-help]:before{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-min, 24px)) / 2));position:absolute}[data-ui-field]>[data-part-header]>[data-part-help]>[data-ui-icon]{vertical-align:calc(((1cap + 1ex) / 2 - var(--_help-glyph)) / 2)}[data-ui-field]>[data-part-header]>[data-part-help]:enabled:hover,[data-ui-field]>[data-part-header]>[data-part-help][data-open]{background-color:var( --slotted-field-help-surface-hover, var(--slotted-tone-secondary-subtle-hover, ButtonFace) )}[data-ui-field]>[data-part-header]>[data-part-help]:enabled:active{background-color:var( --slotted-field-help-surface-active, var(--slotted-tone-secondary-subtle-active, ButtonFace) )}[data-ui-field]>[data-part-header]>[data-part-help]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px)}[data-ui-field]>[data-part-header]>[data-part-indicator]{align-items:center;align-self:center;column-gap:var(--slotted-space-2, .25rem);display:inline-flex;flex-wrap:wrap}[data-ui-field]>[data-part-header]>[data-part-action]{--_rest: var(--slotted-field-action-color, var(--slotted-tone-accent-text, LinkText));align-items:center;appearance:none;background:none;block-size:var(--slotted-target-min, 24px);border:0;border-radius:var(--slotted-field-action-radius, var(--slotted-control-radius, 4px));color:var(--_rest);cursor:pointer;display:inline-flex;flex:none;font-family:inherit;font-size:var(--slotted-control-font-size-sm, 12px);font-weight:var(--slotted-font-weight-regular, 400);line-height:var(--slotted-field-line-height, var(--slotted-line-height-sm, 1.45));margin-block:calc((1lh - var(--slotted-target-min, 24px)) / 2);padding:0;text-decoration-color:transparent;text-decoration-line:underline;text-decoration-thickness:from-font;text-underline-offset:.15em;transition:color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing),text-decoration-color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing);unicode-bidi:plaintext}[data-ui-field]>[data-part-header]>[data-part-action]:not(:disabled,[aria-disabled=true]):hover{color:var( --slotted-field-action-color-hover, color-mix(in oklab, var(--_rest) 65%, var(--slotted-text, CanvasText)) );text-decoration-color:currentColor}[data-ui-field]>[data-part-header]>[data-part-action]:not(:disabled,[aria-disabled=true]):active{color:var( --slotted-field-action-color-active, color-mix(in oklab, var(--_rest) 35%, var(--slotted-text, CanvasText)) );text-decoration-color:currentColor}[data-ui-field]>[data-part-header]>[data-part-action]:focus-visible{outline:var(--slotted-focus-ring-width, 2px) solid var(--slotted-focus-ring-color, Highlight);outline-offset:var(--slotted-focus-ring-offset, 2px);text-decoration-color:currentColor}[data-ui-field]>[data-part-header]>[data-part-action]:is(:disabled,[aria-disabled=true]){color:var(--slotted-disabled-foreground, GrayText);cursor:not-allowed}@media(pointer:coarse){[data-ui-field]>[data-part-header]>[data-part-action]{position:relative}[data-ui-field]>[data-part-header]>[data-part-help]:before,[data-ui-field]>[data-part-header]>[data-part-action]:before{content:\"\";inset:min(0px,calc((100% - var(--slotted-target-comfortable, 44px)) / 2));position:absolute}}[data-ui-field]>[data-part-counter],[data-ui-field]>[data-part-header]>[data-part-counter]{color:var(--slotted-field-counter-color, var(--slotted-text-muted));font-size:var(--slotted-control-font-size-sm, 12px);font-variant-numeric:tabular-nums;line-height:var(--slotted-field-line-height, var(--slotted-line-height-sm, 1.45));transition:color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-field]>[data-part-counter]{align-self:end;grid-column:3;grid-row:1;justify-self:end;padding-inline-start:var(--_column-gap)}[data-ui-field]>[data-part-counter][data-invalid],[data-ui-field]>[data-part-header]>[data-part-counter][data-invalid]{color:var(--slotted-field-counter-invalid-color, var(--slotted-tone-danger-text));font-weight:var(--slotted-font-weight-medium, 500)}[data-ui-field]>[data-ui-inline-message]:not([data-reserve]):has([data-part-text]:empty){display:none}[data-ui-field][data-part-root]>[data-ui-inline-message]{font-size:var(--slotted-font-size-xs, .75rem)}[data-ui-field][data-part-root]>[data-ui-inline-message][data-tone=danger],[data-ui-field][data-part-root]>[data-ui-inline-message][data-tone=success]{font-weight:var(--slotted-font-weight-medium, 500)}@container slotted-field (min-width: 320px){[data-ui-field][data-part-root][data-label-placement=side]>*{align-self:start;grid-column:2 / 3}[data-ui-field][data-part-root][data-label-placement=side]>[data-part-label],[data-ui-field][data-part-root][data-label-placement=side]>[data-part-header]{grid-column:1;grid-row:1;padding-block-start:max(0px,calc((var(--_control-block-size) - 1lh) / 2));padding-inline-end:var(--_column-gap)}[data-ui-field][data-part-root][data-label-placement=side]>[data-part-counter]{grid-column:1;grid-row:2;justify-self:end;padding-inline:0 var(--_column-gap)}[data-ui-field][data-part-root][data-label-placement=side]>[data-part-header]>[data-part-counter]{flex-basis:100%;margin-inline-start:0;text-align:end}}[data-ui-field][data-part-root][data-disabled]>[data-part-label],[data-ui-field][data-part-root][data-disabled]>[data-part-counter],[data-ui-field][data-part-root][data-disabled]>[data-part-header]>[data-part-label],[data-ui-field][data-part-root][data-disabled]>[data-part-header]>[data-part-counter]{color:var(--slotted-disabled-foreground)}[data-ui-field][data-part-root][data-disabled]>[data-part-label]>[data-part-mark],[data-ui-field][data-part-root][data-disabled]>[data-part-header]>[data-part-label]>[data-part-mark]{color:var(--slotted-disabled-foreground)}[data-ui-field][data-part-root][data-disabled]>[data-part-counter][data-invalid],[data-ui-field][data-part-root][data-disabled]>[data-part-header]>[data-part-counter][data-invalid]{color:var(--slotted-disabled-foreground);font-weight:var(--slotted-font-weight-regular, 400)}}\n", "@layer slotted.components{[data-ui-visually-hidden]:not([data-focusable]:focus-within){block-size:1px;border:0;clip-path:inset(50%);inline-size:1px;inset-block-start:0;inset-inline-start:0;margin:-1px;overflow:hidden;padding:0;position:absolute;white-space:nowrap}}\n"], dependencies: [{ kind: "directive", type: i0.forwardRef(() => NgTemplateOutlet), selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: i0.forwardRef(() => SlAlert), selector: "[slAlert]", inputs: ["tone", "variant", "reach", "live", "actionsPlacement", "hideIcon", "dismissible", "messages", "open", "defaultOpen", "restoreFocus"], outputs: ["openChange"], exportAs: ["slAlert"] }, { kind: "directive", type: i0.forwardRef(() => SlAlertContent), selector: "[slAlertContent]", exportAs: ["slAlertContent"] }, { kind: "directive", type: i0.forwardRef(() => SlAlertDescription), selector: "[slAlertDescription]", exportAs: ["slAlertDescription"] }, { kind: "component", type: i0.forwardRef(() => SlAlertTitle), selector: "[slAlertTitle]", exportAs: ["slAlertTitle"] }, { kind: "component", type: i0.forwardRef(() => SlButton), selector: "button[slButton]", inputs: ["disabled", "focusableWhenDisabled", "fullWidth", "inline", "flush", "justify", "widest", "loading", "loadingDelay", "messages", "size", "tone", "type", "variant"], exportAs: ["slButton"] }, { kind: "component", type: i0.forwardRef(() => SlGlyph), selector: "svg[slGlyph]", inputs: ["name", "solid"] }, { kind: "component", type: i0.forwardRef(() => SlIcon), selector: "[slIcon]", inputs: ["directional", "label", "size", "tone"], exportAs: ["slIcon"] }, { kind: "component", type: i0.forwardRef(() => SlSkeleton), selector: "[slSkeleton]", inputs: ["shape", "size", "animation", "loading", "inlineSize", "blockSize"], exportAs: ["slSkeleton"] }, { kind: "component", type: i0.forwardRef(() => SlStepper), selector: "[slStepper]", inputs: ["step", "defaultStep", "messages", "orientation", "labelPlacement", "navigation", "linear", "autoComplete"], outputs: ["stepChange"], exportAs: ["slStepper"] }, { kind: "directive", type: i0.forwardRef(() => SlStepperList), selector: "ol[slStepperList]", exportAs: ["slStepperList"] }, { kind: "component", type: i0.forwardRef(() => SlStepperStep), selector: "li[slStepperStep]", inputs: ["label", "description", "complete", "disabled", "invalid", "loading", "href"], exportAs: ["slStepperStep"] }, { kind: "component", type: i0.forwardRef(() => SlTag), selector: "[slTag]", inputs: ["tone", "variant", "size", "shape", "disabled", "removable", "removeDisabled", "messages"], outputs: ["remove"], exportAs: ["slTag"] }, { kind: "directive", type: i0.forwardRef(() => SlWizardNext), selector: "button[slWizardNext]" }, { kind: "directive", type: i0.forwardRef(() => SlWizardPrevious), selector: "button[slWizardPrevious]" }, { kind: "directive", type: i0.forwardRef(() => SlWizardCancel), selector: "button[slWizardCancel]" }, { kind: "directive", type: i0.forwardRef(() => SlWizardSaveDraft), selector: "button[slWizardSaveDraft]" }, { kind: "directive", type: i0.forwardRef(() => SlWizardSkip), selector: "button[slWizardSkip]" }, { kind: "component", type: i0.forwardRef(() => SlWizardDraftStatus), selector: "[slWizardDraftStatus]" }, { kind: "directive", type: i0.forwardRef(() => SlWizardActionsStart), selector: "[slWizardActionsStart]" }, { kind: "directive", type: i0.forwardRef(() => SlWizardActionsEnd), selector: "[slWizardActionsEnd]" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
1311
1311
|
}
|
|
1312
1312
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlWizard, decorators: [{
|
|
1313
1313
|
type: Component,
|