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.
Files changed (226) hide show
  1. package/a11y/index.d.ts +1 -1
  2. package/a11y/visually-hidden/visually-hidden-state.d.ts +52 -0
  3. package/a11y/visually-hidden/visually-hidden.d.ts +1 -0
  4. package/accordion/accordion/accordion-state.d.ts +1 -1
  5. package/accordion/accordion-item/accordion-item-state.d.ts +1 -1
  6. package/avatar/avatar/avatar-state.d.ts +1 -1
  7. package/avatar/avatar-image/avatar-image.d.ts +36 -1
  8. package/button/button/button-state.d.ts +12 -2
  9. package/button/button/button.d.ts +1 -2
  10. package/button/index.d.ts +1 -1
  11. package/checkbox/checkbox/checkbox-state.d.ts +1 -1
  12. package/checkbox/checkbox/checkbox.d.ts +3 -4
  13. package/date-picker/date-picker/date-picker-state.d.ts +1 -1
  14. package/date-picker/date-picker-date-button/date-picker-date-button.d.ts +1 -2
  15. package/date-picker/date-picker-next-month/date-picker-next-month.d.ts +2 -2
  16. package/date-picker/date-picker-previous-month/date-picker-previous-month.d.ts +2 -2
  17. package/date-picker/index.d.ts +5 -9
  18. package/dialog/dialog/dialog-state.d.ts +1 -1
  19. package/dialog/index.d.ts +0 -4
  20. package/fesm2022/ng-primitives-a11y.mjs +20 -9
  21. package/fesm2022/ng-primitives-a11y.mjs.map +1 -1
  22. package/fesm2022/ng-primitives-avatar.mjs +3 -3
  23. package/fesm2022/ng-primitives-avatar.mjs.map +1 -1
  24. package/fesm2022/ng-primitives-button.mjs +18 -5
  25. package/fesm2022/ng-primitives-button.mjs.map +1 -1
  26. package/fesm2022/ng-primitives-checkbox.mjs +13 -8
  27. package/fesm2022/ng-primitives-checkbox.mjs.map +1 -1
  28. package/fesm2022/ng-primitives-date-picker.mjs +13 -65
  29. package/fesm2022/ng-primitives-date-picker.mjs.map +1 -1
  30. package/fesm2022/ng-primitives-dialog.mjs +5 -41
  31. package/fesm2022/ng-primitives-dialog.mjs.map +1 -1
  32. package/fesm2022/ng-primitives-file-upload.mjs +12 -5
  33. package/fesm2022/ng-primitives-file-upload.mjs.map +1 -1
  34. package/fesm2022/ng-primitives-focus-trap.mjs +3 -12
  35. package/fesm2022/ng-primitives-focus-trap.mjs.map +1 -1
  36. package/fesm2022/ng-primitives-form-field.mjs +103 -93
  37. package/fesm2022/ng-primitives-form-field.mjs.map +1 -1
  38. package/fesm2022/ng-primitives-input.mjs +34 -21
  39. package/fesm2022/ng-primitives-input.mjs.map +1 -1
  40. package/fesm2022/ng-primitives-interactions.mjs +14 -80
  41. package/fesm2022/ng-primitives-interactions.mjs.map +1 -1
  42. package/fesm2022/ng-primitives-internal.mjs +93 -65
  43. package/fesm2022/ng-primitives-internal.mjs.map +1 -1
  44. package/fesm2022/ng-primitives-listbox.mjs +19 -48
  45. package/fesm2022/ng-primitives-listbox.mjs.map +1 -1
  46. package/fesm2022/ng-primitives-menu.mjs +1 -5
  47. package/fesm2022/ng-primitives-menu.mjs.map +1 -1
  48. package/fesm2022/ng-primitives-pagination.mjs +53 -147
  49. package/fesm2022/ng-primitives-pagination.mjs.map +1 -1
  50. package/fesm2022/ng-primitives-popover.mjs +105 -96
  51. package/fesm2022/ng-primitives-popover.mjs.map +1 -1
  52. package/fesm2022/ng-primitives-progress.mjs +4 -18
  53. package/fesm2022/ng-primitives-progress.mjs.map +1 -1
  54. package/fesm2022/ng-primitives-radio.mjs +9 -5
  55. package/fesm2022/ng-primitives-radio.mjs.map +1 -1
  56. package/fesm2022/ng-primitives-roving-focus.mjs +2 -12
  57. package/fesm2022/ng-primitives-roving-focus.mjs.map +1 -1
  58. package/fesm2022/ng-primitives-select.mjs +35 -21
  59. package/fesm2022/ng-primitives-select.mjs.map +1 -1
  60. package/fesm2022/ng-primitives-separator.mjs +2 -11
  61. package/fesm2022/ng-primitives-separator.mjs.map +1 -1
  62. package/fesm2022/ng-primitives-slider.mjs +62 -120
  63. package/fesm2022/ng-primitives-slider.mjs.map +1 -1
  64. package/fesm2022/ng-primitives-state.mjs +10 -3
  65. package/fesm2022/ng-primitives-state.mjs.map +1 -1
  66. package/fesm2022/ng-primitives-switch.mjs +22 -35
  67. package/fesm2022/ng-primitives-switch.mjs.map +1 -1
  68. package/fesm2022/ng-primitives-tabs.mjs +17 -22
  69. package/fesm2022/ng-primitives-tabs.mjs.map +1 -1
  70. package/fesm2022/ng-primitives-textarea.mjs +34 -21
  71. package/fesm2022/ng-primitives-textarea.mjs.map +1 -1
  72. package/fesm2022/ng-primitives-toast.mjs +27 -16
  73. package/fesm2022/ng-primitives-toast.mjs.map +1 -1
  74. package/fesm2022/ng-primitives-toggle-group.mjs +26 -49
  75. package/fesm2022/ng-primitives-toggle-group.mjs.map +1 -1
  76. package/fesm2022/ng-primitives-toggle.mjs +4 -18
  77. package/fesm2022/ng-primitives-toggle.mjs.map +1 -1
  78. package/fesm2022/ng-primitives-toolbar.mjs +3 -18
  79. package/fesm2022/ng-primitives-toolbar.mjs.map +1 -1
  80. package/fesm2022/ng-primitives-tooltip.mjs +103 -82
  81. package/fesm2022/ng-primitives-tooltip.mjs.map +1 -1
  82. package/fesm2022/ng-primitives-utils.mjs +18 -0
  83. package/fesm2022/ng-primitives-utils.mjs.map +1 -1
  84. package/file-upload/file-dropzone/file-dropzone-state.d.ts +2 -2
  85. package/file-upload/file-dropzone/file-dropzone.d.ts +3 -2
  86. package/file-upload/file-upload/file-upload-state.d.ts +2 -2
  87. package/file-upload/file-upload/file-upload.d.ts +3 -2
  88. package/focus-trap/index.d.ts +0 -1
  89. package/form-field/description/description.d.ts +25 -1
  90. package/form-field/error/error.d.ts +25 -1
  91. package/form-field/form-control/form-control-state.d.ts +58 -0
  92. package/form-field/form-control/form-control.d.ts +36 -7
  93. package/form-field/form-field/form-field-state.d.ts +41 -0
  94. package/form-field/form-field/form-field.d.ts +4 -0
  95. package/form-field/index.d.ts +2 -5
  96. package/form-field/label/label.d.ts +26 -2
  97. package/input/index.d.ts +1 -1
  98. package/input/input/input-state.d.ts +30 -0
  99. package/input/input/input.d.ts +7 -5
  100. package/interactions/focus/focus.d.ts +0 -4
  101. package/interactions/focus-visible/focus-visible.d.ts +0 -4
  102. package/interactions/hover/hover.d.ts +0 -4
  103. package/interactions/index.d.ts +0 -5
  104. package/interactions/move/move.d.ts +0 -4
  105. package/interactions/press/press.d.ts +0 -4
  106. package/internal/exit-animation/exit-animation-manager.d.ts +17 -0
  107. package/internal/exit-animation/exit-animation.d.ts +4 -17
  108. package/internal/index.d.ts +3 -2
  109. package/internal/interactions/interactions.d.ts +5 -1
  110. package/internal/signals/sync-state.d.ts +2 -0
  111. package/listbox/index.d.ts +0 -4
  112. package/listbox/listbox/listbox-state.d.ts +2 -2
  113. package/package.json +9 -9
  114. package/pagination/index.d.ts +0 -6
  115. package/pagination/pagination/pagination-state.d.ts +2 -2
  116. package/pagination/pagination/pagination.d.ts +5 -5
  117. package/pagination/pagination-button/pagination-button.d.ts +4 -8
  118. package/pagination/pagination-first/pagination-first.d.ts +4 -8
  119. package/pagination/pagination-last/pagination-last.d.ts +3 -7
  120. package/pagination/pagination-next/pagination-next.d.ts +4 -8
  121. package/pagination/pagination-previous/pagination-previous.d.ts +4 -8
  122. package/popover/index.d.ts +1 -2
  123. package/popover/popover/popover-token.d.ts +8 -5
  124. package/popover/popover/popover.d.ts +3 -2
  125. package/popover/popover-trigger/popover-trigger-state.d.ts +5 -3
  126. package/popover/popover-trigger/popover-trigger.d.ts +27 -19
  127. package/progress/index.d.ts +0 -1
  128. package/progress/progress/progress-state.d.ts +1 -1
  129. package/radio/radio-group/radio-group-state.d.ts +1 -1
  130. package/radio/radio-group/radio-group.d.ts +2 -2
  131. package/radio/radio-item/radio-item-state.d.ts +1 -1
  132. package/roving-focus/index.d.ts +2 -3
  133. package/roving-focus/roving-focus-group/roving-focus-group-state.d.ts +1 -1
  134. package/schematics/ng-generate/schema.d.ts +4 -1
  135. package/schematics/ng-generate/schema.json +4 -1
  136. package/schematics/ng-generate/templates/toast/toast.__fileSuffix@dasherize__.ts.template +111 -0
  137. package/schematics/ng-generate/templates/toolbar/toolbar-button.__fileSuffix@dasherize__.ts.template +58 -0
  138. package/schematics/ng-generate/templates/toolbar/toolbar.__fileSuffix@dasherize__.ts.template +29 -0
  139. package/schematics/ng-generate/templates/tooltip/tooltip-trigger.__fileSuffix@dasherize__.ts.template +35 -0
  140. package/schematics/ng-generate/templates/tooltip/tooltip.__fileSuffix@dasherize__.ts.template +60 -0
  141. package/search/search/search-state.d.ts +1 -1
  142. package/select/index.d.ts +1 -1
  143. package/select/select/select-state.d.ts +20 -0
  144. package/select/select/select.d.ts +7 -4
  145. package/separator/index.d.ts +1 -2
  146. package/slider/index.d.ts +0 -4
  147. package/slider/slider/slider-state.d.ts +1 -1
  148. package/slider/slider/slider.d.ts +2 -2
  149. package/slider/slider-range/slider-range.d.ts +1 -1
  150. package/slider/slider-thumb/slider-thumb.d.ts +3 -7
  151. package/slider/slider-track/slider-track.d.ts +1 -5
  152. package/state/index.d.ts +7 -1
  153. package/switch/index.d.ts +0 -1
  154. package/switch/switch/switch-state.d.ts +1 -1
  155. package/switch/switch/switch.d.ts +3 -4
  156. package/switch/switch-thumb/switch-thumb.d.ts +2 -2
  157. package/tabs/index.d.ts +1 -2
  158. package/tabs/tab-button/tab-button.d.ts +2 -2
  159. package/tabs/tabset/tabset-state.d.ts +1 -1
  160. package/textarea/index.d.ts +1 -1
  161. package/textarea/textarea/textarea-state.d.ts +20 -0
  162. package/textarea/textarea/textarea.d.ts +7 -4
  163. package/toast/index.d.ts +0 -1
  164. package/toast/toast/toast.d.ts +21 -1
  165. package/toggle/index.d.ts +0 -1
  166. package/toggle/toggle/toggle-state.d.ts +1 -1
  167. package/toggle-group/index.d.ts +0 -2
  168. package/toggle-group/toggle-group/toggle-group-state.d.ts +1 -1
  169. package/toggle-group/toggle-group-item/toggle-group-item-state.d.ts +15 -2
  170. package/toggle-group/toggle-group-item/toggle-group-item.d.ts +1 -1
  171. package/toolbar/index.d.ts +0 -1
  172. package/tooltip/index.d.ts +1 -2
  173. package/tooltip/tooltip/tooltip-token.d.ts +8 -5
  174. package/tooltip/tooltip/tooltip.d.ts +2 -1
  175. package/tooltip/tooltip-trigger/tooltip-trigger-state.d.ts +3 -3
  176. package/tooltip/tooltip-trigger/tooltip-trigger.d.ts +43 -22
  177. package/a11y/visually-hidden/visually-hidden-token.d.ts +0 -7
  178. package/date-picker/date-picker-cell/date-picker-cell-token.d.ts +0 -7
  179. package/date-picker/date-picker-grid/date-picker-grid-token.d.ts +0 -7
  180. package/date-picker/date-picker-next-month/date-picker-next-month-token.d.ts +0 -7
  181. package/date-picker/date-picker-previous-month/date-picker-previous-month-token.d.ts +0 -7
  182. package/dialog/dialog-description/dialog-description-token.d.ts +0 -7
  183. package/dialog/dialog-overlay/dialog-overlay-token.d.ts +0 -7
  184. package/dialog/dialog-title/dialog-title-token.d.ts +0 -7
  185. package/dialog/dialog-trigger/dialog-trigger-token.d.ts +0 -7
  186. package/focus-trap/focus-trap/focus-trap-token.d.ts +0 -7
  187. package/form-field/description/description-token.d.ts +0 -7
  188. package/form-field/error/error-token.d.ts +0 -7
  189. package/form-field/form-control/form-control-token.d.ts +0 -7
  190. package/form-field/form-field/form-field-token.d.ts +0 -8
  191. package/form-field/label/label-token.d.ts +0 -7
  192. package/input/input/input-token.d.ts +0 -7
  193. package/interactions/focus/focus-token.d.ts +0 -7
  194. package/interactions/focus-visible/focus-visible-token.d.ts +0 -7
  195. package/interactions/hover/hover-token.d.ts +0 -8
  196. package/interactions/move/move-token.d.ts +0 -7
  197. package/interactions/press/press-token.d.ts +0 -7
  198. package/internal/disabled/disabled.d.ts +0 -14
  199. package/listbox/listbox/listbox-token.d.ts +0 -7
  200. package/listbox/listbox-option/listbox-option-token.d.ts +0 -7
  201. package/listbox/listbox-section/listbox-section-token.d.ts +0 -7
  202. package/listbox/listbox-trigger/listbox-trigger-token.d.ts +0 -7
  203. package/pagination/pagination/pagination-token.d.ts +0 -8
  204. package/pagination/pagination-button/pagination-button-token.d.ts +0 -7
  205. package/pagination/pagination-first/pagination-first-token.d.ts +0 -7
  206. package/pagination/pagination-last/pagination-last-token.d.ts +0 -7
  207. package/pagination/pagination-next/pagination-next-token.d.ts +0 -7
  208. package/pagination/pagination-previous/pagination-previous-token.d.ts +0 -7
  209. package/popover/popover-trigger/popover-trigger-token.d.ts +0 -12
  210. package/progress/progress/progress-token.d.ts +0 -11
  211. package/roving-focus/roving-focus-item/roving-focus-item-token.d.ts +0 -8
  212. package/select/select/select-token.d.ts +0 -7
  213. package/separator/separator/separator-token.d.ts +0 -7
  214. package/slider/slider/slider-token.d.ts +0 -8
  215. package/slider/slider-range/slider-range-token.d.ts +0 -8
  216. package/slider/slider-thumb/slider-thumb-token.d.ts +0 -8
  217. package/slider/slider-track/slider-track-token.d.ts +0 -8
  218. package/switch/switch/switch-token.d.ts +0 -11
  219. package/tabs/tabset/tabset-token.d.ts +0 -11
  220. package/textarea/textarea/textarea-token.d.ts +0 -7
  221. package/toast/toast/toast-token.d.ts +0 -7
  222. package/toggle/toggle/toggle-token.d.ts +0 -11
  223. package/toggle-group/toggle-group/toggle-group-token.d.ts +0 -11
  224. package/toggle-group/toggle-group-item/toggle-group-item-token.d.ts +0 -11
  225. package/toolbar/toolbar/toolbar-token.d.ts +0 -11
  226. package/tooltip/tooltip-trigger/tooltip-trigger-token.d.ts +0 -15
@@ -1,11 +0,0 @@
1
- import { ExistingProvider, InjectionToken, Type } from '@angular/core';
2
- import type { NgpTabset } from './tabset';
3
- export declare const NgpTabsetToken: InjectionToken<NgpTabset>;
4
- /**
5
- * Inject the Tabset directive instance
6
- */
7
- export declare function injectTabset(): NgpTabset;
8
- /**
9
- * Provide the Tabset directive instance
10
- */
11
- export declare function provideTabset(type: Type<NgpTabset>): ExistingProvider;
@@ -1,7 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import type { NgpTextarea } from './textarea';
3
- export declare const NgpTextareaToken: InjectionToken<NgpTextarea>;
4
- /**
5
- * Inject the Textarea directive instance
6
- */
7
- export declare function injectTextarea(): NgpTextarea;
@@ -1,7 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import type { NgpToast } from './toast';
3
- export declare const NgpToastToken: InjectionToken<NgpToast>;
4
- /**
5
- * Inject the Toast directive instance
6
- */
7
- export declare function injectToast(): NgpToast;
@@ -1,11 +0,0 @@
1
- import { ExistingProvider, InjectionToken, Type } from '@angular/core';
2
- import type { NgpToggle } from './toggle';
3
- export declare const NgpToggleToken: InjectionToken<NgpToggle>;
4
- /**
5
- * Inject the Toggle directive instance
6
- */
7
- export declare function injectToggle(): NgpToggle;
8
- /**
9
- * Provide the Toggle directive instance
10
- */
11
- export declare function provideToggle(type: Type<NgpToggle>): ExistingProvider;
@@ -1,11 +0,0 @@
1
- import { ExistingProvider, InjectionToken, Type } from '@angular/core';
2
- import type { NgpToggleGroup } from './toggle-group';
3
- export declare const NgpToggleGroupToken: InjectionToken<NgpToggleGroup>;
4
- /**
5
- * Inject the ToggleGroup directive instance
6
- */
7
- export declare function injectToggleGroup(): NgpToggleGroup;
8
- /**
9
- * Provide the ToggleGroup directive instance
10
- */
11
- export declare function provideToggleGroup(type: Type<NgpToggleGroup>): ExistingProvider;
@@ -1,11 +0,0 @@
1
- import { ExistingProvider, InjectionToken, Type } from '@angular/core';
2
- import type { NgpToggleGroupItem } from './toggle-group-item';
3
- export declare const NgpToggleGroupItemToken: InjectionToken<NgpToggleGroupItem>;
4
- /**
5
- * Inject the ToggleGroupItem directive instance
6
- */
7
- export declare function injectToggleGroupItem(): NgpToggleGroupItem;
8
- /**
9
- * Provide the ToggleGroupItem directive instance
10
- */
11
- export declare function provideToggleGroupItem(type: Type<NgpToggleGroupItem>): ExistingProvider;
@@ -1,11 +0,0 @@
1
- import { ExistingProvider, InjectionToken, Type } from '@angular/core';
2
- import type { NgpToolbar } from './toolbar';
3
- export declare const NgpToolbarToken: InjectionToken<NgpToolbar>;
4
- /**
5
- * Inject the Toolbar directive instance
6
- */
7
- export declare function injectToolbar(): NgpToolbar;
8
- /**
9
- * Provide the Toolbar directive instance
10
- */
11
- export declare function provideToolbar(type: Type<NgpToolbar>): ExistingProvider;
@@ -1,15 +0,0 @@
1
- import { InjectionToken } from '@angular/core';
2
- import type { NgpTooltipTrigger } from './tooltip-trigger';
3
- export declare const NgpTooltipTriggerToken: InjectionToken<NgpTooltipTrigger>;
4
- /**
5
- * Inject the TooltipTrigger directive instance
6
- */
7
- export declare function injectTooltipTrigger(): NgpTooltipTrigger;
8
- /**
9
- * Provides the TooltipTrigger directive instance
10
- * @param trigger
11
- */
12
- export declare function provideTooltipTrigger(trigger: NgpTooltipTrigger): {
13
- provide: InjectionToken<NgpTooltipTrigger>;
14
- useValue: NgpTooltipTrigger;
15
- };