ng-primitives 0.26.1 → 0.27.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 +2 -2
- package/a11y/visually-hidden/{visually-hidden.token.d.ts → visually-hidden-token.d.ts} +1 -1
- package/accordion/accordion/accordion-state.d.ts +28 -0
- package/accordion/accordion/{accordion.directive.d.ts → accordion.d.ts} +10 -2
- package/accordion/accordion-content/accordion-content.d.ts +30 -0
- package/accordion/accordion-item/accordion-item-state.d.ts +28 -0
- package/accordion/accordion-item/{accordion-item.directive.d.ts → accordion-item.d.ts} +17 -6
- package/accordion/accordion-trigger/accordion-trigger.d.ts +24 -0
- package/accordion/config/{accordion.config.d.ts → accordion-config.d.ts} +1 -1
- package/accordion/index.d.ts +7 -9
- package/autofill/index.d.ts +1 -2
- package/avatar/avatar/avatar-state.d.ts +21 -0
- package/avatar/avatar/{avatar.directive.d.ts → avatar.d.ts} +10 -6
- package/avatar/index.d.ts +5 -5
- package/button/button/button-state.d.ts +22 -0
- package/button/button/{button.directive.d.ts → button.d.ts} +4 -0
- package/button/index.d.ts +2 -2
- package/checkbox/checkbox/checkbox-state.d.ts +28 -0
- package/checkbox/checkbox/{checkbox.directive.d.ts → checkbox.d.ts} +2 -3
- package/checkbox/index.d.ts +2 -3
- package/collection.json +6 -0
- package/common/header/{header.token.d.ts → header-token.d.ts} +1 -1
- package/common/index.d.ts +3 -2
- package/common/types/selection.d.ts +1 -0
- package/date-picker/date-picker/date-picker-state.d.ts +6 -0
- package/date-picker/date-picker/{date-picker.token.d.ts → date-picker-token.d.ts} +1 -1
- package/date-picker/date-picker/{date-picker.directive.d.ts → date-picker.d.ts} +2 -2
- package/date-picker/date-picker-cell/{date-picker-cell.token.d.ts → date-picker-cell-token.d.ts} +1 -1
- package/date-picker/date-picker-cell-render/{date-picker-cell-render.token.d.ts → date-picker-cell-render-token.d.ts} +1 -1
- package/date-picker/date-picker-date-button/{date-picker-date-button.token.d.ts → date-picker-date-button-token.d.ts} +1 -1
- package/date-picker/date-picker-grid/{date-picker-grid.token.d.ts → date-picker-grid-token.d.ts} +1 -1
- package/date-picker/date-picker-grid/{date-picker-grid.directive.d.ts → date-picker-grid.d.ts} +1 -5
- package/date-picker/date-picker-label/{date-picker-label.token.d.ts → date-picker-label-token.d.ts} +1 -1
- package/date-picker/date-picker-label/{date-picker-label.directive.d.ts → date-picker-label.d.ts} +1 -1
- package/date-picker/date-picker-next-month/{date-picker-next-month.token.d.ts → date-picker-next-month-token.d.ts} +1 -1
- package/date-picker/date-picker-previous-month/{date-picker-previous-month.token.d.ts → date-picker-previous-month-token.d.ts} +1 -1
- package/date-picker/date-picker-row-render/{date-picker-row-render.token.d.ts → date-picker-row-render-token.d.ts} +1 -1
- package/date-picker/index.d.ts +19 -19
- package/date-time/index.d.ts +1 -1
- package/dialog/dialog/dialog-ref.d.ts +1 -1
- package/dialog/dialog/{dialog.token.d.ts → dialog-token.d.ts} +1 -1
- package/dialog/dialog/{dialog.directive.d.ts → dialog.d.ts} +1 -1
- package/dialog/dialog/dialog.service.d.ts +1 -1
- package/dialog/dialog-description/{dialog-description.token.d.ts → dialog-description-token.d.ts} +1 -1
- package/dialog/dialog-overlay/{dialog-overlay.token.d.ts → dialog-overlay-token.d.ts} +1 -1
- package/dialog/dialog-title/{dialog-title.token.d.ts → dialog-title-token.d.ts} +1 -1
- package/dialog/dialog-trigger/{dialog-trigger.token.d.ts → dialog-trigger-token.d.ts} +1 -1
- package/dialog/index.d.ts +11 -11
- package/example-theme/index.css +2 -0
- package/fesm2022/ng-primitives-a11y.mjs.map +1 -1
- package/fesm2022/ng-primitives-accordion.mjs +90 -96
- package/fesm2022/ng-primitives-accordion.mjs.map +1 -1
- package/fesm2022/ng-primitives-autofill.mjs +3 -19
- package/fesm2022/ng-primitives-autofill.mjs.map +1 -1
- package/fesm2022/ng-primitives-avatar.mjs +45 -39
- package/fesm2022/ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/ng-primitives-button.mjs +24 -23
- package/fesm2022/ng-primitives-button.mjs.map +1 -1
- package/fesm2022/ng-primitives-checkbox.mjs +15 -44
- package/fesm2022/ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/ng-primitives-common.mjs.map +1 -1
- package/fesm2022/ng-primitives-date-picker.mjs +42 -63
- package/fesm2022/ng-primitives-date-picker.mjs.map +1 -1
- package/fesm2022/ng-primitives-date-time.mjs.map +1 -1
- package/fesm2022/ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/ng-primitives-file-upload.mjs +35 -28
- package/fesm2022/ng-primitives-file-upload.mjs.map +1 -1
- package/fesm2022/ng-primitives-focus-trap.mjs.map +1 -1
- package/fesm2022/ng-primitives-form-field.mjs.map +1 -1
- package/fesm2022/ng-primitives-input.mjs.map +1 -1
- package/fesm2022/ng-primitives-interactions.mjs +130 -130
- package/fesm2022/ng-primitives-interactions.mjs.map +1 -1
- package/fesm2022/ng-primitives-internal.mjs +28 -2
- package/fesm2022/ng-primitives-internal.mjs.map +1 -1
- package/fesm2022/ng-primitives-listbox.mjs +272 -207
- package/fesm2022/ng-primitives-listbox.mjs.map +1 -1
- package/fesm2022/ng-primitives-menu.mjs +36 -84
- package/fesm2022/ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/ng-primitives-pagination.mjs +25 -18
- package/fesm2022/ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/ng-primitives-progress.mjs +36 -32
- package/fesm2022/ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/ng-primitives-radio.mjs +35 -19
- package/fesm2022/ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/ng-primitives-resize.mjs.map +1 -1
- package/fesm2022/ng-primitives-roving-focus.mjs.map +1 -1
- package/fesm2022/ng-primitives-search.mjs.map +1 -1
- package/fesm2022/ng-primitives-select.mjs.map +1 -1
- package/fesm2022/ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/ng-primitives-slider.mjs +70 -70
- package/fesm2022/ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/ng-primitives-state.mjs +29 -39
- package/fesm2022/ng-primitives-state.mjs.map +1 -1
- package/fesm2022/ng-primitives-switch.mjs +19 -11
- package/fesm2022/ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/ng-primitives-tabs.mjs +33 -31
- package/fesm2022/ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/ng-primitives-textarea.mjs.map +1 -1
- package/fesm2022/ng-primitives-toast.mjs.map +1 -1
- package/fesm2022/ng-primitives-toggle-group.mjs +31 -16
- package/fesm2022/ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/ng-primitives-toggle.mjs +16 -8
- package/fesm2022/ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/ng-primitives-toolbar.mjs.map +1 -1
- package/fesm2022/ng-primitives-tooltip.mjs.map +1 -1
- package/file-upload/file-upload/file-upload-state.d.ts +35 -0
- package/file-upload/file-upload/{file-upload.directive.d.ts → file-upload.d.ts} +5 -1
- package/file-upload/index.d.ts +2 -2
- package/focus-trap/focus-trap/{focus-trap.token.d.ts → focus-trap-token.d.ts} +1 -1
- package/focus-trap/focus-trap/{focus-trap.directive.d.ts → focus-trap.d.ts} +2 -1
- package/focus-trap/index.d.ts +2 -2
- package/form-field/description/{description.token.d.ts → description-token.d.ts} +1 -1
- package/form-field/error/{error.token.d.ts → error-token.d.ts} +1 -1
- package/form-field/form-control/{form-control.token.d.ts → form-control-token.d.ts} +1 -1
- package/form-field/form-field/{form-field.token.d.ts → form-field-token.d.ts} +1 -1
- package/form-field/index.d.ts +10 -10
- package/form-field/label/{label.token.d.ts → label-token.d.ts} +1 -1
- package/input/index.d.ts +2 -2
- package/input/input/{input.token.d.ts → input-token.d.ts} +1 -1
- package/interactions/focus/{focus.token.d.ts → focus-token.d.ts} +1 -1
- package/interactions/focus-visible/{focus-visible.token.d.ts → focus-visible-token.d.ts} +1 -1
- package/interactions/hover/{hover.token.d.ts → hover-token.d.ts} +1 -1
- package/interactions/index.d.ts +10 -10
- package/interactions/move/{move.token.d.ts → move-token.d.ts} +1 -1
- package/interactions/press/{press.token.d.ts → press-token.d.ts} +1 -1
- package/internal/index.d.ts +1 -0
- package/internal/utilities/dom-removal.d.ts +6 -0
- package/listbox/index.d.ts +9 -8
- package/listbox/listbox/listbox-state.d.ts +41 -0
- package/listbox/listbox/{listbox.token.d.ts → listbox-token.d.ts} +1 -1
- package/listbox/listbox/{listbox.directive.d.ts → listbox.d.ts} +23 -5
- package/listbox/listbox-option/{listbox-option.token.d.ts → listbox-option-token.d.ts} +1 -1
- package/listbox/listbox-option/{listbox-option.directive.d.ts → listbox-option.d.ts} +10 -3
- package/listbox/listbox-section/{listbox-section.token.d.ts → listbox-section-token.d.ts} +1 -1
- package/listbox/listbox-trigger/{listbox-trigger.token.d.ts → listbox-trigger-token.d.ts} +1 -1
- package/menu/index.d.ts +3 -6
- package/package.json +9 -9
- package/pagination/index.d.ts +13 -13
- package/pagination/pagination/pagination-state.d.ts +26 -0
- package/pagination/pagination/{pagination.token.d.ts → pagination-token.d.ts} +1 -1
- package/pagination/pagination-button/{pagination-button.token.d.ts → pagination-button-token.d.ts} +1 -1
- package/pagination/pagination-button/{pagination-button.directive.d.ts → pagination-button.d.ts} +10 -1
- package/pagination/pagination-first/{pagination-first.token.d.ts → pagination-first-token.d.ts} +1 -1
- package/pagination/pagination-first/{pagination-first.directive.d.ts → pagination-first.d.ts} +10 -1
- package/pagination/pagination-last/{pagination-last.token.d.ts → pagination-last-token.d.ts} +1 -1
- package/pagination/pagination-next/{pagination-next.token.d.ts → pagination-next-token.d.ts} +1 -1
- package/pagination/pagination-next/{pagination-next.directive.d.ts → pagination-next.d.ts} +10 -1
- package/pagination/pagination-previous/{pagination-previous.token.d.ts → pagination-previous-token.d.ts} +1 -1
- package/pagination/pagination-previous/{pagination-previous.directive.d.ts → pagination-previous.d.ts} +10 -1
- package/popover/index.d.ts +5 -5
- package/popover/popover/{popover.token.d.ts → popover-token.d.ts} +1 -1
- package/popover/popover-trigger/{popover-trigger.token.d.ts → popover-trigger-token.d.ts} +1 -1
- package/progress/index.d.ts +4 -4
- package/progress/progress/progress-state.d.ts +24 -0
- package/progress/progress/{progress.token.d.ts → progress-token.d.ts} +1 -1
- package/progress/progress/{progress.directive.d.ts → progress.d.ts} +1 -1
- package/progress/progress-indicator/progress-indicator.d.ts +16 -0
- package/radio/index.d.ts +7 -7
- package/radio/radio-group/radio-group-state.d.ts +24 -0
- package/radio/radio-group/{radio-group.token.d.ts → radio-group-token.d.ts} +1 -1
- package/radio/radio-group/{radio-group.directive.d.ts → radio-group.d.ts} +1 -1
- package/radio/radio-indicator/radio-indicator.d.ts +41 -0
- package/radio/radio-item/radio-item-state.d.ts +33 -0
- package/radio/radio-item/{radio-item.token.d.ts → radio-item-token.d.ts} +1 -1
- package/radio/radio-item/{radio-item.directive.d.ts → radio-item.d.ts} +1 -1
- package/resize/index.d.ts +1 -1
- package/roving-focus/index.d.ts +4 -4
- package/roving-focus/roving-focus-group/{roving-focus-group.token.d.ts → roving-focus-group-token.d.ts} +1 -1
- package/roving-focus/roving-focus-group/{roving-focus-group.directive.d.ts → roving-focus-group.d.ts} +1 -1
- package/roving-focus/roving-focus-item/{roving-focus-item.token.d.ts → roving-focus-item-token.d.ts} +1 -1
- package/schematics/ng-generate/schema.d.ts +2 -1
- package/schematics/ng-generate/schema.json +1 -0
- package/schematics/ng-generate/templates/accordion/accordion-item.__fileSuffix@dasherize__.ts.template +2 -0
- package/schematics/ng-generate/templates/accordion/accordion.__fileSuffix@dasherize__.ts.template +2 -0
- package/schematics/ng-generate/templates/avatar/avatar.__fileSuffix@dasherize__.ts.template +2 -0
- package/schematics/ng-generate/templates/button/button.__fileSuffix@dasherize__.ts.template +2 -0
- package/schematics/ng-generate/templates/checkbox/checkbox.__fileSuffix@dasherize__.ts.template +7 -5
- package/schematics/ng-generate/templates/date-picker/date-picker.__fileSuffix@dasherize__.ts.template +6 -4
- package/schematics/ng-generate/templates/form-field/form-field.__fileSuffix@dasherize__.ts.template +2 -0
- package/schematics/ng-generate/templates/input/input.__fileSuffix@dasherize__.ts.template +2 -0
- package/schematics/ng-generate/templates/listbox/listbox-option.__fileSuffix@dasherize__.ts.template +56 -0
- package/schematics/ng-generate/templates/listbox/listbox.__fileSuffix@dasherize__.ts.template +139 -0
- package/schematics/ng-generate/templates/pagination/pagination.__fileSuffix@dasherize__.ts.template +5 -3
- package/schematics/ng-generate/templates/progress/progress.__fileSuffix@dasherize__.ts.template +3 -1
- package/schematics/ng-generate/templates/radio/radio-group.__fileSuffix@dasherize__.ts.template +4 -2
- package/schematics/ng-generate/templates/radio/radio-item.__fileSuffix@dasherize__.ts.template +2 -0
- package/schematics/ng-generate/templates/slider/slider.__fileSuffix@dasherize__.ts.template +5 -3
- package/schematics/ng-generate/templates/switch/switch.__fileSuffix@dasherize__.ts.template +5 -3
- package/schematics/ng-generate/templates/tabs/tabs.__fileSuffix@dasherize__.ts.template +2 -0
- package/schematics/ng-generate/templates/toggle/toggle.__fileSuffix@dasherize__.ts.template +5 -3
- package/schematics/ng-generate/templates/toggle-group/toggle-group-item.__fileSuffix@dasherize__.ts.template +2 -0
- package/schematics/ng-generate/templates/toggle-group/toggle-group.__fileSuffix@dasherize__.ts.template +5 -3
- package/search/index.d.ts +4 -4
- package/search/search/{search.token.d.ts → search-token.d.ts} +1 -1
- package/search/search-clear/{search-clear.token.d.ts → search-clear-token.d.ts} +1 -1
- package/select/index.d.ts +2 -2
- package/select/select/{select.token.d.ts → select-token.d.ts} +1 -1
- package/separator/index.d.ts +3 -3
- package/separator/separator/{separator.token.d.ts → separator-token.d.ts} +1 -1
- package/slider/index.d.ts +9 -9
- package/slider/slider/slider-state.d.ts +28 -0
- package/slider/slider/{slider.token.d.ts → slider-token.d.ts} +1 -1
- package/slider/slider/{slider.directive.d.ts → slider.d.ts} +2 -2
- package/slider/slider-range/{slider-range.token.d.ts → slider-range-token.d.ts} +1 -1
- package/slider/slider-range/slider-range.d.ts +20 -0
- package/slider/slider-thumb/{slider-thumb.token.d.ts → slider-thumb-token.d.ts} +1 -1
- package/slider/slider-thumb/slider-thumb.d.ts +37 -0
- package/slider/slider-track/{slider-track.token.d.ts → slider-track-token.d.ts} +1 -1
- package/slider/slider-track/slider-track.d.ts +34 -0
- package/state/state.d.ts +26 -29
- package/switch/index.d.ts +4 -4
- package/switch/switch/switch-state.d.ts +26 -0
- package/switch/switch/{switch.token.d.ts → switch-token.d.ts} +1 -1
- package/switch/switch/{switch.directive.d.ts → switch.d.ts} +1 -1
- package/switch/switch-thumb/switch-thumb.d.ts +19 -0
- package/tabs/index.d.ts +8 -8
- package/tabs/tab-button/{tab-button.directive.d.ts → tab-button.d.ts} +14 -1
- package/tabs/tab-list/tab-list.d.ts +22 -0
- package/tabs/tab-panel/{tab-panel.token.d.ts → tab-panel-token.d.ts} +1 -1
- package/tabs/tab-panel/{tab-panel.directive.d.ts → tab-panel.d.ts} +14 -1
- package/tabs/tabset/tabset-state.d.ts +30 -0
- package/tabs/tabset/{tabset.token.d.ts → tabset-token.d.ts} +1 -1
- package/tabs/tabset/{tabset.directive.d.ts → tabset.d.ts} +2 -2
- package/textarea/index.d.ts +2 -2
- package/textarea/textarea/{textarea.token.d.ts → textarea-token.d.ts} +1 -1
- package/toast/index.d.ts +3 -3
- package/toast/toast/{toast.token.d.ts → toast-token.d.ts} +1 -1
- package/toggle/index.d.ts +3 -3
- package/toggle/toggle/toggle-state.d.ts +26 -0
- package/toggle/toggle/{toggle.token.d.ts → toggle-token.d.ts} +1 -1
- package/toggle/toggle/{toggle.directive.d.ts → toggle.d.ts} +1 -1
- package/toggle-group/index.d.ts +7 -7
- package/toggle-group/toggle-group/toggle-group-state.d.ts +29 -0
- package/toggle-group/toggle-group/{toggle-group.token.d.ts → toggle-group-token.d.ts} +1 -1
- package/toggle-group/toggle-group/{toggle-group.directive.d.ts → toggle-group.d.ts} +1 -1
- package/toggle-group/toggle-group-item/toggle-group-item-state.d.ts +25 -0
- package/toggle-group/toggle-group-item/{toggle-group-item.token.d.ts → toggle-group-item-token.d.ts} +1 -1
- package/toggle-group/toggle-group-item/{toggle-group-item.directive.d.ts → toggle-group-item.d.ts} +2 -2
- package/toolbar/index.d.ts +2 -2
- package/toolbar/toolbar/{toolbar.token.d.ts → toolbar-token.d.ts} +1 -1
- package/tooltip/index.d.ts +5 -5
- package/tooltip/tooltip/{tooltip.token.d.ts → tooltip-token.d.ts} +1 -1
- package/tooltip/tooltip-trigger/{tooltip-trigger.token.d.ts → tooltip-trigger-token.d.ts} +1 -1
- package/accordion/accordion/accordion.token.d.ts +0 -15
- package/accordion/accordion-content/accordion-content.directive.d.ts +0 -17
- package/accordion/accordion-content/accordion-content.token.d.ts +0 -15
- package/accordion/accordion-item/accordion-item.token.d.ts +0 -15
- package/accordion/accordion-trigger/accordion-trigger.directive.d.ts +0 -21
- package/accordion/accordion-trigger/accordion-trigger.token.d.ts +0 -15
- package/autofill/autofill/autofill.token.d.ts +0 -14
- package/avatar/avatar/avatar.token.d.ts +0 -15
- package/button/button/button.token.d.ts +0 -14
- package/checkbox/checkbox/checkbox.state.d.ts +0 -41
- package/checkbox/checkbox/checkbox.token.d.ts +0 -21
- package/date-picker/date-picker/date-picker.state.d.ts +0 -52
- package/file-upload/file-upload/file-upload.token.d.ts +0 -14
- package/menu/menu/menu.token.d.ts +0 -14
- package/menu/menu-item/menu-item.token.d.ts +0 -14
- package/menu/menu-trigger/menu-trigger.token.d.ts +0 -14
- package/pagination/pagination/pagination.state.d.ts +0 -26
- package/progress/progress/progress.state.d.ts +0 -23
- package/progress/progress-indicator/progress-indicator.directive.d.ts +0 -13
- package/radio/radio-group/radio-group.state.d.ts +0 -27
- package/radio/radio-indicator/radio-indicator.directive.d.ts +0 -18
- package/radio/radio-item/radio-item.state.d.ts +0 -18
- package/slider/slider/slider.state.d.ts +0 -39
- package/slider/slider-range/slider-range.directive.d.ts +0 -13
- package/slider/slider-thumb/slider-thumb.directive.d.ts +0 -26
- package/slider/slider-track/slider-track.directive.d.ts +0 -23
- package/switch/switch/switch.state.d.ts +0 -22
- package/switch/switch-thumb/switch-thumb.directive.d.ts +0 -10
- package/tabs/tab-list/tab-list.directive.d.ts +0 -9
- package/tabs/tabset/tabset.state.d.ts +0 -48
- package/toggle/toggle/toggle.state.d.ts +0 -22
- package/toggle-group/toggle-group/toggle-group.state.d.ts +0 -31
- package/toggle-group/toggle-group-item/toggle-group-item.state.d.ts +0 -18
- /package/a11y/visually-hidden/{visually-hidden.directive.d.ts → visually-hidden.d.ts} +0 -0
- /package/autofill/autofill/{autofill.directive.d.ts → autofill.d.ts} +0 -0
- /package/avatar/avatar-fallback/{avatar-fallback.directive.d.ts → avatar-fallback.d.ts} +0 -0
- /package/avatar/avatar-image/{avatar-image.directive.d.ts → avatar-image.d.ts} +0 -0
- /package/avatar/config/{avatar.config.d.ts → avatar-config.d.ts} +0 -0
- /package/common/header/{header.directive.d.ts → header.d.ts} +0 -0
- /package/date-picker/date-picker-cell/{date-picker-cell.directive.d.ts → date-picker-cell.d.ts} +0 -0
- /package/date-picker/date-picker-cell-render/{date-picker-cell-render.directive.d.ts → date-picker-cell-render.d.ts} +0 -0
- /package/date-picker/date-picker-date-button/{date-picker-date-button.directive.d.ts → date-picker-date-button.d.ts} +0 -0
- /package/date-picker/date-picker-next-month/{date-picker-next-month.directive.d.ts → date-picker-next-month.d.ts} +0 -0
- /package/date-picker/date-picker-previous-month/{date-picker-previous-month.directive.d.ts → date-picker-previous-month.d.ts} +0 -0
- /package/date-picker/date-picker-row-render/{date-picker-row-render.directive.d.ts → date-picker-row-render.d.ts} +0 -0
- /package/date-time/date-adapter/{date-adapter.token.d.ts → date-adapter-token.d.ts} +0 -0
- /package/dialog/config/{dialog.config.d.ts → dialog-config.d.ts} +0 -0
- /package/dialog/dialog-description/{dialog-description.directive.d.ts → dialog-description.d.ts} +0 -0
- /package/dialog/dialog-overlay/{dialog-overlay.directive.d.ts → dialog-overlay.d.ts} +0 -0
- /package/dialog/dialog-title/{dialog-title.directive.d.ts → dialog-title.d.ts} +0 -0
- /package/dialog/dialog-trigger/{dialog-trigger.directive.d.ts → dialog-trigger.d.ts} +0 -0
- /package/form-field/description/{description.directive.d.ts → description.d.ts} +0 -0
- /package/form-field/error/{error.directive.d.ts → error.d.ts} +0 -0
- /package/form-field/form-control/{form-control.directive.d.ts → form-control.d.ts} +0 -0
- /package/form-field/form-field/{form-field.directive.d.ts → form-field.d.ts} +0 -0
- /package/form-field/label/{label.directive.d.ts → label.d.ts} +0 -0
- /package/input/input/{input.directive.d.ts → input.d.ts} +0 -0
- /package/interactions/focus/{focus.directive.d.ts → focus.d.ts} +0 -0
- /package/interactions/focus-visible/{focus-visible.directive.d.ts → focus-visible.d.ts} +0 -0
- /package/interactions/hover/{hover.directive.d.ts → hover.d.ts} +0 -0
- /package/interactions/move/{move.directive.d.ts → move.d.ts} +0 -0
- /package/interactions/press/{press.directive.d.ts → press.d.ts} +0 -0
- /package/listbox/listbox-section/{listbox-section.directive.d.ts → listbox-section.d.ts} +0 -0
- /package/listbox/listbox-trigger/{listbox-trigger.directive.d.ts → listbox-trigger.d.ts} +0 -0
- /package/menu/menu/{menu.directive.d.ts → menu.d.ts} +0 -0
- /package/menu/menu-item/{menu-item.directive.d.ts → menu-item.d.ts} +0 -0
- /package/menu/menu-trigger/{menu-trigger.directive.d.ts → menu-trigger.d.ts} +0 -0
- /package/pagination/pagination/{pagination.directive.d.ts → pagination.d.ts} +0 -0
- /package/pagination/pagination-last/{pagination-last.directive.d.ts → pagination-last.d.ts} +0 -0
- /package/popover/config/{popover.config.d.ts → popover-config.d.ts} +0 -0
- /package/popover/popover/{popover.directive.d.ts → popover.d.ts} +0 -0
- /package/popover/popover-trigger/{popover-trigger.directive.d.ts → popover-trigger.d.ts} +0 -0
- /package/resize/resize/{resize.directive.d.ts → resize.d.ts} +0 -0
- /package/roving-focus/roving-focus-item/{roving-focus-item.directive.d.ts → roving-focus-item.d.ts} +0 -0
- /package/search/search/{search.directive.d.ts → search.d.ts} +0 -0
- /package/search/search-clear/{search-clear.directive.d.ts → search-clear.d.ts} +0 -0
- /package/select/select/{select.directive.d.ts → select.d.ts} +0 -0
- /package/separator/config/{separator.config.d.ts → separator-config.d.ts} +0 -0
- /package/separator/separator/{separator.directive.d.ts → separator.d.ts} +0 -0
- /package/tabs/config/{tabs.config.d.ts → tabs-config.d.ts} +0 -0
- /package/textarea/textarea/{textarea.directive.d.ts → textarea.d.ts} +0 -0
- /package/toast/config/{toast.config.d.ts → toast-config.d.ts} +0 -0
- /package/toast/toast/{toast.directive.d.ts → toast.d.ts} +0 -0
- /package/toggle-group/config/{toggle-group.config.d.ts → toggle-group-config.d.ts} +0 -0
- /package/toolbar/toolbar/{toolbar.directive.d.ts → toolbar.d.ts} +0 -0
- /package/tooltip/config/{tooltip.config.d.ts → tooltip-config.d.ts} +0 -0
- /package/tooltip/tooltip/{tooltip.directive.d.ts → tooltip.d.ts} +0 -0
- /package/tooltip/tooltip-trigger/{tooltip-trigger.directive.d.ts → tooltip-trigger.d.ts} +0 -0
package/a11y/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* This source code is licensed under the Apache 2.0 license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
export * from './visually-hidden/visually-hidden
|
|
9
|
-
export { NgpVisuallyHiddenToken, injectVisuallyHidden, } from './visually-hidden/visually-hidden
|
|
8
|
+
export * from './visually-hidden/visually-hidden';
|
|
9
|
+
export { NgpVisuallyHiddenToken, injectVisuallyHidden, } from './visually-hidden/visually-hidden-token';
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { InjectionToken } from '@angular/core';
|
|
9
|
-
import type { NgpVisuallyHidden } from './visually-hidden
|
|
9
|
+
import type { NgpVisuallyHidden } from './visually-hidden';
|
|
10
10
|
export declare const NgpVisuallyHiddenToken: InjectionToken<NgpVisuallyHidden>;
|
|
11
11
|
/**
|
|
12
12
|
* Inject the VisuallyHidden directive instance
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { NgpAccordion } from './accordion';
|
|
2
|
+
/**
|
|
3
|
+
* The state token for the Accordion primitive.
|
|
4
|
+
*/
|
|
5
|
+
export declare const NgpAccordionStateToken: import("@angular/core").InjectionToken<NgpAccordion<unknown>>;
|
|
6
|
+
/**
|
|
7
|
+
* Provides the Accordion state.
|
|
8
|
+
*/
|
|
9
|
+
export declare const provideAccordionState: () => import("@angular/core").FactoryProvider;
|
|
10
|
+
/**
|
|
11
|
+
* Injects the Accordion state.
|
|
12
|
+
*/
|
|
13
|
+
export declare const injectAccordionState: <U = {
|
|
14
|
+
readonly config: import("ng-primitives/accordion").NgpAccordionConfig;
|
|
15
|
+
readonly type: import("@angular/core").InputSignal<import("./accordion").NgpAccordionType>;
|
|
16
|
+
readonly collapsible: import("@angular/core").InputSignalWithTransform<boolean, import("@angular/cdk/coercion").BooleanInput>;
|
|
17
|
+
readonly value: import("@angular/core").InputSignal<unknown>;
|
|
18
|
+
readonly valueChange: import("@angular/core").OutputEmitterRef<unknown>;
|
|
19
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, import("@angular/cdk/coercion").BooleanInput>;
|
|
20
|
+
readonly orientation: import("@angular/core").InputSignal<import("dist/packages/ng-primitives/common").NgpOrientation>;
|
|
21
|
+
readonly state: import("ng-primitives/state").State<NgpAccordion<unknown>>;
|
|
22
|
+
isOpen: (value: unknown) => boolean;
|
|
23
|
+
toggle: (value: unknown) => void;
|
|
24
|
+
}>() => import("@angular/core").Signal<import("ng-primitives/state").State<U>>;
|
|
25
|
+
/**
|
|
26
|
+
* The Accordion state registration function.
|
|
27
|
+
*/
|
|
28
|
+
export declare const accordionState: <U>(state: U) => import("ng-primitives/state").State<U>;
|
|
@@ -25,7 +25,11 @@ export declare class NgpAccordion<T> implements NgpCanOrientate {
|
|
|
25
25
|
/**
|
|
26
26
|
* The value of the accordion.
|
|
27
27
|
*/
|
|
28
|
-
readonly value: import("@angular/core").
|
|
28
|
+
readonly value: import("@angular/core").InputSignal<T | T[] | null>;
|
|
29
|
+
/**
|
|
30
|
+
* Event emitted when the accordion value changes.
|
|
31
|
+
*/
|
|
32
|
+
readonly valueChange: import("@angular/core").OutputEmitterRef<T | T[] | null>;
|
|
29
33
|
/**
|
|
30
34
|
* Whether the accordion is disabled.
|
|
31
35
|
*/
|
|
@@ -34,6 +38,10 @@ export declare class NgpAccordion<T> implements NgpCanOrientate {
|
|
|
34
38
|
* The accordion orientation.
|
|
35
39
|
*/
|
|
36
40
|
readonly orientation: import("@angular/core").InputSignal<NgpOrientation>;
|
|
41
|
+
/**
|
|
42
|
+
* The accordion state.
|
|
43
|
+
*/
|
|
44
|
+
private readonly state;
|
|
37
45
|
/**
|
|
38
46
|
* @param value The value to check.
|
|
39
47
|
* @returns Whether the value is open.
|
|
@@ -42,6 +50,6 @@ export declare class NgpAccordion<T> implements NgpCanOrientate {
|
|
|
42
50
|
isOpen(value: T): boolean;
|
|
43
51
|
toggle(value: T): void;
|
|
44
52
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpAccordion<any>, never>;
|
|
45
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpAccordion<any>, "[ngpAccordion]", ["ngpAccordion"], { "type": { "alias": "ngpAccordionType"; "required": false; "isSignal": true; }; "collapsible": { "alias": "ngpAccordionCollapsible"; "required": false; "isSignal": true; }; "value": { "alias": "ngpAccordionValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpAccordionDisabled"; "required": false; "isSignal": true; }; "orientation": { "alias": "ngpAccordionOrientation"; "required": false; "isSignal": true; }; }, { "
|
|
53
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpAccordion<any>, "[ngpAccordion]", ["ngpAccordion"], { "type": { "alias": "ngpAccordionType"; "required": false; "isSignal": true; }; "collapsible": { "alias": "ngpAccordionCollapsible"; "required": false; "isSignal": true; }; "value": { "alias": "ngpAccordionValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpAccordionDisabled"; "required": false; "isSignal": true; }; "orientation": { "alias": "ngpAccordionOrientation"; "required": false; "isSignal": true; }; }, { "valueChange": "ngpAccordionValueChange"; }, never, never, true, never>;
|
|
46
54
|
}
|
|
47
55
|
export type NgpAccordionType = 'single' | 'multiple';
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
import type { NgpAccordion } from '../accordion/accordion';
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
export declare class NgpAccordionContent<T> {
|
|
4
|
+
/**
|
|
5
|
+
* Access the accordion
|
|
6
|
+
*/
|
|
7
|
+
protected readonly accordion: import("@angular/core").Signal<import("dist/packages/ng-primitives/state").State<NgpAccordion<T>>>;
|
|
8
|
+
/**
|
|
9
|
+
* Access the accordion item
|
|
10
|
+
*/
|
|
11
|
+
protected readonly accordionItem: import("@angular/core").Signal<import("dist/packages/ng-primitives/state").State<{
|
|
12
|
+
readonly accordion: import("@angular/core").Signal<import("dist/packages/ng-primitives/state").State<NgpAccordion<unknown>>>;
|
|
13
|
+
readonly value: import("@angular/core").InputSignal<unknown>;
|
|
14
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, import("@angular/cdk/coercion").BooleanInput>;
|
|
15
|
+
readonly trigger: import("@angular/core").WritableSignal<import("ng-primitives/accordion").NgpAccordionTrigger<unknown> | undefined>;
|
|
16
|
+
readonly content: import("@angular/core").WritableSignal<NgpAccordionContent<unknown> | undefined>;
|
|
17
|
+
readonly open: import("@angular/core").Signal<boolean>;
|
|
18
|
+
readonly triggerId: import("@angular/core").Signal<string | undefined>;
|
|
19
|
+
readonly contentId: import("@angular/core").Signal<string | undefined>;
|
|
20
|
+
readonly state: import("dist/packages/ng-primitives/state").State<import("ng-primitives/accordion").NgpAccordionItem<unknown>>;
|
|
21
|
+
ngOnInit: () => void;
|
|
22
|
+
}>>;
|
|
23
|
+
/**
|
|
24
|
+
* The id of the content region
|
|
25
|
+
*/
|
|
26
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
27
|
+
constructor();
|
|
28
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgpAccordionContent<any>, never>;
|
|
29
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpAccordionContent<any>, "[ngpAccordionContent]", ["ngpAccordionContent"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
30
|
+
}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { NgpAccordionItem } from './accordion-item';
|
|
2
|
+
/**
|
|
3
|
+
* The state token for the AccordionItem primitive.
|
|
4
|
+
*/
|
|
5
|
+
export declare const NgpAccordionItemStateToken: import("@angular/core").InjectionToken<NgpAccordionItem<unknown>>;
|
|
6
|
+
/**
|
|
7
|
+
* Provides the AccordionItem state.
|
|
8
|
+
*/
|
|
9
|
+
export declare const provideAccordionItemState: () => import("@angular/core").FactoryProvider;
|
|
10
|
+
/**
|
|
11
|
+
* Injects the AccordionItem state.
|
|
12
|
+
*/
|
|
13
|
+
export declare const injectAccordionItemState: <U = {
|
|
14
|
+
readonly accordion: import("@angular/core").Signal<import("ng-primitives/state").State<import("ng-primitives/accordion").NgpAccordion<unknown>>>;
|
|
15
|
+
readonly value: import("@angular/core").InputSignal<unknown>;
|
|
16
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, import("@angular/cdk/coercion").BooleanInput>;
|
|
17
|
+
readonly trigger: import("@angular/core").WritableSignal<import("ng-primitives/accordion").NgpAccordionTrigger<unknown> | undefined>;
|
|
18
|
+
readonly content: import("@angular/core").WritableSignal<import("ng-primitives/accordion").NgpAccordionContent<unknown> | undefined>;
|
|
19
|
+
readonly open: import("@angular/core").Signal<boolean>;
|
|
20
|
+
readonly triggerId: import("@angular/core").Signal<string | undefined>;
|
|
21
|
+
readonly contentId: import("@angular/core").Signal<string | undefined>;
|
|
22
|
+
readonly state: import("ng-primitives/state").State<NgpAccordionItem<unknown>>;
|
|
23
|
+
ngOnInit: () => void;
|
|
24
|
+
}>() => import("@angular/core").Signal<import("ng-primitives/state").State<U>>;
|
|
25
|
+
/**
|
|
26
|
+
* The AccordionItem state registration function.
|
|
27
|
+
*/
|
|
28
|
+
export declare const accordionItemState: <U>(state: U) => import("ng-primitives/state").State<U>;
|
|
@@ -6,28 +6,34 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
9
|
+
import { OnInit } from '@angular/core';
|
|
10
|
+
import { NgpAccordionContent } from '../accordion-content/accordion-content';
|
|
11
|
+
import { NgpAccordionTrigger } from '../accordion-trigger/accordion-trigger';
|
|
12
|
+
import { NgpAccordion } from '../accordion/accordion';
|
|
9
13
|
import * as i0 from "@angular/core";
|
|
10
|
-
export declare class NgpAccordionItem<T> {
|
|
14
|
+
export declare class NgpAccordionItem<T> implements OnInit {
|
|
11
15
|
/**
|
|
12
16
|
* Access the accordion.
|
|
13
17
|
*/
|
|
14
|
-
protected readonly accordion: import("ng-primitives/
|
|
18
|
+
protected readonly accordion: import("@angular/core").Signal<import("dist/packages/ng-primitives/state").State<NgpAccordion<T>>>;
|
|
15
19
|
/**
|
|
16
20
|
* The value of the accordion item.
|
|
17
21
|
*/
|
|
18
|
-
readonly value: import("@angular/core").InputSignal<T>;
|
|
22
|
+
readonly value: import("@angular/core").InputSignal<T | undefined>;
|
|
19
23
|
/**
|
|
20
24
|
* Whether the accordion item is disabled.
|
|
21
25
|
*/
|
|
22
26
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
23
27
|
/**
|
|
24
28
|
* Access the accordion trigger
|
|
29
|
+
* @internal
|
|
25
30
|
*/
|
|
26
|
-
|
|
31
|
+
readonly trigger: import("@angular/core").WritableSignal<NgpAccordionTrigger<T> | undefined>;
|
|
27
32
|
/**
|
|
28
33
|
* Access the accordion content
|
|
34
|
+
* @internal
|
|
29
35
|
*/
|
|
30
|
-
|
|
36
|
+
readonly content: import("@angular/core").WritableSignal<NgpAccordionContent<T> | undefined>;
|
|
31
37
|
/**
|
|
32
38
|
* Whether the accordion item is expanded.
|
|
33
39
|
*/
|
|
@@ -40,6 +46,11 @@ export declare class NgpAccordionItem<T> {
|
|
|
40
46
|
* The content id.
|
|
41
47
|
*/
|
|
42
48
|
readonly contentId: import("@angular/core").Signal<string | undefined>;
|
|
49
|
+
/**
|
|
50
|
+
* The accordion item state.
|
|
51
|
+
*/
|
|
52
|
+
private readonly state;
|
|
53
|
+
ngOnInit(): void;
|
|
43
54
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpAccordionItem<any>, never>;
|
|
44
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpAccordionItem<any>, "[ngpAccordionItem]", ["ngpAccordionItem"], { "value": { "alias": "ngpAccordionItemValue"; "required":
|
|
55
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpAccordionItem<any>, "[ngpAccordionItem]", ["ngpAccordionItem"], { "value": { "alias": "ngpAccordionItemValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpAccordionItemDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
45
56
|
}
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
import { NgpAccordionItem } from '../accordion-item/accordion-item';
|
|
2
|
+
import { NgpAccordion } from '../accordion/accordion';
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
export declare class NgpAccordionTrigger<T> {
|
|
5
|
+
/**
|
|
6
|
+
* Access the parent accordion.
|
|
7
|
+
*/
|
|
8
|
+
protected readonly accordion: import("@angular/core").Signal<import("dist/packages/ng-primitives/state").State<NgpAccordion<T>>>;
|
|
9
|
+
/**
|
|
10
|
+
* The item instance.
|
|
11
|
+
*/
|
|
12
|
+
protected readonly accordionItem: import("@angular/core").Signal<import("dist/packages/ng-primitives/state").State<NgpAccordionItem<T>>>;
|
|
13
|
+
/**
|
|
14
|
+
* The id of the trigger.
|
|
15
|
+
*/
|
|
16
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
17
|
+
constructor();
|
|
18
|
+
/**
|
|
19
|
+
* Toggle the accordion item.
|
|
20
|
+
*/
|
|
21
|
+
toggle(): void;
|
|
22
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<NgpAccordionTrigger<any>, never>;
|
|
23
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpAccordionTrigger<any>, "[ngpAccordionTrigger]", ["ngpAccordionTrigger"], { "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
|
24
|
+
}
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { InjectionToken, Provider } from '@angular/core';
|
|
9
|
-
import { NgpAccordionType } from '../accordion/accordion
|
|
9
|
+
import { NgpAccordionType } from '../accordion/accordion';
|
|
10
10
|
export interface NgpAccordionConfig {
|
|
11
11
|
/**
|
|
12
12
|
* The default type of the accordion
|
package/accordion/index.d.ts
CHANGED
|
@@ -5,12 +5,10 @@
|
|
|
5
5
|
* This source code is licensed under the Apache 2.0 license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
export { NgpAccordionContent } from './accordion-content/accordion-content
|
|
9
|
-
export {
|
|
10
|
-
export {
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
13
|
-
export {
|
|
14
|
-
export {
|
|
15
|
-
export { NgpAccordionToken, injectAccordion } from './accordion/accordion.token';
|
|
16
|
-
export { NgpAccordionConfig, provideAccordionConfig } from './config/accordion.config';
|
|
8
|
+
export { NgpAccordionContent } from './accordion-content/accordion-content';
|
|
9
|
+
export { NgpAccordionItem } from './accordion-item/accordion-item';
|
|
10
|
+
export { injectAccordionItemState, provideAccordionItemState, } from './accordion-item/accordion-item-state';
|
|
11
|
+
export { NgpAccordionTrigger } from './accordion-trigger/accordion-trigger';
|
|
12
|
+
export { NgpAccordion } from './accordion/accordion';
|
|
13
|
+
export { injectAccordionState, provideAccordionState } from './accordion/accordion-state';
|
|
14
|
+
export { NgpAccordionConfig, provideAccordionConfig } from './config/accordion-config';
|
package/autofill/index.d.ts
CHANGED
|
@@ -5,5 +5,4 @@
|
|
|
5
5
|
* This source code is licensed under the Apache 2.0 license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
export { NgpAutofill } from './autofill/autofill
|
|
9
|
-
export { NgpAutofillToken, injectAutofill } from './autofill/autofill.token';
|
|
8
|
+
export { NgpAutofill } from './autofill/autofill';
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
import type { NgpAvatar } from './avatar';
|
|
2
|
+
/**
|
|
3
|
+
* The state token for the Avatar primitive.
|
|
4
|
+
*/
|
|
5
|
+
export declare const NgpAvatarStateToken: import("@angular/core").InjectionToken<NgpAvatar>;
|
|
6
|
+
/**
|
|
7
|
+
* Provides the Avatar state.
|
|
8
|
+
*/
|
|
9
|
+
export declare const provideAvatarState: () => import("@angular/core").FactoryProvider;
|
|
10
|
+
/**
|
|
11
|
+
* Injects the Avatar state.
|
|
12
|
+
*/
|
|
13
|
+
export declare const injectAvatarState: <U = {
|
|
14
|
+
readonly status: import("@angular/core").WritableSignal<import("./avatar").NgpAvatarStatus>;
|
|
15
|
+
readonly state: import("ng-primitives/state").State<NgpAvatar>;
|
|
16
|
+
setStatus: (status: import("./avatar").NgpAvatarStatus) => void;
|
|
17
|
+
}>() => import("@angular/core").Signal<import("ng-primitives/state").State<U>>;
|
|
18
|
+
/**
|
|
19
|
+
* The Avatar state registration function.
|
|
20
|
+
*/
|
|
21
|
+
export declare const avatarState: <U>(state: U) => import("ng-primitives/state").State<U>;
|
|
@@ -2,20 +2,24 @@ import * as i0 from "@angular/core";
|
|
|
2
2
|
import * as i1 from "ng-primitives/interactions";
|
|
3
3
|
export declare class NgpAvatar {
|
|
4
4
|
/**
|
|
5
|
-
* Store the current
|
|
5
|
+
* Store the current status of the avatar.
|
|
6
6
|
* @internal
|
|
7
7
|
*/
|
|
8
|
-
readonly
|
|
8
|
+
readonly status: import("@angular/core").WritableSignal<NgpAvatarStatus>;
|
|
9
9
|
/**
|
|
10
|
-
*
|
|
11
|
-
|
|
10
|
+
* The avatar state.
|
|
11
|
+
*/
|
|
12
|
+
protected readonly state: import("dist/packages/ng-primitives/state").State<NgpAvatar>;
|
|
13
|
+
/**
|
|
14
|
+
* Set the avatar status.
|
|
15
|
+
* @param status The status to set.
|
|
12
16
|
* @internal
|
|
13
17
|
*/
|
|
14
|
-
|
|
18
|
+
setStatus(status: NgpAvatarStatus): void;
|
|
15
19
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpAvatar, never>;
|
|
16
20
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpAvatar, "[ngpAvatar]", never, {}, {}, never, never, true, [{ directive: typeof i1.NgpHover; inputs: {}; outputs: {}; }, { directive: typeof i1.NgpFocusVisible; inputs: {}; outputs: {}; }, { directive: typeof i1.NgpPress; inputs: {}; outputs: {}; }]>;
|
|
17
21
|
}
|
|
18
|
-
export declare enum
|
|
22
|
+
export declare enum NgpAvatarStatus {
|
|
19
23
|
Idle = "idle",
|
|
20
24
|
Loading = "loading",
|
|
21
25
|
Loaded = "loaded",
|
package/avatar/index.d.ts
CHANGED
|
@@ -5,8 +5,8 @@
|
|
|
5
5
|
* This source code is licensed under the Apache 2.0 license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
export { NgpAvatarFallback } from './avatar-fallback/avatar-fallback
|
|
9
|
-
export { NgpAvatarImage } from './avatar-image/avatar-image
|
|
10
|
-
export { NgpAvatar,
|
|
11
|
-
export {
|
|
12
|
-
export {
|
|
8
|
+
export { NgpAvatarFallback } from './avatar-fallback/avatar-fallback';
|
|
9
|
+
export { NgpAvatarImage } from './avatar-image/avatar-image';
|
|
10
|
+
export { NgpAvatar, NgpAvatarStatus } from './avatar/avatar';
|
|
11
|
+
export { NgpAvatarConfig, provideAvatarConfig } from './config/avatar-config';
|
|
12
|
+
export { provideAvatarState, injectAvatarState } from './avatar/avatar-state';
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
import type { NgpButton } from './button';
|
|
2
|
+
/**
|
|
3
|
+
* The state token for the Button primitive.
|
|
4
|
+
*/
|
|
5
|
+
export declare const NgpButtonStateToken: import("@angular/core").InjectionToken<NgpButton>;
|
|
6
|
+
/**
|
|
7
|
+
* Provides the Button state.
|
|
8
|
+
*/
|
|
9
|
+
export declare const provideButtonState: () => import("@angular/core").FactoryProvider;
|
|
10
|
+
/**
|
|
11
|
+
* Injects the Button state.
|
|
12
|
+
*/
|
|
13
|
+
export declare const injectButtonState: <U = {
|
|
14
|
+
readonly elementRef: import("@angular/core").ElementRef<HTMLElement>;
|
|
15
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, import("@angular/cdk/coercion").BooleanInput>;
|
|
16
|
+
readonly isButton: boolean;
|
|
17
|
+
readonly state: import("ng-primitives/state").State<NgpButton>;
|
|
18
|
+
}>() => import("@angular/core").Signal<import("ng-primitives/state").State<U>>;
|
|
19
|
+
/**
|
|
20
|
+
* The Button state registration function.
|
|
21
|
+
*/
|
|
22
|
+
export declare const buttonState: <U>(state: U) => import("ng-primitives/state").State<U>;
|
|
@@ -21,6 +21,10 @@ export declare class NgpButton implements NgpCanDisable {
|
|
|
21
21
|
* Detect if this is an HTML button element.
|
|
22
22
|
*/
|
|
23
23
|
protected readonly isButton: boolean;
|
|
24
|
+
/**
|
|
25
|
+
* The button state.
|
|
26
|
+
*/
|
|
27
|
+
protected readonly state: import("dist/packages/ng-primitives/state").State<NgpButton>;
|
|
24
28
|
constructor();
|
|
25
29
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpButton, never>;
|
|
26
30
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpButton, "[ngpButton]", ["ngpButton"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
|
package/button/index.d.ts
CHANGED
|
@@ -5,5 +5,5 @@
|
|
|
5
5
|
* This source code is licensed under the Apache 2.0 license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
export { NgpButton } from './button/button
|
|
9
|
-
export {
|
|
8
|
+
export { NgpButton } from './button/button';
|
|
9
|
+
export { provideButtonState, injectButtonState } from './button/button-state';
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import type { NgpCheckbox } from './checkbox';
|
|
2
|
+
/**
|
|
3
|
+
* The state token for the Checkbox primitive.
|
|
4
|
+
*/
|
|
5
|
+
export declare const NgpCheckboxStateToken: import("@angular/core").InjectionToken<NgpCheckbox>;
|
|
6
|
+
/**
|
|
7
|
+
* Provides the Checkbox state.
|
|
8
|
+
*/
|
|
9
|
+
export declare const provideCheckboxState: () => import("@angular/core").FactoryProvider;
|
|
10
|
+
/**
|
|
11
|
+
* Injects the Checkbox state.
|
|
12
|
+
*/
|
|
13
|
+
export declare const injectCheckboxState: <U = {
|
|
14
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
15
|
+
readonly checked: import("@angular/core").InputSignalWithTransform<boolean, import("@angular/cdk/coercion").BooleanInput>;
|
|
16
|
+
readonly checkedChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
17
|
+
readonly indeterminate: import("@angular/core").InputSignalWithTransform<boolean, import("@angular/cdk/coercion").BooleanInput>;
|
|
18
|
+
readonly indeterminateChange: import("@angular/core").OutputEmitterRef<boolean>;
|
|
19
|
+
readonly required: import("@angular/core").InputSignalWithTransform<boolean, import("@angular/cdk/coercion").BooleanInput>;
|
|
20
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, import("@angular/cdk/coercion").BooleanInput>;
|
|
21
|
+
readonly state: import("ng-primitives/state").State<NgpCheckbox>;
|
|
22
|
+
onEnter: (event: KeyboardEvent) => void;
|
|
23
|
+
toggle: (event?: Event) => void;
|
|
24
|
+
}>() => import("@angular/core").Signal<import("ng-primitives/state").State<U>>;
|
|
25
|
+
/**
|
|
26
|
+
* The Checkbox state registration function.
|
|
27
|
+
*/
|
|
28
|
+
export declare const checkboxState: <U>(state: U) => import("ng-primitives/state").State<U>;
|
|
@@ -41,10 +41,9 @@ export declare class NgpCheckbox implements NgpCanDisable {
|
|
|
41
41
|
*/
|
|
42
42
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
43
43
|
/**
|
|
44
|
-
* The
|
|
45
|
-
* components that use this as a host directive.
|
|
44
|
+
* The state of the checkbox.
|
|
46
45
|
*/
|
|
47
|
-
protected readonly state: import("dist/packages/ng-primitives/state").State<
|
|
46
|
+
protected readonly state: import("dist/packages/ng-primitives/state").State<NgpCheckbox>;
|
|
48
47
|
protected onEnter(event: KeyboardEvent): void;
|
|
49
48
|
toggle(event?: Event): void;
|
|
50
49
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpCheckbox, never>;
|
package/checkbox/index.d.ts
CHANGED
|
@@ -5,6 +5,5 @@
|
|
|
5
5
|
* This source code is licensed under the Apache 2.0 license found in the
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
|
-
export { NgpCheckbox } from './checkbox/checkbox
|
|
9
|
-
export { injectCheckboxState, provideCheckboxState } from './checkbox/checkbox
|
|
10
|
-
export { injectCheckbox, NgpCheckboxToken } from './checkbox/checkbox.token';
|
|
8
|
+
export { NgpCheckbox } from './checkbox/checkbox';
|
|
9
|
+
export { injectCheckboxState, provideCheckboxState } from './checkbox/checkbox-state';
|
package/collection.json
CHANGED
|
@@ -6,6 +6,12 @@
|
|
|
6
6
|
"schema": "./schematics/ng-add/schema.json",
|
|
7
7
|
"hidden": true
|
|
8
8
|
},
|
|
9
|
+
"init": {
|
|
10
|
+
"description": "Add Angular Primitives to a project (Nx CLI).",
|
|
11
|
+
"factory": "./schematics/ng-add/index",
|
|
12
|
+
"schema": "./schematics/ng-add/schema.json",
|
|
13
|
+
"hidden": true
|
|
14
|
+
},
|
|
9
15
|
"primitive": {
|
|
10
16
|
"description": "Add Angular Primitives to a project.",
|
|
11
17
|
"factory": "./schematics/ng-generate/index",
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { InjectionToken } from '@angular/core';
|
|
9
|
-
import type { NgpHeader } from './header
|
|
9
|
+
import type { NgpHeader } from './header';
|
|
10
10
|
export declare const NgpHeaderToken: InjectionToken<NgpHeader>;
|
|
11
11
|
/**
|
|
12
12
|
* Inject the Header directive instance
|
package/common/index.d.ts
CHANGED
|
@@ -1,3 +1,4 @@
|
|
|
1
|
-
export { NgpHeader } from './header/header
|
|
2
|
-
export { injectHeader, NgpHeaderToken } from './header/header
|
|
1
|
+
export { NgpHeader } from './header/header';
|
|
2
|
+
export { injectHeader, NgpHeaderToken } from './header/header-token';
|
|
3
3
|
export { NgpOrientation } from './types/orientation';
|
|
4
|
+
export { NgpSelectionMode } from './types/selection';
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export type NgpSelectionMode = 'single' | 'multiple';
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { InjectedState } from 'ng-primitives/state';
|
|
2
|
+
import type { NgpDatePicker } from './date-picker';
|
|
3
|
+
export declare const NgpDatePickerStateToken: import("@angular/core").InjectionToken<NgpDatePicker<unknown>>;
|
|
4
|
+
export declare const provideDatePickerState: () => import("@angular/core").FactoryProvider;
|
|
5
|
+
export declare const injectDatePickerState: <T>() => InjectedState<NgpDatePicker<T>>;
|
|
6
|
+
export declare const datePickerState: <U>(state: U) => import("ng-primitives/state").State<U>;
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { ExistingProvider, InjectionToken, Type } from '@angular/core';
|
|
9
|
-
import type { NgpDatePicker } from './date-picker
|
|
9
|
+
import type { NgpDatePicker } from './date-picker';
|
|
10
10
|
export declare const NgpDatePickerToken: InjectionToken<NgpDatePicker<unknown>>;
|
|
11
11
|
/**
|
|
12
12
|
* Inject the DatePicker directive instance
|
|
@@ -7,7 +7,7 @@
|
|
|
7
7
|
*/
|
|
8
8
|
import { FocusOrigin } from '@angular/cdk/a11y';
|
|
9
9
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
10
|
-
import type { NgpDatePickerDateButton } from '../date-picker-date-button/date-picker-date-button
|
|
10
|
+
import type { NgpDatePickerDateButton } from '../date-picker-date-button/date-picker-date-button';
|
|
11
11
|
import * as i0 from "@angular/core";
|
|
12
12
|
export declare class NgpDatePicker<T> {
|
|
13
13
|
/**
|
|
@@ -62,7 +62,7 @@ export declare class NgpDatePicker<T> {
|
|
|
62
62
|
/**
|
|
63
63
|
* The date picker state.
|
|
64
64
|
*/
|
|
65
|
-
protected readonly state: import("dist/packages/ng-primitives/state").State<
|
|
65
|
+
protected readonly state: import("dist/packages/ng-primitives/state").State<NgpDatePicker<T>>;
|
|
66
66
|
/**
|
|
67
67
|
* Set the focused date.
|
|
68
68
|
* @param date The date to focus.
|
package/date-picker/date-picker-cell/{date-picker-cell.token.d.ts → date-picker-cell-token.d.ts}
RENAMED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { InjectionToken } from '@angular/core';
|
|
9
|
-
import type { NgpDatePickerCell } from './date-picker-cell
|
|
9
|
+
import type { NgpDatePickerCell } from './date-picker-cell';
|
|
10
10
|
export declare const NgpDatePickerCellToken: InjectionToken<NgpDatePickerCell>;
|
|
11
11
|
/**
|
|
12
12
|
* Inject the DatePickerCell directive instance
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { InjectionToken } from '@angular/core';
|
|
9
|
-
import type { NgpDatePickerCellRender } from './date-picker-cell-render
|
|
9
|
+
import type { NgpDatePickerCellRender } from './date-picker-cell-render';
|
|
10
10
|
export declare const NgpDatePickerCellRenderToken: InjectionToken<NgpDatePickerCellRender<unknown>>;
|
|
11
11
|
/**
|
|
12
12
|
* Inject the DatePickerCell directive instance
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { InjectionToken } from '@angular/core';
|
|
9
|
-
import type { NgpDatePickerDateButton } from './date-picker-date-button
|
|
9
|
+
import type { NgpDatePickerDateButton } from './date-picker-date-button';
|
|
10
10
|
export declare const NgpDatePickerDateButtonToken: InjectionToken<NgpDatePickerDateButton<unknown>>;
|
|
11
11
|
/**
|
|
12
12
|
* Inject the DatePickerDateButton directive instance
|
package/date-picker/date-picker-grid/{date-picker-grid.token.d.ts → date-picker-grid-token.d.ts}
RENAMED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { InjectionToken } from '@angular/core';
|
|
9
|
-
import type { NgpDatePickerGrid } from './date-picker-grid
|
|
9
|
+
import type { NgpDatePickerGrid } from './date-picker-grid';
|
|
10
10
|
export declare const NgpDatePickerGridToken: InjectionToken<NgpDatePickerGrid<unknown>>;
|
|
11
11
|
/**
|
|
12
12
|
* Inject the DatePickerGrid directive instance
|
package/date-picker/date-picker-grid/{date-picker-grid.directive.d.ts → date-picker-grid.d.ts}
RENAMED
|
@@ -1,13 +1,9 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
2
|
export declare class NgpDatePickerGrid<T> {
|
|
3
|
-
/**
|
|
4
|
-
* Access the date picker.
|
|
5
|
-
*/
|
|
6
|
-
private readonly datePicker;
|
|
7
3
|
/**
|
|
8
4
|
* Access the date picker state.
|
|
9
5
|
*/
|
|
10
|
-
protected readonly state: import("dist/packages/ng-primitives/state").
|
|
6
|
+
protected readonly state: import("dist/packages/ng-primitives/state").InjectedState<import("ng-primitives/date-picker").NgpDatePicker<T>>;
|
|
11
7
|
/**
|
|
12
8
|
* Determine the id for the label.
|
|
13
9
|
*/
|
package/date-picker/date-picker-label/{date-picker-label.token.d.ts → date-picker-label-token.d.ts}
RENAMED
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { InjectionToken } from '@angular/core';
|
|
9
|
-
import type { NgpDatePickerLabel } from './date-picker-label
|
|
9
|
+
import type { NgpDatePickerLabel } from './date-picker-label';
|
|
10
10
|
export declare const NgpDatePickerLabelToken: InjectionToken<NgpDatePickerLabel<unknown>>;
|
|
11
11
|
/**
|
|
12
12
|
* Inject the DatePickerLabel directive instance
|
package/date-picker/date-picker-label/{date-picker-label.directive.d.ts → date-picker-label.d.ts}
RENAMED
|
@@ -3,7 +3,7 @@ export declare class NgpDatePickerLabel<T> {
|
|
|
3
3
|
/**
|
|
4
4
|
* Access the date picker.
|
|
5
5
|
*/
|
|
6
|
-
protected readonly state: import("dist/packages/ng-primitives/state").
|
|
6
|
+
protected readonly state: import("dist/packages/ng-primitives/state").InjectedState<import("ng-primitives/date-picker").NgpDatePicker<T>>;
|
|
7
7
|
/**
|
|
8
8
|
* Define a unique id for the label.
|
|
9
9
|
*/
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { InjectionToken } from '@angular/core';
|
|
9
|
-
import type { NgpDatePickerNextMonth } from './date-picker-next-month
|
|
9
|
+
import type { NgpDatePickerNextMonth } from './date-picker-next-month';
|
|
10
10
|
export declare const NgpDatePickerNextMonthToken: InjectionToken<NgpDatePickerNextMonth<unknown>>;
|
|
11
11
|
/**
|
|
12
12
|
* Inject the DatePickerNextMonth directive instance
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { InjectionToken } from '@angular/core';
|
|
9
|
-
import type { NgpDatePickerPreviousMonth } from './date-picker-previous-month
|
|
9
|
+
import type { NgpDatePickerPreviousMonth } from './date-picker-previous-month';
|
|
10
10
|
export declare const NgpDatePickerPreviousMonthToken: InjectionToken<NgpDatePickerPreviousMonth<unknown>>;
|
|
11
11
|
/**
|
|
12
12
|
* Inject the DatePickerPreviousMonth directive instance
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
* LICENSE file in the root directory of this source tree.
|
|
7
7
|
*/
|
|
8
8
|
import { InjectionToken } from '@angular/core';
|
|
9
|
-
import type { NgpDatePickerRowRender } from './date-picker-row-render
|
|
9
|
+
import type { NgpDatePickerRowRender } from './date-picker-row-render';
|
|
10
10
|
export declare const NgpDatePickerRowRenderToken: InjectionToken<NgpDatePickerRowRender<unknown>>;
|
|
11
11
|
/**
|
|
12
12
|
* Inject the DatePickerRowRender directive instance
|