@wirekyt/angular 0.0.31 → 0.0.33
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 -1
- package/dist/fesm2022/wirekyt-angular-field.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-image-cropper.mjs +336 -0
- package/dist/fesm2022/wirekyt-angular-image-cropper.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-json-tree-view.mjs +768 -0
- package/dist/fesm2022/wirekyt-angular-json-tree-view.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-menu.mjs +1041 -0
- package/dist/fesm2022/wirekyt-angular-menu.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-select.mjs +0 -38
- package/dist/fesm2022/wirekyt-angular-select.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-tooltip.mjs +0 -1
- package/dist/fesm2022/wirekyt-angular-tooltip.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-tree-view.mjs +858 -0
- package/dist/fesm2022/wirekyt-angular-tree-view.mjs.map +1 -0
- package/dist/package.json +17 -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-image-cropper.d.ts +122 -0
- package/dist/types/wirekyt-angular-image-cropper.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-json-tree-view.d.ts +173 -0
- package/dist/types/wirekyt-angular-json-tree-view.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-menu.d.ts +340 -0
- package/dist/types/wirekyt-angular-menu.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-select.d.ts +0 -38
- package/dist/types/wirekyt-angular-select.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-tooltip.d.ts +0 -1
- package/dist/types/wirekyt-angular-tooltip.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-tree-view.d.ts +278 -0
- package/dist/types/wirekyt-angular-tree-view.d.ts.map +1 -0
- package/package.json +18 -2
|
@@ -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.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 { injectFieldContextOptional } 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 = injectFieldContextOptional();\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 { injectFieldContextOptional } 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 = injectFieldContextOptional();\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 { injectFieldContextOptional } 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 = injectFieldContextOptional();\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 { injectFieldContextOptional } 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 = injectFieldContextOptional();\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,IAAI,EAAE,QAAQ,EAAE,IAA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,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 { injectFieldContextOptional } 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 = injectFieldContextOptional();\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 { injectFieldContextOptional } 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 = injectFieldContextOptional();\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 { injectFieldContextOptional } 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 = injectFieldContextOptional();\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 { injectFieldContextOptional } 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 = injectFieldContextOptional();\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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BAAA,QAAQ,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;;;;"}
|
|
@@ -0,0 +1,336 @@
|
|
|
1
|
+
import * as imageCropper from '@wirekyt/dom/machines/image-cropper';
|
|
2
|
+
export { anatomy as imageCropperAnatomy, handles as imageCropperHandles } from '@wirekyt/dom/machines/image-cropper';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { InjectionToken, inject, input, model, booleanAttribute, output, DestroyRef, Renderer2, ElementRef, forwardRef, Directive, computed, TemplateRef, ViewContainerRef, effect } from '@angular/core';
|
|
5
|
+
import { injectLocale, injectEnvironment, createId, useMachine, bindProps } from '@wirekyt/angular';
|
|
6
|
+
|
|
7
|
+
const IMAGE_CROPPER_CONTEXT = new InjectionToken("WIREKIT.IMAGE_CROPPER_CONTEXT");
|
|
8
|
+
function injectImageCropperContext() {
|
|
9
|
+
return inject(IMAGE_CROPPER_CONTEXT);
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
function useImageCropper(options) {
|
|
13
|
+
const locale = injectLocale();
|
|
14
|
+
const environment = injectEnvironment();
|
|
15
|
+
const fallbackId = createId();
|
|
16
|
+
return useMachine({
|
|
17
|
+
machine: imageCropper.machine,
|
|
18
|
+
context: () => {
|
|
19
|
+
const props = options.context();
|
|
20
|
+
return {
|
|
21
|
+
...props,
|
|
22
|
+
dir: locale.dir,
|
|
23
|
+
getRootNode: environment.getRootNode,
|
|
24
|
+
id: props.id ?? fallbackId,
|
|
25
|
+
};
|
|
26
|
+
},
|
|
27
|
+
connect: (service, normalize) => imageCropper.connect(service, normalize),
|
|
28
|
+
});
|
|
29
|
+
}
|
|
30
|
+
|
|
31
|
+
class ImageCropperRoot {
|
|
32
|
+
id = input(undefined, /* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
34
|
+
ids = input(undefined, /* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [{ debugName: "ids" }] : /* istanbul ignore next */ []));
|
|
36
|
+
translations = input(undefined, /* @ts-ignore */
|
|
37
|
+
...(ngDevMode ? [{ debugName: "translations" }] : /* istanbul ignore next */ []));
|
|
38
|
+
initialCrop = input(undefined, /* @ts-ignore */
|
|
39
|
+
...(ngDevMode ? [{ debugName: "initialCrop" }] : /* istanbul ignore next */ []));
|
|
40
|
+
minWidth = input(undefined, /* @ts-ignore */
|
|
41
|
+
...(ngDevMode ? [{ debugName: "minWidth" }] : /* istanbul ignore next */ []));
|
|
42
|
+
minHeight = input(undefined, /* @ts-ignore */
|
|
43
|
+
...(ngDevMode ? [{ debugName: "minHeight" }] : /* istanbul ignore next */ []));
|
|
44
|
+
maxWidth = input(undefined, /* @ts-ignore */
|
|
45
|
+
...(ngDevMode ? [{ debugName: "maxWidth" }] : /* istanbul ignore next */ []));
|
|
46
|
+
maxHeight = input(undefined, /* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [{ debugName: "maxHeight" }] : /* istanbul ignore next */ []));
|
|
48
|
+
aspectRatio = input(undefined, /* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [{ debugName: "aspectRatio" }] : /* istanbul ignore next */ []));
|
|
50
|
+
cropShape = input(undefined, /* @ts-ignore */
|
|
51
|
+
...(ngDevMode ? [{ debugName: "cropShape" }] : /* istanbul ignore next */ []));
|
|
52
|
+
zoom = model(undefined, /* @ts-ignore */
|
|
53
|
+
...(ngDevMode ? [{ debugName: "zoom" }] : /* istanbul ignore next */ []));
|
|
54
|
+
rotation = model(undefined, /* @ts-ignore */
|
|
55
|
+
...(ngDevMode ? [{ debugName: "rotation" }] : /* istanbul ignore next */ []));
|
|
56
|
+
flip = model(undefined, /* @ts-ignore */
|
|
57
|
+
...(ngDevMode ? [{ debugName: "flip" }] : /* istanbul ignore next */ []));
|
|
58
|
+
defaultZoom = input(undefined, /* @ts-ignore */
|
|
59
|
+
...(ngDevMode ? [{ debugName: "defaultZoom" }] : /* istanbul ignore next */ []));
|
|
60
|
+
defaultRotation = input(undefined, /* @ts-ignore */
|
|
61
|
+
...(ngDevMode ? [{ debugName: "defaultRotation" }] : /* istanbul ignore next */ []));
|
|
62
|
+
defaultFlip = input(undefined, /* @ts-ignore */
|
|
63
|
+
...(ngDevMode ? [{ debugName: "defaultFlip" }] : /* istanbul ignore next */ []));
|
|
64
|
+
zoomStep = input(undefined, /* @ts-ignore */
|
|
65
|
+
...(ngDevMode ? [{ debugName: "zoomStep" }] : /* istanbul ignore next */ []));
|
|
66
|
+
zoomSensitivity = input(undefined, /* @ts-ignore */
|
|
67
|
+
...(ngDevMode ? [{ debugName: "zoomSensitivity" }] : /* istanbul ignore next */ []));
|
|
68
|
+
minZoom = input(undefined, /* @ts-ignore */
|
|
69
|
+
...(ngDevMode ? [{ debugName: "minZoom" }] : /* istanbul ignore next */ []));
|
|
70
|
+
maxZoom = input(undefined, /* @ts-ignore */
|
|
71
|
+
...(ngDevMode ? [{ debugName: "maxZoom" }] : /* istanbul ignore next */ []));
|
|
72
|
+
nudgeStep = input(undefined, /* @ts-ignore */
|
|
73
|
+
...(ngDevMode ? [{ debugName: "nudgeStep" }] : /* istanbul ignore next */ []));
|
|
74
|
+
nudgeStepShift = input(undefined, /* @ts-ignore */
|
|
75
|
+
...(ngDevMode ? [{ debugName: "nudgeStepShift" }] : /* istanbul ignore next */ []));
|
|
76
|
+
nudgeStepCtrl = input(undefined, /* @ts-ignore */
|
|
77
|
+
...(ngDevMode ? [{ debugName: "nudgeStepCtrl" }] : /* istanbul ignore next */ []));
|
|
78
|
+
fixedCropArea = input(false, { ...(ngDevMode ? { debugName: "fixedCropArea" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
79
|
+
cropChange = output();
|
|
80
|
+
zoomDetailsChange = output();
|
|
81
|
+
rotationDetailsChange = output();
|
|
82
|
+
flipDetailsChange = output();
|
|
83
|
+
machine = useImageCropper({
|
|
84
|
+
context: () => ({
|
|
85
|
+
id: this.id(),
|
|
86
|
+
ids: this.ids(),
|
|
87
|
+
translations: this.translations(),
|
|
88
|
+
initialCrop: this.initialCrop(),
|
|
89
|
+
minWidth: this.minWidth(),
|
|
90
|
+
minHeight: this.minHeight(),
|
|
91
|
+
maxWidth: this.maxWidth(),
|
|
92
|
+
maxHeight: this.maxHeight(),
|
|
93
|
+
aspectRatio: this.aspectRatio(),
|
|
94
|
+
cropShape: this.cropShape(),
|
|
95
|
+
zoom: this.zoom(),
|
|
96
|
+
rotation: this.rotation(),
|
|
97
|
+
flip: this.flip(),
|
|
98
|
+
defaultZoom: this.defaultZoom(),
|
|
99
|
+
defaultRotation: this.defaultRotation(),
|
|
100
|
+
defaultFlip: this.defaultFlip(),
|
|
101
|
+
zoomStep: this.zoomStep(),
|
|
102
|
+
zoomSensitivity: this.zoomSensitivity(),
|
|
103
|
+
minZoom: this.minZoom(),
|
|
104
|
+
maxZoom: this.maxZoom(),
|
|
105
|
+
nudgeStep: this.nudgeStep(),
|
|
106
|
+
nudgeStepShift: this.nudgeStepShift(),
|
|
107
|
+
nudgeStepCtrl: this.nudgeStepCtrl(),
|
|
108
|
+
fixedCropArea: this.fixedCropArea(),
|
|
109
|
+
onZoomChange: (details) => {
|
|
110
|
+
if (this.zoom() !== details.zoom) {
|
|
111
|
+
this.zoom.set(details.zoom);
|
|
112
|
+
}
|
|
113
|
+
this.zoomDetailsChange.emit(details);
|
|
114
|
+
},
|
|
115
|
+
onRotationChange: (details) => {
|
|
116
|
+
if (this.rotation() !== details.rotation) {
|
|
117
|
+
this.rotation.set(details.rotation);
|
|
118
|
+
}
|
|
119
|
+
this.rotationDetailsChange.emit(details);
|
|
120
|
+
},
|
|
121
|
+
onFlipChange: (details) => {
|
|
122
|
+
if (!flipsEqual(this.flip(), details.flip)) {
|
|
123
|
+
this.flip.set({ ...details.flip });
|
|
124
|
+
}
|
|
125
|
+
this.flipDetailsChange.emit(details);
|
|
126
|
+
},
|
|
127
|
+
onCropChange: (details) => {
|
|
128
|
+
this.cropChange.emit(details);
|
|
129
|
+
},
|
|
130
|
+
}),
|
|
131
|
+
});
|
|
132
|
+
state = this.machine.state;
|
|
133
|
+
api = this.machine.api;
|
|
134
|
+
service = this.machine.service;
|
|
135
|
+
send = this.machine.send;
|
|
136
|
+
constructor() {
|
|
137
|
+
bindProps({
|
|
138
|
+
elementRef: inject(ElementRef),
|
|
139
|
+
renderer: inject(Renderer2),
|
|
140
|
+
destroyRef: inject(DestroyRef),
|
|
141
|
+
props: () => this.api().getRootProps(),
|
|
142
|
+
});
|
|
143
|
+
}
|
|
144
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperRoot, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
145
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: ImageCropperRoot, isStandalone: true, selector: "[image-cropper-root]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, ids: { classPropertyName: "ids", publicName: "ids", isSignal: true, isRequired: false, transformFunction: null }, translations: { classPropertyName: "translations", publicName: "translations", isSignal: true, isRequired: false, transformFunction: null }, initialCrop: { classPropertyName: "initialCrop", publicName: "initialCrop", isSignal: true, isRequired: false, transformFunction: null }, minWidth: { classPropertyName: "minWidth", publicName: "minWidth", isSignal: true, isRequired: false, transformFunction: null }, minHeight: { classPropertyName: "minHeight", publicName: "minHeight", isSignal: true, isRequired: false, transformFunction: null }, maxWidth: { classPropertyName: "maxWidth", publicName: "maxWidth", isSignal: true, isRequired: false, transformFunction: null }, maxHeight: { classPropertyName: "maxHeight", publicName: "maxHeight", isSignal: true, isRequired: false, transformFunction: null }, aspectRatio: { classPropertyName: "aspectRatio", publicName: "aspectRatio", isSignal: true, isRequired: false, transformFunction: null }, cropShape: { classPropertyName: "cropShape", publicName: "cropShape", isSignal: true, isRequired: false, transformFunction: null }, zoom: { classPropertyName: "zoom", publicName: "zoom", isSignal: true, isRequired: false, transformFunction: null }, rotation: { classPropertyName: "rotation", publicName: "rotation", isSignal: true, isRequired: false, transformFunction: null }, flip: { classPropertyName: "flip", publicName: "flip", isSignal: true, isRequired: false, transformFunction: null }, defaultZoom: { classPropertyName: "defaultZoom", publicName: "defaultZoom", isSignal: true, isRequired: false, transformFunction: null }, defaultRotation: { classPropertyName: "defaultRotation", publicName: "defaultRotation", isSignal: true, isRequired: false, transformFunction: null }, defaultFlip: { classPropertyName: "defaultFlip", publicName: "defaultFlip", isSignal: true, isRequired: false, transformFunction: null }, zoomStep: { classPropertyName: "zoomStep", publicName: "zoomStep", isSignal: true, isRequired: false, transformFunction: null }, zoomSensitivity: { classPropertyName: "zoomSensitivity", publicName: "zoomSensitivity", isSignal: true, isRequired: false, transformFunction: null }, minZoom: { classPropertyName: "minZoom", publicName: "minZoom", isSignal: true, isRequired: false, transformFunction: null }, maxZoom: { classPropertyName: "maxZoom", publicName: "maxZoom", isSignal: true, isRequired: false, transformFunction: null }, nudgeStep: { classPropertyName: "nudgeStep", publicName: "nudgeStep", isSignal: true, isRequired: false, transformFunction: null }, nudgeStepShift: { classPropertyName: "nudgeStepShift", publicName: "nudgeStepShift", isSignal: true, isRequired: false, transformFunction: null }, nudgeStepCtrl: { classPropertyName: "nudgeStepCtrl", publicName: "nudgeStepCtrl", isSignal: true, isRequired: false, transformFunction: null }, fixedCropArea: { classPropertyName: "fixedCropArea", publicName: "fixedCropArea", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { zoom: "zoomChange", rotation: "rotationChange", flip: "flipChange", cropChange: "cropChange", zoomDetailsChange: "zoomDetailsChange", rotationDetailsChange: "rotationDetailsChange", flipDetailsChange: "flipDetailsChange" }, providers: [{ provide: IMAGE_CROPPER_CONTEXT, useExisting: forwardRef(() => ImageCropperRoot) }], exportAs: ["imageCropperRoot"], ngImport: i0 });
|
|
146
|
+
}
|
|
147
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperRoot, decorators: [{
|
|
148
|
+
type: Directive,
|
|
149
|
+
args: [{
|
|
150
|
+
selector: "[image-cropper-root]",
|
|
151
|
+
standalone: true,
|
|
152
|
+
exportAs: "imageCropperRoot",
|
|
153
|
+
providers: [{ provide: IMAGE_CROPPER_CONTEXT, useExisting: forwardRef(() => ImageCropperRoot) }],
|
|
154
|
+
}]
|
|
155
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], ids: [{ type: i0.Input, args: [{ isSignal: true, alias: "ids", required: false }] }], translations: [{ type: i0.Input, args: [{ isSignal: true, alias: "translations", required: false }] }], initialCrop: [{ type: i0.Input, args: [{ isSignal: true, alias: "initialCrop", required: false }] }], minWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "minWidth", required: false }] }], minHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "minHeight", required: false }] }], maxWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxWidth", required: false }] }], maxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxHeight", required: false }] }], aspectRatio: [{ type: i0.Input, args: [{ isSignal: true, alias: "aspectRatio", required: false }] }], cropShape: [{ type: i0.Input, args: [{ isSignal: true, alias: "cropShape", required: false }] }], zoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoom", required: false }] }, { type: i0.Output, args: ["zoomChange"] }], rotation: [{ type: i0.Input, args: [{ isSignal: true, alias: "rotation", required: false }] }, { type: i0.Output, args: ["rotationChange"] }], flip: [{ type: i0.Input, args: [{ isSignal: true, alias: "flip", required: false }] }, { type: i0.Output, args: ["flipChange"] }], defaultZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultZoom", required: false }] }], defaultRotation: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultRotation", required: false }] }], defaultFlip: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultFlip", required: false }] }], zoomStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomStep", required: false }] }], zoomSensitivity: [{ type: i0.Input, args: [{ isSignal: true, alias: "zoomSensitivity", required: false }] }], minZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "minZoom", required: false }] }], maxZoom: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxZoom", required: false }] }], nudgeStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "nudgeStep", required: false }] }], nudgeStepShift: [{ type: i0.Input, args: [{ isSignal: true, alias: "nudgeStepShift", required: false }] }], nudgeStepCtrl: [{ type: i0.Input, args: [{ isSignal: true, alias: "nudgeStepCtrl", required: false }] }], fixedCropArea: [{ type: i0.Input, args: [{ isSignal: true, alias: "fixedCropArea", required: false }] }], cropChange: [{ type: i0.Output, args: ["cropChange"] }], zoomDetailsChange: [{ type: i0.Output, args: ["zoomDetailsChange"] }], rotationDetailsChange: [{ type: i0.Output, args: ["rotationDetailsChange"] }], flipDetailsChange: [{ type: i0.Output, args: ["flipDetailsChange"] }] } });
|
|
156
|
+
function flipsEqual(a, b) {
|
|
157
|
+
return a?.horizontal === b.horizontal && a?.vertical === b.vertical;
|
|
158
|
+
}
|
|
159
|
+
|
|
160
|
+
class ImageCropperRootProvider {
|
|
161
|
+
value = input.required(/* @ts-ignore */
|
|
162
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
163
|
+
state = computed(() => this.value().state(), /* @ts-ignore */
|
|
164
|
+
...(ngDevMode ? [{ debugName: "state" }] : /* istanbul ignore next */ []));
|
|
165
|
+
api = computed(() => this.value().api(), /* @ts-ignore */
|
|
166
|
+
...(ngDevMode ? [{ debugName: "api" }] : /* istanbul ignore next */ []));
|
|
167
|
+
send = (event) => this.value().send(event);
|
|
168
|
+
get service() {
|
|
169
|
+
return this.value().service;
|
|
170
|
+
}
|
|
171
|
+
constructor() {
|
|
172
|
+
bindProps({
|
|
173
|
+
elementRef: inject(ElementRef),
|
|
174
|
+
renderer: inject(Renderer2),
|
|
175
|
+
destroyRef: inject(DestroyRef),
|
|
176
|
+
props: () => this.api().getRootProps(),
|
|
177
|
+
});
|
|
178
|
+
}
|
|
179
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperRootProvider, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
180
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: ImageCropperRootProvider, isStandalone: true, selector: "[image-cropper-root-provider]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, providers: [
|
|
181
|
+
{
|
|
182
|
+
provide: IMAGE_CROPPER_CONTEXT,
|
|
183
|
+
useExisting: forwardRef(() => ImageCropperRootProvider),
|
|
184
|
+
},
|
|
185
|
+
], exportAs: ["imageCropperRootProvider"], ngImport: i0 });
|
|
186
|
+
}
|
|
187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperRootProvider, decorators: [{
|
|
188
|
+
type: Directive,
|
|
189
|
+
args: [{
|
|
190
|
+
selector: "[image-cropper-root-provider]",
|
|
191
|
+
standalone: true,
|
|
192
|
+
exportAs: "imageCropperRootProvider",
|
|
193
|
+
providers: [
|
|
194
|
+
{
|
|
195
|
+
provide: IMAGE_CROPPER_CONTEXT,
|
|
196
|
+
useExisting: forwardRef(() => ImageCropperRootProvider),
|
|
197
|
+
},
|
|
198
|
+
],
|
|
199
|
+
}]
|
|
200
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }] } });
|
|
201
|
+
|
|
202
|
+
function applyImageCropperPartProps(props) {
|
|
203
|
+
bindProps({
|
|
204
|
+
elementRef: inject(ElementRef),
|
|
205
|
+
renderer: inject(Renderer2),
|
|
206
|
+
destroyRef: inject(DestroyRef),
|
|
207
|
+
props,
|
|
208
|
+
});
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
class ImageCropperViewport {
|
|
212
|
+
constructor() {
|
|
213
|
+
const context = injectImageCropperContext();
|
|
214
|
+
applyImageCropperPartProps(() => context.api().getViewportProps());
|
|
215
|
+
}
|
|
216
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperViewport, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
217
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: ImageCropperViewport, isStandalone: true, selector: "[image-cropper-viewport]", exportAs: ["imageCropperViewport"], ngImport: i0 });
|
|
218
|
+
}
|
|
219
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperViewport, decorators: [{
|
|
220
|
+
type: Directive,
|
|
221
|
+
args: [{
|
|
222
|
+
selector: "[image-cropper-viewport]",
|
|
223
|
+
standalone: true,
|
|
224
|
+
exportAs: "imageCropperViewport",
|
|
225
|
+
}]
|
|
226
|
+
}], ctorParameters: () => [] });
|
|
227
|
+
|
|
228
|
+
class ImageCropperImage {
|
|
229
|
+
constructor() {
|
|
230
|
+
const context = injectImageCropperContext();
|
|
231
|
+
applyImageCropperPartProps(() => context.api().getImageProps());
|
|
232
|
+
}
|
|
233
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperImage, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
234
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: ImageCropperImage, isStandalone: true, selector: "img[image-cropper-image]", exportAs: ["imageCropperImage"], ngImport: i0 });
|
|
235
|
+
}
|
|
236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperImage, decorators: [{
|
|
237
|
+
type: Directive,
|
|
238
|
+
args: [{
|
|
239
|
+
selector: "img[image-cropper-image]",
|
|
240
|
+
standalone: true,
|
|
241
|
+
exportAs: "imageCropperImage",
|
|
242
|
+
}]
|
|
243
|
+
}], ctorParameters: () => [] });
|
|
244
|
+
|
|
245
|
+
class ImageCropperSelection {
|
|
246
|
+
constructor() {
|
|
247
|
+
const context = injectImageCropperContext();
|
|
248
|
+
applyImageCropperPartProps(() => context.api().getSelectionProps());
|
|
249
|
+
}
|
|
250
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperSelection, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
251
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: ImageCropperSelection, isStandalone: true, selector: "[image-cropper-selection]", exportAs: ["imageCropperSelection"], ngImport: i0 });
|
|
252
|
+
}
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperSelection, decorators: [{
|
|
254
|
+
type: Directive,
|
|
255
|
+
args: [{
|
|
256
|
+
selector: "[image-cropper-selection]",
|
|
257
|
+
standalone: true,
|
|
258
|
+
exportAs: "imageCropperSelection",
|
|
259
|
+
}]
|
|
260
|
+
}], ctorParameters: () => [] });
|
|
261
|
+
|
|
262
|
+
class ImageCropperHandle {
|
|
263
|
+
position = input.required(/* @ts-ignore */
|
|
264
|
+
...(ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []));
|
|
265
|
+
constructor() {
|
|
266
|
+
const context = injectImageCropperContext();
|
|
267
|
+
applyImageCropperPartProps(() => context.api().getHandleProps({ position: this.position() }));
|
|
268
|
+
}
|
|
269
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperHandle, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
270
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: ImageCropperHandle, isStandalone: true, selector: "[image-cropper-handle]", inputs: { position: { classPropertyName: "position", publicName: "position", isSignal: true, isRequired: true, transformFunction: null } }, exportAs: ["imageCropperHandle"], ngImport: i0 });
|
|
271
|
+
}
|
|
272
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperHandle, decorators: [{
|
|
273
|
+
type: Directive,
|
|
274
|
+
args: [{
|
|
275
|
+
selector: "[image-cropper-handle]",
|
|
276
|
+
standalone: true,
|
|
277
|
+
exportAs: "imageCropperHandle",
|
|
278
|
+
}]
|
|
279
|
+
}], ctorParameters: () => [], propDecorators: { position: [{ type: i0.Input, args: [{ isSignal: true, alias: "position", required: true }] }] } });
|
|
280
|
+
|
|
281
|
+
class ImageCropperGrid {
|
|
282
|
+
axis = input.required(/* @ts-ignore */
|
|
283
|
+
...(ngDevMode ? [{ debugName: "axis" }] : /* istanbul ignore next */ []));
|
|
284
|
+
constructor() {
|
|
285
|
+
const context = injectImageCropperContext();
|
|
286
|
+
applyImageCropperPartProps(() => context.api().getGridProps({ axis: this.axis() }));
|
|
287
|
+
}
|
|
288
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperGrid, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
289
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: ImageCropperGrid, isStandalone: true, selector: "[image-cropper-grid]", inputs: { axis: { classPropertyName: "axis", publicName: "axis", isSignal: true, isRequired: true, transformFunction: null } }, exportAs: ["imageCropperGrid"], ngImport: i0 });
|
|
290
|
+
}
|
|
291
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperGrid, decorators: [{
|
|
292
|
+
type: Directive,
|
|
293
|
+
args: [{
|
|
294
|
+
selector: "[image-cropper-grid]",
|
|
295
|
+
standalone: true,
|
|
296
|
+
exportAs: "imageCropperGrid",
|
|
297
|
+
}]
|
|
298
|
+
}], ctorParameters: () => [], propDecorators: { axis: [{ type: i0.Input, args: [{ isSignal: true, alias: "axis", required: true }] }] } });
|
|
299
|
+
|
|
300
|
+
class ImageCropperContext {
|
|
301
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
302
|
+
void context;
|
|
303
|
+
return true;
|
|
304
|
+
}
|
|
305
|
+
imageCropper = injectImageCropperContext();
|
|
306
|
+
templateRef = inject(TemplateRef);
|
|
307
|
+
viewContainer = inject(ViewContainerRef);
|
|
308
|
+
constructor() {
|
|
309
|
+
const view = this.viewContainer.createEmbeddedView(this.templateRef, {
|
|
310
|
+
$implicit: this.imageCropper.api,
|
|
311
|
+
api: this.imageCropper.api,
|
|
312
|
+
});
|
|
313
|
+
effect(() => {
|
|
314
|
+
this.imageCropper.api();
|
|
315
|
+
view.detectChanges();
|
|
316
|
+
});
|
|
317
|
+
inject(DestroyRef).onDestroy(() => view.destroy());
|
|
318
|
+
}
|
|
319
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperContext, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
320
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: ImageCropperContext, isStandalone: true, selector: "[image-cropper-context]", exportAs: ["imageCropperContext"], ngImport: i0 });
|
|
321
|
+
}
|
|
322
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: ImageCropperContext, decorators: [{
|
|
323
|
+
type: Directive,
|
|
324
|
+
args: [{
|
|
325
|
+
selector: "[image-cropper-context]",
|
|
326
|
+
standalone: true,
|
|
327
|
+
exportAs: "imageCropperContext",
|
|
328
|
+
}]
|
|
329
|
+
}], ctorParameters: () => [] });
|
|
330
|
+
|
|
331
|
+
/**
|
|
332
|
+
* Generated bundle index. Do not edit.
|
|
333
|
+
*/
|
|
334
|
+
|
|
335
|
+
export { IMAGE_CROPPER_CONTEXT, ImageCropperContext, ImageCropperGrid, ImageCropperHandle, ImageCropperImage, ImageCropperRoot, ImageCropperRootProvider, ImageCropperSelection, ImageCropperViewport, injectImageCropperContext, useImageCropper };
|
|
336
|
+
//# sourceMappingURL=wirekyt-angular-image-cropper.mjs.map
|