@wirekyt/angular 0.0.23 → 0.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/fesm2022/wirekyt-angular-field.mjs +1 -2
- package/dist/fesm2022/wirekyt-angular-field.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-tabs.mjs +390 -0
- package/dist/fesm2022/wirekyt-angular-tabs.mjs.map +1 -0
- package/dist/package.json +5 -1
- package/dist/types/wirekyt-angular-checkbox.d.ts +1 -1
- package/dist/types/wirekyt-angular-color-picker.d.ts +1 -1
- package/dist/types/wirekyt-angular-combobox.d.ts +1 -1
- package/dist/types/wirekyt-angular-date-picker.d.ts +1 -1
- package/dist/types/wirekyt-angular-field.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-tabs.d.ts +123 -0
- package/dist/types/wirekyt-angular-tabs.d.ts.map +1 -0
- package/package.json +6 -2
|
@@ -3,6 +3,7 @@ import * as i0 from '@angular/core';
|
|
|
3
3
|
import { InjectionToken, inject, computed, signal, input, booleanAttribute, DestroyRef, Renderer2, ElementRef, forwardRef, Directive, PLATFORM_ID, effect, untracked } from '@angular/core';
|
|
4
4
|
import { createId, bindProps } from '@wirekyt/angular';
|
|
5
5
|
import { injectFieldsetContextOptional } from '@wirekyt/angular/fieldset';
|
|
6
|
+
import { dataAttr, ariaAttr } from '@wirekyt/dom/dom-query';
|
|
6
7
|
import { isPlatformBrowser } from '@angular/common';
|
|
7
8
|
import { autoresizeTextarea } from '@wirekyt/dom/auto-resize';
|
|
8
9
|
|
|
@@ -17,8 +18,6 @@ function injectFieldContextOptional() {
|
|
|
17
18
|
return inject(FIELD_CONTEXT, { optional: true });
|
|
18
19
|
}
|
|
19
20
|
|
|
20
|
-
const dataAttr = (value) => (value ? "" : undefined);
|
|
21
|
-
const ariaAttr = (value) => (value ? "true" : undefined);
|
|
22
21
|
function useField(options) {
|
|
23
22
|
const fallbackId = createId();
|
|
24
23
|
const fieldsetContext = injectFieldsetContextOptional();
|
|
@@ -1 +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: \"[field-root]\",\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: \"[field-root-provider]\",\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: \"[field-label]\",\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: \"[field-input]\",\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: \"[field-textarea]\",\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: \"[field-select]\",\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: \"[field-helper-text]\",\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: \"[field-error-text]\",\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: \"[field-required-indicator]\",\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: \"[field-item]\",\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,GAAG,GAAG,QAAQ,CAAmB,MAAK;AAC1C,QAAA,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC,GAAG;AAClC,QAAA,MAAM,MAAM,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Q,EAAE,cAAc;AACxB,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;;;;"}
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-field.mjs","sources":["../../src/components/field/anatomy.ts","../../src/components/field/use-context.ts","../../src/components/field/use.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\";\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\";\nimport { ariaAttr, dataAttr } from \"@wirekyt/dom/dom-query\";\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\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 { type UseFieldReturn, useField } from \"./use\";\nimport { FIELD_CONTEXT } from \"./use-context\";\n\n@Directive({\n selector: \"[field-root]\",\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\";\n\nimport { FIELD_CONTEXT } from \"./use-context\";\n\n@Directive({\n selector: \"[field-root-provider]\",\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: \"[field-label]\",\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: \"[field-input]\",\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: \"[field-textarea]\",\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: \"[field-select]\",\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: \"[field-helper-text]\",\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: \"[field-error-text]\",\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: \"[field-required-indicator]\",\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\";\n\nimport { fieldParts } from \"./anatomy\";\nimport { FIELD_CONTEXT } from \"./use-context\";\n\n@Directive({\n selector: \"[field-item]\",\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;;ACqCM,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,GAAG,GAAG,QAAQ,CAAmB,MAAK;AAC1C,QAAA,MAAM,QAAQ,GAAG,WAAW,EAAE,CAAC,GAAG;AAClC,QAAA,MAAM,MAAM,GAAG,EAAE,EAAE;QACnB,OAAO;AACL,YAAA,IAA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I;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,390 @@
|
|
|
1
|
+
import * as tabs from '@wirekyt/dom/machines/tabs';
|
|
2
|
+
export { anatomy as tabsAnatomy } from '@wirekyt/dom/machines/tabs';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { InjectionToken, inject, booleanAttribute, input, model, output, EnvironmentInjector, Injector, DestroyRef, Renderer2, ElementRef, forwardRef, Directive, computed, TemplateRef, ViewContainerRef, effect, untracked } from '@angular/core';
|
|
5
|
+
import { injectLocale, injectEnvironment, createId, useMachine, buildRootCarrier, bindProps } from '@wirekyt/angular';
|
|
6
|
+
import { usePresence, PRESENCE_CONTEXT } from '@wirekyt/angular/presence';
|
|
7
|
+
|
|
8
|
+
const TABS_CONTEXT = new InjectionToken("WIREKYT.TABS_CONTEXT");
|
|
9
|
+
function injectTabsContext() {
|
|
10
|
+
return inject(TABS_CONTEXT);
|
|
11
|
+
}
|
|
12
|
+
const TABS_CONTEXT_CARRIER = new InjectionToken("WIREKYT.TABS_CONTEXT_CARRIER");
|
|
13
|
+
function injectTabsContextCarrier() {
|
|
14
|
+
return inject(TABS_CONTEXT_CARRIER);
|
|
15
|
+
}
|
|
16
|
+
const TABS_RENDER_STRATEGY_CONTEXT = new InjectionToken("WIREKYT.TABS_RENDER_STRATEGY_CONTEXT");
|
|
17
|
+
function injectTabsRenderStrategyContext() {
|
|
18
|
+
return inject(TABS_RENDER_STRATEGY_CONTEXT);
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
function useTabs(options) {
|
|
22
|
+
const locale = injectLocale();
|
|
23
|
+
const environment = injectEnvironment();
|
|
24
|
+
const fallbackId = createId();
|
|
25
|
+
return useMachine({
|
|
26
|
+
machine: tabs.machine,
|
|
27
|
+
context: () => {
|
|
28
|
+
const props = options.context();
|
|
29
|
+
return {
|
|
30
|
+
...props,
|
|
31
|
+
dir: locale.dir,
|
|
32
|
+
getRootNode: environment.getRootNode,
|
|
33
|
+
id: props.id ?? fallbackId,
|
|
34
|
+
};
|
|
35
|
+
},
|
|
36
|
+
connect: (service, normalize) => tabs.connect(service, normalize),
|
|
37
|
+
});
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
const optionalBooleanAttribute = (value) => value === undefined || value === null ? undefined : booleanAttribute(value);
|
|
41
|
+
class TabsRoot {
|
|
42
|
+
id = input(undefined, /* @ts-ignore */
|
|
43
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
44
|
+
ids = input(undefined, /* @ts-ignore */
|
|
45
|
+
...(ngDevMode ? [{ debugName: "ids" }] : /* istanbul ignore next */ []));
|
|
46
|
+
value = model(undefined, /* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
48
|
+
defaultValue = input(undefined, /* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []));
|
|
50
|
+
orientation = input(undefined, /* @ts-ignore */
|
|
51
|
+
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
52
|
+
activationMode = input(undefined, /* @ts-ignore */
|
|
53
|
+
...(ngDevMode ? [{ debugName: "activationMode" }] : /* istanbul ignore next */ []));
|
|
54
|
+
loopFocus = input(undefined, { ...(ngDevMode ? { debugName: "loopFocus" } : /* istanbul ignore next */ {}), transform: optionalBooleanAttribute });
|
|
55
|
+
composite = input(undefined, { ...(ngDevMode ? { debugName: "composite" } : /* istanbul ignore next */ {}), transform: optionalBooleanAttribute });
|
|
56
|
+
deselectable = input(undefined, { ...(ngDevMode ? { debugName: "deselectable" } : /* istanbul ignore next */ {}), transform: optionalBooleanAttribute });
|
|
57
|
+
lazyMount = input(false, { ...(ngDevMode ? { debugName: "lazyMount" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
58
|
+
unmountOnExit = input(false, { ...(ngDevMode ? { debugName: "unmountOnExit" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
59
|
+
navigate = input(undefined, /* @ts-ignore */
|
|
60
|
+
...(ngDevMode ? [{ debugName: "navigate" }] : /* istanbul ignore next */ []));
|
|
61
|
+
translations = input(undefined, /* @ts-ignore */
|
|
62
|
+
...(ngDevMode ? [{ debugName: "translations" }] : /* istanbul ignore next */ []));
|
|
63
|
+
focusChange = output();
|
|
64
|
+
valueDetailsChange = output();
|
|
65
|
+
navigateChange = output();
|
|
66
|
+
machine = useTabs({
|
|
67
|
+
context: () => ({
|
|
68
|
+
id: this.id(),
|
|
69
|
+
ids: this.ids(),
|
|
70
|
+
value: this.value(),
|
|
71
|
+
defaultValue: this.defaultValue(),
|
|
72
|
+
orientation: this.orientation(),
|
|
73
|
+
activationMode: this.activationMode(),
|
|
74
|
+
loopFocus: this.loopFocus(),
|
|
75
|
+
composite: this.composite(),
|
|
76
|
+
deselectable: this.deselectable(),
|
|
77
|
+
navigate: (details) => {
|
|
78
|
+
this.navigate()?.(details);
|
|
79
|
+
this.navigateChange.emit(details);
|
|
80
|
+
},
|
|
81
|
+
translations: this.translations(),
|
|
82
|
+
onValueChange: (details) => {
|
|
83
|
+
if (this.value() !== details.value)
|
|
84
|
+
this.value.set(details.value);
|
|
85
|
+
this.valueDetailsChange.emit(details);
|
|
86
|
+
},
|
|
87
|
+
onFocusChange: (details) => {
|
|
88
|
+
this.focusChange.emit(details);
|
|
89
|
+
},
|
|
90
|
+
}),
|
|
91
|
+
});
|
|
92
|
+
state = this.machine.state;
|
|
93
|
+
api = this.machine.api;
|
|
94
|
+
service = this.machine.service;
|
|
95
|
+
send = this.machine.send;
|
|
96
|
+
contextCarrier = buildRootCarrier({
|
|
97
|
+
providers: [{ provide: TABS_RENDER_STRATEGY_CONTEXT, useValue: this }],
|
|
98
|
+
root: this,
|
|
99
|
+
rootToken: TABS_CONTEXT,
|
|
100
|
+
originInjector: inject(Injector),
|
|
101
|
+
environmentInjector: inject(EnvironmentInjector),
|
|
102
|
+
});
|
|
103
|
+
constructor() {
|
|
104
|
+
bindProps({
|
|
105
|
+
elementRef: inject(ElementRef),
|
|
106
|
+
renderer: inject(Renderer2),
|
|
107
|
+
destroyRef: inject(DestroyRef),
|
|
108
|
+
props: () => this.api().getRootProps(),
|
|
109
|
+
});
|
|
110
|
+
}
|
|
111
|
+
getContextCarrier() {
|
|
112
|
+
return this.contextCarrier;
|
|
113
|
+
}
|
|
114
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TabsRoot, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
115
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: TabsRoot, isStandalone: true, selector: "[tabs-root]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ids: { classPropertyName: "ids", publicName: "ids", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, activationMode: { classPropertyName: "activationMode", publicName: "activationMode", isSignal: true, isRequired: false, transformFunction: null }, loopFocus: { classPropertyName: "loopFocus", publicName: "loopFocus", isSignal: true, isRequired: false, transformFunction: null }, composite: { classPropertyName: "composite", publicName: "composite", isSignal: true, isRequired: false, transformFunction: null }, deselectable: { classPropertyName: "deselectable", publicName: "deselectable", isSignal: true, isRequired: false, transformFunction: null }, lazyMount: { classPropertyName: "lazyMount", publicName: "lazyMount", isSignal: true, isRequired: false, transformFunction: null }, unmountOnExit: { classPropertyName: "unmountOnExit", publicName: "unmountOnExit", isSignal: true, isRequired: false, transformFunction: null }, navigate: { classPropertyName: "navigate", publicName: "navigate", isSignal: true, isRequired: false, transformFunction: null }, translations: { classPropertyName: "translations", publicName: "translations", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", focusChange: "focusChange", valueDetailsChange: "valueDetailsChange", navigateChange: "navigateChange" }, providers: [
|
|
116
|
+
{ provide: TABS_CONTEXT, useExisting: forwardRef(() => TabsRoot) },
|
|
117
|
+
{ provide: TABS_RENDER_STRATEGY_CONTEXT, useExisting: forwardRef(() => TabsRoot) },
|
|
118
|
+
{
|
|
119
|
+
provide: TABS_CONTEXT_CARRIER,
|
|
120
|
+
useFactory: (root) => root.getContextCarrier(),
|
|
121
|
+
deps: [forwardRef(() => TabsRoot)],
|
|
122
|
+
},
|
|
123
|
+
], exportAs: ["tabsRoot"], ngImport: i0 });
|
|
124
|
+
}
|
|
125
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TabsRoot, decorators: [{
|
|
126
|
+
type: Directive,
|
|
127
|
+
args: [{
|
|
128
|
+
selector: "[tabs-root]",
|
|
129
|
+
standalone: true,
|
|
130
|
+
exportAs: "tabsRoot",
|
|
131
|
+
providers: [
|
|
132
|
+
{ provide: TABS_CONTEXT, useExisting: forwardRef(() => TabsRoot) },
|
|
133
|
+
{ provide: TABS_RENDER_STRATEGY_CONTEXT, useExisting: forwardRef(() => TabsRoot) },
|
|
134
|
+
{
|
|
135
|
+
provide: TABS_CONTEXT_CARRIER,
|
|
136
|
+
useFactory: (root) => root.getContextCarrier(),
|
|
137
|
+
deps: [forwardRef(() => TabsRoot)],
|
|
138
|
+
},
|
|
139
|
+
],
|
|
140
|
+
}]
|
|
141
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], ids: [{ type: i0.Input, args: [{ isSignal: true, alias: "ids", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], defaultValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultValue", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], activationMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "activationMode", required: false }] }], loopFocus: [{ type: i0.Input, args: [{ isSignal: true, alias: "loopFocus", required: false }] }], composite: [{ type: i0.Input, args: [{ isSignal: true, alias: "composite", required: false }] }], deselectable: [{ type: i0.Input, args: [{ isSignal: true, alias: "deselectable", required: false }] }], lazyMount: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazyMount", required: false }] }], unmountOnExit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unmountOnExit", required: false }] }], navigate: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigate", required: false }] }], translations: [{ type: i0.Input, args: [{ isSignal: true, alias: "translations", required: false }] }], focusChange: [{ type: i0.Output, args: ["focusChange"] }], valueDetailsChange: [{ type: i0.Output, args: ["valueDetailsChange"] }], navigateChange: [{ type: i0.Output, args: ["navigateChange"] }] } });
|
|
142
|
+
|
|
143
|
+
class TabsRootProvider {
|
|
144
|
+
value = input.required(/* @ts-ignore */
|
|
145
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
146
|
+
lazyMount = input(false, { ...(ngDevMode ? { debugName: "lazyMount" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
147
|
+
unmountOnExit = input(false, { ...(ngDevMode ? { debugName: "unmountOnExit" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
148
|
+
state = computed(() => this.value().state(), /* @ts-ignore */
|
|
149
|
+
...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
150
|
+
api = computed(() => this.value().api(), /* @ts-ignore */
|
|
151
|
+
...(ngDevMode ? [{ debugName: "api" }] : /* istanbul ignore next */ []));
|
|
152
|
+
send = (event) => this.value().send(event);
|
|
153
|
+
get service() {
|
|
154
|
+
return this.value().service;
|
|
155
|
+
}
|
|
156
|
+
contextCarrier = buildRootCarrier({
|
|
157
|
+
providers: [{ provide: TABS_RENDER_STRATEGY_CONTEXT, useValue: this }],
|
|
158
|
+
root: this,
|
|
159
|
+
rootToken: TABS_CONTEXT,
|
|
160
|
+
originInjector: inject(Injector),
|
|
161
|
+
environmentInjector: inject(EnvironmentInjector),
|
|
162
|
+
});
|
|
163
|
+
constructor() {
|
|
164
|
+
bindProps({
|
|
165
|
+
elementRef: inject(ElementRef),
|
|
166
|
+
renderer: inject(Renderer2),
|
|
167
|
+
destroyRef: inject(DestroyRef),
|
|
168
|
+
props: () => this.api().getRootProps(),
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
getContextCarrier() {
|
|
172
|
+
return this.contextCarrier;
|
|
173
|
+
}
|
|
174
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TabsRootProvider, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
175
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: TabsRootProvider, isStandalone: true, selector: "[tabs-root-provider]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, lazyMount: { classPropertyName: "lazyMount", publicName: "lazyMount", isSignal: true, isRequired: false, transformFunction: null }, unmountOnExit: { classPropertyName: "unmountOnExit", publicName: "unmountOnExit", isSignal: true, isRequired: false, transformFunction: null } }, providers: [
|
|
176
|
+
{ provide: TABS_CONTEXT, useExisting: forwardRef(() => TabsRootProvider) },
|
|
177
|
+
{
|
|
178
|
+
provide: TABS_RENDER_STRATEGY_CONTEXT,
|
|
179
|
+
useExisting: forwardRef(() => TabsRootProvider),
|
|
180
|
+
},
|
|
181
|
+
{
|
|
182
|
+
provide: TABS_CONTEXT_CARRIER,
|
|
183
|
+
useFactory: (provider) => provider.getContextCarrier(),
|
|
184
|
+
deps: [forwardRef(() => TabsRootProvider)],
|
|
185
|
+
},
|
|
186
|
+
], exportAs: ["tabsRootProvider"], ngImport: i0 });
|
|
187
|
+
}
|
|
188
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TabsRootProvider, decorators: [{
|
|
189
|
+
type: Directive,
|
|
190
|
+
args: [{
|
|
191
|
+
selector: "[tabs-root-provider]",
|
|
192
|
+
standalone: true,
|
|
193
|
+
exportAs: "tabsRootProvider",
|
|
194
|
+
providers: [
|
|
195
|
+
{ provide: TABS_CONTEXT, useExisting: forwardRef(() => TabsRootProvider) },
|
|
196
|
+
{
|
|
197
|
+
provide: TABS_RENDER_STRATEGY_CONTEXT,
|
|
198
|
+
useExisting: forwardRef(() => TabsRootProvider),
|
|
199
|
+
},
|
|
200
|
+
{
|
|
201
|
+
provide: TABS_CONTEXT_CARRIER,
|
|
202
|
+
useFactory: (provider) => provider.getContextCarrier(),
|
|
203
|
+
deps: [forwardRef(() => TabsRootProvider)],
|
|
204
|
+
},
|
|
205
|
+
],
|
|
206
|
+
}]
|
|
207
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], lazyMount: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazyMount", required: false }] }], unmountOnExit: [{ type: i0.Input, args: [{ isSignal: true, alias: "unmountOnExit", required: false }] }] } });
|
|
208
|
+
|
|
209
|
+
class TabsList {
|
|
210
|
+
constructor() {
|
|
211
|
+
const context = injectTabsContext();
|
|
212
|
+
bindProps({
|
|
213
|
+
elementRef: inject(ElementRef),
|
|
214
|
+
renderer: inject(Renderer2),
|
|
215
|
+
destroyRef: inject(DestroyRef),
|
|
216
|
+
props: () => context.api().getListProps(),
|
|
217
|
+
});
|
|
218
|
+
}
|
|
219
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TabsList, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
220
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: TabsList, isStandalone: true, selector: "[tabs-list]", exportAs: ["tabsList"], ngImport: i0 });
|
|
221
|
+
}
|
|
222
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TabsList, decorators: [{
|
|
223
|
+
type: Directive,
|
|
224
|
+
args: [{
|
|
225
|
+
selector: "[tabs-list]",
|
|
226
|
+
standalone: true,
|
|
227
|
+
exportAs: "tabsList",
|
|
228
|
+
}]
|
|
229
|
+
}], ctorParameters: () => [] });
|
|
230
|
+
|
|
231
|
+
class TabsTrigger {
|
|
232
|
+
value = input.required(/* @ts-ignore */
|
|
233
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
234
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
235
|
+
constructor() {
|
|
236
|
+
const context = injectTabsContext();
|
|
237
|
+
bindProps({
|
|
238
|
+
elementRef: inject(ElementRef),
|
|
239
|
+
renderer: inject(Renderer2),
|
|
240
|
+
destroyRef: inject(DestroyRef),
|
|
241
|
+
props: () => context.api().getTriggerProps({
|
|
242
|
+
value: this.value(),
|
|
243
|
+
disabled: this.disabled(),
|
|
244
|
+
}),
|
|
245
|
+
});
|
|
246
|
+
}
|
|
247
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TabsTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
248
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: TabsTrigger, isStandalone: true, selector: "[tabs-trigger]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, exportAs: ["tabsTrigger"], ngImport: i0 });
|
|
249
|
+
}
|
|
250
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TabsTrigger, decorators: [{
|
|
251
|
+
type: Directive,
|
|
252
|
+
args: [{
|
|
253
|
+
selector: "[tabs-trigger]",
|
|
254
|
+
standalone: true,
|
|
255
|
+
exportAs: "tabsTrigger",
|
|
256
|
+
}]
|
|
257
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }] } });
|
|
258
|
+
|
|
259
|
+
class TabsContent {
|
|
260
|
+
value = input.required(/* @ts-ignore */
|
|
261
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
262
|
+
context = injectTabsContext();
|
|
263
|
+
renderStrategy = injectTabsRenderStrategyContext();
|
|
264
|
+
presence = usePresence({
|
|
265
|
+
context: () => ({
|
|
266
|
+
present: this.context.api().value === this.value(),
|
|
267
|
+
immediate: true,
|
|
268
|
+
lazyMount: this.renderStrategy.lazyMount(),
|
|
269
|
+
unmountOnExit: this.renderStrategy.unmountOnExit(),
|
|
270
|
+
}),
|
|
271
|
+
});
|
|
272
|
+
constructor() {
|
|
273
|
+
const template = inject((TemplateRef), { optional: true });
|
|
274
|
+
const container = inject(ViewContainerRef);
|
|
275
|
+
const host = inject(ElementRef);
|
|
276
|
+
const elementRef = template ? { nativeElement: null } : host;
|
|
277
|
+
let view;
|
|
278
|
+
effect(() => {
|
|
279
|
+
const unmounted = this.presence.unmounted();
|
|
280
|
+
if (template) {
|
|
281
|
+
if (unmounted) {
|
|
282
|
+
elementRef.nativeElement = null;
|
|
283
|
+
container.clear();
|
|
284
|
+
view = undefined;
|
|
285
|
+
}
|
|
286
|
+
else if (!view) {
|
|
287
|
+
view = container.createEmbeddedView(template);
|
|
288
|
+
elementRef.nativeElement =
|
|
289
|
+
view.rootNodes.find((node) => node.nodeType === 1) ?? null;
|
|
290
|
+
}
|
|
291
|
+
}
|
|
292
|
+
untracked(() => this.presence.setNode(elementRef.nativeElement));
|
|
293
|
+
});
|
|
294
|
+
bindProps({
|
|
295
|
+
elementRef,
|
|
296
|
+
renderer: inject(Renderer2),
|
|
297
|
+
destroyRef: inject(DestroyRef),
|
|
298
|
+
props: () => {
|
|
299
|
+
this.presence.unmounted();
|
|
300
|
+
return {
|
|
301
|
+
...this.context.api().getContentProps({ value: this.value() }),
|
|
302
|
+
...this.presence.getPresenceProps(),
|
|
303
|
+
};
|
|
304
|
+
},
|
|
305
|
+
});
|
|
306
|
+
}
|
|
307
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TabsContent, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
308
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: TabsContent, isStandalone: true, selector: "[tabs-content]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, providers: [
|
|
309
|
+
{
|
|
310
|
+
provide: PRESENCE_CONTEXT,
|
|
311
|
+
useFactory: (content) => content.presence,
|
|
312
|
+
deps: [forwardRef(() => TabsContent)],
|
|
313
|
+
},
|
|
314
|
+
], exportAs: ["tabsContent"], ngImport: i0 });
|
|
315
|
+
}
|
|
316
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TabsContent, decorators: [{
|
|
317
|
+
type: Directive,
|
|
318
|
+
args: [{
|
|
319
|
+
selector: "[tabs-content]",
|
|
320
|
+
standalone: true,
|
|
321
|
+
exportAs: "tabsContent",
|
|
322
|
+
providers: [
|
|
323
|
+
{
|
|
324
|
+
provide: PRESENCE_CONTEXT,
|
|
325
|
+
useFactory: (content) => content.presence,
|
|
326
|
+
deps: [forwardRef(() => TabsContent)],
|
|
327
|
+
},
|
|
328
|
+
],
|
|
329
|
+
}]
|
|
330
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }] } });
|
|
331
|
+
|
|
332
|
+
class TabsIndicator {
|
|
333
|
+
constructor() {
|
|
334
|
+
const context = injectTabsContext();
|
|
335
|
+
bindProps({
|
|
336
|
+
elementRef: inject(ElementRef),
|
|
337
|
+
renderer: inject(Renderer2),
|
|
338
|
+
destroyRef: inject(DestroyRef),
|
|
339
|
+
props: () => context.api().getIndicatorProps(),
|
|
340
|
+
});
|
|
341
|
+
}
|
|
342
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TabsIndicator, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
343
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: TabsIndicator, isStandalone: true, selector: "[tabs-indicator]", exportAs: ["tabsIndicator"], ngImport: i0 });
|
|
344
|
+
}
|
|
345
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TabsIndicator, decorators: [{
|
|
346
|
+
type: Directive,
|
|
347
|
+
args: [{
|
|
348
|
+
selector: "[tabs-indicator]",
|
|
349
|
+
standalone: true,
|
|
350
|
+
exportAs: "tabsIndicator",
|
|
351
|
+
}]
|
|
352
|
+
}], ctorParameters: () => [] });
|
|
353
|
+
|
|
354
|
+
class TabsContext {
|
|
355
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
356
|
+
void context;
|
|
357
|
+
return true;
|
|
358
|
+
}
|
|
359
|
+
tabs = injectTabsContext();
|
|
360
|
+
templateRef = inject(TemplateRef);
|
|
361
|
+
viewContainer = inject(ViewContainerRef);
|
|
362
|
+
constructor() {
|
|
363
|
+
const view = this.viewContainer.createEmbeddedView(this.templateRef, {
|
|
364
|
+
$implicit: this.tabs.api,
|
|
365
|
+
api: this.tabs.api,
|
|
366
|
+
});
|
|
367
|
+
effect(() => {
|
|
368
|
+
this.tabs.api();
|
|
369
|
+
view.detectChanges();
|
|
370
|
+
});
|
|
371
|
+
inject(DestroyRef).onDestroy(() => view.destroy());
|
|
372
|
+
}
|
|
373
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TabsContext, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
374
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: TabsContext, isStandalone: true, selector: "[tabs-context]", exportAs: ["tabsContext"], ngImport: i0 });
|
|
375
|
+
}
|
|
376
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: TabsContext, decorators: [{
|
|
377
|
+
type: Directive,
|
|
378
|
+
args: [{
|
|
379
|
+
selector: "[tabs-context]",
|
|
380
|
+
standalone: true,
|
|
381
|
+
exportAs: "tabsContext",
|
|
382
|
+
}]
|
|
383
|
+
}], ctorParameters: () => [] });
|
|
384
|
+
|
|
385
|
+
/**
|
|
386
|
+
* Generated bundle index. Do not edit.
|
|
387
|
+
*/
|
|
388
|
+
|
|
389
|
+
export { TABS_CONTEXT, TABS_CONTEXT_CARRIER, TABS_RENDER_STRATEGY_CONTEXT, TabsContent, TabsContext, TabsIndicator, TabsList, TabsRoot, TabsRootProvider, TabsTrigger, injectTabsContext, injectTabsContextCarrier, injectTabsRenderStrategyContext, useTabs };
|
|
390
|
+
//# sourceMappingURL=wirekyt-angular-tabs.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-tabs.mjs","sources":["../../src/components/tabs/use-context.ts","../../src/components/tabs/use.ts","../../src/components/tabs/root.ts","../../src/components/tabs/root-provider.ts","../../src/components/tabs/list.ts","../../src/components/tabs/trigger.ts","../../src/components/tabs/content.ts","../../src/components/tabs/indicator.ts","../../src/components/tabs/context.ts","../../src/components/tabs/wirekyt-angular-tabs.ts"],"sourcesContent":["import type { ContextCarrier } from \"@wirekyt/angular\";\n\nimport { InjectionToken, inject, type Signal } from \"@angular/core\";\n\nimport type { UseTabsReturn } from \"./use\";\n\nexport const TABS_CONTEXT = new InjectionToken<UseTabsReturn>(\"WIREKYT.TABS_CONTEXT\");\n\nexport function injectTabsContext(): UseTabsReturn {\n return inject(TABS_CONTEXT);\n}\n\nexport const TABS_CONTEXT_CARRIER = new InjectionToken<ContextCarrier<UseTabsReturn>>(\n \"WIREKYT.TABS_CONTEXT_CARRIER\",\n);\n\nexport function injectTabsContextCarrier(): ContextCarrier<UseTabsReturn> {\n return inject(TABS_CONTEXT_CARRIER);\n}\n\nexport interface TabsRenderStrategyContext {\n readonly lazyMount: Signal<boolean>;\n readonly unmountOnExit: Signal<boolean>;\n}\n\nexport const TABS_RENDER_STRATEGY_CONTEXT = new InjectionToken<TabsRenderStrategyContext>(\n \"WIREKYT.TABS_RENDER_STRATEGY_CONTEXT\",\n);\n\nexport function injectTabsRenderStrategyContext(): TabsRenderStrategyContext {\n return inject(TABS_RENDER_STRATEGY_CONTEXT);\n}\n","import type { Machine } from \"@wirekyt/dom\";\n\nimport {\n createId,\n injectEnvironment,\n injectLocale,\n useMachine,\n type UseMachineReturn,\n} from \"@wirekyt/angular\";\nimport * as tabs from \"@wirekyt/dom/machines/tabs\";\n\ntype OptionalId<T extends { id: string }> = Omit<T, \"id\"> & { id?: string };\n\nexport interface UseTabsProps extends OptionalId<Omit<tabs.Props, \"dir\" | \"getRootNode\">> {}\n\nexport type UseTabsReturn = UseMachineReturn<tabs.Service[\"state\"], tabs.Api, tabs.Service>;\n\nexport interface UseTabsOptions {\n context: () => UseTabsProps;\n}\n\ntype TabsContext = Record<string, unknown>;\ntype TabsSchema = tabs.Machine extends Machine<infer TSchema> ? TSchema : never;\n\nexport function useTabs(options: UseTabsOptions): UseTabsReturn {\n const locale = injectLocale();\n const environment = injectEnvironment();\n const fallbackId = createId();\n\n return useMachine<TabsSchema, tabs.Api>({\n machine: tabs.machine,\n context: () => {\n const props = options.context();\n return {\n ...props,\n dir: locale.dir,\n getRootNode: environment.getRootNode,\n id: props.id ?? fallbackId,\n } as TabsContext;\n },\n connect: (service, normalize) => tabs.connect(service, normalize),\n });\n}\n","import type { ContextCarrier } from \"@wirekyt/angular\";\nimport type * as tabs from \"@wirekyt/dom/machines/tabs\";\n\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n EnvironmentInjector,\n Injector,\n Renderer2,\n type OutputEmitterRef,\n type ProviderToken,\n booleanAttribute,\n forwardRef,\n inject,\n input,\n model,\n output,\n type InputSignal,\n type InputSignalWithTransform,\n type ModelSignal,\n type Signal,\n} from \"@angular/core\";\nimport { bindProps, buildRootCarrier } from \"@wirekyt/angular\";\n\nimport type {\n TabsElementIds,\n TabsFocusChangeDetails,\n TabsIntlTranslations,\n TabsNavigateDetails,\n TabsValueChangeDetails,\n} from \"./types\";\n\nimport { useTabs, type UseTabsReturn } from \"./use\";\nimport { TABS_CONTEXT, TABS_CONTEXT_CARRIER, TABS_RENDER_STRATEGY_CONTEXT } from \"./use-context\";\n\nconst optionalBooleanAttribute = (value: unknown): boolean | undefined =>\n value === undefined || value === null ? undefined : booleanAttribute(value);\n\n@Directive({\n selector: \"[tabs-root]\",\n standalone: true,\n exportAs: \"tabsRoot\",\n providers: [\n { provide: TABS_CONTEXT, useExisting: forwardRef(() => TabsRoot) },\n { provide: TABS_RENDER_STRATEGY_CONTEXT, useExisting: forwardRef(() => TabsRoot) },\n {\n provide: TABS_CONTEXT_CARRIER,\n useFactory: (root: TabsRoot) => root.getContextCarrier(),\n deps: [forwardRef(() => TabsRoot)],\n },\n ],\n})\nexport class TabsRoot implements UseTabsReturn {\n readonly id: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly ids: InputSignal<Partial<TabsElementIds> | undefined> = input<\n Partial<TabsElementIds> | undefined\n >(undefined);\n readonly value: ModelSignal<string | null | undefined> = model<string | null | undefined>(\n undefined,\n );\n readonly defaultValue: InputSignal<string | null | undefined> = input<string | null | undefined>(\n undefined,\n );\n readonly orientation: InputSignal<tabs.Props[\"orientation\"]> =\n input<tabs.Props[\"orientation\"]>(undefined);\n readonly activationMode: InputSignal<tabs.Props[\"activationMode\"]> =\n input<tabs.Props[\"activationMode\"]>(undefined);\n readonly loopFocus: InputSignalWithTransform<boolean | undefined, unknown> = input<\n boolean | undefined,\n unknown\n >(undefined, { transform: optionalBooleanAttribute });\n readonly composite: InputSignalWithTransform<boolean | undefined, unknown> = input<\n boolean | undefined,\n unknown\n >(undefined, { transform: optionalBooleanAttribute });\n readonly deselectable: InputSignalWithTransform<boolean | undefined, unknown> = input<\n boolean | undefined,\n unknown\n >(undefined, { transform: optionalBooleanAttribute });\n readonly lazyMount: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly unmountOnExit: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly navigate: InputSignal<tabs.Props[\"navigate\"]> = input<tabs.Props[\"navigate\"]>(undefined);\n readonly translations: InputSignal<TabsIntlTranslations | undefined> = input<\n TabsIntlTranslations | undefined\n >(undefined);\n\n readonly focusChange: OutputEmitterRef<TabsFocusChangeDetails> = output<TabsFocusChangeDetails>();\n readonly valueDetailsChange: OutputEmitterRef<TabsValueChangeDetails> =\n output<TabsValueChangeDetails>();\n readonly navigateChange: OutputEmitterRef<TabsNavigateDetails> = output<TabsNavigateDetails>();\n\n private readonly machine = useTabs({\n context: () => ({\n id: this.id(),\n ids: this.ids(),\n value: this.value(),\n defaultValue: this.defaultValue(),\n orientation: this.orientation(),\n activationMode: this.activationMode(),\n loopFocus: this.loopFocus(),\n composite: this.composite(),\n deselectable: this.deselectable(),\n navigate: (details) => {\n this.navigate()?.(details);\n this.navigateChange.emit(details);\n },\n translations: this.translations(),\n onValueChange: (details) => {\n if (this.value() !== details.value) this.value.set(details.value);\n this.valueDetailsChange.emit(details);\n },\n onFocusChange: (details) => {\n this.focusChange.emit(details);\n },\n }),\n });\n\n readonly state: Signal<tabs.Service[\"state\"]> = this.machine.state;\n readonly api: Signal<tabs.Api> = this.machine.api;\n readonly service: tabs.Service = this.machine.service;\n readonly send: tabs.Service[\"send\"] = this.machine.send;\n\n protected readonly contextCarrier: ContextCarrier<TabsRoot> = buildRootCarrier<TabsRoot>({\n providers: [{ provide: TABS_RENDER_STRATEGY_CONTEXT, useValue: this }],\n root: this,\n rootToken: TABS_CONTEXT as ProviderToken<TabsRoot>,\n originInjector: inject(Injector),\n environmentInjector: inject(EnvironmentInjector),\n });\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.api().getRootProps(),\n });\n }\n\n getContextCarrier(): ContextCarrier<TabsRoot> {\n return this.contextCarrier;\n }\n}\n","import type { ContextCarrier } from \"@wirekyt/angular\";\nimport type * as tabs from \"@wirekyt/dom/machines/tabs\";\n\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n EnvironmentInjector,\n Injector,\n Renderer2,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n type InputSignal,\n type InputSignalWithTransform,\n type ProviderToken,\n type Signal,\n} from \"@angular/core\";\nimport { bindProps, buildRootCarrier } from \"@wirekyt/angular\";\n\nimport type { UseTabsReturn } from \"./use\";\n\nimport { TABS_CONTEXT, TABS_CONTEXT_CARRIER, TABS_RENDER_STRATEGY_CONTEXT } from \"./use-context\";\n\n@Directive({\n selector: \"[tabs-root-provider]\",\n standalone: true,\n exportAs: \"tabsRootProvider\",\n providers: [\n { provide: TABS_CONTEXT, useExisting: forwardRef(() => TabsRootProvider) },\n {\n provide: TABS_RENDER_STRATEGY_CONTEXT,\n useExisting: forwardRef(() => TabsRootProvider),\n },\n {\n provide: TABS_CONTEXT_CARRIER,\n useFactory: (provider: TabsRootProvider) => provider.getContextCarrier(),\n deps: [forwardRef(() => TabsRootProvider)],\n },\n ],\n})\nexport class TabsRootProvider implements UseTabsReturn {\n readonly value: InputSignal<UseTabsReturn> = input.required<UseTabsReturn>();\n readonly lazyMount: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly unmountOnExit: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly state: Signal<tabs.Service[\"state\"]> = computed(() => this.value().state());\n readonly api: Signal<tabs.Api> = computed(() => this.value().api());\n readonly send: tabs.Service[\"send\"] = (event) => this.value().send(event);\n\n get service(): tabs.Service {\n return this.value().service;\n }\n\n protected readonly contextCarrier: ContextCarrier<TabsRootProvider> =\n buildRootCarrier<TabsRootProvider>({\n providers: [{ provide: TABS_RENDER_STRATEGY_CONTEXT, useValue: this }],\n root: this,\n rootToken: TABS_CONTEXT as ProviderToken<TabsRootProvider>,\n originInjector: inject(Injector),\n environmentInjector: inject(EnvironmentInjector),\n });\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.api().getRootProps(),\n });\n }\n\n getContextCarrier(): ContextCarrier<TabsRootProvider> {\n return this.contextCarrier;\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectTabsContext } from \"./use-context\";\n\n@Directive({\n selector: \"[tabs-list]\",\n standalone: true,\n exportAs: \"tabsList\",\n})\nexport class TabsList {\n constructor() {\n const context = injectTabsContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.api().getListProps(),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n booleanAttribute,\n inject,\n input,\n type InputSignal,\n type InputSignalWithTransform,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectTabsContext } from \"./use-context\";\n\n@Directive({\n selector: \"[tabs-trigger]\",\n standalone: true,\n exportAs: \"tabsTrigger\",\n})\nexport class TabsTrigger {\n readonly value: InputSignal<string> = input.required<string>();\n readonly disabled: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n\n constructor() {\n const context = injectTabsContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () =>\n context.api().getTriggerProps({\n value: this.value(),\n disabled: this.disabled(),\n }),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n EmbeddedViewRef,\n Renderer2,\n TemplateRef,\n ViewContainerRef,\n effect,\n forwardRef,\n inject,\n input,\n untracked,\n type InputSignal,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\nimport { PRESENCE_CONTEXT, usePresence } from \"@wirekyt/angular/presence\";\n\nimport { injectTabsContext, injectTabsRenderStrategyContext } from \"./use-context\";\n\n@Directive({\n selector: \"[tabs-content]\",\n standalone: true,\n exportAs: \"tabsContent\",\n providers: [\n {\n provide: PRESENCE_CONTEXT,\n useFactory: (content: TabsContent) => content.presence,\n deps: [forwardRef(() => TabsContent)],\n },\n ],\n})\nexport class TabsContent {\n readonly value: InputSignal<string> = input.required<string>();\n private readonly context = injectTabsContext();\n private readonly renderStrategy = injectTabsRenderStrategyContext();\n readonly presence = usePresence({\n context: () => ({\n present: this.context.api().value === this.value(),\n immediate: true,\n lazyMount: this.renderStrategy.lazyMount(),\n unmountOnExit: this.renderStrategy.unmountOnExit(),\n }),\n });\n\n constructor() {\n const template = inject(TemplateRef<unknown>, { optional: true });\n const container = inject(ViewContainerRef);\n const host = inject(ElementRef);\n const elementRef = template ? { nativeElement: null as HTMLElement | null } : host;\n let view: EmbeddedViewRef<unknown> | undefined;\n\n effect(() => {\n const unmounted = this.presence.unmounted();\n if (template) {\n if (unmounted) {\n elementRef.nativeElement = null;\n container.clear();\n view = undefined;\n } else if (!view) {\n view = container.createEmbeddedView(template);\n elementRef.nativeElement =\n view.rootNodes.find((node: Node) => node.nodeType === 1) ?? null;\n }\n }\n untracked(() => this.presence.setNode(elementRef.nativeElement));\n });\n\n bindProps({\n elementRef,\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => {\n this.presence.unmounted();\n return {\n ...this.context.api().getContentProps({ value: this.value() }),\n ...this.presence.getPresenceProps(),\n };\n },\n });\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectTabsContext } from \"./use-context\";\n\n@Directive({\n selector: \"[tabs-indicator]\",\n standalone: true,\n exportAs: \"tabsIndicator\",\n})\nexport class TabsIndicator {\n constructor() {\n const context = injectTabsContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.api().getIndicatorProps(),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n TemplateRef,\n ViewContainerRef,\n effect,\n inject,\n} from \"@angular/core\";\n\nimport type { UseTabsReturn } from \"./use\";\n\nimport { injectTabsContext } from \"./use-context\";\n\nexport interface TabsContextTemplate {\n $implicit: UseTabsReturn[\"api\"];\n api: UseTabsReturn[\"api\"];\n}\n\n@Directive({\n selector: \"[tabs-context]\",\n standalone: true,\n exportAs: \"tabsContext\",\n})\nexport class TabsContext {\n static ngTemplateContextGuard(\n _directive: TabsContext,\n context: unknown,\n ): context is TabsContextTemplate {\n void context;\n return true;\n }\n\n private readonly tabs = injectTabsContext();\n private readonly templateRef = inject<TemplateRef<TabsContextTemplate>>(TemplateRef);\n private readonly viewContainer = inject(ViewContainerRef);\n\n constructor() {\n const view = this.viewContainer.createEmbeddedView(this.templateRef, {\n $implicit: this.tabs.api,\n api: this.tabs.api,\n });\n\n effect(() => {\n this.tabs.api();\n view.detectChanges();\n });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BW,WAAW,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAX,WAAW,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,CAAA,aAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAX,WAAW,EAAA,UAAA,EAAA,CAAA;kBALvB,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,aAAa;AACxB,iBAAA;;;ACtBD;;AAEG;;;;"}
|
package/dist/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirekyt/angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"description": "Angular adapter for Wirekyt",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -111,6 +111,10 @@
|
|
|
111
111
|
"types": "./types/wirekyt-angular-presence.d.ts",
|
|
112
112
|
"default": "./fesm2022/wirekyt-angular-presence.mjs"
|
|
113
113
|
},
|
|
114
|
+
"./tabs": {
|
|
115
|
+
"types": "./types/wirekyt-angular-tabs.d.ts",
|
|
116
|
+
"default": "./fesm2022/wirekyt-angular-tabs.mjs"
|
|
117
|
+
},
|
|
114
118
|
"./toast": {
|
|
115
119
|
"types": "./types/wirekyt-angular-toast.d.ts",
|
|
116
120
|
"default": "./fesm2022/wirekyt-angular-toast.mjs"
|
|
@@ -7,7 +7,7 @@ import * as i0 from '@angular/core';
|
|
|
7
7
|
import { Signal, InputSignal, ModelSignal, InputSignalWithTransform, OutputEmitterRef, InjectionToken } from '@angular/core';
|
|
8
8
|
import { ControlValueAccessor } from '@angular/forms';
|
|
9
9
|
|
|
10
|
-
declare const checkboxAnatomy: _wirekyt_dom_anatomy.AnatomyInstance<"root" | "
|
|
10
|
+
declare const checkboxAnatomy: _wirekyt_dom_anatomy.AnatomyInstance<"root" | "label" | "control" | "indicator" | "group">;
|
|
11
11
|
|
|
12
12
|
type OptionalId<T extends {
|
|
13
13
|
id: string;
|
|
@@ -9,7 +9,7 @@ import { PresenceBase } from '@wirekyt/angular/presence';
|
|
|
9
9
|
import { ControlValueAccessor } from '@angular/forms';
|
|
10
10
|
import { ColorStringFormat } from '@wirekyt/dom/color-utils';
|
|
11
11
|
|
|
12
|
-
declare const colorPickerAnatomy: _wirekyt_dom_anatomy.Anatomy<"
|
|
12
|
+
declare const colorPickerAnatomy: _wirekyt_dom_anatomy.Anatomy<"trigger" | "positioner" | "content" | "root" | "area" | "label" | "control" | "valueText" | "areaThumb" | "areaBackground" | "channelSlider" | "channelSliderLabel" | "channelSliderTrack" | "channelSliderThumb" | "channelSliderValueText" | "channelInput" | "transparencyGrid" | "swatchGroup" | "swatchTrigger" | "swatchIndicator" | "swatch" | "eyeDropperTrigger" | "formatTrigger" | "formatSelect">;
|
|
13
13
|
|
|
14
14
|
declare class ColorPickerArea {
|
|
15
15
|
readonly xChannel: InputSignal<colorPicker.ColorChannel | undefined>;
|
|
@@ -13,7 +13,7 @@ import { PresenceBase } from '@wirekyt/angular/presence';
|
|
|
13
13
|
import { ControlValueAccessor } from '@angular/forms';
|
|
14
14
|
import * as _wirekyt_angular_combobox from '@wirekyt/angular/combobox';
|
|
15
15
|
|
|
16
|
-
declare const comboboxAnatomy: _wirekyt_dom_anatomy.AnatomyInstance<"
|
|
16
|
+
declare const comboboxAnatomy: _wirekyt_dom_anatomy.AnatomyInstance<"trigger" | "positioner" | "content" | "input" | "root" | "item" | "label" | "control" | "list" | "itemText" | "itemIndicator" | "itemGroup" | "clearTrigger" | "itemGroupLabel" | "empty">;
|
|
17
17
|
|
|
18
18
|
type ComboboxSchema<T extends CollectionItem = CollectionItem> = Machine<T> extends Machine$1<infer S> ? S : never;
|
|
19
19
|
|
|
@@ -9,7 +9,7 @@ import * as _wirekyt_angular_presence from '@wirekyt/angular/presence';
|
|
|
9
9
|
import { PresenceBase } from '@wirekyt/angular/presence';
|
|
10
10
|
import { ControlValueAccessor } from '@angular/forms';
|
|
11
11
|
|
|
12
|
-
declare const datePickerAnatomy: _wirekyt_dom_anatomy.AnatomyInstance<"
|
|
12
|
+
declare const datePickerAnatomy: _wirekyt_dom_anatomy.AnatomyInstance<"trigger" | "positioner" | "content" | "input" | "root" | "label" | "table" | "view" | "control" | "nextTrigger" | "prevTrigger" | "clearTrigger" | "monthSelect" | "presetTrigger" | "rangeText" | "tableBody" | "tableCell" | "tableCellTrigger" | "tableHead" | "tableHeader" | "tableRow" | "viewControl" | "viewTrigger" | "yearSelect" | "valueText">;
|
|
13
13
|
|
|
14
14
|
type OptionalId<T extends {
|
|
15
15
|
id?: string | undefined;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirekyt-angular-field.d.ts","sources":["../../src/components/field/anatomy.ts","../../src/components/field/types.ts","../../src/components/field/use
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-field.d.ts","sources":["../../src/components/field/anatomy.ts","../../src/components/field/types.ts","../../src/components/field/use.ts","../../src/components/field/use-context.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"],"mappings":";;;;AAEA,cAAa,YAAY,EAAA,oBAAA,CAAA,eAAA;;UCFR,eAAe;;;;;;AAM/B;UAEgB,gBAAgB;;;;;;AAMhC;;UCLgB,aAAa;;UAEtB,eAAe;;;;;;AAMtB;UAEgB,cAAc;SACxB,gBAAgB;AACrB,cAAU,MAAM;AAChB,aAAS,MAAM;AACf,cAAU,MAAM;AAChB,cAAU,MAAM;AAChB,kBAAc,MAAM;AACpB,mBAAe,MAAM;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AAiB,MAAM;AAGvB,wBAAoB,MAAM;AAG1B,sBAAkB,MAAM;AAGxB,0BAAsB,MAAM;AAG5B,yBAAqB,MAAM;AAG3B,iCAA6B,MAAM;AAGnC;AAGA;;yCA/DW,iBAAiB;2CAAjB,iBAAiB;AA2E7B;;AC/FD,cAKa,UAAU;;yCAAV,UAAU;2CAAV,UAAU;AAUtB;;ACfD,cAKa,UAAU;;yCAAV,UAAU;2CAAV,UAAU;AAUtB;;ACFD,cAKa,aAAa;yBACH,wBAAwB;;yCADlC,aAAa;2CAAb,aAAa;AAgCzB;;AClDD,cAKa,WAAW;;yCAAX,WAAW;2CAAX,WAAW;AAUvB;;ACPD,cAKa,eAAe;;yCAAf,eAAe;2CAAf,eAAe;AAgB3B;;ACrBD,cAKa,cAAc;;yCAAd,cAAc;2CAAd,cAAc;AAgB1B;;AC7BD,cAKa,sBAAsB;;yCAAtB,sBAAsB;2CAAtB,sBAAsB;AAWlC;;ACLD,cAMa,SAAU,YAAW,cAAc;AAC9C,oBAAgB,WAAW;AAE3B;AAEA,uBAAmB,MAAM;AACzB,sBAAkB,MAAM;AACxB,uBAAmB,MAAM;AACzB,uBAAmB,MAAM;AACzB,2BAAuB,MAAM;AAC7B,4BAAwB,MAAM;8BACJ,MAAM;AAIhC;AACA;eAEW,gBAAgB;AAS3B;AAIA;;;AAYA,oBAAgB,MAAM;AAItB,uBAAmB,MAAM;AAOzB,qBAAiB,MAAM;AAQvB,qBAAiB,MAAM;AAOvB,wBAAoB,MAAM;AAO1B,sBAAkB,MAAM;AAOxB,0BAAsB,MAAM;AAI5B,yBAAqB,MAAM;AAI3B,iCAA6B,MAAM;AAInC;AAIA;yCAnGW,SAAS;2CAAT,SAAS;AAsGrB;;;;","names":[]}
|
|
@@ -0,0 +1,123 @@
|
|
|
1
|
+
import * as tabs from '@wirekyt/dom/machines/tabs';
|
|
2
|
+
import { ElementIds, IntlTranslations, FocusChangeDetails, ValueChangeDetails, NavigateDetails } from '@wirekyt/dom/machines/tabs';
|
|
3
|
+
export { Api as TabsApi, ContentProps as TabsContentProps, ElementIds as TabsElementIds, FocusChangeDetails as TabsFocusChangeDetails, IntlTranslations as TabsIntlTranslations, Machine as TabsMachine, Props as TabsMachineProps, NavigateDetails as TabsNavigateDetails, Service as TabsService, TriggerProps as TabsTriggerProps, TriggerState as TabsTriggerState, ValueChangeDetails as TabsValueChangeDetails, anatomy as tabsAnatomy } from '@wirekyt/dom/machines/tabs';
|
|
4
|
+
import { UseMachineReturn, ContextCarrier } from '@wirekyt/angular';
|
|
5
|
+
import * as i0 from '@angular/core';
|
|
6
|
+
import { InjectionToken, Signal, InputSignal, ModelSignal, InputSignalWithTransform, OutputEmitterRef } from '@angular/core';
|
|
7
|
+
import * as _wirekyt_angular_presence from '@wirekyt/angular/presence';
|
|
8
|
+
|
|
9
|
+
type OptionalId<T extends {
|
|
10
|
+
id: string;
|
|
11
|
+
}> = Omit<T, "id"> & {
|
|
12
|
+
id?: string;
|
|
13
|
+
};
|
|
14
|
+
interface UseTabsProps extends OptionalId<Omit<tabs.Props, "dir" | "getRootNode">> {
|
|
15
|
+
}
|
|
16
|
+
type UseTabsReturn = UseMachineReturn<tabs.Service["state"], tabs.Api, tabs.Service>;
|
|
17
|
+
interface UseTabsOptions {
|
|
18
|
+
context: () => UseTabsProps;
|
|
19
|
+
}
|
|
20
|
+
declare function useTabs(options: UseTabsOptions): UseTabsReturn;
|
|
21
|
+
|
|
22
|
+
declare const TABS_CONTEXT: InjectionToken<UseTabsReturn>;
|
|
23
|
+
declare function injectTabsContext(): UseTabsReturn;
|
|
24
|
+
declare const TABS_CONTEXT_CARRIER: InjectionToken<ContextCarrier<UseTabsReturn>>;
|
|
25
|
+
declare function injectTabsContextCarrier(): ContextCarrier<UseTabsReturn>;
|
|
26
|
+
interface TabsRenderStrategyContext {
|
|
27
|
+
readonly lazyMount: Signal<boolean>;
|
|
28
|
+
readonly unmountOnExit: Signal<boolean>;
|
|
29
|
+
}
|
|
30
|
+
declare const TABS_RENDER_STRATEGY_CONTEXT: InjectionToken<TabsRenderStrategyContext>;
|
|
31
|
+
declare function injectTabsRenderStrategyContext(): TabsRenderStrategyContext;
|
|
32
|
+
|
|
33
|
+
declare class TabsRoot implements UseTabsReturn {
|
|
34
|
+
readonly id: InputSignal<string | undefined>;
|
|
35
|
+
readonly ids: InputSignal<Partial<ElementIds> | undefined>;
|
|
36
|
+
readonly value: ModelSignal<string | null | undefined>;
|
|
37
|
+
readonly defaultValue: InputSignal<string | null | undefined>;
|
|
38
|
+
readonly orientation: InputSignal<tabs.Props["orientation"]>;
|
|
39
|
+
readonly activationMode: InputSignal<tabs.Props["activationMode"]>;
|
|
40
|
+
readonly loopFocus: InputSignalWithTransform<boolean | undefined, unknown>;
|
|
41
|
+
readonly composite: InputSignalWithTransform<boolean | undefined, unknown>;
|
|
42
|
+
readonly deselectable: InputSignalWithTransform<boolean | undefined, unknown>;
|
|
43
|
+
readonly lazyMount: InputSignalWithTransform<boolean, unknown>;
|
|
44
|
+
readonly unmountOnExit: InputSignalWithTransform<boolean, unknown>;
|
|
45
|
+
readonly navigate: InputSignal<tabs.Props["navigate"]>;
|
|
46
|
+
readonly translations: InputSignal<IntlTranslations | undefined>;
|
|
47
|
+
readonly focusChange: OutputEmitterRef<FocusChangeDetails>;
|
|
48
|
+
readonly valueDetailsChange: OutputEmitterRef<ValueChangeDetails>;
|
|
49
|
+
readonly navigateChange: OutputEmitterRef<NavigateDetails>;
|
|
50
|
+
private readonly machine;
|
|
51
|
+
readonly state: Signal<tabs.Service["state"]>;
|
|
52
|
+
readonly api: Signal<tabs.Api>;
|
|
53
|
+
readonly service: tabs.Service;
|
|
54
|
+
readonly send: tabs.Service["send"];
|
|
55
|
+
protected readonly contextCarrier: ContextCarrier<TabsRoot>;
|
|
56
|
+
constructor();
|
|
57
|
+
getContextCarrier(): ContextCarrier<TabsRoot>;
|
|
58
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsRoot, never>;
|
|
59
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsRoot, "[tabs-root]", ["tabsRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "activationMode": { "alias": "activationMode"; "required": false; "isSignal": true; }; "loopFocus": { "alias": "loopFocus"; "required": false; "isSignal": true; }; "composite": { "alias": "composite"; "required": false; "isSignal": true; }; "deselectable": { "alias": "deselectable"; "required": false; "isSignal": true; }; "lazyMount": { "alias": "lazyMount"; "required": false; "isSignal": true; }; "unmountOnExit": { "alias": "unmountOnExit"; "required": false; "isSignal": true; }; "navigate": { "alias": "navigate"; "required": false; "isSignal": true; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "focusChange": "focusChange"; "valueDetailsChange": "valueDetailsChange"; "navigateChange": "navigateChange"; }, never, never, true, never>;
|
|
60
|
+
}
|
|
61
|
+
|
|
62
|
+
declare class TabsRootProvider implements UseTabsReturn {
|
|
63
|
+
readonly value: InputSignal<UseTabsReturn>;
|
|
64
|
+
readonly lazyMount: InputSignalWithTransform<boolean, unknown>;
|
|
65
|
+
readonly unmountOnExit: InputSignalWithTransform<boolean, unknown>;
|
|
66
|
+
readonly state: Signal<tabs.Service["state"]>;
|
|
67
|
+
readonly api: Signal<tabs.Api>;
|
|
68
|
+
readonly send: tabs.Service["send"];
|
|
69
|
+
get service(): tabs.Service;
|
|
70
|
+
protected readonly contextCarrier: ContextCarrier<TabsRootProvider>;
|
|
71
|
+
constructor();
|
|
72
|
+
getContextCarrier(): ContextCarrier<TabsRootProvider>;
|
|
73
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsRootProvider, never>;
|
|
74
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsRootProvider, "[tabs-root-provider]", ["tabsRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "lazyMount": { "alias": "lazyMount"; "required": false; "isSignal": true; }; "unmountOnExit": { "alias": "unmountOnExit"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
declare class TabsList {
|
|
78
|
+
constructor();
|
|
79
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsList, never>;
|
|
80
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsList, "[tabs-list]", ["tabsList"], {}, {}, never, never, true, never>;
|
|
81
|
+
}
|
|
82
|
+
|
|
83
|
+
declare class TabsTrigger {
|
|
84
|
+
readonly value: InputSignal<string>;
|
|
85
|
+
readonly disabled: InputSignalWithTransform<boolean, unknown>;
|
|
86
|
+
constructor();
|
|
87
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsTrigger, never>;
|
|
88
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsTrigger, "[tabs-trigger]", ["tabsTrigger"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
declare class TabsContent {
|
|
92
|
+
readonly value: InputSignal<string>;
|
|
93
|
+
private readonly context;
|
|
94
|
+
private readonly renderStrategy;
|
|
95
|
+
readonly presence: _wirekyt_angular_presence.UsePresenceReturn;
|
|
96
|
+
constructor();
|
|
97
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsContent, never>;
|
|
98
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsContent, "[tabs-content]", ["tabsContent"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
99
|
+
}
|
|
100
|
+
|
|
101
|
+
declare class TabsIndicator {
|
|
102
|
+
constructor();
|
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsIndicator, never>;
|
|
104
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsIndicator, "[tabs-indicator]", ["tabsIndicator"], {}, {}, never, never, true, never>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
interface TabsContextTemplate {
|
|
108
|
+
$implicit: UseTabsReturn["api"];
|
|
109
|
+
api: UseTabsReturn["api"];
|
|
110
|
+
}
|
|
111
|
+
declare class TabsContext {
|
|
112
|
+
static ngTemplateContextGuard(_directive: TabsContext, context: unknown): context is TabsContextTemplate;
|
|
113
|
+
private readonly tabs;
|
|
114
|
+
private readonly templateRef;
|
|
115
|
+
private readonly viewContainer;
|
|
116
|
+
constructor();
|
|
117
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<TabsContext, never>;
|
|
118
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<TabsContext, "[tabs-context]", ["tabsContext"], {}, {}, never, never, true, never>;
|
|
119
|
+
}
|
|
120
|
+
|
|
121
|
+
export { TABS_CONTEXT, TABS_CONTEXT_CARRIER, TABS_RENDER_STRATEGY_CONTEXT, TabsContent, TabsContext, TabsIndicator, TabsList, TabsRoot, TabsRootProvider, TabsTrigger, injectTabsContext, injectTabsContextCarrier, injectTabsRenderStrategyContext, useTabs };
|
|
122
|
+
export type { TabsContextTemplate, TabsRenderStrategyContext, UseTabsOptions, UseTabsProps, UseTabsReturn };
|
|
123
|
+
//# sourceMappingURL=wirekyt-angular-tabs.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-tabs.d.ts","sources":["../../src/components/tabs/use.ts","../../src/components/tabs/use-context.ts","../../src/components/tabs/root.ts","../../src/components/tabs/root-provider.ts","../../src/components/tabs/list.ts","../../src/components/tabs/trigger.ts","../../src/components/tabs/content.ts","../../src/components/tabs/indicator.ts","../../src/components/tabs/context.ts"],"mappings":";;;;;;;;AAWA,KAAK,UAAU;;AAAyB,KAAI,IAAI;;;AAE1C,UAAW,YAAa,SAAQ,UAAU,CAAC,IAAI,CAA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QAAQ;yCA3FjC,QAAQ;2CAAR,QAAQ;AA8FpB;;ACzHD,cAiBa,gBAAiB,YAAW,aAAa;AACpD,oBAAgB,WAAW,CAAC,aAAa;wBACrB,wBAAwB;4BAGpB,wBAAwB;AAGhD,oBAAgB,MAAM,CAAC,IAAI,CAAC,OAAO;kBACrB,MAAM,CAAC,IAAI,CAAC,GAAG;mBACd,IAAI,CAAC,OAAO;AAE3B,mBAAe,IAAI,CAAC,OAAO;uCAIQ,cAAc,CAAC,gBAAgB;;AAkBlE,yBAAqB,cAAc,CAAC,gBAAgB;yCAlCzC,gBAAgB;2CAAhB,gBAAgB;AAqC5B;;AC3ED,cAKa,QAAQ;;yCAAR,QAAQ;2CAAR,QAAQ;AAUpB;;ACLD,cAKa,WAAW;AACtB,oBAAgB,WAAW;uBACR,wBAAwB;;yCAFhC,WAAW;2CAAX,WAAW;AAmBvB;;ACnBD,cAYa,WAAW;AACtB,oBAAgB,WAAW;AAC3B;AACA;uBACiB,yBAAA,CAAA,iBAAA;;yCAJN,WAAW;2CAAX,WAAW;AAiDvB;;AC5ED,cAKa,aAAa;;yCAAb,aAAa;2CAAb,aAAa;AAUzB;;UCPgB,mBAAmB;AAClC,eAAW,aAAa;AACxB,SAAK,aAAa;AACnB;AAED,cAKa,WAAW;AACtB,8CACc,WAAW,gCAEX,mBAAmB;AAKjC;AACA;AACA;;yCAXW,WAAW;2CAAX,WAAW;AA0BvB;;;;","names":["TabsElementIds","TabsIntlTranslations","TabsFocusChangeDetails","TabsValueChangeDetails","TabsNavigateDetails"]}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirekyt/angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.25",
|
|
4
4
|
"description": "Angular adapter for Wirekyt",
|
|
5
5
|
"files": [
|
|
6
6
|
"dist",
|
|
@@ -111,6 +111,10 @@
|
|
|
111
111
|
"types": "./dist/types/wirekyt-angular-presence.d.ts",
|
|
112
112
|
"default": "./dist/fesm2022/wirekyt-angular-presence.mjs"
|
|
113
113
|
},
|
|
114
|
+
"./tabs": {
|
|
115
|
+
"types": "./dist/types/wirekyt-angular-tabs.d.ts",
|
|
116
|
+
"default": "./dist/fesm2022/wirekyt-angular-tabs.mjs"
|
|
117
|
+
},
|
|
114
118
|
"./toast": {
|
|
115
119
|
"types": "./dist/types/wirekyt-angular-toast.d.ts",
|
|
116
120
|
"default": "./dist/fesm2022/wirekyt-angular-toast.mjs"
|
|
@@ -124,7 +128,7 @@
|
|
|
124
128
|
"dependencies": {
|
|
125
129
|
"@internationalized/date": "^3.12.3",
|
|
126
130
|
"@internationalized/number": "^3.6.7",
|
|
127
|
-
"@wirekyt/dom": "0.0.
|
|
131
|
+
"@wirekyt/dom": "0.0.25",
|
|
128
132
|
"tslib": "^2.8.1"
|
|
129
133
|
},
|
|
130
134
|
"peerDependencies": {
|