@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
|
@@ -0,0 +1,206 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
import { NumberInput, BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import { Middleware, Placement } from '@floating-ui/dom';
|
|
5
|
+
|
|
6
|
+
declare class RdxPopperAnchor {
|
|
7
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
8
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPopperAnchor, never>;
|
|
9
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPopperAnchor, "[rdxPopperAnchor]", never, {}, {}, never, never, true, never>;
|
|
10
|
+
}
|
|
11
|
+
|
|
12
|
+
declare class RdxPopper {
|
|
13
|
+
readonly anchor: _angular_core.Signal<RdxPopperAnchor>;
|
|
14
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPopper, never>;
|
|
15
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPopper, "[rdxPopperRoot]", never, {}, {}, ["anchor"], never, true, never>;
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
declare class RdxPopperContent {
|
|
19
|
+
protected readonly popperContentWrapper: {
|
|
20
|
+
placedSide: _angular_core.Signal<"top" | "right" | "bottom" | "left" | undefined>;
|
|
21
|
+
placedAlign: _angular_core.Signal<"start" | "center" | "end" | undefined>;
|
|
22
|
+
arrowX: _angular_core.Signal<number | undefined>;
|
|
23
|
+
arrowY: _angular_core.Signal<number | undefined>;
|
|
24
|
+
shouldHideArrow: _angular_core.Signal<boolean>;
|
|
25
|
+
isPositioned: _angular_core.Signal<boolean>;
|
|
26
|
+
};
|
|
27
|
+
/**
|
|
28
|
+
* if the PopperContent hasn't been placed yet (not all measurements done)
|
|
29
|
+
* we prevent animations so that users's animation don't kick in too early referring wrong sides
|
|
30
|
+
*/
|
|
31
|
+
protected readonly style: _angular_core.Signal<{
|
|
32
|
+
animation: string | undefined;
|
|
33
|
+
}>;
|
|
34
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPopperContent, never>;
|
|
35
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPopperContent, "[rdxPopperContent]", never, {}, {}, never, never, true, never>;
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
declare const SIDE_OPTIONS: readonly ["top", "right", "bottom", "left"];
|
|
39
|
+
declare const ALIGN_OPTIONS: readonly ["start", "center", "end"];
|
|
40
|
+
type Side = (typeof SIDE_OPTIONS)[number];
|
|
41
|
+
type Align = (typeof ALIGN_OPTIONS)[number];
|
|
42
|
+
declare function isNotNull<T>(value: T | null): value is T;
|
|
43
|
+
declare function transformOrigin(options: {
|
|
44
|
+
arrowWidth: number;
|
|
45
|
+
arrowHeight: number;
|
|
46
|
+
}): Middleware;
|
|
47
|
+
declare function getSideAndAlignFromPlacement(placement: Placement): readonly ["top" | "right" | "bottom" | "left", "start" | "center" | "end"];
|
|
48
|
+
|
|
49
|
+
declare const context: () => {
|
|
50
|
+
placedSide: _angular_core.Signal<"top" | "right" | "bottom" | "left" | undefined>;
|
|
51
|
+
placedAlign: _angular_core.Signal<"start" | "center" | "end" | undefined>;
|
|
52
|
+
arrowX: _angular_core.Signal<number | undefined>;
|
|
53
|
+
arrowY: _angular_core.Signal<number | undefined>;
|
|
54
|
+
shouldHideArrow: _angular_core.Signal<boolean>;
|
|
55
|
+
isPositioned: _angular_core.Signal<boolean>;
|
|
56
|
+
};
|
|
57
|
+
type PopperContentWrapperContext = ReturnType<typeof context>;
|
|
58
|
+
declare const injectPopperContentWrapperContext: (optional?: boolean) => {
|
|
59
|
+
placedSide: _angular_core.Signal<"top" | "right" | "bottom" | "left" | undefined>;
|
|
60
|
+
placedAlign: _angular_core.Signal<"start" | "center" | "end" | undefined>;
|
|
61
|
+
arrowX: _angular_core.Signal<number | undefined>;
|
|
62
|
+
arrowY: _angular_core.Signal<number | undefined>;
|
|
63
|
+
shouldHideArrow: _angular_core.Signal<boolean>;
|
|
64
|
+
isPositioned: _angular_core.Signal<boolean>;
|
|
65
|
+
} | null;
|
|
66
|
+
declare const providePopperContentWrapperContext: (useFactory: () => {
|
|
67
|
+
placedSide: _angular_core.Signal<"top" | "right" | "bottom" | "left" | undefined>;
|
|
68
|
+
placedAlign: _angular_core.Signal<"start" | "center" | "end" | undefined>;
|
|
69
|
+
arrowX: _angular_core.Signal<number | undefined>;
|
|
70
|
+
arrowY: _angular_core.Signal<number | undefined>;
|
|
71
|
+
shouldHideArrow: _angular_core.Signal<boolean>;
|
|
72
|
+
isPositioned: _angular_core.Signal<boolean>;
|
|
73
|
+
}) => _angular_core.Provider;
|
|
74
|
+
declare class RdxPopperContentWrapper {
|
|
75
|
+
private readonly elementRef;
|
|
76
|
+
private readonly destroyRef;
|
|
77
|
+
private readonly injector;
|
|
78
|
+
private readonly context;
|
|
79
|
+
private readonly isBrowser;
|
|
80
|
+
/**
|
|
81
|
+
* The preferred side of the anchor to render against when open.
|
|
82
|
+
* Will be reversed when collisions occur and avoidCollisions is enabled.
|
|
83
|
+
*/
|
|
84
|
+
readonly side: _angular_core.InputSignal<"top" | "right" | "bottom" | "left">;
|
|
85
|
+
/**
|
|
86
|
+
* Distance between the anchor and the popup in pixels.
|
|
87
|
+
*/
|
|
88
|
+
readonly sideOffset: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
89
|
+
/**
|
|
90
|
+
* How to align the popup relative to the specified side. May change when collisions occur.
|
|
91
|
+
*/
|
|
92
|
+
readonly align: _angular_core.InputSignal<"start" | "center" | "end">;
|
|
93
|
+
/** An offset in pixels from the `start` or `end` alignment options. */
|
|
94
|
+
readonly alignOffset: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
95
|
+
/**
|
|
96
|
+
* Minimum distance to maintain between the arrow and the edges of the popup.
|
|
97
|
+
* If your content has border-radius, this will prevent it from overflowing the corners.
|
|
98
|
+
*/
|
|
99
|
+
readonly arrowPadding: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
100
|
+
/** When `true`, overrides the `side` and `align` preferences to prevent collisions with boundary edges. */
|
|
101
|
+
readonly avoidCollisions: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
102
|
+
/**
|
|
103
|
+
* The element used as the collision boundary.
|
|
104
|
+
* By default this is the viewport, though you can provide additional element(s) to be included in this check.
|
|
105
|
+
*/
|
|
106
|
+
readonly collisionBoundary: _angular_core.InputSignal<ElementRef<HTMLElement> | ElementRef<HTMLElement>[] | undefined>;
|
|
107
|
+
/**
|
|
108
|
+
* The distance in pixels from the boundary edges where collision detection should occur.
|
|
109
|
+
* Accepts a number (same for all sides), or a partial padding object, for example: `{ top: 20, left: 20 }`.
|
|
110
|
+
*/
|
|
111
|
+
readonly collisionPadding: _angular_core.InputSignal<number | Partial<Record<"top" | "right" | "bottom" | "left", number>>>;
|
|
112
|
+
/**
|
|
113
|
+
* The sticky behavior on the align axis. `partial` will keep the
|
|
114
|
+
* content in the boundary as long as the trigger is at least partially
|
|
115
|
+
* in the boundary whilst "always" will keep the content in the boundary
|
|
116
|
+
* regardless.
|
|
117
|
+
*/
|
|
118
|
+
readonly sticky: _angular_core.InputSignal<"partial" | "always">;
|
|
119
|
+
/**
|
|
120
|
+
* Whether to hide the content when the trigger becomes fully occluded.
|
|
121
|
+
*/
|
|
122
|
+
readonly hideWhenDetached: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
123
|
+
/**
|
|
124
|
+
* The type of CSS position property to use.
|
|
125
|
+
*/
|
|
126
|
+
readonly positionStrategy: _angular_core.InputSignal<"fixed" | "absolute">;
|
|
127
|
+
/**
|
|
128
|
+
* Strategy to update the position of the floating element on every animation frame.
|
|
129
|
+
*/
|
|
130
|
+
readonly updatePositionStrategy: _angular_core.InputSignal<"always" | "optimized">;
|
|
131
|
+
/**
|
|
132
|
+
* Emits when the element is placed.
|
|
133
|
+
*/
|
|
134
|
+
readonly placed: _angular_core.OutputEmitterRef<void>;
|
|
135
|
+
readonly arrow: _angular_core.Signal<any>;
|
|
136
|
+
readonly shouldHideArrow: _angular_core.Signal<boolean>;
|
|
137
|
+
readonly arrowX: _angular_core.Signal<number | undefined>;
|
|
138
|
+
readonly arrowY: _angular_core.Signal<number | undefined>;
|
|
139
|
+
private readonly desiredPlacement;
|
|
140
|
+
private readonly arrowSize;
|
|
141
|
+
private readonly boundary;
|
|
142
|
+
private readonly hasExplicitBoundaries;
|
|
143
|
+
private readonly detectOverflowOptions;
|
|
144
|
+
private readonly position;
|
|
145
|
+
/**
|
|
146
|
+
* Whether the panel is positioned.
|
|
147
|
+
*/
|
|
148
|
+
readonly isPositioned: _angular_core.Signal<boolean>;
|
|
149
|
+
/**
|
|
150
|
+
* The current placement of the panel.
|
|
151
|
+
*/
|
|
152
|
+
readonly placement: _angular_core.Signal<{
|
|
153
|
+
side: Side;
|
|
154
|
+
align: Align;
|
|
155
|
+
} | undefined>;
|
|
156
|
+
/**
|
|
157
|
+
* The side the panel is currently placed against.
|
|
158
|
+
*/
|
|
159
|
+
readonly placedSide: _angular_core.Signal<"top" | "right" | "bottom" | "left" | undefined>;
|
|
160
|
+
/**
|
|
161
|
+
* The current alignment of the panel.
|
|
162
|
+
*/
|
|
163
|
+
readonly placedAlign: _angular_core.Signal<"start" | "center" | "end" | undefined>;
|
|
164
|
+
private readonly contentElementRef;
|
|
165
|
+
protected readonly contentZIndex: _angular_core.Signal<string | 0>;
|
|
166
|
+
protected readonly style: _angular_core.Signal<{
|
|
167
|
+
visibility: string;
|
|
168
|
+
pointerEvents: string;
|
|
169
|
+
position: "fixed" | "absolute";
|
|
170
|
+
transform: string;
|
|
171
|
+
minWidth: string;
|
|
172
|
+
zIndex: string | number;
|
|
173
|
+
top: string;
|
|
174
|
+
left: string;
|
|
175
|
+
'--radix-popper-transform-origin': string;
|
|
176
|
+
}>;
|
|
177
|
+
private readonly afterNextRender;
|
|
178
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPopperContentWrapper, never>;
|
|
179
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPopperContentWrapper, "[rdxPopperContentWrapper]", never, { "side": { "alias": "side"; "required": false; "isSignal": true; }; "sideOffset": { "alias": "sideOffset"; "required": false; "isSignal": true; }; "align": { "alias": "align"; "required": false; "isSignal": true; }; "alignOffset": { "alias": "alignOffset"; "required": false; "isSignal": true; }; "arrowPadding": { "alias": "arrowPadding"; "required": false; "isSignal": true; }; "avoidCollisions": { "alias": "avoidCollisions"; "required": false; "isSignal": true; }; "collisionBoundary": { "alias": "collisionBoundary"; "required": false; "isSignal": true; }; "collisionPadding": { "alias": "collisionPadding"; "required": false; "isSignal": true; }; "sticky": { "alias": "sticky"; "required": false; "isSignal": true; }; "hideWhenDetached": { "alias": "hideWhenDetached"; "required": false; "isSignal": true; }; "positionStrategy": { "alias": "positionStrategy"; "required": false; "isSignal": true; }; "updatePositionStrategy": { "alias": "updatePositionStrategy"; "required": false; "isSignal": true; }; }, { "placed": "placed"; }, ["arrow", "contentElementRef"], never, true, never>;
|
|
180
|
+
}
|
|
181
|
+
|
|
182
|
+
declare class RdxPopperArrow {
|
|
183
|
+
private readonly popperContentContext;
|
|
184
|
+
private readonly environmentInjector;
|
|
185
|
+
readonly elementRef: ElementRef<HTMLElement>;
|
|
186
|
+
readonly width: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
187
|
+
readonly height: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
188
|
+
baseSide: _angular_core.Signal<"top" | "right" | "bottom" | "left">;
|
|
189
|
+
protected readonly style: _angular_core.Signal<{
|
|
190
|
+
[x: string]: string | number | undefined;
|
|
191
|
+
position: string;
|
|
192
|
+
left: string | undefined;
|
|
193
|
+
top: string | undefined;
|
|
194
|
+
transformOrigin: string;
|
|
195
|
+
transform: string;
|
|
196
|
+
visibility: string | undefined;
|
|
197
|
+
}>;
|
|
198
|
+
private onCleanup;
|
|
199
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPopperArrow, never>;
|
|
200
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPopperArrow, "[rdxPopperArrow]", never, { "width": { "alias": "width"; "required": false; "isSignal": true; }; "height": { "alias": "height"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
201
|
+
}
|
|
202
|
+
|
|
203
|
+
declare const popperImports: (typeof RdxPopperAnchor | typeof RdxPopper | typeof RdxPopperContent | typeof RdxPopperContentWrapper)[];
|
|
204
|
+
|
|
205
|
+
export { RdxPopper, RdxPopperAnchor, RdxPopperArrow, RdxPopperContent, RdxPopperContentWrapper, getSideAndAlignFromPlacement, injectPopperContentWrapperContext, isNotNull, popperImports, providePopperContentWrapperContext, transformOrigin };
|
|
206
|
+
export type { Align, PopperContentWrapperContext, Side };
|
package/portal/README.md
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @radix-ng/primitives/portal
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ElementRef } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare class RdxPortal {
|
|
5
|
+
private readonly elementRef;
|
|
6
|
+
private readonly platformId;
|
|
7
|
+
private readonly document;
|
|
8
|
+
private readonly destroyRef;
|
|
9
|
+
/**
|
|
10
|
+
* Specify a container element to portal the content into.
|
|
11
|
+
*/
|
|
12
|
+
readonly container: _angular_core.InputSignal<ElementRef<HTMLElement> | undefined>;
|
|
13
|
+
private _computedContainer;
|
|
14
|
+
readonly computedContainer: _angular_core.WritableSignal<ElementRef<HTMLElement> | undefined>;
|
|
15
|
+
private readonly elementContainer;
|
|
16
|
+
constructor();
|
|
17
|
+
setContainer(container: ElementRef<HTMLElement>): void;
|
|
18
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxPortal, never>;
|
|
19
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxPortal, "[rdxPortal]", never, { "container": { "alias": "container"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
20
|
+
}
|
|
21
|
+
|
|
22
|
+
export { RdxPortal };
|
package/presence/index.d.ts
CHANGED
|
@@ -1,5 +1,103 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { NgZone, Signal, InjectionToken, Provider } from '@angular/core';
|
|
3
|
+
import { Subject, Observable } from 'rxjs';
|
|
4
|
+
|
|
5
|
+
type TransitionOptions<T> = {
|
|
6
|
+
context?: T;
|
|
7
|
+
animation: boolean;
|
|
8
|
+
state?: 'continue' | 'stop';
|
|
9
|
+
transitionTimerDelayMs?: number;
|
|
10
|
+
};
|
|
11
|
+
type TransitionContext<T> = {
|
|
12
|
+
transition$: Subject<any>;
|
|
13
|
+
complete: () => void;
|
|
14
|
+
context: T;
|
|
15
|
+
};
|
|
16
|
+
type TransitionStartFn<T = any> = (element: HTMLElement, animation: boolean, context: T) => TransitionEndFn | void;
|
|
17
|
+
type TransitionEndFn = () => void;
|
|
18
|
+
|
|
19
|
+
/**
|
|
20
|
+
* Manages the presence of an element with optional transition animation.
|
|
21
|
+
*
|
|
22
|
+
* @template T - The type of the context object used in the transition.
|
|
23
|
+
* @param {NgZone} zone - The Angular zone to control the change detection context.
|
|
24
|
+
* @param {HTMLElement} element - The target HTML element to apply the transition.
|
|
25
|
+
* @param {TransitionOptions<T>} options - Options for controlling the transition behavior.
|
|
26
|
+
* @param {T} [options.context] - An optional context object to pass through the transition.
|
|
27
|
+
* @param {boolean} options.animation - A flag indicating if the transition should be animated.
|
|
28
|
+
* @param {'start' | 'continue' | 'stop'} options.state - The desired state of the transition.
|
|
29
|
+
* @param {TransitionStartFn<T>} startFn - A function to start the transition.
|
|
30
|
+
* @returns {Observable<void>} - An observable that emits when the transition completes.
|
|
31
|
+
*
|
|
32
|
+
* The `usePresence` function is designed to manage the presence and visibility of an HTML element,
|
|
33
|
+
* optionally applying a transition animation. It utilizes Angular's NgZone for efficient change
|
|
34
|
+
* detection management and allows for different states of transitions ('start', 'continue', 'stop').
|
|
35
|
+
* The function takes a start function to handle the beginning of the transition and returns an
|
|
36
|
+
* observable that completes when the transition ends.
|
|
37
|
+
*
|
|
38
|
+
* Example usage:
|
|
39
|
+
*
|
|
40
|
+
* const options: TransitionOptions<MyContext> = {
|
|
41
|
+
* context: {}, // your context object
|
|
42
|
+
* animation: true,
|
|
43
|
+
* state: 'start'
|
|
44
|
+
* };
|
|
45
|
+
*
|
|
46
|
+
* const startFn: TransitionStartFn<MyContext> = (el, animation, context) => {
|
|
47
|
+
* el.classList.add('active');
|
|
48
|
+
* return () => el.classList.remove('active');
|
|
49
|
+
* };
|
|
50
|
+
*
|
|
51
|
+
* usePresence(zone, element, startFn, options).subscribe(() => {
|
|
52
|
+
* console.log('Transition completed');
|
|
53
|
+
* });
|
|
54
|
+
*/
|
|
55
|
+
declare const usePresence: <T>(zone: NgZone, element: HTMLElement, startFn: TransitionStartFn<T>, options: TransitionOptions<T>) => Observable<void>;
|
|
56
|
+
declare const completeTransition: (element: HTMLElement) => void;
|
|
57
|
+
|
|
58
|
+
/**
|
|
59
|
+
* Context interface for RdxPresence directive
|
|
60
|
+
* Contains a Signal that indicates whether the content should be present in the DOM
|
|
61
|
+
*/
|
|
62
|
+
type RdxPresenceContext = {
|
|
63
|
+
present: Signal<boolean>;
|
|
64
|
+
};
|
|
65
|
+
declare const RDX_PRESENCE_CONTEXT: InjectionToken<RdxPresenceContext>;
|
|
66
|
+
/**
|
|
67
|
+
* Factory provider helper.
|
|
68
|
+
* In your parent component/directive you can write:
|
|
69
|
+
*
|
|
70
|
+
* providers: [
|
|
71
|
+
* provideRdxPresenceContext(() => ({ present: myBooleanSignal }))
|
|
72
|
+
* ]
|
|
73
|
+
*/
|
|
74
|
+
declare function provideRdxPresenceContext(contextFactory: () => RdxPresenceContext): Provider;
|
|
75
|
+
declare class RdxPresenceDirective {
|
|
76
|
+
private readonly context;
|
|
77
|
+
private readonly viewContainerRef;
|
|
78
|
+
private readonly templateRef;
|
|
79
|
+
private effectRef;
|
|
80
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxPresenceDirective, never>;
|
|
81
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxPresenceDirective, never, never, {}, {}, never, never, true, never>;
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
type CollapseContext = {
|
|
85
|
+
direction: 'show' | 'hide';
|
|
86
|
+
dimension: 'width' | 'height';
|
|
87
|
+
maxSize?: string;
|
|
88
|
+
};
|
|
89
|
+
/**
|
|
90
|
+
* Function to handle the start of a collapsing transition.
|
|
91
|
+
*
|
|
92
|
+
* @param element - The HTML element to animate.
|
|
93
|
+
* @param animation - Whether to use animation or not.
|
|
94
|
+
* @param context - The context containing direction and dimension information.
|
|
95
|
+
* @returns A function to clean up the animation.
|
|
96
|
+
*/
|
|
97
|
+
declare const transitionCollapsing: TransitionStartFn<CollapseContext>;
|
|
98
|
+
|
|
99
|
+
declare const toastFadeInTransition: TransitionStartFn;
|
|
100
|
+
declare const toastFadeOutTransition: TransitionStartFn;
|
|
101
|
+
|
|
102
|
+
export { RDX_PRESENCE_CONTEXT, RdxPresenceDirective, completeTransition, provideRdxPresenceContext, toastFadeInTransition, toastFadeOutTransition, transitionCollapsing, usePresence };
|
|
103
|
+
export type { CollapseContext, RdxPresenceContext, TransitionContext, TransitionEndFn, TransitionOptions, TransitionStartFn };
|
package/progress/index.d.ts
CHANGED
|
@@ -1,11 +1,79 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { InjectionToken } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
declare const RdxProgressToken: InjectionToken<RdxProgressRootDirective>;
|
|
5
|
+
/**
|
|
6
|
+
* Injects the current instance of RdxProgressRootDirective.
|
|
7
|
+
* @returns The instance of RdxProgressRootDirective.
|
|
8
|
+
*/
|
|
9
|
+
declare function injectProgress(): RdxProgressRootDirective;
|
|
10
|
+
type ProgressState = 'indeterminate' | 'complete' | 'loading';
|
|
11
|
+
interface ProgressProps {
|
|
12
|
+
value?: number | null;
|
|
13
|
+
max?: number;
|
|
14
|
+
/**
|
|
15
|
+
* A function to get the accessible label text representing the current value in a human-readable format.
|
|
16
|
+
*
|
|
17
|
+
* If not provided, the value label will be read as the numeric value as a percentage of the max value.
|
|
18
|
+
*/
|
|
19
|
+
getValueLabel?: (value: number, max: number) => string;
|
|
20
|
+
}
|
|
21
|
+
/**
|
|
22
|
+
* Directive to manage progress bar state and attributes.
|
|
23
|
+
*
|
|
24
|
+
* This directive provides a way to create a progress bar with customizable value and max attributes.
|
|
25
|
+
* It handles aria attributes for accessibility and provides different states like 'indeterminate', 'complete', and 'loading'.
|
|
26
|
+
*
|
|
27
|
+
* @group Components
|
|
28
|
+
*/
|
|
29
|
+
declare class RdxProgressRootDirective {
|
|
30
|
+
/**
|
|
31
|
+
* The current value of the progress bar.
|
|
32
|
+
* @group Props
|
|
33
|
+
* @defaultValue 0
|
|
34
|
+
*/
|
|
35
|
+
readonly value: i0.ModelSignal<number>;
|
|
36
|
+
/**
|
|
37
|
+
* The maximum value of the progress bar.
|
|
38
|
+
* @defaultValue 100
|
|
39
|
+
* @group Props
|
|
40
|
+
*/
|
|
41
|
+
readonly max: i0.ModelSignal<number>;
|
|
42
|
+
/**
|
|
43
|
+
* Function to generate the value label.
|
|
44
|
+
* @group Props
|
|
45
|
+
*/
|
|
46
|
+
readonly valueLabel: i0.InputSignal<(value: number, max: number) => string>;
|
|
47
|
+
protected readonly label: i0.Signal<string>;
|
|
48
|
+
readonly progressState: i0.Signal<ProgressState>;
|
|
49
|
+
constructor();
|
|
50
|
+
private validateValue;
|
|
51
|
+
private validateMax;
|
|
52
|
+
private defaultGetValueLabel;
|
|
53
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxProgressRootDirective, never>;
|
|
54
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxProgressRootDirective, "[rdxProgressRoot]", ["rdxProgressRoot"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "valueLabel": { "alias": "valueLabel"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "max": "maxChange"; }, never, never, true, never>;
|
|
55
|
+
}
|
|
56
|
+
|
|
57
|
+
/**
|
|
58
|
+
* Directive to manage progress indicator state and attributes.
|
|
59
|
+
*
|
|
60
|
+
* This directive is used to display the progress indicator inside the progress bar.
|
|
61
|
+
* It inherits the state and value from the `RdxProgressRootDirective`.
|
|
62
|
+
*/
|
|
63
|
+
declare class RdxProgressIndicatorDirective {
|
|
64
|
+
/**
|
|
65
|
+
* This allows the directive to access the progress bar state and values.
|
|
66
|
+
*/
|
|
67
|
+
protected readonly progress: RdxProgressRootDirective;
|
|
68
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxProgressIndicatorDirective, never>;
|
|
69
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxProgressIndicatorDirective, "[rdxProgressIndicator]", ["rdxProgressIndicator"], {}, {}, never, never, true, never>;
|
|
70
|
+
}
|
|
71
|
+
|
|
72
|
+
declare class RdxProgressModule {
|
|
8
73
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxProgressModule, never>;
|
|
9
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxProgressModule, never, [typeof
|
|
74
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxProgressModule, never, [typeof RdxProgressRootDirective, typeof RdxProgressIndicatorDirective], [typeof RdxProgressRootDirective, typeof RdxProgressIndicatorDirective]>;
|
|
10
75
|
static ɵinj: i0.ɵɵInjectorDeclaration<RdxProgressModule>;
|
|
11
76
|
}
|
|
77
|
+
|
|
78
|
+
export { RdxProgressIndicatorDirective, RdxProgressModule, RdxProgressRootDirective, RdxProgressToken, injectProgress };
|
|
79
|
+
export type { ProgressProps, ProgressState };
|
package/radio/index.d.ts
CHANGED
|
@@ -1,4 +1,118 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InputSignalWithTransform, ModelSignal, Signal, OnInit, InjectionToken } from '@angular/core';
|
|
3
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
4
|
+
import { ControlValueAccessor } from '@angular/forms';
|
|
5
|
+
import * as i1 from '@radix-ng/primitives/roving-focus';
|
|
6
|
+
import { Orientation } from '@radix-ng/primitives/roving-focus';
|
|
7
|
+
import * as i1$1 from '@radix-ng/primitives/visually-hidden';
|
|
8
|
+
|
|
9
|
+
interface RadioGroupProps {
|
|
10
|
+
name?: string;
|
|
11
|
+
disabled?: InputSignalWithTransform<boolean, BooleanInput>;
|
|
12
|
+
defaultValue?: string;
|
|
13
|
+
value: ModelSignal<string | null>;
|
|
14
|
+
disableState: Signal<boolean>;
|
|
15
|
+
}
|
|
16
|
+
interface RadioGroupDirective extends RadioGroupProps {
|
|
17
|
+
select(value: string | null): void;
|
|
18
|
+
onTouched(): void;
|
|
19
|
+
}
|
|
20
|
+
|
|
21
|
+
declare class RdxRadioGroupDirective implements RadioGroupProps, RadioGroupDirective, ControlValueAccessor {
|
|
22
|
+
readonly value: _angular_core.ModelSignal<string | null>;
|
|
23
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
24
|
+
defaultValue?: string;
|
|
25
|
+
readonly required: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
26
|
+
readonly orientation: _angular_core.InputSignal<Orientation | undefined>;
|
|
27
|
+
/**
|
|
28
|
+
* Event handler called when the value changes.
|
|
29
|
+
*/
|
|
30
|
+
readonly onValueChange: _angular_core.OutputEmitterRef<string>;
|
|
31
|
+
private readonly disable;
|
|
32
|
+
readonly disableState: _angular_core.Signal<boolean>;
|
|
33
|
+
/**
|
|
34
|
+
* The callback function to call when the value of the radio group changes.
|
|
35
|
+
*/
|
|
36
|
+
private onChange;
|
|
37
|
+
/**
|
|
38
|
+
* The callback function to call when the radio group is touched.
|
|
39
|
+
* @ignore
|
|
40
|
+
*/
|
|
41
|
+
onTouched: () => void;
|
|
42
|
+
/**
|
|
43
|
+
* Select a radio item.
|
|
44
|
+
* @param value The value of the radio item to select.
|
|
45
|
+
* @ignore
|
|
46
|
+
*/
|
|
47
|
+
select(value: string): void;
|
|
48
|
+
/**
|
|
49
|
+
* Update the value of the radio group.
|
|
50
|
+
* @param value The new value of the radio group.
|
|
51
|
+
* @ignore
|
|
52
|
+
*/
|
|
53
|
+
writeValue(value: string): void;
|
|
54
|
+
/**
|
|
55
|
+
* Register a callback function to call when the value of the radio group changes.
|
|
56
|
+
* @param fn The callback function to call when the value of the radio group changes.
|
|
57
|
+
* @ignore
|
|
58
|
+
*/
|
|
59
|
+
registerOnChange(fn: (value: string) => void): void;
|
|
60
|
+
/** @ignore */
|
|
61
|
+
registerOnTouched(fn: () => void): void;
|
|
62
|
+
/**
|
|
63
|
+
* Set the disabled state of the radio group.
|
|
64
|
+
* @param isDisabled Whether the radio group is disabled.
|
|
65
|
+
* @ignore
|
|
66
|
+
*/
|
|
67
|
+
setDisabledState(isDisabled: boolean): void;
|
|
68
|
+
protected onKeydown(): void;
|
|
69
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxRadioGroupDirective, never>;
|
|
70
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxRadioGroupDirective, "[rdxRadioRoot]", ["rdxRadioRoot"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "onValueChange": "onValueChange"; }, never, never, true, [{ directive: typeof i1.RdxRovingFocusGroupDirective; inputs: { "dir": "dir"; "orientation": "orientation"; "loop": "loop"; }; outputs: {}; }]>;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
declare const RdxRadioItemToken: InjectionToken<RdxRadioItemDirective>;
|
|
74
|
+
declare function injectRadioItem(): RdxRadioItemDirective;
|
|
75
|
+
declare class RdxRadioItemDirective implements OnInit {
|
|
76
|
+
private readonly radioGroup;
|
|
77
|
+
private readonly elementRef;
|
|
78
|
+
readonly value: _angular_core.InputSignal<string>;
|
|
79
|
+
readonly id: _angular_core.InputSignal<string | undefined>;
|
|
80
|
+
readonly required: _angular_core.InputSignal<boolean | undefined>;
|
|
81
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
82
|
+
protected readonly disabledState: _angular_core.Signal<boolean>;
|
|
83
|
+
readonly checkedState: _angular_core.Signal<boolean>;
|
|
84
|
+
private readonly ARROW_KEYS;
|
|
85
|
+
private readonly isArrowKeyPressedSignal;
|
|
86
|
+
/** @ignore */
|
|
87
|
+
ngOnInit(): void;
|
|
88
|
+
/** @ignore */
|
|
89
|
+
onClick(): void;
|
|
90
|
+
/** @ignore */
|
|
91
|
+
onKeyDown(event: KeyboardEvent): void;
|
|
92
|
+
/** @ignore */
|
|
93
|
+
onKeyUp(): void;
|
|
94
|
+
/** @ignore */
|
|
95
|
+
onFocus(): void;
|
|
96
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxRadioItemDirective, never>;
|
|
97
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxRadioItemDirective, "[rdxRadioItem]", ["rdxRadioItem"], { "value": { "alias": "value"; "required": true; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.RdxRovingFocusItemDirective; inputs: { "tabStopId": "id"; "focusable": "focusable"; "active": "active"; "allowShiftKey": "allowShiftKey"; }; outputs: {}; }]>;
|
|
98
|
+
}
|
|
99
|
+
|
|
100
|
+
declare class RdxRadioIndicatorDirective {
|
|
101
|
+
protected readonly radioGroup: RadioGroupDirective;
|
|
102
|
+
protected readonly radioItem: RdxRadioItemDirective;
|
|
103
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxRadioIndicatorDirective, never>;
|
|
104
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxRadioIndicatorDirective, "[rdxRadioIndicator]", ["rdxRadioIndicator"], {}, {}, never, never, true, never>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare class RdxRadioItemInputDirective {
|
|
108
|
+
private readonly radioItem;
|
|
109
|
+
readonly name: _angular_core.InputSignal<string | undefined>;
|
|
110
|
+
readonly value: _angular_core.Signal<string | undefined>;
|
|
111
|
+
readonly checked: _angular_core.Signal<true | undefined>;
|
|
112
|
+
readonly required: _angular_core.InputSignal<boolean | undefined>;
|
|
113
|
+
readonly disabled: _angular_core.InputSignal<boolean | undefined>;
|
|
114
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxRadioItemInputDirective, never>;
|
|
115
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxRadioItemInputDirective, "[rdxRadioItemInput]", ["rdxRadioItemInput"], { "name": { "alias": "name"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1$1.RdxVisuallyHiddenDirective; inputs: { "feature": "feature"; }; outputs: {}; }]>;
|
|
116
|
+
}
|
|
117
|
+
|
|
118
|
+
export { RdxRadioGroupDirective, RdxRadioIndicatorDirective, RdxRadioItemDirective, RdxRadioItemInputDirective, RdxRadioItemToken, injectRadioItem };
|