@radix-ng/primitives 0.43.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 +7 -4
- package/fesm2022/radix-ng-primitives-focus-guards.mjs.map +1 -1
- 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 +86 -86
- 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 +29 -27
- package/fesm2022/radix-ng-primitives-visually-hidden.mjs.map +1 -1
- package/fesm2022/radix-ng-primitives.mjs.map +1 -1
- package/focus-guards/index.d.ts +15 -1
- 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 +22 -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-guards/src/focus-guards.d.ts +0 -12
- 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 -34
- 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 -24
- package/visually-hidden/src/visually-hidden-input.directive.d.ts +0 -23
- package/visually-hidden/src/visually-hidden.directive.d.ts +0 -18
package/cropper/index.d.ts
CHANGED
|
@@ -1,15 +1,135 @@
|
|
|
1
|
-
import * as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxCropperModule, never, [typeof i1.RdxCropperRootDirective, typeof i2.RdxCropperImageComponent, typeof i3.RdxCropperCropAreaDirective, typeof i4.RdxCropperDescriptionDirective], [typeof i1.RdxCropperRootDirective, typeof i2.RdxCropperImageComponent, typeof i3.RdxCropperCropAreaDirective, typeof i4.RdxCropperDescriptionDirective]>;
|
|
14
|
-
static ɵinj: i0.ɵɵInjectorDeclaration<RdxCropperModule>;
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { InputSignal, WritableSignal, InjectionToken } from '@angular/core';
|
|
3
|
+
import { NumberInput } from '@angular/cdk/coercion';
|
|
4
|
+
|
|
5
|
+
interface CropperContextToken {
|
|
6
|
+
image: InputSignal<string>;
|
|
7
|
+
getImageProps: () => {
|
|
8
|
+
[key: string]: any;
|
|
9
|
+
};
|
|
10
|
+
getImageWrapperStyle: () => Record<string, string>;
|
|
11
|
+
getCropAreaStyle: () => Record<string, string>;
|
|
12
|
+
descriptionId: WritableSignal<string>;
|
|
15
13
|
}
|
|
14
|
+
declare const CROPPER_ROOT_CONTEXT: InjectionToken<CropperContextToken>;
|
|
15
|
+
declare function injectCropperRootContext(): CropperContextToken;
|
|
16
|
+
|
|
17
|
+
type Area = {
|
|
18
|
+
x: number;
|
|
19
|
+
y: number;
|
|
20
|
+
width: number;
|
|
21
|
+
height: number;
|
|
22
|
+
};
|
|
23
|
+
declare class RdxCropperRootDirective implements CropperContextToken {
|
|
24
|
+
private readonly elementRef;
|
|
25
|
+
private readonly CROPPER_DESC_WARN_MESSAGE;
|
|
26
|
+
readonly image: _angular_core.InputSignal<string>;
|
|
27
|
+
readonly cropPadding: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
28
|
+
readonly aspectRatio: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
29
|
+
readonly minZoom: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
30
|
+
readonly maxZoom: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
31
|
+
readonly zoomSensitivity: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
32
|
+
readonly keyboardStep: _angular_core.InputSignalWithTransform<number, unknown>;
|
|
33
|
+
readonly zoom: _angular_core.InputSignalWithTransform<number | undefined, NumberInput>;
|
|
34
|
+
readonly onCropChange: _angular_core.OutputEmitterRef<Area | null>;
|
|
35
|
+
readonly onZoomChange: _angular_core.OutputEmitterRef<number>;
|
|
36
|
+
private readonly imgWidth;
|
|
37
|
+
private readonly imgHeight;
|
|
38
|
+
private readonly cropAreaWidth;
|
|
39
|
+
private readonly cropAreaHeight;
|
|
40
|
+
private readonly imageWrapperWidth;
|
|
41
|
+
private readonly imageWrapperHeight;
|
|
42
|
+
private readonly offsetX;
|
|
43
|
+
private readonly offsetY;
|
|
44
|
+
private readonly internalZoom;
|
|
45
|
+
private readonly isDragging;
|
|
46
|
+
readonly descriptionId: _angular_core.WritableSignal<string>;
|
|
47
|
+
private readonly isZoomControlled;
|
|
48
|
+
protected readonly effectiveZoom: _angular_core.Signal<number>;
|
|
49
|
+
protected readonly zoomValueText: _angular_core.Signal<string>;
|
|
50
|
+
private readonly dragStartPoint;
|
|
51
|
+
private readonly dragStartOffset;
|
|
52
|
+
private readonly latestRestrictedOffset;
|
|
53
|
+
private readonly latestZoom;
|
|
54
|
+
private readonly isInitialSetupDone;
|
|
55
|
+
private readonly initialPinchDistance;
|
|
56
|
+
private readonly initialPinchZoom;
|
|
57
|
+
private readonly isPinching;
|
|
58
|
+
private readonly hasWarned;
|
|
59
|
+
constructor();
|
|
60
|
+
private updateZoom;
|
|
61
|
+
private initializeContainerDimensions;
|
|
62
|
+
private setupImageLoadEffect;
|
|
63
|
+
private setupDimensionsEffects;
|
|
64
|
+
private restrictOffset;
|
|
65
|
+
private calculateCropData;
|
|
66
|
+
private setupCropCalculationEffect;
|
|
67
|
+
private setupAccessibilityWarningEffect;
|
|
68
|
+
private setupEventListenersEffect;
|
|
69
|
+
private handleInteractionEnd;
|
|
70
|
+
/**
|
|
71
|
+
* @ignore
|
|
72
|
+
*/
|
|
73
|
+
onMouseDown(e: MouseEvent): void;
|
|
74
|
+
private handleWheel;
|
|
75
|
+
private getPinchDistance;
|
|
76
|
+
private getPinchCenter;
|
|
77
|
+
private handleTouchStart;
|
|
78
|
+
private handleTouchMove;
|
|
79
|
+
private handleTouchEnd;
|
|
80
|
+
/**
|
|
81
|
+
* @ignore
|
|
82
|
+
*/
|
|
83
|
+
onKeyDown(e: KeyboardEvent): void;
|
|
84
|
+
/**
|
|
85
|
+
* @ignore
|
|
86
|
+
*/
|
|
87
|
+
onKeyUp(e: KeyboardEvent): void;
|
|
88
|
+
/**
|
|
89
|
+
* @ignore
|
|
90
|
+
*/
|
|
91
|
+
getImageProps(): {
|
|
92
|
+
[key: string]: any;
|
|
93
|
+
};
|
|
94
|
+
/**
|
|
95
|
+
* @ignore
|
|
96
|
+
*/
|
|
97
|
+
getImageWrapperStyle(): Record<string, string>;
|
|
98
|
+
/**
|
|
99
|
+
* @ignore
|
|
100
|
+
*/
|
|
101
|
+
getCropAreaStyle(): Record<string, string>;
|
|
102
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxCropperRootDirective, never>;
|
|
103
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxCropperRootDirective, "[rdxCropperRoot]", never, { "image": { "alias": "image"; "required": true; "isSignal": true; }; "cropPadding": { "alias": "cropPadding"; "required": false; "isSignal": true; }; "aspectRatio": { "alias": "aspectRatio"; "required": false; "isSignal": true; }; "minZoom": { "alias": "minZoom"; "required": false; "isSignal": true; }; "maxZoom": { "alias": "maxZoom"; "required": false; "isSignal": true; }; "zoomSensitivity": { "alias": "zoomSensitivity"; "required": false; "isSignal": true; }; "keyboardStep": { "alias": "keyboardStep"; "required": false; "isSignal": true; }; "zoom": { "alias": "zoom"; "required": false; "isSignal": true; }; }, { "onCropChange": "onCropChange"; "onZoomChange": "onZoomChange"; }, never, never, true, never>;
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
declare class RdxCropperImageComponent {
|
|
107
|
+
protected readonly rootContext: CropperContextToken;
|
|
108
|
+
readonly imgClass: _angular_core.InputSignal<string | undefined>;
|
|
109
|
+
readonly imgStyles: _angular_core.InputSignal<string | undefined>;
|
|
110
|
+
protected readonly imgClasses: _angular_core.Signal<string | undefined>;
|
|
111
|
+
protected readonly imgStyless: _angular_core.Signal<string | undefined>;
|
|
112
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxCropperImageComponent, never>;
|
|
113
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<RdxCropperImageComponent, "[rdxCropperImage]", never, { "imgClass": { "alias": "imgClass"; "required": false; "isSignal": true; }; "imgStyles": { "alias": "imgStyles"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
declare class RdxCropperCropAreaDirective {
|
|
117
|
+
readonly rootContext: CropperContextToken;
|
|
118
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxCropperCropAreaDirective, never>;
|
|
119
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxCropperCropAreaDirective, "[rdxCropperCropArea]", never, {}, {}, never, never, true, never>;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
declare class RdxCropperDescriptionDirective {
|
|
123
|
+
readonly rootContext: CropperContextToken;
|
|
124
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxCropperDescriptionDirective, never>;
|
|
125
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxCropperDescriptionDirective, "[rdxCropperDescription]", never, {}, {}, never, never, true, never>;
|
|
126
|
+
}
|
|
127
|
+
|
|
128
|
+
declare class RdxCropperModule {
|
|
129
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxCropperModule, never>;
|
|
130
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<RdxCropperModule, never, [typeof RdxCropperRootDirective, typeof RdxCropperImageComponent, typeof RdxCropperCropAreaDirective, typeof RdxCropperDescriptionDirective], [typeof RdxCropperRootDirective, typeof RdxCropperImageComponent, typeof RdxCropperCropAreaDirective, typeof RdxCropperDescriptionDirective]>;
|
|
131
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<RdxCropperModule>;
|
|
132
|
+
}
|
|
133
|
+
|
|
134
|
+
export { CROPPER_ROOT_CONTEXT, RdxCropperCropAreaDirective, RdxCropperDescriptionDirective, RdxCropperImageComponent, RdxCropperModule, RdxCropperRootDirective, injectCropperRootContext };
|
|
135
|
+
export type { Area, CropperContextToken };
|
package/date-field/index.d.ts
CHANGED
|
@@ -1,11 +1,210 @@
|
|
|
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, InputSignal, ModelSignal, Signal, WritableSignal, InjectionToken } from '@angular/core';
|
|
3
|
+
import * as _radix_ng_primitives_core from '@radix-ng/primitives/core';
|
|
4
|
+
import { DateMatcher, HourCycle, Granularity, DateStep, Formatter, SegmentValueObj, SegmentPart } from '@radix-ng/primitives/core';
|
|
5
|
+
import { Direction } from '@angular/cdk/bidi';
|
|
6
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
7
|
+
import { DateValue } from '@internationalized/date';
|
|
8
|
+
|
|
9
|
+
declare class RdxDateFieldRootDirective implements OnInit, AfterViewInit {
|
|
10
|
+
private readonly elementRef;
|
|
11
|
+
/**
|
|
12
|
+
* The controlled checked state of the calendar.
|
|
13
|
+
*/
|
|
14
|
+
readonly value: _angular_core.ModelSignal<DateValue | undefined>;
|
|
15
|
+
/**
|
|
16
|
+
* A callback fired when the date field's value is invalid.
|
|
17
|
+
*/
|
|
18
|
+
readonly isDateUnavailable: _angular_core.InputSignal<DateMatcher | undefined>;
|
|
19
|
+
/**
|
|
20
|
+
* The hour cycle to use for formatting times. Defaults to the locale preference
|
|
21
|
+
*/
|
|
22
|
+
readonly hourCycle: _angular_core.InputSignal<HourCycle>;
|
|
23
|
+
/**
|
|
24
|
+
* The granularity to use for formatting the field. Defaults to 'day' if a CalendarDate is provided, otherwise defaults to 'minute'.
|
|
25
|
+
* The field will render segments for each part of the date up to and including the specified granularity.
|
|
26
|
+
*/
|
|
27
|
+
readonly granularity: _angular_core.InputSignal<Granularity | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* The locale to use for formatting dates.
|
|
30
|
+
*/
|
|
31
|
+
readonly locale: _angular_core.InputSignal<string>;
|
|
32
|
+
readonly dir: _angular_core.InputSignal<Direction>;
|
|
33
|
+
/**
|
|
34
|
+
* The minimum valid date that can be entered.
|
|
35
|
+
*/
|
|
36
|
+
readonly minValue: _angular_core.InputSignal<DateValue | undefined>;
|
|
37
|
+
/**
|
|
38
|
+
* The maximum valid date that can be entered.
|
|
39
|
+
*/
|
|
40
|
+
readonly maxValue: _angular_core.InputSignal<DateValue | undefined>;
|
|
41
|
+
/**
|
|
42
|
+
* Whether or not to hide the time zone segment of the field.
|
|
43
|
+
*/
|
|
44
|
+
readonly hideTimeZone: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
45
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
46
|
+
/**
|
|
47
|
+
* Whether or not the field is readonly.
|
|
48
|
+
*/
|
|
49
|
+
readonly readonly: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
50
|
+
/**
|
|
51
|
+
* The stepping interval for the time fields. Defaults to 1
|
|
52
|
+
*/
|
|
53
|
+
readonly step: _angular_core.InputSignal<DateStep | undefined>;
|
|
54
|
+
readonly step$: _angular_core.Signal<DateStep>;
|
|
55
|
+
/**
|
|
56
|
+
* @ignore
|
|
57
|
+
*/
|
|
58
|
+
readonly defaultDate: _angular_core.Signal<DateValue>;
|
|
59
|
+
/**
|
|
60
|
+
* 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
|
|
61
|
+
*/
|
|
62
|
+
readonly placeholder: _angular_core.ModelSignal<DateValue | undefined>;
|
|
63
|
+
/**
|
|
64
|
+
* @ignore
|
|
65
|
+
*/
|
|
66
|
+
readonly segmentElements: _angular_core.WritableSignal<Set<HTMLElement>>;
|
|
67
|
+
/**
|
|
68
|
+
* @ignore
|
|
69
|
+
*/
|
|
70
|
+
readonly currentFocusedElement: _angular_core.WritableSignal<HTMLElement | null>;
|
|
71
|
+
/**
|
|
72
|
+
* @ignore
|
|
73
|
+
*/
|
|
74
|
+
formatter: Formatter;
|
|
75
|
+
/**
|
|
76
|
+
* @ignore
|
|
77
|
+
*/
|
|
78
|
+
readonly segmentValues: _angular_core.WritableSignal<SegmentValueObj>;
|
|
79
|
+
/**
|
|
80
|
+
* @ignore
|
|
81
|
+
*/
|
|
82
|
+
readonly inferredGranularity: _angular_core.Signal<Granularity | undefined>;
|
|
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<RdxDateFieldRootDirective, never>;
|
|
132
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxDateFieldRootDirective, "[rdxDateFieldRoot]", ["rdxDateFieldRoot"], { "value": { "alias": "value"; "required": false; "isSignal": true; }; "isDateUnavailable": { "alias": "isDateUnavailable"; "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 RdxDateFieldInputDirective {
|
|
136
|
+
private readonly elementRef;
|
|
137
|
+
private readonly rootContext;
|
|
138
|
+
/**
|
|
139
|
+
* The part of the date to render
|
|
140
|
+
* `'day' | 'month' | 'year' | '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: _angular_core.WritableSignal<boolean>;
|
|
159
|
+
/**
|
|
160
|
+
* @ignore
|
|
161
|
+
*/
|
|
162
|
+
readonly lastKeyZero: _angular_core.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<RdxDateFieldInputDirective, never>;
|
|
183
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<RdxDateFieldInputDirective, "[rdxDateFieldInput]", never, { "part": { "alias": "part"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
184
|
+
}
|
|
185
|
+
|
|
186
|
+
interface DateFieldContextToken {
|
|
187
|
+
locale: InputSignal<string>;
|
|
188
|
+
value: ModelSignal<DateValue | undefined>;
|
|
189
|
+
disabled: InputSignal<boolean>;
|
|
190
|
+
readonly: InputSignal<boolean>;
|
|
191
|
+
isInvalid: Signal<boolean>;
|
|
192
|
+
placeholder: ModelSignal<DateValue>;
|
|
193
|
+
hourCycle: InputSignal<HourCycle>;
|
|
194
|
+
step$: Signal<DateStep>;
|
|
195
|
+
formatter: Formatter;
|
|
196
|
+
segmentValues: WritableSignal<SegmentValueObj>;
|
|
197
|
+
focusNext: () => void;
|
|
198
|
+
setFocusedElement: (el: HTMLElement) => void;
|
|
199
|
+
}
|
|
200
|
+
declare const DATE_FIELDS_ROOT_CONTEXT: InjectionToken<DateFieldContextToken>;
|
|
201
|
+
declare function injectDateFieldsRootContext(): DateFieldContextToken;
|
|
202
|
+
|
|
203
|
+
declare class RdxDateFieldModule {
|
|
204
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<RdxDateFieldModule, never>;
|
|
205
|
+
static ɵmod: _angular_core.ɵɵNgModuleDeclaration<RdxDateFieldModule, never, [typeof RdxDateFieldRootDirective, typeof RdxDateFieldInputDirective], [typeof RdxDateFieldRootDirective, typeof RdxDateFieldInputDirective]>;
|
|
206
|
+
static ɵinj: _angular_core.ɵɵInjectorDeclaration<RdxDateFieldModule>;
|
|
207
|
+
}
|
|
208
|
+
|
|
209
|
+
export { DATE_FIELDS_ROOT_CONTEXT, RdxDateFieldInputDirective, RdxDateFieldModule, RdxDateFieldRootDirective, injectDateFieldsRootContext };
|
|
210
|
+
export type { DateFieldContextToken };
|
package/dialog/index.d.ts
CHANGED
|
@@ -1,23 +1,205 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { TemplateRef, EnvironmentProviders, Provider } from '@angular/core';
|
|
3
|
+
import { AutoFocusTarget, DialogConfig, DialogRef } from '@angular/cdk/dialog';
|
|
4
|
+
import { ComponentType } from '@angular/cdk/overlay';
|
|
5
|
+
import { Observable } from 'rxjs';
|
|
6
|
+
|
|
7
|
+
declare const ɵdialogData: unique symbol;
|
|
8
|
+
declare const ɵdialogResult: unique symbol;
|
|
9
|
+
type ɵDialogDataFlag = {
|
|
10
|
+
[ɵdialogData]: unknown;
|
|
11
|
+
};
|
|
12
|
+
type ɵDialogResultFlag<R> = {
|
|
13
|
+
[ɵdialogResult]: R;
|
|
14
|
+
};
|
|
15
|
+
type RdxDialogData<T> = {
|
|
16
|
+
[K in keyof T]: T[K] extends ɵDialogDataFlag ? Omit<T[K], typeof ɵdialogData> : never;
|
|
17
|
+
}[keyof T];
|
|
18
|
+
type DialogRefProps<C> = {
|
|
19
|
+
[K in keyof C]: C[K] extends ɵDialogResultFlag<unknown> ? K : never;
|
|
20
|
+
}[keyof C] & keyof C;
|
|
21
|
+
type RdxDialogResult<C> = DialogRefProps<C> extends never ? void : C[DialogRefProps<C>] extends ɵDialogResultFlag<infer T> ? T : void;
|
|
22
|
+
type RdxDialogMode = 'default' | 'sheet' | 'sheet-bottom' | 'sheet-top' | 'sheet-left' | 'sheet-right';
|
|
23
|
+
type RdxBaseDialogConfig<C> = {
|
|
24
|
+
content: ComponentType<C> | TemplateRef<C>;
|
|
25
|
+
data: RdxDialogData<C>;
|
|
26
|
+
modal?: boolean;
|
|
27
|
+
ariaLabel?: string;
|
|
28
|
+
autoFocus?: AutoFocusTarget | 'first-input' | string;
|
|
29
|
+
canClose?: (comp: C) => boolean | Observable<boolean>;
|
|
30
|
+
canCloseWithBackdrop?: boolean;
|
|
31
|
+
closeDelay?: number;
|
|
32
|
+
cdkConfigOverride?: Partial<DialogConfig<C>>;
|
|
33
|
+
mode?: RdxDialogMode;
|
|
34
|
+
backdropClass?: string | string[];
|
|
35
|
+
panelClasses?: string[];
|
|
36
|
+
isAlert?: boolean;
|
|
37
|
+
};
|
|
38
|
+
type RdxDialogConfig<T> = RdxDialogData<T> extends never ? Omit<RdxBaseDialogConfig<T>, 'data'> : RdxBaseDialogConfig<T> & {
|
|
39
|
+
data: Required<RdxDialogData<T>>;
|
|
40
|
+
};
|
|
41
|
+
type RdxDialogState = 'open' | 'closed';
|
|
42
|
+
declare function getState(open: boolean): RdxDialogState;
|
|
43
|
+
|
|
44
|
+
/**
|
|
45
|
+
* @group Components
|
|
46
|
+
*/
|
|
47
|
+
declare class RdxDialogTriggerDirective {
|
|
48
|
+
private readonly dialogService;
|
|
49
|
+
/**
|
|
50
|
+
* @group Props
|
|
51
|
+
*/
|
|
52
|
+
readonly id: i0.InputSignal<string>;
|
|
53
|
+
readonly dialogId: i0.Signal<string>;
|
|
54
|
+
/**
|
|
55
|
+
* @group Props
|
|
56
|
+
*/
|
|
57
|
+
dialog: TemplateRef<void>;
|
|
58
|
+
/**
|
|
59
|
+
* @group Props
|
|
60
|
+
*/
|
|
61
|
+
dialogConfig: RdxDialogConfig<unknown>;
|
|
62
|
+
readonly isOpen: i0.WritableSignal<boolean>;
|
|
63
|
+
readonly state: i0.Signal<RdxDialogState>;
|
|
64
|
+
private currentDialogRef;
|
|
65
|
+
protected onClick(): void;
|
|
66
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxDialogTriggerDirective, never>;
|
|
67
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxDialogTriggerDirective, "[rdxDialogTrigger]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "dialog": { "alias": "rdxDialogTrigger"; "required": true; }; "dialogConfig": { "alias": "rdxDialogConfig"; "required": false; }; }, {}, never, never, true, never>;
|
|
68
|
+
}
|
|
69
|
+
|
|
70
|
+
declare class RdxDialogContentDirective<C = unknown> {
|
|
71
|
+
private readonly dialogRef;
|
|
72
|
+
private readonly destroyRef;
|
|
73
|
+
private readonly isOpen;
|
|
74
|
+
readonly state: i0.Signal<RdxDialogState>;
|
|
75
|
+
constructor();
|
|
76
|
+
/**
|
|
77
|
+
* Closes the dialog with a specified result.
|
|
78
|
+
*
|
|
79
|
+
* @param result The result to be passed back when closing the dialog
|
|
80
|
+
*/
|
|
81
|
+
close(result: RdxDialogResult<C>): void;
|
|
82
|
+
/**
|
|
83
|
+
* Dismisses the dialog without a result.
|
|
84
|
+
*/
|
|
85
|
+
dismiss(): void;
|
|
86
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxDialogContentDirective<any>, never>;
|
|
87
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxDialogContentDirective<any>, "[rdxDialogContent]", never, {}, {}, never, never, true, never>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
declare class RdxDialogTitleDirective {
|
|
91
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxDialogTitleDirective, never>;
|
|
92
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxDialogTitleDirective, "[rdxDialogTitle]", never, {}, {}, never, never, true, never>;
|
|
93
|
+
}
|
|
94
|
+
|
|
95
|
+
declare class RdxDialogCloseDirective {
|
|
96
|
+
private readonly ref;
|
|
97
|
+
protected onClick(): void;
|
|
98
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxDialogCloseDirective, never>;
|
|
99
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxDialogCloseDirective, "[rdxDialogClose]", never, {}, {}, never, never, true, never>;
|
|
100
|
+
}
|
|
101
|
+
|
|
102
|
+
declare class RdxDialogDescriptionDirective {
|
|
103
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxDialogDescriptionDirective, never>;
|
|
104
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxDialogDescriptionDirective, "[rdxDialogDescription]", never, {}, {}, never, never, true, never>;
|
|
105
|
+
}
|
|
106
|
+
|
|
107
|
+
declare class RdxDialogDismissDirective {
|
|
108
|
+
private readonly ref;
|
|
109
|
+
protected onClick(): void;
|
|
110
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxDialogDismissDirective, never>;
|
|
111
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<RdxDialogDismissDirective, "button[rdxDialogDismiss]", never, {}, {}, never, never, true, never>;
|
|
112
|
+
}
|
|
113
|
+
|
|
114
|
+
declare const DISMISSED_VALUE: {};
|
|
115
|
+
/**
|
|
116
|
+
* Represents a reference to an open dialog.
|
|
117
|
+
* Provides methods and observables to interact with and monitor the dialog's state.
|
|
118
|
+
* @template C - The type of the dialog's content component
|
|
119
|
+
*/
|
|
120
|
+
declare class RdxDialogRef<C = unknown> {
|
|
121
|
+
readonly cdkRef: DialogRef<RdxDialogResult<C> | typeof DISMISSED_VALUE, C>;
|
|
122
|
+
readonly config: RdxDialogConfig<C>;
|
|
123
|
+
private _previousTimeout;
|
|
124
|
+
private readonly _openSignal;
|
|
125
|
+
readonly state: i0.Signal<"open" | "closed">;
|
|
126
|
+
closed$: Observable<RdxDialogResult<C> | undefined>;
|
|
127
|
+
dismissed$: Observable<void>;
|
|
128
|
+
result$: Observable<RdxDialogResult<C>>;
|
|
129
|
+
/**
|
|
130
|
+
* @param cdkRef - Reference to the underlying CDK dialog
|
|
131
|
+
* @param config - Configuration options for the dialog
|
|
132
|
+
*/
|
|
133
|
+
constructor(cdkRef: DialogRef<RdxDialogResult<C> | typeof DISMISSED_VALUE, C>, config: RdxDialogConfig<C>);
|
|
134
|
+
get instance(): C | null;
|
|
135
|
+
/**
|
|
136
|
+
* Attempts to dismiss the dialog
|
|
137
|
+
* Checks the canClose condition before dismissing
|
|
138
|
+
*/
|
|
139
|
+
dismiss(): void;
|
|
140
|
+
close(result: RdxDialogResult<C>): void;
|
|
141
|
+
}
|
|
142
|
+
/**
|
|
143
|
+
* Represents a simplified interface for dialog interaction
|
|
144
|
+
* Typically used by dialog content components
|
|
145
|
+
* @template R - The type of the result when closing the dialog
|
|
146
|
+
*/
|
|
147
|
+
type RdxDialogSelfRef<R> = {
|
|
148
|
+
dismiss(): void;
|
|
149
|
+
close(res: R): void;
|
|
150
|
+
};
|
|
151
|
+
|
|
152
|
+
declare function injectDialogData<TData>(): TData & ɵDialogDataFlag;
|
|
153
|
+
declare function injectDialogRef<R = void>(): RdxDialogSelfRef<R> & ɵDialogResultFlag<R>;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Configures the RdxDialog module by providing necessary dependencies.
|
|
157
|
+
*
|
|
158
|
+
* This function sets up the environment providers required for the RdxDialog to function,
|
|
159
|
+
* specifically importing the Angular CDK's DialogModule.
|
|
160
|
+
*
|
|
161
|
+
* @returns {EnvironmentProviders} An EnvironmentProviders instance containing the DialogModule.
|
|
162
|
+
*/
|
|
163
|
+
declare function provideRdxDialogConfig(): EnvironmentProviders;
|
|
164
|
+
/**
|
|
165
|
+
* Provides the RdxDialogService for dependency injection.
|
|
166
|
+
*
|
|
167
|
+
* This function is used to make the RdxDialogService available for injection
|
|
168
|
+
* in components, directives, or other services that require dialog functionality.
|
|
169
|
+
*
|
|
170
|
+
* @returns {Provider} A provider for the RdxDialogService.
|
|
171
|
+
*/
|
|
172
|
+
declare function provideRdxDialog(): Provider;
|
|
173
|
+
|
|
174
|
+
/**
|
|
175
|
+
* Modality control: When `isModal` is set to `true`, the dialog will:
|
|
176
|
+
*
|
|
177
|
+
* - Have a backdrop that blocks interaction with the rest of the page
|
|
178
|
+
* - Disable closing by clicking outside or pressing Escape
|
|
179
|
+
* - Set `aria-modal="true"` for screen readers
|
|
180
|
+
* - Automatically focus the first tabbable element in the dialog
|
|
181
|
+
* - Restore focus to the element that opened the dialog when it's closed
|
|
182
|
+
*
|
|
183
|
+
*
|
|
184
|
+
* When `isModal` is `false`, the dialog will:
|
|
185
|
+
*
|
|
186
|
+
* - Not have a backdrop, allowing interaction with the rest of the page
|
|
187
|
+
* - Allow closing by clicking outside or pressing Escape
|
|
188
|
+
* - Not set `aria-modal` attribute
|
|
189
|
+
* - Not automatically manage focus
|
|
190
|
+
*/
|
|
191
|
+
declare class RdxDialogService {
|
|
192
|
+
#private;
|
|
193
|
+
open<C>(config: RdxDialogConfig<C>): RdxDialogRef<C>;
|
|
194
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<RdxDialogService, never>;
|
|
195
|
+
static ɵprov: i0.ɵɵInjectableDeclaration<RdxDialogService>;
|
|
196
|
+
}
|
|
197
|
+
|
|
198
|
+
declare class RdxDialogModule {
|
|
20
199
|
static ɵfac: i0.ɵɵFactoryDeclaration<RdxDialogModule, never>;
|
|
21
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxDialogModule, never, [typeof
|
|
200
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<RdxDialogModule, never, [typeof RdxDialogTriggerDirective, typeof RdxDialogContentDirective, typeof RdxDialogTitleDirective, typeof RdxDialogCloseDirective, typeof RdxDialogDescriptionDirective, typeof RdxDialogDismissDirective], [typeof RdxDialogTriggerDirective, typeof RdxDialogContentDirective, typeof RdxDialogTitleDirective, typeof RdxDialogCloseDirective, typeof RdxDialogDescriptionDirective, typeof RdxDialogDismissDirective]>;
|
|
22
201
|
static ɵinj: i0.ɵɵInjectorDeclaration<RdxDialogModule>;
|
|
23
202
|
}
|
|
203
|
+
|
|
204
|
+
export { DISMISSED_VALUE, RdxDialogCloseDirective, RdxDialogContentDirective, RdxDialogDescriptionDirective, RdxDialogDismissDirective, RdxDialogModule, RdxDialogRef, RdxDialogService, RdxDialogTitleDirective, RdxDialogTriggerDirective, getState, injectDialogData, injectDialogRef, provideRdxDialog, provideRdxDialogConfig };
|
|
205
|
+
export type { RdxDialogConfig, RdxDialogData, RdxDialogResult, RdxDialogSelfRef, RdxDialogState, ɵDialogDataFlag, ɵDialogResultFlag };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# @radix-ng/primitives/dismissable-layer
|