@wirekyt/angular 0.0.16 → 0.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +3 -3
- package/dist/README.md +3 -3
- package/dist/fesm2022/wirekyt-angular-accordion.mjs +16 -16
- package/dist/fesm2022/wirekyt-angular-accordion.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-angle-slider.mjs +20 -20
- package/dist/fesm2022/wirekyt-angular-angle-slider.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-avatar.mjs +10 -10
- package/dist/fesm2022/wirekyt-angular-avatar.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-carousel.mjs +26 -26
- package/dist/fesm2022/wirekyt-angular-carousel.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-checkbox.mjs +18 -18
- package/dist/fesm2022/wirekyt-angular-checkbox.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-clipboard.mjs +18 -18
- package/dist/fesm2022/wirekyt-angular-clipboard.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-collapsible.mjs +10 -10
- package/dist/fesm2022/wirekyt-angular-collapsible.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-color-picker.mjs +58 -58
- package/dist/fesm2022/wirekyt-angular-color-picker.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-combobox.mjs +36 -36
- package/dist/fesm2022/wirekyt-angular-combobox.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-date-input.mjs +18 -18
- package/dist/fesm2022/wirekyt-angular-date-input.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-date-picker.mjs +58 -58
- package/dist/fesm2022/wirekyt-angular-date-picker.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-dialog.mjs +20 -20
- package/dist/fesm2022/wirekyt-angular-dialog.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-download-trigger.mjs +2 -2
- package/dist/fesm2022/wirekyt-angular-download-trigger.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-drawer.mjs +706 -0
- package/dist/fesm2022/wirekyt-angular-drawer.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-field.mjs +20 -20
- package/dist/fesm2022/wirekyt-angular-field.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-fieldset.mjs +10 -10
- package/dist/fesm2022/wirekyt-angular-fieldset.mjs.map +1 -1
- package/dist/package.json +6 -2
- package/dist/types/wirekyt-angular-accordion.d.ts +8 -8
- package/dist/types/wirekyt-angular-angle-slider.d.ts +10 -10
- package/dist/types/wirekyt-angular-avatar.d.ts +5 -5
- package/dist/types/wirekyt-angular-carousel.d.ts +13 -13
- package/dist/types/wirekyt-angular-checkbox.d.ts +10 -10
- package/dist/types/wirekyt-angular-clipboard.d.ts +9 -9
- package/dist/types/wirekyt-angular-collapsible.d.ts +5 -5
- package/dist/types/wirekyt-angular-color-picker.d.ts +30 -30
- package/dist/types/wirekyt-angular-combobox.d.ts +19 -19
- package/dist/types/wirekyt-angular-date-input.d.ts +9 -9
- package/dist/types/wirekyt-angular-date-picker.d.ts +30 -30
- package/dist/types/wirekyt-angular-dialog.d.ts +10 -10
- package/dist/types/wirekyt-angular-download-trigger.d.ts +1 -1
- package/dist/types/wirekyt-angular-drawer.d.ts +203 -0
- package/dist/types/wirekyt-angular-drawer.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-field.d.ts +10 -10
- package/dist/types/wirekyt-angular-fieldset.d.ts +5 -5
- package/package.json +7 -3
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"wirekyt-angular-fieldset.mjs","sources":["../../src/components/fieldset/anatomy.ts","../../src/components/fieldset/use-context.ts","../../src/components/fieldset/use.ts","../../src/components/fieldset/root.ts","../../src/components/fieldset/root-provider.ts","../../src/components/fieldset/legend.ts","../../src/components/fieldset/helper-text.ts","../../src/components/fieldset/error-text.ts","../../src/components/fieldset/wirekyt-angular-fieldset.ts"],"sourcesContent":["import { createAnatomy } from \"@wirekyt/dom/anatomy\";\n\nexport const fieldsetAnatomy = createAnatomy(\"fieldset\").parts(\n \"root\",\n \"errorText\",\n \"helperText\",\n \"legend\",\n);\n\nexport const fieldsetParts = fieldsetAnatomy.build();\n","import { InjectionToken, inject } from \"@angular/core\";\n\nimport type { UseFieldsetReturn } from \"./use\";\n\nexport const FIELDSET_CONTEXT = new InjectionToken<UseFieldsetReturn>(\"WIREKYT.FIELDSET_CONTEXT\");\n\nexport function injectFieldsetContext(): UseFieldsetReturn {\n return inject(FIELDSET_CONTEXT);\n}\n\nexport function injectFieldsetContextOptional(): UseFieldsetReturn | null {\n return inject(FIELDSET_CONTEXT, { optional: true });\n}\n","import { type Signal, computed, signal } from \"@angular/core\";\nimport { createId } from \"@wirekyt/angular\";\n\nimport type { FieldsetResolvedIds } from \"./types\";\n\nimport { fieldsetParts } from \"./anatomy\";\n\nexport interface UseFieldsetProps {\n id?: string;\n disabled?: boolean;\n invalid?: boolean;\n}\n\nexport interface UseFieldsetReturn {\n ids: FieldsetResolvedIds;\n disabled: Signal<boolean>;\n invalid: Signal<boolean>;\n hasErrorText: Signal<boolean>;\n hasHelperText: Signal<boolean>;\n ariaDescribedby: Signal<string | undefined>;\n setHasErrorText(value: boolean): void;\n setHasHelperText(value: boolean): void;\n registerErrorText(): () => void;\n registerHelperText(): () => void;\n getRootProps(): Record<string, unknown>;\n getLegendProps(): Record<string, unknown>;\n getHelperTextProps(): Record<string, unknown>;\n getErrorTextProps(): Record<string, unknown>;\n}\n\nexport interface UseFieldsetOptions {\n context: () => UseFieldsetProps;\n}\n\nconst dataAttr = (value: boolean | undefined): string | undefined => (value ? \"\" : undefined);\n\nexport function useFieldset(options: UseFieldsetOptions): UseFieldsetReturn {\n const fallbackId = createId();\n\n const propsSignal = computed(() => options.context());\n\n const id = computed(() => propsSignal().id ?? fallbackId);\n const ids = computed<FieldsetResolvedIds>(() => {\n const baseId = id();\n return {\n legend: `fieldset:${baseId}:legend`,\n errorText: `fieldset:${baseId}:error-text`,\n helperText: `fieldset:${baseId}:helper-text`,\n };\n });\n\n const disabled = computed(() => Boolean(propsSignal().disabled));\n const invalid = computed(() => Boolean(propsSignal().invalid));\n\n const errorTextCount = signal(0);\n const helperTextCount = signal(0);\n const explicitHasErrorText = signal(false);\n const explicitHasHelperText = signal(false);\n const hasErrorTextSignal = computed(() => explicitHasErrorText() || errorTextCount() > 0);\n const hasHelperTextSignal = computed(() => explicitHasHelperText() || helperTextCount() > 0);\n\n const ariaDescribedby = computed<string | undefined>(() => {\n const list: string[] = [];\n if (hasErrorTextSignal() && invalid()) list.push(ids().errorText);\n if (hasHelperTextSignal()) list.push(ids().helperText);\n return list.length > 0 ? list.join(\" \") : undefined;\n });\n\n const getRootProps = (): Record<string, unknown> => ({\n ...fieldsetParts.root.attrs,\n disabled: disabled() || undefined,\n \"data-disabled\": dataAttr(disabled()),\n \"data-invalid\": dataAttr(invalid()),\n \"aria-labelledby\": ids().legend,\n \"aria-describedby\": ariaDescribedby(),\n });\n\n const getLegendProps = (): Record<string, unknown> => ({\n ...fieldsetParts.legend.attrs,\n id: ids().legend,\n \"data-disabled\": dataAttr(disabled()),\n \"data-invalid\": dataAttr(invalid()),\n });\n\n const getHelperTextProps = (): Record<string, unknown> => ({\n ...fieldsetParts.helperText.attrs,\n id: ids().helperText,\n });\n\n const getErrorTextProps = (): Record<string, unknown> => ({\n ...fieldsetParts.errorText.attrs,\n id: ids().errorText,\n \"aria-live\": \"polite\",\n hidden: !invalid() || undefined,\n });\n\n return {\n get ids(): FieldsetResolvedIds {\n return ids();\n },\n disabled,\n invalid,\n hasErrorText: hasErrorTextSignal,\n hasHelperText: hasHelperTextSignal,\n ariaDescribedby,\n setHasErrorText: (value: boolean) => explicitHasErrorText.set(value),\n setHasHelperText: (value: boolean) => explicitHasHelperText.set(value),\n registerErrorText: () => {\n errorTextCount.update((count) => count + 1);\n return () => errorTextCount.update((count) => Math.max(0, count - 1));\n },\n registerHelperText: () => {\n helperTextCount.update((count) => count + 1);\n return () => helperTextCount.update((count) => Math.max(0, count - 1));\n },\n getRootProps,\n getLegendProps,\n getHelperTextProps,\n getErrorTextProps,\n };\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n booleanAttribute,\n forwardRef,\n inject,\n input,\n type InputSignal,\n type InputSignalWithTransform,\n type Signal,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport type { FieldsetResolvedIds } from \"./types\";\n\nimport { type UseFieldsetReturn, useFieldset } from \"./use\";\nimport { FIELDSET_CONTEXT } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldsetRoot]\",\n standalone: true,\n exportAs: \"fieldsetRoot\",\n providers: [{ provide: FIELDSET_CONTEXT, useExisting: forwardRef(() => FieldsetRoot) }],\n})\nexport class FieldsetRoot implements UseFieldsetReturn {\n readonly id: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly disabled: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly invalid: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n\n private readonly fieldset: UseFieldsetReturn = useFieldset({\n context: () => ({\n id: this.id(),\n disabled: this.disabled(),\n invalid: this.invalid(),\n }),\n });\n\n get ids(): FieldsetResolvedIds {\n return this.fieldset.ids;\n }\n\n get hasErrorText(): Signal<boolean> {\n return this.fieldset.hasErrorText;\n }\n\n get hasHelperText(): Signal<boolean> {\n return this.fieldset.hasHelperText;\n }\n\n get ariaDescribedby(): Signal<string | undefined> {\n return this.fieldset.ariaDescribedby;\n }\n\n setHasErrorText(value: boolean): void {\n this.fieldset.setHasErrorText(value);\n }\n\n setHasHelperText(value: boolean): void {\n this.fieldset.setHasHelperText(value);\n }\n\n registerErrorText(): () => void {\n return this.fieldset.registerErrorText();\n }\n\n registerHelperText(): () => void {\n return this.fieldset.registerHelperText();\n }\n\n getRootProps(): Record<string, unknown> {\n return this.fieldset.getRootProps();\n }\n getLegendProps(): Record<string, unknown> {\n return this.fieldset.getLegendProps();\n }\n getHelperTextProps(): Record<string, unknown> {\n return this.fieldset.getHelperTextProps();\n }\n getErrorTextProps(): Record<string, unknown> {\n return this.fieldset.getErrorTextProps();\n }\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.fieldset.getRootProps(),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n computed,\n forwardRef,\n inject,\n input,\n type InputSignal,\n type Signal,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport type { FieldsetResolvedIds } from \"./types\";\nimport type { UseFieldsetReturn } from \"./use\";\n\nimport { FIELDSET_CONTEXT } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldsetRootProvider]\",\n standalone: true,\n exportAs: \"fieldsetRootProvider\",\n providers: [{ provide: FIELDSET_CONTEXT, useExisting: forwardRef(() => FieldsetRootProvider) }],\n})\nexport class FieldsetRootProvider implements UseFieldsetReturn {\n readonly value: InputSignal<UseFieldsetReturn> = input.required<UseFieldsetReturn>();\n\n readonly disabled: Signal<boolean> = computed(() => this.value().disabled());\n readonly invalid: Signal<boolean> = computed(() => this.value().invalid());\n readonly hasErrorText: Signal<boolean> = computed(() => this.value().hasErrorText());\n readonly hasHelperText: Signal<boolean> = computed(() => this.value().hasHelperText());\n readonly ariaDescribedby: Signal<string | undefined> = computed(() =>\n this.value().ariaDescribedby(),\n );\n\n get ids(): FieldsetResolvedIds {\n return this.value().ids;\n }\n\n setHasErrorText(value: boolean): void {\n this.value().setHasErrorText(value);\n }\n\n setHasHelperText(value: boolean): void {\n this.value().setHasHelperText(value);\n }\n\n registerErrorText(): () => void {\n return this.value().registerErrorText();\n }\n\n registerHelperText(): () => void {\n return this.value().registerHelperText();\n }\n\n getRootProps(): Record<string, unknown> {\n return this.value().getRootProps();\n }\n getLegendProps(): Record<string, unknown> {\n return this.value().getLegendProps();\n }\n getHelperTextProps(): Record<string, unknown> {\n return this.value().getHelperTextProps();\n }\n getErrorTextProps(): Record<string, unknown> {\n return this.value().getErrorTextProps();\n }\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.value().getRootProps(),\n });\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldsetContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldsetLegend]\",\n standalone: true,\n exportAs: \"fieldsetLegend\",\n})\nexport class FieldsetLegend {\n constructor() {\n const context = injectFieldsetContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getLegendProps(),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n effect,\n inject,\n untracked,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldsetContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldsetHelperText]\",\n standalone: true,\n exportAs: \"fieldsetHelperText\",\n})\nexport class FieldsetHelperText {\n constructor() {\n const context = injectFieldsetContext();\n\n effect((onCleanup) => {\n const unregister = untracked(() => context.registerHelperText());\n onCleanup(unregister);\n });\n\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getHelperTextProps(),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n effect,\n inject,\n untracked,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldsetContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldsetErrorText]\",\n standalone: true,\n exportAs: \"fieldsetErrorText\",\n})\nexport class FieldsetErrorText {\n constructor() {\n const context = injectFieldsetContext();\n\n effect((onCleanup) => {\n const unregister = untracked(() => context.registerErrorText());\n onCleanup(unregister);\n });\n\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getErrorTextProps(),\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAEO,MAAM,eAAe,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,KAAK,CAC5D,MAAM,EACN,WAAW,EACX,YAAY,EACZ,QAAQ;AAGH,MAAM,aAAa,GAAG,eAAe,CAAC,KAAK,EAAE;;MCLvC,gBAAgB,GAAG,IAAI,cAAc,CAAoB,0BAA0B;SAEhF,qBAAqB,GAAA;AACnC,IAAA,OAAO,MAAM,CAAC,gBAAgB,CAAC;AACjC;SAEgB,6BAA6B,GAAA;IAC3C,OAAO,MAAM,CAAC,gBAAgB,EAAE,EAAE,QAAQ,EAAE,IAAI,EAAE,CAAC;AACrD;;ACsBA,MAAM,QAAQ,GAAG,CAAC,KAA0B,MAA0B,KAAK,GAAG,EAAE,GAAG,SAAS,CAAC;AAEvF,SAAU,WAAW,CAAC,OAA2B,EAAA;AACrD,IAAA,MAAM,UAAU,GAAG,QAAQ,EAAE;IAE7B,MAAM,WAAW,GAAG,QAAQ,CAAC,MAAM,OAAO,CAAC,OAAO,EAAE;oFAAC;AAErD,IAAA,MAAM,EAAE,GAAG,QAAQ,CAAC,MAAM,WAAW,EAAE,CAAC,EAAE,IAAI,UAAU;2EAAC;AACzD,IAAA,MAAM,GAAG,GAAG,QAAQ,CAAsB,MAAK;AAC7C,QAAA,MAAM,MAAM,GAAG,EAAE,EAAE;QACnB,OAAO;YACL,MAAM,EAAE,CAAA,SAAA,EAAY,MAAM,CAAA,OAAA,CAAS;YACnC,SAAS,EAAE,CAAA,SAAA,EAAY,MAAM,CAAA,WAAA,CAAa;YAC1C,UAAU,EAAE,CAAA,SAAA,EAAY,MAAM,CAAA,YAAA,CAAc;SAC7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YAAA,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;AAC9B,YAAA,QAAQ,EAAE,MAAM,CAAC,SAAS,CAAC;AAC3B,YAAA,UAAU,EAAE,MAAM,CAAC,UAAU,CAAC;AAC9B,YAAA,KAAK,EAAE,MAAM,OAAO,CAAC,iBAAiB,EAAE;AACzC,SAAA,CAAC;IACJ;uGAfW,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,QAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,qBAAqB;AAC/B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,mBAAmB;AAC9B,iBAAA;;;ACjBD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-fieldset.mjs","sources":["../../src/components/fieldset/anatomy.ts","../../src/components/fieldset/use-context.ts","../../src/components/fieldset/use.ts","../../src/components/fieldset/root.ts","../../src/components/fieldset/root-provider.ts","../../src/components/fieldset/legend.ts","../../src/components/fieldset/helper-text.ts","../../src/components/fieldset/error-text.ts","../../src/components/fieldset/wirekyt-angular-fieldset.ts"],"sourcesContent":["import { createAnatomy } from \"@wirekyt/dom/anatomy\";\n\nexport const fieldsetAnatomy = createAnatomy(\"fieldset\").parts(\n \"root\",\n \"errorText\",\n \"helperText\",\n \"legend\",\n);\n\nexport const fieldsetParts = fieldsetAnatomy.build();\n","import { InjectionToken, inject } from \"@angular/core\";\n\nimport type { UseFieldsetReturn } from \"./use\";\n\nexport const FIELDSET_CONTEXT = new InjectionToken<UseFieldsetReturn>(\"WIREKYT.FIELDSET_CONTEXT\");\n\nexport function injectFieldsetContext(): UseFieldsetReturn {\n return inject(FIELDSET_CONTEXT);\n}\n\nexport function injectFieldsetContextOptional(): UseFieldsetReturn | null {\n return inject(FIELDSET_CONTEXT, { optional: true });\n}\n","import { type Signal, computed, signal } from \"@angular/core\";\nimport { createId } from \"@wirekyt/angular\";\n\nimport type { FieldsetResolvedIds } from \"./types\";\n\nimport { fieldsetParts } from \"./anatomy\";\n\nexport interface UseFieldsetProps {\n id?: string;\n disabled?: boolean;\n invalid?: boolean;\n}\n\nexport interface UseFieldsetReturn {\n ids: FieldsetResolvedIds;\n disabled: Signal<boolean>;\n invalid: Signal<boolean>;\n hasErrorText: Signal<boolean>;\n hasHelperText: Signal<boolean>;\n ariaDescribedby: Signal<string | undefined>;\n setHasErrorText(value: boolean): void;\n setHasHelperText(value: boolean): void;\n registerErrorText(): () => void;\n registerHelperText(): () => void;\n getRootProps(): Record<string, unknown>;\n getLegendProps(): Record<string, unknown>;\n getHelperTextProps(): Record<string, unknown>;\n getErrorTextProps(): Record<string, unknown>;\n}\n\nexport interface UseFieldsetOptions {\n context: () => UseFieldsetProps;\n}\n\nconst dataAttr = (value: boolean | undefined): string | undefined => (value ? \"\" : undefined);\n\nexport function useFieldset(options: UseFieldsetOptions): UseFieldsetReturn {\n const fallbackId = createId();\n\n const propsSignal = computed(() => options.context());\n\n const id = computed(() => propsSignal().id ?? fallbackId);\n const ids = computed<FieldsetResolvedIds>(() => {\n const baseId = id();\n return {\n legend: `fieldset:${baseId}:legend`,\n errorText: `fieldset:${baseId}:error-text`,\n helperText: `fieldset:${baseId}:helper-text`,\n };\n });\n\n const disabled = computed(() => Boolean(propsSignal().disabled));\n const invalid = computed(() => Boolean(propsSignal().invalid));\n\n const errorTextCount = signal(0);\n const helperTextCount = signal(0);\n const explicitHasErrorText = signal(false);\n const explicitHasHelperText = signal(false);\n const hasErrorTextSignal = computed(() => explicitHasErrorText() || errorTextCount() > 0);\n const hasHelperTextSignal = computed(() => explicitHasHelperText() || helperTextCount() > 0);\n\n const ariaDescribedby = computed<string | undefined>(() => {\n const list: string[] = [];\n if (hasErrorTextSignal() && invalid()) list.push(ids().errorText);\n if (hasHelperTextSignal()) list.push(ids().helperText);\n return list.length > 0 ? list.join(\" \") : undefined;\n });\n\n const getRootProps = (): Record<string, unknown> => ({\n ...fieldsetParts.root.attrs,\n disabled: disabled() || undefined,\n \"data-disabled\": dataAttr(disabled()),\n \"data-invalid\": dataAttr(invalid()),\n \"aria-labelledby\": ids().legend,\n \"aria-describedby\": ariaDescribedby(),\n });\n\n const getLegendProps = (): Record<string, unknown> => ({\n ...fieldsetParts.legend.attrs,\n id: ids().legend,\n \"data-disabled\": dataAttr(disabled()),\n \"data-invalid\": dataAttr(invalid()),\n });\n\n const getHelperTextProps = (): Record<string, unknown> => ({\n ...fieldsetParts.helperText.attrs,\n id: ids().helperText,\n });\n\n const getErrorTextProps = (): Record<string, unknown> => ({\n ...fieldsetParts.errorText.attrs,\n id: ids().errorText,\n \"aria-live\": \"polite\",\n hidden: !invalid() || undefined,\n });\n\n return {\n get ids(): FieldsetResolvedIds {\n return ids();\n },\n disabled,\n invalid,\n hasErrorText: hasErrorTextSignal,\n hasHelperText: hasHelperTextSignal,\n ariaDescribedby,\n setHasErrorText: (value: boolean) => explicitHasErrorText.set(value),\n setHasHelperText: (value: boolean) => explicitHasHelperText.set(value),\n registerErrorText: () => {\n errorTextCount.update((count) => count + 1);\n return () => errorTextCount.update((count) => Math.max(0, count - 1));\n },\n registerHelperText: () => {\n helperTextCount.update((count) => count + 1);\n return () => helperTextCount.update((count) => Math.max(0, count - 1));\n },\n getRootProps,\n getLegendProps,\n getHelperTextProps,\n getErrorTextProps,\n };\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n booleanAttribute,\n forwardRef,\n inject,\n input,\n type InputSignal,\n type InputSignalWithTransform,\n type Signal,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport type { FieldsetResolvedIds } from \"./types\";\n\nimport { type UseFieldsetReturn, useFieldset } from \"./use\";\nimport { FIELDSET_CONTEXT } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldset-root]\",\n standalone: true,\n exportAs: \"fieldsetRoot\",\n providers: [{ provide: FIELDSET_CONTEXT, useExisting: forwardRef(() => FieldsetRoot) }],\n})\nexport class FieldsetRoot implements UseFieldsetReturn {\n readonly id: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly disabled: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly invalid: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n\n private readonly fieldset: UseFieldsetReturn = useFieldset({\n context: () => ({\n id: this.id(),\n disabled: this.disabled(),\n invalid: this.invalid(),\n }),\n });\n\n get ids(): FieldsetResolvedIds {\n return this.fieldset.ids;\n }\n\n get hasErrorText(): Signal<boolean> {\n return this.fieldset.hasErrorText;\n }\n\n get hasHelperText(): Signal<boolean> {\n return this.fieldset.hasHelperText;\n }\n\n get ariaDescribedby(): Signal<string | undefined> {\n return this.fieldset.ariaDescribedby;\n }\n\n setHasErrorText(value: boolean): void {\n this.fieldset.setHasErrorText(value);\n }\n\n setHasHelperText(value: boolean): void {\n this.fieldset.setHasHelperText(value);\n }\n\n registerErrorText(): () => void {\n return this.fieldset.registerErrorText();\n }\n\n registerHelperText(): () => void {\n return this.fieldset.registerHelperText();\n }\n\n getRootProps(): Record<string, unknown> {\n return this.fieldset.getRootProps();\n }\n getLegendProps(): Record<string, unknown> {\n return this.fieldset.getLegendProps();\n }\n getHelperTextProps(): Record<string, unknown> {\n return this.fieldset.getHelperTextProps();\n }\n getErrorTextProps(): Record<string, unknown> {\n return this.fieldset.getErrorTextProps();\n }\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.fieldset.getRootProps(),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n computed,\n forwardRef,\n inject,\n input,\n type InputSignal,\n type Signal,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport type { FieldsetResolvedIds } from \"./types\";\nimport type { UseFieldsetReturn } from \"./use\";\n\nimport { FIELDSET_CONTEXT } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldset-root-provider]\",\n standalone: true,\n exportAs: \"fieldsetRootProvider\",\n providers: [{ provide: FIELDSET_CONTEXT, useExisting: forwardRef(() => FieldsetRootProvider) }],\n})\nexport class FieldsetRootProvider implements UseFieldsetReturn {\n readonly value: InputSignal<UseFieldsetReturn> = input.required<UseFieldsetReturn>();\n\n readonly disabled: Signal<boolean> = computed(() => this.value().disabled());\n readonly invalid: Signal<boolean> = computed(() => this.value().invalid());\n readonly hasErrorText: Signal<boolean> = computed(() => this.value().hasErrorText());\n readonly hasHelperText: Signal<boolean> = computed(() => this.value().hasHelperText());\n readonly ariaDescribedby: Signal<string | undefined> = computed(() =>\n this.value().ariaDescribedby(),\n );\n\n get ids(): FieldsetResolvedIds {\n return this.value().ids;\n }\n\n setHasErrorText(value: boolean): void {\n this.value().setHasErrorText(value);\n }\n\n setHasHelperText(value: boolean): void {\n this.value().setHasHelperText(value);\n }\n\n registerErrorText(): () => void {\n return this.value().registerErrorText();\n }\n\n registerHelperText(): () => void {\n return this.value().registerHelperText();\n }\n\n getRootProps(): Record<string, unknown> {\n return this.value().getRootProps();\n }\n getLegendProps(): Record<string, unknown> {\n return this.value().getLegendProps();\n }\n getHelperTextProps(): Record<string, unknown> {\n return this.value().getHelperTextProps();\n }\n getErrorTextProps(): Record<string, unknown> {\n return this.value().getErrorTextProps();\n }\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.value().getRootProps(),\n });\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldsetContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldset-legend]\",\n standalone: true,\n exportAs: \"fieldsetLegend\",\n})\nexport class FieldsetLegend {\n constructor() {\n const context = injectFieldsetContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getLegendProps(),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n effect,\n inject,\n untracked,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldsetContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldset-helper-text]\",\n standalone: true,\n exportAs: \"fieldsetHelperText\",\n})\nexport class FieldsetHelperText {\n constructor() {\n const context = injectFieldsetContext();\n\n effect((onCleanup) => {\n const unregister = untracked(() => context.registerHelperText());\n onCleanup(unregister);\n });\n\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getHelperTextProps(),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n effect,\n inject,\n untracked,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectFieldsetContext } from \"./use-context\";\n\n@Directive({\n selector: \"[fieldset-error-text]\",\n standalone: true,\n exportAs: \"fieldsetErrorText\",\n})\nexport class FieldsetErrorText {\n constructor() {\n const context = injectFieldsetContext();\n\n effect((onCleanup) => {\n const unregister = untracked(() => context.registerErrorText());\n onCleanup(unregister);\n });\n\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.getErrorTextProps(),\n });\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;AAEO,MAAM,eAAe,GAAG,aAAa,CAAC,UAAU,CAAC,CAAC,KAAK,CAC5D,MAA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eAAA,CAAA,SAAA,EAAA,CAAA;2FAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,uBAAA,EAAA,QAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,CAAA;;2FAAjB,iBAAiB,EAAA,UAAA,EAAA,CAAA;kBAL7B,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,uBAAuB;AACjC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,mBAAmB;AAC9B,iBAAA;;;ACjBD;;AAEG;;;;"}
|
package/dist/package.json
CHANGED
|
@@ -1,8 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wirekyt/angular",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.18",
|
|
4
4
|
"description": "Angular adapter for Wirekyt",
|
|
5
|
-
"readme": "README.md",
|
|
6
5
|
"files": [
|
|
7
6
|
"dist",
|
|
8
7
|
"README.md"
|
|
@@ -76,6 +75,10 @@
|
|
|
76
75
|
"types": "./types/wirekyt-angular-download-trigger.d.ts",
|
|
77
76
|
"default": "./fesm2022/wirekyt-angular-download-trigger.mjs"
|
|
78
77
|
},
|
|
78
|
+
"./drawer": {
|
|
79
|
+
"types": "./types/wirekyt-angular-drawer.d.ts",
|
|
80
|
+
"default": "./fesm2022/wirekyt-angular-drawer.mjs"
|
|
81
|
+
},
|
|
79
82
|
"./field": {
|
|
80
83
|
"types": "./types/wirekyt-angular-field.d.ts",
|
|
81
84
|
"default": "./fesm2022/wirekyt-angular-field.mjs"
|
|
@@ -107,5 +110,6 @@
|
|
|
107
110
|
"@angular/core": ">=22.0.0",
|
|
108
111
|
"@angular/forms": ">=22.0.0"
|
|
109
112
|
},
|
|
113
|
+
"readme": "README.md",
|
|
110
114
|
"typings": "types/wirekyt-angular.d.ts"
|
|
111
115
|
}
|
|
@@ -54,7 +54,7 @@ declare class AccordionRoot implements UseAccordionReturn {
|
|
|
54
54
|
readonly send: accordion.Service["send"];
|
|
55
55
|
constructor();
|
|
56
56
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionRoot, never>;
|
|
57
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionRoot, "[
|
|
57
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionRoot, "[accordion-root]", ["accordionRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "multiple": { "alias": "multiple"; "required": false; "isSignal": true; }; "collapsible": { "alias": "collapsible"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "lazyMount": { "alias": "lazyMount"; "required": false; "isSignal": true; }; "unmountOnExit": { "alias": "unmountOnExit"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "focusChange": "focusChange"; }, never, never, true, never>;
|
|
58
58
|
}
|
|
59
59
|
|
|
60
60
|
declare class AccordionRootProvider implements UseAccordionReturn {
|
|
@@ -67,7 +67,7 @@ declare class AccordionRootProvider implements UseAccordionReturn {
|
|
|
67
67
|
get service(): accordion.Service;
|
|
68
68
|
constructor();
|
|
69
69
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionRootProvider, never>;
|
|
70
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionRootProvider, "[
|
|
70
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionRootProvider, "[accordion-root-provider]", ["accordionRootProvider"], { "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>;
|
|
71
71
|
}
|
|
72
72
|
|
|
73
73
|
declare class AccordionItem {
|
|
@@ -82,13 +82,13 @@ declare class AccordionItem {
|
|
|
82
82
|
getItemContext(): AccordionItemContext;
|
|
83
83
|
private readValue;
|
|
84
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItem, never>;
|
|
85
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionItem, "[
|
|
85
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionItem, "[accordion-item]", ["accordionItem"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
86
86
|
}
|
|
87
87
|
|
|
88
88
|
declare class AccordionItemTrigger {
|
|
89
89
|
constructor();
|
|
90
90
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemTrigger, never>;
|
|
91
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionItemTrigger, "[
|
|
91
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionItemTrigger, "[accordion-item-trigger]", ["accordionItemTrigger"], {}, {}, never, never, true, never>;
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
declare class AccordionItemContent {
|
|
@@ -101,13 +101,13 @@ declare class AccordionItemContent {
|
|
|
101
101
|
private view;
|
|
102
102
|
constructor();
|
|
103
103
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemContent, never>;
|
|
104
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionItemContent, "[
|
|
104
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionItemContent, "[accordion-item-content]", ["accordionItemContent"], {}, {}, never, never, true, never>;
|
|
105
105
|
}
|
|
106
106
|
|
|
107
107
|
declare class AccordionItemIndicator {
|
|
108
108
|
constructor();
|
|
109
109
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemIndicator, never>;
|
|
110
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionItemIndicator, "[
|
|
110
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionItemIndicator, "[accordion-item-indicator]", ["accordionItemIndicator"], {}, {}, never, never, true, never>;
|
|
111
111
|
}
|
|
112
112
|
|
|
113
113
|
interface AccordionContextTemplate {
|
|
@@ -121,7 +121,7 @@ declare class AccordionContext {
|
|
|
121
121
|
private readonly viewContainer;
|
|
122
122
|
constructor();
|
|
123
123
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionContext, never>;
|
|
124
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionContext, "[
|
|
124
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionContext, "[accordion-context]", ["accordionContext"], {}, {}, never, never, true, never>;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
interface AccordionItemContextTemplate {
|
|
@@ -135,7 +135,7 @@ declare class AccordionItemContextDirective {
|
|
|
135
135
|
private readonly viewContainer;
|
|
136
136
|
constructor();
|
|
137
137
|
static ɵfac: i0.ɵɵFactoryDeclaration<AccordionItemContextDirective, never>;
|
|
138
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionItemContextDirective, "[
|
|
138
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AccordionItemContextDirective, "[accordion-item-context]", ["accordionItemContext"], {}, {}, never, never, true, never>;
|
|
139
139
|
}
|
|
140
140
|
|
|
141
141
|
export { ACCORDION_CONTEXT, ACCORDION_ITEM_CONTEXT, AccordionContext, AccordionItem, AccordionItemContent, AccordionItemContextDirective, AccordionItemIndicator, AccordionItemTrigger, AccordionRoot, AccordionRootProvider, injectAccordionContext, injectAccordionItemContext, useAccordion };
|
|
@@ -51,7 +51,7 @@ declare class AngleSliderRoot implements ControlValueAccessor, UseAngleSliderRet
|
|
|
51
51
|
registerOnTouched(fn: () => void): void;
|
|
52
52
|
setDisabledState(disabled: boolean): void;
|
|
53
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngleSliderRoot, never>;
|
|
54
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderRoot, "[
|
|
54
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderRoot, "[angle-slider-root]", ["angleSliderRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChangeEnd": "valueChangeEnd"; }, never, never, true, never>;
|
|
55
55
|
}
|
|
56
56
|
|
|
57
57
|
declare class AngleSliderRootProvider implements UseAngleSliderReturn {
|
|
@@ -62,38 +62,38 @@ declare class AngleSliderRootProvider implements UseAngleSliderReturn {
|
|
|
62
62
|
get send(): angleSlider.Service["send"];
|
|
63
63
|
constructor();
|
|
64
64
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngleSliderRootProvider, never>;
|
|
65
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderRootProvider, "[
|
|
65
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderRootProvider, "[angle-slider-root-provider]", ["angleSliderRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
66
66
|
}
|
|
67
67
|
|
|
68
68
|
declare class AngleSliderLabel {
|
|
69
69
|
constructor();
|
|
70
70
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngleSliderLabel, never>;
|
|
71
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderLabel, "[
|
|
71
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderLabel, "[angle-slider-label]", ["angleSliderLabel"], {}, {}, never, never, true, never>;
|
|
72
72
|
}
|
|
73
73
|
|
|
74
74
|
declare class AngleSliderControl {
|
|
75
75
|
constructor();
|
|
76
76
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngleSliderControl, never>;
|
|
77
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderControl, "[
|
|
77
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderControl, "[angle-slider-control]", ["angleSliderControl"], {}, {}, never, never, true, never>;
|
|
78
78
|
}
|
|
79
79
|
|
|
80
80
|
declare class AngleSliderThumb {
|
|
81
81
|
constructor();
|
|
82
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngleSliderThumb, never>;
|
|
83
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderThumb, "[
|
|
83
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderThumb, "[angle-slider-thumb]", ["angleSliderThumb"], {}, {}, never, never, true, never>;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
declare class AngleSliderMarkerGroup {
|
|
87
87
|
constructor();
|
|
88
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngleSliderMarkerGroup, never>;
|
|
89
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderMarkerGroup, "[
|
|
89
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderMarkerGroup, "[angle-slider-marker-group]", ["angleSliderMarkerGroup"], {}, {}, never, never, true, never>;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
declare class AngleSliderMarker {
|
|
93
93
|
readonly value: InputSignalWithTransform<MarkerProps["value"], unknown>;
|
|
94
94
|
constructor();
|
|
95
95
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngleSliderMarker, never>;
|
|
96
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderMarker, "[
|
|
96
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderMarker, "[angle-slider-marker]", ["angleSliderMarker"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
97
97
|
}
|
|
98
98
|
|
|
99
99
|
declare class AngleSliderValueText {
|
|
@@ -102,13 +102,13 @@ declare class AngleSliderValueText {
|
|
|
102
102
|
readonly valueAsDegree: Signal<string>;
|
|
103
103
|
constructor();
|
|
104
104
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngleSliderValueText, never>;
|
|
105
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderValueText, "[
|
|
105
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderValueText, "[angle-slider-value-text]", ["angleSliderValueText"], {}, {}, never, never, true, never>;
|
|
106
106
|
}
|
|
107
107
|
|
|
108
108
|
declare class AngleSliderHiddenInput {
|
|
109
109
|
constructor();
|
|
110
110
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngleSliderHiddenInput, never>;
|
|
111
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderHiddenInput, "input[
|
|
111
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderHiddenInput, "input[angle-slider-hidden-input]", ["angleSliderHiddenInput"], {}, {}, never, never, true, never>;
|
|
112
112
|
}
|
|
113
113
|
|
|
114
114
|
interface AngleSliderContextTemplate {
|
|
@@ -122,7 +122,7 @@ declare class AngleSliderContext {
|
|
|
122
122
|
private readonly viewContainer;
|
|
123
123
|
constructor();
|
|
124
124
|
static ɵfac: i0.ɵɵFactoryDeclaration<AngleSliderContext, never>;
|
|
125
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderContext, "[
|
|
125
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AngleSliderContext, "[angle-slider-context]", ["angleSliderContext"], {}, {}, never, never, true, never>;
|
|
126
126
|
}
|
|
127
127
|
|
|
128
128
|
export { ANGLE_SLIDER_CONTEXT, AngleSliderContext, AngleSliderControl, AngleSliderHiddenInput, AngleSliderLabel, AngleSliderMarker, AngleSliderMarkerGroup, AngleSliderRoot, AngleSliderRootProvider, AngleSliderThumb, AngleSliderValueText, injectAngleSliderContext, useAngleSlider };
|
|
@@ -35,7 +35,7 @@ declare class AvatarRoot implements UseAvatarReturn {
|
|
|
35
35
|
private stabilizeIds;
|
|
36
36
|
constructor();
|
|
37
37
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarRoot, never>;
|
|
38
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AvatarRoot, "[
|
|
38
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AvatarRoot, "[avatar-root]", ["avatarRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; }, { "statusChange": "statusChange"; }, never, never, true, never>;
|
|
39
39
|
}
|
|
40
40
|
|
|
41
41
|
declare class AvatarRootProvider implements UseAvatarReturn {
|
|
@@ -47,19 +47,19 @@ declare class AvatarRootProvider implements UseAvatarReturn {
|
|
|
47
47
|
resolveValue(): UseAvatarReturn;
|
|
48
48
|
constructor();
|
|
49
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarRootProvider, never>;
|
|
50
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AvatarRootProvider, "[
|
|
50
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AvatarRootProvider, "[avatar-root-provider]", ["avatarRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
51
51
|
}
|
|
52
52
|
|
|
53
53
|
declare class AvatarImage {
|
|
54
54
|
constructor();
|
|
55
55
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarImage, never>;
|
|
56
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AvatarImage, "img[
|
|
56
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AvatarImage, "img[avatar-image]", ["avatarImage"], {}, {}, never, never, true, never>;
|
|
57
57
|
}
|
|
58
58
|
|
|
59
59
|
declare class AvatarFallback {
|
|
60
60
|
constructor();
|
|
61
61
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarFallback, never>;
|
|
62
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AvatarFallback, "[
|
|
62
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AvatarFallback, "[avatar-fallback]", ["avatarFallback"], {}, {}, never, never, true, never>;
|
|
63
63
|
}
|
|
64
64
|
|
|
65
65
|
interface AvatarContextTemplate {
|
|
@@ -73,7 +73,7 @@ declare class AvatarContext {
|
|
|
73
73
|
private readonly viewContainer;
|
|
74
74
|
constructor();
|
|
75
75
|
static ɵfac: i0.ɵɵFactoryDeclaration<AvatarContext, never>;
|
|
76
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<AvatarContext, "[
|
|
76
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AvatarContext, "[avatar-context]", ["avatarContext"], {}, {}, never, never, true, never>;
|
|
77
77
|
}
|
|
78
78
|
|
|
79
79
|
export { AVATAR_CONTEXT, AvatarContext, AvatarFallback, AvatarImage, AvatarRoot, AvatarRootProvider, injectAvatarContext, useAvatar };
|
|
@@ -55,7 +55,7 @@ declare class CarouselRoot implements UseCarouselReturn {
|
|
|
55
55
|
readonly send: carousel.Service["send"];
|
|
56
56
|
constructor();
|
|
57
57
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselRoot, never>;
|
|
58
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselRoot, "[
|
|
58
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselRoot, "[carousel-root]", ["carouselRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "ids": { "alias": "ids"; "required": false; "isSignal": true; }; "page": { "alias": "page"; "required": false; "isSignal": true; }; "defaultPage": { "alias": "defaultPage"; "required": false; "isSignal": true; }; "slideCount": { "alias": "slideCount"; "required": false; "isSignal": true; }; "slidesPerPage": { "alias": "slidesPerPage"; "required": false; "isSignal": true; }; "slidesPerMove": { "alias": "slidesPerMove"; "required": false; "isSignal": true; }; "autoSize": { "alias": "autoSize"; "required": false; "isSignal": true; }; "loop": { "alias": "loop"; "required": false; "isSignal": true; }; "allowMouseDrag": { "alias": "allowMouseDrag"; "required": false; "isSignal": true; }; "autoplay": { "alias": "autoplay"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "spacing": { "alias": "spacing"; "required": false; "isSignal": true; }; "padding": { "alias": "padding"; "required": false; "isSignal": true; }; "inViewThreshold": { "alias": "inViewThreshold"; "required": false; "isSignal": true; }; "snapType": { "alias": "snapType"; "required": false; "isSignal": true; }; "translations": { "alias": "translations"; "required": false; "isSignal": true; }; }, { "page": "pageChange"; "pageDetailsChange": "pageDetailsChange"; "dragStatusChange": "dragStatusChange"; "autoplayStatusChange": "autoplayStatusChange"; }, never, never, true, never>;
|
|
59
59
|
}
|
|
60
60
|
|
|
61
61
|
declare class CarouselRootProvider implements UseCarouselReturn {
|
|
@@ -66,13 +66,13 @@ declare class CarouselRootProvider implements UseCarouselReturn {
|
|
|
66
66
|
get service(): carousel.Service;
|
|
67
67
|
constructor();
|
|
68
68
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselRootProvider, never>;
|
|
69
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselRootProvider, "[
|
|
69
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselRootProvider, "[carousel-root-provider]", ["carouselRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
70
70
|
}
|
|
71
71
|
|
|
72
72
|
declare class CarouselItemGroup {
|
|
73
73
|
constructor();
|
|
74
74
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselItemGroup, never>;
|
|
75
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselItemGroup, "[
|
|
75
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselItemGroup, "[carousel-item-group]", ["carouselItemGroup"], {}, {}, never, never, true, never>;
|
|
76
76
|
}
|
|
77
77
|
|
|
78
78
|
declare class CarouselItem {
|
|
@@ -80,31 +80,31 @@ declare class CarouselItem {
|
|
|
80
80
|
readonly snapAlign: InputSignal<ItemProps["snapAlign"]>;
|
|
81
81
|
constructor();
|
|
82
82
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselItem, never>;
|
|
83
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselItem, "[
|
|
83
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselItem, "[carousel-item]", ["carouselItem"], { "index": { "alias": "index"; "required": true; "isSignal": true; }; "snapAlign": { "alias": "snapAlign"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
84
84
|
}
|
|
85
85
|
|
|
86
86
|
declare class CarouselControl {
|
|
87
87
|
constructor();
|
|
88
88
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselControl, never>;
|
|
89
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselControl, "[
|
|
89
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselControl, "[carousel-control]", ["carouselControl"], {}, {}, never, never, true, never>;
|
|
90
90
|
}
|
|
91
91
|
|
|
92
92
|
declare class CarouselPrevTrigger {
|
|
93
93
|
constructor();
|
|
94
94
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselPrevTrigger, never>;
|
|
95
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselPrevTrigger, "[
|
|
95
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselPrevTrigger, "[carousel-prev-trigger]", ["carouselPrevTrigger"], {}, {}, never, never, true, never>;
|
|
96
96
|
}
|
|
97
97
|
|
|
98
98
|
declare class CarouselNextTrigger {
|
|
99
99
|
constructor();
|
|
100
100
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselNextTrigger, never>;
|
|
101
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselNextTrigger, "[
|
|
101
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselNextTrigger, "[carousel-next-trigger]", ["carouselNextTrigger"], {}, {}, never, never, true, never>;
|
|
102
102
|
}
|
|
103
103
|
|
|
104
104
|
declare class CarouselIndicatorGroup {
|
|
105
105
|
constructor();
|
|
106
106
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselIndicatorGroup, never>;
|
|
107
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselIndicatorGroup, "[
|
|
107
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselIndicatorGroup, "[carousel-indicator-group]", ["carouselIndicatorGroup"], {}, {}, never, never, true, never>;
|
|
108
108
|
}
|
|
109
109
|
|
|
110
110
|
declare class CarouselIndicator {
|
|
@@ -112,13 +112,13 @@ declare class CarouselIndicator {
|
|
|
112
112
|
readonly readOnly: InputSignalWithTransform<boolean, unknown>;
|
|
113
113
|
constructor();
|
|
114
114
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselIndicator, never>;
|
|
115
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselIndicator, "[
|
|
115
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselIndicator, "[carousel-indicator]", ["carouselIndicator"], { "index": { "alias": "index"; "required": true; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
116
116
|
}
|
|
117
117
|
|
|
118
118
|
declare class CarouselAutoplayTrigger {
|
|
119
119
|
constructor();
|
|
120
120
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselAutoplayTrigger, never>;
|
|
121
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselAutoplayTrigger, "[
|
|
121
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselAutoplayTrigger, "[carousel-autoplay-trigger]", ["carouselAutoplayTrigger"], {}, {}, never, never, true, never>;
|
|
122
122
|
}
|
|
123
123
|
|
|
124
124
|
declare class CarouselAutoplayIndicator implements AfterContentInit {
|
|
@@ -130,7 +130,7 @@ declare class CarouselAutoplayIndicator implements AfterContentInit {
|
|
|
130
130
|
constructor();
|
|
131
131
|
ngAfterContentInit(): void;
|
|
132
132
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselAutoplayIndicator, never>;
|
|
133
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselAutoplayIndicator, "[
|
|
133
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselAutoplayIndicator, "[carousel-autoplay-indicator]", ["carouselAutoplayIndicator"], { "label": { "alias": "label"; "required": false; "isSignal": true; }; "fallback": { "alias": "fallback"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
134
134
|
}
|
|
135
135
|
|
|
136
136
|
declare class CarouselProgressText implements AfterContentInit {
|
|
@@ -140,7 +140,7 @@ declare class CarouselProgressText implements AfterContentInit {
|
|
|
140
140
|
constructor();
|
|
141
141
|
ngAfterContentInit(): void;
|
|
142
142
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselProgressText, never>;
|
|
143
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselProgressText, "[
|
|
143
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselProgressText, "[carousel-progress-text]", ["carouselProgressText"], {}, {}, never, never, true, never>;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
interface CarouselContextTemplate {
|
|
@@ -154,7 +154,7 @@ declare class CarouselContext {
|
|
|
154
154
|
private readonly viewContainer;
|
|
155
155
|
constructor();
|
|
156
156
|
static ɵfac: i0.ɵɵFactoryDeclaration<CarouselContext, never>;
|
|
157
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselContext, "[
|
|
157
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CarouselContext, "[carousel-context]", ["carouselContext"], {}, {}, never, never, true, never>;
|
|
158
158
|
}
|
|
159
159
|
|
|
160
160
|
export { CAROUSEL_CONTEXT, CarouselAutoplayIndicator, CarouselAutoplayTrigger, CarouselContext, CarouselControl, CarouselIndicator, CarouselIndicatorGroup, CarouselItem, CarouselItemGroup, CarouselNextTrigger, CarouselPrevTrigger, CarouselProgressText, CarouselRoot, CarouselRootProvider, carouselAnatomy, injectCarouselContext, useCarousel };
|
|
@@ -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;
|
|
@@ -33,13 +33,13 @@ declare class CheckboxContext {
|
|
|
33
33
|
private readonly viewContainer;
|
|
34
34
|
constructor();
|
|
35
35
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxContext, never>;
|
|
36
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxContext, "[
|
|
36
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxContext, "[checkbox-context]", ["checkboxContext"], {}, {}, never, never, true, never>;
|
|
37
37
|
}
|
|
38
38
|
|
|
39
39
|
declare class CheckboxControl {
|
|
40
40
|
constructor();
|
|
41
41
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxControl, never>;
|
|
42
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxControl, "[
|
|
42
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxControl, "[checkbox-control]", ["checkboxControl"], {}, {}, never, never, true, never>;
|
|
43
43
|
}
|
|
44
44
|
|
|
45
45
|
interface UseCheckboxGroupProps {
|
|
@@ -103,7 +103,7 @@ declare class CheckboxGroup implements UseCheckboxGroupReturn {
|
|
|
103
103
|
getItemProps(props: Parameters<UseCheckboxGroupReturn["getItemProps"]>[0]): ReturnType<UseCheckboxGroupReturn["getItemProps"]>;
|
|
104
104
|
constructor();
|
|
105
105
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxGroup, never>;
|
|
106
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxGroup, "[
|
|
106
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxGroup, "[checkbox-group]", ["checkboxGroup"], { "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "valueModel": { "alias": "value"; "required": false; "isSignal": true; }; "nameInput": { "alias": "name"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "readOnlyInput": { "alias": "readOnly"; "required": false; "isSignal": true; }; "invalidInput": { "alias": "invalid"; "required": false; "isSignal": true; }; "maxSelectedValues": { "alias": "maxSelectedValues"; "required": false; "isSignal": true; }; }, { "valueModel": "valueChange"; }, never, never, true, never>;
|
|
107
107
|
}
|
|
108
108
|
|
|
109
109
|
declare class CheckboxGroupProvider implements UseCheckboxGroupReturn {
|
|
@@ -121,26 +121,26 @@ declare class CheckboxGroupProvider implements UseCheckboxGroupReturn {
|
|
|
121
121
|
getItemProps(props: Parameters<UseCheckboxGroupReturn["getItemProps"]>[0]): ReturnType<UseCheckboxGroupReturn["getItemProps"]>;
|
|
122
122
|
constructor();
|
|
123
123
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxGroupProvider, never>;
|
|
124
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxGroupProvider, "[
|
|
124
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxGroupProvider, "[checkbox-group-provider]", ["checkboxGroupProvider"], { "groupValue": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
declare class CheckboxHiddenInput {
|
|
128
128
|
constructor();
|
|
129
129
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxHiddenInput, never>;
|
|
130
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxHiddenInput, "[
|
|
130
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxHiddenInput, "[checkbox-hidden-input]", ["checkboxHiddenInput"], {}, {}, never, never, true, never>;
|
|
131
131
|
}
|
|
132
132
|
|
|
133
133
|
declare class CheckboxIndicator {
|
|
134
134
|
readonly indeterminate: InputSignalWithTransform<boolean, unknown>;
|
|
135
135
|
constructor();
|
|
136
136
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxIndicator, never>;
|
|
137
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxIndicator, "[
|
|
137
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxIndicator, "[checkbox-indicator]", ["checkboxIndicator"], { "indeterminate": { "alias": "indeterminate"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
138
138
|
}
|
|
139
139
|
|
|
140
140
|
declare class CheckboxLabel {
|
|
141
141
|
constructor();
|
|
142
142
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxLabel, never>;
|
|
143
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxLabel, "[
|
|
143
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxLabel, "[checkbox-label]", ["checkboxLabel"], {}, {}, never, never, true, never>;
|
|
144
144
|
}
|
|
145
145
|
|
|
146
146
|
declare class CheckboxRoot implements ControlValueAccessor, UseCheckboxReturn {
|
|
@@ -174,7 +174,7 @@ declare class CheckboxRoot implements ControlValueAccessor, UseCheckboxReturn {
|
|
|
174
174
|
registerOnTouched(fn: () => void): void;
|
|
175
175
|
setDisabledState(disabled: boolean): void;
|
|
176
176
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxRoot, never>;
|
|
177
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxRoot, "[
|
|
177
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxRoot, "[checkbox-root]", ["checkboxRoot"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; "elementIds": { "alias": "ids"; "required": false; "isSignal": true; }; "checked": { "alias": "checked"; "required": false; "isSignal": true; }; "defaultChecked": { "alias": "defaultChecked"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "readOnly": { "alias": "readOnly"; "required": false; "isSignal": true; }; "name": { "alias": "name"; "required": false; "isSignal": true; }; "form": { "alias": "form"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "checked": "checkedChange"; "checkedDetailsChange": "checkedDetailsChange"; }, never, never, true, never>;
|
|
178
178
|
}
|
|
179
179
|
|
|
180
180
|
declare class CheckboxRootProvider implements UseCheckboxReturn {
|
|
@@ -185,7 +185,7 @@ declare class CheckboxRootProvider implements UseCheckboxReturn {
|
|
|
185
185
|
get send(): checkbox.Service["send"];
|
|
186
186
|
constructor();
|
|
187
187
|
static ɵfac: i0.ɵɵFactoryDeclaration<CheckboxRootProvider, never>;
|
|
188
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxRootProvider, "[
|
|
188
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<CheckboxRootProvider, "[checkbox-root-provider]", ["checkboxRootProvider"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
189
189
|
}
|
|
190
190
|
|
|
191
191
|
declare const CHECKBOX_CONTEXT: InjectionToken<UseCheckboxReturn>;
|