@slotted/angular 0.1.0-beta.17 → 0.1.0-beta.18

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (33) hide show
  1. package/docs/alert.json +1 -1
  2. package/docs/alert.md +1 -1
  3. package/docs/app-shell.json +19 -2
  4. package/docs/app-shell.md +3 -1
  5. package/docs/description-list.json +9 -1
  6. package/docs/description-list.md +2 -1
  7. package/docs/guidelines/composition.md +12 -0
  8. package/docs/guidelines/errors-and-conflicts.md +7 -6
  9. package/docs/guidelines/index.md +1 -0
  10. package/docs/guidelines/reading-permissions.md +2 -2
  11. package/docs/guidelines/reports.md +1 -1
  12. package/docs/index.md +2 -2
  13. package/docs/inline-message.json +5 -4
  14. package/docs/inline-message.md +6 -5
  15. package/fesm2022/slotted-angular-app-shell.mjs +16 -5
  16. package/fesm2022/slotted-angular-app-shell.mjs.map +1 -1
  17. package/fesm2022/slotted-angular-currency-field.mjs.map +1 -1
  18. package/fesm2022/slotted-angular-description-list.mjs +15 -6
  19. package/fesm2022/slotted-angular-description-list.mjs.map +1 -1
  20. package/fesm2022/slotted-angular-inline-message.mjs +2 -2
  21. package/fesm2022/slotted-angular-inline-message.mjs.map +1 -1
  22. package/fesm2022/slotted-angular-menubar.mjs +2 -1
  23. package/fesm2022/slotted-angular-menubar.mjs.map +1 -1
  24. package/package.json +3 -3
  25. package/types/slotted-angular-app-shell.d.ts +1 -1
  26. package/types/slotted-angular-app-shell.d.ts.map +1 -1
  27. package/types/slotted-angular-currency-field.d.ts +8 -8
  28. package/types/slotted-angular-currency-field.d.ts.map +1 -1
  29. package/types/slotted-angular-description-list.d.ts +11 -3
  30. package/types/slotted-angular-description-list.d.ts.map +1 -1
  31. package/types/slotted-angular-inline-message.d.ts +2 -2
  32. package/types/slotted-angular-menubar.d.ts +5 -4
  33. package/types/slotted-angular-menubar.d.ts.map +1 -1
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-inline-message.mjs","sources":["../../inline-message/src/inline-message-defaults.ts","../../inline-message/src/inline-message.ts","../../inline-message/src/inline-message-parts.ts","../../inline-message/src/slotted-angular-inline-message.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** Which of the five semantic colours the message speaks in. */\nexport type InlineMessageTone = 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\n\n/**\n * The type step the message sits at. `sm` is the message of a field; `md` is\n * the message of a section. Both read the control scales, which the theme\n * restates per density.\n */\nexport type InlineMessageSize = 'sm' | 'md';\n\n/**\n * Which mark the message draws. `glyph` is the tone's own silhouette — the\n * circled information, check, diamond and circled exclamation. `dot` is a\n * neutral bullet in the tone's ink, the same shape for every tone including\n * the help tone that draws no silhouette at all, so a column of messages under\n * one field starts on one left edge. `none` draws nothing, and the tone is\n * then said by the ink and by the weight of the sentence: it is what `field`\n * and `field-group` ask for, because a silhouette repeated under every control\n * of a form is texture rather than a warning (F2).\n */\nexport type InlineMessageMark = 'glyph' | 'dot' | 'none';\n\n/**\n * Whether the message announces itself, and how loudly. `off` is the default,\n * because the WAI-ARIA APG records that a message already present when the page\n * finishes loading is not announced whatever role it carries.\n */\nexport type InlineMessageLive = 'off' | 'polite' | 'assertive';\n\n/**\n * The word a reader hears before the message. `null` is a tone that is not a\n * severity — help and information announce themselves by their sentence.\n */\nexport type InlineMessagePrefixes = Record<InlineMessageTone, string | null>;\n\n/**\n * The word a reader hears before the message, per tone.\n *\n * GOV.UK's Error message component publishes the idea and hard-codes the word;\n * this table generalises it to every tone that is a severity and puts it behind\n * the token below, which is the only translation surface this library has\n * today. `accent`, `secondary` and `info` carry none: information and help announce\n * themselves by their sentence, and a reader told “Information:” before every\n * hint hears one more word per field for nothing.\n */\nexport const INLINE_MESSAGE_PREFIXES: InlineMessagePrefixes = {\n accent: null,\n secondary: null,\n info: null,\n success: 'Success:',\n warning: 'Warning:',\n danger: 'Error:',\n};\n\nexport interface InlineMessageDefaults {\n live: InlineMessageLive;\n mark: InlineMessageMark;\n prefixes: InlineMessagePrefixes;\n size: InlineMessageSize;\n tone: InlineMessageTone;\n}\n\nconst FALLBACK: InlineMessageDefaults = {\n live: 'off',\n mark: 'glyph',\n prefixes: INLINE_MESSAGE_PREFIXES,\n size: 'sm',\n tone: 'secondary',\n};\n\nexport const INLINE_MESSAGE_DEFAULTS = new InjectionToken<InlineMessageDefaults>(\n 'slotted inline message defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once what its messages are painted like and — the one\n * that matters — what its severities are called, rather than repeating the same\n * inputs on every field in a form. A message that states any of them itself\n * still wins: an explicit input is never overridden by the token.\n *\n * `prefixes` is merged over the shipped table rather than replacing it, so a\n * Portuguese application writes the three words it has and inherits the shape.\n */\nexport function provideInlineMessageDefaults(\n defaults: Partial<Omit<InlineMessageDefaults, 'prefixes'>> & {\n prefixes?: Partial<InlineMessagePrefixes>;\n },\n) {\n return {\n provide: INLINE_MESSAGE_DEFAULTS,\n useFactory: (): InlineMessageDefaults => ({\n live: defaults.live ?? FALLBACK.live,\n mark: defaults.mark ?? FALLBACK.mark,\n prefixes: { ...FALLBACK.prefixes, ...defaults.prefixes },\n size: defaults.size ?? FALLBACK.size,\n tone: defaults.tone ?? FALLBACK.tone,\n }),\n };\n}\n\n/** What a message renders as here, before it states anything of its own. */\nexport function injectInlineMessageDefaults(): InlineMessageDefaults {\n return inject(INLINE_MESSAGE_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `tag` records: a\n * module-level counter produces colliding sequences when two applications\n * render in one server process, and the server and the client sequences must\n * match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlInlineMessageIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-inline-message-${this.count}`;\n }\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n Directive,\n forwardRef,\n HostAttributeToken,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { BUTTON_DEFAULTS_TOKEN } from '@slotted/angular/button';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport type { GlyphName } from '@slotted/angular/icon';\n\nimport { injectInlineMessageDefaults, SlInlineMessageIdFactory } from './inline-message-defaults';\nimport type {\n InlineMessageLive,\n InlineMessageMark,\n InlineMessageSize,\n InlineMessageTone,\n} from './inline-message-defaults';\n\nexport type {\n InlineMessageLive,\n InlineMessageMark,\n InlineMessagePrefixes,\n InlineMessageSize,\n InlineMessageTone,\n} from './inline-message-defaults';\n\n/**\n * The glyph each tone draws: `specs/components/inline-message/contract.json`\n * holds the map. Help is not a severity and draws none.\n */\nconst TONE_GLYPH: Record<InlineMessageTone, GlyphName | null> = {\n accent: 'status-info',\n secondary: null,\n info: 'status-info',\n success: 'status-success',\n warning: 'status-warning',\n danger: 'status-danger',\n};\n\n/**\n * The two roles that announce, and the value that does not. Both roles imply\n * `aria-live` and `aria-atomic`, so the whole message is read rather than the\n * word that changed, and nothing here writes either attribute by hand.\n */\nconst LIVE_ROLE: Record<InlineMessageLive, string | null> = {\n off: null,\n polite: 'status',\n assertive: 'alert',\n};\n\n/**\n * One sentence about something else: a field, a section, an action. Help, an\n * error, a warning, a confirmation, or a wait.\n *\n * The directive is written on the consumer's own element, and the element it\n * belongs on is a `p`: the message is a sentence of prose about something else,\n * and a paragraph is the box a screen reader reads as one unit.\n *\n * **The severity is a word as well as a colour.** A reader who cannot see the\n * message hears the sentence and nothing else — neither the red ink nor the\n * crossed circle reaches the accessibility tree — so the family writes the\n * severity in clipped text before the message, which is GOV.UK's answer\n * generalised to every tone and to a table an application replaces once.\n *\n * **The role goes on this element, not on an inner one.** `slAlert` puts its\n * live role on the text part because it has a dismiss button beside the text,\n * and MDN's `alert` role reference is explicit that the role is for text\n * content alone. This family has no controls, so there is nothing to keep out.\n */\n/** What the message queries for, declared before the directive it stands for. */\nexport abstract class SlInlineMessageActionsRef {}\n\n@Component({\n selector: '[slInlineMessage]',\n standalone: true,\n exportAs: 'slInlineMessage',\n imports: [SlGlyph, SlIcon],\n template: `@if (prefixWord() !== '') {\n <span data-part=\"prefix\" data-part-prefix=\"\">{{ prefixWord() }}</span>\n }\n @if (!hideIcon()) {\n <span aria-hidden=\"true\" data-part=\"icon\" data-part-icon=\"\"\n ><ng-content select=\"[slInlineMessageIcon]\">\n @if (glyph(); as name) {\n <span slIcon><svg slGlyph [name]=\"name\"></svg></span>\n }</ng-content\n ></span>\n }\n <span\n data-part=\"text\"\n data-part-text=\"\"\n [attr.id]=\"grouped() ? textId : null\"\n [attr.role]=\"grouped() ? liveRole() : null\"\n ><ng-content\n /></span>\n <ng-content select=\"[slInlineMessageActions]\" />`,\n styleUrl: '../../../styles/src/inline-message/inline-message.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'inline-message',\n 'data-ui-inline-message': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-live]': 'resolvedLive()',\n '[attr.data-mark]': 'resolvedMark()',\n '[attr.data-loading]': \"loading() ? '' : null\",\n '[attr.data-disabled]': \"disabled() === true ? '' : null\",\n '[attr.data-reserve]': \"reserve() ? '' : null\",\n '[attr.role]': 'role()',\n '[attr.aria-labelledby]': 'grouped() ? textId : null',\n '[attr.id]': 'messageId',\n },\n})\nexport class SlInlineMessage {\n /** Defaults to the token, then to `secondary` — help text. */\n readonly tone = input<InlineMessageTone | undefined>(undefined);\n /** Defaults to the token, then to `sm`. */\n readonly size = input<InlineMessageSize | undefined>(undefined);\n /** Defaults to the token, then to `off`. */\n readonly live = input<InlineMessageLive | undefined>(undefined);\n /**\n * Which mark is drawn. Defaults to the token, then to `glyph`. `slField` and\n * `slFieldGroup` ask for `none` instead, because a form reads a column of\n * sentences rather than a column of silhouettes.\n */\n readonly mark = input<InlineMessageMark | undefined>(undefined);\n /**\n * The word read before the message. Unstated is the tone's own — `Error:`,\n * `Warning:`, `Success:` — and the empty string removes it, for a message\n * whose sentence already names the severity.\n */\n readonly prefix = input<string | undefined>(undefined);\n /**\n * Removes the mark's box from the markup, for a message that carries its own\n * artwork beside it. `mark='none'` is the other way to draw nothing: it is an\n * axis a provider can set for every message under it, and it leaves the box\n * in place for `reserve` to hold a line open with.\n */\n readonly hideIcon = input(false, { transform: booleanAttribute });\n /** The message is waiting for something: the mark becomes a turning ring. */\n readonly loading = input(false, { transform: booleanAttribute });\n /**\n * Unstated rather than `false`, so a `field` can answer it once this family\n * is inside one. Stated, it wins.\n */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /**\n * Holds one line box open whether or not there is a message, so the form\n * below does not move when the error arrives.\n */\n readonly reserve = input(false, { transform: booleanAttribute });\n\n private readonly defaults = injectInlineMessageDefaults();\n\n /**\n * An identifier bound by whatever renders the message. It is what a family\n * that composes with this one — `field`, whose description and error *are*\n * inline messages — uses to give the message an identifier derived from its\n * own base, which a static attribute cannot express and a directive on the\n * same element cannot write.\n */\n readonly id = input<string | undefined>(undefined);\n\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n private readonly generatedId = inject(SlInlineMessageIdFactory).next();\n\n /**\n * The identifier an `aria-describedby` or an `aria-errormessage` points at.\n * A consumer's own is never replaced, and the generated one is reachable from\n * a template through `exportAs` — which is the reach an Angular template has\n * and a React consumer answers with `useId` in their own component.\n *\n * A getter rather than a signal, so `message.messageId` keeps reading as a\n * value in every template that already writes it. The host binding below\n * calls it in a reactive context, so the `id` input above is tracked.\n */\n get messageId(): string {\n return this.id() ?? this.writtenId ?? this.generatedId;\n }\n /** The sentence's id, which names the group a message with actions becomes. */\n protected get textId(): string {\n return `${this.messageId}-text`;\n }\n\n /**\n * A role the consumer wrote is never replaced by the family's. A host binding\n * wins over a static attribute in Angular, so the written value has to be\n * read before the binding is computed rather than after — the asymmetry with\n * React, where a consumer's prop simply spreads over the family's.\n */\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n protected readonly resolvedTone = computed(() => this.tone() ?? this.defaults.tone);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n protected readonly resolvedLive = computed(() => this.live() ?? this.defaults.live);\n protected readonly resolvedMark = computed(() => this.mark() ?? this.defaults.mark);\n /* The glyph the family draws when the page supplies none. A message that is\n waiting draws a ring instead, and one that asked for no mark draws none. */\n protected readonly glyph = computed<GlyphName | null>(() => {\n const mark = this.resolvedMark();\n if (this.loading() || mark === 'none') return null;\n return mark === 'dot' ? 'dot' : TONE_GLYPH[this.resolvedTone()];\n });\n protected readonly liveRole = computed(() => LIVE_ROLE[this.resolvedLive()]);\n /**\n * A message that holds `[slInlineMessageActions]` is a group named by its\n * sentence, written on a `div`: a paragraph cannot hold a button. Its live\n * role moves to the sentence, so the buttons are not announced with it.\n */\n private readonly actions = contentChild(SlInlineMessageActionsRef);\n protected readonly grouped = computed(() => this.actions() !== undefined);\n protected readonly role = computed(\n () => this.writtenRole ?? (this.grouped() ? 'group' : this.liveRole()),\n );\n\n /* Unstated asks the table; the empty string is a consumer removing the word. */\n protected readonly prefixWord = computed(\n () => this.prefix() ?? this.defaults.prefixes[this.resolvedTone()] ?? '',\n );\n}\n\n/**\n * The answers a message offers, after its sentence: two amounts the reader\n * may have meant, a way to undo. Written on a `div` inside the message, which\n * is then a `div` itself; the buttons take the message's size.\n */\n@Directive({\n selector: '[slInlineMessageActions]',\n standalone: true,\n exportAs: 'slInlineMessageActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n providers: [\n { provide: SlInlineMessageActionsRef, useExisting: forwardRef(() => SlInlineMessageActions) },\n {\n provide: BUTTON_DEFAULTS_TOKEN,\n useFactory: () => ({\n ...inject(BUTTON_DEFAULTS_TOKEN, { skipSelf: true }),\n size: inject(SlInlineMessage).resolvedSize(),\n }),\n },\n ],\n})\nexport class SlInlineMessageActions {}\n","import { Directive } from '@angular/core';\n\n/**\n * A mark the page supplies instead of the tone's own. It is projected into the\n * box the family draws, so it keeps the size, the colour and the place on the\n * message's first line the tone's mark would have had.\n *\n * It is a marker rather than a component: what goes inside is the page's own\n * artwork, and the family has nothing to add to it beyond where it sits.\n */\n@Directive({\n selector: '[slInlineMessageIcon]',\n standalone: true,\n exportAs: 'slInlineMessageIcon',\n})\nexport class SlInlineMessageIcon {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAqCA;;;;;;;;;AASG;AACI,MAAM,uBAAuB,GAA0B;AAC5D,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,OAAO,EAAE,UAAU;AACnB,IAAA,OAAO,EAAE,UAAU;AACnB,IAAA,MAAM,EAAE,QAAQ;;AAWlB,MAAM,QAAQ,GAA0B;AACtC,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,QAAQ,EAAE,uBAAuB;AACjC,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,IAAI,EAAE,WAAW;CAClB;MAEY,uBAAuB,GAAG,IAAI,cAAc,CACvD,iCAAiC,EACjC,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,EAAE;AAGjD;;;;;;;;AAQG;AACG,SAAU,4BAA4B,CAC1C,QAEC,EAAA;IAED,OAAO;AACL,QAAA,OAAO,EAAE,uBAAuB;AAChC,QAAA,UAAU,EAAE,OAA8B;AACxC,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI;AACpC,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI;YACpC,QAAQ,EAAE,EAAE,GAAG,QAAQ,CAAC,QAAQ,EAAE,GAAG,QAAQ,CAAC,QAAQ,EAAE;AACxD,YAAA,IAAI,EAAE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AA,QAAQ,EAAE,0BAA0B;AACpC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,wBAAwB;oBAClC,IAAI,EAAE,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,EAAE,EAAE;AACzD,oBAAA,SAAS,EAAE;AACT,wBAAA,EAAE,OAAO,EAAE,yBAAyB,EAAE,WAAW,EAAE,UAAU,CAAC,MAAK,sBAAuB,CAAC,EAAE;AAC7F,wBAAA;AACE,4BAAA,OAAO,EAAE,qBAAqB;AAC9B,4BAAA,UAAU,EAAE,OAAO;gCACjB,GAAG,MAAM,CAAC,qBAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACpD,gCAAA,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC,YAAY,EAAE;6BAC7C,CAAC;AACH,yBAAA;AACF,qBAAA;AACF,iBAAA;;;AC3PD;;;;;;;AAOG;MAMU,mBAAmB,CAAA;uGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,qBAAqB;AAChC,iBAAA;;;ACdD;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-inline-message.mjs","sources":["../../inline-message/src/inline-message-defaults.ts","../../inline-message/src/inline-message.ts","../../inline-message/src/inline-message-parts.ts","../../inline-message/src/slotted-angular-inline-message.ts"],"sourcesContent":["import { inject, Injectable, InjectionToken } from '@angular/core';\n\n/** Which of the five semantic colours the message speaks in. */\nexport type InlineMessageTone = 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';\n\n/**\n * The type step the message sits at. `sm` sits beside a compact field; `md`\n * beside a large field. A message about a section is an alert. Both read the control scales, which the theme\n * restates per density.\n */\nexport type InlineMessageSize = 'sm' | 'md';\n\n/**\n * Which mark the message draws. `glyph` is the tone's own silhouette — the\n * circled information, check, diamond and circled exclamation. `dot` is a\n * neutral bullet in the tone's ink, the same shape for every tone including\n * the help tone that draws no silhouette at all, so a column of messages under\n * one field starts on one left edge. `none` draws nothing, and the tone is\n * then said by the ink and by the weight of the sentence: it is what `field`\n * and `field-group` ask for, because a silhouette repeated under every control\n * of a form is texture rather than a warning (F2).\n */\nexport type InlineMessageMark = 'glyph' | 'dot' | 'none';\n\n/**\n * Whether the message announces itself, and how loudly. `off` is the default,\n * because the WAI-ARIA APG records that a message already present when the page\n * finishes loading is not announced whatever role it carries.\n */\nexport type InlineMessageLive = 'off' | 'polite' | 'assertive';\n\n/**\n * The word a reader hears before the message. `null` is a tone that is not a\n * severity — help and information announce themselves by their sentence.\n */\nexport type InlineMessagePrefixes = Record<InlineMessageTone, string | null>;\n\n/**\n * The word a reader hears before the message, per tone.\n *\n * GOV.UK's Error message component publishes the idea and hard-codes the word;\n * this table generalises it to every tone that is a severity and puts it behind\n * the token below, which is the only translation surface this library has\n * today. `accent`, `secondary` and `info` carry none: information and help announce\n * themselves by their sentence, and a reader told “Information:” before every\n * hint hears one more word per field for nothing.\n */\nexport const INLINE_MESSAGE_PREFIXES: InlineMessagePrefixes = {\n accent: null,\n secondary: null,\n info: null,\n success: 'Success:',\n warning: 'Warning:',\n danger: 'Error:',\n};\n\nexport interface InlineMessageDefaults {\n live: InlineMessageLive;\n mark: InlineMessageMark;\n prefixes: InlineMessagePrefixes;\n size: InlineMessageSize;\n tone: InlineMessageTone;\n}\n\nconst FALLBACK: InlineMessageDefaults = {\n live: 'off',\n mark: 'glyph',\n prefixes: INLINE_MESSAGE_PREFIXES,\n size: 'sm',\n tone: 'secondary',\n};\n\nexport const INLINE_MESSAGE_DEFAULTS = new InjectionToken<InlineMessageDefaults>(\n 'slotted inline message defaults',\n { providedIn: 'root', factory: () => FALLBACK },\n);\n\n/**\n * An application decides once what its messages are painted like and — the one\n * that matters — what its severities are called, rather than repeating the same\n * inputs on every field in a form. A message that states any of them itself\n * still wins: an explicit input is never overridden by the token.\n *\n * `prefixes` is merged over the shipped table rather than replacing it, so a\n * Portuguese application writes the three words it has and inherits the shape.\n */\nexport function provideInlineMessageDefaults(\n defaults: Partial<Omit<InlineMessageDefaults, 'prefixes'>> & {\n prefixes?: Partial<InlineMessagePrefixes>;\n },\n) {\n return {\n provide: INLINE_MESSAGE_DEFAULTS,\n useFactory: (): InlineMessageDefaults => ({\n live: defaults.live ?? FALLBACK.live,\n mark: defaults.mark ?? FALLBACK.mark,\n prefixes: { ...FALLBACK.prefixes, ...defaults.prefixes },\n size: defaults.size ?? FALLBACK.size,\n tone: defaults.tone ?? FALLBACK.tone,\n }),\n };\n}\n\n/** What a message renders as here, before it states anything of its own. */\nexport function injectInlineMessageDefaults(): InlineMessageDefaults {\n return inject(INLINE_MESSAGE_DEFAULTS);\n}\n\n/**\n * Application-scoped rather than module-scoped, for the reason `tag` records: a\n * module-level counter produces colliding sequences when two applications\n * render in one server process, and the server and the client sequences must\n * match for hydration.\n */\n@Injectable({ providedIn: 'root' })\nexport class SlInlineMessageIdFactory {\n private count = 0;\n\n next() {\n this.count += 1;\n return `slotted-inline-message-${this.count}`;\n }\n}\n","import {\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n Directive,\n forwardRef,\n HostAttributeToken,\n inject,\n input,\n ViewEncapsulation,\n} from '@angular/core';\nimport { BUTTON_DEFAULTS_TOKEN } from '@slotted/angular/button';\nimport { SlGlyph, SlIcon } from '@slotted/angular/icon';\nimport type { GlyphName } from '@slotted/angular/icon';\n\nimport { injectInlineMessageDefaults, SlInlineMessageIdFactory } from './inline-message-defaults';\nimport type {\n InlineMessageLive,\n InlineMessageMark,\n InlineMessageSize,\n InlineMessageTone,\n} from './inline-message-defaults';\n\nexport type {\n InlineMessageLive,\n InlineMessageMark,\n InlineMessagePrefixes,\n InlineMessageSize,\n InlineMessageTone,\n} from './inline-message-defaults';\n\n/**\n * The glyph each tone draws: `specs/components/inline-message/contract.json`\n * holds the map. Help is not a severity and draws none.\n */\nconst TONE_GLYPH: Record<InlineMessageTone, GlyphName | null> = {\n accent: 'status-info',\n secondary: null,\n info: 'status-info',\n success: 'status-success',\n warning: 'status-warning',\n danger: 'status-danger',\n};\n\n/**\n * The two roles that announce, and the value that does not. Both roles imply\n * `aria-live` and `aria-atomic`, so the whole message is read rather than the\n * word that changed, and nothing here writes either attribute by hand.\n */\nconst LIVE_ROLE: Record<InlineMessageLive, string | null> = {\n off: null,\n polite: 'status',\n assertive: 'alert',\n};\n\n/**\n * One sentence about one field or one control; a message about a section is\n * an alert. Help, an error, a warning, a confirmation, or a wait.\n *\n * The directive is written on the consumer's own element, and the element it\n * belongs on is a `p`: the message is a sentence of prose about something else,\n * and a paragraph is the box a screen reader reads as one unit.\n *\n * **The severity is a word as well as a colour.** A reader who cannot see the\n * message hears the sentence and nothing else — neither the red ink nor the\n * crossed circle reaches the accessibility tree — so the family writes the\n * severity in clipped text before the message, which is GOV.UK's answer\n * generalised to every tone and to a table an application replaces once.\n *\n * **The role goes on this element, not on an inner one.** `slAlert` puts its\n * live role on the text part because it has a dismiss button beside the text,\n * and MDN's `alert` role reference is explicit that the role is for text\n * content alone. This family has no controls, so there is nothing to keep out.\n */\n/** What the message queries for, declared before the directive it stands for. */\nexport abstract class SlInlineMessageActionsRef {}\n\n@Component({\n selector: '[slInlineMessage]',\n standalone: true,\n exportAs: 'slInlineMessage',\n imports: [SlGlyph, SlIcon],\n template: `@if (prefixWord() !== '') {\n <span data-part=\"prefix\" data-part-prefix=\"\">{{ prefixWord() }}</span>\n }\n @if (!hideIcon()) {\n <span aria-hidden=\"true\" data-part=\"icon\" data-part-icon=\"\"\n ><ng-content select=\"[slInlineMessageIcon]\">\n @if (glyph(); as name) {\n <span slIcon><svg slGlyph [name]=\"name\"></svg></span>\n }</ng-content\n ></span>\n }\n <span\n data-part=\"text\"\n data-part-text=\"\"\n [attr.id]=\"grouped() ? textId : null\"\n [attr.role]=\"grouped() ? liveRole() : null\"\n ><ng-content\n /></span>\n <ng-content select=\"[slInlineMessageActions]\" />`,\n styleUrl: '../../../styles/src/inline-message/inline-message.css',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n host: {\n 'data-ui': 'inline-message',\n 'data-ui-inline-message': '',\n 'data-part': 'root',\n 'data-part-root': '',\n '[attr.data-tone]': 'resolvedTone()',\n '[attr.data-size]': 'resolvedSize()',\n '[attr.data-live]': 'resolvedLive()',\n '[attr.data-mark]': 'resolvedMark()',\n '[attr.data-loading]': \"loading() ? '' : null\",\n '[attr.data-disabled]': \"disabled() === true ? '' : null\",\n '[attr.data-reserve]': \"reserve() ? '' : null\",\n '[attr.role]': 'role()',\n '[attr.aria-labelledby]': 'grouped() ? textId : null',\n '[attr.id]': 'messageId',\n },\n})\nexport class SlInlineMessage {\n /** Defaults to the token, then to `secondary` — help text. */\n readonly tone = input<InlineMessageTone | undefined>(undefined);\n /** Defaults to the token, then to `sm`. */\n readonly size = input<InlineMessageSize | undefined>(undefined);\n /** Defaults to the token, then to `off`. */\n readonly live = input<InlineMessageLive | undefined>(undefined);\n /**\n * Which mark is drawn. Defaults to the token, then to `glyph`. `slField` and\n * `slFieldGroup` ask for `none` instead, because a form reads a column of\n * sentences rather than a column of silhouettes.\n */\n readonly mark = input<InlineMessageMark | undefined>(undefined);\n /**\n * The word read before the message. Unstated is the tone's own — `Error:`,\n * `Warning:`, `Success:` — and the empty string removes it, for a message\n * whose sentence already names the severity.\n */\n readonly prefix = input<string | undefined>(undefined);\n /**\n * Removes the mark's box from the markup, for a message that carries its own\n * artwork beside it. `mark='none'` is the other way to draw nothing: it is an\n * axis a provider can set for every message under it, and it leaves the box\n * in place for `reserve` to hold a line open with.\n */\n readonly hideIcon = input(false, { transform: booleanAttribute });\n /** The message is waiting for something: the mark becomes a turning ring. */\n readonly loading = input(false, { transform: booleanAttribute });\n /**\n * Unstated rather than `false`, so a `field` can answer it once this family\n * is inside one. Stated, it wins.\n */\n readonly disabled = input<boolean | undefined, boolean | string | undefined>(undefined, {\n transform: (value) => (value === undefined ? undefined : booleanAttribute(value)),\n });\n /**\n * Holds one line box open whether or not there is a message, so the form\n * below does not move when the error arrives.\n */\n readonly reserve = input(false, { transform: booleanAttribute });\n\n private readonly defaults = injectInlineMessageDefaults();\n\n /**\n * An identifier bound by whatever renders the message. It is what a family\n * that composes with this one — `field`, whose description and error *are*\n * inline messages — uses to give the message an identifier derived from its\n * own base, which a static attribute cannot express and a directive on the\n * same element cannot write.\n */\n readonly id = input<string | undefined>(undefined);\n\n private readonly writtenId = inject(new HostAttributeToken('id'), { optional: true });\n private readonly generatedId = inject(SlInlineMessageIdFactory).next();\n\n /**\n * The identifier an `aria-describedby` or an `aria-errormessage` points at.\n * A consumer's own is never replaced, and the generated one is reachable from\n * a template through `exportAs` — which is the reach an Angular template has\n * and a React consumer answers with `useId` in their own component.\n *\n * A getter rather than a signal, so `message.messageId` keeps reading as a\n * value in every template that already writes it. The host binding below\n * calls it in a reactive context, so the `id` input above is tracked.\n */\n get messageId(): string {\n return this.id() ?? this.writtenId ?? this.generatedId;\n }\n /** The sentence's id, which names the group a message with actions becomes. */\n protected get textId(): string {\n return `${this.messageId}-text`;\n }\n\n /**\n * A role the consumer wrote is never replaced by the family's. A host binding\n * wins over a static attribute in Angular, so the written value has to be\n * read before the binding is computed rather than after — the asymmetry with\n * React, where a consumer's prop simply spreads over the family's.\n */\n private readonly writtenRole = inject(new HostAttributeToken('role'), { optional: true });\n\n protected readonly resolvedTone = computed(() => this.tone() ?? this.defaults.tone);\n readonly resolvedSize = computed(() => this.size() ?? this.defaults.size);\n protected readonly resolvedLive = computed(() => this.live() ?? this.defaults.live);\n protected readonly resolvedMark = computed(() => this.mark() ?? this.defaults.mark);\n /* The glyph the family draws when the page supplies none. A message that is\n waiting draws a ring instead, and one that asked for no mark draws none. */\n protected readonly glyph = computed<GlyphName | null>(() => {\n const mark = this.resolvedMark();\n if (this.loading() || mark === 'none') return null;\n return mark === 'dot' ? 'dot' : TONE_GLYPH[this.resolvedTone()];\n });\n protected readonly liveRole = computed(() => LIVE_ROLE[this.resolvedLive()]);\n /**\n * A message that holds `[slInlineMessageActions]` is a group named by its\n * sentence, written on a `div`: a paragraph cannot hold a button. Its live\n * role moves to the sentence, so the buttons are not announced with it.\n */\n private readonly actions = contentChild(SlInlineMessageActionsRef);\n protected readonly grouped = computed(() => this.actions() !== undefined);\n protected readonly role = computed(\n () => this.writtenRole ?? (this.grouped() ? 'group' : this.liveRole()),\n );\n\n /* Unstated asks the table; the empty string is a consumer removing the word. */\n protected readonly prefixWord = computed(\n () => this.prefix() ?? this.defaults.prefixes[this.resolvedTone()] ?? '',\n );\n}\n\n/**\n * The answers a message offers, after its sentence: two amounts the reader\n * may have meant, a way to undo. Written on a `div` inside the message, which\n * is then a `div` itself; the buttons take the message's size.\n */\n@Directive({\n selector: '[slInlineMessageActions]',\n standalone: true,\n exportAs: 'slInlineMessageActions',\n host: { 'data-part': 'actions', 'data-part-actions': '' },\n providers: [\n { provide: SlInlineMessageActionsRef, useExisting: forwardRef(() => SlInlineMessageActions) },\n {\n provide: BUTTON_DEFAULTS_TOKEN,\n useFactory: () => ({\n ...inject(BUTTON_DEFAULTS_TOKEN, { skipSelf: true }),\n size: inject(SlInlineMessage).resolvedSize(),\n }),\n },\n ],\n})\nexport class SlInlineMessageActions {}\n","import { Directive } from '@angular/core';\n\n/**\n * A mark the page supplies instead of the tone's own. It is projected into the\n * box the family draws, so it keeps the size, the colour and the place on the\n * message's first line the tone's mark would have had.\n *\n * It is a marker rather than a component: what goes inside is the page's own\n * artwork, and the family has nothing to add to it beyond where it sits.\n */\n@Directive({\n selector: '[slInlineMessageIcon]',\n standalone: true,\n exportAs: 'slInlineMessageIcon',\n})\nexport class SlInlineMessageIcon {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;AAqCA;;;;;;;;;AASG;AACI,MAAM,uBAAuB,GAA0B;AAC5D,IAAA,MAAM,EAAE,IAAI;AACZ,IAAA,SAAS,EAAE,IAAI;AACf,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,OAAO,EAAE,UAAU;AACnB,IAAA,OAAO,EAAE,UAAU;AACnB,IAAA,MAAM,EAAE,QAAQ;;AAWlB,MAAM,QAAQ,GAA0B;AACtC,IAAA,IAAI,EAAE,KAAK;AACX,IAAA,IAAI,EAAE,OAAO;AACb,IAAA,QAAQ,EAAE,uBAAuB;AACjC,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,IAAI,EAAE,WAAW;CAClB;MAEY,uBAAuB,GAAG,IAAI,cAAc,CACvD,iCAAiC,EACjC,EAAE,UAAU,EAAE,MAAM,EAAE,OAAO,EAAE,MAAM,QAAQ,EAAE;AAGjD;;;;;;;;AAQG;AACG,SAAU,4BAA4B,CAC1C,QAEC,EAAA;IAED,OAAO;AACL,QAAA,OAAO,EAAE,uBAAuB;AAChC,QAAA,UAAU,EAAE,OAA8B;AACxC,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI;AACpC,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI;YACpC,QAAQ,EAAE,EAAE,GAAG,QAAQ,CAAC,QAAQ,EAAE,GAAG,QAAQ,CAAC,QAAQ,EAAE;AACxD,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,IAAI;AACpC,YAAA,IAAI,EAAE,QAAQ,CAAC,IAAI,IAAI,QAAQ,CAAC,I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,EAAE,WAAW,EAAE,SAAS,EAAE,mBAAmB,EAAE,EAAE,EAAE;AACzD,oBAAA,SAAS,EAAE;AACT,wBAAA,EAAE,OAAO,EAAE,yBAAyB,EAAE,WAAW,EAAE,UAAU,CAAC,MAAK,sBAAuB,CAAC,EAAE;AAC7F,wBAAA;AACE,4BAAA,OAAO,EAAE,qBAAqB;AAC9B,4BAAA,UAAU,EAAE,OAAO;gCACjB,GAAG,MAAM,CAAC,qBAAqB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACpD,gCAAA,IAAI,EAAE,MAAM,CAAC,eAAe,CAAC,CAAC,YAAY,EAAE;6BAC7C,CAAC;AACH,yBAAA;AACF,qBAAA;AACF,iBAAA;;;AC3PD;;;;;;;AAOG;MAMU,mBAAmB,CAAA;uGAAnB,mBAAmB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAnB,mBAAmB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,CAAA,qBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAnB,mBAAmB,EAAA,UAAA,EAAA,CAAA;kBAL/B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,qBAAqB;AAChC,iBAAA;;;ACdD;;AAEG;;"}
@@ -56,7 +56,8 @@ class SlMenubar {
56
56
  * The inputs a consumer writes are stated as they are written and read as
57
57
  * what they resolve to: `orientation()`, `size()` and `disabled()` answer the
58
58
  * bar's actual decision, which is what a menu on the bar reads through
59
- * `MENUBAR_SURFACE`. The unresolved value belongs to nobody outside.
59
+ * `MENUBAR_SURFACE`. The inputs stay public: a template binding to a
60
+ * protected input fails a consumer's strict template check.
60
61
  */
61
62
  orientationInput = input(undefined, { ...(ngDevMode ? { debugName: "orientationInput" } : /* istanbul ignore next */ {}), alias: 'orientation' });
62
63
  sizeInput = input(undefined, { ...(ngDevMode ? { debugName: "sizeInput" } : /* istanbul ignore next */ {}), alias: 'size' });
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-menubar.mjs","sources":["../../menubar/src/menubar-defaults.ts","../../menubar/src/menubar.ts","../../menubar/src/slotted-angular-menubar.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\nimport type { MenuSize } from '@slotted/angular/menu';\n\nexport type MenubarOrientation = 'horizontal' | 'vertical';\n\nexport interface MenubarDefaults {\n disabled: boolean;\n loop: boolean;\n orientation: MenubarOrientation;\n size: MenuSize;\n typeahead: boolean;\n}\n\n/**\n * A bar is horizontal, wraps at its ends and answers typeahead — the three the\n * pattern describes. `size` is the one an application usually states, and it\n * reaches every menu the bar opens.\n */\nconst FALLBACK: MenubarDefaults = {\n disabled: false,\n loop: true,\n orientation: 'horizontal',\n size: 'md',\n typeahead: true,\n};\n\nexport const MENUBAR_DEFAULTS = new InjectionToken<MenubarDefaults>('slotted menubar defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/** The decisions an application takes once, in its bootstrap. */\nexport function provideMenubarDefaults(defaults: Partial<MenubarDefaults>) {\n return {\n provide: MENUBAR_DEFAULTS,\n useFactory: (): MenubarDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\nexport function injectMenubarDefaults(): MenubarDefaults {\n return inject(MENUBAR_DEFAULTS);\n}\n","import { createRovingTabindex } from '@slotted/core/focus';\nimport type { RovingTabindexHandle } from '@slotted/core/focus';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport { createTypeahead, isPrintable } from '@slotted/core/typeahead';\nimport type { TypeaheadHandle } from '@slotted/core/typeahead';\nimport { MENUBAR_SURFACE } from '@slotted/angular/menu';\nimport type { MenubarSurface, MenuOpenReason, MenuSize } from '@slotted/angular/menu';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n ElementRef,\n forwardRef,\n inject,\n input,\n model,\n output,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectMenubarDefaults } from './menubar-defaults';\nimport type { MenubarOrientation } from './menubar-defaults';\n\nexport type { MenubarDefaults, MenubarOrientation } from './menubar-defaults';\n\nconst TRIGGER_SELECTOR = \"[data-part='trigger']\";\n\n/**\n * A row of triggers with one tab stop, each opening a `menu`.\n *\n * The bar holds which menu is open and nothing else: every part inside it\n * belongs to the `menu` family and is imported from `@slotted/angular/menu`.\n * The CDK's menubar and Radix's each restate the whole menu API a second time,\n * which is two copies of one machine and one place for a later capability to go\n * missing.\n */\n@Component({\n selector: 'sl-menubar',\n standalone: true,\n exportAs: 'slMenubar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrl: '../../../styles/src/menubar/menubar.css',\n template: '<ng-content />',\n host: {\n 'data-ui': 'menubar',\n 'data-ui-menubar': '',\n 'data-part': 'root',\n 'data-part-root': '',\n role: 'menubar',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-size]': 'size()',\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\n '[attr.aria-disabled]': 'disabled() ? true : null',\n '[attr.aria-orientation]': 'ariaOrientation()',\n '(keydown)': 'onKeyDown($event)',\n },\n providers: [{ provide: MENUBAR_SURFACE, useExisting: forwardRef(() => SlMenubar) }],\n})\nexport class SlMenubar implements MenubarSurface {\n /**\n * The menu now open, named by its own `value`. A bar has at most one, so its\n * state is that name rather than a boolean on each menu — the one model that\n * cannot represent two open menus at once.\n */\n readonly value = model<string | undefined>(undefined);\n /** One output for one transition, carrying the reason and the event. */\n readonly valueChangeRequest = output<ChangeRequest<string>>();\n\n /**\n * The inputs a consumer writes are stated as they are written and read as\n * what they resolve to: `orientation()`, `size()` and `disabled()` answer the\n * bar's actual decision, which is what a menu on the bar reads through\n * `MENUBAR_SURFACE`. The unresolved value belongs to nobody outside.\n */\n protected readonly orientationInput = input<MenubarOrientation | undefined>(undefined, {\n alias: 'orientation',\n });\n protected readonly sizeInput = input<MenuSize | undefined>(undefined, { alias: 'size' });\n protected readonly disabledInput = input(undefined, {\n alias: 'disabled',\n transform: (given: boolean | string | undefined) =>\n given === undefined ? undefined : booleanAttribute(given),\n });\n readonly loop = input(undefined, {\n transform: (given: boolean | string | undefined) =>\n given === undefined ? undefined : booleanAttribute(given),\n });\n readonly typeahead = input(undefined, {\n transform: (given: boolean | string | undefined) =>\n given === undefined ? undefined : booleanAttribute(given),\n });\n\n private readonly defaults = injectMenubarDefaults();\n private readonly element: HTMLElement = inject(ElementRef).nativeElement;\n private readonly registry = new Map<string, HTMLElement>();\n private typeaheadHandle: TypeaheadHandle | null = null;\n\n /** Where focus goes when the bar opens one of its menus. */\n readonly entry: { current: 'first' | 'last' | 'trigger' } = { current: 'first' };\n\n readonly orientation = computed(() => this.orientationInput() ?? this.defaults.orientation);\n readonly size = computed(() => this.sizeInput() ?? this.defaults.size);\n readonly disabled = computed(() => this.disabledInput() ?? this.defaults.disabled);\n readonly resolvedLoop = computed(() => this.loop() ?? this.defaults.loop);\n readonly resolvedTypeahead = computed(() => this.typeahead() ?? this.defaults.typeahead);\n\n protected readonly ariaOrientation = computed(() =>\n this.orientation() === 'vertical' ? 'vertical' : null,\n );\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n afterNextRender(() => {\n /**\n * One tab stop for the whole bar, and the trigger the reader last left.\n * Moving along a bar that already has a menu open switches menus, which\n * is what makes it a bar rather than a row of buttons.\n */\n const tabindex: RovingTabindexHandle = createRovingTabindex(this.element, {\n includeAriaDisabled: true,\n itemSelector: TRIGGER_SELECTOR,\n loop: () => this.resolvedLoop(),\n orientation: () => this.orientation(),\n onMove: (_index, trigger) => {\n if (this.value() === undefined) return;\n this.entry.current = 'trigger';\n this.move(this.nameOf(trigger), 'keyboard');\n },\n });\n\n /* A menu arriving or leaving has to reach the tab stop, and the DOM is\n the one thing the two bindings agree on. */\n const observer = new MutationObserver(() => tabindex.refresh());\n observer.observe(this.element, { childList: true, subtree: true });\n\n if (this.resolvedTypeahead()) this.typeaheadHandle = createTypeahead();\n\n destroyRef.onDestroy(() => {\n observer.disconnect();\n tabindex.destroy();\n this.typeaheadHandle?.destroy();\n });\n });\n }\n\n /** Opens the menu that answers to this name. */\n open(value: string, reason: MenuOpenReason, source?: Event) {\n this.move(value, reason, source);\n }\n\n close(reason: MenuOpenReason, source?: Event) {\n this.move(undefined, reason, source);\n }\n\n register(value: string, trigger: HTMLElement | null) {\n if (trigger === null) this.registry.delete(value);\n else this.registry.set(value, trigger);\n }\n\n /**\n * The pattern's three-step rule for the inline axis: close what is open, move\n * to the neighbouring trigger, and open its menu. Focus stays on the trigger\n * — the recommended half of the pattern's choice — so the next arrow keeps\n * moving along the bar rather than walking into a list nobody asked for.\n */\n step(direction: 1 | -1, options?: { open?: boolean }) {\n const list = this.triggers();\n if (list.length === 0) return;\n\n const active = this.element.ownerDocument.activeElement;\n const held = this.value();\n const from = list.findIndex((trigger) => trigger === active || this.nameOf(trigger) === held);\n const index = from === -1 ? 0 : from + direction;\n const wrapped = this.resolvedLoop()\n ? (index + list.length) % list.length\n : Math.min(Math.max(index, 0), list.length - 1);\n\n const next = list[wrapped];\n if (next === undefined) return;\n next.focus({ preventScroll: true });\n if (options?.open === true) {\n this.entry.current = 'trigger';\n this.move(this.nameOf(next), 'keyboard');\n }\n }\n\n private triggers(): HTMLElement[] {\n return [...this.element.querySelectorAll<HTMLElement>(TRIGGER_SELECTOR)];\n }\n\n private nameOf(trigger: HTMLElement | undefined): string | undefined {\n if (trigger === undefined) return undefined;\n for (const [name, candidate] of this.registry) if (candidate === trigger) return name;\n return undefined;\n }\n\n private move(next: string | undefined, reason: MenuOpenReason, source?: Event) {\n if (next === this.value()) return;\n\n let cancelled = false;\n const state = createControllable<string>({\n initial: this.value() ?? '',\n onRequest: (request) => {\n this.valueChangeRequest.emit(request);\n cancelled = request.cancelled;\n },\n });\n const moved = state.request(next ?? '', reason, source);\n if (cancelled) return;\n if (moved) this.value.set(next);\n }\n\n /** The pattern asks for typeahead on a menubar as well as inside a menu. */\n protected onKeyDown(event: KeyboardEvent) {\n const handle = this.typeaheadHandle;\n if (handle === null) return;\n if (event.ctrlKey || event.metaKey || event.altKey) return;\n if (!isPrintable(event.key, handle.query.length > 0)) return;\n\n const list = this.triggers();\n const from = list.findIndex((trigger) => trigger === event.target);\n const index = handle.match(\n event.key,\n list.map((trigger) => trigger.textContent?.trim() ?? ''),\n from,\n );\n if (index === -1) return;\n\n event.preventDefault();\n const trigger = list[index];\n trigger?.focus({ preventScroll: true });\n if (this.value() === undefined) return;\n this.entry.current = 'trigger';\n this.move(this.nameOf(trigger), 'keyboard');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAaA;;;;AAIG;AACH,MAAM,QAAQ,GAAoB;AAChC,IAAA,QAAQ,EAAE,KAAK;AACf,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,WAAW,EAAE,YAAY;AACzB,IAAA,IAAI,EAAE,IAAI;AACV,IAAA,SAAS,EAAE,IAAI;CAChB;MAEY,gBAAgB,GAAG,IAAI,cAAc,CAAkB,0BAA0B,EAAE;AAC9F,IAAA,UAAU,EAAE,MAAM;AAClB,IAAA,OAAO,EAAE,MAAM,QAAQ;AACxB,CAAA;AAED;AACM,SAAU,sBAAsB,CAAC,QAAkC,EAAA;IACvE,OAAO;AACL,QAAA,OAAO,EAAE,gBAAgB;AACzB,QAAA,UAAU,EAAE,OAAwB,EAAE,GAAG,QAAQ,EAAE,GAAG,QAAQ,EAAE,CAAC;KAClE;AACH;SAEgB,qBAAqB,GAAA;AACnC,IAAA,OAAO,MAAM,CAAC,gBAAgB,CAAC;AACjC;;ACZA,MAAM,gBAAgB,GAAG,uBAAuB;AAEhD;;;;;;;;AAQG;MAwBU,SAA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EAAA,YAAY,EAAA,UAAA,EACV,IAAI,EAAA,QAAA,EACN,WAAW,mBACJ,uBAAuB,CAAC,MAAM,EAAA,aAAA,EAChC,iBAAiB,CAAC,IAAI,EAAA,QAAA,EAE3B,gBAAgB,EAAA,IAAA,EACpB;AACJ,wBAAA,SAAS,EAAE,SAAS;AACpB,wBAAA,iBAAiB,EAAE,EAAE;AACrB,wBAAA,WAAW,EAAE,MAAM;AACnB,wBAAA,gBAAgB,EAAE,EAAE;AACpB,wBAAA,IAAI,EAAE,SAAS;AACf,wBAAA,yBAAyB,EAAE,eAAe;AAC1C,wBAAA,kBAAkB,EAAE,QAAQ;AAC5B,wBAAA,sBAAsB,EAAE,wBAAwB;AAChD,wBAAA,sBAAsB,EAAE,0BAA0B;AAClD,wBAAA,yBAAyB,EAAE,mBAAmB;AAC9C,wBAAA,WAAW,EAAE,mBAAmB;AACjC,qBAAA,EAAA,SAAA,EACU,CAAC,EAAE,OAAO,EAAE,eAAe,EAAE,WAAW,EAAE,UAAU,CAAC,MAAK,SAAU,CAAC,EAAE,CAAC,EAAA,MAAA,EAAA,CAAA,u+FAAA,CAAA,EAAA;;;AC7DrF;;AAEG;;"}
1
+ {"version":3,"file":"slotted-angular-menubar.mjs","sources":["../../menubar/src/menubar-defaults.ts","../../menubar/src/menubar.ts","../../menubar/src/slotted-angular-menubar.ts"],"sourcesContent":["import { inject, InjectionToken } from '@angular/core';\nimport type { MenuSize } from '@slotted/angular/menu';\n\nexport type MenubarOrientation = 'horizontal' | 'vertical';\n\nexport interface MenubarDefaults {\n disabled: boolean;\n loop: boolean;\n orientation: MenubarOrientation;\n size: MenuSize;\n typeahead: boolean;\n}\n\n/**\n * A bar is horizontal, wraps at its ends and answers typeahead — the three the\n * pattern describes. `size` is the one an application usually states, and it\n * reaches every menu the bar opens.\n */\nconst FALLBACK: MenubarDefaults = {\n disabled: false,\n loop: true,\n orientation: 'horizontal',\n size: 'md',\n typeahead: true,\n};\n\nexport const MENUBAR_DEFAULTS = new InjectionToken<MenubarDefaults>('slotted menubar defaults', {\n providedIn: 'root',\n factory: () => FALLBACK,\n});\n\n/** The decisions an application takes once, in its bootstrap. */\nexport function provideMenubarDefaults(defaults: Partial<MenubarDefaults>) {\n return {\n provide: MENUBAR_DEFAULTS,\n useFactory: (): MenubarDefaults => ({ ...FALLBACK, ...defaults }),\n };\n}\n\nexport function injectMenubarDefaults(): MenubarDefaults {\n return inject(MENUBAR_DEFAULTS);\n}\n","import { createRovingTabindex } from '@slotted/core/focus';\nimport type { RovingTabindexHandle } from '@slotted/core/focus';\nimport { createControllable } from '@slotted/core/state';\nimport type { ChangeRequest } from '@slotted/core/state';\nimport { createTypeahead, isPrintable } from '@slotted/core/typeahead';\nimport type { TypeaheadHandle } from '@slotted/core/typeahead';\nimport { MENUBAR_SURFACE } from '@slotted/angular/menu';\nimport type { MenubarSurface, MenuOpenReason, MenuSize } from '@slotted/angular/menu';\nimport {\n afterNextRender,\n booleanAttribute,\n ChangeDetectionStrategy,\n Component,\n computed,\n DestroyRef,\n ElementRef,\n forwardRef,\n inject,\n input,\n model,\n output,\n ViewEncapsulation,\n} from '@angular/core';\n\nimport { injectMenubarDefaults } from './menubar-defaults';\nimport type { MenubarOrientation } from './menubar-defaults';\n\nexport type { MenubarDefaults, MenubarOrientation } from './menubar-defaults';\n\nconst TRIGGER_SELECTOR = \"[data-part='trigger']\";\n\n/**\n * A row of triggers with one tab stop, each opening a `menu`.\n *\n * The bar holds which menu is open and nothing else: every part inside it\n * belongs to the `menu` family and is imported from `@slotted/angular/menu`.\n * The CDK's menubar and Radix's each restate the whole menu API a second time,\n * which is two copies of one machine and one place for a later capability to go\n * missing.\n */\n@Component({\n selector: 'sl-menubar',\n standalone: true,\n exportAs: 'slMenubar',\n changeDetection: ChangeDetectionStrategy.OnPush,\n encapsulation: ViewEncapsulation.None,\n styleUrl: '../../../styles/src/menubar/menubar.css',\n template: '<ng-content />',\n host: {\n 'data-ui': 'menubar',\n 'data-ui-menubar': '',\n 'data-part': 'root',\n 'data-part-root': '',\n role: 'menubar',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-size]': 'size()',\n '[attr.data-disabled]': 'disabled() ? \"\" : null',\n '[attr.aria-disabled]': 'disabled() ? true : null',\n '[attr.aria-orientation]': 'ariaOrientation()',\n '(keydown)': 'onKeyDown($event)',\n },\n providers: [{ provide: MENUBAR_SURFACE, useExisting: forwardRef(() => SlMenubar) }],\n})\nexport class SlMenubar implements MenubarSurface {\n /**\n * The menu now open, named by its own `value`. A bar has at most one, so its\n * state is that name rather than a boolean on each menu — the one model that\n * cannot represent two open menus at once.\n */\n readonly value = model<string | undefined>(undefined);\n /** One output for one transition, carrying the reason and the event. */\n readonly valueChangeRequest = output<ChangeRequest<string>>();\n\n /**\n * The inputs a consumer writes are stated as they are written and read as\n * what they resolve to: `orientation()`, `size()` and `disabled()` answer the\n * bar's actual decision, which is what a menu on the bar reads through\n * `MENUBAR_SURFACE`. The inputs stay public: a template binding to a\n * protected input fails a consumer's strict template check.\n */\n readonly orientationInput = input<MenubarOrientation | undefined>(undefined, {\n alias: 'orientation',\n });\n readonly sizeInput = input<MenuSize | undefined>(undefined, { alias: 'size' });\n readonly disabledInput = input(undefined, {\n alias: 'disabled',\n transform: (given: boolean | string | undefined) =>\n given === undefined ? undefined : booleanAttribute(given),\n });\n readonly loop = input(undefined, {\n transform: (given: boolean | string | undefined) =>\n given === undefined ? undefined : booleanAttribute(given),\n });\n readonly typeahead = input(undefined, {\n transform: (given: boolean | string | undefined) =>\n given === undefined ? undefined : booleanAttribute(given),\n });\n\n private readonly defaults = injectMenubarDefaults();\n private readonly element: HTMLElement = inject(ElementRef).nativeElement;\n private readonly registry = new Map<string, HTMLElement>();\n private typeaheadHandle: TypeaheadHandle | null = null;\n\n /** Where focus goes when the bar opens one of its menus. */\n readonly entry: { current: 'first' | 'last' | 'trigger' } = { current: 'first' };\n\n readonly orientation = computed(() => this.orientationInput() ?? this.defaults.orientation);\n readonly size = computed(() => this.sizeInput() ?? this.defaults.size);\n readonly disabled = computed(() => this.disabledInput() ?? this.defaults.disabled);\n readonly resolvedLoop = computed(() => this.loop() ?? this.defaults.loop);\n readonly resolvedTypeahead = computed(() => this.typeahead() ?? this.defaults.typeahead);\n\n protected readonly ariaOrientation = computed(() =>\n this.orientation() === 'vertical' ? 'vertical' : null,\n );\n\n constructor() {\n const destroyRef = inject(DestroyRef);\n\n afterNextRender(() => {\n /**\n * One tab stop for the whole bar, and the trigger the reader last left.\n * Moving along a bar that already has a menu open switches menus, which\n * is what makes it a bar rather than a row of buttons.\n */\n const tabindex: RovingTabindexHandle = createRovingTabindex(this.element, {\n includeAriaDisabled: true,\n itemSelector: TRIGGER_SELECTOR,\n loop: () => this.resolvedLoop(),\n orientation: () => this.orientation(),\n onMove: (_index, trigger) => {\n if (this.value() === undefined) return;\n this.entry.current = 'trigger';\n this.move(this.nameOf(trigger), 'keyboard');\n },\n });\n\n /* A menu arriving or leaving has to reach the tab stop, and the DOM is\n the one thing the two bindings agree on. */\n const observer = new MutationObserver(() => tabindex.refresh());\n observer.observe(this.element, { childList: true, subtree: true });\n\n if (this.resolvedTypeahead()) this.typeaheadHandle = createTypeahead();\n\n destroyRef.onDestroy(() => {\n observer.disconnect();\n tabindex.destroy();\n this.typeaheadHandle?.destroy();\n });\n });\n }\n\n /** Opens the menu that answers to this name. */\n open(value: string, reason: MenuOpenReason, source?: Event) {\n this.move(value, reason, source);\n }\n\n close(reason: MenuOpenReason, source?: Event) {\n this.move(undefined, reason, source);\n }\n\n register(value: string, trigger: HTMLElement | null) {\n if (trigger === null) this.registry.delete(value);\n else this.registry.set(value, trigger);\n }\n\n /**\n * The pattern's three-step rule for the inline axis: close what is open, move\n * to the neighbouring trigger, and open its menu. Focus stays on the trigger\n * — the recommended half of the pattern's choice — so the next arrow keeps\n * moving along the bar rather than walking into a list nobody asked for.\n */\n step(direction: 1 | -1, options?: { open?: boolean }) {\n const list = this.triggers();\n if (list.length === 0) return;\n\n const active = this.element.ownerDocument.activeElement;\n const held = this.value();\n const from = list.findIndex((trigger) => trigger === active || this.nameOf(trigger) === held);\n const index = from === -1 ? 0 : from + direction;\n const wrapped = this.resolvedLoop()\n ? (index + list.length) % list.length\n : Math.min(Math.max(index, 0), list.length - 1);\n\n const next = list[wrapped];\n if (next === undefined) return;\n next.focus({ preventScroll: true });\n if (options?.open === true) {\n this.entry.current = 'trigger';\n this.move(this.nameOf(next), 'keyboard');\n }\n }\n\n private triggers(): HTMLElement[] {\n return [...this.element.querySelectorAll<HTMLElement>(TRIGGER_SELECTOR)];\n }\n\n private nameOf(trigger: HTMLElement | undefined): string | undefined {\n if (trigger === undefined) return undefined;\n for (const [name, candidate] of this.registry) if (candidate === trigger) return name;\n return undefined;\n }\n\n private move(next: string | undefined, reason: MenuOpenReason, source?: Event) {\n if (next === this.value()) return;\n\n let cancelled = false;\n const state = createControllable<string>({\n initial: this.value() ?? '',\n onRequest: (request) => {\n this.valueChangeRequest.emit(request);\n cancelled = request.cancelled;\n },\n });\n const moved = state.request(next ?? '', reason, source);\n if (cancelled) return;\n if (moved) this.value.set(next);\n }\n\n /** The pattern asks for typeahead on a menubar as well as inside a menu. */\n protected onKeyDown(event: KeyboardEvent) {\n const handle = this.typeaheadHandle;\n if (handle === null) return;\n if (event.ctrlKey || event.metaKey || event.altKey) return;\n if (!isPrintable(event.key, handle.query.length > 0)) return;\n\n const list = this.triggers();\n const from = list.findIndex((trigger) => trigger === event.target);\n const index = handle.match(\n event.key,\n list.map((trigger) => trigger.textContent?.trim() ?? ''),\n from,\n );\n if (index === -1) return;\n\n event.preventDefault();\n const trigger = list[index];\n trigger?.focus({ preventScroll: true });\n if (this.value() === undefined) return;\n this.entry.current = 'trigger';\n this.move(this.nameOf(trigger), 'keyboard');\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;AAaA;;;;AAIG;AACH,MAAM,QAAQ,GAAoB;AAChC,IAAA,QAAQ,EAAE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AC,EAAE,CAAC,EAAA,MAAA,EAAA,CAAA,u+FAAA,CAAA,EAAA;;;AC7DrF;;AAEG;;"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@slotted/angular",
3
- "version": "0.1.0-beta.17",
3
+ "version": "0.1.0-beta.18",
4
4
  "license": "MIT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -16,8 +16,8 @@
16
16
  "@angular/common": ">=22.1.0 <23",
17
17
  "@angular/core": ">=22.1.0 <23",
18
18
  "@angular/forms": ">=22.1.0 <23",
19
- "@slotted/core": "0.1.0-beta.17",
20
- "@slotted/theme": "0.1.0-beta.17"
19
+ "@slotted/core": "0.1.0-beta.18",
20
+ "@slotted/theme": "0.1.0-beta.18"
21
21
  },
22
22
  "module": "fesm2022/slotted-angular.mjs",
23
23
  "typings": "types/slotted-angular.d.ts",
@@ -502,7 +502,7 @@ declare class SlAppShellAsideResizer {
502
502
  protected endDrag(event: PointerEvent): void;
503
503
  protected keyDown(event: KeyboardEvent): void;
504
504
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlAppShellAsideResizer, never>;
505
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlAppShellAsideResizer, "[slAppShellAsideResizer]", ["slAppShellAsideResizer"], {}, {}, never, never, true, never>;
505
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlAppShellAsideResizer, "[slAppShellAsideResizer]", ["slAppShellAsideResizer"], {}, {}, never, never, true, never>;
506
506
  }
507
507
  /** The pinned bottom: the actions that close the task the pane holds. */
508
508
  declare class SlAppShellAsideFooter {
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-app-shell.d.ts","sources":["../../app-shell/src/app-shell-defaults.ts","../../app-shell/src/app-shell.ts"],"mappings":";;;;;;;;AAEA;;;;;;;AAOG;AACG,KAAM,eAAe;AAE3B;;;;;;;AAOG;AACG,KAAM,cAAc;AAE1B;;;;AAIG;KACS,kBAAkB;AAE9B;;;AAGG;AACG,K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A3G3B,sBAAsB;sDAAtB,sBAAsB;AAoJlC;AAED;AACA,cAMa,qBAAqB;oDAArB,qBAAqB;sDAArB,qBAAqB;AAAG;AAErC;;;;AAIG;AACH,cAsBa,qBAAqB;AAChC,8BAAwB,UAAA;AACxB;AACA;AACA;AAIA;AACA;AACA,8BAAwB,aAAA,CAAA,MAAA;AAKxB,2BAAuB,UAAU;oDAftB,qBAAqB;sDAArB,qBAAqB;AAmBjC;AAED;AACA,cAMa,gBAAgB;;oDAAhB,gBAAgB;sDAAhB,gBAAgB;AAI5B;AAED;;;;;;AAMG;AACH,cAqBa,mBAAmB;AAC9B,8BAAwB,UAAA;AACxB;AACA;AACA;AAIA;AACA;AACA,8BAAwB,aAAA,CAAA,MAAA;AAKxB,2BAAuB,UAAU;oDAftB,mBAAmB;sDAAnB,mBAAmB;AAsB/B;;","names":[]}
1
+ {"version":3,"file":"slotted-angular-app-shell.d.ts","sources":["../../app-shell/src/app-shell-defaults.ts","../../app-shell/src/app-shell.ts"],"mappings":";;;;;;;;AAEA;;;;;;;AAOG;AACG,KAAM,eAAe;AAE3B;;;;;;;AAOG;AACG,KAAM,cAAc;AAE1B;;;;AAIG;KACS,kBAAkB;AAE9B;;;AAGG;AACG,KAAM,eAAe;AAE3B;AACM,KAAM,iBAAiB;AAE7B;KACY,eAAe;AAE3B;KACY,mBAAmB;AAE/B;AACM,KAAM,YAAY;AAExB;KACY,cAAc;AAE1B;KACY,qBAAqB;AAEjC;KACY,kBAAkB;AAU9B;AACM,KAAM,uBAAuB,GAAG,OAAO,CAAC,kBAAkB;AAEhE;AACM,KAAM,yBAAyB;AAErC;;;AAGG;UACc,0BAA0B;AACzC;AACA;AACA,qBAAiB,yBAAyB;AAC1C;AACA;;AAED;AAED;UACiB,mBAAmB;AAClC;AACA;AACA,qBAAiB,kBAAkB;AACnC;AACA;;AAED;UAEgB,gBAAgB;eACpB,iBAAiB;eACjB,YAAY;YACf,cAAc;;iBAET,mBAAmB;YACxB,qBAAqB;;U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2BAAuB,UAAU;oDAftB,mBAAmB;sDAAnB,mBAAmB;AAsB/B;;","names":[]}
@@ -257,9 +257,9 @@ declare class SlCurrencyFieldInput implements ControlValueAccessor, OnInit, SlCu
257
257
  * `null` is empty, and `undefined` is the absence that makes the control
258
258
  * uncontrolled — the two are different answers.
259
259
  */
260
- protected readonly valueInUnit: _angular_core.InputSignalWithTransform<number | null | undefined, unknown>;
260
+ readonly valueInUnit: _angular_core.InputSignalWithTransform<number | null | undefined, unknown>;
261
261
  /** The amount the control starts from when nobody else writes one, in `unit`. */
262
- protected readonly defaultValueInUnit: _angular_core.InputSignalWithTransform<number | null, unknown>;
262
+ readonly defaultValueInUnit: _angular_core.InputSignalWithTransform<number | null, unknown>;
263
263
  /**
264
264
  * The unit `value`, `defaultValue`, `min`, `max`, the steps, `stepFrom`,
265
265
  * `valueChange`, the form model and the submitted amount are in. `major` is
@@ -277,17 +277,17 @@ declare class SlCurrencyFieldInput implements ControlValueAccessor, OnInit, SlCu
277
277
  */
278
278
  readonly formatOn: _angular_core.InputSignal<CurrencyFieldFormatOn | undefined>;
279
279
  /** The smallest amount, in `unit`. */
280
- protected readonly minInUnit: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
280
+ readonly minInUnit: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
281
281
  /** The largest amount, in `unit`. */
282
- protected readonly maxInUnit: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
282
+ readonly maxInUnit: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
283
283
  /** What the arrows and the two buttons move by, in `unit`. One major unit by default. */
284
- protected readonly stepInUnit: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
284
+ readonly stepInUnit: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
285
285
  /** The amount `Shift` and the page keys move by. Defaults to `step * 10`. */
286
- protected readonly largeStepInUnit: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
286
+ readonly largeStepInUnit: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
287
287
  /** The amount `Alt` moves by. Defaults to `step / 10`. */
288
- protected readonly smallStepInUnit: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
288
+ readonly smallStepInUnit: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
289
289
  /** Where an empty control starts stepping from. Defaults to `min`, then nought. */
290
- protected readonly stepFromInUnit: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
290
+ readonly stepFromInUnit: _angular_core.InputSignalWithTransform<number | undefined, unknown>;
291
291
  /** Where an amount outside the range goes, and when. Defaults to the token, then `blur`. */
292
292
  readonly clamp: _angular_core.InputSignal<CurrencyFieldClamp | undefined>;
293
293
  /** Any other `Intl.NumberFormatOptions`. Every key here wins over the family's own. */
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-currency-field.d.ts","sources":["../../currency-field/src/currency-field-defaults.ts","../../currency-field/src/currency-field.ts","../../currency-field/src/currency-field-input.ts","../../currency-field/src/currency-field-parts.ts"],"mappings":";;;;;;;;AAIA;AACM,KAAM,iBAAiB;AAE7B;;;;;AAKG;AACG,KAAM,oBAAoB;AAEhC;;;;;AAKG;KACS,uBAAuB;AAEnC;;;;;;;AAOG;KACS,kBAAkB;AAE9B;;;AAGG;KACS,kBAAkB;AAE9B;;;AAGG;AACG,KAAM,oBAAoB;AAEhC;;;;AAIG;AACG,KAAM,kBAAkB;AAE9B;;;;;;;;;;;AAWG;KACS,qBAAqB;AAEjC;;;;;AAKG;AACG,KAAM,oBAAoB;UAEf,qBAAqB;WAC7B,kBAAkB;WAClB,kBAAkB;;AAEzB;qBACiB,oBAAoB;WAC9B,kBAAkB;cACf,qBAAqB;UACzB,iBAAiB;aACd,oBAAoB;UACvB,YAAY;aACT,oBAAoB;AAC9B;AAeD,cAAa,uBAAuB,EAAA,cAAA,CAAA,qBAAA;AAKpC;;;;;;;;;AASG;AACH,iBAAgB,4BAA4B,WAAW,OAAO,CAAC,qBAAqB;;sBAGhE,qBAAqB;AAExC;AAED;AACA,iBAAgB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AqCA;AAIA;AAKA;;;;;AAKG;AACH;oDAvrBW,oBAAoB;sDAApB,oBAAoB;AAwsBhC;;ACrzBD;;;;;;;;;AASG;AACH,cAMa,oBAAoB;oDAApB,oBAAoB;sDAApB,oBAAoB;AAAG;AAEpC;AACA,cAMa,kBAAkB;oDAAlB,kBAAkB;sDAAlB,kBAAkB;AAAG;AAElC;;;;;;;;;;;;;;;AAeG;AACH,cAgBa,oBAAoB;;0BAEX,aAAA,CAAA,WAAA;AAEpB;AACA,+BAAyB,aAAA,CAAA,cAAA;;AAGzB,2BAAuB,YAAY;AAgBnC,0BAAsB,YAAY;AAKlC;oDA7BW,oBAAoB;sDAApB,oBAAoB;AAmChC;;","names":[]}
1
+ {"version":3,"file":"slotted-angular-currency-field.d.ts","sources":["../../currency-field/src/currency-field-defaults.ts","../../currency-field/src/currency-field.ts","../../currency-field/src/currency-field-input.ts","../../currency-field/src/currency-field-parts.ts"],"mappings":";;;;;;;;AAIA;AACM,KAAM,iBAAiB;AAE7B;;;;;AAKG;AACG,KAAM,oBAAoB;AAEhC;;;;;AAKG;KACS,uBAAuB;AAEnC;;;;;;;AAOG;KACS,kBAAkB;AAE9B;;;AAGG;KACS,kBAAkB;AAE9B;;;AAGG;AACG,KAAM,oBAAoB;AAEhC;;;;AAIG;AACG,KAAM,kBAAkB;AAE9B;;;;;;;;;;;AAWG;KACS,qBAAqB;AAEjC;;;;;AAKG;AACG,KAAM,oBAAoB;UAEf,qBAAqB;WAC7B,kBAAkB;WAClB,kBAAkB;;AAEzB;qBACiB,oBAAoB;WAC9B,kBAAkB;cACf,qBAAqB;UACzB,iBAAiB;aACd,oBAAoB;UACvB,YAAY;aACT,oBAAoB;AAC9B;AAeD,cAAa,uBAAuB,EAAA,cAAA,CAAA,qBAAA;AAKpC;;;;;;;;;AASG;AACH,iBAAgB,4BAA4B,WAAW,OAAO,CAAC,qBAAqB;;sBAGhE,qBAAqB;AAExC;AAED;AACA,iBAAgB,2BAA2B,IAAI,qBAAqB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;;;;;;AASG;AACH,cAMa,oBAAoB;oDAApB,oBAAoB;sDAApB,oBAAoB;AAAG;AAEpC;AACA,cAMa,kBAAkB;oDAAlB,kBAAkB;sDAAlB,kBAAkB;AAAG;AAElC;;;;;;;;;;;;;;;AAeG;AACH,cAgBa,oBAAoB;;0BAEX,aAAA,CAAA,WAAA;AAEpB;AACA,+BAAyB,aAAA,CAAA,cAAA;;AAGzB,2BAAuB,YAAY;AAgBnC,0BAAsB,YAAY;AAKlC;oDA7BW,oBAAoB;sDAApB,oBAAoB;AAmChC;;","names":[]}
@@ -8,6 +8,8 @@ import { ChangeRequest } from '@slotted/core/state';
8
8
  type DescriptionListLayout = 'row' | 'stack';
9
9
  /** How many pairs stand side by side before the container narrows. */
10
10
  type DescriptionListColumns = 1 | 2 | 3;
11
+ /** The narrowest column before the count folds: `md` 17rem, `sm` 12.5rem. */
12
+ type DescriptionListMinColumnWidth = 'sm' | 'md';
11
13
  /** Nothing between pairs, a rule between them, or a framed table. */
12
14
  type DescriptionListVariant = 'plain' | 'ruled' | 'framed';
13
15
  /**
@@ -31,12 +33,15 @@ interface DescriptionListCopyRequest {
31
33
  interface DescriptionListDefaults {
32
34
  columns?: DescriptionListColumns;
33
35
  layout?: DescriptionListLayout;
36
+ /** The narrowest column before the count folds: `md` holds two columns to 34rem, `sm` to 25rem. */
37
+ minColumnWidth?: DescriptionListMinColumnWidth;
34
38
  /** The maximum width of the term column, as a CSS length. */
35
39
  termWidth?: string;
36
40
  variant?: DescriptionListVariant;
37
41
  }
38
42
  declare const DESCRIPTION_LIST_DEFAULT_LAYOUT: DescriptionListLayout;
39
43
  declare const DESCRIPTION_LIST_DEFAULT_COLUMNS: DescriptionListColumns;
44
+ declare const DESCRIPTION_LIST_DEFAULT_MIN_COLUMN_WIDTH: DescriptionListMinColumnWidth;
40
45
  declare const DESCRIPTION_LIST_DEFAULT_VARIANT: DescriptionListVariant;
41
46
  /** How long the copy control says it succeeded before returning to rest. */
42
47
  declare const COPIED_FOR = 1500;
@@ -126,6 +131,8 @@ declare class SlDescriptionList {
126
131
  readonly layout: _angular_core.InputSignal<DescriptionListLayout | undefined>;
127
132
  readonly columns: _angular_core.InputSignalWithTransform<DescriptionListColumns | undefined, string | DescriptionListColumns | undefined>;
128
133
  readonly variant: _angular_core.InputSignal<DescriptionListVariant | undefined>;
134
+ /** The narrowest column before the count folds: `md` holds two columns to 34rem, `sm` to 25rem. */
135
+ readonly minColumnWidth: _angular_core.InputSignal<DescriptionListMinColumnWidth | undefined>;
129
136
  /** The maximum width of the term column, as a CSS length. */
130
137
  readonly termWidth: _angular_core.InputSignal<string | undefined>;
131
138
  /**
@@ -137,12 +144,13 @@ declare class SlDescriptionList {
137
144
  private readonly defaults;
138
145
  readonly layoutValue: _angular_core.Signal<DescriptionListLayout>;
139
146
  readonly columnsValue: _angular_core.Signal<DescriptionListColumns>;
147
+ readonly minColumnWidthValue: _angular_core.Signal<DescriptionListMinColumnWidth>;
140
148
  readonly variantValue: _angular_core.Signal<DescriptionListVariant>;
141
149
  readonly termWidthValue: _angular_core.Signal<string | undefined>;
142
150
  /** The family's words in the language in force, with this list's `messages` laid over them. */
143
151
  readonly t: _slotted_core_i18n.FamilyTranslator<DescriptionListMessages>;
144
152
  static ɵfac: _angular_core.ɵɵFactoryDeclaration<SlDescriptionList, never>;
145
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlDescriptionList, "div[slDescriptionList]", ["slDescriptionList"], { "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "termWidth": { "alias": "termWidth"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
153
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<SlDescriptionList, "div[slDescriptionList]", ["slDescriptionList"], { "layout": { "alias": "layout"; "required": false; "isSignal": true; }; "columns": { "alias": "columns"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "minColumnWidth": { "alias": "minColumnWidth"; "required": false; "isSignal": true; }; "termWidth": { "alias": "termWidth"; "required": false; "isSignal": true; }; "messages": { "alias": "messages"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
146
154
  }
147
155
  /**
148
156
  * One name-value pair, and the `div` the HTML Standard permits inside a `dl`.
@@ -276,6 +284,6 @@ declare class SlDescriptionListAction {
276
284
  static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SlDescriptionListAction, "dd[slDescriptionListAction]", ["slDescriptionListAction"], {}, {}, never, never, true, never>;
277
285
  }
278
286
 
279
- export { COPIED_FOR, DESCRIPTION_LIST_DEFAULTS_TOKEN, DESCRIPTION_LIST_DEFAULT_COLUMNS, DESCRIPTION_LIST_DEFAULT_LAYOUT, DESCRIPTION_LIST_DEFAULT_VARIANT, SlDescriptionList, SlDescriptionListAction, SlDescriptionListDescription, SlDescriptionListHint, SlDescriptionListIdFactory, SlDescriptionListItem, SlDescriptionListTerm, copyToClipboard, injectDescriptionListDefaults, overflowsClamp, provideDescriptionListDefaults, selectValue, spanWithin };
280
- export type { DescriptionListColumns, DescriptionListCopyRequest, DescriptionListDefaults, DescriptionListLayout, DescriptionListVariant };
287
+ export { COPIED_FOR, DESCRIPTION_LIST_DEFAULTS_TOKEN, DESCRIPTION_LIST_DEFAULT_COLUMNS, DESCRIPTION_LIST_DEFAULT_LAYOUT, DESCRIPTION_LIST_DEFAULT_MIN_COLUMN_WIDTH, DESCRIPTION_LIST_DEFAULT_VARIANT, SlDescriptionList, SlDescriptionListAction, SlDescriptionListDescription, SlDescriptionListHint, SlDescriptionListIdFactory, SlDescriptionListItem, SlDescriptionListTerm, copyToClipboard, injectDescriptionListDefaults, overflowsClamp, provideDescriptionListDefaults, selectValue, spanWithin };
288
+ export type { DescriptionListColumns, DescriptionListCopyRequest, DescriptionListDefaults, DescriptionListLayout, DescriptionListMinColumnWidth, DescriptionListVariant };
281
289
  //# sourceMappingURL=slotted-angular-description-list.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-description-list.d.ts","sources":["../../description-list/src/description-list.constants.ts","../../description-list/src/description-list.ts"],"mappings":";;;;;;AAGA;KACY,qBAAqB;AAEjC;AACM,KAAM,sBAAsB;AAElC;AACM,KAAM,sBAAsB;AAElC;;;;;AAKG;UACc,0BAA0B;AACzC;AACA;;AAEA;AACA;;;AAGG;AACH;AACA,sBAAkB,KAAK;AACxB;UAEgB,uBAAuB;cAC5B,sBAAsB;aACvB,qBAAqB;;;cAGpB,sBAAsB;AACjC;AAED,cAAa,+BAA+B,EAAE,qBAA6B;AAC3E,cAAa,gCAAgC,EAAE,sBAA0B;AACzE,cAAa,gCAAgC,EAAE,sBAAgC;AAW/E;AACA,cAAa,UAAU;AAEvB,cAAa,+BAA+B,EAAA,cAAA,CAAA,uBAAA;AAK5C;;;;;AAKG;AACH,iBAAgB,8BAA8B,WAAW,uBAAuB;;;AAE/E;AAED,iBAAgB,6BAA6B,IAAI,uBAAuB;AAIxE;;;;;;;;AAQG;AACH,iBAAgB,UAAU;AAM1B;;;;;;;;;;;AAWG;AACH,iBAAgB,cAAc;AAK9B;;;;AAIG;AACH,iBAAgB,WAAW,OAAO,WAAW;AAe7C;;;;;;;;;;;AAWG;AACH,iBAAsB,eAAe,iBAAiB,OAAO;AAI7D;;;;;AAKG;AACH,cACa,0BAA0B;;;oDAA1B,0BAA0B;;AAOtC;;AC3GD;;;;;;;;;;;;;;AAcG;AACH,cAsBa,iBAAiB;qBACb,aAAA,CAAA,WAAA,CAAA,qBAAA;sBACC,aAAA,CAAA,wBAAA,CAAA,sBAAA,uBAAA,sBAAA;sBACA,aAAA,CAAA,WAAA,CAAA,sBAAA;;wBAEE,aAAA,CAAA,WAAA;AAClB;;;;AAIG;uBACc,aAAA,CAAA,WAAA,CAAA,eAAA,CAAA,uBAAA;AAEjB;0BAEoB,aAAA,CAAA,MAAA,CAAA,qBAAA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FW,uBAAuB;sDAAvB,uBAAuB;AAKnC;;","names":[]}
1
+ {"version":3,"file":"slotted-angular-description-list.d.ts","sources":["../../description-list/src/description-list.constants.ts","../../description-list/src/description-list.ts"],"mappings":";;;;;;AAGA;KACY,qBAAqB;AAEjC;AACM,KAAM,sBAAsB;AAElC;KACY,6BAA6B;AAEzC;AACM,KAAM,sBAAsB;AAElC;;;;;AAKG;UACc,0BAA0B;AACzC;AACA;;AAEA;AACA;;;AAGG;AACH;AACA,sBAAkB,KAAK;AACxB;UAEgB,uBAAuB;cAC5B,sBAAsB;aACvB,qBAAqB;;qBAEb,6BAA6B;;;cAGpC,sBAAsB;AACjC;AAED,cAAa,+BAA+B,EAAE,qBAA6B;AAC3E,cAAa,gCAAgC,EAAE,sBAA0B;AACzE,cAAa,yCAAyC,EAAE,6BAAoC;AAC5F,cAAa,gCAAgC,EAAE,sBAAgC;AAW/E;AACA,cAAa,UAAU;AAEvB,cAAa,+BAA+B,EAAA,cAAA,CAAA,uBAAA;AAK5C;;;;;AAKG;AACH,iBAAgB,8BAA8B,WAAW,uBAAuB;;;AAE/E;AAED,iBAAgB,6BAA6B,IAAI,uBAAuB;AAIxE;;;;;;;;AAQG;AACH,iBAAgB,UAAU;AAM1B;;;;;;;;;;;AAWG;AACH,iBAAgB,cAAc;AAK9B;;;;AAIG;AACH,iBAAgB,WAAW,OAAO,WAAW;AAe7C;;;;;;;;;;;AAWG;AACH,iBAAsB,eAAe,iBAAiB,OAAO;AAI7D;;;;;AAKG;AACH,cACa,0BAA0B;;;oDAA1B,0BAA0B;;AAOtC;;AC/GD;;;;;;;;;;;;;;AAcG;AACH,cAuBa,iBAAiB;qBACb,aAAA,CAAA,WAAA,CAAA,qBAAA;sBACC,aAAA,CAAA,wBAAA,CAAA,sBAAA,uBAAA,sBAAA;sBACA,aAAA,CAAA,WAAA,CAAA,sBAAA;;6BAEO,aAAA,CAAA,WAAA,CAAA,6BAAA;;wBAEL,aAAA,CAAA,WAAA;AAClB;;;;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,KAAK;kBAUD,KAAK,GAAA,OAAA;AA+BzB;oDA1JW,4BAA4B;sDAA5B,4BAA4B;AA+JxC;AAED;;;;;;;;;;AAUG;AACH,cAUa,uBAAuB;AAClC;AACA;;oDAFW,uBAAuB;sDAAvB,uBAAuB;AAKnC;;","names":[]}
@@ -5,8 +5,8 @@ import { GlyphName } from '@slotted/angular/icon';
5
5
  /** Which of the five semantic colours the message speaks in. */
6
6
  type InlineMessageTone = 'accent' | 'secondary' | 'info' | 'success' | 'warning' | 'danger';
7
7
  /**
8
- * The type step the message sits at. `sm` is the message of a field; `md` is
9
- * the message of a section. Both read the control scales, which the theme
8
+ * The type step the message sits at. `sm` sits beside a compact field; `md`
9
+ * beside a large field. A message about a section is an alert. Both read the control scales, which the theme
10
10
  * restates per density.
11
11
  */
12
12
  type InlineMessageSize = 'sm' | 'md';
@@ -41,11 +41,12 @@ declare class SlMenubar implements MenubarSurface {
41
41
  * The inputs a consumer writes are stated as they are written and read as
42
42
  * what they resolve to: `orientation()`, `size()` and `disabled()` answer the
43
43
  * bar's actual decision, which is what a menu on the bar reads through
44
- * `MENUBAR_SURFACE`. The unresolved value belongs to nobody outside.
44
+ * `MENUBAR_SURFACE`. The inputs stay public: a template binding to a
45
+ * protected input fails a consumer's strict template check.
45
46
  */
46
- protected readonly orientationInput: _angular_core.InputSignal<MenubarOrientation | undefined>;
47
- protected readonly sizeInput: _angular_core.InputSignal<MenuSize | undefined>;
48
- protected readonly disabledInput: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
47
+ readonly orientationInput: _angular_core.InputSignal<MenubarOrientation | undefined>;
48
+ readonly sizeInput: _angular_core.InputSignal<MenuSize | undefined>;
49
+ readonly disabledInput: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
49
50
  readonly loop: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
50
51
  readonly typeahead: _angular_core.InputSignalWithTransform<boolean | undefined, string | boolean | undefined>;
51
52
  private readonly defaults;
@@ -1 +1 @@
1
- {"version":3,"file":"slotted-angular-menubar.d.ts","sources":["../../menubar/src/menubar-defaults.ts","../../menubar/src/menubar.ts"],"mappings":";;;;;KAGY,kBAAkB;UAEb,eAAe;;;iBAGjB,kBAAkB;UACzB,QAAQ;;AAEf;AAeD,cAAa,gBAAgB,EAAA,cAAA,CAAA,eAAA;AAK7B;AACA,iBAAgB,sBAAsB,WAAW,OAAO,CAAC,eAAe;;sBAGpD,eAAe;AAElC;AAED,iBAAgB,qBAAqB,IAAI,eAAe;;ACRxD;;;;;;;;AAQG;AACH,cAuBa,SAAU,YAAW,cAAc;AAC9C;;;;AAIG;oBACW,aAAA,CAAA,WAAA;;iCAEa,aAAA,CAAA,gBAAA,CAAA,aAAA;AAE3B;;;;;AAKG;AACH,yCAAmC,aAAA,CAAA,WAAA,CAAA,kBAAA;AAGnC,kCAA4B,aAAA,CAAA,WAAA,CAAA,QAAA;AAC5B,sCAAgC,aAAA,CAAA,wBAAA;mBAKnB,aAAA,CAAA,wBAAA;wBAIK,aAAA,CAAA,wBAAA;AAKlB;AACA;AACA;;;;AAIkB;;0BAEE,aAAA,CAAA,MAAA,CAAA,kBAAA;mBACP,aAAA,CAAA,MAAA,CAAA,QAAA;uBACI,aAAA,CAAA,MAAA;2BACI,aAAA,CAAA,MAAA;gCACK,aAAA,CAAA,MAAA;AAE1B,wCAAkC,aAAA,CAAA,MAAA;;;AAyClC,gCAA4B,cAAc,WAAW,KAAK;kBAI5C,cAAc,WAAW,KAAK;qCAIX,WAAW;AAK5C;;;;;AAKG;;;AACiD;AAqBpD;AAIA;AAMA;;AAiBA,+BAA2B,aAAa;oDA5J7B,SAAS;sDAAT,SAAS;AAkLrB;;","names":[]}
1
+ {"version":3,"file":"slotted-angular-menubar.d.ts","sources":["../../menubar/src/menubar-defaults.ts","../../menubar/src/menubar.ts"],"mappings":";;;;;KAGY,kBAAkB;UAEb,eAAe;;;iBAGjB,kBAAkB;UACzB,QAAQ;;AAEf;AAeD,cAAa,gBAAgB,EAAA,cAAA,CAAA,eAAA;AAK7B;AACA,iBAAgB,sBAAsB,WAAW,OAAO,CAAC,eAAe;;sBAGpD,eAAe;AAElC;AAED,iBAAgB,qBAAqB,IAAI,eAAe;;ACRxD;;;;;;;;AAQG;AACH,cAuBa,SAAU,YAAW,cAAc;AAC9C;;;;AAIG;oBACW,aAAA,CAAA,WAAA;;iCAEa,aAAA,CAAA,gBAAA,CAAA,aAAA;AAE3B;;;;;;AAMG;+BACsB,aAAA,CAAA,WAAA,CAAA,kBAAA;wBAGP,aAAA,CAAA,WAAA,CAAA,QAAA;4BACI,aAAA,CAAA,wBAAA;mBAKT,aAAA,CAAA,wBAAA;wBAIK,aAAA,CAAA,wBAAA;AAKlB;AACA;AACA;;;;AAIkB;;0BAEE,aAAA,CAAA,MAAA,CAAA,kBAAA;mBACP,aAAA,CAAA,MAAA,CAAA,QAAA;uBACI,aAAA,CAAA,MAAA;2BACI,aAAA,CAAA,MAAA;gCACK,aAAA,CAAA,MAAA;AAE1B,wCAAkC,aAAA,CAAA,MAAA;;;AAyClC,gCAA4B,cAAc,WAAW,KAAK;kBAI5C,cAAc,WAAW,KAAK;qCAIX,WAAW;AAK5C;;;;;AAKG;;;AACiD;AAqBpD;AAIA;AAMA;;AAiBA,+BAA2B,aAAa;oDA7J7B,SAAS;sDAAT,SAAS;AAmLrB;;","names":[]}