@slotted/angular 0.1.0-beta.27 → 0.1.0-beta.28
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/field-group.json +8 -0
- package/docs/field-group.md +1 -0
- package/docs/guidelines/forms.md +1 -1
- package/fesm2022/slotted-angular-field-group.mjs +24 -11
- package/fesm2022/slotted-angular-field-group.mjs.map +1 -1
- package/fesm2022/slotted-angular-field.mjs +16 -8
- package/fesm2022/slotted-angular-field.mjs.map +1 -1
- package/fesm2022/slotted-angular-wizard.mjs +2 -2
- package/fesm2022/slotted-angular-wizard.mjs.map +1 -1
- package/package.json +3 -3
- package/types/slotted-angular-field-group.d.ts +10 -2
- package/types/slotted-angular-field-group.d.ts.map +1 -1
- package/types/slotted-angular-field.d.ts.map +1 -1
package/docs/field-group.json
CHANGED
|
@@ -27,6 +27,7 @@
|
|
|
27
27
|
"fieldGroup": {
|
|
28
28
|
"nativeElement": "fieldset",
|
|
29
29
|
"defaults": {
|
|
30
|
+
"kind": "question",
|
|
30
31
|
"size": "md",
|
|
31
32
|
"orientation": "vertical",
|
|
32
33
|
"necessity": "mark"
|
|
@@ -112,6 +113,13 @@
|
|
|
112
113
|
"appliesTo": "slFieldGroup",
|
|
113
114
|
"description": "How the set’s necessity is said on its legend — an asterisk, (optional) on an optional set only, both words, or nothing — and the style provided to every field inside"
|
|
114
115
|
},
|
|
116
|
+
{
|
|
117
|
+
"name": "kind",
|
|
118
|
+
"type": "'question' | 'section'",
|
|
119
|
+
"defaultValue": "question",
|
|
120
|
+
"appliesTo": "slFieldGroup",
|
|
121
|
+
"description": "A section names a topic rather than asking something, so its legend draws no necessity and its fields keep the style the application set"
|
|
122
|
+
},
|
|
115
123
|
{
|
|
116
124
|
"name": "messages",
|
|
117
125
|
"type": "Partial<FieldMessages>",
|
package/docs/field-group.md
CHANGED
|
@@ -47,6 +47,7 @@ Excerpt — not a complete module
|
|
|
47
47
|
| `size` | `'sm' \| 'md' \| 'lg'` | md | slFieldGroup | The type step of the legend, and the step provided to every field inside. The legend reads the control type scale one step above the labels under it, so a group in a dense table shrinks with them |
|
|
48
48
|
| `orientation` | `'vertical' \| 'horizontal'` | vertical | slFieldGroup | How the fields inside flow. A row wraps rather than squeezing, so a field keeps enough width to hold what is being typed into it |
|
|
49
49
|
| `necessity` | `'mark' \| 'optional' \| 'words' \| 'none'` | mark | slFieldGroup | How the set’s necessity is said on its legend — an asterisk, (optional) on an optional set only, both words, or nothing — and the style provided to every field inside |
|
|
50
|
+
| `kind` | `'question' \| 'section'` | question | slFieldGroup | A section names a topic rather than asking something, so its legend draws no necessity and its fields keep the style the application set |
|
|
50
51
|
| `messages` | `Partial<FieldMessages>` | — | slFieldGroup | Words laid over the language in force for the legend’s necessity word (optional, required); a field inside states its own |
|
|
51
52
|
| `labelPlacement` | `'top' \| 'side'` | from the field token | slFieldGroup | Provided to every field inside. The group has no label of its own, so this is the one input it carries only to pass on |
|
|
52
53
|
| `required` | `boolean` | — | slFieldGroup | Draws the necessity marker on the legend. It is deliberately not provided to the fields: required is a fact about one value, and a section cannot know it |
|
package/docs/guidelines/forms.md
CHANGED
|
@@ -255,7 +255,7 @@ Level: SHOULD
|
|
|
255
255
|
Applies to: a form with more than six fields, or with two or more topics
|
|
256
256
|
Rule: The fields are split by topic into `field-group`s, each with a legend that names the topic; consecutive groups stand apart by `--slotted-form-section-gap`, a step larger than the gap between two fields.
|
|
257
257
|
Why: A long form whose fields all stand at one distance shows no structure, and a reader cannot tell where one topic ends.
|
|
258
|
-
Do: Write each topic as a `field-group` with a `legend`, the groups as direct children of `form`; set `--slotted-form-section-gap` on the theme to change the step.
|
|
258
|
+
Do: Write each topic as a `field-group` whose `kind` is `section`, with a `legend`, the groups as direct children of `form`; set `--slotted-form-section-gap` on the theme to change the step.
|
|
259
259
|
Don't: Write a margin, a heading or a separator of the page's own between two groups, or hold seven fields in one run with no group.
|
|
260
260
|
Check: A form with more than six fields holds at least two `field-group`s, and two consecutive groups stand further apart than two fields of one group.
|
|
261
261
|
|
|
@@ -19,7 +19,9 @@ class SlFieldGroupLegend {
|
|
|
19
19
|
writtenId = inject(new HostAttributeToken('id'), { optional: true });
|
|
20
20
|
legendId = computed(() => this.writtenId ?? this.group.ids().legend, /* @ts-ignore */
|
|
21
21
|
...(ngDevMode ? [{ debugName: "legendId" }] : /* istanbul ignore next */ []));
|
|
22
|
-
necessity = computed(() =>
|
|
22
|
+
necessity = computed(() => this.group.kind() === 'section'
|
|
23
|
+
? null
|
|
24
|
+
: necessityMark(this.group.resolvedNecessity(), this.group.required() === true, this.group.t), /* @ts-ignore */
|
|
23
25
|
...(ngDevMode ? [{ debugName: "necessity" }] : /* istanbul ignore next */ []));
|
|
24
26
|
markHidden = computed(() => this.necessity()?.hidden === true, /* @ts-ignore */
|
|
25
27
|
...(ngDevMode ? [{ debugName: "markHidden" }] : /* istanbul ignore next */ []));
|
|
@@ -28,9 +30,13 @@ class SlFieldGroupLegend {
|
|
|
28
30
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlFieldGroupLegend, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
29
31
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlFieldGroupLegend, isStandalone: true, selector: "legend[slFieldGroupLegend]", host: { attributes: { "data-part": "legend", "data-part-legend": "" }, properties: { "attr.id": "legendId()" } }, exportAs: ["slFieldGroupLegend"], ngImport: i0, template: `<ng-content />
|
|
30
32
|
@if (mark(); as text) {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
33
|
+
<!-- Text rather than a margin, so the accessible name reads "Note (optional)". -->
|
|
34
|
+
&ngsp;<span
|
|
35
|
+
data-part="mark"
|
|
36
|
+
data-part-mark=""
|
|
37
|
+
[attr.aria-hidden]="markHidden() ? 'true' : null"
|
|
38
|
+
>{{ text }}</span
|
|
39
|
+
>
|
|
34
40
|
}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
35
41
|
}
|
|
36
42
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlFieldGroupLegend, decorators: [{
|
|
@@ -41,9 +47,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
41
47
|
exportAs: 'slFieldGroupLegend',
|
|
42
48
|
template: `<ng-content />
|
|
43
49
|
@if (mark(); as text) {
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
50
|
+
<!-- Text rather than a margin, so the accessible name reads "Note (optional)". -->
|
|
51
|
+
&ngsp;<span
|
|
52
|
+
data-part="mark"
|
|
53
|
+
data-part-mark=""
|
|
54
|
+
[attr.aria-hidden]="markHidden() ? 'true' : null"
|
|
55
|
+
>{{ text }}</span
|
|
56
|
+
>
|
|
47
57
|
}`,
|
|
48
58
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
49
59
|
encapsulation: ViewEncapsulation.None,
|
|
@@ -144,6 +154,9 @@ class SlFieldGroup extends SlFieldDefaultsSource {
|
|
|
144
154
|
* as well, because the platform disables controls and a label is not one.
|
|
145
155
|
*/
|
|
146
156
|
disabled = input(undefined, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : booleanAttribute(value)) });
|
|
157
|
+
/** A `section` draws no necessity on its legend. */
|
|
158
|
+
kind = input('question', /* @ts-ignore */
|
|
159
|
+
...(ngDevMode ? [{ debugName: "kind" }] : /* istanbul ignore next */ []));
|
|
147
160
|
/** Unstated rather than `false`. Writes `data-invalid` on the fieldset. */
|
|
148
161
|
invalid = input(undefined, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: (value) => (value === undefined ? undefined : booleanAttribute(value)) });
|
|
149
162
|
/** Draws the necessity marker on the legend, and is not provided to the fields. */
|
|
@@ -217,7 +230,7 @@ class SlFieldGroup extends SlFieldDefaultsSource {
|
|
|
217
230
|
};
|
|
218
231
|
}
|
|
219
232
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlFieldGroup, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
220
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlFieldGroup, isStandalone: true, selector: "fieldset[slFieldGroup]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, necessity: { classPropertyName: "necessity", publicName: "necessity", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, labelPlacement: { classPropertyName: "labelPlacement", publicName: "labelPlacement", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "field-group", "data-ui-field-group": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.data-size": "resolvedSize()", "attr.data-orientation": "orientation()", "attr.data-necessity": "resolvedNecessity()", "attr.data-disabled": "disabled() === true ? '' : null", "attr.data-invalid": "invalid() === true ? '' : null", "attr.data-readonly": "readOnly() === true ? '' : null", "attr.data-required": "required() === true ? '' : null", "attr.disabled": "disabled() === true ? '' : null", "attr.aria-describedby": "describedBy()" } }, providers: [{ provide: SlFieldDefaultsSource, useExisting: forwardRef(() => SlFieldGroup) }], queries: [{ propertyName: "description", first: true, predicate: SlFieldGroupDescription, isSignal: true }, { propertyName: "error", first: true, predicate: SlFieldGroupError, isSignal: true }], exportAs: ["slFieldGroup"], usesInheritance: true, ngImport: i0, template: `<ng-content select="[slFieldGroupLegend]" />
|
|
233
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlFieldGroup, isStandalone: true, selector: "fieldset[slFieldGroup]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, necessity: { classPropertyName: "necessity", publicName: "necessity", isSignal: true, isRequired: false, transformFunction: null }, messages: { classPropertyName: "messages", publicName: "messages", isSignal: true, isRequired: false, transformFunction: null }, labelPlacement: { classPropertyName: "labelPlacement", publicName: "labelPlacement", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, kind: { classPropertyName: "kind", publicName: "kind", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-ui": "field-group", "data-ui-field-group": "", "data-part": "root", "data-part-root": "" }, properties: { "attr.data-size": "resolvedSize()", "attr.data-orientation": "orientation()", "attr.data-necessity": "resolvedNecessity()", "attr.data-disabled": "disabled() === true ? '' : null", "attr.data-invalid": "invalid() === true ? '' : null", "attr.data-readonly": "readOnly() === true ? '' : null", "attr.data-required": "required() === true ? '' : null", "attr.disabled": "disabled() === true ? '' : null", "attr.aria-describedby": "describedBy()" } }, providers: [{ provide: SlFieldDefaultsSource, useExisting: forwardRef(() => SlFieldGroup) }], queries: [{ propertyName: "description", first: true, predicate: SlFieldGroupDescription, isSignal: true }, { propertyName: "error", first: true, predicate: SlFieldGroupError, isSignal: true }], exportAs: ["slFieldGroup"], usesInheritance: true, ngImport: i0, template: `<ng-content select="[slFieldGroupLegend]" />
|
|
221
234
|
@if (description(); as message) {
|
|
222
235
|
<p
|
|
223
236
|
slInlineMessage
|
|
@@ -248,7 +261,7 @@ class SlFieldGroup extends SlFieldDefaultsSource {
|
|
|
248
261
|
<ng-content select="[slFieldGroupError]" />
|
|
249
262
|
</p>
|
|
250
263
|
}
|
|
251
|
-
<div data-part="content" data-part-content=""><ng-content /></div>`, isInline: true, styles: ["@layer slotted.components{[data-ui-field-group][data-part-root]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_message-gap: var(--slotted-field-group-message-gap, var(--slotted-space-2, .25rem));--_content-gap: var(--slotted-field-group-content-gap, var(--slotted-space-7, 1.25rem));--_field-gap: var(--slotted-field-group-field-gap, var(--slotted-space-6, 1rem));border:0;display:block;font-family:var( --slotted-field-group-font-family, var(--slotted-control-font-family, sans-serif) );margin:0;min-inline-size:0;padding:0}[data-ui-field-group][data-part-root]>*+*{margin-block-start:var(--_message-gap)}[data-ui-field-group][data-part-root]>*+[data-ui-inline-message]{margin-block-start:var(--_message-gap)}[data-ui-field-group][data-part-root]>[data-part-content]{margin-block-start:var(--_content-gap)}[data-ui-field-group][data-part-root][data-size=sm]{--_font-size: var(--slotted-control-font-size-md, 13px)}[data-ui-field-group][data-part-root][data-size=md],[data-ui-field-group][data-part-root][data-size=lg]{--_font-size: var(--slotted-control-font-size-lg, 14px)}[data-ui-field-group]>[data-part-legend]{color:var(--slotted-field-group-legend-color, var(--slotted-text));display:block;font-size:var(--_font-size);font-weight:var( --slotted-field-group-legend-font-weight, var(--slotted-font-weight-semibold, 600) );line-height:var(--slotted-field-group-line-height, var(--slotted-line-height-sm, 1.45));padding:0;transition:color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-field-group]>[data-part-legend]>[data-part-mark]{color:var(--slotted-field-group-mark-color, var(--slotted-tone-danger-text));margin-inline-start:var(--slotted-field-group-mark-gap,
|
|
264
|
+
<div data-part="content" data-part-content=""><ng-content /></div>`, isInline: true, styles: ["@layer slotted.components{[data-ui-field-group][data-part-root]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_message-gap: var(--slotted-field-group-message-gap, var(--slotted-space-2, .25rem));--_content-gap: var(--slotted-field-group-content-gap, var(--slotted-space-7, 1.25rem));--_field-gap: var(--slotted-field-group-field-gap, var(--slotted-space-6, 1rem));border:0;display:block;font-family:var( --slotted-field-group-font-family, var(--slotted-control-font-family, sans-serif) );margin:0;min-inline-size:0;padding:0}[data-ui-field-group][data-part-root]>*+*{margin-block-start:var(--_message-gap)}[data-ui-field-group][data-part-root]>*+[data-ui-inline-message]{margin-block-start:var(--_message-gap)}[data-ui-field-group][data-part-root]>[data-part-content]{margin-block-start:var(--_content-gap)}[data-ui-field-group][data-part-root][data-size=sm]{--_font-size: var(--slotted-control-font-size-md, 13px)}[data-ui-field-group][data-part-root][data-size=md],[data-ui-field-group][data-part-root][data-size=lg]{--_font-size: var(--slotted-control-font-size-lg, 14px)}[data-ui-field-group]>[data-part-legend]{color:var(--slotted-field-group-legend-color, var(--slotted-text));display:block;font-size:var(--_font-size);font-weight:var( --slotted-field-group-legend-font-weight, var(--slotted-font-weight-semibold, 600) );line-height:var(--slotted-field-group-line-height, var(--slotted-line-height-sm, 1.45));padding:0;transition:color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-field-group]>[data-part-legend]>[data-part-mark]{color:var(--slotted-field-group-mark-color, var(--slotted-tone-danger-text));margin-inline-start:var(--slotted-field-group-mark-gap, 0);overflow-wrap:normal;unicode-bidi:isolate}[data-ui-field-group]>[data-part-legend]>:is(h1,h2,h3,h4,h5,h6){display:inline;font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );margin:0}[data-ui-field-group]:is([data-necessity=optional],[data-necessity=words])>[data-part-legend]>[data-part-mark]{color:var(--slotted-field-group-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-group]>[data-ui-inline-message]:not([data-reserve]):has([data-part-text]:empty){display:none}[data-ui-field-group][data-part-root]>[data-ui-inline-message]{font-size:var(--slotted-font-size-xs, .75rem)}[data-ui-field-group][data-part-root]>[data-ui-inline-message][data-tone=danger],[data-ui-field-group][data-part-root]>[data-ui-inline-message][data-tone=success]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui-field-group]>[data-part-content]{display:flex;flex-direction:column;gap:var(--_field-gap);min-inline-size:0}[data-ui-field-group][data-orientation=horizontal]>[data-part-content]{flex-direction:row;flex-wrap:wrap}[data-ui-field-group][data-orientation=horizontal]>[data-part-content]>*{flex:1 1 var(--slotted-field-group-track-min, 14rem);min-inline-size:0}[data-ui-field-group][data-part-root][data-disabled]>[data-part-legend],[data-ui-field-group][data-part-root][data-disabled]>[data-part-legend]>[data-part-mark]{color:var(--slotted-disabled-foreground)}}\n"], dependencies: [{ kind: "component", type: SlInlineMessage, selector: "[slInlineMessage]", inputs: ["tone", "size", "live", "mark", "prefix", "hideIcon", "loading", "disabled", "reserve", "id"], exportAs: ["slInlineMessage"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
252
265
|
}
|
|
253
266
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlFieldGroup, decorators: [{
|
|
254
267
|
type: Component,
|
|
@@ -297,8 +310,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
297
310
|
'[attr.data-required]': "required() === true ? '' : null",
|
|
298
311
|
'[attr.disabled]': "disabled() === true ? '' : null",
|
|
299
312
|
'[attr.aria-describedby]': 'describedBy()',
|
|
300
|
-
}, styles: ["@layer slotted.components{[data-ui-field-group][data-part-root]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_message-gap: var(--slotted-field-group-message-gap, var(--slotted-space-2, .25rem));--_content-gap: var(--slotted-field-group-content-gap, var(--slotted-space-7, 1.25rem));--_field-gap: var(--slotted-field-group-field-gap, var(--slotted-space-6, 1rem));border:0;display:block;font-family:var( --slotted-field-group-font-family, var(--slotted-control-font-family, sans-serif) );margin:0;min-inline-size:0;padding:0}[data-ui-field-group][data-part-root]>*+*{margin-block-start:var(--_message-gap)}[data-ui-field-group][data-part-root]>*+[data-ui-inline-message]{margin-block-start:var(--_message-gap)}[data-ui-field-group][data-part-root]>[data-part-content]{margin-block-start:var(--_content-gap)}[data-ui-field-group][data-part-root][data-size=sm]{--_font-size: var(--slotted-control-font-size-md, 13px)}[data-ui-field-group][data-part-root][data-size=md],[data-ui-field-group][data-part-root][data-size=lg]{--_font-size: var(--slotted-control-font-size-lg, 14px)}[data-ui-field-group]>[data-part-legend]{color:var(--slotted-field-group-legend-color, var(--slotted-text));display:block;font-size:var(--_font-size);font-weight:var( --slotted-field-group-legend-font-weight, var(--slotted-font-weight-semibold, 600) );line-height:var(--slotted-field-group-line-height, var(--slotted-line-height-sm, 1.45));padding:0;transition:color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-field-group]>[data-part-legend]>[data-part-mark]{color:var(--slotted-field-group-mark-color, var(--slotted-tone-danger-text));margin-inline-start:var(--slotted-field-group-mark-gap,
|
|
301
|
-
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], necessity: [{ type: i0.Input, args: [{ isSignal: true, alias: "necessity", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], labelPlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPlacement", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], description: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlFieldGroupDescription), { ...{ descendants: false }, isSignal: true }] }], error: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlFieldGroupError), { ...{ descendants: false }, isSignal: true }] }] } });
|
|
313
|
+
}, styles: ["@layer slotted.components{[data-ui-field-group][data-part-root]{--_font-size: var(--slotted-control-font-size-lg, 14px);--_message-gap: var(--slotted-field-group-message-gap, var(--slotted-space-2, .25rem));--_content-gap: var(--slotted-field-group-content-gap, var(--slotted-space-7, 1.25rem));--_field-gap: var(--slotted-field-group-field-gap, var(--slotted-space-6, 1rem));border:0;display:block;font-family:var( --slotted-field-group-font-family, var(--slotted-control-font-family, sans-serif) );margin:0;min-inline-size:0;padding:0}[data-ui-field-group][data-part-root]>*+*{margin-block-start:var(--_message-gap)}[data-ui-field-group][data-part-root]>*+[data-ui-inline-message]{margin-block-start:var(--_message-gap)}[data-ui-field-group][data-part-root]>[data-part-content]{margin-block-start:var(--_content-gap)}[data-ui-field-group][data-part-root][data-size=sm]{--_font-size: var(--slotted-control-font-size-md, 13px)}[data-ui-field-group][data-part-root][data-size=md],[data-ui-field-group][data-part-root][data-size=lg]{--_font-size: var(--slotted-control-font-size-lg, 14px)}[data-ui-field-group]>[data-part-legend]{color:var(--slotted-field-group-legend-color, var(--slotted-text));display:block;font-size:var(--_font-size);font-weight:var( --slotted-field-group-legend-font-weight, var(--slotted-font-weight-semibold, 600) );line-height:var(--slotted-field-group-line-height, var(--slotted-line-height-sm, 1.45));padding:0;transition:color var(--slotted-control-transition-duration) var(--slotted-control-transition-easing)}[data-ui-field-group]>[data-part-legend]>[data-part-mark]{color:var(--slotted-field-group-mark-color, var(--slotted-tone-danger-text));margin-inline-start:var(--slotted-field-group-mark-gap, 0);overflow-wrap:normal;unicode-bidi:isolate}[data-ui-field-group]>[data-part-legend]>:is(h1,h2,h3,h4,h5,h6){display:inline;font-family:var( --slotted-font-family-heading, var(--slotted-font-family-sans, ui-sans-serif, system-ui, sans-serif) );margin:0}[data-ui-field-group]:is([data-necessity=optional],[data-necessity=words])>[data-part-legend]>[data-part-mark]{color:var(--slotted-field-group-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-group]>[data-ui-inline-message]:not([data-reserve]):has([data-part-text]:empty){display:none}[data-ui-field-group][data-part-root]>[data-ui-inline-message]{font-size:var(--slotted-font-size-xs, .75rem)}[data-ui-field-group][data-part-root]>[data-ui-inline-message][data-tone=danger],[data-ui-field-group][data-part-root]>[data-ui-inline-message][data-tone=success]{font-weight:var(--slotted-font-weight-medium, 500)}[data-ui-field-group]>[data-part-content]{display:flex;flex-direction:column;gap:var(--_field-gap);min-inline-size:0}[data-ui-field-group][data-orientation=horizontal]>[data-part-content]{flex-direction:row;flex-wrap:wrap}[data-ui-field-group][data-orientation=horizontal]>[data-part-content]>*{flex:1 1 var(--slotted-field-group-track-min, 14rem);min-inline-size:0}[data-ui-field-group][data-part-root][data-disabled]>[data-part-legend],[data-ui-field-group][data-part-root][data-disabled]>[data-part-legend]>[data-part-mark]{color:var(--slotted-disabled-foreground)}}\n"] }]
|
|
314
|
+
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], necessity: [{ type: i0.Input, args: [{ isSignal: true, alias: "necessity", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], labelPlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPlacement", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], kind: [{ type: i0.Input, args: [{ isSignal: true, alias: "kind", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], description: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlFieldGroupDescription), { ...{ descendants: false }, isSignal: true }] }], error: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlFieldGroupError), { ...{ descendants: false }, isSignal: true }] }] } });
|
|
302
315
|
|
|
303
316
|
/**
|
|
304
317
|
* Generated bundle index. Do not edit.
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"slotted-angular-field-group.mjs","sources":["../../field-group/src/field-group-parts.ts","../../field-group/src/field-group.ts","../../field-group/src/slotted-angular-field-group.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n HostAttributeToken,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport { necessityMark, SlFieldMessage } from '@slotted/angular/field';\n\nimport { SlFieldGroup } from './field-group';\n\n/**\n * The name of the set, and whether the set has to be answered.\n *\n * It holds whatever the page puts in it. On a page asking one question GOV.UK\n * recommends the legend contain the page's own heading, so a reader hears the\n * question once rather than twice; the family removes the heading's block break\n * and its margins and leaves its type alone, because a page heading is a page's\n * decision rather than a control's.\n */\n@Component({\n selector: 'legend[slFieldGroupLegend]',\n standalone: true,\n exportAs: 'slFieldGroupLegend',\n template: `<ng-content />\n @if (mark(); as text) {\n <span data-part=\"mark\" data-part-mark=\"\" [attr.aria-hidden]=\"markHidden() ? 'true' : null\">{{\n text\n }}</span>\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'legend',\n 'data-part-legend': '',\n '[attr.id]': 'legendId()',\n },\n})\nexport class SlFieldGroupLegend {\n private readonly group = inject(SlFieldGroup);\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n\n protected readonly legendId = computed(() => this.writtenId ?? this.group.ids().legend);\n private readonly necessity = computed(() =>\n necessityMark(this.group.resolvedNecessity(), this.group.required() === true, this.group.t),\n );\n protected readonly markHidden = computed(() => this.necessity()?.hidden === true);\n protected readonly mark = computed(() => this.necessity()?.text ?? null);\n}\n\n/**\n * Help about the whole set, projected into the `inline-message` the group\n * renders before its fields.\n *\n * It is a marker of the group's own rather than the field's, so a description\n * written inside one of the fields is never mistaken for the set's.\n */\n@Directive({\n selector: '[slFieldGroupDescription]',\n standalone: true,\n exportAs: 'slFieldGroupDescription',\n})\nexport class SlFieldGroupDescription extends SlFieldMessage {}\n\n/**\n * What is wrong with the set — the case a single field cannot state, because\n * \"choose at least one\" is a fact about the group rather than about any control\n * in it. GOV.UK's error-message-with-legend example is the same arrangement.\n */\n@Directive({\n selector: '[slFieldGroupError]',\n standalone: true,\n exportAs: 'slFieldGroupError',\n})\nexport class SlFieldGroupError extends SlFieldMessage {}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n forwardRef,\n HostAttributeToken,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n injectFieldDefaults,\n SlFieldDefaultsSource,\n SlFieldIdFactory,\n} from '@slotted/angular/field';\nimport type {\n FieldDefaults,\n FieldLabelPlacement,\n FieldNecessity,\n FieldSize,\n} from '@slotted/angular/field';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlInlineMessage } from '@slotted/angular/inline-message';\nimport { fieldMessages, type FieldMessages, type PartialMessages } from '@slotted/core/i18n';\n\nimport { SlFieldGroupDescription, SlFieldGroupError } from './field-group-parts';\n\n/** How the fields inside the group flow. */\nexport type FieldGroupOrientation = 'vertical' | 'horizontal';\n\n/** The three identifiers a group derives from one base. */\nexport interface FieldGroupIds {\n description: string;\n error: string;\n legend: string;\n}\n\n/**\n * A set of fields under one name.\n *\n * **The platform does the work.** The element is a native `fieldset` and the\n * name is a native `legend` — the technique the APG's naming practice calls for\n * under its Rule 3, prefer native techniques — so the `group` role and the\n * accessible name arrive without a single ARIA attribute. `disabled` is the\n * native attribute, and every control inside is disabled by the browser with\n * nothing passed down.\n *\n * **What is said about the set is said before the set.** The description and\n * the error come between the legend and the fields, which is where GOV.UK's\n * fieldset example puts a hint and an error, and the opposite of where a single\n * field puts its own. A message the page did not write is not drawn, which is\n * the DOM React's `FieldGroupDescription` and `FieldGroupError` produce.\n *\n * **`aria-describedby` goes on the fieldset.** A reader entering any control in\n * the group hears the group's hint and its error once, from the element that\n * names them both. A message with no text — a reserved line waiting for its\n * text — keeps its box and is not named until the text arrives.\n *\n * **The group provides for its fields.** It answers `SlFieldDefaultsSource` for\n * its own subtree, so `size`, `labelPlacement`, `necessity`, the necessity\n * words, `disabled` and `readOnly` reach every field inside — the same six an\n * application sets once with `provideFieldDefaults()`. `required` is not among\n * them: it is a fact about one value, and a section cannot know it.\n */\n@Component({\n selector: 'fieldset[slFieldGroup]',\n standalone: true,\n exportAs: 'slFieldGroup',\n imports: [SlInlineMessage],\n template: `<ng-content select=\"[slFieldGroupLegend]\" />\n @if (description(); as message) {\n <p\n slInlineMessage\n [id]=\"ids().description\"\n [size]=\"messageSize()\"\n [mark]=\"message.mark() ?? 'none'\"\n [tone]=\"message.tone() ?? 'secondary'\"\n [live]=\"message.live() ?? 'off'\"\n [hideIcon]=\"message.hideIcon() ?? false\"\n [reserve]=\"message.reserve() ?? false\"\n [prefix]=\"message.prefix()\"\n >\n <ng-content select=\"[slFieldGroupDescription]\" />\n </p>\n }\n @if (error(); as message) {\n <p\n slInlineMessage\n [id]=\"ids().error\"\n [size]=\"messageSize()\"\n [mark]=\"message.mark() ?? 'none'\"\n [tone]=\"message.tone() ?? 'danger'\"\n [live]=\"message.live() ?? 'off'\"\n [hideIcon]=\"message.hideIcon() ?? false\"\n [reserve]=\"message.reserve() ?? false\"\n [prefix]=\"message.prefix()\"\n >\n <ng-content select=\"[slFieldGroupError]\" />\n </p>\n }\n <div data-part=\"content\" data-part-content=\"\"><ng-content /></div>`,\n styleUrl: '../../../styles/src/field-group/field-group.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [{ provide: SlFieldDefaultsSource, useExisting: forwardRef(() => SlFieldGroup) }],\n host: {\n 'data-ui': 'field-group',\n 'data-ui-field-group': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-necessity]': 'resolvedNecessity()',\n '[attr.data-disabled]': \"disabled() === true ? '' : null\",\n '[attr.data-invalid]': \"invalid() === true ? '' : null\",\n '[attr.data-readonly]': \"readOnly() === true ? '' : null\",\n '[attr.data-required]': \"required() === true ? '' : null\",\n '[attr.disabled]': \"disabled() === true ? '' : null\",\n '[attr.aria-describedby]': 'describedBy()',\n },\n})\nexport class SlFieldGroup extends SlFieldDefaultsSource {\n /** Provided to every field inside. Defaults to the token, then to `md`. */\n readonly size = input<FieldSize | undefined>(undefined);\n /** How the fields inside flow. */\n readonly orientation = input<FieldGroupOrientation>('vertical');\n /** Provided to every field inside. Defaults to the token, then to `mark`. */\n readonly necessity = input<FieldNecessity | undefined>(undefined);\n /**\n * Words laid over the field catalog of the language in force for the\n * legend's own necessity word (`optional`, `required`). A field inside\n * states its own `messages`.\n */\n readonly messages = input<PartialMessages<FieldMessages> | undefined>(undefined);\n /** Provided to every field inside, unless the field states its own. */\n readonly labelPlacement = input<FieldLabelPlacement | undefined>(undefined);\n\n /**\n * The native attribute on the `fieldset`, which the platform propagates to\n * every control inside with nothing passed down. It is provided to the fields\n * as well, because the platform disables controls and a label is not one.\n */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** Unstated rather than `false`. Writes `data-invalid` on the fieldset. */\n readonly invalid = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** Draws the necessity marker on the legend, and is not provided to the fields. */\n readonly required = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** Provided to every field inside, unless the field states its own. */\n readonly readOnly = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n\n /**\n * The application's own defaults, or an outer group's. A group inside a group\n * answers for the inner one and inherits everything it does not restate.\n */\n private readonly outer = inject(SlFieldDefaultsSource, { optional: true, skipSelf: true });\n private readonly token = injectFieldDefaults();\n private readonly inherited = computed(() => this.outer?.fieldDefaults() ?? this.token);\n\n private readonly base =\n inject(new HostAttributeToken('id'), { optional: true }) ??\n `${inject(SlFieldIdFactory).next()}-group`;\n\n private readonly writtenDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n\n readonly ids = computed<FieldGroupIds>(() => ({\n description: `${this.base}-description`,\n error: `${this.base}-error`,\n legend: `${this.base}-legend`,\n }));\n\n /**\n * The group's own markers rather than the field's, and direct content rather\n * than any descendant — so a description written inside one of the fields is\n * never read as the set's.\n */\n protected readonly description = contentChild(SlFieldGroupDescription, { descendants: false });\n protected readonly error = contentChild(SlFieldGroupError, { descendants: false });\n\n readonly resolvedSize = computed(() => this.size() ?? this.inherited().size);\n readonly resolvedNecessity = computed(() => this.necessity() ?? this.inherited().necessity);\n /** The field family's words in the language in force, with the group's `messages` laid over them. */\n readonly t = injectMessages(fieldMessages, this.messages);\n\n /**\n * One step louder than a field's own. `inline-message` defines `md` as the\n * message of a section and `sm` as the message of a field, and what a group\n * says is about the section — held at the field's step, the sentence about a\n * whole set read as the help under the control above it.\n */\n protected readonly messageSize = computed<'sm' | 'md'>(() =>\n this.resolvedSize() === 'sm' ? 'sm' : 'md',\n );\n\n protected readonly describedBy = computed(() => {\n const parts = [\n this.writtenDescribedBy,\n this.description()?.hasContent() ? this.ids().description : undefined,\n this.error()?.hasContent() ? this.ids().error : undefined,\n ].filter(Boolean);\n return parts.length === 0 ? null : parts.join(' ');\n });\n\n /**\n * What every field inside reads instead of the application's own defaults.\n *\n * It is a method rather than a value handed over once, because Angular\n * creates every directive a template declares before it binds any input: a\n * group that provided a snapshot would hand its fields the value its inputs\n * held before the consumer's bindings ran.\n */\n fieldDefaults(): FieldDefaults {\n return {\n disabled: this.disabled() ?? this.inherited().disabled,\n labelPlacement: this.labelPlacement() ?? this.inherited().labelPlacement,\n necessity: this.resolvedNecessity(),\n readOnly: this.readOnly() ?? this.inherited().readOnly,\n size: this.resolvedSize(),\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAaA;;;;;;;;AAQG;MAmBU,kBAAkB,CAAA;AACZ,IAAA,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC;AAC5B,IAAA,SAAS,GAAG,MAAM,CAAC,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAElE,IAAA,QAAQ,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,IAAI,IAAI,CAAC,KAAK,CAAC,GAAG,EAAE,CAAC,MAAM;iFAAC;AACtE,IAAA,SAAS,GAAG,QAAQ,CAAC,MACpC,aAAa,CAAC,IAAI,CAAC,KAAK,CAAC,iBAAiB,EAAE,EAAE,IAAI,CAAC,KAAK,CAAC,QAAQ,EAAE,KAAK,IAAI,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC;kFAC5F;AACkB,IAAA,UAAU,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,EAAE,MAAM,KAAK,IAAI;mFAAC;AAC9D,IAAA,IAAI,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SAAS,EAAE,EAAE,IAAI,IAAI,IAAI;6EAAC;uGAT7D,kBAAkB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SA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,EAAA,QAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,UAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,WAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,uBAAuB,CAAA,EAAA,EAAA,GAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACrD,iBAAiB,CAAA,EAAA,EAAA,GAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AC5LnF;;AAEG;;"}
|
|
1
|
+
{"version":3,"file":"slotted-angular-field-group.mjs","sources":["../../field-group/src/field-group-parts.ts","../../field-group/src/field-group.ts","../../field-group/src/slotted-angular-field-group.ts"],"sourcesContent":["import {\n ChangeDetectionStrategy,\n Component,\n computed,\n Directive,\n HostAttributeToken,\n inject,\n ViewEncapsulation,\n} from '@angular/core';\nimport { necessityMark, SlFieldMessage } from '@slotted/angular/field';\n\nimport { SlFieldGroup } from './field-group';\n\n/**\n * The name of the set, and whether the set has to be answered.\n *\n * It holds whatever the page puts in it. On a page asking one question GOV.UK\n * recommends the legend contain the page's own heading, so a reader hears the\n * question once rather than twice; the family removes the heading's block break\n * and its margins and leaves its type alone, because a page heading is a page's\n * decision rather than a control's.\n */\n@Component({\n selector: 'legend[slFieldGroupLegend]',\n standalone: true,\n exportAs: 'slFieldGroupLegend',\n template: `<ng-content />\n @if (mark(); as text) {\n <!-- Text rather than a margin, so the accessible name reads \"Note (optional)\". -->\n &ngsp;<span\n data-part=\"mark\"\n data-part-mark=\"\"\n [attr.aria-hidden]=\"markHidden() ? 'true' : null\"\n >{{ text }}</span\n >\n }`,\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-part': 'legend',\n 'data-part-legend': '',\n '[attr.id]': 'legendId()',\n },\n})\nexport class SlFieldGroupLegend {\n private readonly group = inject(SlFieldGroup);\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n\n protected readonly legendId = computed(() => this.writtenId ?? this.group.ids().legend);\n private readonly necessity = computed(() =>\n this.group.kind() === 'section'\n ? null\n : necessityMark(this.group.resolvedNecessity(), this.group.required() === true, this.group.t),\n );\n protected readonly markHidden = computed(() => this.necessity()?.hidden === true);\n protected readonly mark = computed(() => this.necessity()?.text ?? null);\n}\n\n/**\n * Help about the whole set, projected into the `inline-message` the group\n * renders before its fields.\n *\n * It is a marker of the group's own rather than the field's, so a description\n * written inside one of the fields is never mistaken for the set's.\n */\n@Directive({\n selector: '[slFieldGroupDescription]',\n standalone: true,\n exportAs: 'slFieldGroupDescription',\n})\nexport class SlFieldGroupDescription extends SlFieldMessage {}\n\n/**\n * What is wrong with the set — the case a single field cannot state, because\n * \"choose at least one\" is a fact about the group rather than about any control\n * in it. GOV.UK's error-message-with-legend example is the same arrangement.\n */\n@Directive({\n selector: '[slFieldGroupError]',\n standalone: true,\n exportAs: 'slFieldGroupError',\n})\nexport class SlFieldGroupError extends SlFieldMessage {}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n forwardRef,\n HostAttributeToken,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport {\n injectFieldDefaults,\n SlFieldDefaultsSource,\n SlFieldIdFactory,\n} from '@slotted/angular/field';\nimport type {\n FieldDefaults,\n FieldLabelPlacement,\n FieldNecessity,\n FieldSize,\n} from '@slotted/angular/field';\nimport { injectMessages } from '@slotted/angular/i18n';\nimport { SlInlineMessage } from '@slotted/angular/inline-message';\nimport { fieldMessages, type FieldMessages, type PartialMessages } from '@slotted/core/i18n';\n\nimport { SlFieldGroupDescription, SlFieldGroupError } from './field-group-parts';\n\n/**\n * Whether the group asks something. A `question` (a set of radios) states its\n * own necessity on the legend; a `section` (\"Address\") is a topic, and says\n * nothing about it.\n */\nexport type FieldGroupKind = 'question' | 'section';\n\n/** How the fields inside the group flow. */\nexport type FieldGroupOrientation = 'vertical' | 'horizontal';\n\n/** The three identifiers a group derives from one base. */\nexport interface FieldGroupIds {\n description: string;\n error: string;\n legend: string;\n}\n\n/**\n * A set of fields under one name.\n *\n * **The platform does the work.** The element is a native `fieldset` and the\n * name is a native `legend` — the technique the APG's naming practice calls for\n * under its Rule 3, prefer native techniques — so the `group` role and the\n * accessible name arrive without a single ARIA attribute. `disabled` is the\n * native attribute, and every control inside is disabled by the browser with\n * nothing passed down.\n *\n * **What is said about the set is said before the set.** The description and\n * the error come between the legend and the fields, which is where GOV.UK's\n * fieldset example puts a hint and an error, and the opposite of where a single\n * field puts its own. A message the page did not write is not drawn, which is\n * the DOM React's `FieldGroupDescription` and `FieldGroupError` produce.\n *\n * **`aria-describedby` goes on the fieldset.** A reader entering any control in\n * the group hears the group's hint and its error once, from the element that\n * names them both. A message with no text — a reserved line waiting for its\n * text — keeps its box and is not named until the text arrives.\n *\n * **The group provides for its fields.** It answers `SlFieldDefaultsSource` for\n * its own subtree, so `size`, `labelPlacement`, `necessity`, the necessity\n * words, `disabled` and `readOnly` reach every field inside — the same six an\n * application sets once with `provideFieldDefaults()`. `required` is not among\n * them: it is a fact about one value, and a section cannot know it.\n */\n@Component({\n selector: 'fieldset[slFieldGroup]',\n standalone: true,\n exportAs: 'slFieldGroup',\n imports: [SlInlineMessage],\n template: `<ng-content select=\"[slFieldGroupLegend]\" />\n @if (description(); as message) {\n <p\n slInlineMessage\n [id]=\"ids().description\"\n [size]=\"messageSize()\"\n [mark]=\"message.mark() ?? 'none'\"\n [tone]=\"message.tone() ?? 'secondary'\"\n [live]=\"message.live() ?? 'off'\"\n [hideIcon]=\"message.hideIcon() ?? false\"\n [reserve]=\"message.reserve() ?? false\"\n [prefix]=\"message.prefix()\"\n >\n <ng-content select=\"[slFieldGroupDescription]\" />\n </p>\n }\n @if (error(); as message) {\n <p\n slInlineMessage\n [id]=\"ids().error\"\n [size]=\"messageSize()\"\n [mark]=\"message.mark() ?? 'none'\"\n [tone]=\"message.tone() ?? 'danger'\"\n [live]=\"message.live() ?? 'off'\"\n [hideIcon]=\"message.hideIcon() ?? false\"\n [reserve]=\"message.reserve() ?? false\"\n [prefix]=\"message.prefix()\"\n >\n <ng-content select=\"[slFieldGroupError]\" />\n </p>\n }\n <div data-part=\"content\" data-part-content=\"\"><ng-content /></div>`,\n styleUrl: '../../../styles/src/field-group/field-group.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n providers: [{ provide: SlFieldDefaultsSource, useExisting: forwardRef(() => SlFieldGroup) }],\n host: {\n 'data-ui': 'field-group',\n 'data-ui-field-group': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-necessity]': 'resolvedNecessity()',\n '[attr.data-disabled]': \"disabled() === true ? '' : null\",\n '[attr.data-invalid]': \"invalid() === true ? '' : null\",\n '[attr.data-readonly]': \"readOnly() === true ? '' : null\",\n '[attr.data-required]': \"required() === true ? '' : null\",\n '[attr.disabled]': \"disabled() === true ? '' : null\",\n '[attr.aria-describedby]': 'describedBy()',\n },\n})\nexport class SlFieldGroup extends SlFieldDefaultsSource {\n /** Provided to every field inside. Defaults to the token, then to `md`. */\n readonly size = input<FieldSize | undefined>(undefined);\n /** How the fields inside flow. */\n readonly orientation = input<FieldGroupOrientation>('vertical');\n /** Provided to every field inside. Defaults to the token, then to `mark`. */\n readonly necessity = input<FieldNecessity | undefined>(undefined);\n /**\n * Words laid over the field catalog of the language in force for the\n * legend's own necessity word (`optional`, `required`). A field inside\n * states its own `messages`.\n */\n readonly messages = input<PartialMessages<FieldMessages> | undefined>(undefined);\n /** Provided to every field inside, unless the field states its own. */\n readonly labelPlacement = input<FieldLabelPlacement | undefined>(undefined);\n\n /**\n * The native attribute on the `fieldset`, which the platform propagates to\n * every control inside with nothing passed down. It is provided to the fields\n * as well, because the platform disables controls and a label is not one.\n */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** A `section` draws no necessity on its legend. */\n readonly kind = input<FieldGroupKind>('question');\n /** Unstated rather than `false`. Writes `data-invalid` on the fieldset. */\n readonly invalid = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** Draws the necessity marker on the legend, and is not provided to the fields. */\n readonly required = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /** Provided to every field inside, unless the field states its own. */\n readonly readOnly = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n\n /**\n * The application's own defaults, or an outer group's. A group inside a group\n * answers for the inner one and inherits everything it does not restate.\n */\n private readonly outer = inject(SlFieldDefaultsSource, { optional: true, skipSelf: true });\n private readonly token = injectFieldDefaults();\n private readonly inherited = computed(() => this.outer?.fieldDefaults() ?? this.token);\n\n private readonly base =\n inject(new HostAttributeToken('id'), { optional: true }) ??\n `${inject(SlFieldIdFactory).next()}-group`;\n\n private readonly writtenDescribedBy = inject(new HostAttributeToken('aria-describedby'), {\n optional: true,\n });\n\n readonly ids = computed<FieldGroupIds>(() => ({\n description: `${this.base}-description`,\n error: `${this.base}-error`,\n legend: `${this.base}-legend`,\n }));\n\n /**\n * The group's own markers rather than the field's, and direct content rather\n * than any descendant — so a description written inside one of the fields is\n * never read as the set's.\n */\n protected readonly description = contentChild(SlFieldGroupDescription, { descendants: false });\n protected readonly error = contentChild(SlFieldGroupError, { descendants: false });\n\n readonly resolvedSize = computed(() => this.size() ?? this.inherited().size);\n readonly resolvedNecessity = computed(() => this.necessity() ?? this.inherited().necessity);\n /** The field family's words in the language in force, with the group's `messages` laid over them. */\n readonly t = injectMessages(fieldMessages, this.messages);\n\n /**\n * One step louder than a field's own. `inline-message` defines `md` as the\n * message of a section and `sm` as the message of a field, and what a group\n * says is about the section — held at the field's step, the sentence about a\n * whole set read as the help under the control above it.\n */\n protected readonly messageSize = computed<'sm' | 'md'>(() =>\n this.resolvedSize() === 'sm' ? 'sm' : 'md',\n );\n\n protected readonly describedBy = computed(() => {\n const parts = [\n this.writtenDescribedBy,\n this.description()?.hasContent() ? this.ids().description : undefined,\n this.error()?.hasContent() ? this.ids().error : undefined,\n ].filter(Boolean);\n return parts.length === 0 ? null : parts.join(' ');\n });\n\n /**\n * What every field inside reads instead of the application's own defaults.\n *\n * It is a method rather than a value handed over once, because Angular\n * creates every directive a template declares before it binds any input: a\n * group that provided a snapshot would hand its fields the value its inputs\n * held before the consumer's bindings ran.\n */\n fieldDefaults(): FieldDefaults {\n return {\n disabled: this.disabled() ?? this.inherited().disabled,\n labelPlacement: this.labelPlacement() ?? this.inherited().labelPlacement,\n necessity: this.resolvedNecessity(),\n readOnly: this.readOnly() ?? this.inherited().readOnly,\n size: this.resolvedSize(),\n };\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAaA;;;;;;;;AAQG;MAuBU,kBAAkB,CAAA;AACZ,IAAA,KAAK,GAAG,MAAM,CAAC,YAAY,CAAC;AAC5B,IAAA,SAAS,GAAG,MAAM,CAAC,IAAI,kBAAkB,CAAC,IAAI,CAAC,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAElE,IAAA,QAAQ,GAAG,QAAQ,CAAC,MAAM,IAAI,CAAC,SA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AAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MAAA,uBAAuB,CAAA,EAAA,EAAA,GAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,YAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,UAAA,CAAA,MACrD,iBAAiB,CAAA,EAAA,EAAA,GAAE,EAAE,WAAW,EAAE,KAAK,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ACrMnF;;AAEG;;"}
|
|
@@ -504,7 +504,7 @@ class SlField {
|
|
|
504
504
|
>
|
|
505
505
|
<ng-content select="[slFieldError]" />
|
|
506
506
|
</p>
|
|
507
|
-
}`, isInline: true, styles: ["@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, var(--slotted-space-2, .25rem));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"], dependencies: [{ kind: "component", type: SlInlineMessage, selector: "[slInlineMessage]", inputs: ["tone", "size", "live", "mark", "prefix", "hideIcon", "loading", "disabled", "reserve", "id"], exportAs: ["slInlineMessage"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
507
|
+
}`, isInline: true, styles: ["@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"], dependencies: [{ kind: "component", type: SlInlineMessage, selector: "[slInlineMessage]", inputs: ["tone", "size", "live", "mark", "prefix", "hideIcon", "loading", "disabled", "reserve", "id"], exportAs: ["slInlineMessage"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
508
508
|
}
|
|
509
509
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlField, decorators: [{
|
|
510
510
|
type: Component,
|
|
@@ -564,7 +564,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
564
564
|
'[attr.data-invalid]': "invalid() === true ? '' : null",
|
|
565
565
|
'[attr.data-readonly]': "resolvedReadOnly() === true ? '' : null",
|
|
566
566
|
'[attr.data-required]': "required() === true ? '' : null",
|
|
567
|
-
}, styles: ["@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, var(--slotted-space-2, .25rem));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"] }]
|
|
567
|
+
}, styles: ["@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"] }]
|
|
568
568
|
}], propDecorators: { size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], labelPlacement: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPlacement", required: false }] }], necessity: [{ type: i0.Input, args: [{ isSignal: true, alias: "necessity", required: false }] }], width: [{ type: i0.Input, args: [{ isSignal: true, alias: "width", required: false }] }], messages: [{ type: i0.Input, args: [{ isSignal: true, alias: "messages", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], writtenCounter: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlFieldCounter), { ...{ descendants: true }, isSignal: true }] }], header: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlFieldHeaderSlot), { isSignal: true }] }], help: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlFieldHelpSlot), { ...{ descendants: true }, isSignal: true }] }], indicator: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlFieldIndicatorSlot), { ...{ descendants: true }, isSignal: true }] }], description: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlFieldDescription), { ...{ descendants: false }, isSignal: true }] }], error: [{ type: i0.ContentChild, args: [i0.forwardRef(() => SlFieldError), { ...{ descendants: false }, isSignal: true }] }] } });
|
|
569
569
|
|
|
570
570
|
/**
|
|
@@ -598,9 +598,13 @@ class SlFieldLabel {
|
|
|
598
598
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlFieldLabel, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
599
599
|
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.7", type: SlFieldLabel, isStandalone: true, selector: "label[slFieldLabel]", host: { attributes: { "data-part": "label", "data-part-label": "" }, properties: { "attr.for": "labelFor()", "attr.id": "labelId()" } }, exportAs: ["slFieldLabel"], ngImport: i0, template: `<ng-content />
|
|
600
600
|
@if (mark(); as text) {
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
601
|
+
<!-- Text rather than a margin, so the accessible name reads "Note (optional)". -->
|
|
602
|
+
&ngsp;<span
|
|
603
|
+
data-part="mark"
|
|
604
|
+
data-part-mark=""
|
|
605
|
+
[attr.aria-hidden]="markHidden() ? 'true' : null"
|
|
606
|
+
>{{ text }}</span
|
|
607
|
+
>
|
|
604
608
|
}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
605
609
|
}
|
|
606
610
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImport: i0, type: SlFieldLabel, decorators: [{
|
|
@@ -611,9 +615,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.7", ngImpor
|
|
|
611
615
|
exportAs: 'slFieldLabel',
|
|
612
616
|
template: `<ng-content />
|
|
613
617
|
@if (mark(); as text) {
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
618
|
+
<!-- Text rather than a margin, so the accessible name reads "Note (optional)". -->
|
|
619
|
+
&ngsp;<span
|
|
620
|
+
data-part="mark"
|
|
621
|
+
data-part-mark=""
|
|
622
|
+
[attr.aria-hidden]="markHidden() ? 'true' : null"
|
|
623
|
+
>{{ text }}</span
|
|
624
|
+
>
|
|
617
625
|
}`,
|
|
618
626
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
619
627
|
encapsulation: ViewEncapsulation.None,
|