ng-primitives 0.89.0 → 0.90.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/a11y/index.d.ts +106 -3
- package/accordion/index.d.ts +213 -7
- package/ai/index.d.ts +238 -16
- package/autofill/index.d.ts +22 -1
- package/avatar/index.d.ts +120 -5
- package/breadcrumbs/index.d.ts +60 -7
- package/button/index.d.ts +44 -3
- package/checkbox/index.d.ts +58 -2
- package/combobox/index.d.ts +414 -8
- package/common/index.d.ts +31 -4
- package/date-picker/index.d.ts +713 -18
- package/date-time/index.d.ts +289 -3
- package/date-time-luxon/index.d.ts +31 -1
- package/dialog/index.d.ts +253 -9
- package/fesm2022/ng-primitives-a11y.mjs +9 -9
- package/fesm2022/ng-primitives-a11y.mjs.map +1 -1
- package/fesm2022/ng-primitives-accordion.mjs +51 -48
- package/fesm2022/ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/ng-primitives-ai.mjs +57 -54
- package/fesm2022/ng-primitives-ai.mjs.map +1 -1
- package/fesm2022/ng-primitives-autofill.mjs +5 -5
- package/fesm2022/ng-primitives-autofill.mjs.map +1 -1
- package/fesm2022/ng-primitives-avatar.mjs +18 -17
- package/fesm2022/ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/ng-primitives-breadcrumbs.mjs +21 -21
- package/fesm2022/ng-primitives-breadcrumbs.mjs.map +1 -1
- package/fesm2022/ng-primitives-button.mjs +7 -7
- package/fesm2022/ng-primitives-button.mjs.map +1 -1
- package/fesm2022/ng-primitives-checkbox.mjs +25 -21
- package/fesm2022/ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/ng-primitives-combobox.mjs +76 -72
- package/fesm2022/ng-primitives-combobox.mjs.map +1 -1
- package/fesm2022/ng-primitives-common.mjs +5 -5
- package/fesm2022/ng-primitives-common.mjs.map +1 -1
- package/fesm2022/ng-primitives-date-picker.mjs +114 -108
- package/fesm2022/ng-primitives-date-picker.mjs.map +1 -1
- package/fesm2022/ng-primitives-dialog.mjs +48 -47
- package/fesm2022/ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/ng-primitives-file-upload.mjs +56 -48
- package/fesm2022/ng-primitives-file-upload.mjs.map +1 -1
- package/fesm2022/ng-primitives-focus-trap.mjs +9 -8
- package/fesm2022/ng-primitives-focus-trap.mjs.map +1 -1
- package/fesm2022/ng-primitives-form-field.mjs +49 -48
- package/fesm2022/ng-primitives-form-field.mjs.map +1 -1
- package/fesm2022/ng-primitives-input-otp.mjs +44 -43
- package/fesm2022/ng-primitives-input-otp.mjs.map +1 -1
- package/fesm2022/ng-primitives-input.mjs +8 -8
- package/fesm2022/ng-primitives-input.mjs.map +1 -1
- package/fesm2022/ng-primitives-interactions.mjs +55 -50
- package/fesm2022/ng-primitives-interactions.mjs.map +1 -1
- package/fesm2022/ng-primitives-internal.mjs +14 -14
- package/fesm2022/ng-primitives-internal.mjs.map +1 -1
- package/fesm2022/ng-primitives-listbox.mjs +52 -50
- package/fesm2022/ng-primitives-listbox.mjs.map +1 -1
- package/fesm2022/ng-primitives-menu.mjs +75 -68
- package/fesm2022/ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/ng-primitives-meter.mjs +38 -35
- package/fesm2022/ng-primitives-meter.mjs.map +1 -1
- package/fesm2022/ng-primitives-pagination.mjs +77 -68
- package/fesm2022/ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/ng-primitives-popover.mjs +67 -60
- package/fesm2022/ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/ng-primitives-portal.mjs +11 -12
- package/fesm2022/ng-primitives-portal.mjs.map +1 -1
- package/fesm2022/ng-primitives-progress.mjs +42 -39
- package/fesm2022/ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/ng-primitives-radio.mjs +32 -30
- package/fesm2022/ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/ng-primitives-resize.mjs +4 -4
- package/fesm2022/ng-primitives-resize.mjs.map +1 -1
- package/fesm2022/ng-primitives-roving-focus.mjs +34 -30
- package/fesm2022/ng-primitives-roving-focus.mjs.map +1 -1
- package/fesm2022/ng-primitives-search.mjs +9 -9
- package/fesm2022/ng-primitives-search.mjs.map +1 -1
- package/fesm2022/ng-primitives-select.mjs +66 -62
- package/fesm2022/ng-primitives-select.mjs.map +1 -1
- package/fesm2022/ng-primitives-separator.mjs +7 -7
- package/fesm2022/ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/ng-primitives-slider.mjs +99 -88
- package/fesm2022/ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/ng-primitives-state.mjs +1 -1
- package/fesm2022/ng-primitives-state.mjs.map +1 -1
- package/fesm2022/ng-primitives-switch.mjs +18 -16
- package/fesm2022/ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/ng-primitives-tabs.mjs +44 -42
- package/fesm2022/ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/ng-primitives-textarea.mjs +8 -8
- package/fesm2022/ng-primitives-textarea.mjs.map +1 -1
- package/fesm2022/ng-primitives-toast.mjs +19 -19
- package/fesm2022/ng-primitives-toast.mjs.map +1 -1
- package/fesm2022/ng-primitives-toggle-group.mjs +32 -29
- package/fesm2022/ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/ng-primitives-toggle.mjs +14 -12
- package/fesm2022/ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/ng-primitives-toolbar.mjs +7 -7
- package/fesm2022/ng-primitives-toolbar.mjs.map +1 -1
- package/fesm2022/ng-primitives-tooltip.mjs +68 -60
- package/fesm2022/ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/ng-primitives-utils.mjs +2 -2
- package/fesm2022/ng-primitives-utils.mjs.map +1 -1
- package/file-upload/index.d.ts +148 -4
- package/focus-trap/index.d.ts +98 -2
- package/form-field/index.d.ts +262 -7
- package/index.d.ts +2 -2
- package/input/index.d.ts +47 -2
- package/input-otp/index.d.ts +247 -4
- package/interactions/index.d.ts +295 -16
- package/internal/index.d.ts +201 -10
- package/listbox/index.d.ts +209 -6
- package/menu/index.d.ts +296 -8
- package/meter/index.d.ts +67 -6
- package/package.json +28 -28
- package/pagination/index.d.ts +211 -7
- package/popover/index.d.ts +224 -5
- package/portal/index.d.ts +389 -6
- package/progress/index.d.ts +124 -6
- package/radio/index.d.ts +140 -5
- package/resize/index.d.ts +29 -1
- package/roving-focus/index.d.ts +178 -4
- package/schematics/ng-generate/__snapshots__/index.spec.ts.snap +1 -1
- package/search/index.d.ts +66 -3
- package/select/index.d.ts +341 -8
- package/separator/index.d.ts +30 -2
- package/slider/index.d.ts +332 -10
- package/state/index.d.ts +14 -11
- package/switch/index.d.ts +76 -3
- package/tabs/index.d.ts +222 -7
- package/textarea/index.d.ts +32 -2
- package/toast/index.d.ts +219 -4
- package/toggle/index.d.ts +57 -2
- package/toggle-group/index.d.ts +143 -5
- package/toolbar/index.d.ts +33 -2
- package/tooltip/index.d.ts +214 -5
- package/utils/index.d.ts +169 -9
- package/a11y/active-descendant/active-descendant.d.ts +0 -42
- package/a11y/visually-hidden/visually-hidden-state.d.ts +0 -17
- package/a11y/visually-hidden/visually-hidden.d.ts +0 -50
- package/accordion/accordion/accordion-state.d.ts +0 -17
- package/accordion/accordion/accordion.d.ts +0 -50
- package/accordion/accordion-content/accordion-content.d.ts +0 -40
- package/accordion/accordion-item/accordion-item-state.d.ts +0 -17
- package/accordion/accordion-item/accordion-item.d.ts +0 -50
- package/accordion/accordion-trigger/accordion-trigger.d.ts +0 -31
- package/accordion/config/accordion-config.d.ts +0 -32
- package/ai/prompt-composer/prompt-composer-state.d.ts +0 -17
- package/ai/prompt-composer/prompt-composer.d.ts +0 -23
- package/ai/prompt-composer-dictation/prompt-composer-dictation-state.d.ts +0 -17
- package/ai/prompt-composer-dictation/prompt-composer-dictation.d.ts +0 -29
- package/ai/prompt-composer-input/prompt-composer-input-state.d.ts +0 -17
- package/ai/prompt-composer-input/prompt-composer-input.d.ts +0 -16
- package/ai/prompt-composer-submit/prompt-composer-submit-state.d.ts +0 -17
- package/ai/prompt-composer-submit/prompt-composer-submit.d.ts +0 -15
- package/ai/thread/thread-state.d.ts +0 -17
- package/ai/thread/thread.d.ts +0 -23
- package/ai/thread-message/thread-message-state.d.ts +0 -17
- package/ai/thread-message/thread-message.d.ts +0 -11
- package/ai/thread-suggestion/thread-suggestion-state.d.ts +0 -17
- package/ai/thread-suggestion/thread-suggestion.d.ts +0 -14
- package/ai/thread-viewport/thread-viewport-state.d.ts +0 -17
- package/ai/thread-viewport/thread-viewport.d.ts +0 -34
- package/autofill/autofill/autofill.d.ts +0 -19
- package/avatar/avatar/avatar-state.d.ts +0 -17
- package/avatar/avatar/avatar.d.ts +0 -29
- package/avatar/avatar-fallback/avatar-fallback.d.ts +0 -37
- package/avatar/avatar-image/avatar-image.d.ts +0 -27
- package/avatar/config/avatar-config.d.ts +0 -21
- package/breadcrumbs/breadcrumb-ellipsis/breadcrumb-ellipsis.d.ts +0 -8
- package/breadcrumbs/breadcrumb-item/breadcrumb-item.d.ts +0 -8
- package/breadcrumbs/breadcrumb-link/breadcrumb-link.d.ts +0 -9
- package/breadcrumbs/breadcrumb-list/breadcrumb-list.d.ts +0 -8
- package/breadcrumbs/breadcrumb-page/breadcrumb-page.d.ts +0 -8
- package/breadcrumbs/breadcrumb-separator/breadcrumb-separator.d.ts +0 -8
- package/breadcrumbs/breadcrumbs/breadcrumbs.d.ts +0 -8
- package/button/button/button-state.d.ts +0 -17
- package/button/button/button.d.ts +0 -15
- package/button/button/setup-button.d.ts +0 -15
- package/checkbox/checkbox/checkbox-state.d.ts +0 -17
- package/checkbox/checkbox/checkbox.d.ts +0 -45
- package/combobox/combobox/combobox-state.d.ts +0 -17
- package/combobox/combobox/combobox.d.ts +0 -222
- package/combobox/combobox-button/combobox-button.d.ts +0 -18
- package/combobox/combobox-dropdown/combobox-dropdown.d.ts +0 -21
- package/combobox/combobox-input/combobox-input.d.ts +0 -36
- package/combobox/combobox-option/combobox-option.d.ts +0 -51
- package/combobox/combobox-portal/combobox-portal.d.ts +0 -37
- package/combobox/config/combobox-config.d.ts +0 -28
- package/combobox/utils.d.ts +0 -9
- package/common/header/header-token.d.ts +0 -10
- package/common/header/header.d.ts +0 -13
- package/common/types/orientation.d.ts +0 -1
- package/common/types/selection.d.ts +0 -1
- package/date-picker/config/date-picker-config.d.ts +0 -22
- package/date-picker/date-picker/date-picker-first-day-of-week.d.ts +0 -29
- package/date-picker/date-picker/date-picker-state.d.ts +0 -9
- package/date-picker/date-picker/date-picker.d.ts +0 -129
- package/date-picker/date-picker-cell/date-picker-cell.d.ts +0 -20
- package/date-picker/date-picker-cell-render/date-picker-cell-render-token.d.ts +0 -12
- package/date-picker/date-picker-cell-render/date-picker-cell-render.d.ts +0 -39
- package/date-picker/date-picker-date-button/date-picker-date-button-token.d.ts +0 -7
- package/date-picker/date-picker-date-button/date-picker-date-button.d.ts +0 -114
- package/date-picker/date-picker-grid/date-picker-grid.d.ts +0 -16
- package/date-picker/date-picker-label/date-picker-label-token.d.ts +0 -7
- package/date-picker/date-picker-label/date-picker-label.d.ts +0 -20
- package/date-picker/date-picker-next-month/date-picker-next-month.d.ts +0 -34
- package/date-picker/date-picker-previous-month/date-picker-previous-month.d.ts +0 -34
- package/date-picker/date-picker-row-render/date-picker-row-render-token.d.ts +0 -12
- package/date-picker/date-picker-row-render/date-picker-row-render.d.ts +0 -65
- package/date-picker/date-range-picker/date-range-picker-state.d.ts +0 -19
- package/date-picker/date-range-picker/date-range-picker.d.ts +0 -149
- package/date-time/date-adapter/date-adapter-token.d.ts +0 -11
- package/date-time/date-adapter/date-adapter.d.ts +0 -169
- package/date-time/native-date-adapter/native-date-adapter.d.ts +0 -106
- package/date-time-luxon/luxon-date-adapter/luxon-date-adapter.d.ts +0 -28
- package/dialog/config/dialog-config.d.ts +0 -41
- package/dialog/dialog/dialog-ref.d.ts +0 -45
- package/dialog/dialog/dialog-state.d.ts +0 -17
- package/dialog/dialog/dialog.d.ts +0 -37
- package/dialog/dialog/dialog.service.d.ts +0 -69
- package/dialog/dialog-description/dialog-description.d.ts +0 -12
- package/dialog/dialog-overlay/dialog-overlay.d.ts +0 -16
- package/dialog/dialog-title/dialog-title.d.ts +0 -12
- package/dialog/dialog-trigger/dialog-trigger.d.ts +0 -26
- package/file-upload/file-dropzone/file-drop-filter.d.ts +0 -2
- package/file-upload/file-dropzone/file-dropzone-state.d.ts +0 -17
- package/file-upload/file-dropzone/file-dropzone.d.ts +0 -55
- package/file-upload/file-upload/file-upload-state.d.ts +0 -17
- package/file-upload/file-upload/file-upload.d.ts +0 -72
- package/focus-trap/focus-trap/focus-trap-state.d.ts +0 -17
- package/focus-trap/focus-trap/focus-trap.d.ts +0 -85
- package/form-field/description/description.d.ts +0 -17
- package/form-field/error/error.d.ts +0 -32
- package/form-field/form-control/form-control-state.d.ts +0 -17
- package/form-field/form-control/form-control.d.ts +0 -44
- package/form-field/form-field/form-field-state.d.ts +0 -17
- package/form-field/form-field/form-field.d.ts +0 -119
- package/form-field/label/label.d.ts +0 -30
- package/input/input/input-state.d.ts +0 -17
- package/input/input/input.d.ts +0 -34
- package/input-otp/input-otp/input-otp-state.d.ts +0 -17
- package/input-otp/input-otp/input-otp.d.ts +0 -133
- package/input-otp/input-otp-input/input-otp-input.d.ts +0 -57
- package/input-otp/input-otp-slot/input-otp-slot.d.ts +0 -45
- package/interactions/config/interactions-config.d.ts +0 -30
- package/interactions/focus/focus-interaction.d.ts +0 -14
- package/interactions/focus/focus.d.ts +0 -19
- package/interactions/focus-visible/focus-visible-interaction.d.ts +0 -12
- package/interactions/focus-visible/focus-visible.d.ts +0 -19
- package/interactions/hover/hover-interaction.d.ts +0 -17
- package/interactions/hover/hover.d.ts +0 -31
- package/interactions/interactions/interactions.d.ts +0 -20
- package/interactions/move/move.d.ts +0 -114
- package/interactions/press/press-interaction.d.ts +0 -14
- package/interactions/press/press.d.ts +0 -26
- package/internal/exit-animation/exit-animation-manager.d.ts +0 -17
- package/internal/exit-animation/exit-animation.d.ts +0 -26
- package/internal/signals/explicit-effect.d.ts +0 -19
- package/internal/style-injector/style-injector.d.ts +0 -44
- package/internal/utilities/dom-removal.d.ts +0 -6
- package/internal/utilities/element-ref.d.ts +0 -6
- package/internal/utilities/mutation-observer.d.ts +0 -39
- package/internal/utilities/overflow.d.ts +0 -13
- package/internal/utilities/resize.d.ts +0 -31
- package/internal/utilities/scrolling.d.ts +0 -1
- package/listbox/listbox/listbox-state.d.ts +0 -17
- package/listbox/listbox/listbox.d.ts +0 -101
- package/listbox/listbox-header/listbox-header.d.ts +0 -9
- package/listbox/listbox-option/listbox-option.d.ts +0 -68
- package/listbox/listbox-section/listbox-section.d.ts +0 -9
- package/listbox/listbox-trigger/listbox-trigger.d.ts +0 -13
- package/menu/config/menu-config.d.ts +0 -44
- package/menu/menu/menu-token.d.ts +0 -11
- package/menu/menu/menu.d.ts +0 -22
- package/menu/menu-item/menu-item.d.ts +0 -30
- package/menu/menu-trigger/menu-trigger-state.d.ts +0 -17
- package/menu/menu-trigger/menu-trigger.d.ts +0 -98
- package/menu/submenu-trigger/submenu-trigger-state.d.ts +0 -17
- package/menu/submenu-trigger/submenu-trigger.d.ts +0 -88
- package/meter/meter/meter-state.d.ts +0 -17
- package/meter/meter/meter.d.ts +0 -27
- package/meter/meter-indicator/meter-indicator.d.ts +0 -7
- package/meter/meter-label/meter-label.d.ts +0 -10
- package/meter/meter-track/meter-track.d.ts +0 -5
- package/meter/meter-value/meter-value.d.ts +0 -5
- package/pagination/pagination/pagination-state.d.ts +0 -17
- package/pagination/pagination/pagination.d.ts +0 -45
- package/pagination/pagination-button/pagination-button.d.ts +0 -39
- package/pagination/pagination-first/pagination-first.d.ts +0 -28
- package/pagination/pagination-last/pagination-last.d.ts +0 -28
- package/pagination/pagination-next/pagination-next.d.ts +0 -31
- package/pagination/pagination-previous/pagination-previous.d.ts +0 -31
- package/popover/config/popover-config.d.ts +0 -64
- package/popover/popover/popover.d.ts +0 -18
- package/popover/popover-arrow/popover-arrow.d.ts +0 -6
- package/popover/popover-trigger/popover-trigger-state.d.ts +0 -19
- package/popover/popover-trigger/popover-trigger.d.ts +0 -128
- package/portal/offset.d.ts +0 -39
- package/portal/overlay-arrow.d.ts +0 -1
- package/portal/overlay-token.d.ts +0 -12
- package/portal/overlay.d.ts +0 -214
- package/portal/portal.d.ts +0 -94
- package/portal/scroll-strategy.d.ts +0 -23
- package/progress/progress/progress-state.d.ts +0 -17
- package/progress/progress/progress.d.ts +0 -61
- package/progress/progress-indicator/progress-indicator.d.ts +0 -17
- package/progress/progress-label/progress-label.d.ts +0 -14
- package/progress/progress-track/progress-track.d.ts +0 -9
- package/progress/progress-value/progress-value.d.ts +0 -9
- package/radio/radio-group/radio-group-state.d.ts +0 -18
- package/radio/radio-group/radio-group.d.ts +0 -54
- package/radio/radio-indicator/radio-indicator.d.ts +0 -21
- package/radio/radio-item/radio-item-state.d.ts +0 -18
- package/radio/radio-item/radio-item.d.ts +0 -45
- package/resize/resize/resize.d.ts +0 -26
- package/roving-focus/roving-focus-group/roving-focus-group-state.d.ts +0 -17
- package/roving-focus/roving-focus-group/roving-focus-group-token.d.ts +0 -21
- package/roving-focus/roving-focus-group/roving-focus-group.d.ts +0 -94
- package/roving-focus/roving-focus-item/roving-focus-item.d.ts +0 -53
- package/search/search/search-state.d.ts +0 -17
- package/search/search/search.d.ts +0 -36
- package/search/search-clear/search-clear.d.ts +0 -16
- package/select/config/select-config.d.ts +0 -28
- package/select/native-select/native-select-state.d.ts +0 -17
- package/select/native-select/native-select.d.ts +0 -22
- package/select/select/select-state.d.ts +0 -17
- package/select/select/select.d.ts +0 -172
- package/select/select-dropdown/select-dropdown.d.ts +0 -17
- package/select/select-option/select-option.d.ts +0 -51
- package/select/select-portal/select-portal.d.ts +0 -37
- package/separator/config/separator-config.d.ts +0 -22
- package/separator/separator/separator.d.ts +0 -11
- package/slider/range-slider/range-slider/range-slider-state.d.ts +0 -17
- package/slider/range-slider/range-slider/range-slider.d.ts +0 -115
- package/slider/range-slider/range-slider-range/range-slider-range.d.ts +0 -12
- package/slider/range-slider/range-slider-thumb/range-slider-thumb.d.ts +0 -44
- package/slider/range-slider/range-slider-track/range-slider-track.d.ts +0 -22
- package/slider/slider/slider-state.d.ts +0 -17
- package/slider/slider/slider.d.ts +0 -58
- package/slider/slider-range/slider-range.d.ts +0 -12
- package/slider/slider-thumb/slider-thumb.d.ts +0 -29
- package/slider/slider-track/slider-track.d.ts +0 -22
- package/switch/switch/switch-state.d.ts +0 -17
- package/switch/switch/switch.d.ts +0 -49
- package/switch/switch-thumb/switch-thumb.d.ts +0 -13
- package/tabs/config/tabs-config.d.ts +0 -32
- package/tabs/tab-button/tab-button.d.ts +0 -59
- package/tabs/tab-list/tab-list.d.ts +0 -12
- package/tabs/tab-panel/tab-panel-token.d.ts +0 -8
- package/tabs/tab-panel/tab-panel.d.ts +0 -38
- package/tabs/tabset/tabset-state.d.ts +0 -17
- package/tabs/tabset/tabset.d.ts +0 -71
- package/textarea/textarea/textarea-state.d.ts +0 -17
- package/textarea/textarea/textarea.d.ts +0 -19
- package/toast/config/toast-config.d.ts +0 -70
- package/toast/toast/toast-context.d.ts +0 -3
- package/toast/toast/toast-manager.d.ts +0 -49
- package/toast/toast/toast-options.d.ts +0 -34
- package/toast/toast/toast-timer.d.ts +0 -14
- package/toast/toast/toast.d.ts +0 -72
- package/toggle/toggle/toggle-state.d.ts +0 -17
- package/toggle/toggle/toggle.d.ts +0 -44
- package/toggle-group/config/toggle-group-config.d.ts +0 -32
- package/toggle-group/toggle-group/toggle-group-state.d.ts +0 -17
- package/toggle-group/toggle-group/toggle-group.d.ts +0 -64
- package/toggle-group/toggle-group-item/toggle-group-item-state.d.ts +0 -17
- package/toggle-group/toggle-group-item/toggle-group-item.d.ts +0 -34
- package/toolbar/toolbar/toolbar-state.d.ts +0 -17
- package/toolbar/toolbar/toolbar.d.ts +0 -20
- package/tooltip/config/tooltip-config.d.ts +0 -59
- package/tooltip/tooltip/tooltip.d.ts +0 -17
- package/tooltip/tooltip-arrow/tooltip-arrow.d.ts +0 -6
- package/tooltip/tooltip-text-content/tooltip-text-content.component.d.ts +0 -14
- package/tooltip/tooltip-trigger/tooltip-trigger-state.d.ts +0 -17
- package/tooltip/tooltip-trigger/tooltip-trigger.d.ts +0 -126
- package/utils/forms/providers.d.ts +0 -6
- package/utils/forms/status.d.ts +0 -16
- package/utils/forms/types.d.ts +0 -8
- package/utils/helpers/attributes.d.ts +0 -2
- package/utils/helpers/disposables.d.ts +0 -40
- package/utils/helpers/unique-id.d.ts +0 -6
- package/utils/helpers/validators.d.ts +0 -51
- package/utils/observables/take-until-destroyed.d.ts +0 -10
- package/utils/signals/index.d.ts +0 -22
package/portal/index.d.ts
CHANGED
|
@@ -1,6 +1,389 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { TemplateRef, Type, Injector, ViewContainerRef, Signal, Provider, ValueProvider, ApplicationRef } from '@angular/core';
|
|
3
|
+
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
4
|
+
import { Placement, Strategy, Middleware } from '@floating-ui/dom';
|
|
5
|
+
import { Subject } from 'rxjs';
|
|
6
|
+
import { ViewportRuler } from '@angular/cdk/overlay';
|
|
7
|
+
|
|
8
|
+
/**
|
|
9
|
+
* Options for configuring offset between a floating element and its reference element.
|
|
10
|
+
* Can be a single number for uniform offset or an object for axis-specific control.
|
|
11
|
+
*/
|
|
12
|
+
interface NgpOffsetOptions {
|
|
13
|
+
/**
|
|
14
|
+
* The offset along the main axis (the axis that runs along the side of the floating element).
|
|
15
|
+
* Represents the distance between the floating element and the reference element.
|
|
16
|
+
* @default 0
|
|
17
|
+
*/
|
|
18
|
+
mainAxis?: number;
|
|
19
|
+
/**
|
|
20
|
+
* The offset along the cross axis (the axis that runs along the alignment of the floating element).
|
|
21
|
+
* Represents the skidding between the floating element and the reference element.
|
|
22
|
+
* @default 0
|
|
23
|
+
*/
|
|
24
|
+
crossAxis?: number;
|
|
25
|
+
/**
|
|
26
|
+
* Same axis as crossAxis but applies only to aligned placements and inverts the end alignment.
|
|
27
|
+
* When set to a number, it overrides the crossAxis value.
|
|
28
|
+
* @default null
|
|
29
|
+
*/
|
|
30
|
+
alignmentAxis?: number | null;
|
|
31
|
+
}
|
|
32
|
+
/**
|
|
33
|
+
* Type representing all valid offset values.
|
|
34
|
+
* Can be a number (applies to mainAxis) or an object with axis-specific offsets.
|
|
35
|
+
*/
|
|
36
|
+
type NgpOffset = number | NgpOffsetOptions;
|
|
37
|
+
/**
|
|
38
|
+
* Input type for offset that also accepts string representations of numbers
|
|
39
|
+
*/
|
|
40
|
+
type NgpOffsetInput = NgpOffset | string;
|
|
41
|
+
/**
|
|
42
|
+
* Transform function to coerce offset input values to the correct type
|
|
43
|
+
* @param value The input value to coerce
|
|
44
|
+
* @returns The coerced offset value
|
|
45
|
+
*/
|
|
46
|
+
declare function coerceOffset(value: NgpOffsetInput | null | undefined): NgpOffset;
|
|
47
|
+
|
|
48
|
+
/**
|
|
49
|
+
* Configuration options for creating an overlay
|
|
50
|
+
* @internal
|
|
51
|
+
*/
|
|
52
|
+
interface NgpOverlayConfig<T = unknown> {
|
|
53
|
+
/** Content to display in the overlay (component or template) */
|
|
54
|
+
content: NgpOverlayContent<T>;
|
|
55
|
+
/** The element that triggers the overlay */
|
|
56
|
+
triggerElement: HTMLElement;
|
|
57
|
+
/** The element to use for positioning the overlay (if different from trigger) */
|
|
58
|
+
anchorElement?: HTMLElement | null;
|
|
59
|
+
/** The injector to use for creating the portal */
|
|
60
|
+
injector: Injector;
|
|
61
|
+
/** ViewContainerRef to use for creating the portal */
|
|
62
|
+
viewContainerRef: ViewContainerRef;
|
|
63
|
+
/** Context data to pass to the overlay content */
|
|
64
|
+
context?: Signal<T | undefined>;
|
|
65
|
+
/** Container element or selector to attach the overlay to (defaults to document.body) */
|
|
66
|
+
container?: HTMLElement | string | null;
|
|
67
|
+
/** Preferred placement of the overlay relative to the trigger. */
|
|
68
|
+
placement?: Signal<Placement>;
|
|
69
|
+
/** Offset distance between the overlay and trigger. Can be a number or an object with axis-specific offsets */
|
|
70
|
+
offset?: NgpOffset;
|
|
71
|
+
/** Whether to enable flip behavior when space is limited */
|
|
72
|
+
flip?: boolean;
|
|
73
|
+
/** Delay before showing the overlay in milliseconds */
|
|
74
|
+
showDelay?: number;
|
|
75
|
+
/** Delay before hiding the overlay in milliseconds */
|
|
76
|
+
hideDelay?: number;
|
|
77
|
+
/** Whether the overlay should be positioned with fixed or absolute strategy */
|
|
78
|
+
strategy?: Strategy;
|
|
79
|
+
/** The scroll strategy to use for the overlay */
|
|
80
|
+
scrollBehaviour?: 'reposition' | 'block';
|
|
81
|
+
/** Whether to close the overlay when clicking outside */
|
|
82
|
+
closeOnOutsideClick?: boolean;
|
|
83
|
+
/** Whether to close the overlay when pressing escape */
|
|
84
|
+
closeOnEscape?: boolean;
|
|
85
|
+
/** Whether to restore focus to the trigger element when hiding the overlay */
|
|
86
|
+
restoreFocus?: boolean;
|
|
87
|
+
/** Additional middleware for floating UI positioning */
|
|
88
|
+
additionalMiddleware?: Middleware[];
|
|
89
|
+
/** Additional providers */
|
|
90
|
+
providers?: Provider[];
|
|
91
|
+
}
|
|
92
|
+
/** Type for overlay content which can be either a template or component */
|
|
93
|
+
type NgpOverlayContent<T> = TemplateRef<NgpOverlayTemplateContext<T>> | Type<unknown>;
|
|
94
|
+
/** Context for template-based overlays */
|
|
95
|
+
type NgpOverlayTemplateContext<T> = {
|
|
96
|
+
$implicit: T;
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* NgpOverlay manages the lifecycle and positioning of overlay UI elements.
|
|
100
|
+
* It abstracts the common behavior shared by tooltips, popovers, menus, etc.
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
declare class NgpOverlay<T = unknown> {
|
|
104
|
+
private config;
|
|
105
|
+
private readonly disposables;
|
|
106
|
+
private readonly document;
|
|
107
|
+
private readonly destroyRef;
|
|
108
|
+
private readonly viewContainerRef;
|
|
109
|
+
private readonly viewportRuler;
|
|
110
|
+
private readonly focusMonitor;
|
|
111
|
+
/** Access any parent overlays */
|
|
112
|
+
private readonly parentOverlay;
|
|
113
|
+
/** Signal tracking the portal instance */
|
|
114
|
+
private readonly portal;
|
|
115
|
+
/** Signal tracking the overlay position */
|
|
116
|
+
readonly position: _angular_core.WritableSignal<{
|
|
117
|
+
x: number | undefined;
|
|
118
|
+
y: number | undefined;
|
|
119
|
+
}>;
|
|
120
|
+
/**
|
|
121
|
+
* Determine if the overlay has been positioned
|
|
122
|
+
* @internal
|
|
123
|
+
*/
|
|
124
|
+
readonly isPositioned: Signal<boolean>;
|
|
125
|
+
/** Signal tracking the trigger element width */
|
|
126
|
+
readonly triggerWidth: _angular_core.WritableSignal<number | null>;
|
|
127
|
+
/** The transform origin for the overlay */
|
|
128
|
+
readonly transformOrigin: _angular_core.WritableSignal<string>;
|
|
129
|
+
/** Signal tracking the final placement of the overlay */
|
|
130
|
+
readonly finalPlacement: _angular_core.WritableSignal<Placement | undefined>;
|
|
131
|
+
/** Function to dispose the positioning auto-update */
|
|
132
|
+
private disposePositioning?;
|
|
133
|
+
/** Timeout handle for showing the overlay */
|
|
134
|
+
private openTimeout?;
|
|
135
|
+
/** Timeout handle for hiding the overlay */
|
|
136
|
+
private closeTimeout?;
|
|
137
|
+
/** Signal tracking whether the overlay is open */
|
|
138
|
+
readonly isOpen: _angular_core.WritableSignal<boolean>;
|
|
139
|
+
/** A unique id for the overlay */
|
|
140
|
+
readonly id: _angular_core.WritableSignal<string>;
|
|
141
|
+
/** The aria-describedby attribute for accessibility */
|
|
142
|
+
readonly ariaDescribedBy: Signal<string | undefined>;
|
|
143
|
+
/** The scroll strategy */
|
|
144
|
+
private scrollStrategy;
|
|
145
|
+
/** An observable that emits when the overlay is closing */
|
|
146
|
+
readonly closing: Subject<void>;
|
|
147
|
+
/** Store the arrow element */
|
|
148
|
+
private arrowElement;
|
|
149
|
+
/** @internal The position of the arrow */
|
|
150
|
+
readonly arrowPosition: _angular_core.WritableSignal<{
|
|
151
|
+
x: number | undefined;
|
|
152
|
+
y: number | undefined;
|
|
153
|
+
}>;
|
|
154
|
+
/**
|
|
155
|
+
* Creates a new overlay instance
|
|
156
|
+
* @param config Initial configuration for the overlay
|
|
157
|
+
* @param destroyRef Reference for automatic cleanup
|
|
158
|
+
*/
|
|
159
|
+
constructor(config: NgpOverlayConfig<T>);
|
|
160
|
+
/**
|
|
161
|
+
* Show the overlay with the specified delay
|
|
162
|
+
* @param showDelay Optional delay to override the configured showDelay
|
|
163
|
+
*/
|
|
164
|
+
show(): Promise<void>;
|
|
165
|
+
/**
|
|
166
|
+
* Stop any pending close operation. This is useful for example, if we move the mouse from the tooltip trigger to the tooltip itself.
|
|
167
|
+
* This will prevent the tooltip from closing immediately when the mouse leaves the trigger.
|
|
168
|
+
* @internal
|
|
169
|
+
*/
|
|
170
|
+
cancelPendingClose(): void;
|
|
171
|
+
/**
|
|
172
|
+
* Hide the overlay with the specified delay
|
|
173
|
+
* @param options Optional options for hiding the overlay
|
|
174
|
+
*/
|
|
175
|
+
hide(options?: OverlayTriggerOptions): void;
|
|
176
|
+
/**
|
|
177
|
+
* Update the configuration of this overlay
|
|
178
|
+
* @param config New configuration (partial)
|
|
179
|
+
*/
|
|
180
|
+
updateConfig(config: Partial<NgpOverlayConfig<T>>): void;
|
|
181
|
+
/**
|
|
182
|
+
* Immediately hide the overlay without any delay
|
|
183
|
+
*/
|
|
184
|
+
hideImmediate(): void;
|
|
185
|
+
/**
|
|
186
|
+
* Toggle the overlay open/closed state
|
|
187
|
+
*/
|
|
188
|
+
toggle(): void;
|
|
189
|
+
/**
|
|
190
|
+
* Force update the position of the overlay
|
|
191
|
+
*/
|
|
192
|
+
updatePosition(): void;
|
|
193
|
+
/**
|
|
194
|
+
* Completely destroy this overlay instance
|
|
195
|
+
*/
|
|
196
|
+
destroy(): void;
|
|
197
|
+
/**
|
|
198
|
+
* Get the elements of the overlay
|
|
199
|
+
*/
|
|
200
|
+
getElements(): HTMLElement[];
|
|
201
|
+
/**
|
|
202
|
+
* Internal method to create the overlay
|
|
203
|
+
*/
|
|
204
|
+
private createOverlay;
|
|
205
|
+
/**
|
|
206
|
+
* Internal method to setup positioning of the overlay
|
|
207
|
+
*/
|
|
208
|
+
private setupPositioning;
|
|
209
|
+
/**
|
|
210
|
+
* Compute the overlay position using floating-ui
|
|
211
|
+
*/
|
|
212
|
+
private computePosition;
|
|
213
|
+
/**
|
|
214
|
+
* Internal method to destroy the overlay portal
|
|
215
|
+
*/
|
|
216
|
+
private destroyOverlay;
|
|
217
|
+
/**
|
|
218
|
+
* Get the transform origin for the overlay
|
|
219
|
+
*/
|
|
220
|
+
private getTransformOrigin;
|
|
221
|
+
/**
|
|
222
|
+
* Register the arrow element for positioning
|
|
223
|
+
* @internal
|
|
224
|
+
*/
|
|
225
|
+
registerArrow(arrowElement: HTMLElement | null): void;
|
|
226
|
+
/**
|
|
227
|
+
* Remove the registered arrow element
|
|
228
|
+
* @internal
|
|
229
|
+
*/
|
|
230
|
+
unregisterArrow(): void;
|
|
231
|
+
/**
|
|
232
|
+
* Resolve the container element from the configuration
|
|
233
|
+
* @internal
|
|
234
|
+
*/
|
|
235
|
+
private resolveContainer;
|
|
236
|
+
}
|
|
237
|
+
/**
|
|
238
|
+
* Helper function to create an overlay in a single call
|
|
239
|
+
* @internal
|
|
240
|
+
*/
|
|
241
|
+
declare function createOverlay<T>(config: NgpOverlayConfig<T>): NgpOverlay<T>;
|
|
242
|
+
/**
|
|
243
|
+
* Helper function to inject the NgpOverlay instance
|
|
244
|
+
* @internal
|
|
245
|
+
*/
|
|
246
|
+
declare function injectOverlay<T>(): NgpOverlay<T>;
|
|
247
|
+
interface OverlayTriggerOptions {
|
|
248
|
+
/**
|
|
249
|
+
* Whether the visibility change should be immediate.
|
|
250
|
+
*/
|
|
251
|
+
immediate?: boolean;
|
|
252
|
+
/**
|
|
253
|
+
* The origin of the focus event that triggered the visibility change.
|
|
254
|
+
*/
|
|
255
|
+
origin?: FocusOrigin;
|
|
256
|
+
}
|
|
257
|
+
|
|
258
|
+
declare function setupOverlayArrow(): void;
|
|
259
|
+
|
|
260
|
+
/**
|
|
261
|
+
* Injects the context for the overlay.
|
|
262
|
+
* @internal
|
|
263
|
+
*/
|
|
264
|
+
declare function injectOverlayContext<T>(): Signal<T>;
|
|
265
|
+
/**
|
|
266
|
+
* Provides the context for the overlay.
|
|
267
|
+
* @param value The value to provide as the context.
|
|
268
|
+
* @internal
|
|
269
|
+
*/
|
|
270
|
+
declare function provideOverlayContext<T>(value: Signal<T | undefined> | undefined): ValueProvider;
|
|
271
|
+
|
|
272
|
+
declare abstract class NgpPortal {
|
|
273
|
+
protected readonly viewContainerRef: ViewContainerRef;
|
|
274
|
+
protected readonly injector: Injector;
|
|
275
|
+
constructor(viewContainerRef: ViewContainerRef, injector: Injector);
|
|
276
|
+
/**
|
|
277
|
+
* Get the elements of the portal.
|
|
278
|
+
*/
|
|
279
|
+
abstract getElements(): HTMLElement[];
|
|
280
|
+
/**
|
|
281
|
+
* Detect changes in the portal.
|
|
282
|
+
*/
|
|
283
|
+
abstract detectChanges(): void;
|
|
284
|
+
/**
|
|
285
|
+
* Whether the portal is attached to a DOM element.
|
|
286
|
+
*/
|
|
287
|
+
abstract getAttached(): boolean;
|
|
288
|
+
/**
|
|
289
|
+
* Attach the portal to a DOM element.
|
|
290
|
+
* @param container The DOM element to attach the portal to.
|
|
291
|
+
*/
|
|
292
|
+
abstract attach(container: HTMLElement): this;
|
|
293
|
+
/**
|
|
294
|
+
* Detach the portal from the DOM.
|
|
295
|
+
*/
|
|
296
|
+
abstract detach(): Promise<void>;
|
|
297
|
+
/**
|
|
298
|
+
* Angular v20 removes `_unusedComponentFactoryResolver` and `_document` from DomPortalOutlet's
|
|
299
|
+
* constructor signature as they have been deprecated since v18, and replaced with optional
|
|
300
|
+
* `_appRef` and `_defaultInjector` params.
|
|
301
|
+
* This temporary change ensures consistent behaviour for consumers using ng v20+.
|
|
302
|
+
* @see {@link https://github.com/angular/components/pull/24504 The implementing PR} for the new implementation.
|
|
303
|
+
* @see {@link https://github.com/angular/components/blob/732a0d7ab69ec25925cc06a0fb17b0fb16a4b0ae/src/cdk/portal/dom-portal-outlet.ts#L27 The latest v20 version comments}
|
|
304
|
+
* describe the importance of passing the `_appRef` and `_defaultInjector` when it comes to component portals
|
|
305
|
+
*/
|
|
306
|
+
protected _getDomPortalOutletCtorParamsCompat(): (ApplicationRef | Injector | undefined | any)[];
|
|
307
|
+
}
|
|
308
|
+
declare class NgpComponentPortal<T> extends NgpPortal {
|
|
309
|
+
private readonly componentPortal;
|
|
310
|
+
private viewRef;
|
|
311
|
+
private isDestroying;
|
|
312
|
+
private exitAnimationRef;
|
|
313
|
+
constructor(component: Type<T>, viewContainerRef: ViewContainerRef, injector: Injector);
|
|
314
|
+
/**
|
|
315
|
+
* Attach the portal to a DOM element.
|
|
316
|
+
* @param container The DOM element to attach the portal to.
|
|
317
|
+
*/
|
|
318
|
+
attach(container: HTMLElement): this;
|
|
319
|
+
/**
|
|
320
|
+
* Get the root elements of the portal.
|
|
321
|
+
*/
|
|
322
|
+
getElements(): HTMLElement[];
|
|
323
|
+
/**
|
|
324
|
+
* Detect changes in the portal.
|
|
325
|
+
*/
|
|
326
|
+
detectChanges(): void;
|
|
327
|
+
/**
|
|
328
|
+
* Whether the portal is attached to a DOM element.
|
|
329
|
+
*/
|
|
330
|
+
getAttached(): boolean;
|
|
331
|
+
/**
|
|
332
|
+
* Detach the portal from the DOM.
|
|
333
|
+
*/
|
|
334
|
+
detach(): Promise<void>;
|
|
335
|
+
}
|
|
336
|
+
declare class NgpTemplatePortal<T> extends NgpPortal {
|
|
337
|
+
private readonly templatePortal;
|
|
338
|
+
private viewRef;
|
|
339
|
+
private exitAnimationRefs;
|
|
340
|
+
private isDestroying;
|
|
341
|
+
constructor(template: TemplateRef<T>, viewContainerRef: ViewContainerRef, injector: Injector, context?: T);
|
|
342
|
+
/**
|
|
343
|
+
* Attach the portal to a DOM element.
|
|
344
|
+
* @param container The DOM element to attach the portal to.
|
|
345
|
+
*/
|
|
346
|
+
attach(container: HTMLElement): this;
|
|
347
|
+
/**
|
|
348
|
+
* Get the root elements of the portal.
|
|
349
|
+
*/
|
|
350
|
+
getElements(): HTMLElement[];
|
|
351
|
+
/**
|
|
352
|
+
* Detect changes in the portal.
|
|
353
|
+
*/
|
|
354
|
+
detectChanges(): void;
|
|
355
|
+
/**
|
|
356
|
+
* Whether the portal is attached to a DOM element.
|
|
357
|
+
*/
|
|
358
|
+
getAttached(): boolean;
|
|
359
|
+
/**
|
|
360
|
+
* Detach the portal from the DOM.
|
|
361
|
+
*/
|
|
362
|
+
detach(): Promise<void>;
|
|
363
|
+
}
|
|
364
|
+
declare function createPortal<T>(componentOrTemplate: Type<T> | TemplateRef<T>, viewContainerRef: ViewContainerRef, injector: Injector, context?: T): NgpPortal;
|
|
365
|
+
|
|
366
|
+
interface ScrollStrategy {
|
|
367
|
+
enable(): void;
|
|
368
|
+
disable(): void;
|
|
369
|
+
}
|
|
370
|
+
declare class BlockScrollStrategy implements ScrollStrategy {
|
|
371
|
+
private readonly viewportRuler;
|
|
372
|
+
private readonly document;
|
|
373
|
+
private readonly previousHTMLStyles;
|
|
374
|
+
private previousScrollPosition;
|
|
375
|
+
private isEnabled;
|
|
376
|
+
constructor(viewportRuler: ViewportRuler, document: Document);
|
|
377
|
+
/** Blocks page-level scroll while the attached overlay is open. */
|
|
378
|
+
enable(): void;
|
|
379
|
+
/** Unblocks page-level scroll while the attached overlay is open. */
|
|
380
|
+
disable(): void;
|
|
381
|
+
private canBeEnabled;
|
|
382
|
+
}
|
|
383
|
+
declare class NoopScrollStrategy implements ScrollStrategy {
|
|
384
|
+
enable(): void;
|
|
385
|
+
disable(): void;
|
|
386
|
+
}
|
|
387
|
+
|
|
388
|
+
export { BlockScrollStrategy, NgpComponentPortal, NgpOverlay, NgpPortal, NgpTemplatePortal, NoopScrollStrategy, coerceOffset, createOverlay, createPortal, injectOverlay, injectOverlayContext, provideOverlayContext, setupOverlayArrow };
|
|
389
|
+
export type { NgpOffset, NgpOffsetInput, NgpOffsetOptions, NgpOverlayConfig, NgpOverlayContent, NgpOverlayTemplateContext, ScrollStrategy };
|
package/progress/index.d.ts
CHANGED
|
@@ -1,6 +1,124 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as ng_primitives_state from 'ng-primitives/state';
|
|
3
|
+
import * as ng_primitives_progress from 'ng-primitives/progress';
|
|
4
|
+
import { NumberInput } from '@angular/cdk/coercion';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* Apply the `ngpProgressIndicator` directive to an element that represents the current progress.
|
|
8
|
+
* The width of this element can be set to the percentage of the progress value.
|
|
9
|
+
*/
|
|
10
|
+
declare class NgpProgressIndicator {
|
|
11
|
+
/**
|
|
12
|
+
* Access the progress state.
|
|
13
|
+
*/
|
|
14
|
+
protected readonly state: _angular_core.Signal<ng_primitives_state.State<ng_primitives_progress.NgpProgress>>;
|
|
15
|
+
/**
|
|
16
|
+
* Get the percentage of the progress value.
|
|
17
|
+
*/
|
|
18
|
+
protected readonly percentage: _angular_core.Signal<number | null>;
|
|
19
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgpProgressIndicator, never>;
|
|
20
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgpProgressIndicator, "[ngpProgressIndicator]", never, {}, {}, never, never, true, never>;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
declare class NgpProgressLabel {
|
|
24
|
+
/**
|
|
25
|
+
* Access the progress state.
|
|
26
|
+
*/
|
|
27
|
+
protected readonly state: _angular_core.Signal<ng_primitives_state.State<ng_primitives_progress.NgpProgress>>;
|
|
28
|
+
/**
|
|
29
|
+
* The unique identifier for the progress label.
|
|
30
|
+
*/
|
|
31
|
+
readonly id: _angular_core.InputSignal<string>;
|
|
32
|
+
constructor();
|
|
33
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgpProgressLabel, never>;
|
|
34
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgpProgressLabel, "[ngpProgressLabel]", ["ngpProgressLabel"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
35
|
+
}
|
|
36
|
+
|
|
37
|
+
declare class NgpProgressTrack {
|
|
38
|
+
/**
|
|
39
|
+
* Access the progress state.
|
|
40
|
+
*/
|
|
41
|
+
protected readonly state: _angular_core.Signal<ng_primitives_state.State<ng_primitives_progress.NgpProgress>>;
|
|
42
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgpProgressTrack, never>;
|
|
43
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgpProgressTrack, "[ngpProgressTrack]", ["ngpProgressTrack"], {}, {}, never, never, true, never>;
|
|
44
|
+
}
|
|
45
|
+
|
|
46
|
+
declare class NgpProgressValue {
|
|
47
|
+
/**
|
|
48
|
+
* Access the progress state.
|
|
49
|
+
*/
|
|
50
|
+
protected readonly state: _angular_core.Signal<ng_primitives_state.State<ng_primitives_progress.NgpProgress>>;
|
|
51
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgpProgressValue, never>;
|
|
52
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgpProgressValue, "[ngpProgressValue]", ["ngpProgressValue"], {}, {}, never, never, true, never>;
|
|
53
|
+
}
|
|
54
|
+
|
|
55
|
+
/**
|
|
56
|
+
* Apply the `ngpProgress` directive to an element that represents the progress bar.
|
|
57
|
+
*/
|
|
58
|
+
declare class NgpProgress {
|
|
59
|
+
/**
|
|
60
|
+
* Define the progress value.
|
|
61
|
+
*/
|
|
62
|
+
readonly value: _angular_core.InputSignalWithTransform<number | null, NumberInput>;
|
|
63
|
+
/**
|
|
64
|
+
* Define the progress min value.
|
|
65
|
+
* @default '0'
|
|
66
|
+
*/
|
|
67
|
+
readonly min: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
68
|
+
/**
|
|
69
|
+
* Define the progress max value.
|
|
70
|
+
* @default 100
|
|
71
|
+
*/
|
|
72
|
+
readonly max: _angular_core.InputSignalWithTransform<number, NumberInput>;
|
|
73
|
+
/**
|
|
74
|
+
* Define a function that returns the progress value label.
|
|
75
|
+
* @param value The current value
|
|
76
|
+
* @param max The maximum value
|
|
77
|
+
* @returns The value label
|
|
78
|
+
*/
|
|
79
|
+
readonly valueLabel: _angular_core.InputSignal<NgpProgressValueTextFn>;
|
|
80
|
+
/**
|
|
81
|
+
* Determine if the progress is indeterminate.
|
|
82
|
+
* @internal
|
|
83
|
+
*/
|
|
84
|
+
readonly indeterminate: _angular_core.Signal<boolean>;
|
|
85
|
+
/**
|
|
86
|
+
* Determine if the progress is in a progressing state.
|
|
87
|
+
* @internal
|
|
88
|
+
*/
|
|
89
|
+
readonly progressing: _angular_core.Signal<boolean>;
|
|
90
|
+
/**
|
|
91
|
+
* Determine if the progress is complete.
|
|
92
|
+
* @internal
|
|
93
|
+
*/
|
|
94
|
+
readonly complete: _angular_core.Signal<boolean>;
|
|
95
|
+
/**
|
|
96
|
+
* Get the progress value text.
|
|
97
|
+
*/
|
|
98
|
+
protected readonly valueText: _angular_core.Signal<string>;
|
|
99
|
+
/**
|
|
100
|
+
* The label associated with the progress bar.
|
|
101
|
+
* @internal
|
|
102
|
+
*/
|
|
103
|
+
readonly label: _angular_core.WritableSignal<NgpProgressLabel | null>;
|
|
104
|
+
/**
|
|
105
|
+
* The state of the progress bar.
|
|
106
|
+
* @internal
|
|
107
|
+
*/
|
|
108
|
+
protected readonly state: ng_primitives_state.CreatedState<NgpProgress>;
|
|
109
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgpProgress, never>;
|
|
110
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgpProgress, "[ngpProgress]", never, { "value": { "alias": "ngpProgressValue"; "required": false; "isSignal": true; }; "min": { "alias": "ngpProgressMin"; "required": false; "isSignal": true; }; "max": { "alias": "ngpProgressMax"; "required": false; "isSignal": true; }; "valueLabel": { "alias": "ngpProgressValueLabel"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
111
|
+
}
|
|
112
|
+
type NgpProgressValueTextFn = (value: number, max: number) => string;
|
|
113
|
+
|
|
114
|
+
/**
|
|
115
|
+
* Provides the Progress state.
|
|
116
|
+
*/
|
|
117
|
+
declare const provideProgressState: (options?: ng_primitives_state.CreateStateProviderOptions) => _angular_core.FactoryProvider;
|
|
118
|
+
/**
|
|
119
|
+
* Injects the Progress state.
|
|
120
|
+
*/
|
|
121
|
+
declare const injectProgressState: <U = NgpProgress>(injectOptions?: _angular_core.InjectOptions) => _angular_core.Signal<ng_primitives_state.State<U>>;
|
|
122
|
+
|
|
123
|
+
export { NgpProgress, NgpProgressIndicator, NgpProgressLabel, NgpProgressTrack, NgpProgressValue, injectProgressState, provideProgressState };
|
|
124
|
+
export type { NgpProgressValueTextFn };
|
package/radio/index.d.ts
CHANGED
|
@@ -1,5 +1,140 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
import * as ng_primitives_state from 'ng-primitives/state';
|
|
2
|
+
import { InjectedState } from 'ng-primitives/state';
|
|
3
|
+
import * as _angular_core from '@angular/core';
|
|
4
|
+
import { OnInit } from '@angular/core';
|
|
5
|
+
import { BooleanInput } from '@angular/cdk/coercion';
|
|
6
|
+
import { NgpOrientation } from 'ng-primitives/common';
|
|
7
|
+
import * as i1 from 'ng-primitives/roving-focus';
|
|
8
|
+
import * as ng_primitives_radio from 'ng-primitives/radio';
|
|
9
|
+
import * as i2 from 'ng-primitives/interactions';
|
|
10
|
+
|
|
11
|
+
/**
|
|
12
|
+
* Apply the `ngpRadioGroup` directive to an element that represents the group of radio items.
|
|
13
|
+
*/
|
|
14
|
+
declare class NgpRadioGroup<T> implements OnInit {
|
|
15
|
+
/**
|
|
16
|
+
* Access the roving focus group state.
|
|
17
|
+
*/
|
|
18
|
+
private readonly rovingFocusGroupState;
|
|
19
|
+
/**
|
|
20
|
+
* The id of the radio group. If not provided, a unique id will be generated.
|
|
21
|
+
*/
|
|
22
|
+
readonly id: _angular_core.InputSignal<string>;
|
|
23
|
+
/**
|
|
24
|
+
* The value of the radio group.
|
|
25
|
+
*/
|
|
26
|
+
readonly value: _angular_core.InputSignal<T | null>;
|
|
27
|
+
/**
|
|
28
|
+
* Event emitted when the radio group value changes.
|
|
29
|
+
*/
|
|
30
|
+
readonly valueChange: _angular_core.OutputEmitterRef<T | null>;
|
|
31
|
+
/**
|
|
32
|
+
* Whether the radio group is disabled.
|
|
33
|
+
*/
|
|
34
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
35
|
+
/**
|
|
36
|
+
* The orientation of the radio group.
|
|
37
|
+
* @default 'horizontal'
|
|
38
|
+
*/
|
|
39
|
+
readonly orientation: _angular_core.InputSignal<NgpOrientation>;
|
|
40
|
+
/**
|
|
41
|
+
* The comparator function for the radio group. This is useful if values are objects and you want to compare them by value, not by reference.
|
|
42
|
+
* @default (a, b) => a === b
|
|
43
|
+
*/
|
|
44
|
+
readonly compareWith: _angular_core.InputSignal<(a: T | null, b: T | null) => boolean>;
|
|
45
|
+
/**
|
|
46
|
+
* The state of the radio group.
|
|
47
|
+
* @internal
|
|
48
|
+
*/
|
|
49
|
+
protected readonly state: ng_primitives_state.CreatedState<NgpRadioGroup<T>>;
|
|
50
|
+
constructor();
|
|
51
|
+
ngOnInit(): void;
|
|
52
|
+
/**
|
|
53
|
+
* Select a radio item.
|
|
54
|
+
* @param value The value of the radio item to select.
|
|
55
|
+
*/
|
|
56
|
+
select(value: T): void;
|
|
57
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgpRadioGroup<any>, never>;
|
|
58
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgpRadioGroup<any>, "[ngpRadioGroup]", never, { "id": { "alias": "id"; "required": false; "isSignal": true; }; "value": { "alias": "ngpRadioGroupValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpRadioGroupDisabled"; "required": false; "isSignal": true; }; "orientation": { "alias": "ngpRadioGroupOrientation"; "required": false; "isSignal": true; }; "compareWith": { "alias": "ngpRadioGroupCompareWith"; "required": false; "isSignal": true; }; }, { "valueChange": "ngpRadioGroupValueChange"; }, never, never, true, [{ directive: typeof i1.NgpRovingFocusGroup; inputs: { "ngpRovingFocusGroupOrientation": "ngpRadioGroupOrientation"; "ngpRovingFocusGroupDisabled": "ngpRadioGroupDisabled"; }; outputs: {}; }]>;
|
|
59
|
+
}
|
|
60
|
+
|
|
61
|
+
/**
|
|
62
|
+
* Provides the RadioGroup state.
|
|
63
|
+
*/
|
|
64
|
+
declare const provideRadioGroupState: (options?: ng_primitives_state.CreateStateProviderOptions) => _angular_core.FactoryProvider;
|
|
65
|
+
/**
|
|
66
|
+
* Injects the RadioGroup state.
|
|
67
|
+
*/
|
|
68
|
+
declare const injectRadioGroupState: <T>() => InjectedState<NgpRadioGroup<T>>;
|
|
69
|
+
|
|
70
|
+
/**
|
|
71
|
+
* Apply the `ngpRadioIndicator` directive to an element that represents the radio indicator (i.e. the dot).
|
|
72
|
+
*/
|
|
73
|
+
declare class NgpRadioIndicator<T> {
|
|
74
|
+
/**
|
|
75
|
+
* Access the radio group state.
|
|
76
|
+
*/
|
|
77
|
+
protected readonly radioGroupState: ng_primitives_state.InjectedState<ng_primitives_radio.NgpRadioGroup<T>>;
|
|
78
|
+
/**
|
|
79
|
+
* Access the radio group item state
|
|
80
|
+
*/
|
|
81
|
+
protected readonly radioItemState: ng_primitives_state.InjectedState<ng_primitives_radio.NgpRadioItem<T>>;
|
|
82
|
+
/**
|
|
83
|
+
* Determine if the radio indicator is checked.
|
|
84
|
+
*/
|
|
85
|
+
protected readonly checked: _angular_core.Signal<boolean>;
|
|
86
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgpRadioIndicator<any>, never>;
|
|
87
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgpRadioIndicator<any>, "[ngpRadioIndicator]", never, {}, {}, never, never, true, [{ directive: typeof i2.NgpHover; inputs: {}; outputs: {}; }, { directive: typeof i2.NgpPress; inputs: {}; outputs: {}; }]>;
|
|
88
|
+
}
|
|
89
|
+
|
|
90
|
+
/**
|
|
91
|
+
* Apply the `ngpRadioItem` directive to an element that represents a radio item. This would typically be a `button` element.
|
|
92
|
+
*/
|
|
93
|
+
declare class NgpRadioItem<T> implements OnInit {
|
|
94
|
+
/**
|
|
95
|
+
* Access the radio group state.
|
|
96
|
+
*/
|
|
97
|
+
private readonly radioGroupState;
|
|
98
|
+
/**
|
|
99
|
+
* The value of the radio item.
|
|
100
|
+
* @required
|
|
101
|
+
*/
|
|
102
|
+
readonly value: _angular_core.InputSignal<T | undefined>;
|
|
103
|
+
/**
|
|
104
|
+
* Whether the radio item is disabled.
|
|
105
|
+
* @default false
|
|
106
|
+
*/
|
|
107
|
+
readonly disabled: _angular_core.InputSignalWithTransform<boolean, BooleanInput>;
|
|
108
|
+
/**
|
|
109
|
+
* Whether the radio item is checked.
|
|
110
|
+
*/
|
|
111
|
+
readonly checked: _angular_core.Signal<boolean>;
|
|
112
|
+
/**
|
|
113
|
+
* The state of the radio item.
|
|
114
|
+
*/
|
|
115
|
+
protected readonly state: ng_primitives_state.CreatedState<NgpRadioItem<T>>;
|
|
116
|
+
ngOnInit(): void;
|
|
117
|
+
/**
|
|
118
|
+
* When the item receives focus, select it.
|
|
119
|
+
* @internal
|
|
120
|
+
*/
|
|
121
|
+
protected onFocus(): void;
|
|
122
|
+
/**
|
|
123
|
+
* When the item receives a click, select it.
|
|
124
|
+
* @internal
|
|
125
|
+
*/
|
|
126
|
+
protected onClick(): void;
|
|
127
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgpRadioItem<any>, never>;
|
|
128
|
+
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<NgpRadioItem<any>, "[ngpRadioItem]", never, { "value": { "alias": "ngpRadioItemValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpRadioItemDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.NgpRovingFocusItem; inputs: {}; outputs: {}; }, { directive: typeof i2.NgpHover; inputs: {}; outputs: {}; }, { directive: typeof i2.NgpFocusVisible; inputs: {}; outputs: {}; }, { directive: typeof i2.NgpPress; inputs: {}; outputs: {}; }]>;
|
|
129
|
+
}
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Provides the RadioItem state.
|
|
133
|
+
*/
|
|
134
|
+
declare const provideRadioItemState: (options?: ng_primitives_state.CreateStateProviderOptions) => _angular_core.FactoryProvider;
|
|
135
|
+
/**
|
|
136
|
+
* Injects the RadioItem state.
|
|
137
|
+
*/
|
|
138
|
+
declare const injectRadioItemState: <T>() => InjectedState<NgpRadioItem<T>>;
|
|
139
|
+
|
|
140
|
+
export { NgpRadioGroup, NgpRadioIndicator, NgpRadioItem, injectRadioGroupState, injectRadioItemState, provideRadioGroupState, provideRadioItemState };
|