@wirekyt/angular 0.0.3 → 0.0.5

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.
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirekyt-angular-field.mjs","sources":["../../src/components/field/anatomy.ts","../../src/components/field/use-context.ts","../../src/components/field/use-field.ts","../../src/components/field/root.ts","../../src/components/field/root-provider.ts","../../src/components/field/label.ts","../../src/components/field/input.ts","../../src/components/field/textarea.ts","../../src/components/field/select.ts","../../src/components/field/helper-text.ts","../../src/components/field/error-text.ts","../../src/components/field/required-indicator.ts","../../src/components/field/item.ts","../../src/components/field/wirekyt-angular-field.ts"],"sourcesContent":["import { createAnatomy } from \"@wirekyt/dom/anatomy\";\n\nexport const fieldAnatomy = createAnatomy(\"field\").parts(\n \"root\",\n \"errorText\",\n \"helperText\",\n \"input\",\n \"label\",\n \"select\",\n \"textarea\",\n \"requiredIndicator\",\n);\n\nexport const fieldParts = fieldAnatomy.build();\n","import { InjectionToken, inject } from \"@angular/core\";\n\nimport type { UseFieldReturn } from \"./use-field\";\n\nexport const FIELD_CONTEXT = new InjectionToken<UseFieldReturn>(\"WIREKYT.FIELD_CONTEXT\");\n\nexport function injectFieldContext(): UseFieldReturn {\n return inject(FIELD_CONTEXT);\n}\n\nexport function injectFieldContextOptional(): UseFieldReturn | null {\n return inject(FIELD_CONTEXT, { optional: true });\n}\n","import { type Signal, computed, signal } from \"@angular/core\";\nimport { createId } from \"@wirekyt/angular\";\nimport { injectFieldsetContextOptional } from \"@wirekyt/angular/fieldset\";\n\nimport type { FieldElementIds, FieldResolvedIds } from \"./types\";\n\nimport { fieldParts } from \"./anatomy\";\n\nexport interface UseFieldProps {\n id?: string;\n ids?: FieldElementIds;\n required?: boolean;\n disabled?: boolean;\n invalid?: boolean;\n readOnly?: boolean;\n target?: string;\n}\n\nexport interface UseFieldReturn {\n ids: FieldResolvedIds;\n disabled: Signal<boolean>;\n invalid: Signal<boolean>;\n readOnly: Signal<boolean>;\n required: Signal<boolean>;\n hasErrorText: Signal<boolean>;\n hasHelperText: Signal<boolean>;\n ariaDescribedby: Signal<string | undefined>;\n setHasErrorText(value: boolean): void;\n setHasHelperText(value: boolean): void;\n registerErrorText(): () => void;\n registerHelperText(): () => void;\n getRootProps(): Record<string, unknown>;\n getControlProps(): Record<string, unknown>;\n getLabelProps(): Record<string, unknown>;\n getInputProps(): Record<string, unknown>;\n getTextareaProps(): Record<string, unknown>;\n getSelectProps(): Record<string, unknown>;\n getHelperTextProps(): Record<string, unknown>;\n getErrorTextProps(): Record<string, unknown>;\n getRequiredIndicatorProps(): Record<string, unknown>;\n getItemControlId(value: string): string;\n getItemLabelId(value: string): string;\n}\n\nexport interface UseFieldOptions {\n context: () => UseFieldProps;\n}\n\nconst dataAttr = (value: boolean | undefined): string | undefined => (value ? \"\" : undefined);\nconst ariaAttr = (value: boolean | undefined): \"true\" | undefined => (value ? \"true\" : undefined);\n\nexport function useField(options: UseFieldOptions): UseFieldReturn {\n const fallbackId = createId();\n const fieldsetContext = injectFieldsetContextOptional();\n\n const propsSignal = computed(() => options.context());\n\n const id = computed(() => propsSignal().id ?? fallbackId);\n const ids = computed<FieldResolvedIds>(() => {\n const provided = propsSignal().ids;\n const baseId = id();\n return {\n root: provided?.root ?? `field:${baseId}`,\n control: provided?.control ?? baseId,\n label: provided?.label ?? `field:${baseId}:label`,\n errorText: provided?.errorText ?? `field:${baseId}:error-text`,\n helperText: provided?.helperText ?? `field:${baseId}:helper-text`,\n };\n });\n\n const disabled = computed(() => {\n if (propsSignal().disabled) return true;\n return fieldsetContext ? fieldsetContext.disabled() : false;\n });\n const invalid = computed(() => {\n if (propsSignal().invalid) return true;\n return fieldsetContext ? fieldsetContext.invalid() : false;\n });\n const readOnly = computed(() => Boolean(propsSignal().readOnly));\n const required = computed(() => Boolean(propsSignal().required));\n\n const errorTextCount = signal(0);\n const helperTextCount = signal(0);\n const explicitHasErrorText = signal(false);\n const explicitHasHelperText = signal(false);\n const hasErrorTextSignal = computed(() => explicitHasErrorText() || errorTextCount() > 0);\n const hasHelperTextSignal = computed(() => explicitHasHelperText() || helperTextCount() > 0);\n\n const ariaDescribedby = computed<string | undefined>(() => {\n return hasHelperTextSignal() ? ids().helperText : undefined;\n });\n\n const ariaErrormessage = computed<string | undefined>(() => {\n return hasErrorTextSignal() && invalid() ? ids().errorText : undefined;\n });\n\n const targetControlId = computed<string | undefined>(() => {\n const t = propsSignal().target;\n return t ? `field:${id()}:item:${t}` : undefined;\n });\n\n const getRootProps = (): Record<string, unknown> => ({\n ...fieldParts.root.attrs,\n id: ids().root,\n role: \"group\",\n \"data-disabled\": dataAttr(disabled()),\n \"data-invalid\": dataAttr(invalid()),\n \"data-readonly\": dataAttr(readOnly()),\n });\n\n const getLabelProps = (): Record<string, unknown> => ({\n ...fieldParts.label.attrs,\n id: ids().label,\n \"data-disabled\": dataAttr(disabled()),\n \"data-invalid\": dataAttr(invalid()),\n \"data-readonly\": dataAttr(readOnly()),\n \"data-required\": dataAttr(required()),\n htmlFor: targetControlId() ?? ids().control,\n });\n\n const getControlProps = (): Record<string, unknown> => ({\n \"aria-describedby\": ariaDescribedby(),\n \"aria-errormessage\": ariaErrormessage(),\n \"aria-invalid\": ariaAttr(invalid()),\n \"data-invalid\": dataAttr(invalid()),\n \"data-required\": dataAttr(required()),\n \"data-readonly\": dataAttr(readOnly()),\n id: ids().control,\n required: required() || undefined,\n disabled: disabled() || undefined,\n readOnly: readOnly() || undefined,\n });\n\n const getInputProps = (): Record<string, unknown> => ({\n ...getControlProps(),\n ...fieldParts.input.attrs,\n });\n\n const getTextareaProps = (): Record<string, unknown> => ({\n ...getControlProps(),\n ...fieldParts.textarea.attrs,\n });\n\n const getSelectProps = (): Record<string, unknown> => ({\n ...getControlProps(),\n ...fieldParts.select.attrs,\n });\n\n const getHelperTextProps = (): Record<string, unknown> => ({\n ...fieldParts.helperText.attrs,\n id: ids().helperText,\n \"data-disabled\": dataAttr(disabled()),\n });\n\n const getErrorTextProps = (): Record<string, unknown> => ({\n ...fieldParts.errorText.attrs,\n id: ids().errorText,\n \"aria-live\": \"polite\",\n hidden: !invalid() || undefined,\n });\n\n const getRequiredIndicatorProps = (): Record<string, unknown> => ({\n ...fieldParts.requiredIndicator.attrs,\n \"aria-hidden\": \"true\",\n hidden: !required() || undefined,\n });\n\n return {\n get ids(): FieldResolvedIds {\n return ids();\n },\n disabled,\n invalid,\n readOnly,\n required,\n hasErrorText: hasErrorTextSignal,\n hasHelperText: hasHelperTextSignal,\n ariaDescribedby,\n setHasErrorText: (value: boolean) => explicitHasErrorText.set(value),\n setHasHelperText: (value: boolean) => explicitHasHelperText.set(value),\n registerErrorText: () => {\n errorTextCount.update((count) => count + 1);\n return () => errorTextCount.update((count) => Math.max(0, count - 1));\n },\n registerHelperText: () => {\n helperTextCount.update((count) => count + 1);\n return () => helperTextCount.update((count) => Math.max(0, count - 1));\n },\n getRootProps,\n getControlProps,\n getLabelProps,\n getInputProps,\n getTextareaProps,\n getSelectProps,\n getHelperTextProps,\n getErrorTextProps,\n getRequiredIndicatorProps,\n getItemControlId: (value: string) => `field:${id()}:item:${value}`,\n getItemLabelId: (value: string) => `field:${id()}:item:${value}:label`,\n };\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n booleanAttribute,\n forwardRef,\n inject,\n input,\n type InputSignal,\n type InputSignalWithTransform,\n type Signal,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport type { FieldElementIds, FieldResolvedIds } from \"./types\";\n\nimport { FIELD_CONTEXT } from \"./use-context\";\nimport { type UseFieldReturn, useField } from \"./use-field\";\n\n@Directive({\n selector: \"[fieldRoot]\",\n standalone: true,\n exportAs: \"fieldRoot\",\n providers: [{ provide: FIELD_CONTEXT, useExisting: forwardRef(() => FieldRoot) }],\n})\nexport class FieldRoot implements UseFieldReturn {\n readonly id: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly elementIds: InputSignal<FieldElementIds | undefined> = input<\n FieldElementIds | undefined\n >(undefined, {\n alias: \"ids\",\n });\n readonly required: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly disabled: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly invalid: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly readOnly: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly target: InputSignal<string | undefined> = input<string | undefined>(undefined);\n\n private readonly field: UseFieldReturn = useField({\n context: () => ({\n id: this.id(),\n ids: this.elementIds(),\n required: this.required(),\n disabled: this.disabled(),\n invalid: this.invalid(),\n readOnly: this.readOnly(),\n target: this.target(),\n }),\n });\n\n get ids(): FieldResolvedIds {\n return this.field.ids;\n }\n\n get hasErrorText(): Signal<boolean> {\n return this.field.hasErrorText;\n }\n\n get hasHelperText(): Signal<boolean> {\n return this.field.hasHelperText;\n }\n\n get ariaDescribedby(): Signal<string | undefined> {\n return this.field.ariaDescribedby;\n }\n\n setHasErrorText(value: boolean): void {\n this.field.setHasErrorText(value);\n }\n\n setHasHelperText(value: boolean): void {\n this.field.setHasHelperText(value);\n }\n\n registerErrorText(): () => void {\n return this.field.registerErrorText();\n }\n\n registerHelperText(): () => void {\n return this.field.registerHelperText();\n }\n\n getRootProps(): Record<string, unknown> {\n return this.field.getRootProps();\n }\n getControlProps(): Record<string, unknown> {\n return this.field.getControlProps();\n }\n getLabelProps(): Record<string, unknown> {\n return this.field.getLabelProps();\n }\n getInputProps(): Record<string, unknown> {\n return this.field.getInputProps();\n }\n getTextareaProps(): Record<string, unknown> {\n return this.field.getTextareaProps();\n }\n getSelectProps(): Record<string, unknown> {\n return this.field.getSelectProps();\n }\n getHelperTextProps(): Record<string, unknown> {\n return this.field.getHelperTextProps();\n }\n getErrorTextProps(): Record<string, unknown> {\n return this.field.getErrorTextProps();\n }\n getRequiredIndicatorProps(): Record<string, unknown> {\n return this.field.getRequiredIndicatorProps();\n }\n getItemControlId(value: string): string {\n return this.field.getItemControlId(value);\n }\n getItemLabelId(value: string): string {\n return this.field.getItemLabelId(value);\n }\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.field.getRootProps(),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n computed,\n forwardRef,\n inject,\n input,\n type InputSignal,\n type Signal,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport type { FieldResolvedIds } from \"./types\";\nimport type { UseFieldReturn } from \"./use-field\";\n\nimport { FIELD_CONTEXT } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldRootProvider]\",\n standalone: true,\n exportAs: \"fieldRootProvider\",\n providers: [{ provide: FIELD_CONTEXT, useExisting: forwardRef(() => FieldRootProvider) }],\n})\nexport class FieldRootProvider implements UseFieldReturn {\n readonly value: InputSignal<UseFieldReturn> = input.required<UseFieldReturn>();\n\n readonly disabled: Signal<boolean> = computed(() => this.value().disabled());\n readonly invalid: Signal<boolean> = computed(() => this.value().invalid());\n readonly readOnly: Signal<boolean> = computed(() => this.value().readOnly());\n readonly required: Signal<boolean> = computed(() => this.value().required());\n readonly hasErrorText: Signal<boolean> = computed(() => this.value().hasErrorText());\n readonly hasHelperText: Signal<boolean> = computed(() => this.value().hasHelperText());\n readonly ariaDescribedby: Signal<string | undefined> = computed(() =>\n this.value().ariaDescribedby(),\n );\n\n get ids(): FieldResolvedIds {\n return this.value().ids;\n }\n\n setHasErrorText(value: boolean): void {\n this.value().setHasErrorText(value);\n }\n\n setHasHelperText(value: boolean): void {\n this.value().setHasHelperText(value);\n }\n\n registerErrorText(): () => void {\n return this.value().registerErrorText();\n }\n\n registerHelperText(): () => void {\n return this.value().registerHelperText();\n }\n\n getRootProps(): Record<string, unknown> {\n return this.value().getRootProps();\n }\n getControlProps(): Record<string, unknown> {\n return this.value().getControlProps();\n }\n getLabelProps(): Record<string, unknown> {\n return this.value().getLabelProps();\n }\n getInputProps(): Record<string, unknown> {\n return this.value().getInputProps();\n }\n getTextareaProps(): Record<string, unknown> {\n return this.value().getTextareaProps();\n }\n getSelectProps(): Record<string, unknown> {\n return this.value().getSelectProps();\n }\n getHelperTextProps(): Record<string, unknown> {\n return this.value().getHelperTextProps();\n }\n getErrorTextProps(): Record<string, unknown> {\n return this.value().getErrorTextProps();\n }\n getRequiredIndicatorProps(): Record<string, unknown> {\n return this.value().getRequiredIndicatorProps();\n }\n getItemControlId(value: string): string {\n return this.value().getItemControlId(value);\n }\n getItemLabelId(value: string): string {\n return this.value().getItemLabelId(value);\n }\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.value().getRootProps(),\n });\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldLabel]\",\n standalone: true,\n exportAs: \"fieldLabel\",\n})\nexport class FieldLabel {\n constructor() {\n const context = injectFieldContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getLabelProps(),\n });\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldInput]\",\n standalone: true,\n exportAs: \"fieldInput\",\n})\nexport class FieldInput {\n constructor() {\n const context = injectFieldContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getInputProps(),\n });\n }\n}\n","import { isPlatformBrowser } from \"@angular/common\";\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n PLATFORM_ID,\n Renderer2,\n booleanAttribute,\n effect,\n inject,\n input,\n type InputSignalWithTransform,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\nimport { autoresizeTextarea } from \"@wirekyt/dom/auto-resize\";\n\nimport { injectFieldContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldTextarea]\",\n standalone: true,\n exportAs: \"fieldTextarea\",\n})\nexport class FieldTextarea {\n readonly autoresize: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n\n constructor() {\n const context = injectFieldContext();\n const elementRef = inject<ElementRef<HTMLTextAreaElement>>(ElementRef);\n const destroyRef = inject(DestroyRef);\n const isBrowser = isPlatformBrowser(inject(PLATFORM_ID));\n\n bindProps({\n elementRef,\n renderer: inject(Renderer2),\n destroyRef,\n props: () => ({\n ...context.getTextareaProps(),\n style: this.autoresize() ? { resize: \"none\" } : undefined,\n }),\n });\n\n if (!isBrowser) return;\n\n effect((onCleanup) => {\n if (!this.autoresize()) return;\n\n const cleanup = autoresizeTextarea(elementRef.nativeElement);\n onCleanup(() => {\n cleanup?.();\n });\n });\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldSelect]\",\n standalone: true,\n exportAs: \"fieldSelect\",\n})\nexport class FieldSelect {\n constructor() {\n const context = injectFieldContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getSelectProps(),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n effect,\n inject,\n untracked,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldHelperText]\",\n standalone: true,\n exportAs: \"fieldHelperText\",\n})\nexport class FieldHelperText {\n constructor() {\n const context = injectFieldContext();\n\n effect((onCleanup) => {\n const unregister = untracked(() => context.registerHelperText());\n onCleanup(unregister);\n });\n\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getHelperTextProps(),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n effect,\n inject,\n untracked,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldErrorText]\",\n standalone: true,\n exportAs: \"fieldErrorText\",\n})\nexport class FieldErrorText {\n constructor() {\n const context = injectFieldContext();\n\n effect((onCleanup) => {\n const unregister = untracked(() => context.registerErrorText());\n onCleanup(unregister);\n });\n\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getErrorTextProps(),\n });\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldRequiredIndicator]\",\n standalone: true,\n exportAs: \"fieldRequiredIndicator\",\n})\nexport class FieldRequiredIndicator {\n constructor() {\n const context = injectFieldContext();\n\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getRequiredIndicatorProps(),\n });\n }\n}\n","import {\n Directive,\n computed,\n forwardRef,\n inject,\n input,\n type InputSignal,\n type Signal,\n} from \"@angular/core\";\n\nimport type { FieldResolvedIds } from \"./types\";\nimport type { UseFieldReturn } from \"./use-field\";\n\nimport { fieldParts } from \"./anatomy\";\nimport { FIELD_CONTEXT } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldItem]\",\n standalone: true,\n exportAs: \"fieldItem\",\n providers: [{ provide: FIELD_CONTEXT, useExisting: forwardRef(() => FieldItem) }],\n})\nexport class FieldItem implements UseFieldReturn {\n readonly value: InputSignal<string> = input.required<string>();\n\n private readonly parent: UseFieldReturn = inject(FIELD_CONTEXT, { skipSelf: true });\n\n readonly disabled: Signal<boolean> = computed(() => this.parent.disabled());\n readonly invalid: Signal<boolean> = computed(() => this.parent.invalid());\n readonly readOnly: Signal<boolean> = computed(() => this.parent.readOnly());\n readonly required: Signal<boolean> = computed(() => this.parent.required());\n readonly hasErrorText: Signal<boolean> = computed(() => this.parent.hasErrorText());\n readonly hasHelperText: Signal<boolean> = computed(() => this.parent.hasHelperText());\n readonly ariaDescribedby: Signal<string | undefined> = computed(() =>\n this.parent.ariaDescribedby(),\n );\n\n private readonly controlIdSignal = computed(() => this.parent.getItemControlId(this.value()));\n private readonly labelIdSignal = computed(() => this.parent.getItemLabelId(this.value()));\n\n get ids(): FieldResolvedIds {\n const parentIds = this.parent.ids;\n return {\n ...parentIds,\n control: this.controlIdSignal(),\n label: this.labelIdSignal(),\n };\n }\n\n setHasErrorText(value: boolean): void {\n this.parent.setHasErrorText(value);\n }\n\n setHasHelperText(value: boolean): void {\n this.parent.setHasHelperText(value);\n }\n\n registerErrorText(): () => void {\n return this.parent.registerErrorText();\n }\n\n registerHelperText(): () => void {\n return this.parent.registerHelperText();\n }\n\n getRootProps(): Record<string, unknown> {\n return this.parent.getRootProps();\n }\n\n getControlProps(): Record<string, unknown> {\n return {\n ...this.parent.getControlProps(),\n id: this.controlIdSignal(),\n };\n }\n\n getLabelProps(): Record<string, unknown> {\n return {\n ...this.parent.getLabelProps(),\n id: this.labelIdSignal(),\n htmlFor: this.controlIdSignal(),\n };\n }\n\n getInputProps(): Record<string, unknown> {\n return {\n ...this.getControlProps(),\n ...fieldParts.input.attrs,\n };\n }\n\n getTextareaProps(): Record<string, unknown> {\n return {\n ...this.getControlProps(),\n ...fieldParts.textarea.attrs,\n };\n }\n\n getSelectProps(): Record<string, unknown> {\n return {\n ...this.getControlProps(),\n ...fieldParts.select.attrs,\n };\n }\n\n getHelperTextProps(): Record<string, unknown> {\n return this.parent.getHelperTextProps();\n }\n\n getErrorTextProps(): Record<string, unknown> {\n return this.parent.getErrorTextProps();\n }\n\n getRequiredIndicatorProps(): Record<string, unknown> {\n return this.parent.getRequiredIndicatorProps();\n }\n\n getItemControlId(value: string): string {\n return this.parent.getItemControlId(value);\n }\n\n getItemLabelId(value: string): string {\n return this.parent.getItemLabelId(value);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;AAEO,MAAM,YAAY,GAAG,aAAa,CAAC,OAAO,CAAC,CAAC,KAAK,CACtD,MAAM,EACN,WAAW,EACX,YAAY,EACZ,OAAO,EACP,OAAO,EACP,QAAQ,EACR,UAAU,EACV,mBAAmB;AAGd,MAAM,UAAU,GAAG,YAAY,CAAC,KAAK,EAAE;;MCTjC,aAAa,GAAG,IAAI,cAAc,CAAiB,uBAAuB;SAEvE,kBAAkB,GAAA;AAChC,IAAA,OAAO,MAAM,CAAC,aAAa,CAAC;AAC9B;SAEgB,0BAA0B,GAAA;IACxC,OAAO,MAAM,CAAC,aAAa,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AAClD;;ACoCA,MAAM,QAAQ,GAAG,CAAC,KAA0B,MAA0B,KAAK,GAAG,EAAE,GAAG,SAAS,CAAC;AAC7F,MAAM,QAAQ,GAAG,CAAC,KAA0B,MAA0B,KAAK,GAAG,MAAM,GAAG,SAAS,CAAC;AAE3F,SAAU,QAAQ,CAAC,OAAwB,EAAA;AAC/C,IAAA,MAAM,UAAU,GAAG,QAAQ,EAAE;AAC7B,IAAA,MAAM,eAAe,GAAG,6BAA6B,EAAE;IAEvD,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,OAAO,CAAC,OAAO,EAAE;oFAAC;AAErD,IAAA,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,WAAW,EAAE,CAAC,EAAE,IAAI,UAAU;2EAAC;AACzD,IAAA,MAAM,G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AA,CAAA;;2FAEtE,SAAS,EAAA,UAAA,EAAA,CAAA;kBANrB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,aAAa;AACvB,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,WAAW;AACrB,oBAAA,SAAS,EAAE,CAAC,EAAE,OAAO,EAAE,aAAa,EAAE,WAAW,EAAE,UAAU,CAAC,MAAK,SAAU,CAAC,EAAE,CAAC;AAClF,iBAAA;;;ACrBD;;AAEG;;;;"}
@@ -0,0 +1,317 @@
1
+ import { createAnatomy } from '@wirekyt/dom/anatomy';
2
+ import * as i0 from '@angular/core';
3
+ import { InjectionToken, inject, computed, signal, input, booleanAttribute, DestroyRef, Renderer2, ElementRef, forwardRef, Directive, effect, untracked } from '@angular/core';
4
+ import { createId, bindProps } from '@wirekyt/angular';
5
+
6
+ const fieldsetAnatomy = createAnatomy("fieldset").parts("root", "errorText", "helperText", "legend");
7
+ const fieldsetParts = fieldsetAnatomy.build();
8
+
9
+ const FIELDSET_CONTEXT = new InjectionToken("WIREKYT.FIELDSET_CONTEXT");
10
+ function injectFieldsetContext() {
11
+ return inject(FIELDSET_CONTEXT);
12
+ }
13
+ function injectFieldsetContextOptional() {
14
+ return inject(FIELDSET_CONTEXT, { optional: true });
15
+ }
16
+
17
+ const dataAttr = (value) => (value ? "" : undefined);
18
+ function useFieldset(options) {
19
+ const fallbackId = createId();
20
+ const propsSignal = computed(() => options.context(), /* @ts-ignore */
21
+ ...(ngDevMode ? [{ debugName: "propsSignal" }] : /* istanbul ignore next */ []));
22
+ const id = computed(() => propsSignal().id ?? fallbackId, /* @ts-ignore */
23
+ ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
24
+ const ids = computed(() => {
25
+ const baseId = id();
26
+ return {
27
+ legend: `fieldset:${baseId}:legend`,
28
+ errorText: `fieldset:${baseId}:error-text`,
29
+ helperText: `fieldset:${baseId}:helper-text`,
30
+ };
31
+ }, /* @ts-ignore */
32
+ ...(ngDevMode ? [{ debugName: "ids" }] : /* istanbul ignore next */ []));
33
+ const disabled = computed(() => Boolean(propsSignal().disabled), /* @ts-ignore */
34
+ ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
35
+ const invalid = computed(() => Boolean(propsSignal().invalid), /* @ts-ignore */
36
+ ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
37
+ const errorTextCount = signal(0, /* @ts-ignore */
38
+ ...(ngDevMode ? [{ debugName: "errorTextCount" }] : /* istanbul ignore next */ []));
39
+ const helperTextCount = signal(0, /* @ts-ignore */
40
+ ...(ngDevMode ? [{ debugName: "helperTextCount" }] : /* istanbul ignore next */ []));
41
+ const explicitHasErrorText = signal(false, /* @ts-ignore */
42
+ ...(ngDevMode ? [{ debugName: "explicitHasErrorText" }] : /* istanbul ignore next */ []));
43
+ const explicitHasHelperText = signal(false, /* @ts-ignore */
44
+ ...(ngDevMode ? [{ debugName: "explicitHasHelperText" }] : /* istanbul ignore next */ []));
45
+ const hasErrorTextSignal = computed(() => explicitHasErrorText() || errorTextCount() > 0, /* @ts-ignore */
46
+ ...(ngDevMode ? [{ debugName: "hasErrorTextSignal" }] : /* istanbul ignore next */ []));
47
+ const hasHelperTextSignal = computed(() => explicitHasHelperText() || helperTextCount() > 0, /* @ts-ignore */
48
+ ...(ngDevMode ? [{ debugName: "hasHelperTextSignal" }] : /* istanbul ignore next */ []));
49
+ const ariaDescribedby = computed(() => {
50
+ const list = [];
51
+ if (hasErrorTextSignal() && invalid())
52
+ list.push(ids().errorText);
53
+ if (hasHelperTextSignal())
54
+ list.push(ids().helperText);
55
+ return list.length > 0 ? list.join(" ") : undefined;
56
+ }, /* @ts-ignore */
57
+ ...(ngDevMode ? [{ debugName: "ariaDescribedby" }] : /* istanbul ignore next */ []));
58
+ const getRootProps = () => ({
59
+ ...fieldsetParts.root.attrs,
60
+ disabled: disabled() || undefined,
61
+ "data-disabled": dataAttr(disabled()),
62
+ "data-invalid": dataAttr(invalid()),
63
+ "aria-labelledby": ids().legend,
64
+ "aria-describedby": ariaDescribedby(),
65
+ });
66
+ const getLegendProps = () => ({
67
+ ...fieldsetParts.legend.attrs,
68
+ id: ids().legend,
69
+ "data-disabled": dataAttr(disabled()),
70
+ "data-invalid": dataAttr(invalid()),
71
+ });
72
+ const getHelperTextProps = () => ({
73
+ ...fieldsetParts.helperText.attrs,
74
+ id: ids().helperText,
75
+ });
76
+ const getErrorTextProps = () => ({
77
+ ...fieldsetParts.errorText.attrs,
78
+ id: ids().errorText,
79
+ "aria-live": "polite",
80
+ hidden: !invalid() || undefined,
81
+ });
82
+ return {
83
+ get ids() {
84
+ return ids();
85
+ },
86
+ disabled,
87
+ invalid,
88
+ hasErrorText: hasErrorTextSignal,
89
+ hasHelperText: hasHelperTextSignal,
90
+ ariaDescribedby,
91
+ setHasErrorText: (value) => explicitHasErrorText.set(value),
92
+ setHasHelperText: (value) => explicitHasHelperText.set(value),
93
+ registerErrorText: () => {
94
+ errorTextCount.update((count) => count + 1);
95
+ return () => errorTextCount.update((count) => Math.max(0, count - 1));
96
+ },
97
+ registerHelperText: () => {
98
+ helperTextCount.update((count) => count + 1);
99
+ return () => helperTextCount.update((count) => Math.max(0, count - 1));
100
+ },
101
+ getRootProps,
102
+ getLegendProps,
103
+ getHelperTextProps,
104
+ getErrorTextProps,
105
+ };
106
+ }
107
+
108
+ class FieldsetRoot {
109
+ id = input(undefined, /* @ts-ignore */
110
+ ...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
111
+ disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
112
+ invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
113
+ fieldset = useFieldset({
114
+ context: () => ({
115
+ id: this.id(),
116
+ disabled: this.disabled(),
117
+ invalid: this.invalid(),
118
+ }),
119
+ });
120
+ get ids() {
121
+ return this.fieldset.ids;
122
+ }
123
+ get hasErrorText() {
124
+ return this.fieldset.hasErrorText;
125
+ }
126
+ get hasHelperText() {
127
+ return this.fieldset.hasHelperText;
128
+ }
129
+ get ariaDescribedby() {
130
+ return this.fieldset.ariaDescribedby;
131
+ }
132
+ setHasErrorText(value) {
133
+ this.fieldset.setHasErrorText(value);
134
+ }
135
+ setHasHelperText(value) {
136
+ this.fieldset.setHasHelperText(value);
137
+ }
138
+ registerErrorText() {
139
+ return this.fieldset.registerErrorText();
140
+ }
141
+ registerHelperText() {
142
+ return this.fieldset.registerHelperText();
143
+ }
144
+ getRootProps() {
145
+ return this.fieldset.getRootProps();
146
+ }
147
+ getLegendProps() {
148
+ return this.fieldset.getLegendProps();
149
+ }
150
+ getHelperTextProps() {
151
+ return this.fieldset.getHelperTextProps();
152
+ }
153
+ getErrorTextProps() {
154
+ return this.fieldset.getErrorTextProps();
155
+ }
156
+ constructor() {
157
+ bindProps({
158
+ elementRef: inject(ElementRef),
159
+ renderer: inject(Renderer2),
160
+ destroyRef: inject(DestroyRef),
161
+ props: () => this.fieldset.getRootProps(),
162
+ });
163
+ }
164
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: FieldsetRoot, deps: [], target: i0.ɵɵFactoryTarget.Directive });
165
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.0", type: FieldsetRoot, isStandalone: true, selector: "[fieldsetRoot]", inputs: { id: { classPropertyName: "id", publicName: "id", 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 } }, providers: [{ provide: FIELDSET_CONTEXT, useExisting: forwardRef(() => FieldsetRoot) }], exportAs: ["fieldsetRoot"], ngImport: i0 });
166
+ }
167
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: FieldsetRoot, decorators: [{
168
+ type: Directive,
169
+ args: [{
170
+ selector: "[fieldsetRoot]",
171
+ standalone: true,
172
+ exportAs: "fieldsetRoot",
173
+ providers: [{ provide: FIELDSET_CONTEXT, useExisting: forwardRef(() => FieldsetRoot) }],
174
+ }]
175
+ }], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }] } });
176
+
177
+ class FieldsetRootProvider {
178
+ value = input.required(/* @ts-ignore */
179
+ ...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
180
+ disabled = computed(() => this.value().disabled(), /* @ts-ignore */
181
+ ...(ngDevMode ? [{ debugName: "disabled" }] : /* istanbul ignore next */ []));
182
+ invalid = computed(() => this.value().invalid(), /* @ts-ignore */
183
+ ...(ngDevMode ? [{ debugName: "invalid" }] : /* istanbul ignore next */ []));
184
+ hasErrorText = computed(() => this.value().hasErrorText(), /* @ts-ignore */
185
+ ...(ngDevMode ? [{ debugName: "hasErrorText" }] : /* istanbul ignore next */ []));
186
+ hasHelperText = computed(() => this.value().hasHelperText(), /* @ts-ignore */
187
+ ...(ngDevMode ? [{ debugName: "hasHelperText" }] : /* istanbul ignore next */ []));
188
+ ariaDescribedby = computed(() => this.value().ariaDescribedby(), /* @ts-ignore */
189
+ ...(ngDevMode ? [{ debugName: "ariaDescribedby" }] : /* istanbul ignore next */ []));
190
+ get ids() {
191
+ return this.value().ids;
192
+ }
193
+ setHasErrorText(value) {
194
+ this.value().setHasErrorText(value);
195
+ }
196
+ setHasHelperText(value) {
197
+ this.value().setHasHelperText(value);
198
+ }
199
+ registerErrorText() {
200
+ return this.value().registerErrorText();
201
+ }
202
+ registerHelperText() {
203
+ return this.value().registerHelperText();
204
+ }
205
+ getRootProps() {
206
+ return this.value().getRootProps();
207
+ }
208
+ getLegendProps() {
209
+ return this.value().getLegendProps();
210
+ }
211
+ getHelperTextProps() {
212
+ return this.value().getHelperTextProps();
213
+ }
214
+ getErrorTextProps() {
215
+ return this.value().getErrorTextProps();
216
+ }
217
+ constructor() {
218
+ bindProps({
219
+ elementRef: inject(ElementRef),
220
+ renderer: inject(Renderer2),
221
+ destroyRef: inject(DestroyRef),
222
+ props: () => this.value().getRootProps(),
223
+ });
224
+ }
225
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: FieldsetRootProvider, deps: [], target: i0.ɵɵFactoryTarget.Directive });
226
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.0", type: FieldsetRootProvider, isStandalone: true, selector: "[fieldsetRootProvider]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, providers: [{ provide: FIELDSET_CONTEXT, useExisting: forwardRef(() => FieldsetRootProvider) }], exportAs: ["fieldsetRootProvider"], ngImport: i0 });
227
+ }
228
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: FieldsetRootProvider, decorators: [{
229
+ type: Directive,
230
+ args: [{
231
+ selector: "[fieldsetRootProvider]",
232
+ standalone: true,
233
+ exportAs: "fieldsetRootProvider",
234
+ providers: [{ provide: FIELDSET_CONTEXT, useExisting: forwardRef(() => FieldsetRootProvider) }],
235
+ }]
236
+ }], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }] } });
237
+
238
+ class FieldsetLegend {
239
+ constructor() {
240
+ const context = injectFieldsetContext();
241
+ bindProps({
242
+ elementRef: inject(ElementRef),
243
+ renderer: inject(Renderer2),
244
+ destroyRef: inject(DestroyRef),
245
+ props: () => context.getLegendProps(),
246
+ });
247
+ }
248
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: FieldsetLegend, deps: [], target: i0.ɵɵFactoryTarget.Directive });
249
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.0", type: FieldsetLegend, isStandalone: true, selector: "[fieldsetLegend]", exportAs: ["fieldsetLegend"], ngImport: i0 });
250
+ }
251
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: FieldsetLegend, decorators: [{
252
+ type: Directive,
253
+ args: [{
254
+ selector: "[fieldsetLegend]",
255
+ standalone: true,
256
+ exportAs: "fieldsetLegend",
257
+ }]
258
+ }], ctorParameters: () => [] });
259
+
260
+ class FieldsetHelperText {
261
+ constructor() {
262
+ const context = injectFieldsetContext();
263
+ effect((onCleanup) => {
264
+ const unregister = untracked(() => context.registerHelperText());
265
+ onCleanup(unregister);
266
+ });
267
+ bindProps({
268
+ elementRef: inject(ElementRef),
269
+ renderer: inject(Renderer2),
270
+ destroyRef: inject(DestroyRef),
271
+ props: () => context.getHelperTextProps(),
272
+ });
273
+ }
274
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: FieldsetHelperText, deps: [], target: i0.ɵɵFactoryTarget.Directive });
275
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.0", type: FieldsetHelperText, isStandalone: true, selector: "[fieldsetHelperText]", exportAs: ["fieldsetHelperText"], ngImport: i0 });
276
+ }
277
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: FieldsetHelperText, decorators: [{
278
+ type: Directive,
279
+ args: [{
280
+ selector: "[fieldsetHelperText]",
281
+ standalone: true,
282
+ exportAs: "fieldsetHelperText",
283
+ }]
284
+ }], ctorParameters: () => [] });
285
+
286
+ class FieldsetErrorText {
287
+ constructor() {
288
+ const context = injectFieldsetContext();
289
+ effect((onCleanup) => {
290
+ const unregister = untracked(() => context.registerErrorText());
291
+ onCleanup(unregister);
292
+ });
293
+ bindProps({
294
+ elementRef: inject(ElementRef),
295
+ renderer: inject(Renderer2),
296
+ destroyRef: inject(DestroyRef),
297
+ props: () => context.getErrorTextProps(),
298
+ });
299
+ }
300
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: FieldsetErrorText, deps: [], target: i0.ɵɵFactoryTarget.Directive });
301
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.0", type: FieldsetErrorText, isStandalone: true, selector: "[fieldsetErrorText]", exportAs: ["fieldsetErrorText"], ngImport: i0 });
302
+ }
303
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.0", ngImport: i0, type: FieldsetErrorText, decorators: [{
304
+ type: Directive,
305
+ args: [{
306
+ selector: "[fieldsetErrorText]",
307
+ standalone: true,
308
+ exportAs: "fieldsetErrorText",
309
+ }]
310
+ }], ctorParameters: () => [] });
311
+
312
+ /**
313
+ * Generated bundle index. Do not edit.
314
+ */
315
+
316
+ export { FIELDSET_CONTEXT, FieldsetErrorText, FieldsetHelperText, FieldsetLegend, FieldsetRoot, FieldsetRootProvider, fieldsetAnatomy, injectFieldsetContext, injectFieldsetContextOptional, useFieldset };
317
+ //# sourceMappingURL=wirekyt-angular-fieldset.mjs.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"wirekyt-angular-fieldset.mjs","sources":["../../src/components/fieldset/anatomy.ts","../../src/components/fieldset/use-context.ts","../../src/components/fieldset/use.ts","../../src/components/fieldset/root.ts","../../src/components/fieldset/root-provider.ts","../../src/components/fieldset/legend.ts","../../src/components/fieldset/helper-text.ts","../../src/components/fieldset/error-text.ts","../../src/components/fieldset/wirekyt-angular-fieldset.ts"],"sourcesContent":["import { createAnatomy } from \"@wirekyt/dom/anatomy\";\n\nexport const fieldsetAnatomy = createAnatomy(\"fieldset\").parts(\n \"root\",\n \"errorText\",\n \"helperText\",\n \"legend\",\n);\n\nexport const fieldsetParts = fieldsetAnatomy.build();\n","import { InjectionToken, inject } from \"@angular/core\";\n\nimport type { UseFieldsetReturn } from \"./use\";\n\nexport const FIELDSET_CONTEXT = new InjectionToken<UseFieldsetReturn>(\"WIREKYT.FIELDSET_CONTEXT\");\n\nexport function injectFieldsetContext(): UseFieldsetReturn {\n return inject(FIELDSET_CONTEXT);\n}\n\nexport function injectFieldsetContextOptional(): UseFieldsetReturn | null {\n return inject(FIELDSET_CONTEXT, { optional: true });\n}\n","import { type Signal, computed, signal } from \"@angular/core\";\nimport { createId } from \"@wirekyt/angular\";\n\nimport type { FieldsetResolvedIds } from \"./types\";\n\nimport { fieldsetParts } from \"./anatomy\";\n\nexport interface UseFieldsetProps {\n id?: string;\n disabled?: boolean;\n invalid?: boolean;\n}\n\nexport interface UseFieldsetReturn {\n ids: FieldsetResolvedIds;\n disabled: Signal<boolean>;\n invalid: Signal<boolean>;\n hasErrorText: Signal<boolean>;\n hasHelperText: Signal<boolean>;\n ariaDescribedby: Signal<string | undefined>;\n setHasErrorText(value: boolean): void;\n setHasHelperText(value: boolean): void;\n registerErrorText(): () => void;\n registerHelperText(): () => void;\n getRootProps(): Record<string, unknown>;\n getLegendProps(): Record<string, unknown>;\n getHelperTextProps(): Record<string, unknown>;\n getErrorTextProps(): Record<string, unknown>;\n}\n\nexport interface UseFieldsetOptions {\n context: () => UseFieldsetProps;\n}\n\nconst dataAttr = (value: boolean | undefined): string | undefined => (value ? \"\" : undefined);\n\nexport function useFieldset(options: UseFieldsetOptions): UseFieldsetReturn {\n const fallbackId = createId();\n\n const propsSignal = computed(() => options.context());\n\n const id = computed(() => propsSignal().id ?? fallbackId);\n const ids = computed<FieldsetResolvedIds>(() => {\n const baseId = id();\n return {\n legend: `fieldset:${baseId}:legend`,\n errorText: `fieldset:${baseId}:error-text`,\n helperText: `fieldset:${baseId}:helper-text`,\n };\n });\n\n const disabled = computed(() => Boolean(propsSignal().disabled));\n const invalid = computed(() => Boolean(propsSignal().invalid));\n\n const errorTextCount = signal(0);\n const helperTextCount = signal(0);\n const explicitHasErrorText = signal(false);\n const explicitHasHelperText = signal(false);\n const hasErrorTextSignal = computed(() => explicitHasErrorText() || errorTextCount() > 0);\n const hasHelperTextSignal = computed(() => explicitHasHelperText() || helperTextCount() > 0);\n\n const ariaDescribedby = computed<string | undefined>(() => {\n const list: string[] = [];\n if (hasErrorTextSignal() && invalid()) list.push(ids().errorText);\n if (hasHelperTextSignal()) list.push(ids().helperText);\n return list.length > 0 ? list.join(\" \") : undefined;\n });\n\n const getRootProps = (): Record<string, unknown> => ({\n ...fieldsetParts.root.attrs,\n disabled: disabled() || undefined,\n \"data-disabled\": dataAttr(disabled()),\n \"data-invalid\": dataAttr(invalid()),\n \"aria-labelledby\": ids().legend,\n \"aria-describedby\": ariaDescribedby(),\n });\n\n const getLegendProps = (): Record<string, unknown> => ({\n ...fieldsetParts.legend.attrs,\n id: ids().legend,\n \"data-disabled\": dataAttr(disabled()),\n \"data-invalid\": dataAttr(invalid()),\n });\n\n const getHelperTextProps = (): Record<string, unknown> => ({\n ...fieldsetParts.helperText.attrs,\n id: ids().helperText,\n });\n\n const getErrorTextProps = (): Record<string, unknown> => ({\n ...fieldsetParts.errorText.attrs,\n id: ids().errorText,\n \"aria-live\": \"polite\",\n hidden: !invalid() || undefined,\n });\n\n return {\n get ids(): FieldsetResolvedIds {\n return ids();\n },\n disabled,\n invalid,\n hasErrorText: hasErrorTextSignal,\n hasHelperText: hasHelperTextSignal,\n ariaDescribedby,\n setHasErrorText: (value: boolean) => explicitHasErrorText.set(value),\n setHasHelperText: (value: boolean) => explicitHasHelperText.set(value),\n registerErrorText: () => {\n errorTextCount.update((count) => count + 1);\n return () => errorTextCount.update((count) => Math.max(0, count - 1));\n },\n registerHelperText: () => {\n helperTextCount.update((count) => count + 1);\n return () => helperTextCount.update((count) => Math.max(0, count - 1));\n },\n getRootProps,\n getLegendProps,\n getHelperTextProps,\n getErrorTextProps,\n };\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n booleanAttribute,\n forwardRef,\n inject,\n input,\n type InputSignal,\n type InputSignalWithTransform,\n type Signal,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport type { FieldsetResolvedIds } from \"./types\";\n\nimport { type UseFieldsetReturn, useFieldset } from \"./use\";\nimport { FIELDSET_CONTEXT } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldsetRoot]\",\n standalone: true,\n exportAs: \"fieldsetRoot\",\n providers: [{ provide: FIELDSET_CONTEXT, useExisting: forwardRef(() => FieldsetRoot) }],\n})\nexport class FieldsetRoot implements UseFieldsetReturn {\n readonly id: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly disabled: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly invalid: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n\n private readonly fieldset: UseFieldsetReturn = useFieldset({\n context: () => ({\n id: this.id(),\n disabled: this.disabled(),\n invalid: this.invalid(),\n }),\n });\n\n get ids(): FieldsetResolvedIds {\n return this.fieldset.ids;\n }\n\n get hasErrorText(): Signal<boolean> {\n return this.fieldset.hasErrorText;\n }\n\n get hasHelperText(): Signal<boolean> {\n return this.fieldset.hasHelperText;\n }\n\n get ariaDescribedby(): Signal<string | undefined> {\n return this.fieldset.ariaDescribedby;\n }\n\n setHasErrorText(value: boolean): void {\n this.fieldset.setHasErrorText(value);\n }\n\n setHasHelperText(value: boolean): void {\n this.fieldset.setHasHelperText(value);\n }\n\n registerErrorText(): () => void {\n return this.fieldset.registerErrorText();\n }\n\n registerHelperText(): () => void {\n return this.fieldset.registerHelperText();\n }\n\n getRootProps(): Record<string, unknown> {\n return this.fieldset.getRootProps();\n }\n getLegendProps(): Record<string, unknown> {\n return this.fieldset.getLegendProps();\n }\n getHelperTextProps(): Record<string, unknown> {\n return this.fieldset.getHelperTextProps();\n }\n getErrorTextProps(): Record<string, unknown> {\n return this.fieldset.getErrorTextProps();\n }\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.fieldset.getRootProps(),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n computed,\n forwardRef,\n inject,\n input,\n type InputSignal,\n type Signal,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport type { FieldsetResolvedIds } from \"./types\";\nimport type { UseFieldsetReturn } from \"./use\";\n\nimport { FIELDSET_CONTEXT } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldsetRootProvider]\",\n standalone: true,\n exportAs: \"fieldsetRootProvider\",\n providers: [{ provide: FIELDSET_CONTEXT, useExisting: forwardRef(() => FieldsetRootProvider) }],\n})\nexport class FieldsetRootProvider implements UseFieldsetReturn {\n readonly value: InputSignal<UseFieldsetReturn> = input.required<UseFieldsetReturn>();\n\n readonly disabled: Signal<boolean> = computed(() => this.value().disabled());\n readonly invalid: Signal<boolean> = computed(() => this.value().invalid());\n readonly hasErrorText: Signal<boolean> = computed(() => this.value().hasErrorText());\n readonly hasHelperText: Signal<boolean> = computed(() => this.value().hasHelperText());\n readonly ariaDescribedby: Signal<string | undefined> = computed(() =>\n this.value().ariaDescribedby(),\n );\n\n get ids(): FieldsetResolvedIds {\n return this.value().ids;\n }\n\n setHasErrorText(value: boolean): void {\n this.value().setHasErrorText(value);\n }\n\n setHasHelperText(value: boolean): void {\n this.value().setHasHelperText(value);\n }\n\n registerErrorText(): () => void {\n return this.value().registerErrorText();\n }\n\n registerHelperText(): () => void {\n return this.value().registerHelperText();\n }\n\n getRootProps(): Record<string, unknown> {\n return this.value().getRootProps();\n }\n getLegendProps(): Record<string, unknown> {\n return this.value().getLegendProps();\n }\n getHelperTextProps(): Record<string, unknown> {\n return this.value().getHelperTextProps();\n }\n getErrorTextProps(): Record<string, unknown> {\n return this.value().getErrorTextProps();\n }\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.value().getRootProps(),\n });\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldsetContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldsetLegend]\",\n standalone: true,\n exportAs: \"fieldsetLegend\",\n})\nexport class FieldsetLegend {\n constructor() {\n const context = injectFieldsetContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getLegendProps(),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n effect,\n inject,\n untracked,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldsetContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldsetHelperText]\",\n standalone: true,\n exportAs: \"fieldsetHelperText\",\n})\nexport class FieldsetHelperText {\n constructor() {\n const context = injectFieldsetContext();\n\n effect((onCleanup) => {\n const unregister = untracked(() => context.registerHelperText());\n onCleanup(unregister);\n });\n\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getHelperTextProps(),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n effect,\n inject,\n untracked,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldsetContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldsetErrorText]\",\n standalone: true,\n exportAs: \"fieldsetErrorText\",\n})\nexport class FieldsetErrorText {\n constructor() {\n const context = injectFieldsetContext();\n\n effect((onCleanup) => {\n const unregister = untracked(() => context.registerErrorText());\n onCleanup(unregister);\n });\n\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getErrorTextProps(),\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAEO,MAAM,eAAe,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,KAAK,CAC5D,MAAM,EACN,WAAW,EACX,YAAY,EACZ,QAAQ;AAGH,MAAM,aAAa,GAAG,eAAe,CAAC,KAAK,EAAE;;MCLvC,gBAAgB,GAAG,IAAI,cAAc,CAAoB,0BAA0B;SAEhF,qBAAqB,GAAA;AACnC,IAAA,OAAO,MAAM,CAAC,gBAAgB,CAAC;AACjC;SAEgB,6BAA6B,GAAA;IAC3C,OAAO,MAAM,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACrD;;ACsBA,MAAM,QAAQ,GAAG,CAAC,KAA0B,MAA0B,KAAK,GAAG,EAAE,GAAG,SAAS,CAAC;AAEvF,SAAU,WAAW,CAAC,OAA2B,EAAA;AACrD,IAAA,MAAM,UAAU,GAAG,QAAQ,EAAE;IAE7B,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,OAAO,CAAC,OAAO,EAAE;oFAAC;AAErD,IAAA,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,WAAW,EAAE,CAAC,EAAE,IAAI,UAAU;2EAAC;AACzD,IAAA,MAAM,GAAG,GAAG,QAAQ,CAAsB,MAAK;AAC7C,QAAA,MAAM,MAAM,GAAG,EAAE,EAAE;QACnB,OAAO;YACL,MAAM,EAAE,CAAA,SAAA,EAAY,MAAM,CAAA,OAAA,CAAS;YACnC,SAAS,EAAE,CAAA,SAAA,EAAY,MAAM,CAAA,WAAA,CAAa;YAC1C,UAAU,EAAE,CAAA,SAAA,EAAY,MAAM,CAAA,YAAA,CAAc;SAC7C;IACH,CAAC;4EAAC;AAEF,IAAA,MAAM,QAAQ,GAAG,QAAQ,CAAC,MAAM,OAAO,CAAC,WAAW,EAAE,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C3B,YAAA,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;AAC9B,YAAA,KAAK,EAAE,MAAM,OAAO,CAAC,iBAAiB,EAAE;AACzC,SAAA,CAAC;IACJ;uGAfW,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,mBAAmB;AAC9B,iBAAA;;;ACjBD;;AAEG;;;;"}
@@ -212,7 +212,8 @@ function bindProps(options) {
212
212
  continue;
213
213
  }
214
214
  if (isAttributeKey(key)) {
215
- if (nextValue == null || nextValue === false) {
215
+ const remove = nextValue == null || (nextValue === false && !key.startsWith("aria-"));
216
+ if (remove) {
216
217
  if (prevValue !== undefined && prevValue !== null && prevValue !== false) {
217
218
  removeAttribute(el, key);
218
219
  }