@radix-ng/primitives 0.42.0 → 0.44.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/accordion/index.d.ts +160 -15
- package/alert-dialog/index.d.ts +54 -14
- package/arrow/README.md +1 -0
- package/arrow/index.d.ts +11 -0
- package/aspect-ratio/index.d.ts +35 -1
- package/avatar/index.d.ts +81 -11
- package/calendar/index.d.ts +310 -29
- package/checkbox/index.d.ts +163 -15
- package/collapsible/index.d.ts +82 -11
- package/config/index.d.ts +35 -2
- package/context-menu/index.d.ts +126 -23
- package/core/index.d.ts +898 -27
- package/cropper/index.d.ts +134 -14
- package/date-field/index.d.ts +209 -10
- package/dialog/index.d.ts +202 -20
- package/dismissable-layer/README.md +1 -0
- package/dismissable-layer/index.d.ts +126 -0
- package/dropdown-menu/index.d.ts +168 -23
- package/editable/index.d.ts +70 -1
- package/fesm2022/radix-ng-primitives-accordion.mjs +36 -36
- package/fesm2022/radix-ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs +28 -28
- package/fesm2022/radix-ng-primitives-alert-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-arrow.mjs +38 -0
- package/fesm2022/radix-ng-primitives-arrow.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs +5 -5
- package/fesm2022/radix-ng-primitives-aspect-ratio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-avatar.mjs +20 -20
- package/fesm2022/radix-ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-calendar.mjs +110 -95
- package/fesm2022/radix-ng-primitives-calendar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-checkbox.mjs +219 -209
- package/fesm2022/radix-ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-collapsible.mjs +27 -27
- package/fesm2022/radix-ng-primitives-collapsible.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-config.mjs +5 -5
- package/fesm2022/radix-ng-primitives-config.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-context-menu.mjs +34 -34
- package/fesm2022/radix-ng-primitives-context-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-core.mjs +72 -24
- package/fesm2022/radix-ng-primitives-core.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-cropper.mjs +51 -51
- package/fesm2022/radix-ng-primitives-cropper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-date-field.mjs +48 -48
- package/fesm2022/radix-ng-primitives-date-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dialog.mjs +33 -33
- package/fesm2022/radix-ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs +418 -0
- package/fesm2022/radix-ng-primitives-dismissable-layer.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs +37 -37
- package/fesm2022/radix-ng-primitives-dropdown-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-editable.mjs +21 -21
- package/fesm2022/radix-ng-primitives-editable.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-focus-guards.mjs +53 -0
- package/fesm2022/radix-ng-primitives-focus-guards.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-focus-scope.mjs +17 -9
- package/fesm2022/radix-ng-primitives-focus-scope.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-hover-card.mjs +74 -74
- package/fesm2022/radix-ng-primitives-hover-card.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-label.mjs +8 -8
- package/fesm2022/radix-ng-primitives-label.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menu.mjs +65 -65
- package/fesm2022/radix-ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-menubar.mjs +31 -31
- package/fesm2022/radix-ng-primitives-menubar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs +91 -88
- package/fesm2022/radix-ng-primitives-navigation-menu.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-number-field.mjs +56 -43
- package/fesm2022/radix-ng-primitives-number-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-pagination.mjs +45 -45
- package/fesm2022/radix-ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popover.mjs +68 -68
- package/fesm2022/radix-ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-popper.mjs +418 -0
- package/fesm2022/radix-ng-primitives-popper.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-portal.mjs +51 -0
- package/fesm2022/radix-ng-primitives-portal.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-presence.mjs +4 -4
- package/fesm2022/radix-ng-primitives-presence.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-progress.mjs +15 -15
- package/fesm2022/radix-ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-radio.mjs +30 -30
- package/fesm2022/radix-ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-roving-focus.mjs +179 -163
- package/fesm2022/radix-ng-primitives-roving-focus.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-select.mjs +37 -37
- package/fesm2022/radix-ng-primitives-select.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-separator.mjs +16 -14
- package/fesm2022/radix-ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-slider.mjs +75 -75
- package/fesm2022/radix-ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-stepper.mjs +45 -45
- package/fesm2022/radix-ng-primitives-stepper.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-switch.mjs +28 -28
- package/fesm2022/radix-ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tabs.mjs +33 -33
- package/fesm2022/radix-ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-time-field.mjs +78 -66
- package/fesm2022/radix-ng-primitives-time-field.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle-group.mjs +22 -22
- package/fesm2022/radix-ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toggle.mjs +9 -9
- package/fesm2022/radix-ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-toolbar.mjs +28 -28
- package/fesm2022/radix-ng-primitives-toolbar.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tooltip.mjs +74 -74
- package/fesm2022/radix-ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives-tooltip2.mjs +740 -0
- package/fesm2022/radix-ng-primitives-tooltip2.mjs.map +1 -0
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs +93 -98
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives.mjs.map +1 -1
- package/focus-guards/README.md +1 -0
- package/focus-guards/index.d.ts +15 -0
- package/focus-scope/index.d.ts +65 -1
- package/hover-card/index.d.ts +471 -19
- package/index.d.ts +2 -1
- package/label/index.d.ts +27 -1
- package/menu/index.d.ts +136 -26
- package/menubar/index.d.ts +53 -21
- package/navigation-menu/index.d.ts +402 -25
- package/number-field/index.d.ts +202 -16
- package/package.json +26 -5
- package/pagination/index.d.ts +96 -20
- package/popover/index.d.ts +402 -19
- package/popper/README.md +3 -0
- package/popper/index.d.ts +206 -0
- package/portal/README.md +1 -0
- package/portal/index.d.ts +22 -0
- package/presence/index.d.ts +103 -5
- package/progress/index.d.ts +76 -8
- package/radio/index.d.ts +118 -4
- package/roving-focus/index.d.ts +174 -3
- package/select/index.d.ts +211 -23
- package/separator/index.d.ts +63 -1
- package/slider/index.d.ts +262 -17
- package/stepper/index.d.ts +122 -21
- package/switch/index.d.ts +102 -9
- package/tabs/index.d.ts +111 -13
- package/time-field/index.d.ts +211 -10
- package/toggle/index.d.ts +75 -3
- package/toggle-group/index.d.ts +194 -5
- package/toolbar/index.d.ts +52 -16
- package/tooltip/index.d.ts +432 -19
- package/tooltip2/README.md +3 -0
- package/tooltip2/index.d.ts +325 -0
- package/visually-hidden/index.d.ts +65 -3
- package/accordion/src/accordion-content-presence.directive.d.ts +0 -6
- package/accordion/src/accordion-content.directive.d.ts +0 -8
- package/accordion/src/accordion-header.directive.d.ts +0 -7
- package/accordion/src/accordion-item.directive.d.ts +0 -43
- package/accordion/src/accordion-root.directive.d.ts +0 -83
- package/accordion/src/accordion-trigger.directive.d.ts +0 -10
- package/alert-dialog/src/alert-dialog-cancel.directive.d.ts +0 -7
- package/alert-dialog/src/alert-dialog-content.directive.d.ts +0 -9
- package/alert-dialog/src/alert-dialog-root.directive.d.ts +0 -9
- package/alert-dialog/src/alert-dialog-title.directive.d.ts +0 -5
- package/alert-dialog/src/alert-dialog-trigger.directive.d.ts +0 -7
- package/alert-dialog/src/alert-dialog.service.d.ts +0 -14
- package/aspect-ratio/src/aspect-ratio.directive.d.ts +0 -32
- package/avatar/src/avatar-context.token.d.ts +0 -7
- package/avatar/src/avatar-fallback.directive.d.ts +0 -20
- package/avatar/src/avatar-image.directive.d.ts +0 -29
- package/avatar/src/avatar-root.directive.d.ts +0 -8
- package/avatar/src/avatar.config.d.ts +0 -13
- package/avatar/src/types.d.ts +0 -2
- package/calendar/src/calendar-cell-trigger.directive.d.ts +0 -54
- package/calendar/src/calendar-cell.directive.d.ts +0 -11
- package/calendar/src/calendar-grid-body.directive.d.ts +0 -5
- package/calendar/src/calendar-grid-head.directive.d.ts +0 -5
- package/calendar/src/calendar-grid-row.directive.d.ts +0 -5
- package/calendar/src/calendar-grid.directive.d.ts +0 -8
- package/calendar/src/calendar-head-cell.directive.d.ts +0 -5
- package/calendar/src/calendar-header.directive.d.ts +0 -5
- package/calendar/src/calendar-heading.directive.d.ts +0 -7
- package/calendar/src/calendar-next.directive.d.ts +0 -16
- package/calendar/src/calendar-prev.directive.d.ts +0 -16
- package/calendar/src/calendar-root.directive.d.ts +0 -148
- package/calendar/src/calendar.d.ts +0 -44
- package/calendar/src//321/201alendar-/321/201ontext.token.d.ts +0 -24
- package/checkbox/src/checkbox-button.directive.d.ts +0 -8
- package/checkbox/src/checkbox-indicator.directive.d.ts +0 -6
- package/checkbox/src/checkbox-input.directive.d.ts +0 -10
- package/checkbox/src/checkbox.directive.d.ts +0 -86
- package/checkbox/src/checkbox.token.d.ts +0 -4
- package/collapsible/src/collapsible-content-presence.directive.d.ts +0 -6
- package/collapsible/src/collapsible-content.directive.d.ts +0 -18
- package/collapsible/src/collapsible-root.directive.d.ts +0 -44
- package/collapsible/src/collapsible-trigger.directive.d.ts +0 -6
- package/config/src/config.d.ts +0 -21
- package/config/src/config.provider.d.ts +0 -10
- package/context-menu/src/context-menu-content.directive.d.ts +0 -15
- package/context-menu/src/context-menu-item-checkbox.directive.d.ts +0 -9
- package/context-menu/src/context-menu-item-indicator.directive.d.ts +0 -7
- package/context-menu/src/context-menu-item-radio-group.directive.d.ts +0 -12
- package/context-menu/src/context-menu-item-radio.directive.d.ts +0 -19
- package/context-menu/src/context-menu-item-selectable.d.ts +0 -12
- package/context-menu/src/context-menu-item.directive.d.ts +0 -17
- package/context-menu/src/context-menu-label.directive.d.ts +0 -5
- package/context-menu/src/context-menu-separator.directive.d.ts +0 -6
- package/context-menu/src/context-menu-trigger.directive.d.ts +0 -31
- package/core/src/accessor/control-value-accessor.d.ts +0 -67
- package/core/src/accessor/provide-value-accessor.d.ts +0 -12
- package/core/src/auto-focus.directive.d.ts +0 -14
- package/core/src/chunk.d.ts +0 -12
- package/core/src/clamp.d.ts +0 -38
- package/core/src/create-context.d.ts +0 -10
- package/core/src/date-time/calendar.d.ts +0 -33
- package/core/src/date-time/comparators.d.ts +0 -98
- package/core/src/date-time/formatter.d.ts +0 -30
- package/core/src/date-time/index.d.ts +0 -9
- package/core/src/date-time/parser.d.ts +0 -37
- package/core/src/date-time/parts.d.ts +0 -12
- package/core/src/date-time/placeholders.d.ts +0 -8
- package/core/src/date-time/segment.d.ts +0 -4
- package/core/src/date-time/types.d.ts +0 -58
- package/core/src/date-time/useDateField.d.ts +0 -142
- package/core/src/date-time/utils.d.ts +0 -7
- package/core/src/document.d.ts +0 -1
- package/core/src/focus-initial.directive.d.ts +0 -9
- package/core/src/getActiveElement.d.ts +0 -1
- package/core/src/id-generator.d.ts +0 -12
- package/core/src/inject-ng-control.d.ts +0 -8
- package/core/src/is-client.d.ts +0 -1
- package/core/src/is-equal.d.ts +0 -7
- package/core/src/is-inside-form.d.ts +0 -2
- package/core/src/is-nullish.d.ts +0 -1
- package/core/src/is-number.d.ts +0 -1
- package/core/src/isValueEqualOrExist.d.ts +0 -10
- package/core/src/kbd-constants.d.ts +0 -41
- package/core/src/positioning/constants.d.ts +0 -3
- package/core/src/positioning/types.d.ts +0 -42
- package/core/src/positioning/utils.d.ts +0 -12
- package/core/src/provide-token.d.ts +0 -22
- package/core/src/serialize.d.ts +0 -11
- package/core/src/types.d.ts +0 -25
- package/core/src/useArrowNavigation.d.ts +0 -65
- package/core/src/useResizeObserver.d.ts +0 -15
- package/core/src/watch.d.ts +0 -41
- package/core/src/window.d.ts +0 -3
- package/cropper/src/cropper-context.token.d.ts +0 -12
- package/cropper/src/cropper-crop-area.directive.d.ts +0 -6
- package/cropper/src/cropper-description.directive.d.ts +0 -6
- package/cropper/src/cropper-image.component.d.ts +0 -10
- package/cropper/src/cropper-root.directive.d.ts +0 -91
- package/date-field/src/date-field-context.token.d.ts +0 -19
- package/date-field/src/date-field-input.directive.d.ts +0 -53
- package/date-field/src/date-field-root.directive.d.ts +0 -131
- package/dialog/src/dialog-close.directive.d.ts +0 -7
- package/dialog/src/dialog-content.directive.d.ts +0 -21
- package/dialog/src/dialog-description.directive.d.ts +0 -5
- package/dialog/src/dialog-dismiss.directive.d.ts +0 -7
- package/dialog/src/dialog-ref.d.ts +0 -40
- package/dialog/src/dialog-title.directive.d.ts +0 -5
- package/dialog/src/dialog-trigger.directive.d.ts +0 -28
- package/dialog/src/dialog.config.d.ts +0 -41
- package/dialog/src/dialog.injectors.d.ts +0 -4
- package/dialog/src/dialog.providers.d.ts +0 -19
- package/dialog/src/dialog.service.d.ts +0 -26
- package/dismissible-layer/README.md +0 -1
- package/dismissible-layer/index.d.ts +0 -1
- package/dismissible-layer/src/utils.d.ts +0 -38
- package/dropdown-menu/src/dropdown-menu-content.directive.d.ts +0 -15
- package/dropdown-menu/src/dropdown-menu-item-checkbox.directive.d.ts +0 -9
- package/dropdown-menu/src/dropdown-menu-item-indicator.directive.d.ts +0 -7
- package/dropdown-menu/src/dropdown-menu-item-radio-group.directive.d.ts +0 -12
- package/dropdown-menu/src/dropdown-menu-item-radio.directive.d.ts +0 -19
- package/dropdown-menu/src/dropdown-menu-item-selectable.d.ts +0 -12
- package/dropdown-menu/src/dropdown-menu-item.directive.d.ts +0 -17
- package/dropdown-menu/src/dropdown-menu-label.directive.d.ts +0 -6
- package/dropdown-menu/src/dropdown-menu-separator.directive.d.ts +0 -6
- package/dropdown-menu/src/dropdown-menu-trigger.directive.d.ts +0 -73
- package/editable/src/editable-root.d.ts +0 -67
- package/fesm2022/radix-ng-primitives-dismissible-layer.mjs +0 -211
- package/fesm2022/radix-ng-primitives-dismissible-layer.mjs.map +0 -1
- package/focus-scope/src/focus-scope.d.ts +0 -53
- package/focus-scope/src/stack.d.ts +0 -13
- package/focus-scope/src/utils.d.ts +0 -46
- package/hover-card/src/hover-card-anchor.directive.d.ts +0 -28
- package/hover-card/src/hover-card-anchor.token.d.ts +0 -3
- package/hover-card/src/hover-card-arrow.directive.d.ts +0 -45
- package/hover-card/src/hover-card-arrow.token.d.ts +0 -3
- package/hover-card/src/hover-card-close.directive.d.ts +0 -18
- package/hover-card/src/hover-card-close.token.d.ts +0 -3
- package/hover-card/src/hover-card-content-attributes.component.d.ts +0 -25
- package/hover-card/src/hover-card-content-attributes.token.d.ts +0 -3
- package/hover-card/src/hover-card-content.directive.d.ts +0 -124
- package/hover-card/src/hover-card-root.directive.d.ts +0 -182
- package/hover-card/src/hover-card-root.inject.d.ts +0 -3
- package/hover-card/src/hover-card-trigger.directive.d.ts +0 -26
- package/hover-card/src/hover-card.types.d.ts +0 -18
- package/hover-card/src/utils/cdk-event.service.d.ts +0 -30
- package/hover-card/src/utils/constants.d.ts +0 -1
- package/hover-card/src/utils/types.d.ts +0 -7
- package/label/src/label.directive.d.ts +0 -24
- package/menu/src/menu-content.directive.d.ts +0 -6
- package/menu/src/menu-directive.d.ts +0 -6
- package/menu/src/menu-group.directive.d.ts +0 -6
- package/menu/src/menu-item-checkbox.directive.d.ts +0 -21
- package/menu/src/menu-item-indicator.directive.d.ts +0 -10
- package/menu/src/menu-item-radio.directive.d.ts +0 -20
- package/menu/src/menu-item.directive.d.ts +0 -18
- package/menu/src/menu-label.directive.d.ts +0 -5
- package/menu/src/menu-radio-group.directive.d.ts +0 -6
- package/menu/src/menu-separator.directive.d.ts +0 -5
- package/menu/src/menu-trigger.directive.d.ts +0 -35
- package/menu/src/utils.d.ts +0 -3
- package/menubar/src/menubar-content.directive.d.ts +0 -6
- package/menubar/src/menubar-item-checkbox.directive.d.ts +0 -6
- package/menubar/src/menubar-item-indicator.directive.d.ts +0 -6
- package/menubar/src/menubar-item-radio.directive.d.ts +0 -6
- package/menubar/src/menubar-item.directive.d.ts +0 -6
- package/menubar/src/menubar-radio-group.directive.d.ts +0 -6
- package/menubar/src/menubar-root.directive.d.ts +0 -6
- package/menubar/src/menubar-separator.directive.d.ts +0 -6
- package/menubar/src/menubar-trigger.directive.d.ts +0 -6
- package/navigation-menu/src/navigation-menu-a11y.component.d.ts +0 -15
- package/navigation-menu/src/navigation-menu-content.directive.d.ts +0 -31
- package/navigation-menu/src/navigation-menu-indicator.directive.d.ts +0 -29
- package/navigation-menu/src/navigation-menu-item.directive.d.ts +0 -44
- package/navigation-menu/src/navigation-menu-link.directive.d.ts +0 -17
- package/navigation-menu/src/navigation-menu-list.directive.d.ts +0 -38
- package/navigation-menu/src/navigation-menu-sub.directive.d.ts +0 -19
- package/navigation-menu/src/navigation-menu-trigger.directive.d.ts +0 -33
- package/navigation-menu/src/navigation-menu-viewport.directive.d.ts +0 -61
- package/navigation-menu/src/navigation-menu.directive.d.ts +0 -76
- package/navigation-menu/src/navigation-menu.token.d.ts +0 -36
- package/navigation-menu/src/navigation-menu.types.d.ts +0 -13
- package/navigation-menu/src/utils.d.ts +0 -44
- package/number-field/src/number-field-context.token.d.ts +0 -24
- package/number-field/src/number-field-decrement.directive.d.ts +0 -23
- package/number-field/src/number-field-increment.directive.d.ts +0 -23
- package/number-field/src/number-field-input.directive.d.ts +0 -22
- package/number-field/src/number-field-root.directive.d.ts +0 -86
- package/number-field/src/types.d.ts +0 -1
- package/number-field/src/utils.d.ts +0 -18
- package/pagination/src/pagination-context.token.d.ts +0 -11
- package/pagination/src/pagination-ellipsis.directive.d.ts +0 -5
- package/pagination/src/pagination-first.directive.d.ts +0 -8
- package/pagination/src/pagination-last.directive.d.ts +0 -8
- package/pagination/src/pagination-list-item.directive.d.ts +0 -10
- package/pagination/src/pagination-list.directive.d.ts +0 -12
- package/pagination/src/pagination-next.directive.d.ts +0 -8
- package/pagination/src/pagination-prev.directive.d.ts +0 -8
- package/pagination/src/pagination-root.directive.d.ts +0 -18
- package/pagination/src/utils.d.ts +0 -9
- package/popover/src/popover-anchor.directive.d.ts +0 -28
- package/popover/src/popover-anchor.token.d.ts +0 -3
- package/popover/src/popover-arrow.directive.d.ts +0 -40
- package/popover/src/popover-arrow.token.d.ts +0 -3
- package/popover/src/popover-close.directive.d.ts +0 -15
- package/popover/src/popover-close.token.d.ts +0 -3
- package/popover/src/popover-content-attributes.component.d.ts +0 -23
- package/popover/src/popover-content-attributes.token.d.ts +0 -3
- package/popover/src/popover-content.directive.d.ts +0 -104
- package/popover/src/popover-root.directive.d.ts +0 -155
- package/popover/src/popover-root.inject.d.ts +0 -3
- package/popover/src/popover-trigger.directive.d.ts +0 -18
- package/popover/src/popover.types.d.ts +0 -14
- package/popover/src/utils/cdk-event.service.d.ts +0 -30
- package/popover/src/utils/constants.d.ts +0 -1
- package/popover/src/utils/types.d.ts +0 -7
- package/presence/src/presence.d.ts +0 -42
- package/presence/src/presence.directive.d.ts +0 -27
- package/presence/src/transitions/transition.collapse.d.ts +0 -15
- package/presence/src/transitions/transition.toast.d.ts +0 -3
- package/presence/src/types.d.ts +0 -15
- package/presence/src/utils.d.ts +0 -42
- package/progress/src/progress-indicator.directive.d.ts +0 -15
- package/progress/src/progress-root.directive.d.ts +0 -54
- package/radio/src/radio-indicator.directive.d.ts +0 -9
- package/radio/src/radio-item-input.directive.d.ts +0 -12
- package/radio/src/radio-item.directive.d.ts +0 -30
- package/radio/src/radio-root.directive.d.ts +0 -57
- package/radio/src/radio-tokens.d.ts +0 -14
- package/roving-focus/src/roving-focus-group.directive.d.ts +0 -50
- package/roving-focus/src/roving-focus-item.directive.d.ts +0 -50
- package/roving-focus/src/utils.d.ts +0 -19
- package/select/src/select-content.directive.d.ts +0 -20
- package/select/src/select-group.directive.d.ts +0 -5
- package/select/src/select-icon.directive.d.ts +0 -5
- package/select/src/select-item-indicator.directive.d.ts +0 -7
- package/select/src/select-item.directive.d.ts +0 -53
- package/select/src/select-label.directive.d.ts +0 -5
- package/select/src/select-separator.directive.d.ts +0 -5
- package/select/src/select-trigger.directive.d.ts +0 -17
- package/select/src/select-value.directive.d.ts +0 -8
- package/select/src/select.component.d.ts +0 -98
- package/separator/src/separator.directive.d.ts +0 -60
- package/slider/src/slider-horizontal.component.d.ts +0 -28
- package/slider/src/slider-impl.directive.d.ts +0 -17
- package/slider/src/slider-orientation-context.service.d.ts +0 -14
- package/slider/src/slider-range.component.d.ts +0 -13
- package/slider/src/slider-root.component.d.ts +0 -123
- package/slider/src/slider-thumb-impl.directive.d.ts +0 -27
- package/slider/src/slider-thumb.component.d.ts +0 -6
- package/slider/src/slider-track.component.d.ts +0 -7
- package/slider/src/slider-vertical.component.d.ts +0 -28
- package/slider/src/utils.d.ts +0 -52
- package/stepper/src/stepper-description.directive.d.ts +0 -6
- package/stepper/src/stepper-indicator.directive.d.ts +0 -6
- package/stepper/src/stepper-item-context.token.d.ts +0 -13
- package/stepper/src/stepper-item.directive.d.ts +0 -21
- package/stepper/src/stepper-root-context.token.d.ts +0 -12
- package/stepper/src/stepper-root.directive.d.ts +0 -33
- package/stepper/src/stepper-separator.directive.d.ts +0 -10
- package/stepper/src/stepper-title.directive.d.ts +0 -6
- package/stepper/src/stepper-trigger.directive.d.ts +0 -14
- package/stepper/src/types.d.ts +0 -1
- package/switch/src/switch-input.directive.d.ts +0 -11
- package/switch/src/switch-root.directive.d.ts +0 -74
- package/switch/src/switch-thumb.directive.d.ts +0 -9
- package/tabs/src/tabs-content.directive.d.ts +0 -13
- package/tabs/src/tabs-list.directive.d.ts +0 -10
- package/tabs/src/tabs-root.directive.d.ts +0 -53
- package/tabs/src/tabs-trigger.directive.d.ts +0 -29
- package/tabs/src/utils.d.ts +0 -2
- package/time-field/src/time-field-context.token.d.ts +0 -20
- package/time-field/src/time-field-input.directive.d.ts +0 -53
- package/time-field/src/time-field-root.directive.d.ts +0 -130
- package/toggle/src/toggle-visually-hidden-input.directive.d.ts +0 -6
- package/toggle/src/toggle.directive.d.ts +0 -65
- package/toggle-group/src/toggle-group-item.directive.d.ts +0 -37
- package/toggle-group/src/toggle-group-item.token.d.ts +0 -4
- package/toggle-group/src/toggle-group-without-focus.directive.d.ts +0 -69
- package/toggle-group/src/toggle-group.directive.d.ts +0 -74
- package/toggle-group/src/toggle-group.token.d.ts +0 -10
- package/toolbar/src/toolbar-button.directive.d.ts +0 -11
- package/toolbar/src/toolbar-link.directive.d.ts +0 -7
- package/toolbar/src/toolbar-root.directive.d.ts +0 -8
- package/toolbar/src/toolbar-root.token.d.ts +0 -5
- package/toolbar/src/toolbar-separator.directive.d.ts +0 -6
- package/toolbar/src/toolbar-toggle-group.directive.d.ts +0 -6
- package/toolbar/src/toolbar-toggle-item.directive.d.ts +0 -6
- package/tooltip/src/tooltip-anchor.directive.d.ts +0 -28
- package/tooltip/src/tooltip-anchor.token.d.ts +0 -3
- package/tooltip/src/tooltip-arrow.directive.d.ts +0 -40
- package/tooltip/src/tooltip-arrow.token.d.ts +0 -3
- package/tooltip/src/tooltip-close.directive.d.ts +0 -18
- package/tooltip/src/tooltip-close.token.d.ts +0 -3
- package/tooltip/src/tooltip-content-attributes.component.d.ts +0 -25
- package/tooltip/src/tooltip-content-attributes.token.d.ts +0 -3
- package/tooltip/src/tooltip-content.directive.d.ts +0 -104
- package/tooltip/src/tooltip-root.directive.d.ts +0 -168
- package/tooltip/src/tooltip-root.inject.d.ts +0 -3
- package/tooltip/src/tooltip-trigger.directive.d.ts +0 -26
- package/tooltip/src/tooltip.types.d.ts +0 -18
- package/tooltip/src/utils/cdk-event.service.d.ts +0 -30
- package/tooltip/src/utils/constants.d.ts +0 -1
- package/tooltip/src/utils/types.d.ts +0 -7
- package/visually-hidden/src/visually-hidden-input-bubble.directive.d.ts +0 -23
- package/visually-hidden/src/visually-hidden-input.directive.d.ts +0 -19
- package/visually-hidden/src/visually-hidden.directive.d.ts +0 -17
package/tabs/index.d.ts
CHANGED
|
@@ -1,14 +1,112 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
4
|
-
import
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, InjectionToken, InputSignalWithTransform } from '@angular/core';
|
|
3
|
+
import * as i1 from '@radix-ng/primitives/roving-focus';
|
|
4
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
5
|
+
|
|
6
|
+
interface TabsProps {
|
|
7
|
+
/** The value for the selected tab, if controlled */
|
|
8
|
+
value?: string;
|
|
9
|
+
/** The value of the tab to select by default, if uncontrolled */
|
|
10
|
+
defaultValue?: string;
|
|
11
|
+
/** A function called when a new tab is selected */
|
|
12
|
+
onValueChange?: (value: string) => void;
|
|
13
|
+
/**
|
|
14
|
+
* The orientation the tabs are layed out.
|
|
15
|
+
* Mainly so arrow navigation is done accordingly (left & right vs. up & down)
|
|
16
|
+
* @defaultValue horizontal
|
|
17
|
+
*/
|
|
18
|
+
orientation?: string;
|
|
19
|
+
/**
|
|
20
|
+
* The direction of navigation between toolbar items.
|
|
21
|
+
*/
|
|
22
|
+
dir?: string;
|
|
23
|
+
/**
|
|
24
|
+
* Whether a tab is activated automatically or manually.
|
|
25
|
+
* @defaultValue automatic
|
|
26
|
+
* */
|
|
27
|
+
activationMode?: 'automatic' | 'manual';
|
|
14
28
|
}
|
|
29
|
+
type DataOrientation = 'vertical' | 'horizontal';
|
|
30
|
+
declare const RDX_TABS_ROOT_TOKEN: InjectionToken<RdxTabsRootDirective>;
|
|
31
|
+
declare class RdxTabsRootDirective implements OnInit {
|
|
32
|
+
/**
|
|
33
|
+
* The controlled value of the tab to activate. Should be used in conjunction with `onValueChange`.
|
|
34
|
+
*/
|
|
35
|
+
readonly value: _angular_core.ModelSignal<string | undefined>;
|
|
36
|
+
readonly defaultValue: _angular_core.InputSignal<string | undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* When automatic, tabs are activated when receiving focus. When manual, tabs are activated when clicked.
|
|
39
|
+
*/
|
|
40
|
+
readonly activationMode: _angular_core.InputSignal<"automatic" | "manual">;
|
|
41
|
+
/**
|
|
42
|
+
* The orientation of the component.
|
|
43
|
+
*/
|
|
44
|
+
readonly orientation: _angular_core.InputSignal<DataOrientation>;
|
|
45
|
+
readonly dir: _angular_core.InputSignal<string>;
|
|
46
|
+
/**
|
|
47
|
+
* Event handler called when the value changes.
|
|
48
|
+
*/
|
|
49
|
+
readonly onValueChange: _angular_core.OutputEmitterRef<string>;
|
|
50
|
+
ngOnInit(): void;
|
|
51
|
+
select(value: string): void;
|
|
52
|
+
/** @ignore */
|
|
53
|
+
getBaseId(): string;
|
|
54
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxTabsRootDirective, never>;
|
|
55
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxTabsRootDirective, "[rdxTabsRoot]", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "activationMode": { "alias": "activationMode"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "onValueChange": "onValueChange"; }, never, never, true, never>;
|
|
56
|
+
}
|
|
57
|
+
|
|
58
|
+
declare class RdxTabsContentDirective {
|
|
59
|
+
protected readonly tabsContext: RdxTabsRootDirective;
|
|
60
|
+
/**
|
|
61
|
+
* A unique value that associates the content with a trigger.
|
|
62
|
+
*/
|
|
63
|
+
readonly value: _angular_core.InputSignal<string>;
|
|
64
|
+
protected readonly contentId: _angular_core.Signal<string>;
|
|
65
|
+
protected readonly triggerId: _angular_core.Signal<string>;
|
|
66
|
+
protected readonly selected: _angular_core.Signal<boolean>;
|
|
67
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxTabsContentDirective, never>;
|
|
68
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxTabsContentDirective, "[rdxTabsContent]", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
69
|
+
}
|
|
70
|
+
|
|
71
|
+
interface TabsListProps {
|
|
72
|
+
loop?: boolean;
|
|
73
|
+
}
|
|
74
|
+
declare class RdxTabsListDirective {
|
|
75
|
+
protected readonly tabsContext: RdxTabsRootDirective;
|
|
76
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxTabsListDirective, never>;
|
|
77
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxTabsListDirective, "[rdxTabsList]", never, {}, {}, never, never, true, [{ directive: typeof i1.RdxRovingFocusGroupDirective; inputs: { "dir": "dir"; "orientation": "orientation"; "loop": "loop"; }; outputs: {}; }]>;
|
|
78
|
+
}
|
|
79
|
+
|
|
80
|
+
interface TabsTriggerProps {
|
|
81
|
+
disabled: InputSignalWithTransform<boolean, BooleanInput>;
|
|
82
|
+
}
|
|
83
|
+
declare class RdxTabsTriggerDirective implements TabsTriggerProps {
|
|
84
|
+
private readonly rdxRovingFocusItemDirective;
|
|
85
|
+
protected readonly tabsContext: RdxTabsRootDirective;
|
|
86
|
+
/**
|
|
87
|
+
* A unique value that associates the trigger with a content.
|
|
88
|
+
*/
|
|
89
|
+
readonly value: _angular_core.InputSignal<string>;
|
|
90
|
+
/**
|
|
91
|
+
* When true, prevents the user from interacting with the tab.
|
|
92
|
+
*/
|
|
93
|
+
readonly disabled: InputSignalWithTransform<boolean, BooleanInput>;
|
|
94
|
+
protected readonly contentId: _angular_core.Signal<string>;
|
|
95
|
+
protected readonly triggerId: _angular_core.Signal<string>;
|
|
96
|
+
protected readonly isSelected: _angular_core.Signal<boolean>;
|
|
97
|
+
constructor();
|
|
98
|
+
protected onMouseDown(event: MouseEvent): void;
|
|
99
|
+
protected onKeyDown(event: KeyboardEvent): void;
|
|
100
|
+
protected onFocus(): void;
|
|
101
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxTabsTriggerDirective, never>;
|
|
102
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxTabsTriggerDirective, "[rdxTabsTrigger]", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.RdxRovingFocusItemDirective; inputs: { "focusable": "focusable"; "active": "active"; "allowShiftKey": "allowShiftKey"; }; outputs: {}; }]>;
|
|
103
|
+
}
|
|
104
|
+
|
|
105
|
+
declare class RdxTabsModule {
|
|
106
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxTabsModule, never>;
|
|
107
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<RdxTabsModule, never, [typeof RdxTabsRootDirective, typeof RdxTabsContentDirective, typeof RdxTabsListDirective, typeof RdxTabsTriggerDirective], [typeof RdxTabsRootDirective, typeof RdxTabsContentDirective, typeof RdxTabsListDirective, typeof RdxTabsTriggerDirective]>;
|
|
108
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<RdxTabsModule>;
|
|
109
|
+
}
|
|
110
|
+
|
|
111
|
+
export { RDX_TABS_ROOT_TOKEN, RdxTabsContentDirective, RdxTabsListDirective, RdxTabsModule, RdxTabsRootDirective, RdxTabsTriggerDirective };
|
|
112
|
+
export type { DataOrientation, TabsListProps, TabsProps };
|
package/time-field/index.d.ts
CHANGED
|
@@ -1,11 +1,212 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import * as
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OnInit, AfterViewInit, WritableSignal, InputSignal, ModelSignal, Signal, InjectionToken } from '@angular/core';
|
|
3
|
+
import * as _radix_ng_primitives_core from '@radix-ng/primitives/core';
|
|
4
|
+
import { TimeValue, HourCycle, Granularity, DateStep, Formatter, SegmentValueObj, SegmentPart } from '@radix-ng/primitives/core';
|
|
5
|
+
import * as _internationalized_date from '@internationalized/date';
|
|
6
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
7
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
8
|
+
|
|
9
|
+
declare class RdxTimeFieldRootDirective implements OnInit, AfterViewInit {
|
|
10
|
+
private readonly elementRef;
|
|
11
|
+
/**
|
|
12
|
+
* The controlled checked state of the calendar.
|
|
13
|
+
*/
|
|
14
|
+
readonly value: _angular_core.ModelSignal<TimeValue | undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* The hour cycle to use for formatting times. Defaults to the locale preference
|
|
17
|
+
*/
|
|
18
|
+
readonly hourCycle: _angular_core.InputSignal<HourCycle>;
|
|
19
|
+
/**
|
|
20
|
+
* The granularity to use for formatting the field. Defaults to 'day' if a CalendarDate is provided, otherwise defaults to 'minute'.
|
|
21
|
+
* The field will render segments for each part of the date up to and including the specified granularity.
|
|
22
|
+
*/
|
|
23
|
+
readonly granularity: _angular_core.InputSignal<Granularity | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* The locale to use for formatting dates.
|
|
26
|
+
*/
|
|
27
|
+
readonly locale: _angular_core.InputSignal<string>;
|
|
28
|
+
readonly dir: _angular_core.InputSignal<Direction>;
|
|
29
|
+
/**
|
|
30
|
+
* The minimum valid date that can be entered.
|
|
31
|
+
*/
|
|
32
|
+
readonly minValue: _angular_core.InputSignal<TimeValue | undefined>;
|
|
33
|
+
/**
|
|
34
|
+
* The maximum valid date that can be entered.
|
|
35
|
+
*/
|
|
36
|
+
readonly maxValue: _angular_core.InputSignal<TimeValue | undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* Whether or not to hide the time zone segment of the field.
|
|
39
|
+
*/
|
|
40
|
+
readonly hideTimeZone: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
41
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
42
|
+
/**
|
|
43
|
+
* Whether or not the field is readonly.
|
|
44
|
+
*/
|
|
45
|
+
readonly readonly: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
46
|
+
/**
|
|
47
|
+
* The stepping interval for the time fields. Defaults to 1
|
|
48
|
+
*/
|
|
49
|
+
readonly step: _angular_core.InputSignal<DateStep | undefined>;
|
|
50
|
+
readonly step$: _angular_core.Signal<DateStep>;
|
|
51
|
+
/**
|
|
52
|
+
* @ignore
|
|
53
|
+
*/
|
|
54
|
+
readonly defaultDate: _angular_core.Signal<TimeValue>;
|
|
55
|
+
/**
|
|
56
|
+
* The placeholder date, which is used to determine what month to display when no date is selected. This updates as the user navigates the calendar and can be used to programmatically control the calendar view
|
|
57
|
+
*/
|
|
58
|
+
readonly placeholder: _angular_core.ModelSignal<TimeValue | undefined>;
|
|
59
|
+
/**
|
|
60
|
+
* @ignore
|
|
61
|
+
*/
|
|
62
|
+
readonly segmentElements: _angular_core.WritableSignal<Set<HTMLElement>>;
|
|
63
|
+
/**
|
|
64
|
+
* @ignore
|
|
65
|
+
*/
|
|
66
|
+
readonly currentFocusedElement: _angular_core.WritableSignal<HTMLElement | null>;
|
|
67
|
+
/**
|
|
68
|
+
* @ignore
|
|
69
|
+
*/
|
|
70
|
+
formatter: Formatter;
|
|
71
|
+
/**
|
|
72
|
+
* @ignore
|
|
73
|
+
*/
|
|
74
|
+
readonly segmentValues: _angular_core.WritableSignal<SegmentValueObj>;
|
|
75
|
+
/**
|
|
76
|
+
* @ignore
|
|
77
|
+
*/
|
|
78
|
+
readonly inferredGranularity: _angular_core.Signal<Granularity | undefined>;
|
|
79
|
+
readonly convertedMinValue: _angular_core.Signal<_internationalized_date.CalendarDateTime | _internationalized_date.ZonedDateTime | undefined>;
|
|
80
|
+
readonly convertedMaxValue: _angular_core.Signal<_internationalized_date.CalendarDateTime | _internationalized_date.ZonedDateTime | undefined>;
|
|
81
|
+
readonly convertedModelValue: _angular_core.WritableSignal<TimeValue | undefined>;
|
|
82
|
+
readonly convertedPlaceholder: _angular_core.WritableSignal<TimeValue>;
|
|
83
|
+
/**
|
|
84
|
+
* @ignore
|
|
85
|
+
*/
|
|
86
|
+
readonly isInvalid: _angular_core.Signal<boolean>;
|
|
87
|
+
/**
|
|
88
|
+
* @ignore
|
|
89
|
+
*/
|
|
90
|
+
readonly allSegmentContent: _angular_core.Signal<{
|
|
91
|
+
obj: _radix_ng_primitives_core.SegmentContentObj;
|
|
92
|
+
arr: {
|
|
93
|
+
part: _radix_ng_primitives_core.SegmentPart;
|
|
94
|
+
value: string;
|
|
95
|
+
}[];
|
|
96
|
+
}>;
|
|
97
|
+
/**
|
|
98
|
+
* An array of segments that should be readonly, which prevent user input on them.
|
|
99
|
+
*/
|
|
100
|
+
readonly segmentContents: _angular_core.Signal<{
|
|
101
|
+
part: _radix_ng_primitives_core.SegmentPart;
|
|
102
|
+
value: string;
|
|
103
|
+
}[]>;
|
|
104
|
+
/**
|
|
105
|
+
* @ignore
|
|
106
|
+
*/
|
|
107
|
+
readonly currentSegmentIndex: _angular_core.Signal<number>;
|
|
108
|
+
/**
|
|
109
|
+
* @ignore
|
|
110
|
+
*/
|
|
111
|
+
readonly prevFocusableSegment: _angular_core.Signal<HTMLElement | null>;
|
|
112
|
+
/**
|
|
113
|
+
* @ignore
|
|
114
|
+
*/
|
|
115
|
+
readonly nextFocusableSegment: _angular_core.Signal<HTMLElement | null>;
|
|
116
|
+
/**
|
|
117
|
+
* @ignore
|
|
118
|
+
*/
|
|
119
|
+
readonly focusNext: () => void;
|
|
120
|
+
constructor();
|
|
121
|
+
ngOnInit(): void;
|
|
122
|
+
ngAfterViewInit(): void;
|
|
123
|
+
/**
|
|
124
|
+
* @ignore
|
|
125
|
+
*/
|
|
126
|
+
onKeydown(event: KeyboardEvent): void;
|
|
127
|
+
/**
|
|
128
|
+
* @ignore
|
|
129
|
+
*/
|
|
130
|
+
setFocusedElement(el: HTMLElement): void;
|
|
131
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxTimeFieldRootDirective, never>;
|
|
132
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxTimeFieldRootDirective, "[rdxTimeFieldRoot]", ["rdxTimeFieldRoot"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "hourCycle": { "alias": "hourCycle"; "required": false; "isSignal": true; }; "granularity": { "alias": "granularity"; "required": false; "isSignal": true; }; "locale": { "alias": "locale"; "required": false; "isSignal": true; }; "dir": { "alias": "dir"; "required": false; "isSignal": true; }; "minValue": { "alias": "minValue"; "required": false; "isSignal": true; }; "maxValue": { "alias": "maxValue"; "required": false; "isSignal": true; }; "hideTimeZone": { "alias": "hideTimeZone"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "placeholder": { "alias": "placeholder"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "placeholder": "placeholderChange"; }, never, never, true, never>;
|
|
11
133
|
}
|
|
134
|
+
|
|
135
|
+
declare class RdxTimeFieldInputDirective {
|
|
136
|
+
private readonly el;
|
|
137
|
+
private readonly rootContext;
|
|
138
|
+
/**
|
|
139
|
+
* The part of the date to render
|
|
140
|
+
* `'hour' | 'minute' | 'second' | 'dayPeriod' | 'literal' | 'timeZoneName'`
|
|
141
|
+
*/
|
|
142
|
+
readonly part: _angular_core.InputSignal<SegmentPart | undefined>;
|
|
143
|
+
/**
|
|
144
|
+
* @ignore
|
|
145
|
+
*/
|
|
146
|
+
readonly disabled: _angular_core.Signal<boolean>;
|
|
147
|
+
/**
|
|
148
|
+
* @ignore
|
|
149
|
+
*/
|
|
150
|
+
readonly readonly: _angular_core.Signal<boolean>;
|
|
151
|
+
/**
|
|
152
|
+
* @ignore
|
|
153
|
+
*/
|
|
154
|
+
readonly isInvalid: _angular_core.Signal<boolean>;
|
|
155
|
+
/**
|
|
156
|
+
* @ignore
|
|
157
|
+
*/
|
|
158
|
+
readonly hasLeftFocus: WritableSignal<boolean>;
|
|
159
|
+
/**
|
|
160
|
+
* @ignore
|
|
161
|
+
*/
|
|
162
|
+
readonly lastKeyZero: WritableSignal<boolean>;
|
|
163
|
+
private readonly fieldData;
|
|
164
|
+
private readonly attributes;
|
|
165
|
+
/**
|
|
166
|
+
* @ignore
|
|
167
|
+
*/
|
|
168
|
+
handleSegmentClick: (e: MouseEvent) => void;
|
|
169
|
+
/**
|
|
170
|
+
* @ignore
|
|
171
|
+
*/
|
|
172
|
+
handleSegmentKeydown: (e: KeyboardEvent) => void;
|
|
173
|
+
constructor();
|
|
174
|
+
/**
|
|
175
|
+
* @ignore
|
|
176
|
+
*/
|
|
177
|
+
onFocus(e: FocusEvent): void;
|
|
178
|
+
/**
|
|
179
|
+
* @ignore
|
|
180
|
+
*/
|
|
181
|
+
onFocusOut(): void;
|
|
182
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxTimeFieldInputDirective, never>;
|
|
183
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxTimeFieldInputDirective, "[rdxTimeFieldInput]", never, { "part": { "alias": "part"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
interface TimeFieldContextToken {
|
|
187
|
+
locale: InputSignal<string>;
|
|
188
|
+
value: ModelSignal<TimeValue | undefined>;
|
|
189
|
+
placeholder: ModelSignal<TimeValue>;
|
|
190
|
+
isInvalid: Signal<boolean>;
|
|
191
|
+
disabled: InputSignal<boolean>;
|
|
192
|
+
readonly: InputSignal<boolean>;
|
|
193
|
+
formatter: Formatter;
|
|
194
|
+
hourCycle: InputSignal<HourCycle>;
|
|
195
|
+
segmentValues: WritableSignal<SegmentValueObj>;
|
|
196
|
+
focusNext: () => void;
|
|
197
|
+
setFocusedElement: (el: HTMLElement) => void;
|
|
198
|
+
convertedModelValue: WritableSignal<TimeValue | undefined>;
|
|
199
|
+
convertedPlaceholder: WritableSignal<TimeValue>;
|
|
200
|
+
step$: Signal<DateStep>;
|
|
201
|
+
}
|
|
202
|
+
declare const TIME_FIELDS_ROOT_CONTEXT: InjectionToken<TimeFieldContextToken>;
|
|
203
|
+
declare function injectTimeFieldsRootContext(): TimeFieldContextToken;
|
|
204
|
+
|
|
205
|
+
declare class RdxTimeFieldModule {
|
|
206
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxTimeFieldModule, never>;
|
|
207
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<RdxTimeFieldModule, never, [typeof RdxTimeFieldRootDirective, typeof RdxTimeFieldInputDirective], [typeof RdxTimeFieldRootDirective, typeof RdxTimeFieldInputDirective]>;
|
|
208
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<RdxTimeFieldModule>;
|
|
209
|
+
}
|
|
210
|
+
|
|
211
|
+
export { RdxTimeFieldInputDirective, RdxTimeFieldModule, RdxTimeFieldRootDirective, TIME_FIELDS_ROOT_CONTEXT, injectTimeFieldsRootContext };
|
|
212
|
+
export type { TimeFieldContextToken };
|
package/toggle/index.d.ts
CHANGED
|
@@ -1,3 +1,75 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { OutputEmitterRef } from '@angular/core';
|
|
3
|
+
import * as i1 from '@radix-ng/primitives/visually-hidden';
|
|
4
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
5
|
+
import * as i1$1 from '@radix-ng/primitives/core';
|
|
6
|
+
import { RdxControlValueAccessor } from '@radix-ng/primitives/core';
|
|
7
|
+
|
|
8
|
+
declare class RdxToggleVisuallyHiddenInputDirective {
|
|
9
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxToggleVisuallyHiddenInputDirective, never>;
|
|
10
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxToggleVisuallyHiddenInputDirective, "input[rdxToggleVisuallyHiddenInput]", ["rdxToggleVisuallyHiddenInput"], {}, {}, never, never, true, [{ directive: typeof i1.RdxVisuallyHiddenInputDirective; inputs: { "name": "name"; "required": "required"; "value": "value"; "disabled": "disabled"; }; outputs: {}; }]>;
|
|
11
|
+
}
|
|
12
|
+
|
|
13
|
+
interface ToggleProps {
|
|
14
|
+
/**
|
|
15
|
+
* The controlled state of the toggle.
|
|
16
|
+
*/
|
|
17
|
+
pressed?: boolean;
|
|
18
|
+
/**
|
|
19
|
+
* The state of the toggle when initially rendered. Use `defaultPressed`
|
|
20
|
+
* if you do not need to control the state of the toggle.
|
|
21
|
+
* @defaultValue false
|
|
22
|
+
*/
|
|
23
|
+
defaultPressed?: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The callback that fires when the state of the toggle changes.
|
|
26
|
+
*/
|
|
27
|
+
onPressedChange?: OutputEmitterRef<boolean>;
|
|
28
|
+
/**
|
|
29
|
+
* Whether the toggle is disabled.
|
|
30
|
+
* @defaultValue false
|
|
31
|
+
*/
|
|
32
|
+
disabled?: boolean;
|
|
33
|
+
}
|
|
34
|
+
type DataState = 'on' | 'off';
|
|
35
|
+
/**
|
|
36
|
+
* @group Components
|
|
37
|
+
*/
|
|
38
|
+
declare class RdxToggleDirective {
|
|
39
|
+
/**
|
|
40
|
+
* @ignore
|
|
41
|
+
*/
|
|
42
|
+
readonly cva: RdxControlValueAccessor<any>;
|
|
43
|
+
/**
|
|
44
|
+
* The pressed state of the toggle when it is initially rendered.
|
|
45
|
+
* Use when you do not need to control its pressed state.
|
|
46
|
+
*
|
|
47
|
+
* @group Props
|
|
48
|
+
*/
|
|
49
|
+
readonly defaultPressed: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
50
|
+
/**
|
|
51
|
+
* The controlled pressed state of the toggle.
|
|
52
|
+
* Must be used in conjunction with `onPressedChange`.
|
|
53
|
+
*
|
|
54
|
+
* @group Props
|
|
55
|
+
*/
|
|
56
|
+
readonly pressed: _angular_core.ModelSignal<boolean>;
|
|
57
|
+
/**
|
|
58
|
+
* When true, prevents the user from interacting with the toggle.
|
|
59
|
+
*
|
|
60
|
+
* @group Props
|
|
61
|
+
*/
|
|
62
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
63
|
+
/**
|
|
64
|
+
* Event handler called when the pressed state of the toggle changes.
|
|
65
|
+
*
|
|
66
|
+
* @group Emits
|
|
67
|
+
*/
|
|
68
|
+
readonly onPressedChange: _angular_core.OutputRef<any>;
|
|
69
|
+
protected onClick(): void;
|
|
70
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxToggleDirective, never>;
|
|
71
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxToggleDirective, "[rdxToggle]", ["rdxToggle"], { "defaultPressed": { "alias": "defaultPressed"; "required": false; "isSignal": true; }; "pressed": { "alias": "pressed"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "pressed": "pressedChange"; "onPressedChange": "onPressedChange"; }, never, never, true, [{ directive: typeof i1$1.RdxControlValueAccessor; inputs: { "value": "pressed"; "disabled": "disabled"; }; outputs: {}; }]>;
|
|
72
|
+
}
|
|
73
|
+
|
|
74
|
+
export { RdxToggleDirective, RdxToggleVisuallyHiddenInputDirective };
|
|
75
|
+
export type { DataState, ToggleProps };
|
package/toggle-group/index.d.ts
CHANGED
|
@@ -1,5 +1,194 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import * as i1 from '@radix-ng/primitives/roving-focus';
|
|
5
|
+
import * as i2 from '@radix-ng/primitives/toggle';
|
|
6
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
7
|
+
import { AcceptableValue } from '@radix-ng/primitives/core';
|
|
8
|
+
|
|
9
|
+
interface IRdxToggleGroup {
|
|
10
|
+
toggle(value: string): void;
|
|
11
|
+
disabled: any;
|
|
12
|
+
value: any;
|
|
13
|
+
type: any;
|
|
14
|
+
accessorDisabled: any;
|
|
15
|
+
}
|
|
16
|
+
declare const RdxToggleGroupToken: InjectionToken<IRdxToggleGroup>;
|
|
17
|
+
declare function injectToggleGroup(): IRdxToggleGroup;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* @group Components
|
|
21
|
+
*/
|
|
22
|
+
declare class RdxToggleGroupItemDirective {
|
|
23
|
+
private readonly rdxToggleDirective;
|
|
24
|
+
private readonly rdxRovingFocusItemDirective;
|
|
25
|
+
/**
|
|
26
|
+
* Access the toggle group.
|
|
27
|
+
* @ignore
|
|
28
|
+
*/
|
|
29
|
+
protected readonly rootContext: IRdxToggleGroup;
|
|
30
|
+
/**
|
|
31
|
+
* The value of this toggle button.
|
|
32
|
+
*
|
|
33
|
+
* @group Props
|
|
34
|
+
*/
|
|
35
|
+
readonly value: _angular_core.InputSignal<string>;
|
|
36
|
+
/**
|
|
37
|
+
* Whether this toggle button is disabled.
|
|
38
|
+
* @defaultValue false
|
|
39
|
+
* @group Props
|
|
40
|
+
*/
|
|
41
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
42
|
+
private readonly isPressed;
|
|
43
|
+
private readonly isDisabled;
|
|
44
|
+
constructor();
|
|
45
|
+
/**
|
|
46
|
+
* @ignore
|
|
47
|
+
*/
|
|
48
|
+
toggle(): void;
|
|
49
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxToggleGroupItemDirective, never>;
|
|
50
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxToggleGroupItemDirective, "[rdxToggleGroupItem]", ["rdxToggleGroupItem"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.RdxRovingFocusItemDirective; inputs: { "focusable": "focusable"; "active": "active"; "allowShiftKey": "allowShiftKey"; }; outputs: {}; }, { directive: typeof i2.RdxToggleDirective; inputs: { "pressed": "pressed"; "disabled": "disabled"; }; outputs: {}; }]>;
|
|
51
|
+
}
|
|
52
|
+
|
|
53
|
+
declare const RdxToggleGroupItemToken: InjectionToken<RdxToggleGroupItemDirective>;
|
|
54
|
+
declare function injectToggleGroupItem(): RdxToggleGroupItemDirective;
|
|
55
|
+
|
|
56
|
+
declare class RdxToggleGroupWithoutFocusDirective implements ControlValueAccessor {
|
|
57
|
+
/**
|
|
58
|
+
* @ignore
|
|
59
|
+
*/
|
|
60
|
+
readonly id: string;
|
|
61
|
+
/**
|
|
62
|
+
* @group Props
|
|
63
|
+
*/
|
|
64
|
+
readonly value: _angular_core.ModelSignal<string | string[] | undefined>;
|
|
65
|
+
/**
|
|
66
|
+
* @group Props
|
|
67
|
+
*/
|
|
68
|
+
readonly type: _angular_core.InputSignal<"single" | "multiple">;
|
|
69
|
+
/**
|
|
70
|
+
* Whether the toggle group is disabled.
|
|
71
|
+
* @defaultValue false
|
|
72
|
+
* @group Props
|
|
73
|
+
*/
|
|
74
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
75
|
+
/**
|
|
76
|
+
* Event emitted when the selected toggle button changes.
|
|
77
|
+
* @group Emits
|
|
78
|
+
*/
|
|
79
|
+
readonly onValueChange: _angular_core.OutputEmitterRef<string | string[] | undefined>;
|
|
80
|
+
/**
|
|
81
|
+
* The value change callback.
|
|
82
|
+
*/
|
|
83
|
+
private onChange?;
|
|
84
|
+
/**
|
|
85
|
+
* onTouch function registered via registerOnTouch (ControlValueAccessor).
|
|
86
|
+
*/
|
|
87
|
+
protected onTouched?: () => void;
|
|
88
|
+
/**
|
|
89
|
+
* Toggle a value.
|
|
90
|
+
* @param value The value to toggle.
|
|
91
|
+
* @ignore
|
|
92
|
+
*/
|
|
93
|
+
toggle(value: string): void;
|
|
94
|
+
/**
|
|
95
|
+
* Select a value from Angular forms.
|
|
96
|
+
* @param value The value to select.
|
|
97
|
+
* @ignore
|
|
98
|
+
*/
|
|
99
|
+
writeValue(value: string): void;
|
|
100
|
+
/**
|
|
101
|
+
* Register a callback to be called when the value changes.
|
|
102
|
+
* @param fn The callback to register.
|
|
103
|
+
* @ignore
|
|
104
|
+
*/
|
|
105
|
+
registerOnChange(fn: (value: string | string[] | undefined) => void): void;
|
|
106
|
+
/**
|
|
107
|
+
* Register a callback to be called when the toggle group is touched.
|
|
108
|
+
* @param fn The callback to register.
|
|
109
|
+
* @ignore
|
|
110
|
+
*/
|
|
111
|
+
registerOnTouched(fn: () => void): void;
|
|
112
|
+
private readonly accessorDisabled;
|
|
113
|
+
/**
|
|
114
|
+
* Set the disabled state of the toggle group.
|
|
115
|
+
* @param isDisabled Whether the toggle group is disabled.
|
|
116
|
+
* @ignore
|
|
117
|
+
*/
|
|
118
|
+
setDisabledState(isDisabled: boolean): void;
|
|
119
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxToggleGroupWithoutFocusDirective, never>;
|
|
120
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxToggleGroupWithoutFocusDirective, "[rdxToggleGroupWithoutFocus]", ["rdxToggleGroupWithoutFocus"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "onValueChange": "onValueChange"; }, never, never, true, never>;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* @group Components
|
|
125
|
+
*/
|
|
126
|
+
declare class RdxToggleGroupDirective implements ControlValueAccessor {
|
|
127
|
+
/**
|
|
128
|
+
* @ignore
|
|
129
|
+
*/
|
|
130
|
+
readonly id: string;
|
|
131
|
+
/**
|
|
132
|
+
* @group Props
|
|
133
|
+
*/
|
|
134
|
+
readonly value: _angular_core.ModelSignal<AcceptableValue | AcceptableValue[] | undefined>;
|
|
135
|
+
/**
|
|
136
|
+
* @group Props
|
|
137
|
+
*/
|
|
138
|
+
readonly type: _angular_core.InputSignal<"single" | "multiple">;
|
|
139
|
+
/**
|
|
140
|
+
* Whether the toggle group is disabled.
|
|
141
|
+
* @defaultValue false
|
|
142
|
+
* @group Props
|
|
143
|
+
*/
|
|
144
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
145
|
+
/**
|
|
146
|
+
* Event emitted when the selected toggle button changes.
|
|
147
|
+
* @group Emits
|
|
148
|
+
*/
|
|
149
|
+
readonly onValueChange: _angular_core.OutputEmitterRef<AcceptableValue | AcceptableValue[] | undefined>;
|
|
150
|
+
/**
|
|
151
|
+
* The value change callback.
|
|
152
|
+
*/
|
|
153
|
+
private onChange?;
|
|
154
|
+
/**
|
|
155
|
+
* onTouch function registered via registerOnTouch (ControlValueAccessor).
|
|
156
|
+
*/
|
|
157
|
+
protected onTouched?: () => void;
|
|
158
|
+
/**
|
|
159
|
+
* Toggle a value.
|
|
160
|
+
* @param value The value to toggle.
|
|
161
|
+
* @ignore
|
|
162
|
+
*/
|
|
163
|
+
toggle(value: AcceptableValue): void;
|
|
164
|
+
/**
|
|
165
|
+
* Select a value from Angular forms.
|
|
166
|
+
* @param value The value to select.
|
|
167
|
+
* @ignore
|
|
168
|
+
*/
|
|
169
|
+
writeValue(value: string): void;
|
|
170
|
+
/**
|
|
171
|
+
* Register a callback to be called when the value changes.
|
|
172
|
+
* @param fn The callback to register.
|
|
173
|
+
* @ignore
|
|
174
|
+
*/
|
|
175
|
+
registerOnChange(fn: (value: AcceptableValue | AcceptableValue[] | undefined) => void): void;
|
|
176
|
+
/**
|
|
177
|
+
* Register a callback to be called when the toggle group is touched.
|
|
178
|
+
* @param fn The callback to register.
|
|
179
|
+
* @ignore
|
|
180
|
+
*/
|
|
181
|
+
registerOnTouched(fn: () => void): void;
|
|
182
|
+
readonly accessorDisabled: _angular_core.WritableSignal<boolean>;
|
|
183
|
+
/**
|
|
184
|
+
* Set the disabled state of the toggle group.
|
|
185
|
+
* @param isDisabled Whether the toggle group is disabled.
|
|
186
|
+
* @ignore
|
|
187
|
+
*/
|
|
188
|
+
setDisabledState(isDisabled: boolean): void;
|
|
189
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxToggleGroupDirective, never>;
|
|
190
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxToggleGroupDirective, "[rdxToggleGroup]", ["rdxToggleGroup"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "onValueChange": "onValueChange"; }, never, never, true, [{ directive: typeof i1.RdxRovingFocusGroupDirective; inputs: { "dir": "dir"; "orientation": "orientation"; "loop": "loop"; }; outputs: {}; }]>;
|
|
191
|
+
}
|
|
192
|
+
|
|
193
|
+
export { RdxToggleGroupDirective, RdxToggleGroupItemDirective, RdxToggleGroupItemToken, RdxToggleGroupToken, RdxToggleGroupWithoutFocusDirective, injectToggleGroup, injectToggleGroupItem };
|
|
194
|
+
export type { IRdxToggleGroup };
|