ng-primitives 0.34.0 → 0.36.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 +1 -1
- package/a11y/visually-hidden/visually-hidden-state.d.ts +52 -0
- package/a11y/visually-hidden/visually-hidden.d.ts +1 -0
- package/accordion/accordion/accordion-state.d.ts +1 -1
- package/accordion/accordion-item/accordion-item-state.d.ts +1 -1
- package/avatar/avatar/avatar-state.d.ts +1 -1
- package/avatar/avatar-image/avatar-image.d.ts +36 -1
- package/button/button/button-state.d.ts +12 -2
- package/button/button/button.d.ts +1 -2
- package/button/index.d.ts +1 -1
- package/checkbox/checkbox/checkbox-state.d.ts +1 -1
- package/checkbox/checkbox/checkbox.d.ts +3 -4
- package/date-picker/date-picker/date-picker-state.d.ts +1 -1
- package/date-picker/date-picker-date-button/date-picker-date-button.d.ts +1 -2
- package/date-picker/date-picker-next-month/date-picker-next-month.d.ts +2 -2
- package/date-picker/date-picker-previous-month/date-picker-previous-month.d.ts +2 -2
- package/date-picker/index.d.ts +5 -9
- package/dialog/dialog/dialog-state.d.ts +1 -1
- package/dialog/index.d.ts +0 -4
- package/fesm2022/ng-primitives-a11y.mjs +20 -9
- package/fesm2022/ng-primitives-a11y.mjs.map +1 -1
- package/fesm2022/ng-primitives-avatar.mjs +3 -3
- package/fesm2022/ng-primitives-avatar.mjs.map +1 -1
- package/fesm2022/ng-primitives-button.mjs +18 -5
- package/fesm2022/ng-primitives-button.mjs.map +1 -1
- package/fesm2022/ng-primitives-checkbox.mjs +13 -8
- package/fesm2022/ng-primitives-checkbox.mjs.map +1 -1
- package/fesm2022/ng-primitives-date-picker.mjs +13 -65
- package/fesm2022/ng-primitives-date-picker.mjs.map +1 -1
- package/fesm2022/ng-primitives-dialog.mjs +5 -41
- package/fesm2022/ng-primitives-dialog.mjs.map +1 -1
- package/fesm2022/ng-primitives-file-upload.mjs +12 -5
- package/fesm2022/ng-primitives-file-upload.mjs.map +1 -1
- package/fesm2022/ng-primitives-focus-trap.mjs +3 -12
- package/fesm2022/ng-primitives-focus-trap.mjs.map +1 -1
- package/fesm2022/ng-primitives-form-field.mjs +103 -93
- package/fesm2022/ng-primitives-form-field.mjs.map +1 -1
- package/fesm2022/ng-primitives-input.mjs +34 -21
- package/fesm2022/ng-primitives-input.mjs.map +1 -1
- package/fesm2022/ng-primitives-interactions.mjs +14 -80
- package/fesm2022/ng-primitives-interactions.mjs.map +1 -1
- package/fesm2022/ng-primitives-internal.mjs +93 -65
- package/fesm2022/ng-primitives-internal.mjs.map +1 -1
- package/fesm2022/ng-primitives-listbox.mjs +19 -48
- package/fesm2022/ng-primitives-listbox.mjs.map +1 -1
- package/fesm2022/ng-primitives-menu.mjs +1 -5
- package/fesm2022/ng-primitives-menu.mjs.map +1 -1
- package/fesm2022/ng-primitives-pagination.mjs +53 -147
- package/fesm2022/ng-primitives-pagination.mjs.map +1 -1
- package/fesm2022/ng-primitives-popover.mjs +105 -96
- package/fesm2022/ng-primitives-popover.mjs.map +1 -1
- package/fesm2022/ng-primitives-progress.mjs +4 -18
- package/fesm2022/ng-primitives-progress.mjs.map +1 -1
- package/fesm2022/ng-primitives-radio.mjs +9 -5
- package/fesm2022/ng-primitives-radio.mjs.map +1 -1
- package/fesm2022/ng-primitives-roving-focus.mjs +2 -12
- package/fesm2022/ng-primitives-roving-focus.mjs.map +1 -1
- package/fesm2022/ng-primitives-select.mjs +35 -21
- package/fesm2022/ng-primitives-select.mjs.map +1 -1
- package/fesm2022/ng-primitives-separator.mjs +2 -11
- package/fesm2022/ng-primitives-separator.mjs.map +1 -1
- package/fesm2022/ng-primitives-slider.mjs +62 -120
- package/fesm2022/ng-primitives-slider.mjs.map +1 -1
- package/fesm2022/ng-primitives-state.mjs +10 -3
- package/fesm2022/ng-primitives-state.mjs.map +1 -1
- package/fesm2022/ng-primitives-switch.mjs +22 -35
- package/fesm2022/ng-primitives-switch.mjs.map +1 -1
- package/fesm2022/ng-primitives-tabs.mjs +17 -22
- package/fesm2022/ng-primitives-tabs.mjs.map +1 -1
- package/fesm2022/ng-primitives-textarea.mjs +34 -21
- package/fesm2022/ng-primitives-textarea.mjs.map +1 -1
- package/fesm2022/ng-primitives-toast.mjs +27 -16
- package/fesm2022/ng-primitives-toast.mjs.map +1 -1
- package/fesm2022/ng-primitives-toggle-group.mjs +26 -49
- package/fesm2022/ng-primitives-toggle-group.mjs.map +1 -1
- package/fesm2022/ng-primitives-toggle.mjs +4 -18
- package/fesm2022/ng-primitives-toggle.mjs.map +1 -1
- package/fesm2022/ng-primitives-toolbar.mjs +3 -18
- package/fesm2022/ng-primitives-toolbar.mjs.map +1 -1
- package/fesm2022/ng-primitives-tooltip.mjs +103 -82
- package/fesm2022/ng-primitives-tooltip.mjs.map +1 -1
- package/fesm2022/ng-primitives-utils.mjs +18 -0
- package/fesm2022/ng-primitives-utils.mjs.map +1 -1
- package/file-upload/file-dropzone/file-dropzone-state.d.ts +2 -2
- package/file-upload/file-dropzone/file-dropzone.d.ts +3 -2
- package/file-upload/file-upload/file-upload-state.d.ts +2 -2
- package/file-upload/file-upload/file-upload.d.ts +3 -2
- package/focus-trap/index.d.ts +0 -1
- package/form-field/description/description.d.ts +25 -1
- package/form-field/error/error.d.ts +25 -1
- package/form-field/form-control/form-control-state.d.ts +58 -0
- package/form-field/form-control/form-control.d.ts +36 -7
- package/form-field/form-field/form-field-state.d.ts +41 -0
- package/form-field/form-field/form-field.d.ts +4 -0
- package/form-field/index.d.ts +2 -5
- package/form-field/label/label.d.ts +26 -2
- package/input/index.d.ts +1 -1
- package/input/input/input-state.d.ts +30 -0
- package/input/input/input.d.ts +7 -5
- package/interactions/focus/focus.d.ts +0 -4
- package/interactions/focus-visible/focus-visible.d.ts +0 -4
- package/interactions/hover/hover.d.ts +0 -4
- package/interactions/index.d.ts +0 -5
- package/interactions/move/move.d.ts +0 -4
- package/interactions/press/press.d.ts +0 -4
- package/internal/exit-animation/exit-animation-manager.d.ts +17 -0
- package/internal/exit-animation/exit-animation.d.ts +4 -17
- package/internal/index.d.ts +3 -2
- package/internal/interactions/interactions.d.ts +5 -1
- package/internal/signals/sync-state.d.ts +2 -0
- package/listbox/index.d.ts +0 -4
- package/listbox/listbox/listbox-state.d.ts +2 -2
- package/package.json +9 -9
- package/pagination/index.d.ts +0 -6
- package/pagination/pagination/pagination-state.d.ts +2 -2
- package/pagination/pagination/pagination.d.ts +5 -5
- package/pagination/pagination-button/pagination-button.d.ts +4 -8
- package/pagination/pagination-first/pagination-first.d.ts +4 -8
- package/pagination/pagination-last/pagination-last.d.ts +3 -7
- package/pagination/pagination-next/pagination-next.d.ts +4 -8
- package/pagination/pagination-previous/pagination-previous.d.ts +4 -8
- package/popover/index.d.ts +1 -2
- package/popover/popover/popover-token.d.ts +8 -5
- package/popover/popover/popover.d.ts +3 -2
- package/popover/popover-trigger/popover-trigger-state.d.ts +5 -3
- package/popover/popover-trigger/popover-trigger.d.ts +27 -19
- package/progress/index.d.ts +0 -1
- package/progress/progress/progress-state.d.ts +1 -1
- package/radio/radio-group/radio-group-state.d.ts +1 -1
- package/radio/radio-group/radio-group.d.ts +2 -2
- package/radio/radio-item/radio-item-state.d.ts +1 -1
- package/roving-focus/index.d.ts +2 -3
- package/roving-focus/roving-focus-group/roving-focus-group-state.d.ts +1 -1
- package/schematics/ng-generate/schema.d.ts +4 -1
- package/schematics/ng-generate/schema.json +4 -1
- package/schematics/ng-generate/templates/toast/toast.__fileSuffix@dasherize__.ts.template +111 -0
- package/schematics/ng-generate/templates/toolbar/toolbar-button.__fileSuffix@dasherize__.ts.template +58 -0
- package/schematics/ng-generate/templates/toolbar/toolbar.__fileSuffix@dasherize__.ts.template +29 -0
- package/schematics/ng-generate/templates/tooltip/tooltip-trigger.__fileSuffix@dasherize__.ts.template +35 -0
- package/schematics/ng-generate/templates/tooltip/tooltip.__fileSuffix@dasherize__.ts.template +60 -0
- package/search/search/search-state.d.ts +1 -1
- package/select/index.d.ts +1 -1
- package/select/select/select-state.d.ts +20 -0
- package/select/select/select.d.ts +7 -4
- package/separator/index.d.ts +1 -2
- package/slider/index.d.ts +0 -4
- package/slider/slider/slider-state.d.ts +1 -1
- package/slider/slider/slider.d.ts +2 -2
- package/slider/slider-range/slider-range.d.ts +1 -1
- package/slider/slider-thumb/slider-thumb.d.ts +3 -7
- package/slider/slider-track/slider-track.d.ts +1 -5
- package/state/index.d.ts +7 -1
- package/switch/index.d.ts +0 -1
- package/switch/switch/switch-state.d.ts +1 -1
- package/switch/switch/switch.d.ts +3 -4
- package/switch/switch-thumb/switch-thumb.d.ts +2 -2
- package/tabs/index.d.ts +1 -2
- package/tabs/tab-button/tab-button.d.ts +2 -2
- package/tabs/tabset/tabset-state.d.ts +1 -1
- package/textarea/index.d.ts +1 -1
- package/textarea/textarea/textarea-state.d.ts +20 -0
- package/textarea/textarea/textarea.d.ts +7 -4
- package/toast/index.d.ts +0 -1
- package/toast/toast/toast.d.ts +21 -1
- package/toggle/index.d.ts +0 -1
- package/toggle/toggle/toggle-state.d.ts +1 -1
- package/toggle-group/index.d.ts +0 -2
- package/toggle-group/toggle-group/toggle-group-state.d.ts +1 -1
- package/toggle-group/toggle-group-item/toggle-group-item-state.d.ts +15 -2
- package/toggle-group/toggle-group-item/toggle-group-item.d.ts +1 -1
- package/toolbar/index.d.ts +0 -1
- package/tooltip/index.d.ts +1 -2
- package/tooltip/tooltip/tooltip-token.d.ts +8 -5
- package/tooltip/tooltip/tooltip.d.ts +2 -1
- package/tooltip/tooltip-trigger/tooltip-trigger-state.d.ts +3 -3
- package/tooltip/tooltip-trigger/tooltip-trigger.d.ts +43 -22
- package/a11y/visually-hidden/visually-hidden-token.d.ts +0 -7
- package/date-picker/date-picker-cell/date-picker-cell-token.d.ts +0 -7
- package/date-picker/date-picker-grid/date-picker-grid-token.d.ts +0 -7
- package/date-picker/date-picker-next-month/date-picker-next-month-token.d.ts +0 -7
- package/date-picker/date-picker-previous-month/date-picker-previous-month-token.d.ts +0 -7
- package/dialog/dialog-description/dialog-description-token.d.ts +0 -7
- package/dialog/dialog-overlay/dialog-overlay-token.d.ts +0 -7
- package/dialog/dialog-title/dialog-title-token.d.ts +0 -7
- package/dialog/dialog-trigger/dialog-trigger-token.d.ts +0 -7
- package/focus-trap/focus-trap/focus-trap-token.d.ts +0 -7
- package/form-field/description/description-token.d.ts +0 -7
- package/form-field/error/error-token.d.ts +0 -7
- package/form-field/form-control/form-control-token.d.ts +0 -7
- package/form-field/form-field/form-field-token.d.ts +0 -8
- package/form-field/label/label-token.d.ts +0 -7
- package/input/input/input-token.d.ts +0 -7
- package/interactions/focus/focus-token.d.ts +0 -7
- package/interactions/focus-visible/focus-visible-token.d.ts +0 -7
- package/interactions/hover/hover-token.d.ts +0 -8
- package/interactions/move/move-token.d.ts +0 -7
- package/interactions/press/press-token.d.ts +0 -7
- package/internal/disabled/disabled.d.ts +0 -14
- package/listbox/listbox/listbox-token.d.ts +0 -7
- package/listbox/listbox-option/listbox-option-token.d.ts +0 -7
- package/listbox/listbox-section/listbox-section-token.d.ts +0 -7
- package/listbox/listbox-trigger/listbox-trigger-token.d.ts +0 -7
- package/pagination/pagination/pagination-token.d.ts +0 -8
- package/pagination/pagination-button/pagination-button-token.d.ts +0 -7
- package/pagination/pagination-first/pagination-first-token.d.ts +0 -7
- package/pagination/pagination-last/pagination-last-token.d.ts +0 -7
- package/pagination/pagination-next/pagination-next-token.d.ts +0 -7
- package/pagination/pagination-previous/pagination-previous-token.d.ts +0 -7
- package/popover/popover-trigger/popover-trigger-token.d.ts +0 -12
- package/progress/progress/progress-token.d.ts +0 -11
- package/roving-focus/roving-focus-item/roving-focus-item-token.d.ts +0 -8
- package/select/select/select-token.d.ts +0 -7
- package/separator/separator/separator-token.d.ts +0 -7
- package/slider/slider/slider-token.d.ts +0 -8
- package/slider/slider-range/slider-range-token.d.ts +0 -8
- package/slider/slider-thumb/slider-thumb-token.d.ts +0 -8
- package/slider/slider-track/slider-track-token.d.ts +0 -8
- package/switch/switch/switch-token.d.ts +0 -11
- package/tabs/tabset/tabset-token.d.ts +0 -11
- package/textarea/textarea/textarea-token.d.ts +0 -7
- package/toast/toast/toast-token.d.ts +0 -7
- package/toggle/toggle/toggle-token.d.ts +0 -11
- package/toggle-group/toggle-group/toggle-group-token.d.ts +0 -11
- package/toggle-group/toggle-group-item/toggle-group-item-token.d.ts +0 -11
- package/toolbar/toolbar/toolbar-token.d.ts +0 -11
- package/tooltip/tooltip-trigger/tooltip-trigger-token.d.ts +0 -15
package/schematics/ng-generate/templates/toolbar/toolbar-button.__fileSuffix@dasherize__.ts.template
ADDED
|
@@ -0,0 +1,58 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { NgpButton } from 'ng-primitives/button';
|
|
3
|
+
import { NgpRovingFocusItem } from 'ng-primitives/roving-focus';
|
|
4
|
+
|
|
5
|
+
@Component({
|
|
6
|
+
selector: 'button[<%= prefix %>-toolbar-button]',
|
|
7
|
+
hostDirectives: [
|
|
8
|
+
{ directive: NgpButton, inputs: ['disabled'] },
|
|
9
|
+
{
|
|
10
|
+
directive: NgpRovingFocusItem,
|
|
11
|
+
inputs: ['ngpRovingFocusItemDisabled:disabled'],
|
|
12
|
+
},
|
|
13
|
+
],
|
|
14
|
+
host: {
|
|
15
|
+
type: 'button',
|
|
16
|
+
},
|
|
17
|
+
template: `
|
|
18
|
+
<ng-content />
|
|
19
|
+
`,
|
|
20
|
+
styles: `
|
|
21
|
+
/* These styles rely on CSS variables that can be imported from ng-primitives/example-theme/index.css in your global styles */
|
|
22
|
+
|
|
23
|
+
:host {
|
|
24
|
+
display: flex;
|
|
25
|
+
width: 2rem;
|
|
26
|
+
height: 2rem;
|
|
27
|
+
align-items: center;
|
|
28
|
+
justify-content: center;
|
|
29
|
+
border-radius: 0.25rem;
|
|
30
|
+
border: 1px solid transparent;
|
|
31
|
+
background: transparent;
|
|
32
|
+
outline: none;
|
|
33
|
+
transition: background-color 150ms cubic-bezier(0.4, 0, 0.2, 1);
|
|
34
|
+
box-sizing: border-box;
|
|
35
|
+
color: var(--ngp-text-primary);
|
|
36
|
+
cursor: pointer;
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
:host[data-hover] {
|
|
40
|
+
background-color: var(--ngp-background-hover);
|
|
41
|
+
border-color: var(--ngp-border);
|
|
42
|
+
}
|
|
43
|
+
|
|
44
|
+
:host[data-focus-visible] {
|
|
45
|
+
outline: 2px solid var(--ngp-focus-ring);
|
|
46
|
+
}
|
|
47
|
+
|
|
48
|
+
:host[data-press] {
|
|
49
|
+
background-color: var(--ngp-background-active);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
:host[data-selected] {
|
|
53
|
+
background-color: var(--ngp-background-inverse);
|
|
54
|
+
color: var(--ngp-text-inverse);
|
|
55
|
+
}
|
|
56
|
+
`,
|
|
57
|
+
})
|
|
58
|
+
export class ToolbarButton<%= componentSuffix %> {}
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { NgpToolbar } from 'ng-primitives/toolbar';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: '<%= prefix %>-toolbar',
|
|
6
|
+
hostDirectives: [{ directive: NgpToolbar, inputs: ['ngpToolbarOrientation:orientation'] }],
|
|
7
|
+
template: `
|
|
8
|
+
<ng-content />
|
|
9
|
+
`,
|
|
10
|
+
styles: `
|
|
11
|
+
/* These styles rely on CSS variables that can be imported from ng-primitives/example-theme/index.css in your global styles */
|
|
12
|
+
|
|
13
|
+
:host {
|
|
14
|
+
display: flex;
|
|
15
|
+
column-gap: 0.25rem;
|
|
16
|
+
align-items: center;
|
|
17
|
+
border-radius: 0.375rem;
|
|
18
|
+
background-color: var(--ngp-background);
|
|
19
|
+
box-shadow: var(--ngp-button-shadow);
|
|
20
|
+
padding: 0.25rem;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
:host[data-orientation='vertical'] {
|
|
24
|
+
flex-direction: column;
|
|
25
|
+
row-gap: 0.25rem;
|
|
26
|
+
}
|
|
27
|
+
`,
|
|
28
|
+
})
|
|
29
|
+
export class Toolbar<%= componentSuffix %> {}
|
|
@@ -0,0 +1,35 @@
|
|
|
1
|
+
import { Directive, input } from '@angular/core';
|
|
2
|
+
import { injectTooltipTriggerState, NgpTooltipTrigger } from 'ng-primitives/tooltip';
|
|
3
|
+
import { Tooltip } from './tooltip';
|
|
4
|
+
|
|
5
|
+
@Directive({
|
|
6
|
+
selector: '[appTooltipTrigger]',
|
|
7
|
+
hostDirectives: [
|
|
8
|
+
{
|
|
9
|
+
directive: NgpTooltipTrigger,
|
|
10
|
+
inputs: [
|
|
11
|
+
'ngpTooltipTriggerPlacement:appTooltipTriggerPlacement',
|
|
12
|
+
'ngpTooltipTriggerDisabled:appTooltipTriggerDisabled',
|
|
13
|
+
'ngpTooltipTriggerOffset:appTooltipTriggerOffset',
|
|
14
|
+
'ngpTooltipTriggerShowDelay:appTooltipTriggerShowDelay',
|
|
15
|
+
'ngpTooltipTriggerHideDelay:appTooltipTriggerHideDelay',
|
|
16
|
+
'ngpTooltipTriggerFlip:appTooltipTriggerFlip',
|
|
17
|
+
'ngpTooltipTriggerContainer:appTooltipTriggerContainer',
|
|
18
|
+
'ngpTooltipTriggerContext:appTooltipTrigger',
|
|
19
|
+
],
|
|
20
|
+
},
|
|
21
|
+
],
|
|
22
|
+
})
|
|
23
|
+
export class TooltipTrigger {
|
|
24
|
+
/** Access the tooltip trigger */
|
|
25
|
+
private readonly tooltipTrigger = injectTooltipTriggerState();
|
|
26
|
+
|
|
27
|
+
/** Define the content of the tooltip */
|
|
28
|
+
readonly content = input.required<string>({
|
|
29
|
+
alias: 'appTooltipTrigger',
|
|
30
|
+
});
|
|
31
|
+
|
|
32
|
+
constructor() {
|
|
33
|
+
this.tooltipTrigger().tooltip.set(Tooltip);
|
|
34
|
+
}
|
|
35
|
+
}
|
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
import { Component } from '@angular/core';
|
|
2
|
+
import { injectTooltipContext, NgpTooltip } from 'ng-primitives/tooltip';
|
|
3
|
+
|
|
4
|
+
@Component({
|
|
5
|
+
selector: '<%= prefix %>-tooltip',
|
|
6
|
+
hostDirectives: [NgpTooltip],
|
|
7
|
+
template: `
|
|
8
|
+
{{ content }}
|
|
9
|
+
`,
|
|
10
|
+
styles: `
|
|
11
|
+
/* These styles rely on CSS variables that can be imported from ng-primitives/example-theme/index.css in your global styles */
|
|
12
|
+
|
|
13
|
+
:host {
|
|
14
|
+
position: absolute;
|
|
15
|
+
max-width: 16rem;
|
|
16
|
+
border-radius: 0.5rem;
|
|
17
|
+
background-color: var(--ngp-background-inverse);
|
|
18
|
+
padding: 0.5rem 0.75rem;
|
|
19
|
+
border: none;
|
|
20
|
+
font-size: 0.75rem;
|
|
21
|
+
font-weight: 500;
|
|
22
|
+
color: var(--ngp-text-inverse);
|
|
23
|
+
transform-origin: var(--ngp-tooltip-transform-origin);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
:host[data-enter] {
|
|
27
|
+
animation: tooltip-show 200ms ease-in-out;
|
|
28
|
+
}
|
|
29
|
+
|
|
30
|
+
:host[data-exit] {
|
|
31
|
+
animation: tooltip-hide 200ms ease-in-out;
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
@keyframes tooltip-show {
|
|
35
|
+
0% {
|
|
36
|
+
opacity: 0;
|
|
37
|
+
transform: scale(0.9);
|
|
38
|
+
}
|
|
39
|
+
100% {
|
|
40
|
+
opacity: 1;
|
|
41
|
+
transform: scale(1);
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
@keyframes tooltip-hide {
|
|
46
|
+
0% {
|
|
47
|
+
opacity: 1;
|
|
48
|
+
transform: scale(1);
|
|
49
|
+
}
|
|
50
|
+
100% {
|
|
51
|
+
opacity: 0;
|
|
52
|
+
transform: scale(0.9);
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
`,
|
|
56
|
+
})
|
|
57
|
+
export class Tooltip<%= componentSuffix %> {
|
|
58
|
+
/** Access the tooltip context where the content is stored. */
|
|
59
|
+
protected readonly content = injectTooltipContext<string>();
|
|
60
|
+
}
|
|
@@ -6,7 +6,7 @@ export declare const NgpSearchStateToken: import("@angular/core").InjectionToken
|
|
|
6
6
|
/**
|
|
7
7
|
* Provides the Search state.
|
|
8
8
|
*/
|
|
9
|
-
export declare const provideSearchState: () => import("@angular/core").FactoryProvider;
|
|
9
|
+
export declare const provideSearchState: (options?: import("ng-primitives/state").CreateStateProviderOptions) => import("@angular/core").FactoryProvider;
|
|
10
10
|
/**
|
|
11
11
|
* Injects the Search state.
|
|
12
12
|
*/
|
package/select/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { NgpSelect } from './select/select';
|
|
2
|
-
export {
|
|
2
|
+
export { injectSelectState, provideSelectState } from './select/select-state';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { NgpSelect } from './select';
|
|
2
|
+
/**
|
|
3
|
+
* The state token for the Select primitive.
|
|
4
|
+
*/
|
|
5
|
+
export declare const NgpSelectStateToken: import("@angular/core").InjectionToken<NgpSelect>;
|
|
6
|
+
/**
|
|
7
|
+
* Provides the Select state.
|
|
8
|
+
*/
|
|
9
|
+
export declare const provideSelectState: (options?: import("ng-primitives/state").CreateStateProviderOptions) => import("@angular/core").FactoryProvider;
|
|
10
|
+
/**
|
|
11
|
+
* Injects the Select state.
|
|
12
|
+
*/
|
|
13
|
+
export declare const injectSelectState: <U = {
|
|
14
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, import("@angular/cdk/coercion").BooleanInput>;
|
|
15
|
+
readonly state: import("ng-primitives/state").CreatedState<NgpSelect>;
|
|
16
|
+
}>(injectOptions?: import("@angular/core").InjectOptions) => import("@angular/core").Signal<import("ng-primitives/state").State<U>>;
|
|
17
|
+
/**
|
|
18
|
+
* The Select state registration function.
|
|
19
|
+
*/
|
|
20
|
+
export declare const selectState: <U>(state: U) => import("ng-primitives/state").CreatedState<U>;
|
|
@@ -1,16 +1,19 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { NgpCanDisable } from 'ng-primitives/internal';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
import * as i1 from "ng-primitives/form-field";
|
|
5
|
-
import * as i2 from "ng-primitives/interactions";
|
|
6
4
|
/**
|
|
7
5
|
* Apply the `ngpSelect` directive to a select element that you want to enhance.
|
|
8
6
|
*/
|
|
9
|
-
export declare class NgpSelect
|
|
7
|
+
export declare class NgpSelect {
|
|
10
8
|
/**
|
|
11
9
|
* Whether the select is disabled.
|
|
12
10
|
*/
|
|
13
11
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
12
|
+
/**
|
|
13
|
+
* The select state.
|
|
14
|
+
*/
|
|
15
|
+
private readonly state;
|
|
16
|
+
constructor();
|
|
14
17
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpSelect, never>;
|
|
15
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpSelect, "select[ngpSelect]", ["ngpSelect"], { "disabled": { "alias": "ngpSelectDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.NgpFormControl; inputs: {}; outputs: {}; }
|
|
18
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpSelect, "select[ngpSelect]", ["ngpSelect"], { "disabled": { "alias": "ngpSelectDisabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.NgpFormControl; inputs: {}; outputs: {}; }]>;
|
|
16
19
|
}
|
package/separator/index.d.ts
CHANGED
|
@@ -1,3 +1,2 @@
|
|
|
1
|
-
export { NgpSeparator } from './separator/separator';
|
|
2
|
-
export { NgpSeparatorToken, injectSeparator } from './separator/separator-token';
|
|
3
1
|
export { NgpSeparatorConfig, provideSeparatorConfig } from './config/separator-config';
|
|
2
|
+
export { NgpSeparator } from './separator/separator';
|
package/slider/index.d.ts
CHANGED
|
@@ -1,9 +1,5 @@
|
|
|
1
1
|
export { NgpSliderRange } from './slider-range/slider-range';
|
|
2
|
-
export { NgpSliderRangeToken, injectSliderRange } from './slider-range/slider-range-token';
|
|
3
2
|
export { NgpSliderThumb } from './slider-thumb/slider-thumb';
|
|
4
|
-
export { NgpSliderThumbToken, injectSliderThumb } from './slider-thumb/slider-thumb-token';
|
|
5
3
|
export { NgpSliderTrack } from './slider-track/slider-track';
|
|
6
|
-
export { NgpSliderTrackToken, injectSliderTrack } from './slider-track/slider-track-token';
|
|
7
4
|
export { NgpSlider } from './slider/slider';
|
|
8
5
|
export { injectSliderState, provideSliderState } from './slider/slider-state';
|
|
9
|
-
export { NgpSliderToken, injectSlider } from './slider/slider-token';
|
|
@@ -6,7 +6,7 @@ export declare const NgpSliderStateToken: import("@angular/core").InjectionToken
|
|
|
6
6
|
/**
|
|
7
7
|
* Provides the Slider state.
|
|
8
8
|
*/
|
|
9
|
-
export declare const provideSliderState: () => import("@angular/core").FactoryProvider;
|
|
9
|
+
export declare const provideSliderState: (options?: import("ng-primitives/state").CreateStateProviderOptions) => import("@angular/core").FactoryProvider;
|
|
10
10
|
/**
|
|
11
11
|
* Injects the Slider state.
|
|
12
12
|
*/
|
|
@@ -1,13 +1,12 @@
|
|
|
1
1
|
import { BooleanInput, NumberInput } from '@angular/cdk/coercion';
|
|
2
2
|
import { NgpOrientation } from 'ng-primitives/common';
|
|
3
|
-
import { NgpCanDisable } from 'ng-primitives/internal';
|
|
4
3
|
import type { NgpSliderTrack } from '../slider-track/slider-track';
|
|
5
4
|
import * as i0 from "@angular/core";
|
|
6
5
|
import * as i1 from "ng-primitives/form-field";
|
|
7
6
|
/**
|
|
8
7
|
* Apply the `ngpSlider` directive to an element that represents the slider and contains the track, range, and thumb.
|
|
9
8
|
*/
|
|
10
|
-
export declare class NgpSlider
|
|
9
|
+
export declare class NgpSlider {
|
|
11
10
|
/**
|
|
12
11
|
* The value of the slider.
|
|
13
12
|
*/
|
|
@@ -50,6 +49,7 @@ export declare class NgpSlider implements NgpCanDisable {
|
|
|
50
49
|
* @internal
|
|
51
50
|
*/
|
|
52
51
|
protected readonly state: import("ng-primitives/state").CreatedState<NgpSlider>;
|
|
52
|
+
constructor();
|
|
53
53
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpSlider, never>;
|
|
54
54
|
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpSlider, "[ngpSlider]", ["ngpSlider"], { "value": { "alias": "ngpSliderValue"; "required": false; "isSignal": true; }; "min": { "alias": "ngpSliderMin"; "required": false; "isSignal": true; }; "max": { "alias": "ngpSliderMax"; "required": false; "isSignal": true; }; "step": { "alias": "ngpSliderStep"; "required": false; "isSignal": true; }; "orientation": { "alias": "ngpSliderOrientation"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpSliderDisabled"; "required": false; "isSignal": true; }; }, { "valueChange": "ngpSliderValueChange"; }, never, never, true, [{ directive: typeof i1.NgpFormControl; inputs: {}; outputs: {}; }]>;
|
|
55
55
|
}
|
|
@@ -6,7 +6,7 @@ export declare class NgpSliderRange {
|
|
|
6
6
|
/**
|
|
7
7
|
* Access the slider state.
|
|
8
8
|
*/
|
|
9
|
-
protected readonly
|
|
9
|
+
protected readonly sliderState: import("@angular/core").Signal<import("ng-primitives/state").State<{
|
|
10
10
|
readonly value: import("@angular/core").InputSignalWithTransform<number, import("@angular/cdk/coercion").NumberInput>;
|
|
11
11
|
readonly valueChange: import("@angular/core").OutputEmitterRef<number>;
|
|
12
12
|
readonly min: import("@angular/core").InputSignalWithTransform<number, import("@angular/cdk/coercion").NumberInput>;
|
|
@@ -1,17 +1,12 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "ng-primitives/interactions";
|
|
3
2
|
/**
|
|
4
3
|
* Apply the `ngpSliderThumb` directive to an element that represents the thumb of the slider.
|
|
5
4
|
*/
|
|
6
5
|
export declare class NgpSliderThumb {
|
|
7
|
-
/**
|
|
8
|
-
* Access the slider.
|
|
9
|
-
*/
|
|
10
|
-
protected readonly slider: import("ng-primitives/slider").NgpSlider;
|
|
11
6
|
/**
|
|
12
7
|
* Access the slider state.
|
|
13
8
|
*/
|
|
14
|
-
protected readonly
|
|
9
|
+
protected readonly sliderState: import("@angular/core").Signal<import("ng-primitives/state").State<{
|
|
15
10
|
readonly value: import("@angular/core").InputSignalWithTransform<number, import("@angular/cdk/coercion").NumberInput>;
|
|
16
11
|
readonly valueChange: import("@angular/core").OutputEmitterRef<number>;
|
|
17
12
|
readonly min: import("@angular/core").InputSignalWithTransform<number, import("@angular/cdk/coercion").NumberInput>;
|
|
@@ -27,6 +22,7 @@ export declare class NgpSliderThumb {
|
|
|
27
22
|
* Store the dragging state.
|
|
28
23
|
*/
|
|
29
24
|
protected dragging: boolean;
|
|
25
|
+
constructor();
|
|
30
26
|
protected handlePointerDown(event: PointerEvent): void;
|
|
31
27
|
protected handlePointerUp(): void;
|
|
32
28
|
protected handlePointerMove(event: PointerEvent): void;
|
|
@@ -36,5 +32,5 @@ export declare class NgpSliderThumb {
|
|
|
36
32
|
*/
|
|
37
33
|
protected handleKeydown(event: KeyboardEvent): void;
|
|
38
34
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpSliderThumb, never>;
|
|
39
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpSliderThumb, "[ngpSliderThumb]", ["ngpSliderThumb"], {}, {}, never, never, true,
|
|
35
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpSliderThumb, "[ngpSliderThumb]", ["ngpSliderThumb"], {}, {}, never, never, true, never>;
|
|
40
36
|
}
|
|
@@ -3,14 +3,10 @@ import * as i0 from "@angular/core";
|
|
|
3
3
|
* Apply the `ngpSliderTrack` directive to an element that represents the track of the slider.
|
|
4
4
|
*/
|
|
5
5
|
export declare class NgpSliderTrack {
|
|
6
|
-
/**
|
|
7
|
-
* Access the slider.
|
|
8
|
-
*/
|
|
9
|
-
protected readonly slider: import("ng-primitives/slider").NgpSlider;
|
|
10
6
|
/**
|
|
11
7
|
* Access the slider state.
|
|
12
8
|
*/
|
|
13
|
-
protected readonly
|
|
9
|
+
protected readonly sliderState: import("@angular/core").Signal<import("ng-primitives/state").State<{
|
|
14
10
|
readonly value: import("@angular/core").InputSignalWithTransform<number, import("@angular/cdk/coercion").NumberInput>;
|
|
15
11
|
readonly valueChange: import("@angular/core").OutputEmitterRef<number>;
|
|
16
12
|
readonly min: import("@angular/core").InputSignalWithTransform<number, import("@angular/cdk/coercion").NumberInput>;
|
package/state/index.d.ts
CHANGED
|
@@ -19,13 +19,19 @@ export type InjectedState<T> = Signal<State<T>>;
|
|
|
19
19
|
* @param description The description of the token
|
|
20
20
|
*/
|
|
21
21
|
export declare function createStateToken<T>(description: string): InjectionToken<T>;
|
|
22
|
+
export interface CreateStateProviderOptions {
|
|
23
|
+
/**
|
|
24
|
+
* Whether we should check for the state in the parent injector.
|
|
25
|
+
*/
|
|
26
|
+
inherit?: boolean;
|
|
27
|
+
}
|
|
22
28
|
/**
|
|
23
29
|
* Create a new provider for the state. It first tries to inject the state from the parent injector,
|
|
24
30
|
* as this allows for the state to be hoisted to a higher level in the component tree. This can
|
|
25
31
|
* be useful to avoid issues where the injector can't be shared in some cases when ng-content is used.
|
|
26
32
|
* @param token The token for the state
|
|
27
33
|
*/
|
|
28
|
-
export declare function createStateProvider<T>(token: ProviderToken<T>): () => FactoryProvider;
|
|
34
|
+
export declare function createStateProvider<T>(token: ProviderToken<T>): (options?: CreateStateProviderOptions) => FactoryProvider;
|
|
29
35
|
type CreateStateInjectorOptions = {
|
|
30
36
|
/**
|
|
31
37
|
* Whether the state may not be immediately available. This can happen when the child is instantiated before the parent.
|
package/switch/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const NgpSwitchStateToken: import("@angular/core").InjectionToken
|
|
|
6
6
|
/**
|
|
7
7
|
* Provides the Switch state.
|
|
8
8
|
*/
|
|
9
|
-
export declare const provideSwitchState: () => import("@angular/core").FactoryProvider;
|
|
9
|
+
export declare const provideSwitchState: (options?: import("ng-primitives/state").CreateStateProviderOptions) => import("@angular/core").FactoryProvider;
|
|
10
10
|
/**
|
|
11
11
|
* Injects the Switch state.
|
|
12
12
|
*/
|
|
@@ -1,12 +1,10 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { NgpCanDisable } from 'ng-primitives/internal';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
import * as i1 from "ng-primitives/form-field";
|
|
5
|
-
import * as i2 from "ng-primitives/interactions";
|
|
6
4
|
/**
|
|
7
5
|
* Apply the `ngpSwitch` directive to an element to manage the checked state.
|
|
8
6
|
*/
|
|
9
|
-
export declare class NgpSwitch
|
|
7
|
+
export declare class NgpSwitch {
|
|
10
8
|
/**
|
|
11
9
|
* Access the element ref.
|
|
12
10
|
*/
|
|
@@ -34,6 +32,7 @@ export declare class NgpSwitch implements NgpCanDisable {
|
|
|
34
32
|
* @internal
|
|
35
33
|
*/
|
|
36
34
|
readonly state: import("ng-primitives/state").CreatedState<NgpSwitch>;
|
|
35
|
+
constructor();
|
|
37
36
|
/**
|
|
38
37
|
* Toggle the checked state.
|
|
39
38
|
*/
|
|
@@ -43,5 +42,5 @@ export declare class NgpSwitch implements NgpCanDisable {
|
|
|
43
42
|
*/
|
|
44
43
|
protected onKeyDown(): void;
|
|
45
44
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpSwitch, never>;
|
|
46
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpSwitch, "[ngpSwitch]", ["ngpSwitch"], { "checked": { "alias": "ngpSwitchChecked"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpSwitchDisabled"; "required": false; "isSignal": true; }; }, { "checkedChange": "ngpSwitchCheckedChange"; }, never, never, true, [{ directive: typeof i1.NgpFormControl; inputs: {}; outputs: {}; }
|
|
45
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpSwitch, "[ngpSwitch]", ["ngpSwitch"], { "checked": { "alias": "ngpSwitchChecked"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpSwitchDisabled"; "required": false; "isSignal": true; }; }, { "checkedChange": "ngpSwitchCheckedChange"; }, never, never, true, [{ directive: typeof i1.NgpFormControl; inputs: {}; outputs: {}; }]>;
|
|
47
46
|
}
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as i0 from "@angular/core";
|
|
2
|
-
import * as i1 from "ng-primitives/interactions";
|
|
3
2
|
/**
|
|
4
3
|
* Apply the `ngpSwitchThumb` directive to an element within a switch to represent the thumb.
|
|
5
4
|
*/
|
|
@@ -17,6 +16,7 @@ export declare class NgpSwitchThumb {
|
|
|
17
16
|
toggle: () => void;
|
|
18
17
|
onKeyDown: () => void;
|
|
19
18
|
}>>;
|
|
19
|
+
constructor();
|
|
20
20
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpSwitchThumb, never>;
|
|
21
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpSwitchThumb, "[ngpSwitchThumb]", never, {}, {}, never, never, true,
|
|
21
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpSwitchThumb, "[ngpSwitchThumb]", never, {}, {}, never, never, true, never>;
|
|
22
22
|
}
|
package/tabs/index.d.ts
CHANGED
|
@@ -2,7 +2,6 @@ export { NgpTabsConfig, provideTabsConfig } from './config/tabs-config';
|
|
|
2
2
|
export { NgpTabButton } from './tab-button/tab-button';
|
|
3
3
|
export { NgpTabList } from './tab-list/tab-list';
|
|
4
4
|
export { NgpTabPanel } from './tab-panel/tab-panel';
|
|
5
|
-
export {
|
|
5
|
+
export { injectTabPanel, NgpTabPanelToken } from './tab-panel/tab-panel-token';
|
|
6
6
|
export { NgpTabset } from './tabset/tabset';
|
|
7
7
|
export { injectTabsetState, provideTabsetState } from './tabset/tabset-state';
|
|
8
|
-
export { NgpTabsetToken, injectTabset } from './tabset/tabset-token';
|
|
@@ -3,7 +3,6 @@ import { OnInit } from '@angular/core';
|
|
|
3
3
|
import { NgpRovingFocusItem } from 'ng-primitives/roving-focus';
|
|
4
4
|
import * as i0 from "@angular/core";
|
|
5
5
|
import * as i1 from "ng-primitives/roving-focus";
|
|
6
|
-
import * as i2 from "ng-primitives/interactions";
|
|
7
6
|
/**
|
|
8
7
|
* Apply the `ngpTabButton` directive to an element within a tab list to represent a tab button. This directive should be applied to a button element.
|
|
9
8
|
*/
|
|
@@ -73,6 +72,7 @@ export declare class NgpTabButton implements OnInit {
|
|
|
73
72
|
* Whether the tab is active
|
|
74
73
|
*/
|
|
75
74
|
readonly active: import("@angular/core").Signal<boolean>;
|
|
75
|
+
constructor();
|
|
76
76
|
ngOnInit(): void;
|
|
77
77
|
/**
|
|
78
78
|
* Select the tab this trigger controls
|
|
@@ -83,5 +83,5 @@ export declare class NgpTabButton implements OnInit {
|
|
|
83
83
|
*/
|
|
84
84
|
protected activateOnFocus(): void;
|
|
85
85
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpTabButton, never>;
|
|
86
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpTabButton, "[ngpTabButton]", ["ngpTabButton"], { "value": { "alias": "ngpTabButtonValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpTabButtonDisabled"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.NgpRovingFocusItem; inputs: {}; outputs: {}; }
|
|
86
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpTabButton, "[ngpTabButton]", ["ngpTabButton"], { "value": { "alias": "ngpTabButtonValue"; "required": false; "isSignal": true; }; "disabled": { "alias": "ngpTabButtonDisabled"; "required": false; "isSignal": true; }; "id": { "alias": "id"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.NgpRovingFocusItem; inputs: {}; outputs: {}; }]>;
|
|
87
87
|
}
|
|
@@ -6,7 +6,7 @@ export declare const NgpTabsetStateToken: import("@angular/core").InjectionToken
|
|
|
6
6
|
/**
|
|
7
7
|
* Provides the Tabset state.
|
|
8
8
|
*/
|
|
9
|
-
export declare const provideTabsetState: () => import("@angular/core").FactoryProvider;
|
|
9
|
+
export declare const provideTabsetState: (options?: import("ng-primitives/state").CreateStateProviderOptions) => import("@angular/core").FactoryProvider;
|
|
10
10
|
/**
|
|
11
11
|
* Injects the Tabset state.
|
|
12
12
|
*/
|
package/textarea/index.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export { NgpTextarea } from './textarea/textarea';
|
|
2
|
-
export {
|
|
2
|
+
export { injectTextareaState, provideTextareaState } from './textarea/textarea-state';
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import type { NgpTextarea } from './textarea';
|
|
2
|
+
/**
|
|
3
|
+
* The state token for the Textarea primitive.
|
|
4
|
+
*/
|
|
5
|
+
export declare const NgpTextareaStateToken: import("@angular/core").InjectionToken<NgpTextarea>;
|
|
6
|
+
/**
|
|
7
|
+
* Provides the Textarea state.
|
|
8
|
+
*/
|
|
9
|
+
export declare const provideTextareaState: (options?: import("ng-primitives/state").CreateStateProviderOptions) => import("@angular/core").FactoryProvider;
|
|
10
|
+
/**
|
|
11
|
+
* Injects the Textarea state.
|
|
12
|
+
*/
|
|
13
|
+
export declare const injectTextareaState: <U = {
|
|
14
|
+
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, import("@angular/cdk/coercion").BooleanInput>;
|
|
15
|
+
readonly state: import("ng-primitives/state").CreatedState<NgpTextarea>;
|
|
16
|
+
}>(injectOptions?: import("@angular/core").InjectOptions) => import("@angular/core").Signal<import("ng-primitives/state").State<U>>;
|
|
17
|
+
/**
|
|
18
|
+
* The Textarea state registration function.
|
|
19
|
+
*/
|
|
20
|
+
export declare const textareaState: <U>(state: U) => import("ng-primitives/state").CreatedState<U>;
|
|
@@ -1,13 +1,16 @@
|
|
|
1
1
|
import { BooleanInput } from '@angular/cdk/coercion';
|
|
2
|
-
import { NgpCanDisable } from 'ng-primitives/internal';
|
|
3
2
|
import * as i0 from "@angular/core";
|
|
4
3
|
import * as i1 from "ng-primitives/form-field";
|
|
5
|
-
|
|
6
|
-
export declare class NgpTextarea implements NgpCanDisable {
|
|
4
|
+
export declare class NgpTextarea {
|
|
7
5
|
/**
|
|
8
6
|
* Whether the element is disabled.
|
|
9
7
|
*/
|
|
10
8
|
readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
9
|
+
/**
|
|
10
|
+
* The state of the textarea.
|
|
11
|
+
*/
|
|
12
|
+
protected readonly state: import("ng-primitives/state").CreatedState<NgpTextarea>;
|
|
13
|
+
constructor();
|
|
11
14
|
static ɵfac: i0.ɵɵFactoryDeclaration<NgpTextarea, never>;
|
|
12
|
-
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpTextarea, "[ngpTextarea]", ["ngpTextarea"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.NgpFormControl; inputs: {}; outputs: {}; }
|
|
15
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<NgpTextarea, "[ngpTextarea]", ["ngpTextarea"], { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, [{ directive: typeof i1.NgpFormControl; inputs: {}; outputs: {}; }]>;
|
|
13
16
|
}
|
package/toast/index.d.ts
CHANGED
package/toast/toast/toast.d.ts
CHANGED
|
@@ -14,13 +14,33 @@ export declare class NgpToast {
|
|
|
14
14
|
private readonly injector;
|
|
15
15
|
/** Access the document */
|
|
16
16
|
private readonly document;
|
|
17
|
+
/**
|
|
18
|
+
* The duration the toast will display for before it is automatically dismissed in milliseconds.
|
|
19
|
+
* @default 3000
|
|
20
|
+
*/
|
|
17
21
|
readonly duration: import("@angular/core").InputSignalWithTransform<number, NumberInput>;
|
|
22
|
+
/**
|
|
23
|
+
* The direction the toast will appear from.
|
|
24
|
+
* @default 'top'
|
|
25
|
+
*/
|
|
18
26
|
readonly gravity: import("@angular/core").InputSignal<NgpToastGravity>;
|
|
27
|
+
/**
|
|
28
|
+
* The position the toast will on the horizontal axis.
|
|
29
|
+
* @default 'end'
|
|
30
|
+
*/
|
|
19
31
|
readonly position: import("@angular/core").InputSignal<NgpToastPosition>;
|
|
32
|
+
/**
|
|
33
|
+
* Whether the automatic dismissal of the toast should be paused when the user hovers over it.
|
|
34
|
+
* @default true
|
|
35
|
+
*/
|
|
20
36
|
readonly stopOnHover: import("@angular/core").InputSignalWithTransform<boolean, BooleanInput>;
|
|
37
|
+
/**
|
|
38
|
+
* Whether the toast should be announced to assistive technologies.
|
|
39
|
+
* @default 'polite'
|
|
40
|
+
*/
|
|
21
41
|
readonly ariaLive: import("@angular/core").InputSignal<string>;
|
|
22
42
|
/** Store the list of toasts */
|
|
23
|
-
private toasts;
|
|
43
|
+
private static toasts;
|
|
24
44
|
/** Show the toast. */
|
|
25
45
|
show(): void;
|
|
26
46
|
/** Build the toast */
|
package/toggle/index.d.ts
CHANGED
|
@@ -6,7 +6,7 @@ export declare const NgpToggleStateToken: import("@angular/core").InjectionToken
|
|
|
6
6
|
/**
|
|
7
7
|
* Provides the Toggle state.
|
|
8
8
|
*/
|
|
9
|
-
export declare const provideToggleState: () => import("@angular/core").FactoryProvider;
|
|
9
|
+
export declare const provideToggleState: (options?: import("ng-primitives/state").CreateStateProviderOptions) => import("@angular/core").FactoryProvider;
|
|
10
10
|
/**
|
|
11
11
|
* Injects the Toggle state.
|
|
12
12
|
*/
|
package/toggle-group/index.d.ts
CHANGED
|
@@ -1,7 +1,5 @@
|
|
|
1
1
|
export { NgpToggleGroupConfig, provideToggleGroupConfig } from './config/toggle-group-config';
|
|
2
2
|
export { NgpToggleGroupItem } from './toggle-group-item/toggle-group-item';
|
|
3
3
|
export { injectToggleGroupItemState, provideToggleGroupItemState, } from './toggle-group-item/toggle-group-item-state';
|
|
4
|
-
export { injectToggleGroupItem, NgpToggleGroupItemToken, } from './toggle-group-item/toggle-group-item-token';
|
|
5
4
|
export { NgpToggleGroup } from './toggle-group/toggle-group';
|
|
6
5
|
export { injectToggleGroupState, provideToggleGroupState } from './toggle-group/toggle-group-state';
|
|
7
|
-
export { injectToggleGroup, NgpToggleGroupToken } from './toggle-group/toggle-group-token';
|
|
@@ -6,7 +6,7 @@ export declare const NgpToggleGroupStateToken: import("@angular/core").Injection
|
|
|
6
6
|
/**
|
|
7
7
|
* Provides the ToggleGroup state.
|
|
8
8
|
*/
|
|
9
|
-
export declare const provideToggleGroupState: () => import("@angular/core").FactoryProvider;
|
|
9
|
+
export declare const provideToggleGroupState: (options?: import("ng-primitives/state").CreateStateProviderOptions) => import("@angular/core").FactoryProvider;
|
|
10
10
|
/**
|
|
11
11
|
* Injects the ToggleGroup state.
|
|
12
12
|
*/
|