@wirekyt/angular 0.0.33 → 0.0.35
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-json-tree-view.mjs +0 -5
- package/dist/fesm2022/wirekyt-angular-json-tree-view.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-listbox.mjs +627 -0
- package/dist/fesm2022/wirekyt-angular-listbox.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-marquee.mjs +296 -0
- package/dist/fesm2022/wirekyt-angular-marquee.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-menu.mjs +0 -6
- package/dist/fesm2022/wirekyt-angular-menu.mjs.map +1 -1
- package/dist/fesm2022/wirekyt-angular-navigation-menu.mjs +777 -0
- package/dist/fesm2022/wirekyt-angular-navigation-menu.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-number-input.mjs +467 -0
- package/dist/fesm2022/wirekyt-angular-number-input.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-pagination.mjs +321 -0
- package/dist/fesm2022/wirekyt-angular-pagination.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-password-input.mjs +437 -0
- package/dist/fesm2022/wirekyt-angular-password-input.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-pin-input.mjs +485 -0
- package/dist/fesm2022/wirekyt-angular-pin-input.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-portal.mjs +98 -0
- package/dist/fesm2022/wirekyt-angular-portal.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-progress.mjs +337 -0
- package/dist/fesm2022/wirekyt-angular-progress.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-qr-code.mjs +297 -0
- package/dist/fesm2022/wirekyt-angular-qr-code.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-radio-group.mjs +461 -0
- package/dist/fesm2022/wirekyt-angular-radio-group.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-rating-group.mjs +435 -0
- package/dist/fesm2022/wirekyt-angular-rating-group.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-scroll-area.mjs +276 -0
- package/dist/fesm2022/wirekyt-angular-scroll-area.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-segment-group.mjs +506 -0
- package/dist/fesm2022/wirekyt-angular-segment-group.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-signature-pad.mjs +382 -0
- package/dist/fesm2022/wirekyt-angular-signature-pad.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-slider.mjs +574 -0
- package/dist/fesm2022/wirekyt-angular-slider.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-splitter.mjs +303 -0
- package/dist/fesm2022/wirekyt-angular-splitter.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-steps.mjs +465 -0
- package/dist/fesm2022/wirekyt-angular-steps.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-swap.mjs +192 -0
- package/dist/fesm2022/wirekyt-angular-swap.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-switch.mjs +340 -0
- package/dist/fesm2022/wirekyt-angular-switch.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-tags-input.mjs +645 -0
- package/dist/fesm2022/wirekyt-angular-tags-input.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-timer.mjs +294 -0
- package/dist/fesm2022/wirekyt-angular-timer.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-toggle-group.mjs +194 -0
- package/dist/fesm2022/wirekyt-angular-toggle-group.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-toggle.mjs +170 -0
- package/dist/fesm2022/wirekyt-angular-toggle.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular-tour.mjs +806 -0
- package/dist/fesm2022/wirekyt-angular-tour.mjs.map +1 -0
- package/dist/fesm2022/wirekyt-angular.mjs +12 -4
- package/dist/fesm2022/wirekyt-angular.mjs.map +1 -1
- package/dist/package.json +101 -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-json-tree-view.d.ts +0 -5
- package/dist/types/wirekyt-angular-json-tree-view.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-listbox.d.ts +206 -0
- package/dist/types/wirekyt-angular-listbox.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-marquee.d.ts +111 -0
- package/dist/types/wirekyt-angular-marquee.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-menu.d.ts +0 -23
- package/dist/types/wirekyt-angular-menu.d.ts.map +1 -1
- package/dist/types/wirekyt-angular-navigation-menu.d.ts +187 -0
- package/dist/types/wirekyt-angular-navigation-menu.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-number-input.d.ts +143 -0
- package/dist/types/wirekyt-angular-number-input.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-pagination.d.ts +114 -0
- package/dist/types/wirekyt-angular-pagination.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-password-input.d.ts +124 -0
- package/dist/types/wirekyt-angular-password-input.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-pin-input.d.ts +131 -0
- package/dist/types/wirekyt-angular-pin-input.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-portal.d.ts +30 -0
- package/dist/types/wirekyt-angular-portal.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-progress.d.ts +129 -0
- package/dist/types/wirekyt-angular-progress.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-qr-code.d.ts +98 -0
- package/dist/types/wirekyt-angular-qr-code.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-radio-group.d.ts +149 -0
- package/dist/types/wirekyt-angular-radio-group.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-rating-group.d.ts +136 -0
- package/dist/types/wirekyt-angular-rating-group.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-scroll-area.d.ts +106 -0
- package/dist/types/wirekyt-angular-scroll-area.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-segment-group.d.ts +152 -0
- package/dist/types/wirekyt-angular-segment-group.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-signature-pad.d.ts +120 -0
- package/dist/types/wirekyt-angular-signature-pad.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-slider.d.ts +176 -0
- package/dist/types/wirekyt-angular-slider.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-splitter.d.ts +116 -0
- package/dist/types/wirekyt-angular-splitter.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-steps.d.ts +160 -0
- package/dist/types/wirekyt-angular-steps.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-swap.d.ts +86 -0
- package/dist/types/wirekyt-angular-swap.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-switch.d.ts +110 -0
- package/dist/types/wirekyt-angular-switch.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-tags-input.d.ts +193 -0
- package/dist/types/wirekyt-angular-tags-input.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-timer.d.ts +109 -0
- package/dist/types/wirekyt-angular-timer.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-toggle-group.d.ts +81 -0
- package/dist/types/wirekyt-angular-toggle-group.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-toggle.d.ts +69 -0
- package/dist/types/wirekyt-angular-toggle.d.ts.map +1 -0
- package/dist/types/wirekyt-angular-tour.d.ts +209 -0
- package/dist/types/wirekyt-angular-tour.d.ts.map +1 -0
- package/dist/types/wirekyt-angular.d.ts +1 -1
- package/package.json +102 -3
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"wirekyt-angular-navigation-menu.mjs","sources":["../../src/components/navigation-menu/use-context.ts","../../src/components/navigation-menu/use.ts","../../src/components/navigation-menu/root.ts","../../src/components/navigation-menu/root-provider.ts","../../src/components/navigation-menu/list.ts","../../src/components/navigation-menu/use-item-context.ts","../../src/components/navigation-menu/item.ts","../../src/components/navigation-menu/trigger.ts","../../src/components/navigation-menu/content.ts","../../src/components/navigation-menu/link.ts","../../src/components/navigation-menu/indicator.ts","../../src/components/navigation-menu/item-indicator.ts","../../src/components/navigation-menu/use-viewport-context.ts","../../src/components/navigation-menu/viewport.ts","../../src/components/navigation-menu/viewport-positioner.ts","../../src/components/navigation-menu/arrow.ts","../../src/components/navigation-menu/context.ts","../../src/components/navigation-menu/wirekyt-angular-navigation-menu.ts"],"sourcesContent":["import type { ContextCarrier } from \"@wirekyt/angular\";\n\nimport { InjectionToken, inject, type Signal } from \"@angular/core\";\n\nimport type { UseNavigationMenuReturn } from \"./use\";\n\nexport const NAVIGATION_MENU_CONTEXT = new InjectionToken<UseNavigationMenuReturn>(\n \"WIREKYT.NAVIGATION_MENU_CONTEXT\",\n);\n\nexport function injectNavigationMenuContext(): UseNavigationMenuReturn {\n return inject(NAVIGATION_MENU_CONTEXT);\n}\n\nexport const NAVIGATION_MENU_CONTEXT_CARRIER = new InjectionToken<\n ContextCarrier<UseNavigationMenuReturn>\n>(\"WIREKYT.NAVIGATION_MENU_CONTEXT_CARRIER\");\n\nexport function injectNavigationMenuContextCarrier(): ContextCarrier<UseNavigationMenuReturn> {\n return inject(NAVIGATION_MENU_CONTEXT_CARRIER);\n}\n\nexport interface NavigationMenuRenderStrategyContext {\n readonly lazyMount: Signal<boolean>;\n readonly unmountOnExit: Signal<boolean>;\n}\n\nexport const NAVIGATION_MENU_RENDER_STRATEGY_CONTEXT =\n new InjectionToken<NavigationMenuRenderStrategyContext>(\n \"WIREKYT.NAVIGATION_MENU_RENDER_STRATEGY_CONTEXT\",\n );\n\nexport function injectNavigationMenuRenderStrategyContext(): NavigationMenuRenderStrategyContext {\n return inject(NAVIGATION_MENU_RENDER_STRATEGY_CONTEXT);\n}\n","import type { Machine } from \"@wirekyt/dom\";\n\nimport {\n createId,\n injectEnvironment,\n injectLocale,\n useMachine,\n type UseMachineReturn,\n} from \"@wirekyt/angular\";\nimport * as navigationMenu from \"@wirekyt/dom/machines/navigation-menu\";\n\ntype OptionalId<T extends { id: string }> = Omit<T, \"id\"> & { id?: string };\n\nexport interface UseNavigationMenuProps extends OptionalId<\n Omit<navigationMenu.Props, \"dir\" | \"getRootNode\">\n> {}\n\nexport type UseNavigationMenuReturn = UseMachineReturn<\n navigationMenu.Service[\"state\"],\n navigationMenu.Api,\n navigationMenu.Service\n>;\n\nexport interface UseNavigationMenuOptions {\n context: () => UseNavigationMenuProps;\n}\n\ntype NavigationMenuContext = Record<string, unknown>;\ntype NavigationMenuSchema = navigationMenu.Machine extends Machine<infer TSchema> ? TSchema : never;\n\nexport function useNavigationMenu(options: UseNavigationMenuOptions): UseNavigationMenuReturn {\n const locale = injectLocale();\n const environment = injectEnvironment();\n const fallbackId = createId();\n\n return useMachine<NavigationMenuSchema, navigationMenu.Api>({\n machine: navigationMenu.machine,\n context: () => {\n const props = options.context();\n return {\n ...props,\n dir: locale.dir,\n getRootNode: environment.getRootNode,\n id: props.id ?? fallbackId,\n } as NavigationMenuContext;\n },\n connect: (service, normalize) => navigationMenu.connect(service, normalize),\n });\n}\n","import type * as navigationMenu from \"@wirekyt/dom/machines/navigation-menu\";\n\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n EnvironmentInjector,\n Injector,\n Renderer2,\n type OutputEmitterRef,\n type ProviderToken,\n booleanAttribute,\n forwardRef,\n inject,\n input,\n model,\n output,\n type InputSignal,\n type InputSignalWithTransform,\n type ModelSignal,\n type Signal,\n} from \"@angular/core\";\nimport { bindProps, buildRootCarrier, type ContextCarrier } from \"@wirekyt/angular\";\n\nimport type {\n NavigationMenuElementIds,\n NavigationMenuIntlTranslations,\n NavigationMenuValueChangeDetails,\n} from \"./types\";\n\nimport { useNavigationMenu, type UseNavigationMenuReturn } from \"./use\";\nimport {\n NAVIGATION_MENU_CONTEXT,\n NAVIGATION_MENU_CONTEXT_CARRIER,\n NAVIGATION_MENU_RENDER_STRATEGY_CONTEXT,\n} from \"./use-context\";\n\n@Directive({\n selector: \"[navigation-menu-root]\",\n standalone: true,\n exportAs: \"navigationMenuRoot\",\n providers: [\n { provide: NAVIGATION_MENU_CONTEXT, useExisting: forwardRef(() => NavigationMenuRoot) },\n {\n provide: NAVIGATION_MENU_RENDER_STRATEGY_CONTEXT,\n useExisting: forwardRef(() => NavigationMenuRoot),\n },\n {\n provide: NAVIGATION_MENU_CONTEXT_CARRIER,\n useFactory: (root: NavigationMenuRoot) => root.getContextCarrier(),\n deps: [forwardRef(() => NavigationMenuRoot)],\n },\n ],\n})\nexport class NavigationMenuRoot implements UseNavigationMenuReturn {\n readonly id: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly ids: InputSignal<Partial<NavigationMenuElementIds> | undefined> = input<\n Partial<NavigationMenuElementIds> | undefined\n >(undefined);\n readonly value: ModelSignal<string | undefined> = model<string | undefined>(undefined);\n readonly defaultValue: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly orientation: InputSignal<navigationMenu.Props[\"orientation\"]> =\n input<navigationMenu.Props[\"orientation\"]>(undefined);\n readonly openDelay: InputSignal<number | undefined> = input<number | undefined>(undefined);\n readonly closeDelay: InputSignal<number | undefined> = input<number | undefined>(undefined);\n readonly disableClickTrigger: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly disableHoverTrigger: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly disablePointerLeaveClose: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly translations: InputSignal<NavigationMenuIntlTranslations | undefined> = input<\n NavigationMenuIntlTranslations | undefined\n >(undefined);\n readonly lazyMount: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly unmountOnExit: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n\n readonly valueDetailsChange: OutputEmitterRef<NavigationMenuValueChangeDetails> =\n output<NavigationMenuValueChangeDetails>();\n\n private readonly machine = useNavigationMenu({\n context: () => ({\n id: this.id(),\n ids: this.ids(),\n value: this.value(),\n defaultValue: this.defaultValue(),\n orientation: this.orientation(),\n openDelay: this.openDelay(),\n closeDelay: this.closeDelay(),\n disableClickTrigger: this.disableClickTrigger(),\n disableHoverTrigger: this.disableHoverTrigger(),\n disablePointerLeaveClose: this.disablePointerLeaveClose(),\n translations: this.translations(),\n onValueChange: (details) => {\n if (this.value() !== details.value) this.value.set(details.value);\n this.valueDetailsChange.emit(details);\n },\n }),\n });\n\n readonly state: Signal<navigationMenu.Service[\"state\"]> = this.machine.state;\n readonly api: Signal<navigationMenu.Api> = this.machine.api;\n readonly service: navigationMenu.Service = this.machine.service;\n readonly send: navigationMenu.Service[\"send\"] = this.machine.send;\n\n protected readonly contextCarrier: ContextCarrier<NavigationMenuRoot> =\n buildRootCarrier<NavigationMenuRoot>({\n providers: [{ provide: NAVIGATION_MENU_RENDER_STRATEGY_CONTEXT, useValue: this }],\n root: this,\n rootToken: NAVIGATION_MENU_CONTEXT as ProviderToken<NavigationMenuRoot>,\n originInjector: inject(Injector),\n environmentInjector: inject(EnvironmentInjector),\n });\n\n getContextCarrier(): ContextCarrier<NavigationMenuRoot> {\n return this.contextCarrier;\n }\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.api().getRootProps(),\n });\n }\n}\n","import type * as navigationMenu from \"@wirekyt/dom/machines/navigation-menu\";\n\nimport {\n DestroyRef,\n Directive,\n ElementRef,\n EnvironmentInjector,\n Injector,\n Renderer2,\n booleanAttribute,\n type InputSignal,\n type InputSignalWithTransform,\n type ProviderToken,\n type Signal,\n computed,\n forwardRef,\n inject,\n input,\n} from \"@angular/core\";\nimport { bindProps, buildRootCarrier, type ContextCarrier } from \"@wirekyt/angular\";\n\nimport type { UseNavigationMenuReturn } from \"./use\";\n\nimport {\n NAVIGATION_MENU_CONTEXT,\n NAVIGATION_MENU_CONTEXT_CARRIER,\n NAVIGATION_MENU_RENDER_STRATEGY_CONTEXT,\n} from \"./use-context\";\n\n@Directive({\n selector: \"[navigation-menu-root-provider]\",\n standalone: true,\n exportAs: \"navigationMenuRootProvider\",\n providers: [\n {\n provide: NAVIGATION_MENU_CONTEXT,\n useExisting: forwardRef(() => NavigationMenuRootProvider),\n },\n {\n provide: NAVIGATION_MENU_RENDER_STRATEGY_CONTEXT,\n useExisting: forwardRef(() => NavigationMenuRootProvider),\n },\n {\n provide: NAVIGATION_MENU_CONTEXT_CARRIER,\n useFactory: (provider: NavigationMenuRootProvider) => provider.getContextCarrier(),\n deps: [forwardRef(() => NavigationMenuRootProvider)],\n },\n ],\n})\nexport class NavigationMenuRootProvider implements UseNavigationMenuReturn {\n readonly value: InputSignal<UseNavigationMenuReturn> = input.required<UseNavigationMenuReturn>();\n readonly lazyMount: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly unmountOnExit: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly state: Signal<navigationMenu.Service[\"state\"]> = computed(() => this.value().state());\n readonly api: Signal<navigationMenu.Api> = computed(() => this.value().api());\n readonly send: navigationMenu.Service[\"send\"] = (event) => this.value().send(event);\n\n get service(): navigationMenu.Service {\n return this.value().service;\n }\n\n protected readonly contextCarrier: ContextCarrier<NavigationMenuRootProvider> =\n buildRootCarrier<NavigationMenuRootProvider>({\n providers: [{ provide: NAVIGATION_MENU_RENDER_STRATEGY_CONTEXT, useValue: this }],\n root: this,\n rootToken: NAVIGATION_MENU_CONTEXT as ProviderToken<NavigationMenuRootProvider>,\n originInjector: inject(Injector),\n environmentInjector: inject(EnvironmentInjector),\n });\n\n getContextCarrier(): ContextCarrier<NavigationMenuRootProvider> {\n return this.contextCarrier;\n }\n\n constructor() {\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => this.api().getRootProps(),\n });\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectNavigationMenuContext } from \"./use-context\";\n\n@Directive({\n selector: \"[navigation-menu-list]\",\n standalone: true,\n exportAs: \"navigationMenuList\",\n})\nexport class NavigationMenuList {\n constructor() {\n const context = injectNavigationMenuContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => context.api().getListProps(),\n });\n }\n}\n","import { InjectionToken, inject, type Signal } from \"@angular/core\";\n\nexport interface NavigationMenuItemContext {\n readonly value: Signal<string>;\n readonly disabled: Signal<boolean | undefined>;\n}\n\nexport const NAVIGATION_MENU_ITEM_CONTEXT = new InjectionToken<NavigationMenuItemContext>(\n \"WIREKYT.NAVIGATION_MENU_ITEM_CONTEXT\",\n);\n\nexport function injectNavigationMenuItemContext(): NavigationMenuItemContext {\n return inject(NAVIGATION_MENU_ITEM_CONTEXT);\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n booleanAttribute,\n computed,\n forwardRef,\n inject,\n input,\n type InputSignal,\n type InputSignalWithTransform,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectNavigationMenuContext } from \"./use-context\";\nimport { NAVIGATION_MENU_ITEM_CONTEXT, type NavigationMenuItemContext } from \"./use-item-context\";\n\n@Directive({\n selector: \"[navigation-menu-item]\",\n standalone: true,\n exportAs: \"navigationMenuItem\",\n providers: [\n {\n provide: NAVIGATION_MENU_ITEM_CONTEXT,\n useFactory: (item: NavigationMenuItem) => item.getItemContext(),\n deps: [forwardRef(() => NavigationMenuItem)],\n },\n ],\n})\nexport class NavigationMenuItem {\n readonly value: InputSignal<string> = input.required<string>();\n readonly disabled: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n\n private readonly itemContext: NavigationMenuItemContext = {\n value: computed(() => this.value()),\n disabled: computed(() => this.disabled()),\n };\n\n constructor() {\n const context = injectNavigationMenuContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () =>\n context.api().getItemProps({\n value: this.value(),\n disabled: this.disabled(),\n }),\n });\n }\n\n getItemContext(): NavigationMenuItemContext {\n return this.itemContext;\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n booleanAttribute,\n inject,\n input,\n type InputSignalWithTransform,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectNavigationMenuContext } from \"./use-context\";\nimport { injectNavigationMenuItemContext } from \"./use-item-context\";\n\nconst optionalBooleanAttribute = (value: unknown): boolean | undefined =>\n value === undefined || value === null ? undefined : booleanAttribute(value);\n\n@Directive({\n selector: \"[navigation-menu-trigger]\",\n standalone: true,\n exportAs: \"navigationMenuTrigger\",\n})\nexport class NavigationMenuTrigger {\n readonly disabled: InputSignalWithTransform<boolean | undefined, unknown> = input<\n boolean | undefined,\n unknown\n >(undefined, { transform: optionalBooleanAttribute });\n\n constructor() {\n const context = injectNavigationMenuContext();\n const item = injectNavigationMenuItemContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () =>\n context.api().getTriggerProps({\n value: item.value(),\n disabled: this.disabled() ?? item.disabled(),\n }),\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n EmbeddedViewRef,\n Renderer2,\n TemplateRef,\n ViewContainerRef,\n effect,\n forwardRef,\n inject,\n input,\n untracked,\n type InputSignal,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\nimport { PRESENCE_CONTEXT, usePresence } from \"@wirekyt/angular/presence\";\n\nimport {\n injectNavigationMenuContext,\n injectNavigationMenuRenderStrategyContext,\n} from \"./use-context\";\nimport { NAVIGATION_MENU_ITEM_CONTEXT } from \"./use-item-context\";\n\n@Directive({\n selector: \"[navigation-menu-content]\",\n standalone: true,\n exportAs: \"navigationMenuContent\",\n providers: [\n {\n provide: PRESENCE_CONTEXT,\n useFactory: (content: NavigationMenuContent) => content.presence,\n deps: [forwardRef(() => NavigationMenuContent)],\n },\n ],\n})\nexport class NavigationMenuContent {\n readonly value: InputSignal<string | undefined> = input<string | undefined>(undefined);\n\n private readonly context = injectNavigationMenuContext();\n private readonly item = inject(NAVIGATION_MENU_ITEM_CONTEXT, { optional: true });\n private readonly renderStrategy = injectNavigationMenuRenderStrategyContext();\n\n private get resolvedValue(): string {\n const value = this.value() ?? this.item?.value();\n if (value === undefined) {\n throw new Error(\n \"[navigation-menu-content] requires either a [value] input or an ancestor [navigation-menu-item].\",\n );\n }\n return value;\n }\n\n readonly presence = usePresence({\n context: () => ({\n present: this.context.api().value === this.resolvedValue,\n lazyMount: this.renderStrategy.lazyMount(),\n unmountOnExit: this.renderStrategy.unmountOnExit(),\n }),\n });\n\n constructor() {\n const renderer = inject(Renderer2);\n const destroyRef = inject(DestroyRef);\n const template = inject(TemplateRef<unknown>, { optional: true });\n const container = inject(ViewContainerRef);\n const host = inject(ElementRef);\n const hostNode = host.nativeElement as Node;\n const originalParent = renderer.parentNode(hostNode) as Node | null;\n const anchor = template ? hostNode : renderer.createComment(\"navigation-menu-content\");\n const elementRef = template ? { nativeElement: null as HTMLElement | null } : host;\n const viewportProxyRef = { nativeElement: renderer.createElement(\"div\") as HTMLElement };\n const triggerProxyRef = { nativeElement: renderer.createElement(\"div\") as HTMLElement };\n let view: EmbeddedViewRef<unknown> | undefined;\n\n if (!template && originalParent) {\n renderer.insertBefore(originalParent, anchor, renderer.nextSibling(hostNode));\n }\n\n const detach = (node: Node): void => {\n const parent = renderer.parentNode(node);\n if (parent) renderer.removeChild(parent, node);\n };\n\n effect(() => {\n const unmounted = this.presence.unmounted();\n const api = this.context.api();\n\n if (template) {\n if (unmounted) {\n elementRef.nativeElement = null;\n container.clear();\n view = undefined;\n } else if (!view) {\n view = container.createEmbeddedView(template);\n elementRef.nativeElement =\n view.rootNodes.find((node: Node) => node.nodeType === 1) ?? null;\n }\n }\n\n const element = elementRef.nativeElement;\n untracked(() => this.presence.setNode(element));\n\n const viewportNode = api.getViewportNode();\n const shouldPortal = !unmounted && api.isViewportRendered && viewportNode !== null;\n\n if (shouldPortal && element && originalParent) {\n if (renderer.parentNode(viewportProxyRef.nativeElement) !== originalParent) {\n renderer.insertBefore(originalParent, viewportProxyRef.nativeElement, anchor);\n renderer.insertBefore(originalParent, triggerProxyRef.nativeElement, anchor);\n }\n if (renderer.parentNode(element) !== viewportNode) {\n renderer.appendChild(viewportNode, element);\n }\n } else {\n detach(viewportProxyRef.nativeElement);\n detach(triggerProxyRef.nativeElement);\n if (element && originalParent && renderer.parentNode(element) !== originalParent) {\n renderer.insertBefore(originalParent, element, anchor);\n }\n }\n });\n\n bindProps({\n elementRef,\n renderer,\n destroyRef,\n props: () => {\n this.presence.unmounted();\n return {\n ...this.context.api().getContentProps({ value: this.resolvedValue }),\n ...this.presence.getPresenceProps(),\n };\n },\n });\n\n bindProps({\n elementRef: viewportProxyRef,\n renderer,\n destroyRef,\n props: () => this.context.api().getViewportProxyProps({ value: this.resolvedValue }),\n });\n\n bindProps({\n elementRef: triggerProxyRef,\n renderer,\n destroyRef,\n props: () => this.context.api().getTriggerProxyProps({ value: this.resolvedValue }),\n });\n\n destroyRef.onDestroy(() => {\n const element = elementRef.nativeElement;\n if (element && originalParent && renderer.parentNode(element) !== originalParent) {\n renderer.insertBefore(originalParent, element, anchor);\n }\n detach(viewportProxyRef.nativeElement);\n detach(triggerProxyRef.nativeElement);\n if (!template && originalParent && renderer.parentNode(anchor) === originalParent) {\n renderer.removeChild(originalParent, anchor);\n }\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n Renderer2,\n booleanAttribute,\n inject,\n input,\n output,\n type InputSignal,\n type InputSignalWithTransform,\n type OutputEmitterRef,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectNavigationMenuContext } from \"./use-context\";\nimport { NAVIGATION_MENU_ITEM_CONTEXT, type NavigationMenuItemContext } from \"./use-item-context\";\n\n@Directive({\n selector: \"[navigation-menu-link]\",\n standalone: true,\n exportAs: \"navigationMenuLink\",\n})\nexport class NavigationMenuLink {\n readonly value: InputSignal<string | undefined> = input<string | undefined>(undefined);\n readonly current: InputSignalWithTransform<boolean, unknown> = input(false, {\n transform: booleanAttribute,\n });\n readonly closeOnClick: InputSignal<boolean | undefined> = input<boolean | undefined>(undefined);\n readonly select: OutputEmitterRef<CustomEvent> = output<CustomEvent>();\n\n private readonly itemContext: NavigationMenuItemContext | null = inject(\n NAVIGATION_MENU_ITEM_CONTEXT,\n { optional: true },\n );\n\n constructor() {\n const context = injectNavigationMenuContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => {\n const value = this.value() ?? this.itemContext?.value();\n if (value === undefined) {\n throw new Error(\n \"[navigation-menu-link] requires either a [value] input or an ancestor [navigation-menu-item].\",\n );\n }\n return context.api().getLinkProps({\n value,\n current: this.current(),\n closeOnClick: this.closeOnClick(),\n onSelect: (event) => {\n this.select.emit(event);\n },\n });\n },\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n EmbeddedViewRef,\n Renderer2,\n TemplateRef,\n ViewContainerRef,\n effect,\n forwardRef,\n inject,\n untracked,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\nimport { PRESENCE_CONTEXT, usePresence } from \"@wirekyt/angular/presence\";\n\nimport {\n injectNavigationMenuContext,\n injectNavigationMenuRenderStrategyContext,\n} from \"./use-context\";\n\n@Directive({\n selector: \"[navigation-menu-indicator]\",\n standalone: true,\n exportAs: \"navigationMenuIndicator\",\n providers: [\n {\n provide: PRESENCE_CONTEXT,\n useFactory: (indicator: NavigationMenuIndicator) => indicator.presence,\n deps: [forwardRef(() => NavigationMenuIndicator)],\n },\n ],\n})\nexport class NavigationMenuIndicator {\n private readonly context = injectNavigationMenuContext();\n private readonly renderStrategy = injectNavigationMenuRenderStrategyContext();\n readonly presence = usePresence({\n context: () => ({\n present: this.context.api().open,\n lazyMount: this.renderStrategy.lazyMount(),\n unmountOnExit: this.renderStrategy.unmountOnExit(),\n }),\n });\n\n constructor() {\n const template = inject(TemplateRef<unknown>, { optional: true });\n const container = inject(ViewContainerRef);\n const host = inject(ElementRef);\n const elementRef = template ? { nativeElement: null as HTMLElement | null } : host;\n let view: EmbeddedViewRef<unknown> | undefined;\n\n effect(() => {\n const unmounted = this.presence.unmounted();\n if (template) {\n if (unmounted) {\n elementRef.nativeElement = null;\n container.clear();\n view = undefined;\n } else if (!view) {\n view = container.createEmbeddedView(template);\n elementRef.nativeElement =\n view.rootNodes.find((node: Node) => node.nodeType === 1) ?? null;\n }\n }\n untracked(() => this.presence.setNode(elementRef.nativeElement));\n });\n\n bindProps({\n elementRef,\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => {\n this.presence.unmounted();\n return {\n ...this.context.api().getIndicatorProps(),\n ...this.presence.getPresenceProps(),\n };\n },\n });\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectNavigationMenuContext } from \"./use-context\";\nimport { injectNavigationMenuItemContext } from \"./use-item-context\";\n\n@Directive({\n selector: \"[navigation-menu-item-indicator]\",\n standalone: true,\n exportAs: \"navigationMenuItemIndicator\",\n})\nexport class NavigationMenuItemIndicator {\n constructor() {\n const context = injectNavigationMenuContext();\n const item = injectNavigationMenuItemContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () =>\n context.api().getItemIndicatorProps({\n value: item.value(),\n disabled: item.disabled(),\n }),\n });\n }\n}\n","import { InjectionToken, inject, type Signal } from \"@angular/core\";\n\nimport type { NavigationMenuViewportProps } from \"./types\";\n\nexport interface NavigationMenuViewportContext {\n readonly align: Signal<NavigationMenuViewportProps[\"align\"]>;\n}\n\nexport const NAVIGATION_MENU_VIEWPORT_CONTEXT = new InjectionToken<NavigationMenuViewportContext>(\n \"WIREKYT.NAVIGATION_MENU_VIEWPORT_CONTEXT\",\n);\n\nexport function injectNavigationMenuViewportContext(): NavigationMenuViewportContext {\n return inject(NAVIGATION_MENU_VIEWPORT_CONTEXT);\n}\n","import {\n DestroyRef,\n Directive,\n ElementRef,\n EmbeddedViewRef,\n Renderer2,\n TemplateRef,\n ViewContainerRef,\n effect,\n forwardRef,\n inject,\n untracked,\n} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\nimport { PRESENCE_CONTEXT, usePresence } from \"@wirekyt/angular/presence\";\n\nimport {\n injectNavigationMenuContext,\n injectNavigationMenuRenderStrategyContext,\n} from \"./use-context\";\nimport { injectNavigationMenuViewportContext } from \"./use-viewport-context\";\n\n@Directive({\n selector: \"[navigation-menu-viewport]\",\n standalone: true,\n exportAs: \"navigationMenuViewport\",\n providers: [\n {\n provide: PRESENCE_CONTEXT,\n useFactory: (viewport: NavigationMenuViewport) => viewport.presence,\n deps: [forwardRef(() => NavigationMenuViewport)],\n },\n ],\n})\nexport class NavigationMenuViewport {\n private readonly context = injectNavigationMenuContext();\n private readonly viewport = injectNavigationMenuViewportContext();\n private readonly renderStrategy = injectNavigationMenuRenderStrategyContext();\n readonly presence = usePresence({\n context: () => ({\n present: this.context.api().open,\n lazyMount: this.renderStrategy.lazyMount(),\n unmountOnExit: this.renderStrategy.unmountOnExit(),\n }),\n });\n\n constructor() {\n const template = inject(TemplateRef<unknown>, { optional: true });\n const container = inject(ViewContainerRef);\n const host = inject(ElementRef);\n const elementRef = template ? { nativeElement: null as HTMLElement | null } : host;\n let view: EmbeddedViewRef<unknown> | undefined;\n\n effect(() => {\n const unmounted = this.presence.unmounted();\n if (template) {\n if (unmounted) {\n elementRef.nativeElement = null;\n container.clear();\n view = undefined;\n } else if (!view) {\n view = container.createEmbeddedView(template);\n elementRef.nativeElement =\n view.rootNodes.find((node: Node) => node.nodeType === 1) ?? null;\n }\n }\n untracked(() => this.presence.setNode(elementRef.nativeElement));\n });\n\n bindProps({\n elementRef,\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => {\n this.presence.unmounted();\n return {\n ...this.context.api().getViewportProps({ align: this.viewport.align() }),\n ...this.presence.getPresenceProps(),\n };\n },\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} from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport type { NavigationMenuViewportProps } from \"./types\";\n\nimport { injectNavigationMenuContext } from \"./use-context\";\nimport {\n NAVIGATION_MENU_VIEWPORT_CONTEXT,\n type NavigationMenuViewportContext,\n} from \"./use-viewport-context\";\n\n@Directive({\n selector: \"[navigation-menu-viewport-positioner]\",\n standalone: true,\n exportAs: \"navigationMenuViewportPositioner\",\n providers: [\n {\n provide: NAVIGATION_MENU_VIEWPORT_CONTEXT,\n useFactory: (positioner: NavigationMenuViewportPositioner) => positioner.getViewportContext(),\n deps: [forwardRef(() => NavigationMenuViewportPositioner)],\n },\n ],\n})\nexport class NavigationMenuViewportPositioner {\n readonly align: InputSignal<NavigationMenuViewportProps[\"align\"]> =\n input<NavigationMenuViewportProps[\"align\"]>(undefined);\n\n private readonly viewportContext: NavigationMenuViewportContext = {\n align: computed(() => this.align()),\n };\n\n constructor() {\n const context = injectNavigationMenuContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () =>\n context.api().getViewportPositionerProps({\n align: this.align(),\n }),\n });\n }\n\n getViewportContext(): NavigationMenuViewportContext {\n return this.viewportContext;\n }\n}\n","import { DestroyRef, Directive, ElementRef, Renderer2, inject } from \"@angular/core\";\nimport { bindProps } from \"@wirekyt/angular\";\n\nimport { injectNavigationMenuContext } from \"./use-context\";\nimport { NAVIGATION_MENU_ITEM_CONTEXT } from \"./use-item-context\";\n\n@Directive({\n selector: \"[navigation-menu-arrow]\",\n standalone: true,\n exportAs: \"navigationMenuArrow\",\n})\nexport class NavigationMenuArrow {\n private readonly itemContext = inject(NAVIGATION_MENU_ITEM_CONTEXT, { optional: true });\n\n constructor() {\n const context = injectNavigationMenuContext();\n bindProps({\n elementRef: inject(ElementRef),\n renderer: inject(Renderer2),\n destroyRef: inject(DestroyRef),\n props: () => {\n const value = this.itemContext?.value();\n if (value != null) {\n return context.api().getArrowProps({ value });\n }\n return context.api().getArrowProps();\n },\n });\n }\n}\n","import {\n DestroyRef,\n Directive,\n TemplateRef,\n ViewContainerRef,\n effect,\n inject,\n} from \"@angular/core\";\n\nimport type { UseNavigationMenuReturn } from \"./use\";\n\nimport { injectNavigationMenuContext } from \"./use-context\";\n\nexport interface NavigationMenuContextTemplate {\n $implicit: UseNavigationMenuReturn[\"api\"];\n api: UseNavigationMenuReturn[\"api\"];\n}\n\n@Directive({\n selector: \"[navigation-menu-context]\",\n standalone: true,\n exportAs: \"navigationMenuContext\",\n})\nexport class NavigationMenuContext {\n static ngTemplateContextGuard(\n _directive: NavigationMenuContext,\n context: unknown,\n ): context is NavigationMenuContextTemplate {\n void context;\n return true;\n }\n\n private readonly navigationMenu = injectNavigationMenuContext();\n private readonly templateRef = inject<TemplateRef<NavigationMenuContextTemplate>>(TemplateRef);\n private readonly viewContainer = inject(ViewContainerRef);\n\n constructor() {\n const view = this.viewContainer.createEmbeddedView(this.templateRef, {\n $implicit: this.navigationMenu.api,\n api: this.navigationMenu.api,\n });\n\n effect(() => {\n this.navigationMenu.api();\n view.detectChanges();\n });\n\n inject(DestroyRef).onDestroy(() => view.destroy());\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';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jC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACT,oBAAA,QAAQ,EAAE,2BAA2B;AACrC,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,uBAAuB;AAClC,iBAAA;;;ACtBD;;AAEG;;;;"}
|
|
@@ -0,0 +1,467 @@
|
|
|
1
|
+
import * as numberInput from '@wirekyt/dom/machines/number-input';
|
|
2
|
+
export { anatomy as numberInputAnatomy } from '@wirekyt/dom/machines/number-input';
|
|
3
|
+
import * as i0 from '@angular/core';
|
|
4
|
+
import { InjectionToken, inject, input, model, booleanAttribute, output, signal, effect, DestroyRef, Renderer2, ElementRef, forwardRef, Directive, TemplateRef, ViewContainerRef } from '@angular/core';
|
|
5
|
+
import { injectLocale, injectEnvironment, createId, useMachine, createCvaController, bindProps } from '@wirekyt/angular';
|
|
6
|
+
import { injectFieldContextOptional } from '@wirekyt/angular/field';
|
|
7
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
8
|
+
|
|
9
|
+
const NUMBER_INPUT_CONTEXT = new InjectionToken("WIREKYT.NUMBER_INPUT_CONTEXT");
|
|
10
|
+
function injectNumberInputContext() {
|
|
11
|
+
return inject(NUMBER_INPUT_CONTEXT);
|
|
12
|
+
}
|
|
13
|
+
|
|
14
|
+
function useNumberInput(options = { context: () => ({}) }) {
|
|
15
|
+
const locale = injectLocale();
|
|
16
|
+
const environment = injectEnvironment();
|
|
17
|
+
const field = injectFieldContextOptional();
|
|
18
|
+
const fallbackId = createId();
|
|
19
|
+
return useMachine({
|
|
20
|
+
machine: numberInput.machine,
|
|
21
|
+
context: () => {
|
|
22
|
+
const props = options.context();
|
|
23
|
+
const { locale: valueLocale, ...restProps } = props;
|
|
24
|
+
const merged = {
|
|
25
|
+
dir: locale.dir,
|
|
26
|
+
locale: valueLocale ?? locale.locale,
|
|
27
|
+
getRootNode: environment.getRootNode,
|
|
28
|
+
...restProps,
|
|
29
|
+
id: props.id ?? fallbackId,
|
|
30
|
+
};
|
|
31
|
+
if (field) {
|
|
32
|
+
const fieldIds = field.ids;
|
|
33
|
+
merged.ids = {
|
|
34
|
+
label: fieldIds.label,
|
|
35
|
+
input: fieldIds.control,
|
|
36
|
+
...props.ids,
|
|
37
|
+
};
|
|
38
|
+
const disabled = Boolean(props.disabled) || field.disabled();
|
|
39
|
+
const invalid = Boolean(props.invalid) || field.invalid();
|
|
40
|
+
const readOnly = Boolean(props.readOnly) || field.readOnly();
|
|
41
|
+
const required = Boolean(props.required) || field.required();
|
|
42
|
+
merged.disabled = disabled || undefined;
|
|
43
|
+
merged.invalid = invalid || undefined;
|
|
44
|
+
merged.readOnly = readOnly || undefined;
|
|
45
|
+
merged.required = required || undefined;
|
|
46
|
+
}
|
|
47
|
+
return merged;
|
|
48
|
+
},
|
|
49
|
+
connect: (service, normalize) => numberInput.connect(service, normalize),
|
|
50
|
+
});
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
class NumberInputRoot {
|
|
54
|
+
id = input(undefined, /* @ts-ignore */
|
|
55
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
56
|
+
elementIds = input(undefined, { ...(ngDevMode ? { debugName: "elementIds" } : /* istanbul ignore next */ {}), alias: "ids" });
|
|
57
|
+
value = model(undefined, /* @ts-ignore */
|
|
58
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
59
|
+
defaultValue = input(undefined, /* @ts-ignore */
|
|
60
|
+
...(ngDevMode ? [{ debugName: "defaultValue" }] : /* istanbul ignore next */ []));
|
|
61
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
62
|
+
readOnly = input(false, { ...(ngDevMode ? { debugName: "readOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
63
|
+
invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
64
|
+
required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
65
|
+
name = input(undefined, /* @ts-ignore */
|
|
66
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
67
|
+
form = input(undefined, /* @ts-ignore */
|
|
68
|
+
...(ngDevMode ? [{ debugName: "form" }] : /* istanbul ignore next */ []));
|
|
69
|
+
min = input(undefined, /* @ts-ignore */
|
|
70
|
+
...(ngDevMode ? [{ debugName: "min" }] : /* istanbul ignore next */ []));
|
|
71
|
+
max = input(undefined, /* @ts-ignore */
|
|
72
|
+
...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
|
|
73
|
+
step = input(undefined, /* @ts-ignore */
|
|
74
|
+
...(ngDevMode ? [{ debugName: "step" }] : /* istanbul ignore next */ []));
|
|
75
|
+
largeStep = input(undefined, /* @ts-ignore */
|
|
76
|
+
...(ngDevMode ? [{ debugName: "largeStep" }] : /* istanbul ignore next */ []));
|
|
77
|
+
smallStep = input(undefined, /* @ts-ignore */
|
|
78
|
+
...(ngDevMode ? [{ debugName: "smallStep" }] : /* istanbul ignore next */ []));
|
|
79
|
+
pattern = input(undefined, /* @ts-ignore */
|
|
80
|
+
...(ngDevMode ? [{ debugName: "pattern" }] : /* istanbul ignore next */ []));
|
|
81
|
+
allowMouseWheel = input(false, { ...(ngDevMode ? { debugName: "allowMouseWheel" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
82
|
+
allowOverflow = input(false, { ...(ngDevMode ? { debugName: "allowOverflow" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
83
|
+
clampValueOnBlur = input(true, { ...(ngDevMode ? { debugName: "clampValueOnBlur" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
84
|
+
focusInputOnChange = input(true, { ...(ngDevMode ? { debugName: "focusInputOnChange" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
85
|
+
spinOnPress = input(true, { ...(ngDevMode ? { debugName: "spinOnPress" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
86
|
+
inputMode = input(undefined, /* @ts-ignore */
|
|
87
|
+
...(ngDevMode ? [{ debugName: "inputMode" }] : /* istanbul ignore next */ []));
|
|
88
|
+
locale = input(undefined, /* @ts-ignore */
|
|
89
|
+
...(ngDevMode ? [{ debugName: "locale" }] : /* istanbul ignore next */ []));
|
|
90
|
+
formatOptions = input(undefined, /* @ts-ignore */
|
|
91
|
+
...(ngDevMode ? [{ debugName: "formatOptions" }] : /* istanbul ignore next */ []));
|
|
92
|
+
translations = input(undefined, /* @ts-ignore */
|
|
93
|
+
...(ngDevMode ? [{ debugName: "translations" }] : /* istanbul ignore next */ []));
|
|
94
|
+
focusChange = output();
|
|
95
|
+
valueDetailsChange = output();
|
|
96
|
+
valueCommit = output();
|
|
97
|
+
valueInvalid = output();
|
|
98
|
+
_disabledFromForm = signal(false, /* @ts-ignore */
|
|
99
|
+
...(ngDevMode ? [{ debugName: "_disabledFromForm" }] : /* istanbul ignore next */ []));
|
|
100
|
+
_pendingInternalWrites = 0;
|
|
101
|
+
_hasExternalBinding = false;
|
|
102
|
+
_hasReceivedFormWrite = false;
|
|
103
|
+
cva = createCvaController({
|
|
104
|
+
value: this.value,
|
|
105
|
+
setDisabled: (disabled) => this._disabledFromForm.set(disabled),
|
|
106
|
+
componentName: "NumberInputRoot",
|
|
107
|
+
hasExternalModelBinding: () => this._hasExternalBinding,
|
|
108
|
+
});
|
|
109
|
+
machine = useNumberInput({
|
|
110
|
+
context: () => ({
|
|
111
|
+
id: this.id(),
|
|
112
|
+
ids: this.elementIds(),
|
|
113
|
+
value: this.value(),
|
|
114
|
+
defaultValue: this.defaultValue(),
|
|
115
|
+
disabled: this.disabled() || this._disabledFromForm() || undefined,
|
|
116
|
+
readOnly: this.readOnly() || undefined,
|
|
117
|
+
invalid: this.invalid() || undefined,
|
|
118
|
+
required: this.required() || undefined,
|
|
119
|
+
name: this.name(),
|
|
120
|
+
form: this.form(),
|
|
121
|
+
min: this.min(),
|
|
122
|
+
max: this.max(),
|
|
123
|
+
step: this.step(),
|
|
124
|
+
largeStep: this.largeStep(),
|
|
125
|
+
smallStep: this.smallStep(),
|
|
126
|
+
pattern: this.pattern(),
|
|
127
|
+
allowMouseWheel: this.allowMouseWheel() || undefined,
|
|
128
|
+
allowOverflow: this.allowOverflow() || undefined,
|
|
129
|
+
clampValueOnBlur: this.clampValueOnBlur(),
|
|
130
|
+
focusInputOnChange: this.focusInputOnChange(),
|
|
131
|
+
spinOnPress: this.spinOnPress(),
|
|
132
|
+
inputMode: this.inputMode(),
|
|
133
|
+
locale: this.locale(),
|
|
134
|
+
formatOptions: this.formatOptions(),
|
|
135
|
+
translations: this.translations(),
|
|
136
|
+
onValueChange: (details) => {
|
|
137
|
+
if (this.value() !== details.value) {
|
|
138
|
+
this._pendingInternalWrites++;
|
|
139
|
+
this.value.set(details.value);
|
|
140
|
+
}
|
|
141
|
+
this.cva.notifyValueChange(details.value);
|
|
142
|
+
this.valueDetailsChange.emit(details);
|
|
143
|
+
},
|
|
144
|
+
onValueCommit: (details) => {
|
|
145
|
+
this.valueCommit.emit(details);
|
|
146
|
+
this.cva.markTouched();
|
|
147
|
+
},
|
|
148
|
+
onFocusChange: (details) => {
|
|
149
|
+
this.focusChange.emit(details);
|
|
150
|
+
if (!details.focused) {
|
|
151
|
+
this.cva.markTouched();
|
|
152
|
+
}
|
|
153
|
+
},
|
|
154
|
+
onValueInvalid: (details) => {
|
|
155
|
+
this.valueInvalid.emit(details);
|
|
156
|
+
},
|
|
157
|
+
}),
|
|
158
|
+
});
|
|
159
|
+
state = this.machine.state;
|
|
160
|
+
api = this.machine.api;
|
|
161
|
+
service = this.machine.service;
|
|
162
|
+
send = this.machine.send;
|
|
163
|
+
constructor() {
|
|
164
|
+
let firstRun = true;
|
|
165
|
+
effect(() => {
|
|
166
|
+
void this.value();
|
|
167
|
+
if (firstRun) {
|
|
168
|
+
firstRun = false;
|
|
169
|
+
this._pendingInternalWrites = 0;
|
|
170
|
+
return;
|
|
171
|
+
}
|
|
172
|
+
if (this._pendingInternalWrites > 0) {
|
|
173
|
+
this._pendingInternalWrites--;
|
|
174
|
+
return;
|
|
175
|
+
}
|
|
176
|
+
this._hasExternalBinding = true;
|
|
177
|
+
});
|
|
178
|
+
bindProps({
|
|
179
|
+
elementRef: inject(ElementRef),
|
|
180
|
+
renderer: inject(Renderer2),
|
|
181
|
+
destroyRef: inject(DestroyRef),
|
|
182
|
+
props: () => this.api().getRootProps(),
|
|
183
|
+
});
|
|
184
|
+
}
|
|
185
|
+
writeValue(value) {
|
|
186
|
+
const next = value === null ? undefined : value;
|
|
187
|
+
const current = this.value();
|
|
188
|
+
if (!this._hasReceivedFormWrite && current !== undefined) {
|
|
189
|
+
this._hasExternalBinding = true;
|
|
190
|
+
}
|
|
191
|
+
this._hasReceivedFormWrite = true;
|
|
192
|
+
if (current !== next) {
|
|
193
|
+
this._pendingInternalWrites++;
|
|
194
|
+
}
|
|
195
|
+
this.cva.writeValue(value);
|
|
196
|
+
}
|
|
197
|
+
registerOnChange(fn) {
|
|
198
|
+
this.cva.registerOnChange(fn);
|
|
199
|
+
}
|
|
200
|
+
registerOnTouched(fn) {
|
|
201
|
+
this.cva.registerOnTouched(fn);
|
|
202
|
+
}
|
|
203
|
+
setDisabledState(disabled) {
|
|
204
|
+
this.cva.setDisabledState(disabled);
|
|
205
|
+
}
|
|
206
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputRoot, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
207
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: NumberInputRoot, isStandalone: true, selector: "[number-input-root]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, elementIds: { classPropertyName: "elementIds", publicName: "ids", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, defaultValue: { classPropertyName: "defaultValue", publicName: "defaultValue", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readOnly: { classPropertyName: "readOnly", publicName: "readOnly", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, form: { classPropertyName: "form", publicName: "form", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, step: { classPropertyName: "step", publicName: "step", isSignal: true, isRequired: false, transformFunction: null }, largeStep: { classPropertyName: "largeStep", publicName: "largeStep", isSignal: true, isRequired: false, transformFunction: null }, smallStep: { classPropertyName: "smallStep", publicName: "smallStep", isSignal: true, isRequired: false, transformFunction: null }, pattern: { classPropertyName: "pattern", publicName: "pattern", isSignal: true, isRequired: false, transformFunction: null }, allowMouseWheel: { classPropertyName: "allowMouseWheel", publicName: "allowMouseWheel", isSignal: true, isRequired: false, transformFunction: null }, allowOverflow: { classPropertyName: "allowOverflow", publicName: "allowOverflow", isSignal: true, isRequired: false, transformFunction: null }, clampValueOnBlur: { classPropertyName: "clampValueOnBlur", publicName: "clampValueOnBlur", isSignal: true, isRequired: false, transformFunction: null }, focusInputOnChange: { classPropertyName: "focusInputOnChange", publicName: "focusInputOnChange", isSignal: true, isRequired: false, transformFunction: null }, spinOnPress: { classPropertyName: "spinOnPress", publicName: "spinOnPress", isSignal: true, isRequired: false, transformFunction: null }, inputMode: { classPropertyName: "inputMode", publicName: "inputMode", isSignal: true, isRequired: false, transformFunction: null }, locale: { classPropertyName: "locale", publicName: "locale", isSignal: true, isRequired: false, transformFunction: null }, formatOptions: { classPropertyName: "formatOptions", publicName: "formatOptions", isSignal: true, isRequired: false, transformFunction: null }, translations: { classPropertyName: "translations", publicName: "translations", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", focusChange: "focusChange", valueDetailsChange: "valueDetailsChange", valueCommit: "valueCommit", valueInvalid: "valueInvalid" }, providers: [
|
|
208
|
+
{ provide: NUMBER_INPUT_CONTEXT, useExisting: forwardRef(() => NumberInputRoot) },
|
|
209
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => NumberInputRoot), multi: true },
|
|
210
|
+
], exportAs: ["numberInputRoot"], ngImport: i0 });
|
|
211
|
+
}
|
|
212
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputRoot, decorators: [{
|
|
213
|
+
type: Directive,
|
|
214
|
+
args: [{
|
|
215
|
+
selector: "[number-input-root]",
|
|
216
|
+
standalone: true,
|
|
217
|
+
exportAs: "numberInputRoot",
|
|
218
|
+
providers: [
|
|
219
|
+
{ provide: NUMBER_INPUT_CONTEXT, useExisting: forwardRef(() => NumberInputRoot) },
|
|
220
|
+
{ provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(() => NumberInputRoot), multi: true },
|
|
221
|
+
],
|
|
222
|
+
}]
|
|
223
|
+
}], ctorParameters: () => [], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], elementIds: [{ type: i0.Input, args: [{ isSignal: true, alias: "ids", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], defaultValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "defaultValue", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readOnly", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], form: [{ type: i0.Input, args: [{ isSignal: true, alias: "form", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], step: [{ type: i0.Input, args: [{ isSignal: true, alias: "step", required: false }] }], largeStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "largeStep", required: false }] }], smallStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "smallStep", required: false }] }], pattern: [{ type: i0.Input, args: [{ isSignal: true, alias: "pattern", required: false }] }], allowMouseWheel: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowMouseWheel", required: false }] }], allowOverflow: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowOverflow", required: false }] }], clampValueOnBlur: [{ type: i0.Input, args: [{ isSignal: true, alias: "clampValueOnBlur", required: false }] }], focusInputOnChange: [{ type: i0.Input, args: [{ isSignal: true, alias: "focusInputOnChange", required: false }] }], spinOnPress: [{ type: i0.Input, args: [{ isSignal: true, alias: "spinOnPress", required: false }] }], inputMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputMode", required: false }] }], locale: [{ type: i0.Input, args: [{ isSignal: true, alias: "locale", required: false }] }], formatOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "formatOptions", required: false }] }], translations: [{ type: i0.Input, args: [{ isSignal: true, alias: "translations", required: false }] }], focusChange: [{ type: i0.Output, args: ["focusChange"] }], valueDetailsChange: [{ type: i0.Output, args: ["valueDetailsChange"] }], valueCommit: [{ type: i0.Output, args: ["valueCommit"] }], valueInvalid: [{ type: i0.Output, args: ["valueInvalid"] }] } });
|
|
224
|
+
|
|
225
|
+
class NumberInputRootProvider {
|
|
226
|
+
value = input.required(/* @ts-ignore */
|
|
227
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
228
|
+
get state() {
|
|
229
|
+
return this.value().state;
|
|
230
|
+
}
|
|
231
|
+
get api() {
|
|
232
|
+
return this.value().api;
|
|
233
|
+
}
|
|
234
|
+
get service() {
|
|
235
|
+
return this.value().service;
|
|
236
|
+
}
|
|
237
|
+
get send() {
|
|
238
|
+
return this.value().send;
|
|
239
|
+
}
|
|
240
|
+
constructor() {
|
|
241
|
+
bindProps({
|
|
242
|
+
elementRef: inject(ElementRef),
|
|
243
|
+
renderer: inject(Renderer2),
|
|
244
|
+
destroyRef: inject(DestroyRef),
|
|
245
|
+
props: () => this.value().api().getRootProps(),
|
|
246
|
+
});
|
|
247
|
+
}
|
|
248
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputRootProvider, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
249
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.1.3", type: NumberInputRootProvider, isStandalone: true, selector: "[number-input-root-provider]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, providers: [
|
|
250
|
+
{ provide: NUMBER_INPUT_CONTEXT, useExisting: forwardRef(() => NumberInputRootProvider) },
|
|
251
|
+
], exportAs: ["numberInputRootProvider"], ngImport: i0 });
|
|
252
|
+
}
|
|
253
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputRootProvider, decorators: [{
|
|
254
|
+
type: Directive,
|
|
255
|
+
args: [{
|
|
256
|
+
selector: "[number-input-root-provider]",
|
|
257
|
+
standalone: true,
|
|
258
|
+
exportAs: "numberInputRootProvider",
|
|
259
|
+
providers: [
|
|
260
|
+
{ provide: NUMBER_INPUT_CONTEXT, useExisting: forwardRef(() => NumberInputRootProvider) },
|
|
261
|
+
],
|
|
262
|
+
}]
|
|
263
|
+
}], ctorParameters: () => [], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }] } });
|
|
264
|
+
|
|
265
|
+
class NumberInputLabel {
|
|
266
|
+
constructor() {
|
|
267
|
+
const context = injectNumberInputContext();
|
|
268
|
+
bindProps({
|
|
269
|
+
elementRef: inject(ElementRef),
|
|
270
|
+
renderer: inject(Renderer2),
|
|
271
|
+
destroyRef: inject(DestroyRef),
|
|
272
|
+
props: () => context.api().getLabelProps(),
|
|
273
|
+
});
|
|
274
|
+
}
|
|
275
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputLabel, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
276
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: NumberInputLabel, isStandalone: true, selector: "[number-input-label]", exportAs: ["numberInputLabel"], ngImport: i0 });
|
|
277
|
+
}
|
|
278
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputLabel, decorators: [{
|
|
279
|
+
type: Directive,
|
|
280
|
+
args: [{
|
|
281
|
+
selector: "[number-input-label]",
|
|
282
|
+
standalone: true,
|
|
283
|
+
exportAs: "numberInputLabel",
|
|
284
|
+
}]
|
|
285
|
+
}], ctorParameters: () => [] });
|
|
286
|
+
|
|
287
|
+
class NumberInputControl {
|
|
288
|
+
constructor() {
|
|
289
|
+
const context = injectNumberInputContext();
|
|
290
|
+
bindProps({
|
|
291
|
+
elementRef: inject(ElementRef),
|
|
292
|
+
renderer: inject(Renderer2),
|
|
293
|
+
destroyRef: inject(DestroyRef),
|
|
294
|
+
props: () => context.api().getControlProps(),
|
|
295
|
+
});
|
|
296
|
+
}
|
|
297
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputControl, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
298
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: NumberInputControl, isStandalone: true, selector: "[number-input-control]", exportAs: ["numberInputControl"], ngImport: i0 });
|
|
299
|
+
}
|
|
300
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputControl, decorators: [{
|
|
301
|
+
type: Directive,
|
|
302
|
+
args: [{
|
|
303
|
+
selector: "[number-input-control]",
|
|
304
|
+
standalone: true,
|
|
305
|
+
exportAs: "numberInputControl",
|
|
306
|
+
}]
|
|
307
|
+
}], ctorParameters: () => [] });
|
|
308
|
+
|
|
309
|
+
class NumberInputInput {
|
|
310
|
+
constructor() {
|
|
311
|
+
const context = injectNumberInputContext();
|
|
312
|
+
const field = injectFieldContextOptional();
|
|
313
|
+
const elementRef = inject(ElementRef);
|
|
314
|
+
const renderer = inject(Renderer2);
|
|
315
|
+
const destroyRef = inject(DestroyRef);
|
|
316
|
+
bindProps({
|
|
317
|
+
elementRef,
|
|
318
|
+
renderer,
|
|
319
|
+
destroyRef,
|
|
320
|
+
props: () => {
|
|
321
|
+
const props = context.api().getInputProps();
|
|
322
|
+
const { defaultValue: _defaultValue, ...rest } = props;
|
|
323
|
+
const describedBy = field?.ariaDescribedby();
|
|
324
|
+
if (describedBy) {
|
|
325
|
+
rest["aria-describedby"] = describedBy;
|
|
326
|
+
}
|
|
327
|
+
return rest;
|
|
328
|
+
},
|
|
329
|
+
});
|
|
330
|
+
}
|
|
331
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputInput, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
332
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: NumberInputInput, isStandalone: true, selector: "[number-input-input]", exportAs: ["numberInputInput"], ngImport: i0 });
|
|
333
|
+
}
|
|
334
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputInput, decorators: [{
|
|
335
|
+
type: Directive,
|
|
336
|
+
args: [{
|
|
337
|
+
selector: "[number-input-input]",
|
|
338
|
+
standalone: true,
|
|
339
|
+
exportAs: "numberInputInput",
|
|
340
|
+
}]
|
|
341
|
+
}], ctorParameters: () => [] });
|
|
342
|
+
|
|
343
|
+
class NumberInputIncrementTrigger {
|
|
344
|
+
constructor() {
|
|
345
|
+
const context = injectNumberInputContext();
|
|
346
|
+
bindProps({
|
|
347
|
+
elementRef: inject(ElementRef),
|
|
348
|
+
renderer: inject(Renderer2),
|
|
349
|
+
destroyRef: inject(DestroyRef),
|
|
350
|
+
props: () => context.api().getIncrementTriggerProps(),
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputIncrementTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
354
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: NumberInputIncrementTrigger, isStandalone: true, selector: "[number-input-increment-trigger]", exportAs: ["numberInputIncrementTrigger"], ngImport: i0 });
|
|
355
|
+
}
|
|
356
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputIncrementTrigger, decorators: [{
|
|
357
|
+
type: Directive,
|
|
358
|
+
args: [{
|
|
359
|
+
selector: "[number-input-increment-trigger]",
|
|
360
|
+
standalone: true,
|
|
361
|
+
exportAs: "numberInputIncrementTrigger",
|
|
362
|
+
}]
|
|
363
|
+
}], ctorParameters: () => [] });
|
|
364
|
+
|
|
365
|
+
class NumberInputDecrementTrigger {
|
|
366
|
+
constructor() {
|
|
367
|
+
const context = injectNumberInputContext();
|
|
368
|
+
bindProps({
|
|
369
|
+
elementRef: inject(ElementRef),
|
|
370
|
+
renderer: inject(Renderer2),
|
|
371
|
+
destroyRef: inject(DestroyRef),
|
|
372
|
+
props: () => context.api().getDecrementTriggerProps(),
|
|
373
|
+
});
|
|
374
|
+
}
|
|
375
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputDecrementTrigger, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
376
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: NumberInputDecrementTrigger, isStandalone: true, selector: "[number-input-decrement-trigger]", exportAs: ["numberInputDecrementTrigger"], ngImport: i0 });
|
|
377
|
+
}
|
|
378
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputDecrementTrigger, decorators: [{
|
|
379
|
+
type: Directive,
|
|
380
|
+
args: [{
|
|
381
|
+
selector: "[number-input-decrement-trigger]",
|
|
382
|
+
standalone: true,
|
|
383
|
+
exportAs: "numberInputDecrementTrigger",
|
|
384
|
+
}]
|
|
385
|
+
}], ctorParameters: () => [] });
|
|
386
|
+
|
|
387
|
+
class NumberInputScrubber {
|
|
388
|
+
constructor() {
|
|
389
|
+
const context = injectNumberInputContext();
|
|
390
|
+
bindProps({
|
|
391
|
+
elementRef: inject(ElementRef),
|
|
392
|
+
renderer: inject(Renderer2),
|
|
393
|
+
destroyRef: inject(DestroyRef),
|
|
394
|
+
props: () => context.api().getScrubberProps(),
|
|
395
|
+
});
|
|
396
|
+
}
|
|
397
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputScrubber, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
398
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: NumberInputScrubber, isStandalone: true, selector: "[number-input-scrubber]", exportAs: ["numberInputScrubber"], ngImport: i0 });
|
|
399
|
+
}
|
|
400
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputScrubber, decorators: [{
|
|
401
|
+
type: Directive,
|
|
402
|
+
args: [{
|
|
403
|
+
selector: "[number-input-scrubber]",
|
|
404
|
+
standalone: true,
|
|
405
|
+
exportAs: "numberInputScrubber",
|
|
406
|
+
}]
|
|
407
|
+
}], ctorParameters: () => [] });
|
|
408
|
+
|
|
409
|
+
class NumberInputValueText {
|
|
410
|
+
constructor() {
|
|
411
|
+
const context = injectNumberInputContext();
|
|
412
|
+
bindProps({
|
|
413
|
+
elementRef: inject(ElementRef),
|
|
414
|
+
renderer: inject(Renderer2),
|
|
415
|
+
destroyRef: inject(DestroyRef),
|
|
416
|
+
props: () => context.api().getValueTextProps(),
|
|
417
|
+
});
|
|
418
|
+
}
|
|
419
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputValueText, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
420
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: NumberInputValueText, isStandalone: true, selector: "[number-input-value-text]", exportAs: ["numberInputValueText"], ngImport: i0 });
|
|
421
|
+
}
|
|
422
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputValueText, decorators: [{
|
|
423
|
+
type: Directive,
|
|
424
|
+
args: [{
|
|
425
|
+
selector: "[number-input-value-text]",
|
|
426
|
+
standalone: true,
|
|
427
|
+
exportAs: "numberInputValueText",
|
|
428
|
+
}]
|
|
429
|
+
}], ctorParameters: () => [] });
|
|
430
|
+
|
|
431
|
+
class NumberInputContext {
|
|
432
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
433
|
+
void context;
|
|
434
|
+
return true;
|
|
435
|
+
}
|
|
436
|
+
numberInput = injectNumberInputContext();
|
|
437
|
+
templateRef = inject(TemplateRef);
|
|
438
|
+
viewContainer = inject(ViewContainerRef);
|
|
439
|
+
constructor() {
|
|
440
|
+
const view = this.viewContainer.createEmbeddedView(this.templateRef, {
|
|
441
|
+
$implicit: this.numberInput.api,
|
|
442
|
+
api: this.numberInput.api,
|
|
443
|
+
});
|
|
444
|
+
effect(() => {
|
|
445
|
+
this.numberInput.api();
|
|
446
|
+
view.detectChanges();
|
|
447
|
+
});
|
|
448
|
+
inject(DestroyRef).onDestroy(() => view.destroy());
|
|
449
|
+
}
|
|
450
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputContext, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
451
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.1.3", type: NumberInputContext, isStandalone: true, selector: "[number-input-context]", exportAs: ["numberInputContext"], ngImport: i0 });
|
|
452
|
+
}
|
|
453
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.3", ngImport: i0, type: NumberInputContext, decorators: [{
|
|
454
|
+
type: Directive,
|
|
455
|
+
args: [{
|
|
456
|
+
selector: "[number-input-context]",
|
|
457
|
+
standalone: true,
|
|
458
|
+
exportAs: "numberInputContext",
|
|
459
|
+
}]
|
|
460
|
+
}], ctorParameters: () => [] });
|
|
461
|
+
|
|
462
|
+
/**
|
|
463
|
+
* Generated bundle index. Do not edit.
|
|
464
|
+
*/
|
|
465
|
+
|
|
466
|
+
export { NUMBER_INPUT_CONTEXT, NumberInputContext, NumberInputControl, NumberInputDecrementTrigger, NumberInputIncrementTrigger, NumberInputInput, NumberInputLabel, NumberInputRoot, NumberInputRootProvider, NumberInputScrubber, NumberInputValueText, injectNumberInputContext, useNumberInput };
|
|
467
|
+
//# sourceMappingURL=wirekyt-angular-number-input.mjs.map
|