@slotted/angular 0.1.0-beta.33 → 0.1.0-beta.35
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 +56 -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 +2 -1
- package/docs/command-palette.md +1 -1
- package/docs/dashboard-grid.json +11 -3
- package/docs/dashboard-grid.md +3 -2
- package/docs/description-list.json +9 -1
- package/docs/description-list.md +2 -1
- package/docs/drawer.examples.md +167 -165
- package/docs/drawer.json +8 -8
- package/docs/entity-picker.json +3 -2
- package/docs/entity-picker.md +2 -2
- package/docs/floating-panel.json +203 -0
- package/docs/floating-panel.md +97 -0
- package/docs/form.json +1 -1
- 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 +13 -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/progress-indicator.json +39 -1
- package/docs/progress-indicator.md +6 -1
- package/docs/prompt-composer.json +1 -1
- package/docs/radio-group.json +18 -1
- package/docs/radio-group.md +3 -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/slider.json +8 -0
- package/docs/slider.md +2 -1
- package/docs/sparkline.json +416 -1
- package/docs/sparkline.md +186 -2
- 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 +1 -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 +84 -28
- 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-drawer.mjs +2 -2
- package/fesm2022/slotted-angular-drawer.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-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-form.mjs +2 -2
- package/fesm2022/slotted-angular-form.mjs.map +1 -1
- 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-loading-overlay.mjs +2 -2
- package/fesm2022/slotted-angular-loading-overlay.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 +49 -6
- package/fesm2022/slotted-angular-page.mjs.map +1 -1
- package/fesm2022/slotted-angular-progress-indicator.mjs +106 -7
- package/fesm2022/slotted-angular-progress-indicator.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-radio-group.mjs +45 -12
- package/fesm2022/slotted-angular-radio-group.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-sparkline.mjs +295 -4
- package/fesm2022/slotted-angular-sparkline.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 +77 -16
- 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-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-upload.mjs +2 -2
- package/fesm2022/slotted-angular-upload.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 +47 -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 +43 -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-progress-indicator.d.ts +46 -2
- package/types/slotted-angular-progress-indicator.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-radio-group.d.ts +22 -4
- package/types/slotted-angular-radio-group.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-sparkline.d.ts +86 -4
- package/types/slotted-angular-sparkline.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","/**\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uBAAA,CAAA,MAAA,EAAA,aAAA,EAAA,EAAA,CAAA,iBAAA,CAAA,IAAA,EAAA,CAAA;;2FAoB1B,MAAM,EAAA,UAAA,EAAA,CAAA;kBAxBlB,SAAS;AACE,YAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,UAAU,EAAA,UAAA,EACR,IAAI,EAAA,QAAA,EACN,QAAQ,YACR,2BAA2B,EAAA,eAAA,EAEpB,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,IAAA,EAC/B;AACJ,wBAAA,SAAS,EAAE,YAAY;AACvB,wBAAA,oBAAoB,EAAE,EAAE;AACxB,wBAAA,WAAW,EAAE,MAAM;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,kBAAkB,EAAE,gBAAgB;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;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,KAA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