@cute-widgets/base 20.0.1

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 (183) hide show
  1. package/CHANGELOG.md +1 -0
  2. package/LICENSE.md +191 -0
  3. package/README.md +190 -0
  4. package/abstract/index.d.ts +327 -0
  5. package/alert/index.d.ts +68 -0
  6. package/autocomplete/index.d.ts +442 -0
  7. package/badge/index.d.ts +26 -0
  8. package/bottom-sheet/index.d.ts +231 -0
  9. package/button/index.d.ts +182 -0
  10. package/button-toggle/index.d.ts +225 -0
  11. package/card/index.d.ts +163 -0
  12. package/checkbox/index.d.ts +174 -0
  13. package/chips/index.d.ts +963 -0
  14. package/collapse/index.d.ts +97 -0
  15. package/core/animation/index.d.ts +43 -0
  16. package/core/datetime/index.d.ts +404 -0
  17. package/core/directives/index.d.ts +168 -0
  18. package/core/error/index.d.ts +74 -0
  19. package/core/index.d.ts +1039 -0
  20. package/core/interfaces/index.d.ts +114 -0
  21. package/core/layout/index.d.ts +53 -0
  22. package/core/line/index.d.ts +37 -0
  23. package/core/nav/index.d.ts +321 -0
  24. package/core/observers/index.d.ts +124 -0
  25. package/core/option/index.d.ts +185 -0
  26. package/core/pipes/index.d.ts +53 -0
  27. package/core/ripple/index.d.ts +66 -0
  28. package/core/testing/index.d.ts +154 -0
  29. package/core/theming/index.d.ts +118 -0
  30. package/core/types/index.d.ts +53 -0
  31. package/core/utils/index.d.ts +129 -0
  32. package/cute-widgets-base-20.0.1.tgz +0 -0
  33. package/datepicker/index.d.ts +1817 -0
  34. package/dialog/index.d.ts +484 -0
  35. package/divider/index.d.ts +24 -0
  36. package/expansion/README.md +8 -0
  37. package/expansion/index.d.ts +308 -0
  38. package/fesm2022/cute-widgets-base-abstract.mjs +547 -0
  39. package/fesm2022/cute-widgets-base-abstract.mjs.map +1 -0
  40. package/fesm2022/cute-widgets-base-alert.mjs +198 -0
  41. package/fesm2022/cute-widgets-base-alert.mjs.map +1 -0
  42. package/fesm2022/cute-widgets-base-autocomplete.mjs +1217 -0
  43. package/fesm2022/cute-widgets-base-autocomplete.mjs.map +1 -0
  44. package/fesm2022/cute-widgets-base-badge.mjs +75 -0
  45. package/fesm2022/cute-widgets-base-badge.mjs.map +1 -0
  46. package/fesm2022/cute-widgets-base-bottom-sheet.mjs +416 -0
  47. package/fesm2022/cute-widgets-base-bottom-sheet.mjs.map +1 -0
  48. package/fesm2022/cute-widgets-base-button-toggle.mjs +640 -0
  49. package/fesm2022/cute-widgets-base-button-toggle.mjs.map +1 -0
  50. package/fesm2022/cute-widgets-base-button.mjs +546 -0
  51. package/fesm2022/cute-widgets-base-button.mjs.map +1 -0
  52. package/fesm2022/cute-widgets-base-card.mjs +471 -0
  53. package/fesm2022/cute-widgets-base-card.mjs.map +1 -0
  54. package/fesm2022/cute-widgets-base-checkbox.mjs +390 -0
  55. package/fesm2022/cute-widgets-base-checkbox.mjs.map +1 -0
  56. package/fesm2022/cute-widgets-base-chips.mjs +2360 -0
  57. package/fesm2022/cute-widgets-base-chips.mjs.map +1 -0
  58. package/fesm2022/cute-widgets-base-collapse.mjs +259 -0
  59. package/fesm2022/cute-widgets-base-collapse.mjs.map +1 -0
  60. package/fesm2022/cute-widgets-base-core-animation.mjs +53 -0
  61. package/fesm2022/cute-widgets-base-core-animation.mjs.map +1 -0
  62. package/fesm2022/cute-widgets-base-core-datetime.mjs +568 -0
  63. package/fesm2022/cute-widgets-base-core-datetime.mjs.map +1 -0
  64. package/fesm2022/cute-widgets-base-core-directives.mjs +404 -0
  65. package/fesm2022/cute-widgets-base-core-directives.mjs.map +1 -0
  66. package/fesm2022/cute-widgets-base-core-error.mjs +105 -0
  67. package/fesm2022/cute-widgets-base-core-error.mjs.map +1 -0
  68. package/fesm2022/cute-widgets-base-core-interfaces.mjs +22 -0
  69. package/fesm2022/cute-widgets-base-core-interfaces.mjs.map +1 -0
  70. package/fesm2022/cute-widgets-base-core-layout.mjs +74 -0
  71. package/fesm2022/cute-widgets-base-core-layout.mjs.map +1 -0
  72. package/fesm2022/cute-widgets-base-core-line.mjs +87 -0
  73. package/fesm2022/cute-widgets-base-core-line.mjs.map +1 -0
  74. package/fesm2022/cute-widgets-base-core-nav.mjs +863 -0
  75. package/fesm2022/cute-widgets-base-core-nav.mjs.map +1 -0
  76. package/fesm2022/cute-widgets-base-core-observers.mjs +304 -0
  77. package/fesm2022/cute-widgets-base-core-observers.mjs.map +1 -0
  78. package/fesm2022/cute-widgets-base-core-option.mjs +373 -0
  79. package/fesm2022/cute-widgets-base-core-option.mjs.map +1 -0
  80. package/fesm2022/cute-widgets-base-core-pipes.mjs +97 -0
  81. package/fesm2022/cute-widgets-base-core-pipes.mjs.map +1 -0
  82. package/fesm2022/cute-widgets-base-core-ripple.mjs +172 -0
  83. package/fesm2022/cute-widgets-base-core-ripple.mjs.map +1 -0
  84. package/fesm2022/cute-widgets-base-core-testing.mjs +210 -0
  85. package/fesm2022/cute-widgets-base-core-testing.mjs.map +1 -0
  86. package/fesm2022/cute-widgets-base-core-theming.mjs +314 -0
  87. package/fesm2022/cute-widgets-base-core-theming.mjs.map +1 -0
  88. package/fesm2022/cute-widgets-base-core-types.mjs +22 -0
  89. package/fesm2022/cute-widgets-base-core-types.mjs.map +1 -0
  90. package/fesm2022/cute-widgets-base-core-utils.mjs +257 -0
  91. package/fesm2022/cute-widgets-base-core-utils.mjs.map +1 -0
  92. package/fesm2022/cute-widgets-base-core.mjs +1600 -0
  93. package/fesm2022/cute-widgets-base-core.mjs.map +1 -0
  94. package/fesm2022/cute-widgets-base-datepicker.mjs +4827 -0
  95. package/fesm2022/cute-widgets-base-datepicker.mjs.map +1 -0
  96. package/fesm2022/cute-widgets-base-dialog.mjs +1046 -0
  97. package/fesm2022/cute-widgets-base-dialog.mjs.map +1 -0
  98. package/fesm2022/cute-widgets-base-divider.mjs +86 -0
  99. package/fesm2022/cute-widgets-base-divider.mjs.map +1 -0
  100. package/fesm2022/cute-widgets-base-expansion.mjs +623 -0
  101. package/fesm2022/cute-widgets-base-expansion.mjs.map +1 -0
  102. package/fesm2022/cute-widgets-base-form-field.mjs +969 -0
  103. package/fesm2022/cute-widgets-base-form-field.mjs.map +1 -0
  104. package/fesm2022/cute-widgets-base-grid-list.mjs +715 -0
  105. package/fesm2022/cute-widgets-base-grid-list.mjs.map +1 -0
  106. package/fesm2022/cute-widgets-base-icon.mjs +1105 -0
  107. package/fesm2022/cute-widgets-base-icon.mjs.map +1 -0
  108. package/fesm2022/cute-widgets-base-input.mjs +726 -0
  109. package/fesm2022/cute-widgets-base-input.mjs.map +1 -0
  110. package/fesm2022/cute-widgets-base-layout-container.mjs +95 -0
  111. package/fesm2022/cute-widgets-base-layout-container.mjs.map +1 -0
  112. package/fesm2022/cute-widgets-base-layout-stack.mjs +166 -0
  113. package/fesm2022/cute-widgets-base-layout-stack.mjs.map +1 -0
  114. package/fesm2022/cute-widgets-base-layout.mjs +250 -0
  115. package/fesm2022/cute-widgets-base-layout.mjs.map +1 -0
  116. package/fesm2022/cute-widgets-base-list.mjs +1557 -0
  117. package/fesm2022/cute-widgets-base-list.mjs.map +1 -0
  118. package/fesm2022/cute-widgets-base-menu.mjs +1283 -0
  119. package/fesm2022/cute-widgets-base-menu.mjs.map +1 -0
  120. package/fesm2022/cute-widgets-base-navbar.mjs +359 -0
  121. package/fesm2022/cute-widgets-base-navbar.mjs.map +1 -0
  122. package/fesm2022/cute-widgets-base-paginator.mjs +485 -0
  123. package/fesm2022/cute-widgets-base-paginator.mjs.map +1 -0
  124. package/fesm2022/cute-widgets-base-progress.mjs +321 -0
  125. package/fesm2022/cute-widgets-base-progress.mjs.map +1 -0
  126. package/fesm2022/cute-widgets-base-radio.mjs +637 -0
  127. package/fesm2022/cute-widgets-base-radio.mjs.map +1 -0
  128. package/fesm2022/cute-widgets-base-select.mjs +1208 -0
  129. package/fesm2022/cute-widgets-base-select.mjs.map +1 -0
  130. package/fesm2022/cute-widgets-base-sidenav.mjs +1095 -0
  131. package/fesm2022/cute-widgets-base-sidenav.mjs.map +1 -0
  132. package/fesm2022/cute-widgets-base-slider.mjs +99 -0
  133. package/fesm2022/cute-widgets-base-slider.mjs.map +1 -0
  134. package/fesm2022/cute-widgets-base-snack-bar.mjs +897 -0
  135. package/fesm2022/cute-widgets-base-snack-bar.mjs.map +1 -0
  136. package/fesm2022/cute-widgets-base-sort.mjs +639 -0
  137. package/fesm2022/cute-widgets-base-sort.mjs.map +1 -0
  138. package/fesm2022/cute-widgets-base-spinner.mjs +154 -0
  139. package/fesm2022/cute-widgets-base-spinner.mjs.map +1 -0
  140. package/fesm2022/cute-widgets-base-stepper.mjs +673 -0
  141. package/fesm2022/cute-widgets-base-stepper.mjs.map +1 -0
  142. package/fesm2022/cute-widgets-base-table.mjs +1023 -0
  143. package/fesm2022/cute-widgets-base-table.mjs.map +1 -0
  144. package/fesm2022/cute-widgets-base-tabs.mjs +729 -0
  145. package/fesm2022/cute-widgets-base-tabs.mjs.map +1 -0
  146. package/fesm2022/cute-widgets-base-timepicker.mjs +965 -0
  147. package/fesm2022/cute-widgets-base-timepicker.mjs.map +1 -0
  148. package/fesm2022/cute-widgets-base-toolbar.mjs +120 -0
  149. package/fesm2022/cute-widgets-base-toolbar.mjs.map +1 -0
  150. package/fesm2022/cute-widgets-base-tooltip.mjs +947 -0
  151. package/fesm2022/cute-widgets-base-tooltip.mjs.map +1 -0
  152. package/fesm2022/cute-widgets-base-tree.mjs +598 -0
  153. package/fesm2022/cute-widgets-base-tree.mjs.map +1 -0
  154. package/fesm2022/cute-widgets-base.mjs +68 -0
  155. package/fesm2022/cute-widgets-base.mjs.map +1 -0
  156. package/form-field/index.d.ts +401 -0
  157. package/grid-list/index.d.ts +361 -0
  158. package/icon/index.d.ts +477 -0
  159. package/index.d.ts +3 -0
  160. package/input/index.d.ts +256 -0
  161. package/layout/container/index.d.ts +31 -0
  162. package/layout/index.d.ts +78 -0
  163. package/layout/stack/index.d.ts +52 -0
  164. package/list/index.d.ts +659 -0
  165. package/menu/index.d.ts +497 -0
  166. package/navbar/index.d.ts +91 -0
  167. package/package.json +279 -0
  168. package/paginator/index.d.ts +216 -0
  169. package/progress/index.d.ts +130 -0
  170. package/radio/index.d.ts +259 -0
  171. package/select/index.d.ts +426 -0
  172. package/sidenav/index.d.ts +369 -0
  173. package/slider/index.d.ts +48 -0
  174. package/snack-bar/index.d.ts +374 -0
  175. package/sort/index.d.ts +334 -0
  176. package/spinner/index.d.ts +70 -0
  177. package/stepper/index.d.ts +295 -0
  178. package/table/index.d.ts +395 -0
  179. package/tabs/index.d.ts +307 -0
  180. package/timepicker/index.d.ts +350 -0
  181. package/toolbar/index.d.ts +36 -0
  182. package/tooltip/index.d.ts +299 -0
  183. package/tree/index.d.ts +314 -0
@@ -0,0 +1,334 @@
1
+ import { FocusMonitor, AriaDescriber } from '@angular/cdk/a11y';
2
+ import * as i0 from '@angular/core';
3
+ import { OnChanges, OnDestroy, OnInit, EventEmitter, SimpleChanges, InjectionToken, Optional, AfterViewInit, ChangeDetectorRef, ElementRef } from '@angular/core';
4
+ import { Subject, Observable } from 'rxjs';
5
+ import { AnimationTriggerMetadata } from '@angular/animations';
6
+ import * as i1 from '@angular/common';
7
+
8
+ type SortDirection = 'asc' | 'desc' | '';
9
+
10
+ /**
11
+ * @license Apache-2.0
12
+ *
13
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
14
+ *
15
+ * You may not use this file except in compliance with the License
16
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
17
+ *
18
+ * This code is a modification of the `@angular/material` original
19
+ * code licensed under MIT-style License (https://angular.dev/license).
20
+ */
21
+
22
+ /** Position of the arrow that displays when sorted. */
23
+ type SortHeaderArrowPosition = 'before' | 'after';
24
+ /** Interface for a directive that holds sorting state consumed by `MatSortHeader`. */
25
+ interface CuteSortable {
26
+ /** The id of the column being sorted. */
27
+ id: string;
28
+ /** Starting a sort direction. */
29
+ start: SortDirection;
30
+ /** Whether to disable clearing the sorting state. */
31
+ disableClear: boolean;
32
+ }
33
+ /** The current sort state. */
34
+ interface Sort {
35
+ /** The id of the column being sorted. */
36
+ active: string;
37
+ /** The sort direction. */
38
+ direction: SortDirection;
39
+ }
40
+ /** Default options for `cute-sort`. */
41
+ interface CuteSortDefaultOptions {
42
+ /** Whether to disable clearing the sorting state. */
43
+ disableClear?: boolean;
44
+ /** Position of the arrow that displays when sorted. */
45
+ arrowPosition?: SortHeaderArrowPosition;
46
+ }
47
+ /** Injection token to be used to override the default options for `mat-sort`. */
48
+ declare const CUTE_SORT_DEFAULT_OPTIONS: InjectionToken<CuteSortDefaultOptions>;
49
+ /** Container for MatSortables to manage the sort state and provide default sort parameters. */
50
+ declare class CuteSort implements OnChanges, OnDestroy, OnInit {
51
+ private _defaultOptions?;
52
+ private _initializedStream;
53
+ /** Collection of all registered sortables that this directive manages. */
54
+ sortables: Map<string, CuteSortable>;
55
+ /** Used to notify any child components listening to state changes. */
56
+ readonly _stateChanges: Subject<void>;
57
+ /** The id of the most recently sorted CuteSortable. */
58
+ active: string | undefined;
59
+ /**
60
+ * The direction to set when a CuteSortable is initially sorted.
61
+ * May be overridden by the CuteSortable's sort start.
62
+ */
63
+ start: SortDirection;
64
+ /** The sort direction of the currently active CuteSortable. */
65
+ get direction(): SortDirection;
66
+ set direction(direction: SortDirection);
67
+ private _direction;
68
+ /**
69
+ * Whether to disable the user from clearing the sort by finishing the sort direction cycle.
70
+ * May be overridden by the CuteSortable's disable clear input.
71
+ */
72
+ protected disableClear: boolean;
73
+ /** Whether the sortable is disabled. */
74
+ disabled: boolean;
75
+ /** Event emitted when the user changes either the active sort or sort direction. */
76
+ readonly sortChange: EventEmitter<Sort>;
77
+ /** Emits when the paginator is initialized. */
78
+ initialized$: Observable<void>;
79
+ constructor(_defaultOptions?: CuteSortDefaultOptions | undefined);
80
+ /**
81
+ * Register function to be used by the contained CuteSortables. Adds the CuteSortable to the
82
+ * collection of CuteSortables.
83
+ */
84
+ register(sortable: CuteSortable): void;
85
+ /**
86
+ * Unregister function to be used by the contained CuteSortables. Removes the CuteSortable from the
87
+ * collection of contained CuteSortables.
88
+ */
89
+ deregister(sortable: CuteSortable): void;
90
+ /** Sets the active sort id and determines the new sort direction. */
91
+ sort(sortable: CuteSortable): void;
92
+ /** Returns the next sort direction of the active sortable, checking for potential overrides. */
93
+ getNextSortDirection(sortable: CuteSortable): SortDirection;
94
+ ngOnInit(): void;
95
+ ngOnChanges(changes: SimpleChanges): void;
96
+ ngOnDestroy(): void;
97
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteSort, [{ optional: true; }]>;
98
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CuteSort, "[cuteSort]", ["cuteSort"], { "active": { "alias": "cuteSortActive"; "required": false; }; "start": { "alias": "cuteSortStart"; "required": false; }; "direction": { "alias": "cuteSortDirection"; "required": false; }; "disableClear": { "alias": "cuteSortDisableClear"; "required": false; }; "disabled": { "alias": "cuteSortDisabled"; "required": false; }; }, { "sortChange": "cuteSortChange"; }, never, never, true, never>;
99
+ static ngAcceptInputType_disableClear: unknown;
100
+ static ngAcceptInputType_disabled: unknown;
101
+ }
102
+
103
+ /**
104
+ * @license Apache-2.0
105
+ *
106
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
107
+ *
108
+ * You may not use this file except in compliance with the License
109
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
110
+ *
111
+ * This code is a modification of the `@angular/material` original
112
+ * code licensed under MIT-style License (https://angular.dev/license).
113
+ */
114
+
115
+ /**
116
+ * To modify the labels and text displayed, create a new instance of CuteSortHeaderIntl and
117
+ * include it in a custom provider.
118
+ */
119
+ declare class CuteSortHeaderIntl {
120
+ /**
121
+ * Stream that emits whenever the labels here are changed. Use this to notify
122
+ * components if the labels have changed after initialization.
123
+ */
124
+ readonly changes: Subject<void>;
125
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteSortHeaderIntl, never>;
126
+ static ɵprov: i0.ɵɵInjectableDeclaration<CuteSortHeaderIntl>;
127
+ }
128
+ /** @docs-private */
129
+ declare function CUTE_SORT_HEADER_INTL_PROVIDER_FACTORY(parentIntl: CuteSortHeaderIntl): CuteSortHeaderIntl;
130
+ /** @docs-private */
131
+ declare const CUTE_SORT_HEADER_INTL_PROVIDER: {
132
+ provide: typeof CuteSortHeaderIntl;
133
+ deps: Optional[][];
134
+ useFactory: typeof CUTE_SORT_HEADER_INTL_PROVIDER_FACTORY;
135
+ };
136
+
137
+ /**
138
+ * @license Apache-2.0
139
+ *
140
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
141
+ *
142
+ * You may not use this file except in compliance with the License
143
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
144
+ *
145
+ * This code is a modification of the `@angular/material` original
146
+ * code licensed under MIT-style License (https://angular.dev/license).
147
+ */
148
+
149
+ /**
150
+ * Valid positions for the arrow to be in for its opacity and translation. If the state is a
151
+ * sort direction, the position of the arrow will be above/below and opacity 0. If the state is
152
+ * _hint_, the arrow will be in the center with a slight opacity. _Active_ state means the arrow will
153
+ * be fully opaque in the center.
154
+ *
155
+ * @docs-private
156
+ * @deprecated No longer being used, to be removed.
157
+ * @breaking-change 21.0.0
158
+ */
159
+ type ArrowViewState = SortDirection | 'hint' | 'active';
160
+ /**
161
+ * States describing the arrow's animated position (animating _fromState_ to _toState_).
162
+ * If the _fromState_ is not defined, there will be no animated transition to the _toState_.
163
+ * @docs-private
164
+ * @deprecated No longer being used, to be removed.
165
+ * @breaking-change 21.0.0
166
+ */
167
+ interface ArrowViewStateTransition {
168
+ fromState?: ArrowViewState;
169
+ toState?: ArrowViewState;
170
+ }
171
+ /** Column definition associated with a `CuteSortHeader`. */
172
+ interface CuteSortHeaderColumnDef {
173
+ name: string;
174
+ }
175
+ /**
176
+ * Applies sorting behavior (click to change sort) and styles to an element, including an
177
+ * arrow to display the current sort direction.
178
+ *
179
+ * Must be provided with an id and contained within a parent `CuteSort` directive.
180
+ *
181
+ * If used on header cells in a CdkTable, it will automatically default its id from its containing
182
+ * column definition.
183
+ */
184
+ declare class CuteSortHeader implements CuteSortable, OnDestroy, OnInit, AfterViewInit {
185
+ /**
186
+ * @deprecated `_intl` parameter isn't being used anymore, and it'll be removed.
187
+ * @breaking-change 13.0.0
188
+ */
189
+ _intl: CuteSortHeaderIntl;
190
+ private _changeDetectorRef;
191
+ _sort: CuteSort;
192
+ _columnDef: CuteSortHeaderColumnDef;
193
+ private _focusMonitor;
194
+ private _elementRef;
195
+ /** @breaking-change 14.0.0 _ariaDescriber will be required. */
196
+ private _ariaDescriber?;
197
+ private _rerenderSubscription;
198
+ /**
199
+ * The element with role="button" inside this component's view. We need this to apply
200
+ * a description with AriaDescriber.
201
+ */
202
+ private _sortButton;
203
+ /**
204
+ * Flag set to true when the indicator should be displayed while the sort is not active. Used to
205
+ * provide an affordance that the header is sortable by showing on focus and hover.
206
+ */
207
+ _showIndicatorHint: boolean;
208
+ /**
209
+ * The view transition state of the arrow (translation/ opacity) - indicates its `from` and `to`
210
+ * position through the animation. If animations are currently disabled, the `fromState` is removed
211
+ * so that there is no animation displayed.
212
+ */
213
+ _viewState: ArrowViewStateTransition;
214
+ /** The direction the arrow should be facing, according to the current state. */
215
+ _arrowDirection: SortDirection;
216
+ /**
217
+ * Whether the view state animation should show the transition between the `from` and `to` states.
218
+ */
219
+ _disableViewStateAnimation: boolean;
220
+ /**
221
+ * ID of this sort header. If used within the context of a CdkColumnDef, this will default to
222
+ * the column's name.
223
+ */
224
+ id: string;
225
+ /** Sets the position of the arrow that displays when sorted. */
226
+ arrowPosition: SortHeaderArrowPosition;
227
+ /** Overrides the sort start value of the containing CuteSort for this CuteSortable. */
228
+ start: SortDirection;
229
+ /** whether the sort header is disabled. */
230
+ disabled: boolean;
231
+ /**
232
+ * Description applied to MatSortHeader's button element with aria-describedby. This text should
233
+ * describe the action that will occur when the user clicks the sort header.
234
+ */
235
+ get sortActionDescription(): string;
236
+ set sortActionDescription(value: string);
237
+ private _sortActionDescription;
238
+ /** Overrides the disable clear value of the containing CuteSort for this CuteSortable. */
239
+ disableClear: boolean;
240
+ constructor(
241
+ /**
242
+ * @deprecated `_intl` parameter isn't being used anymore, and it'll be removed.
243
+ * @breaking-change 13.0.0
244
+ */
245
+ _intl: CuteSortHeaderIntl, _changeDetectorRef: ChangeDetectorRef, _sort: CuteSort, _columnDef: CuteSortHeaderColumnDef, _focusMonitor: FocusMonitor, _elementRef: ElementRef<HTMLElement>,
246
+ /** @breaking-change 14.0.0 _ariaDescriber will be required. */
247
+ _ariaDescriber?: (AriaDescriber | null) | undefined, defaultOptions?: CuteSortDefaultOptions);
248
+ ngOnInit(): void;
249
+ ngAfterViewInit(): void;
250
+ ngOnDestroy(): void;
251
+ /**
252
+ * Sets the "hint" state such that the arrow will be semi-transparently displayed as a hint to the
253
+ * user showing what the active sort will become. If set to false, the arrow will fade away.
254
+ */
255
+ _setIndicatorHintVisible(visible: boolean): void;
256
+ /**
257
+ * Sets the animation transition view state for the arrow's position and opacity. If the
258
+ * `disableViewStateAnimation` flag is set to true, the `fromState` will be ignored so that
259
+ * no animation appears.
260
+ */
261
+ _setAnimationTransitionState(viewState: ArrowViewStateTransition): void;
262
+ /** Triggers the sort on this sort header and removes the indicator hint. */
263
+ _toggleOnInteraction(): void;
264
+ _handleClick(): void;
265
+ _handleKeydown(event: KeyboardEvent): void;
266
+ /** Whether this MatSortHeader is currently sorted in either ascending or descending order. */
267
+ _isSorted(): boolean;
268
+ /** Returns the animation state for the arrow direction (indicator and pointers). */
269
+ _getArrowDirectionState(): string;
270
+ /** Returns the arrow position state (opacity, translation). */
271
+ _getArrowViewState(): string;
272
+ /**
273
+ * Updates the direction the arrow should be pointing. If it is not sorted, the arrow should be
274
+ * facing the start direction. Otherwise, if it is sorted, the arrow should point in the currently
275
+ * active sorted direction. The reason this is updated through a function is because the direction
276
+ * should only be changed at specific times - when deactivated but the hint is displayed and when
277
+ * the sort is active and the direction changes. Otherwise, the arrow's direction should linger
278
+ * in cases such as the sort becoming deactivated but we want to animate the arrow away while
279
+ * preserving its direction, even though the next sort direction is actually different and should
280
+ * only be changed once the arrow displays again (hint or activation).
281
+ */
282
+ _updateArrowDirection(): void;
283
+ _isDisabled(): boolean;
284
+ /**
285
+ * Gets the aria-sort attribute that should be applied to this sort header. If this header
286
+ * is not sorted, returns null so that the attribute is removed from the host element. Aria spec
287
+ * says that the aria-sort property should only be present on one header at a time, so removing
288
+ * ensures this is true.
289
+ */
290
+ _getAriaSortAttribute(): "none" | "ascending" | "descending";
291
+ /** Whether the arrow inside the sort header should be rendered. */
292
+ _renderArrow(): boolean;
293
+ private _updateSortActionDescription;
294
+ /** Handles changes in the sorting state. */
295
+ private _handleStateChanges;
296
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteSortHeader, [null, null, { optional: true; }, { optional: true; }, null, null, { optional: true; }, { optional: true; }]>;
297
+ static ɵcmp: i0.ɵɵComponentDeclaration<CuteSortHeader, "[cute-sort-header]", ["cuteSortHeader"], { "id": { "alias": "cute-sort-header"; "required": false; }; "arrowPosition": { "alias": "arrowPosition"; "required": false; }; "start": { "alias": "start"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "sortActionDescription": { "alias": "sortActionDescription"; "required": false; }; "disableClear": { "alias": "disableClear"; "required": false; }; }, {}, never, ["*"], true, never>;
298
+ static ngAcceptInputType_disabled: unknown;
299
+ static ngAcceptInputType_disableClear: unknown;
300
+ }
301
+
302
+ /**
303
+ * @license Apache-2.0
304
+ *
305
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
306
+ *
307
+ * You may not use this file except in compliance with the License
308
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
309
+ *
310
+ * This code is a modification of the `@angular/material` original
311
+ * code licensed under MIT-style License (https://angular.dev/license).
312
+ */
313
+
314
+ /**
315
+ * Animations used by CuteSort.
316
+ * @docs-private
317
+ */
318
+ declare const cuteSortAnimations: {
319
+ readonly indicator: AnimationTriggerMetadata;
320
+ readonly leftPointer: AnimationTriggerMetadata;
321
+ readonly rightPointer: AnimationTriggerMetadata;
322
+ readonly arrowOpacity: AnimationTriggerMetadata;
323
+ readonly arrowPosition: AnimationTriggerMetadata;
324
+ readonly allowChildren: AnimationTriggerMetadata;
325
+ };
326
+
327
+ declare class CuteSortModule {
328
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteSortModule, never>;
329
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CuteSortModule, never, [typeof i1.CommonModule, typeof CuteSort, typeof CuteSortHeader], [typeof CuteSort, typeof CuteSortHeader]>;
330
+ static ɵinj: i0.ɵɵInjectorDeclaration<CuteSortModule>;
331
+ }
332
+
333
+ export { CUTE_SORT_DEFAULT_OPTIONS, CUTE_SORT_HEADER_INTL_PROVIDER, CUTE_SORT_HEADER_INTL_PROVIDER_FACTORY, CuteSort, CuteSortHeader, CuteSortHeaderIntl, CuteSortModule, cuteSortAnimations };
334
+ export type { ArrowViewState, ArrowViewStateTransition, CuteSortDefaultOptions, CuteSortable, Sort, SortDirection, SortHeaderArrowPosition };
@@ -0,0 +1,70 @@
1
+ import * as i0 from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
3
+ import { CuteBaseControl } from '@cute-widgets/base/abstract';
4
+ import { RelativeSize3 } from '@cute-widgets/base/core';
5
+ import { RichThemeColor } from '@cute-widgets/base/core/theming';
6
+ import * as i1 from '@angular/common';
7
+
8
+ /**
9
+ * @license Apache-2.0
10
+ *
11
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
12
+ *
13
+ * You may not use this file except in compliance with the License
14
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
15
+ */
16
+
17
+ /** Possible mode for a progress spinner. */
18
+ type ProgressSpinnerMode = 'determinate' | 'indeterminate';
19
+ /** Default `cute-progress-spinner` options that can be overridden. */
20
+ interface CuteProgressSpinnerDefaultOptions {
21
+ /**
22
+ * Default theme color of the progress spinner. */
23
+ color?: RichThemeColor;
24
+ /** Diameter of the spinner. */
25
+ diameter?: number;
26
+ /** Relative size of the spinner. */
27
+ magnitude?: RelativeSize3;
28
+ /** Width of the spinner's stroke. */
29
+ strokeWidth?: number;
30
+ }
31
+ /** Injection token to be used to override the default options for `cute-progress-spinner`. */
32
+ declare const CUTE_PROGRESS_SPINNER_DEFAULT_OPTIONS: InjectionToken<CuteProgressSpinnerDefaultOptions>;
33
+ /**
34
+ * Spinner can be used to indicate the loading state or the execution of some time-consuming process in the project.
35
+ */
36
+ declare class CuteProgressSpinner extends CuteBaseControl {
37
+ /** Mode of the progress spinner. Default is `indeterminate`. */
38
+ mode: ProgressSpinnerMode;
39
+ /** Value of the progress bar. Defaults to zero. Mirrored to aria-valuenow. */
40
+ get value(): number;
41
+ set value(v: number);
42
+ private _value;
43
+ /** Switch to grow-type spinner. */
44
+ growing: boolean;
45
+ /** Relative size of the spinner */
46
+ magnitude: RelativeSize3 | undefined;
47
+ /** Stroke width of the bordered progress spinner. */
48
+ get strokeWidth(): string | undefined;
49
+ set strokeWidth(value: string | number | undefined);
50
+ private _strokeWidth;
51
+ /** Diameter of the progress spinner. */
52
+ get diameter(): string | undefined;
53
+ set diameter(value: string | number | undefined);
54
+ private _diameter;
55
+ constructor(...args: unknown[]);
56
+ protected generateId(): string;
57
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteProgressSpinner, never>;
58
+ static ɵcmp: i0.ɵɵComponentDeclaration<CuteProgressSpinner, "cute-progress-spinner, cute-spinner", ["cuteProgressSpinner"], { "mode": { "alias": "mode"; "required": false; }; "value": { "alias": "value"; "required": false; }; "growing": { "alias": "growing"; "required": false; }; "magnitude": { "alias": "magnitude"; "required": false; }; "strokeWidth": { "alias": "strokeWidth"; "required": false; }; "diameter": { "alias": "diameter"; "required": false; }; }, {}, never, never, true, never>;
59
+ static ngAcceptInputType_value: unknown;
60
+ static ngAcceptInputType_growing: unknown;
61
+ }
62
+
63
+ declare class CuteProgressSpinnerModule {
64
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteProgressSpinnerModule, never>;
65
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CuteProgressSpinnerModule, never, [typeof i1.CommonModule, typeof CuteProgressSpinner], [typeof CuteProgressSpinner]>;
66
+ static ɵinj: i0.ɵɵInjectorDeclaration<CuteProgressSpinnerModule>;
67
+ }
68
+
69
+ export { CUTE_PROGRESS_SPINNER_DEFAULT_OPTIONS, CuteProgressSpinner, CuteProgressSpinnerModule };
70
+ export type { CuteProgressSpinnerDefaultOptions, ProgressSpinnerMode };