@radix-ng/primitives 0.16.0 → 0.17.0
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/checkbox/src/checkbox-input.directive.d.ts +2 -1
- package/compodoc/documentation.json +3032 -1690
- package/esm2022/accordion/index.mjs +4 -4
- package/esm2022/accordion/src/accordion-content.directive.mjs +3 -3
- package/esm2022/accordion/src/accordion-header.directive.mjs +3 -3
- package/esm2022/accordion/src/accordion-item.directive.mjs +3 -3
- package/esm2022/accordion/src/accordion-root.directive.mjs +3 -3
- package/esm2022/accordion/src/accordion-trigger.directive.mjs +3 -3
- package/esm2022/alert-dialog/index.mjs +4 -4
- package/esm2022/alert-dialog/src/alert-dialog-cancel.directive.mjs +3 -3
- package/esm2022/alert-dialog/src/alert-dialog-content.directive.mjs +3 -3
- package/esm2022/alert-dialog/src/alert-dialog-root.directive.mjs +3 -3
- package/esm2022/alert-dialog/src/alert-dialog-title.directive.mjs +3 -3
- package/esm2022/alert-dialog/src/alert-dialog-trigger.directive.mjs +3 -3
- package/esm2022/alert-dialog/src/alert-dialog.service.mjs +3 -3
- package/esm2022/aspect-ratio/src/aspect-ratio.directive.mjs +3 -3
- package/esm2022/avatar/src/avatar-fallback.directive.mjs +3 -3
- package/esm2022/avatar/src/avatar-image.directive.mjs +3 -3
- package/esm2022/avatar/src/avatar-root.directive.mjs +3 -3
- package/esm2022/checkbox/src/checkbox-button.directive.mjs +3 -3
- package/esm2022/checkbox/src/checkbox-indicator.directive.mjs +3 -3
- package/esm2022/checkbox/src/checkbox-input.directive.mjs +7 -4
- package/esm2022/checkbox/src/checkbox.directive.mjs +3 -3
- package/esm2022/collapsible/src/collapsible-content.directive.mjs +3 -3
- package/esm2022/collapsible/src/collapsible-root.directive.mjs +3 -3
- package/esm2022/collapsible/src/collapsible-trigger.directive.mjs +3 -3
- package/esm2022/context-menu/index.mjs +4 -4
- package/esm2022/context-menu/src/context-menu-content.directive.mjs +3 -3
- package/esm2022/context-menu/src/context-menu-item-checkbox.directive.mjs +3 -3
- package/esm2022/context-menu/src/context-menu-item-indicator.directive.mjs +3 -3
- package/esm2022/context-menu/src/context-menu-item-radio-group.directive.mjs +3 -3
- package/esm2022/context-menu/src/context-menu-item-radio.directive.mjs +3 -3
- package/esm2022/context-menu/src/context-menu-item-selectable.mjs +3 -3
- package/esm2022/context-menu/src/context-menu-item.directive.mjs +3 -3
- package/esm2022/context-menu/src/context-menu-label.directive.mjs +3 -3
- package/esm2022/context-menu/src/context-menu-separator.directive.mjs +3 -3
- package/esm2022/context-menu/src/context-menu-trigger.directive.mjs +3 -3
- package/esm2022/core/src/auto-focus.directive.mjs +3 -3
- package/esm2022/dialog/index.mjs +4 -4
- package/esm2022/dialog/src/dialog-close.directive.mjs +3 -3
- package/esm2022/dialog/src/dialog-content.directive.mjs +3 -3
- package/esm2022/dialog/src/dialog-description.directive.mjs +3 -3
- package/esm2022/dialog/src/dialog-dismiss.directive.mjs +3 -3
- package/esm2022/dialog/src/dialog-title.directive.mjs +3 -3
- package/esm2022/dialog/src/dialog-trigger.directive.mjs +3 -3
- package/esm2022/dialog/src/dialog.service.mjs +3 -3
- package/esm2022/dropdown-menu/index.mjs +4 -4
- package/esm2022/dropdown-menu/src/dropdown-menu-content.directive.mjs +3 -3
- package/esm2022/dropdown-menu/src/dropdown-menu-item-checkbox.directive.mjs +3 -3
- package/esm2022/dropdown-menu/src/dropdown-menu-item-indicator.directive.mjs +3 -3
- package/esm2022/dropdown-menu/src/dropdown-menu-item-radio-group.directive.mjs +3 -3
- package/esm2022/dropdown-menu/src/dropdown-menu-item-radio.directive.mjs +3 -3
- package/esm2022/dropdown-menu/src/dropdown-menu-item-selectable.mjs +3 -3
- package/esm2022/dropdown-menu/src/dropdown-menu-item.directive.mjs +3 -3
- package/esm2022/dropdown-menu/src/dropdown-menu-label.directive.mjs +3 -3
- package/esm2022/dropdown-menu/src/dropdown-menu-separator.directive.mjs +3 -3
- package/esm2022/dropdown-menu/src/dropdown-menu-trigger.directive.mjs +3 -3
- package/esm2022/label/src/label.directive.mjs +3 -3
- package/esm2022/menu/index.mjs +4 -4
- package/esm2022/menu/src/menu-content.directive.mjs +3 -3
- package/esm2022/menu/src/menu-directive.mjs +3 -3
- package/esm2022/menu/src/menu-group.directive.mjs +3 -3
- package/esm2022/menu/src/menu-item.directive.mjs +3 -3
- package/esm2022/menu/src/menu-label.directive.mjs +3 -3
- package/esm2022/menu/src/menu-separator.directive.mjs +3 -3
- package/esm2022/menubar/index.mjs +4 -4
- package/esm2022/menubar/src/menubar-content.directive.mjs +3 -3
- package/esm2022/menubar/src/menubar-item-checkbox.directive.mjs +3 -3
- package/esm2022/menubar/src/menubar-item-indicator.directive.mjs +3 -3
- package/esm2022/menubar/src/menubar-item-radio.directive.mjs +3 -3
- package/esm2022/menubar/src/menubar-item.directive.mjs +3 -3
- package/esm2022/menubar/src/menubar-radio-group.directive.mjs +3 -3
- package/esm2022/menubar/src/menubar-root.directive.mjs +3 -3
- package/esm2022/menubar/src/menubar-separator.directive.mjs +3 -3
- package/esm2022/menubar/src/menubar-trigger.directive.mjs +3 -3
- package/esm2022/progress/index.mjs +4 -4
- package/esm2022/progress/src/progress-indicator.directive.mjs +3 -3
- package/esm2022/progress/src/progress-root.directive.mjs +3 -3
- package/esm2022/radio/src/radio-indicator.directive.mjs +3 -3
- package/esm2022/radio/src/radio-item.directive.mjs +3 -3
- package/esm2022/radio/src/radio-root.directive.mjs +3 -3
- package/esm2022/select/index.mjs +65 -0
- package/esm2022/select/radix-ng-primitives-select.mjs +5 -0
- package/esm2022/select/src/select-content.directive.mjs +53 -0
- package/esm2022/select/src/select-group.directive.mjs +18 -0
- package/esm2022/select/src/select-icon.directive.mjs +18 -0
- package/esm2022/select/src/select-item-indicator.directive.mjs +23 -0
- package/esm2022/select/src/select-item.directive.mjs +116 -0
- package/esm2022/select/src/select-label.directive.mjs +15 -0
- package/esm2022/select/src/select-separator.directive.mjs +18 -0
- package/esm2022/select/src/select-trigger.directive.mjs +38 -0
- package/esm2022/select/src/select-value.directive.mjs +26 -0
- package/esm2022/select/src/select.component.mjs +233 -0
- package/esm2022/separator/src/separator.directive.mjs +3 -3
- package/esm2022/switch/index.mjs +4 -4
- package/esm2022/switch/src/switch-input.directive.mjs +3 -3
- package/esm2022/switch/src/switch-root.directive.mjs +3 -3
- package/esm2022/switch/src/switch-thumb.directive.mjs +3 -3
- package/esm2022/tabs/index.mjs +4 -4
- package/esm2022/tabs/src/tabs-content.directive.mjs +3 -3
- package/esm2022/tabs/src/tabs-context.service.mjs +3 -3
- package/esm2022/tabs/src/tabs-list.directive.mjs +3 -3
- package/esm2022/tabs/src/tabs-root.directive.mjs +3 -3
- package/esm2022/tabs/src/tabs-trigger.directive.mjs +3 -3
- package/esm2022/toggle/src/toggle-input.directive.mjs +3 -3
- package/esm2022/toggle/src/toggle.directive.mjs +3 -3
- package/esm2022/toggle-group/src/toggle-group-item.directive.mjs +3 -3
- package/esm2022/toggle-group/src/toggle-group-multiple.directive.mjs +3 -3
- package/esm2022/toggle-group/src/toggle-group.directive.mjs +3 -3
- package/esm2022/visually-hidden/src/visually-hidden-input-bubble.directive.mjs +3 -3
- package/esm2022/visually-hidden/src/visually-hidden-input.directive.mjs +3 -3
- package/esm2022/visually-hidden/src/visually-hidden.directive.mjs +3 -3
- package/fesm2022/radix-ng-primitives-accordion.mjs +19 -19
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +22 -22
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs +3 -3
- package/fesm2022/radix-ng-primitives-avatar.mjs +9 -9
- package/fesm2022/radix-ng-primitives-checkbox.mjs +15 -12
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collapsible.mjs +9 -9
- package/fesm2022/radix-ng-primitives-context-menu.mjs +34 -34
- package/fesm2022/radix-ng-primitives-core.mjs +3 -3
- package/fesm2022/radix-ng-primitives-dialog.mjs +25 -25
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs +34 -34
- package/fesm2022/radix-ng-primitives-label.mjs +3 -3
- package/fesm2022/radix-ng-primitives-menu.mjs +22 -22
- package/fesm2022/radix-ng-primitives-menubar.mjs +31 -31
- package/fesm2022/radix-ng-primitives-progress.mjs +10 -10
- package/fesm2022/radix-ng-primitives-radio.mjs +9 -9
- package/fesm2022/radix-ng-primitives-select.mjs +576 -0
- package/fesm2022/radix-ng-primitives-select.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-separator.mjs +3 -3
- package/fesm2022/radix-ng-primitives-switch.mjs +13 -13
- package/fesm2022/radix-ng-primitives-tabs.mjs +19 -19
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +9 -9
- package/fesm2022/radix-ng-primitives-toggle.mjs +6 -6
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs +9 -9
- package/package.json +7 -1
- package/select/README.md +1 -0
- package/select/index.d.ts +26 -0
- package/select/src/select-content.directive.d.ts +20 -0
- package/select/src/select-group.directive.d.ts +5 -0
- package/select/src/select-icon.directive.d.ts +5 -0
- package/select/src/select-item-indicator.directive.d.ts +7 -0
- package/select/src/select-item.directive.d.ts +47 -0
- package/select/src/select-label.directive.d.ts +5 -0
- package/select/src/select-separator.directive.d.ts +5 -0
- package/select/src/select-trigger.directive.d.ts +11 -0
- package/select/src/select-value.directive.d.ts +8 -0
- package/select/src/select.component.d.ts +81 -0
@@ -0,0 +1 @@
|
|
1
|
+
{"version":3,"file":"radix-ng-primitives-select.mjs","sources":["../../../packages/primitives/select/src/select-value.directive.ts","../../../packages/primitives/select/src/select-trigger.directive.ts","../../../packages/primitives/select/src/select.component.ts","../../../packages/primitives/select/src/select-item.directive.ts","../../../packages/primitives/select/src/select-content.directive.ts","../../../packages/primitives/select/src/select-group.directive.ts","../../../packages/primitives/select/src/select-icon.directive.ts","../../../packages/primitives/select/src/select-item-indicator.directive.ts","../../../packages/primitives/select/src/select-label.directive.ts","../../../packages/primitives/select/src/select-separator.directive.ts","../../../packages/primitives/select/index.ts","../../../packages/primitives/select/radix-ng-primitives-select.ts"],"sourcesContent":["import { Component, inject, Input } from '@angular/core';\nimport { RdxSelectComponent } from './select.component';\n\n@Component({\n selector: '[rdxSelectValue]',\n standalone: true,\n exportAs: 'rdxSelectValue',\n template: `\n {{ select.selectionModel.isEmpty() ? placeholder : select.selected }}\n `\n})\nexport class RdxSelectValueDirective {\n select = inject(RdxSelectComponent);\n\n @Input() placeholder: string;\n}\n","import { ContentChild, Directive, ElementRef, inject } from '@angular/core';\nimport { RdxSelectValueDirective } from './select-value.directive';\nimport { RdxSelectComponent } from './select.component';\n\n@Directive({\n selector: '[rdxSelectTrigger]',\n standalone: true,\n host: {\n '[attr.type]': '\"button\"',\n '[attr.role]': '\"combobox\"',\n '[attr.aria-autocomplete]': '\"none\"',\n '[attr.dir]': 'select.dir',\n '[attr.aria-expanded]': 'select.open',\n '[attr.aria-required]': 'select.required',\n\n '[attr.disabled]': 'select.disabled ? \"\" : null',\n '[attr.data-disabled]': 'select.disabled ? \"\" : null',\n '[attr.data-state]': \"select.open ? 'open': 'closed'\",\n '[attr.data-placeholder]': 'value.placeholder || null'\n }\n})\nexport class RdxSelectTriggerDirective {\n protected nativeElement = inject(ElementRef).nativeElement;\n protected select = inject(RdxSelectComponent);\n\n @ContentChild(RdxSelectValueDirective) protected value: RdxSelectValueDirective;\n\n focus() {\n this.nativeElement.focus();\n }\n}\n","import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';\nimport { Directionality } from '@angular/cdk/bidi';\nimport { SelectionModel } from '@angular/cdk/collections';\nimport { CdkConnectedOverlay, ConnectedPosition, Overlay, OverlayModule } from '@angular/cdk/overlay';\nimport {\n AfterContentInit,\n booleanAttribute,\n ChangeDetectorRef,\n Component,\n ContentChild,\n ContentChildren,\n DestroyRef,\n ElementRef,\n EventEmitter,\n inject,\n Input,\n NgZone,\n OnInit,\n Output,\n QueryList,\n ViewChild\n} from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { defer, delay, merge, Observable, Subscription, switchMap, take } from 'rxjs';\nimport { RdxSelectContentDirective } from './select-content.directive';\nimport { RdxSelectItemChange, RdxSelectItemDirective } from './select-item.directive';\nimport { RdxSelectTriggerDirective } from './select-trigger.directive';\n\nlet nextId = 0;\n\n@Component({\n standalone: true,\n selector: '[rdxSelect]',\n template: `\n <ng-content select=\"[rdxSelectTrigger]\" />\n\n <ng-template\n [cdkConnectedOverlayOpen]=\"open\"\n [cdkConnectedOverlayOrigin]=\"elementRef\"\n [cdkConnectedOverlayPositions]=\"positions\"\n [cdkConnectedOverlayScrollStrategy]=\"overlay.scrollStrategies.reposition()\"\n (attach)=\"onAttached()\"\n (backdropClick)=\"close()\"\n (detach)=\"onDetach()\"\n cdkConnectedOverlay\n >\n <ng-content select=\"[rdxSelectContent]\" />\n </ng-template>\n `,\n host: {\n '(click)': 'toggle()',\n '(keydown)': 'content.keyManager.onKeydown($event)'\n },\n imports: [\n OverlayModule\n ]\n})\nexport class RdxSelectComponent implements OnInit, AfterContentInit {\n protected overlay = inject(Overlay);\n protected elementRef = inject(ElementRef);\n protected changeDetectorRef = inject(ChangeDetectorRef);\n private readonly destroyRef = inject(DestroyRef);\n private readonly ngZone = inject(NgZone);\n\n @ContentChild(RdxSelectTriggerDirective) protected trigger: RdxSelectTriggerDirective;\n\n @ContentChild(RdxSelectContentDirective) protected content: RdxSelectContentDirective;\n\n @ContentChildren(RdxSelectItemDirective, { descendants: true }) items: QueryList<RdxSelectItemDirective>;\n\n @ViewChild(CdkConnectedOverlay, { static: false }) overlayDir: CdkConnectedOverlay;\n\n /** Deals with the selection logic. */\n selectionModel: SelectionModel<RdxSelectItemDirective>;\n\n /**\n * This position config ensures that the top \"start\" corner of the overlay\n * is aligned with the top \"start\" of the origin by default (overlapping\n * the trigger completely). If the panel cannot fit below the trigger, it\n * will fall back to a position above the trigger.\n */\n positions: ConnectedPosition[] = [\n {\n originX: 'start',\n originY: 'bottom',\n overlayX: 'start',\n overlayY: 'top'\n },\n {\n originX: 'start',\n originY: 'top',\n overlayX: 'start',\n overlayY: 'bottom'\n }\n ];\n\n private closeSubscription = Subscription.EMPTY;\n\n /**\n * @ignore\n */\n readonly dir = inject(Directionality, { optional: true });\n\n /**\n * @ignore\n */\n protected keyManager: ActiveDescendantKeyManager<RdxSelectItemDirective>;\n\n /**\n * @ignore\n */\n readonly id: string = `rdx-select-${nextId++}`;\n\n @Input() defaultValue: string;\n @Input() name: string;\n\n @Input({ transform: booleanAttribute }) defaultOpen: boolean;\n\n @Input({ transform: booleanAttribute }) open: boolean;\n\n /** Whether the Select is disabled. */\n @Input({ transform: booleanAttribute }) disabled: boolean;\n\n @Input({ transform: booleanAttribute }) required: boolean;\n\n /**\n * The controlled value of the item to expand\n */\n @Input()\n set value(value: string) {\n if (this._value !== value) {\n this._value = value;\n\n this.selectValue(value);\n\n this.changeDetectorRef.markForCheck();\n }\n }\n\n get value(): string | null {\n return this._value ?? this.defaultValue;\n }\n\n private _value?: string;\n\n @Output() readonly onValueChange: EventEmitter<string> = new EventEmitter<string>();\n\n @Output() readonly onOpenChange: EventEmitter<boolean> = new EventEmitter<boolean>();\n\n readonly optionSelectionChanges: Observable<RdxSelectItemChange> = defer(() => {\n if (this.content.options) {\n return merge(...this.content.options.map((option) => option.onSelectionChange));\n }\n\n return this.ngZone.onStable.asObservable().pipe(\n take(1),\n switchMap(() => this.optionSelectionChanges)\n );\n }) as Observable<RdxSelectItemChange>;\n\n get selected(): string | null {\n return this.selectionModel.selected[0].viewValue || null;\n }\n\n ngOnInit() {\n this.selectionModel = new SelectionModel<RdxSelectItemDirective>();\n\n this.selectionModel.changed.subscribe((changes) => {\n if (changes.added.length) {\n this.onValueChange.emit(this.selectionModel.selected[0].value);\n }\n\n if (changes.removed.length) {\n changes.removed.forEach((item) => (item.selected = false));\n }\n });\n }\n\n ngAfterContentInit() {\n this.selectDefaultValue();\n\n this.optionSelectionChanges.subscribe((event) => {\n this.selectionModel.clear();\n\n this.selectionModel.select(event.source);\n\n this.close();\n this.trigger.focus();\n });\n\n this.content.keyManager.tabOut.subscribe(() => {\n if (this.open) this.close();\n });\n\n if (this.defaultOpen) {\n this.openPanel();\n }\n }\n\n /**\n * Callback that is invoked when the overlay panel has been attached.\n */\n onAttached(): void {\n this.closeSubscription = this.closingActions()\n .pipe(takeUntilDestroyed(this.destroyRef))\n .pipe(delay(0))\n .subscribe(() => this.close());\n }\n\n onDetach() {\n this.close();\n this.closeSubscription.unsubscribe();\n }\n\n /** Toggles the overlay panel open or closed. */\n toggle(): void {\n if (this.open) {\n this.close();\n } else {\n this.openPanel();\n }\n }\n\n openPanel() {\n this.open = true;\n\n this.onOpenChange.emit(this.open);\n }\n\n close() {\n this.open = false;\n\n this.onOpenChange.emit(this.open);\n }\n\n updateActiveItem(item: RdxSelectItemDirective) {\n this.content.keyManager.updateActiveItem(item);\n }\n\n private selectDefaultValue(): void {\n if (!this.defaultValue) return;\n\n this.selectValue(this.defaultValue);\n }\n\n private selectValue(value: string): void {\n const option = this.content?.options.find((option) => option.value === value);\n\n if (option) {\n option.selected = true;\n option.highlighted = true;\n\n this.selectionModel.select(option);\n this.updateActiveItem(option);\n }\n }\n\n private closingActions() {\n return merge(this.overlayDir.overlayRef!.outsidePointerEvents(), this.overlayDir.overlayRef!.detachments());\n }\n}\n","import { Highlightable } from '@angular/cdk/a11y';\nimport { ENTER, SPACE } from '@angular/cdk/keycodes';\nimport { booleanAttribute, Directive, ElementRef, EventEmitter, inject, Input } from '@angular/core';\nimport { takeUntilDestroyed } from '@angular/core/rxjs-interop';\nimport { RdxSelectContentDirective } from './select-content.directive';\nimport { RdxSelectComponent } from './select.component';\n\nlet nextId = 0;\n\nexport class RdxSelectItemChange<T = RdxSelectItemDirective> {\n constructor(public source: T) {}\n}\n\n@Directive({\n selector: '[rdxSelectItem]',\n standalone: true,\n exportAs: 'rdxSelectItem',\n host: {\n '[attr.role]': '\"option\"',\n '[attr.data-state]': 'dataState',\n '[attr.aria-selected]': 'selected',\n '[attr.data-disabled]': 'disabled || null',\n '[attr.data-highlighted]': 'highlighted || null',\n '[attr.tabindex]': '-1',\n '(focus)': 'content.highlighted.next(this)',\n '(click)': 'selectViaInteraction()',\n '(keydown)': 'handleKeydown($event)',\n '(pointermove)': 'onPointerMove()'\n }\n})\nexport class RdxSelectItemDirective implements Highlightable {\n protected readonly select = inject(RdxSelectComponent);\n protected readonly content = inject(RdxSelectContentDirective);\n readonly onSelectionChange = new EventEmitter<RdxSelectItemChange>();\n protected readonly nativeElement = inject(ElementRef).nativeElement;\n\n highlighted: boolean = false;\n\n selected: boolean;\n\n get dataState(): string {\n return this.selected ? 'checked' : 'unchecked';\n }\n\n /**\n * The unique SelectItem id.\n * @ignore\n */\n readonly id: string = `rdx-select-item-${nextId++}`;\n\n @Input()\n set value(value: string) {\n this._value = value;\n }\n\n get value(): string {\n return this._value || this.id;\n }\n\n private _value?: string;\n\n @Input() textValue: string | null = null;\n\n /** Whether the SelectItem is disabled. */\n @Input({ transform: booleanAttribute })\n set disabled(value: boolean) {\n this._disabled = value;\n }\n\n get disabled(): boolean {\n return this._disabled;\n }\n\n private _disabled: boolean;\n\n get viewValue(): string {\n return this.textValue ?? this.nativeElement.textContent;\n }\n\n constructor() {\n this.content.highlighted.pipe(takeUntilDestroyed()).subscribe((value) => {\n if (value !== this) {\n this.highlighted = false;\n }\n });\n }\n\n /** Gets the label to be used when determining whether the option should be focused. */\n getLabel(): string {\n return this.viewValue;\n }\n\n /**\n * `Selects the option while indicating the selection came from the user. Used to\n * determine if the select's view -> model callback should be invoked.`\n */\n selectViaInteraction(): void {\n if (!this.disabled) {\n this.selected = true;\n\n this.onSelectionChange.emit(new RdxSelectItemChange(this));\n }\n }\n\n handleKeydown(event: KeyboardEvent): void {\n if (event.keyCode === ENTER || event.keyCode === SPACE) {\n this.selectViaInteraction();\n\n // Prevent the page from scrolling down and form submits.\n event.preventDefault();\n event.stopPropagation();\n }\n }\n\n setActiveStyles(): void {\n this.highlighted = true;\n this.nativeElement.focus({ preventScroll: true });\n }\n\n setInactiveStyles(): void {\n this.highlighted = false;\n }\n\n protected onPointerMove(): void {\n if (!this.highlighted) {\n this.nativeElement.focus({ preventScroll: true });\n this.select.updateActiveItem(this);\n }\n }\n}\n","import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';\nimport { Directionality } from '@angular/cdk/bidi';\nimport { AfterContentInit, ContentChildren, DestroyRef, Directive, inject, QueryList } from '@angular/core';\nimport { pairwise, startWith, Subject } from 'rxjs';\nimport { RdxSelectItemDirective } from './select-item.directive';\nimport { RdxSelectComponent } from './select.component';\n\n@Directive({\n selector: '[rdxSelectContent]',\n standalone: true,\n exportAs: 'rdxSelectContent',\n host: {\n '[attr.role]': '\"listbox\"',\n '[attr.data-state]': \"select.open ? 'open': 'closed'\",\n '[attr.data-side]': 'true',\n '[attr.data-align]': 'true',\n '(keydown)': 'keyManager.onKeydown($event)'\n }\n})\nexport class RdxSelectContentDirective implements AfterContentInit {\n protected readonly destroyRef = inject(DestroyRef);\n protected readonly dir = inject(Directionality, { optional: true });\n protected select = inject(RdxSelectComponent);\n\n readonly highlighted = new Subject<RdxSelectItemDirective>();\n\n keyManager: ActiveDescendantKeyManager<RdxSelectItemDirective>;\n\n @ContentChildren(RdxSelectItemDirective, { descendants: true })\n options: QueryList<RdxSelectItemDirective>;\n\n constructor() {\n this.highlighted.pipe(startWith(null), pairwise()).subscribe(([prev, item]) => {\n if (prev) {\n prev.highlighted = false;\n }\n\n if (item) {\n item.highlighted = true;\n }\n });\n }\n\n initKeyManager() {\n return new ActiveDescendantKeyManager<RdxSelectItemDirective>(this.options)\n .withTypeAhead()\n .withVerticalOrientation()\n .withHorizontalOrientation(this.dir?.value ?? 'ltr');\n }\n\n ngAfterContentInit(): void {\n this.keyManager = this.initKeyManager();\n }\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[rdxSelectGroup]',\n standalone: true,\n exportAs: 'rdxSelectGroup',\n host: {\n '[attr.role]': '\"group\"'\n }\n})\nexport class RdxSelectGroupDirective {}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[rdxSelectIcon]',\n standalone: true,\n exportAs: 'rdxSelectIcon',\n host: {\n '[attr.aria-hidden]': 'true'\n }\n})\nexport class RdxSelectIconDirective {}\n","import { Directive, inject } from '@angular/core';\nimport { RdxSelectItemDirective } from './select-item.directive';\n\n@Directive({\n selector: '[rdxSelectItemIndicator]',\n standalone: true,\n exportAs: 'rdxSelectItemIndicator',\n host: {\n '[attr.aria-hidden]': 'true',\n '[style.display]': 'item.selected ? \"\" : \"none\"'\n }\n})\nexport class RdxSelectItemIndicatorDirective {\n protected item = inject(RdxSelectItemDirective);\n}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[rdxSelectLabel]',\n standalone: true,\n exportAs: 'rdxSelectLabel'\n})\nexport class RdxSelectLabelDirective {}\n","import { Directive } from '@angular/core';\n\n@Directive({\n selector: '[rdxSelectSeparator]',\n standalone: true,\n exportAs: 'rdxSelectSeparator',\n host: {\n '[attr.aria-hidden]': 'true'\n }\n})\nexport class RdxSelectSeparatorDirective {}\n","import { NgModule } from '@angular/core';\nimport { RdxSelectContentDirective } from './src/select-content.directive';\nimport { RdxSelectGroupDirective } from './src/select-group.directive';\nimport { RdxSelectIconDirective } from './src/select-icon.directive';\nimport { RdxSelectItemIndicatorDirective } from './src/select-item-indicator.directive';\nimport { RdxSelectItemDirective } from './src/select-item.directive';\nimport { RdxSelectLabelDirective } from './src/select-label.directive';\nimport { RdxSelectSeparatorDirective } from './src/select-separator.directive';\nimport { RdxSelectTriggerDirective } from './src/select-trigger.directive';\nimport { RdxSelectValueDirective } from './src/select-value.directive';\nimport { RdxSelectComponent } from './src/select.component';\n\nexport * from './src/select-content.directive';\nexport * from './src/select-group.directive';\nexport * from './src/select-icon.directive';\nexport * from './src/select-item-indicator.directive';\nexport * from './src/select-item.directive';\nexport * from './src/select-label.directive';\nexport * from './src/select-separator.directive';\nexport * from './src/select-trigger.directive';\nexport * from './src/select-value.directive';\nexport * from './src/select.component';\n\nconst _imports = [\n RdxSelectContentDirective,\n RdxSelectGroupDirective,\n RdxSelectItemDirective,\n RdxSelectItemIndicatorDirective,\n RdxSelectLabelDirective,\n RdxSelectComponent,\n RdxSelectSeparatorDirective,\n RdxSelectTriggerDirective,\n RdxSelectValueDirective,\n RdxSelectIconDirective\n];\n\n@NgModule({\n imports: [..._imports],\n exports: [..._imports]\n})\nexport class RdxSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["nextId"],"mappings":";;;;;;;;;;;MAWa,uBAAuB,CAAA;AARpC,IAAA,WAAA,GAAA;AASI,QAAA,IAAA,CAAA,MAAM,GAAG,MAAM,CAAC,kBAAkB,CAAC;AAGtC;+GAJY,uBAAuB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAvB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,uBAAuB,EAJtB,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,kBAAA,EAAA,MAAA,EAAA,EAAA,WAAA,EAAA,aAAA,EAAA,EAAA,QAAA,EAAA,CAAA,gBAAA,CAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA;;AAET,IAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;;4FAEQ,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBARnC,SAAS;AAAC,YAAA,IAAA,EAAA,CAAA;AACP,oBAAA,QAAQ,EAAE,kBAAkB;AAC5B,oBAAA,UAAU,EAAE,IAAI;AAChB,oBAAA,QAAQ,EAAE,gBAAgB;AAC1B,oBAAA,QAAQ,EAAE;;AAET,IAAA;AACJ,iBAAA;8BAIY,WAAW,E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{
|
|
37
37
|
*/
|
38
38
|
this.computedAriaOrientation = computed(() => !this.decorative() && this.orientation() === 'vertical' ? 'vertical' : null);
|
39
39
|
}
|
40
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
41
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.
|
40
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxSeparatorRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
41
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.11", type: RdxSeparatorRootDirective, isStandalone: true, selector: "div[rdxSeparatorRoot]", inputs: { orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, decorative: { classPropertyName: "decorative", publicName: "decorative", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "computedRole()", "attr.aria-orientation": "computedAriaOrientation()", "attr.data-orientation": "orientation()" } }, ngImport: i0 }); }
|
42
42
|
}
|
43
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
43
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxSeparatorRootDirective, decorators: [{
|
44
44
|
type: Directive,
|
45
45
|
args: [{
|
46
46
|
selector: 'div[rdxSeparatorRoot]',
|
@@ -46,12 +46,12 @@ class RdxSwitchRootDirective {
|
|
46
46
|
this.checked.set(!this.checked());
|
47
47
|
this.onCheckedChange.emit(this.checked());
|
48
48
|
}
|
49
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
50
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.
|
49
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxSwitchRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
50
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.11", type: RdxSwitchRootDirective, isStandalone: true, selector: "button[rdxSwitchRoot]", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", onCheckedChange: "onCheckedChange" }, host: { attributes: { "role": "switch", "type": "button" }, listeners: { "click": "toggle()" }, properties: { "id": "elementId()", "attr.aria-checked": "checked()", "attr.aria-required": "required", "attr.data-state": "checked() ? \"checked\" : \"unchecked\"", "attr.data-disabled": "disabledState() ? \"true\" : null", "attr.disabled": "disabledState() ? disabledState() : null" } }, providers: [
|
51
51
|
{ provide: RdxSwitchToken, useExisting: RdxSwitchRootDirective }
|
52
52
|
], exportAs: ["rdxSwitchRoot"], ngImport: i0 }); }
|
53
53
|
}
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxSwitchRootDirective, decorators: [{
|
55
55
|
type: Directive,
|
56
56
|
args: [{
|
57
57
|
selector: 'button[rdxSwitchRoot]',
|
@@ -78,10 +78,10 @@ class RdxSwitchInputDirective {
|
|
78
78
|
constructor() {
|
79
79
|
this.switchRoot = injectSwitch();
|
80
80
|
}
|
81
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
82
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.
|
81
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxSwitchInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
82
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: RdxSwitchInputDirective, isStandalone: true, selector: "input[rdxSwitchInput]", host: { attributes: { "type": "checkbox", "tabindex": "-1" }, properties: { "attr.defaultChecked": "switchRoot.checked()", "attr.aria-checked": "switchRoot.checked()", "attr.aria-hidden": "true", "attr.aria-required": "switchRoot.required()", "attr.data-state": "switchRoot.checked() ? \"checked\" : \"unchecked\"", "attr.data-disabled": "switchRoot.disabledState() ? \"true\" : null", "attr.disabled": "switchRoot.disabledState() ? switchRoot.disabledState() : null", "attr.value": "switchRoot.checked() ? \"on\" : \"off\"" }, styleAttribute: "transform: translateX(-100%); position: absolute; overflow: hidden; pointerEvents: none; opacity: 0; margin: 0;" }, exportAs: ["rdxSwitchInput"], ngImport: i0 }); }
|
83
83
|
}
|
84
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
84
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxSwitchInputDirective, decorators: [{
|
85
85
|
type: Directive,
|
86
86
|
args: [{
|
87
87
|
selector: 'input[rdxSwitchInput]',
|
@@ -107,10 +107,10 @@ class RdxSwitchThumbDirective {
|
|
107
107
|
constructor() {
|
108
108
|
this.switchRoot = injectSwitch();
|
109
109
|
}
|
110
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
111
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.
|
110
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxSwitchThumbDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
111
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: RdxSwitchThumbDirective, isStandalone: true, selector: "span[rdxSwitchThumb]", host: { properties: { "attr.data-disabled": "switchRoot.disabledState() ? \"true\" : null", "attr.data-state": "switchRoot.checked() ? \"checked\" : \"unchecked\"" } }, exportAs: ["rdxSwitchThumb"], ngImport: i0 }); }
|
112
112
|
}
|
113
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
113
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxSwitchThumbDirective, decorators: [{
|
114
114
|
type: Directive,
|
115
115
|
args: [{
|
116
116
|
selector: 'span[rdxSwitchThumb]',
|
@@ -129,15 +129,15 @@ const switchImports = [
|
|
129
129
|
RdxSwitchThumbDirective
|
130
130
|
];
|
131
131
|
class RdxSwitchModule {
|
132
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
133
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.
|
132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxSwitchModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
133
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: RdxSwitchModule, imports: [RdxSwitchRootDirective,
|
134
134
|
RdxSwitchInputDirective,
|
135
135
|
RdxSwitchThumbDirective], exports: [RdxSwitchRootDirective,
|
136
136
|
RdxSwitchInputDirective,
|
137
137
|
RdxSwitchThumbDirective] }); }
|
138
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.
|
138
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxSwitchModule }); }
|
139
139
|
}
|
140
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
140
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxSwitchModule, decorators: [{
|
141
141
|
type: NgModule,
|
142
142
|
args: [{
|
143
143
|
imports: [...switchImports],
|
@@ -32,10 +32,10 @@ class RdxTabsContextService {
|
|
32
32
|
generateId() {
|
33
33
|
return `tabs-${Math.random().toString(36).substr(2, 9)}`;
|
34
34
|
}
|
35
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
36
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.
|
35
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsContextService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
36
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsContextService, providedIn: 'root' }); }
|
37
37
|
}
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
38
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsContextService, decorators: [{
|
39
39
|
type: Injectable,
|
40
40
|
args: [{
|
41
41
|
providedIn: 'root'
|
@@ -48,10 +48,10 @@ class RdxTabsContentDirective {
|
|
48
48
|
this.value = input.required();
|
49
49
|
this.selected = computed(() => this.tabsContext.value$() === this.value());
|
50
50
|
}
|
51
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
52
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.
|
51
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsContentDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
52
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.11", type: RdxTabsContentDirective, isStandalone: true, selector: "[rdxTabsContent]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null } }, host: { attributes: { "role": "tabpanel", "tabindex": "0" }, properties: { "id": "tabsContext.getBaseId()", "attr.aria-labelledby": "tabsContext.getBaseId()", "attr.data-state": "selected() ? \"active\" : \"inactive\"", "attr.data-orientation": "tabsContext.orientation$()", "hidden": "!selected()" } }, ngImport: i0 }); }
|
53
53
|
}
|
54
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
54
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsContentDirective, decorators: [{
|
55
55
|
type: Directive,
|
56
56
|
args: [{
|
57
57
|
selector: '[rdxTabsContent]',
|
@@ -72,10 +72,10 @@ class RdxTabsListDirective {
|
|
72
72
|
constructor() {
|
73
73
|
this.tabsContext = inject(TABS_CONTEXT_TOKEN);
|
74
74
|
}
|
75
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
76
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.
|
75
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsListDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
76
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: RdxTabsListDirective, isStandalone: true, selector: "[rdxTabsList]", host: { attributes: { "role": "tablist" }, properties: { "attr.aria-orientation": "tabsContext.orientation$()", "attr.data-orientation": "tabsContext.orientation$()" } }, ngImport: i0 }); }
|
77
77
|
}
|
78
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
78
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsListDirective, decorators: [{
|
79
79
|
type: Directive,
|
80
80
|
args: [{
|
81
81
|
selector: '[rdxTabsList]',
|
@@ -113,10 +113,10 @@ class RdxTabsRootDirective {
|
|
113
113
|
this.tabsContext.setValue(this.defaultValue);
|
114
114
|
}
|
115
115
|
}
|
116
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
117
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.
|
116
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsRootDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
117
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: RdxTabsRootDirective, isStandalone: true, selector: "[rdxTabsRoot]", inputs: { value: "value", defaultValue: "defaultValue", orientation: "orientation", dir: "dir" }, outputs: { onValueChange: "onValueChange" }, host: { properties: { "attr.data-orientation": "orientation", "attr.dir": "dir" } }, providers: [{ provide: TABS_CONTEXT_TOKEN, useExisting: RdxTabsContextService }], ngImport: i0 }); }
|
118
118
|
}
|
119
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
119
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsRootDirective, decorators: [{
|
120
120
|
type: Directive,
|
121
121
|
args: [{
|
122
122
|
selector: '[rdxTabsRoot]',
|
@@ -166,10 +166,10 @@ class RdxTabsTriggerDirective {
|
|
166
166
|
this.tabsContext?.setValue(this.value());
|
167
167
|
}
|
168
168
|
}
|
169
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
170
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.
|
169
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsTriggerDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
170
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.11", type: RdxTabsTriggerDirective, isStandalone: true, selector: "[rdxTabsTrigger]", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "type": "button", "role": "tab" }, listeners: { "mousedown": "onMouseDown($event)", "keydown": "onKeyDown($event)" }, properties: { "id": "triggerId", "attr.aria-selected": "selected()", "attr.aria-controls": "contentId()", "attr.data-disabled": "disabled() ? '' : undefined", "attr.data-state": "selected() ? 'active' : 'inactive'" } }, ngImport: i0 }); }
|
171
171
|
}
|
172
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
172
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsTriggerDirective, decorators: [{
|
173
173
|
type: Directive,
|
174
174
|
args: [{
|
175
175
|
selector: '[rdxTabsTrigger]',
|
@@ -195,17 +195,17 @@ const tabsImports = [
|
|
195
195
|
RdxTabsTriggerDirective
|
196
196
|
];
|
197
197
|
class RdxTabsModule {
|
198
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
199
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.
|
198
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
199
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsModule, imports: [RdxTabsRootDirective,
|
200
200
|
RdxTabsContentDirective,
|
201
201
|
RdxTabsListDirective,
|
202
202
|
RdxTabsTriggerDirective], exports: [RdxTabsRootDirective,
|
203
203
|
RdxTabsContentDirective,
|
204
204
|
RdxTabsListDirective,
|
205
205
|
RdxTabsTriggerDirective] }); }
|
206
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.
|
206
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsModule, providers: [RdxTabsContextService] }); }
|
207
207
|
}
|
208
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
208
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxTabsModule, decorators: [{
|
209
209
|
type: NgModule,
|
210
210
|
args: [{
|
211
211
|
imports: [...tabsImports],
|
@@ -61,10 +61,10 @@ class RdxToggleGroupItemDirective {
|
|
61
61
|
updateDisabled() {
|
62
62
|
// TODO
|
63
63
|
}
|
64
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
65
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.
|
64
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxToggleGroupItemDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
65
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.11", type: RdxToggleGroupItemDirective, isStandalone: true, selector: "[rdxToggleGroupItem]", inputs: { value: "value", disabled: ["disabled", "disabled", booleanAttribute] }, host: { attributes: { "role": "radio" }, listeners: { "click": "toggle()" }, properties: { "attr.aria-checked": "checked", "attr.aria-disabled": "disabled || toggleGroup.disabled", "attr.aria-pressed": "undefined", "attr.data-disabled": "disabled || toggleGroup.disabled", "attr.data-state": "checked ? \"on\" : \"off\"", "attr.data-orientation": "toggleGroup.orientation" } }, providers: [{ provide: RdxToggleGroupItemToken, useExisting: RdxToggleGroupItemDirective }], exportAs: ["rdxToggleGroupItem"], usesOnChanges: true, ngImport: i0 }); }
|
66
66
|
}
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
67
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxToggleGroupItemDirective, decorators: [{
|
68
68
|
type: Directive,
|
69
69
|
args: [{
|
70
70
|
selector: '[rdxToggleGroupItem]',
|
@@ -228,13 +228,13 @@ class RdxToggleGroupMultipleDirective {
|
|
228
228
|
this.disabled = isDisabled;
|
229
229
|
this.buttons?.forEach((button) => button.updateDisabled());
|
230
230
|
}
|
231
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
232
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.
|
231
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxToggleGroupMultipleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
232
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.11", type: RdxToggleGroupMultipleDirective, isStandalone: true, selector: "[rdxToggleGroupMultiple]", inputs: { value: "value", orientation: "orientation", disabled: ["disabled", "disabled", booleanAttribute], wrap: ["wrap", "wrap", booleanAttribute], valueChange: "valueChange" }, host: { attributes: { "role": "group" }, listeners: { "keydown": "handleKeydown($event)", "focusin": "onFocusIn()", "focusout": "onTouched?.()" }, properties: { "attr.data-orientation": "orientation" } }, providers: [
|
233
233
|
{ provide: RdxToggleGroupToken, useExisting: RdxToggleGroupMultipleDirective },
|
234
234
|
{ provide: NG_VALUE_ACCESSOR, useExisting: RdxToggleGroupMultipleDirective, multi: true }
|
235
235
|
], queries: [{ propertyName: "buttons", predicate: RdxToggleGroupItemToken }], exportAs: ["rdxToggleGroupMultiple"], usesOnChanges: true, ngImport: i0 }); }
|
236
236
|
}
|
237
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
237
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxToggleGroupMultipleDirective, decorators: [{
|
238
238
|
type: Directive,
|
239
239
|
args: [{
|
240
240
|
selector: '[rdxToggleGroupMultiple]',
|
@@ -401,13 +401,13 @@ class RdxToggleGroupDirective {
|
|
401
401
|
this.disabled = isDisabled;
|
402
402
|
this.buttons?.forEach((button) => button.updateDisabled());
|
403
403
|
}
|
404
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
405
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.
|
404
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxToggleGroupDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
405
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "16.1.0", version: "18.2.11", type: RdxToggleGroupDirective, isStandalone: true, selector: "[rdxToggleGroup]", inputs: { value: "value", orientation: "orientation", disabled: ["disabled", "disabled", booleanAttribute], wrap: ["wrap", "wrap", booleanAttribute], valueChange: "valueChange" }, host: { attributes: { "role": "group" }, listeners: { "focusout": "onTouched?.()", "focusin": "onFocusIn()", "keydown": "handleKeydown($event)" }, properties: { "attr.data-orientation": "orientation" } }, providers: [
|
406
406
|
{ provide: RdxToggleGroupToken, useExisting: RdxToggleGroupDirective },
|
407
407
|
{ provide: NG_VALUE_ACCESSOR, useExisting: RdxToggleGroupDirective, multi: true }
|
408
408
|
], queries: [{ propertyName: "buttons", predicate: RdxToggleGroupItemToken }], exportAs: ["rdxToggleGroup"], usesOnChanges: true, ngImport: i0 }); }
|
409
409
|
}
|
410
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
410
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxToggleGroupDirective, decorators: [{
|
411
411
|
type: Directive,
|
412
412
|
args: [{
|
413
413
|
selector: '[rdxToggleGroup]',
|
@@ -4,10 +4,10 @@ import * as i1 from '@radix-ng/primitives/visually-hidden';
|
|
4
4
|
import { RdxVisuallyHiddenInputDirective } from '@radix-ng/primitives/visually-hidden';
|
5
5
|
|
6
6
|
class RdxToggleInputDirective {
|
7
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
8
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.
|
7
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxToggleInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
8
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "18.2.11", type: RdxToggleInputDirective, isStandalone: true, selector: "[rdxToggleInput]", host: { attributes: { "type": "checkbox" } }, exportAs: ["rdxToggleInput"], hostDirectives: [{ directive: i1.RdxVisuallyHiddenInputDirective, inputs: ["name", "name", "required", "required"] }], ngImport: i0 }); }
|
9
9
|
}
|
10
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxToggleInputDirective, decorators: [{
|
11
11
|
type: Directive,
|
12
12
|
args: [{
|
13
13
|
selector: '[rdxToggleInput]',
|
@@ -55,10 +55,10 @@ class RdxToggleDirective {
|
|
55
55
|
this.onPressedChange.emit(this.pressed());
|
56
56
|
}
|
57
57
|
}
|
58
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
59
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.
|
58
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxToggleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
59
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.11", type: RdxToggleDirective, isStandalone: true, selector: "[rdxToggle]", inputs: { defaultPressed: { classPropertyName: "defaultPressed", publicName: "defaultPressed", isSignal: true, isRequired: false, transformFunction: null }, pressed: { classPropertyName: "pressed", publicName: "pressed", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { pressed: "pressedChange", onPressedChange: "onPressedChange" }, host: { listeners: { "click": "toggle()" }, properties: { "attr.aria-pressed": "pressed()", "attr.data-state": "pressed() ? \"on\" : \"off\"", "attr.data-disabled": "disabled()", "disabled": "disabled()" } }, exportAs: ["rdxToggle"], ngImport: i0 }); }
|
60
60
|
}
|
61
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxToggleDirective, decorators: [{
|
62
62
|
type: Directive,
|
63
63
|
args: [{
|
64
64
|
selector: '[rdxToggle]',
|
@@ -14,10 +14,10 @@ class RdxVisuallyHiddenDirective {
|
|
14
14
|
constructor() {
|
15
15
|
this.feature = input('focusable');
|
16
16
|
}
|
17
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
18
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.
|
17
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxVisuallyHiddenDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
18
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.11", type: RdxVisuallyHiddenDirective, isStandalone: true, selector: "[rdxVisuallyHidden]", inputs: { feature: { classPropertyName: "feature", publicName: "feature", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.aria-hidden": "feature() === \"focusable\" ? \"true\" : null", "hidden": "feature() === \"fully-hidden\" ? true : null", "attr.tabindex": "feature() === \"fully-hidden\" ? \"-1\" : null", "style.position": "\"absolute\"", "style.border": "\"0\"", "style.width": "\"1px\"", "style.display": "feature() === \"focusable\" ? \"inline-block\" : \"none\"", "style.height": "\"1px\"", "style.padding": "\"0\"", "style.margin": "\"-1px\"", "style.overflow": "\"hidden\"", "style.clip": "\"rect(0, 0, 0, 0)\"", "style.white-space": "\"nowrap\"", "style.word-wrap": "\"normal\"" } }, ngImport: i0 }); }
|
19
19
|
}
|
20
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
20
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxVisuallyHiddenDirective, decorators: [{
|
21
21
|
type: Directive,
|
22
22
|
args: [{
|
23
23
|
selector: '[rdxVisuallyHidden]',
|
@@ -91,10 +91,10 @@ class RdxVisuallyHiddenInputBubbleDirective {
|
|
91
91
|
this.inputElement.dispatchEvent(inputEvent);
|
92
92
|
this.inputElement.dispatchEvent(changeEvent);
|
93
93
|
}
|
94
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
95
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.
|
94
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxVisuallyHiddenInputBubbleDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
95
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.11", type: RdxVisuallyHiddenInputBubbleDirective, isStandalone: true, selector: "[rdxVisuallyHiddenInputBubble]", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, feature: { classPropertyName: "feature", publicName: "feature", isSignal: true, isRequired: false, transformFunction: null } }, host: { listeners: { "change": "onChange()" }, properties: { "attr.name": "name()", "attr.required": "required()", "attr.disabled": "disabled()", "attr.checked": "checked()", "value": "value()" } }, hostDirectives: [{ directive: RdxVisuallyHiddenDirective, inputs: ["feature", "feature"] }], ngImport: i0 }); }
|
96
96
|
}
|
97
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
97
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxVisuallyHiddenInputBubbleDirective, decorators: [{
|
98
98
|
type: Directive,
|
99
99
|
args: [{
|
100
100
|
selector: '[rdxVisuallyHiddenInputBubble]',
|
@@ -157,10 +157,10 @@ class RdxVisuallyHiddenInputDirective {
|
|
157
157
|
inputElement.setAttribute('value', parsed.value);
|
158
158
|
});
|
159
159
|
}
|
160
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.
|
161
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.
|
160
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxVisuallyHiddenInputDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
161
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "18.2.11", type: RdxVisuallyHiddenInputDirective, isStandalone: true, selector: "[rdxVisuallyHiddenInput]", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, feature: { classPropertyName: "feature", publicName: "feature", isSignal: true, isRequired: false, transformFunction: null } }, hostDirectives: [{ directive: RdxVisuallyHiddenInputBubbleDirective, inputs: ["feature", "feature", "name", "name", "value", "value", "checked", "checked", "disabled", "disabled", "required", "required"] }], ngImport: i0 }); }
|
162
162
|
}
|
163
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.
|
163
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.11", ngImport: i0, type: RdxVisuallyHiddenInputDirective, decorators: [{
|
164
164
|
type: Directive,
|
165
165
|
args: [{
|
166
166
|
selector: '[rdxVisuallyHiddenInput]',
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@radix-ng/primitives",
|
3
|
-
"version": "0.
|
3
|
+
"version": "0.17.0",
|
4
4
|
"license": "MIT",
|
5
5
|
"publishConfig": {
|
6
6
|
"access": "public"
|
@@ -127,6 +127,12 @@
|
|
127
127
|
"esm": "./esm2022/radio/radix-ng-primitives-radio.mjs",
|
128
128
|
"default": "./fesm2022/radix-ng-primitives-radio.mjs"
|
129
129
|
},
|
130
|
+
"./select": {
|
131
|
+
"types": "./select/index.d.ts",
|
132
|
+
"esm2022": "./esm2022/select/radix-ng-primitives-select.mjs",
|
133
|
+
"esm": "./esm2022/select/radix-ng-primitives-select.mjs",
|
134
|
+
"default": "./fesm2022/radix-ng-primitives-select.mjs"
|
135
|
+
},
|
130
136
|
"./separator": {
|
131
137
|
"types": "./separator/index.d.ts",
|
132
138
|
"esm2022": "./esm2022/separator/radix-ng-primitives-separator.mjs",
|
package/select/README.md
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
# @radix-ng/primitives/select
|
@@ -0,0 +1,26 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./src/select-content.directive";
|
3
|
+
import * as i2 from "./src/select-group.directive";
|
4
|
+
import * as i3 from "./src/select-item.directive";
|
5
|
+
import * as i4 from "./src/select-item-indicator.directive";
|
6
|
+
import * as i5 from "./src/select-label.directive";
|
7
|
+
import * as i6 from "./src/select.component";
|
8
|
+
import * as i7 from "./src/select-separator.directive";
|
9
|
+
import * as i8 from "./src/select-trigger.directive";
|
10
|
+
import * as i9 from "./src/select-value.directive";
|
11
|
+
import * as i10 from "./src/select-icon.directive";
|
12
|
+
export * from './src/select-content.directive';
|
13
|
+
export * from './src/select-group.directive';
|
14
|
+
export * from './src/select-icon.directive';
|
15
|
+
export * from './src/select-item-indicator.directive';
|
16
|
+
export * from './src/select-item.directive';
|
17
|
+
export * from './src/select-label.directive';
|
18
|
+
export * from './src/select-separator.directive';
|
19
|
+
export * from './src/select-trigger.directive';
|
20
|
+
export * from './src/select-value.directive';
|
21
|
+
export * from './src/select.component';
|
22
|
+
export declare class RdxSelectModule {
|
23
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxSelectModule, never>;
|
24
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxSelectModule, never, [typeof i1.RdxSelectContentDirective, typeof i2.RdxSelectGroupDirective, typeof i3.RdxSelectItemDirective, typeof i4.RdxSelectItemIndicatorDirective, typeof i5.RdxSelectLabelDirective, typeof i6.RdxSelectComponent, typeof i7.RdxSelectSeparatorDirective, typeof i8.RdxSelectTriggerDirective, typeof i9.RdxSelectValueDirective, typeof i10.RdxSelectIconDirective], [typeof i1.RdxSelectContentDirective, typeof i2.RdxSelectGroupDirective, typeof i3.RdxSelectItemDirective, typeof i4.RdxSelectItemIndicatorDirective, typeof i5.RdxSelectLabelDirective, typeof i6.RdxSelectComponent, typeof i7.RdxSelectSeparatorDirective, typeof i8.RdxSelectTriggerDirective, typeof i9.RdxSelectValueDirective, typeof i10.RdxSelectIconDirective]>;
|
25
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<RdxSelectModule>;
|
26
|
+
}
|
@@ -0,0 +1,20 @@
|
|
1
|
+
import { ActiveDescendantKeyManager } from '@angular/cdk/a11y';
|
2
|
+
import { Directionality } from '@angular/cdk/bidi';
|
3
|
+
import { AfterContentInit, DestroyRef, QueryList } from '@angular/core';
|
4
|
+
import { Subject } from 'rxjs';
|
5
|
+
import { RdxSelectItemDirective } from './select-item.directive';
|
6
|
+
import { RdxSelectComponent } from './select.component';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
export declare class RdxSelectContentDirective implements AfterContentInit {
|
9
|
+
protected readonly destroyRef: DestroyRef;
|
10
|
+
protected readonly dir: Directionality | null;
|
11
|
+
protected select: RdxSelectComponent;
|
12
|
+
readonly highlighted: Subject<RdxSelectItemDirective>;
|
13
|
+
keyManager: ActiveDescendantKeyManager<RdxSelectItemDirective>;
|
14
|
+
options: QueryList<RdxSelectItemDirective>;
|
15
|
+
constructor();
|
16
|
+
initKeyManager(): ActiveDescendantKeyManager<RdxSelectItemDirective>;
|
17
|
+
ngAfterContentInit(): void;
|
18
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxSelectContentDirective, never>;
|
19
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxSelectContentDirective, "[rdxSelectContent]", ["rdxSelectContent"], {}, {}, ["options"], never, true, never>;
|
20
|
+
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class RdxSelectGroupDirective {
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxSelectGroupDirective, never>;
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxSelectGroupDirective, "[rdxSelectGroup]", ["rdxSelectGroup"], {}, {}, never, never, true, never>;
|
5
|
+
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class RdxSelectIconDirective {
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxSelectIconDirective, never>;
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxSelectIconDirective, "[rdxSelectIcon]", ["rdxSelectIcon"], {}, {}, never, never, true, never>;
|
5
|
+
}
|
@@ -0,0 +1,7 @@
|
|
1
|
+
import { RdxSelectItemDirective } from './select-item.directive';
|
2
|
+
import * as i0 from "@angular/core";
|
3
|
+
export declare class RdxSelectItemIndicatorDirective {
|
4
|
+
protected item: RdxSelectItemDirective;
|
5
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxSelectItemIndicatorDirective, never>;
|
6
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxSelectItemIndicatorDirective, "[rdxSelectItemIndicator]", ["rdxSelectItemIndicator"], {}, {}, never, never, true, never>;
|
7
|
+
}
|
@@ -0,0 +1,47 @@
|
|
1
|
+
import { Highlightable } from '@angular/cdk/a11y';
|
2
|
+
import { EventEmitter } from '@angular/core';
|
3
|
+
import { RdxSelectContentDirective } from './select-content.directive';
|
4
|
+
import { RdxSelectComponent } from './select.component';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export declare class RdxSelectItemChange<T = RdxSelectItemDirective> {
|
7
|
+
source: T;
|
8
|
+
constructor(source: T);
|
9
|
+
}
|
10
|
+
export declare class RdxSelectItemDirective implements Highlightable {
|
11
|
+
protected readonly select: RdxSelectComponent;
|
12
|
+
protected readonly content: RdxSelectContentDirective;
|
13
|
+
readonly onSelectionChange: EventEmitter<RdxSelectItemChange<RdxSelectItemDirective>>;
|
14
|
+
protected readonly nativeElement: any;
|
15
|
+
highlighted: boolean;
|
16
|
+
selected: boolean;
|
17
|
+
get dataState(): string;
|
18
|
+
/**
|
19
|
+
* The unique SelectItem id.
|
20
|
+
* @ignore
|
21
|
+
*/
|
22
|
+
readonly id: string;
|
23
|
+
set value(value: string);
|
24
|
+
get value(): string;
|
25
|
+
private _value?;
|
26
|
+
textValue: string | null;
|
27
|
+
/** Whether the SelectItem is disabled. */
|
28
|
+
set disabled(value: boolean);
|
29
|
+
get disabled(): boolean;
|
30
|
+
private _disabled;
|
31
|
+
get viewValue(): string;
|
32
|
+
constructor();
|
33
|
+
/** Gets the label to be used when determining whether the option should be focused. */
|
34
|
+
getLabel(): string;
|
35
|
+
/**
|
36
|
+
* `Selects the option while indicating the selection came from the user. Used to
|
37
|
+
* determine if the select's view -> model callback should be invoked.`
|
38
|
+
*/
|
39
|
+
selectViaInteraction(): void;
|
40
|
+
handleKeydown(event: KeyboardEvent): void;
|
41
|
+
setActiveStyles(): void;
|
42
|
+
setInactiveStyles(): void;
|
43
|
+
protected onPointerMove(): void;
|
44
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxSelectItemDirective, never>;
|
45
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxSelectItemDirective, "[rdxSelectItem]", ["rdxSelectItem"], { "value": { "alias": "value"; "required": false; }; "textValue": { "alias": "textValue"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; }, {}, never, never, true, never>;
|
46
|
+
static ngAcceptInputType_disabled: unknown;
|
47
|
+
}
|
@@ -0,0 +1,5 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
export declare class RdxSelectLabelDirective {
|
3
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxSelectLabelDirective, never>;
|
4
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxSelectLabelDirective, "[rdxSelectLabel]", ["rdxSelectLabel"], {}, {}, never, never, true, never>;
|
5
|
+
}
|