@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,484 @@
1
+ import * as i0 from '@angular/core';
2
+ import { ViewContainerRef, Injector, OnDestroy, EventEmitter, ComponentRef, OnInit, TemplateRef, InjectionToken, OnChanges, ElementRef, SimpleChanges } from '@angular/core';
3
+ import { HorizontalEdge, LayoutBreakpoint } from '@cute-widgets/base/core/types';
4
+ import { DragAxis, CdkDrag } from '@angular/cdk/drag-drop';
5
+ import { Direction } from '@angular/cdk/bidi';
6
+ import { ScrollStrategy, OverlayRef, ComponentType } from '@angular/cdk/overlay';
7
+ import { DialogConfig, CdkDialogContainer, DialogRef, Dialog } from '@angular/cdk/dialog';
8
+ import { ComponentPortal } from '@angular/cdk/portal';
9
+ import { FocusOrigin } from '@angular/cdk/a11y';
10
+ import { Observable, Subject } from 'rxjs';
11
+ import * as i1 from '@angular/common';
12
+
13
+ declare class CuteDialogBody {
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteDialogBody, never>;
15
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CuteDialogBody, "cute-dialog-body, [cute-dialog-body], [cuteDialogBody], cute-dialog-content, [cute-dialog-content], [cuteDialogContent] ", ["cuteDialogBody"], {}, {}, never, never, true, never>;
16
+ }
17
+
18
+ declare class CuteDialogFooter {
19
+ /** Horizontal alignment of the footer's content */
20
+ align: HorizontalEdge | 'center';
21
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteDialogFooter, never>;
22
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CuteDialogFooter, "cute-dialog-footer, [cute-dialog-footer], [cuteDialogFooter], cute-dialog-actions, [cute-dialog-actions], [cuteDialogActions] ", ["cuteDialogFooter", "cuteDialogActions"], { "align": { "alias": "align"; "required": false; }; }, {}, never, never, true, never>;
23
+ }
24
+
25
+ /**
26
+ * @license Apache-2.0
27
+ *
28
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
29
+ *
30
+ * You may not use this file except in compliance with the License
31
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
32
+ *
33
+ * This code is a modification of the `@angular/material` original
34
+ * code licensed under MIT-style License (https://angular.dev/license).
35
+ */
36
+
37
+ /** Options for where to set focus to automatically on dialog open */
38
+ type AutoFocusTarget = 'dialog' | 'first-tabbable' | 'first-heading';
39
+ /** Valid ARIA roles for a dialog element. */
40
+ type DialogRole = 'dialog' | 'alertdialog';
41
+ /** Full-screen strategy for a dialog element */
42
+ type DialogFullScreenStrategy = 'fullscreen' | `fullscreen-${LayoutBreakpoint}`;
43
+ /** Possible overrides for a dialog's position. */
44
+ interface DialogPosition {
45
+ /** Override for the dialog's top position. */
46
+ top?: string;
47
+ /** Override for the dialog's bottom position. */
48
+ bottom?: string;
49
+ /** Override for the dialog's left position. */
50
+ left?: string;
51
+ /** Override for the dialog's right position. */
52
+ right?: string;
53
+ }
54
+ /**
55
+ * Configuration for opening a modal dialog with the `CuteDialog` service.
56
+ */
57
+ declare class CuteDialogConfig<D = any> {
58
+ /**
59
+ * Where the attached component should live in an Angular *logical* component tree.
60
+ * This affects what is available for injection and the change detection order for the
61
+ * component instantiated inside the dialog. This does not affect where the dialog
62
+ * content will be rendered.
63
+ */
64
+ viewContainerRef?: ViewContainerRef;
65
+ /**
66
+ * Injector used for the instantiation of the component to be attached. If provided,
67
+ * take precedence over the injector indirectly provided by `ViewContainerRef`.
68
+ */
69
+ injector?: Injector;
70
+ /** ID for the dialog. If omitted, a unique one will be generated. */
71
+ id?: string;
72
+ /** The ARIA role of the dialog element. */
73
+ role?: DialogRole;
74
+ /** Custom class for the overlay pane. */
75
+ panelClass?: string | string[];
76
+ /** Whether the dialog has a backdrop. */
77
+ hasBackdrop?: boolean;
78
+ /** Custom class for the backdrop. */
79
+ backdropClass?: string | string[];
80
+ /** Whether the user can use escape or clicking on the backdrop to close the modal. */
81
+ disableClose?: boolean;
82
+ /** Function used to determine whether the dialog is allowed to close. */
83
+ closePredicate?: <Result = unknown, Component = unknown, Config extends DialogConfig = CuteDialogConfig>(result: Result | undefined, config: Config, componentInstance: Component | null) => boolean;
84
+ /** Width of the dialog. */
85
+ width?: string;
86
+ /** Height of the dialog. */
87
+ height?: string;
88
+ /** Min-width of the dialog. If a number is provided, assumes pixel units. */
89
+ minWidth?: number | string;
90
+ /** Min-height of the dialog. If a number is provided, assumes pixel units. */
91
+ minHeight?: number | string;
92
+ /** Max-width of the dialog. If a number is provided, assumes pixel units. Defaults to 80vw. */
93
+ maxWidth?: number | string;
94
+ /** Max-height of the dialog. If a number is provided, assumes pixel units. */
95
+ maxHeight?: number | string;
96
+ /** Position overrides. */
97
+ position?: DialogPosition;
98
+ /** Full-screen strategy to be used for the dialog. */
99
+ fullscreenStrategy?: DialogFullScreenStrategy;
100
+ /** Whether the dialog can be dragged at runtime and optionally restrict dragging to a specific axis */
101
+ draggable?: boolean | `${DragAxis}-axis`;
102
+ /** Data being injected into the child component. */
103
+ data?: D | null;
104
+ /** Layout direction for the dialog's content. */
105
+ direction?: Direction;
106
+ /** ID of the element that describes the dialog. */
107
+ ariaDescribedBy?: string | null;
108
+ /** ID of the element that labels the dialog. */
109
+ ariaLabelledBy?: string | null;
110
+ /** Aria label to assign to the dialog element. */
111
+ ariaLabel?: string | null;
112
+ /** Whether this is a modal dialog. Used to set the `aria-modal` attribute. */
113
+ ariaModal?: boolean;
114
+ /**
115
+ * Where the dialog should focus on open.
116
+ */
117
+ autoFocus?: AutoFocusTarget | string;
118
+ /**
119
+ * Whether the dialog should restore focus to the
120
+ * previously focused element, after it's closed.
121
+ */
122
+ restoreFocus?: boolean;
123
+ /** Whether to wait for the opening animation to finish before trapping focus. */
124
+ delayFocusTrap?: boolean;
125
+ /** Scroll strategy to be used for the dialog. */
126
+ scrollStrategy?: ScrollStrategy;
127
+ /**
128
+ * Whether the dialog should close when the user goes backwards/forwards in history.
129
+ * Note that this usually doesn't include clicking on links (unless the user is using
130
+ * the `HashLocationStrategy`).
131
+ */
132
+ closeOnNavigation?: boolean;
133
+ /**
134
+ * Duration of the entered animation in ms.
135
+ */
136
+ enterAnimationDuration?: number;
137
+ /**
138
+ * Duration of the exit animation in ms.
139
+ */
140
+ exitAnimationDuration?: number;
141
+ }
142
+
143
+ /**
144
+ * @license Apache-2.0
145
+ *
146
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
147
+ *
148
+ * You may not use this file except in compliance with the License
149
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
150
+ *
151
+ * This code is a modification of the `@angular/material` original
152
+ * code licensed under MIT-style License (https://angular.dev/license).
153
+ */
154
+
155
+ /** Event that captures the state of dialog container animations. */
156
+ interface LegacyDialogAnimationEvent {
157
+ state: 'opened' | 'opening' | 'closing' | 'closed';
158
+ totalTime: number;
159
+ }
160
+ declare class CuteDialogContainer extends CdkDialogContainer<CuteDialogConfig> implements OnDestroy {
161
+ /** Emits when an animation state changes. */
162
+ _animationStateChanged: EventEmitter<LegacyDialogAnimationEvent>;
163
+ /** Whether animations are enabled. */
164
+ _animationsEnabled: boolean;
165
+ protected _overlayRef: OverlayRef;
166
+ /** Number of actions projected in the dialog. */
167
+ protected _actionSectionCount: number;
168
+ /** Host element of the dialog container component. */
169
+ private _hostElement;
170
+ /** Duration of the dialog open animation. */
171
+ private _enterAnimationDuration;
172
+ /** Duration of the dialog close animation. */
173
+ private _exitAnimationDuration;
174
+ /** Current timer for dialog animations. */
175
+ private _animationTimer;
176
+ constructor();
177
+ /**
178
+ * Whether the Dialog box is opened to the full screen
179
+ */
180
+ isFullScreenDialog(): boolean;
181
+ protected _contentAttached(): void;
182
+ /** Starts the dialog open animation if enabled. */
183
+ private _startOpenAnimation;
184
+ /**
185
+ * Starts the exit animation of the dialog if enabled. This method is
186
+ * called by the dialog ref.
187
+ */
188
+ _startExitAnimation(): void;
189
+ /**
190
+ * Updates the number action sections.
191
+ * @param delta Increase/decrease in the number of sections.
192
+ */
193
+ _updateActionSectionCount(delta: number): void;
194
+ /**
195
+ * Completes the dialog open by clearing potential animation classes, trapping
196
+ * focus and emitting an opened event.
197
+ */
198
+ private _finishDialogOpen;
199
+ /**
200
+ * Completes the dialog close by clearing potential animation classes, restoring
201
+ * focus and emitting a closed event.
202
+ */
203
+ private _finishDialogClose;
204
+ /** Clears all dialog animation classes. */
205
+ private _clearAnimationClasses;
206
+ private _waitForAnimationToComplete;
207
+ /** Runs a callback in `requestAnimationFrame`, if available. */
208
+ private _requestAnimationFrame;
209
+ protected _captureInitialFocus(): void;
210
+ /**
211
+ * Callback for when the open dialog animation has finished. Intended to
212
+ * be called by sub-classes that use different animation implementations.
213
+ */
214
+ protected _openAnimationDone(totalTime: number): void;
215
+ ngOnDestroy(): void;
216
+ attachComponentPortal<T>(portal: ComponentPortal<T>): ComponentRef<T>;
217
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteDialogContainer, never>;
218
+ static ɵcmp: i0.ɵɵComponentDeclaration<CuteDialogContainer, "cute-dialog-container", never, {}, {}, never, never, true, never>;
219
+ }
220
+
221
+ /**
222
+ * @license Apache-2.0
223
+ *
224
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
225
+ *
226
+ * You may not use this file except in compliance with the License
227
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
228
+ *
229
+ * This code is a modification of the `@angular/material` original
230
+ * code licensed under MIT-style License (https://angular.dev/license).
231
+ */
232
+
233
+ declare class CuteDialogHeader implements OnInit {
234
+ protected container: CuteDialogContainer;
235
+ protected cdkDragEl: CdkDrag | undefined;
236
+ protected config: CuteDialogConfig;
237
+ protected isMouseDown: boolean;
238
+ /**
239
+ * Whether it is possible to drag the `Dialog` by grabbing the header section.
240
+ * The default value is the value of the `draggable` property from the `CuteDialogConfig` object,
241
+ * or _false_ if the value is not defined.
242
+ */
243
+ get draggable(): boolean;
244
+ set draggable(value: boolean);
245
+ private _draggable;
246
+ constructor(container: CuteDialogContainer);
247
+ protected getCursorStyle(): string;
248
+ protected onMouseDown(event: MouseEvent): void;
249
+ protected onMouseUp(event: MouseEvent): void;
250
+ ngOnInit(): void;
251
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteDialogHeader, never>;
252
+ static ɵcmp: i0.ɵɵComponentDeclaration<CuteDialogHeader, "cute-dialog-header", ["cuteDialogHeader"], { "draggable": { "alias": "draggable"; "required": false; }; }, {}, never, ["[cute-dialog-title], [cuteDialogTitle]", "*"], true, never>;
253
+ static ngAcceptInputType_draggable: unknown;
254
+ }
255
+
256
+ declare class CuteDialogTitle {
257
+ id: unknown;
258
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteDialogTitle, never>;
259
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CuteDialogTitle, "[cute-dialog-title], [cuteDialogTitle]", ["cuteDialogTitle"], { "id": { "alias": "id"; "required": false; }; }, {}, never, never, true, never>;
260
+ }
261
+
262
+ /**
263
+ * @license Apache-2.0
264
+ *
265
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
266
+ *
267
+ * You may not use this file except in compliance with the License
268
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
269
+ *
270
+ * This code is a modification of the `@angular/material` original
271
+ * code licensed under MIT-style License (https://angular.dev/license).
272
+ */
273
+ /** Possible states of the lifecycle of a dialog. */
274
+
275
+ declare enum CuteDialogState {
276
+ OPEN = 0,
277
+ CLOSING = 1,
278
+ CLOSED = 2
279
+ }
280
+ /**
281
+ * Reference to a dialog opened via the CuteDialog service.
282
+ */
283
+ declare class CuteDialogRef<T, R = any> {
284
+ private _ref;
285
+ private _config;
286
+ protected _containerInstance: CuteDialogContainer;
287
+ /** The instance of component opened into the dialog. */
288
+ componentInstance: T | undefined;
289
+ /**
290
+ * `ComponentRef` of the component opened into the dialog. Will be
291
+ * null when the dialog is opened using a `TemplateRef`.
292
+ */
293
+ readonly componentRef: ComponentRef<T> | null;
294
+ /** Whether the user is allowed to close the dialog. */
295
+ disableClose: boolean | undefined;
296
+ /** Unique ID for the dialog. */
297
+ id: string;
298
+ /** Subject for notifying the user that the dialog has finished opening. */
299
+ private readonly _afterOpened;
300
+ /** Subject for notifying the user that the dialog has started closing. */
301
+ private readonly _beforeClosed;
302
+ /** Result to be passed to afterClosed. */
303
+ private _result;
304
+ /** Handle to the timeout that's running as a fallback in case the exit animation doesn't fire. */
305
+ private _closeFallbackTimeout;
306
+ /** Current state of the dialog. */
307
+ private _state;
308
+ /** Interaction that caused the dialog to close. */
309
+ private _closeInteractionType;
310
+ constructor(_ref: DialogRef<R, T>, _config: CuteDialogConfig, _containerInstance: CuteDialogContainer);
311
+ /**
312
+ * Close the dialog.
313
+ * @param dialogResult Optional result to return to the dialog opener.
314
+ */
315
+ close(dialogResult?: R): void;
316
+ /**
317
+ * Gets an observable notified when the dialog is finished opening.
318
+ */
319
+ afterOpened(): Observable<void>;
320
+ /**
321
+ * Gets an observable notified when the dialog is finished closing.
322
+ */
323
+ afterClosed(): Observable<R | undefined>;
324
+ /**
325
+ * Gets an observable notified when the dialog has started closing.
326
+ */
327
+ beforeClosed(): Observable<R | undefined>;
328
+ /**
329
+ * Gets an observable that emits when the overlay's backdrop has been clicked.
330
+ */
331
+ backdropClick(): Observable<MouseEvent>;
332
+ /**
333
+ * Gets an observable that emits when keydown events are targeted on the overlay.
334
+ */
335
+ keydownEvents(): Observable<KeyboardEvent>;
336
+ /**
337
+ * Updates the dialog's position.
338
+ * @param position New dialog position.
339
+ */
340
+ updatePosition(position?: DialogPosition): this;
341
+ /**
342
+ * Updates the dialog's width and height.
343
+ * @param width New width of the dialog.
344
+ * @param height New height of the dialog.
345
+ */
346
+ updateSize(width?: string, height?: string): this;
347
+ /** Add a CSS class or an array of classes to the overlay pane. */
348
+ addPanelClass(classes: string | string[]): this;
349
+ /** Remove a CSS class or an array of classes from the overlay pane. */
350
+ removePanelClass(classes: string | string[]): this;
351
+ /** Checks if the panel contains the specified CSS class */
352
+ hasPanelClass(className: string): boolean;
353
+ /** Gets the current state of the dialog's lifecycle. */
354
+ getState(): CuteDialogState;
355
+ /**
356
+ * Finishes the dialog close by updating the state of the dialog
357
+ * and disposing the overlay.
358
+ */
359
+ private _finishDialogClose;
360
+ }
361
+ /**
362
+ * Closes the dialog with the specified interaction type. This is currently not part of
363
+ * `CuteDialogRef` as that would conflict with custom dialog ref mocks provided in tests.
364
+ * More details. See: https://github.com/angular/components/pull/9257#issuecomment-651342226.
365
+ */
366
+ declare function _closeDialogVia<R>(ref: CuteDialogRef<R>, interactionType: FocusOrigin, result?: R): void;
367
+
368
+ /**
369
+ * @license Apache-2.0
370
+ *
371
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
372
+ *
373
+ * You may not use this file except in compliance with the License
374
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
375
+ *
376
+ * This code is a modification of the `@angular/material` original
377
+ * code licensed under MIT-style License (https://angular.dev/license).
378
+ */
379
+
380
+ /** Injection token that can be used to access the data that was passed in to a dialog. */
381
+ declare const CUTE_DIALOG_DATA: InjectionToken<any>;
382
+ /** Injection token that can be used to specify default dialog options. */
383
+ declare const CUTE_DIALOG_DEFAULT_OPTIONS: InjectionToken<CuteDialogConfig<any>>;
384
+ /** Injection token that determines the scroll handling while the dialog is open. */
385
+ declare const CUTE_DIALOG_SCROLL_STRATEGY: InjectionToken<() => ScrollStrategy>;
386
+ /**
387
+ * Service to open `Bootstrap` modal controls
388
+ */
389
+ declare class CuteDialog implements OnDestroy {
390
+ private _overlay;
391
+ private _defaultOptions;
392
+ private _scrollStrategy;
393
+ private _parentDialog;
394
+ protected _dialog: Dialog;
395
+ private readonly _openDialogsAtThisLevel;
396
+ private readonly _afterAllClosedAtThisLevel;
397
+ private readonly _afterOpenedAtThisLevel;
398
+ private readonly _dialogRefConstructor;
399
+ private readonly _dialogContainerType;
400
+ private readonly _dialogDataToken;
401
+ protected dialogConfigClass: typeof CuteDialogConfig;
402
+ /** Keeps track of the currently open dialogs. */
403
+ get openDialogs(): CuteDialogRef<any>[];
404
+ /** Stream that emits when a dialog has been opened. */
405
+ get afterOpened(): Subject<CuteDialogRef<any>>;
406
+ private _getAfterAllClosed;
407
+ /**
408
+ * Stream that emits when all open dialogs have finished closing.
409
+ * Will emit on subscribing if there are no open dialogs to begin with.
410
+ */
411
+ readonly afterAllClosed: Observable<void>;
412
+ constructor(...args: unknown[]);
413
+ /**
414
+ * Opens a modal dialog containing the given component.
415
+ * @param component Type of the component to load into the dialog.
416
+ * @param config Extra configuration options.
417
+ * @returns Reference to the newly opened dialog.
418
+ */
419
+ open<T, D = any, R = any>(component: ComponentType<T>, config?: CuteDialogConfig<D>): CuteDialogRef<T, R>;
420
+ /**
421
+ * Opens a modal dialog containing the given template.
422
+ * @param template TemplateRef to instantiate as the dialog content.
423
+ * @param config Extra configuration options.
424
+ * @returns Reference to the newly opened dialog.
425
+ */
426
+ open<T, D = any, R = any>(template: TemplateRef<T>, config?: CuteDialogConfig<D>): CuteDialogRef<T, R>;
427
+ open<T, D = any, R = any>(template: ComponentType<T> | TemplateRef<T>, config?: CuteDialogConfig<D>): CuteDialogRef<T, R>;
428
+ /**
429
+ * Closes all the currently open dialogs.
430
+ */
431
+ closeAll(): void;
432
+ /**
433
+ * Finds an open dialog by its id.
434
+ * @param id ID to use when looking up the dialog.
435
+ */
436
+ getDialogById(id: string): CuteDialogRef<any> | undefined;
437
+ ngOnDestroy(): void;
438
+ private _closeDialogs;
439
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteDialog, never>;
440
+ static ɵprov: i0.ɵɵInjectableDeclaration<CuteDialog>;
441
+ }
442
+
443
+ /**
444
+ * @license Apache-2.0
445
+ *
446
+ * Copyright (c) 2025 CuteWidgets Team. All Rights Reserved.
447
+ *
448
+ * You may not use this file except in compliance with the License
449
+ * that can be found at http://www.apache.org/licenses/LICENSE-2.0
450
+ *
451
+ * This code is a modification of the `@angular/material` original
452
+ * code licensed under MIT-style License (https://angular.dev/license).
453
+ */
454
+
455
+ /**
456
+ * Button that will close the current dialog.
457
+ */
458
+ declare class CuteDialogClose implements OnInit, OnChanges {
459
+ dialogRef: CuteDialogRef<any>;
460
+ private _elementRef;
461
+ private _dialog;
462
+ /** Screen-reader label for the button. */
463
+ ariaLabel: string | undefined;
464
+ /** Default to "button" to prevent accidental form submits. */
465
+ type: 'submit' | 'button' | 'reset';
466
+ /** Dialog close input. */
467
+ dialogResult: any;
468
+ _cuteDialogClose: any;
469
+ constructor(dialogRef: CuteDialogRef<any>, _elementRef: ElementRef<HTMLElement>, _dialog: CuteDialog);
470
+ ngOnInit(): void;
471
+ ngOnChanges(changes: SimpleChanges): void;
472
+ protected _onButtonClick(event: MouseEvent): void;
473
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteDialogClose, [{ optional: true; }, null, null]>;
474
+ static ɵdir: i0.ɵɵDirectiveDeclaration<CuteDialogClose, "[cute-dialog-close], [cuteDialogClose]", ["cuteDialogClose"], { "ariaLabel": { "alias": "aria-label"; "required": false; }; "type": { "alias": "type"; "required": false; }; "dialogResult": { "alias": "cute-dialog-close"; "required": false; }; "_cuteDialogClose": { "alias": "cuteDialogClose"; "required": false; }; }, {}, never, never, true, never>;
475
+ }
476
+
477
+ declare class CuteDialogModule {
478
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteDialogModule, never>;
479
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CuteDialogModule, never, [typeof i1.CommonModule, typeof CuteDialogBody, typeof CuteDialogClose, typeof CuteDialogFooter, typeof CuteDialogHeader, typeof CuteDialogTitle, typeof CuteDialogContainer], [typeof CuteDialogBody, typeof CuteDialogClose, typeof CuteDialogFooter, typeof CuteDialogHeader, typeof CuteDialogTitle, typeof CuteDialogContainer]>;
480
+ static ɵinj: i0.ɵɵInjectorDeclaration<CuteDialogModule>;
481
+ }
482
+
483
+ export { CUTE_DIALOG_DATA, CUTE_DIALOG_DEFAULT_OPTIONS, CUTE_DIALOG_SCROLL_STRATEGY, CuteDialog, CuteDialogBody, CuteDialogClose, CuteDialogConfig, CuteDialogContainer, CuteDialogFooter, CuteDialogHeader, CuteDialogModule, CuteDialogRef, CuteDialogState, CuteDialogTitle, _closeDialogVia };
484
+ export type { AutoFocusTarget, DialogFullScreenStrategy, DialogPosition, DialogRole };
@@ -0,0 +1,24 @@
1
+ import * as i0 from '@angular/core';
2
+ import * as i1 from '@angular/common';
3
+
4
+ declare class CuteDivider {
5
+ /** Divider's line style. */
6
+ lineStyle: "solid" | "double" | "dotted" | "dashed" | "shelf" | "blurry" | "washed" | "gradient";
7
+ /** Whether the divider is vertically aligned. */
8
+ vertical: boolean;
9
+ /** Whether the divider is an inset divider. */
10
+ inset: boolean;
11
+ get classBinding(): string;
12
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteDivider, never>;
13
+ static ɵcmp: i0.ɵɵComponentDeclaration<CuteDivider, "cute-divider", never, { "lineStyle": { "alias": "lineStyle"; "required": false; }; "vertical": { "alias": "vertical"; "required": false; }; "inset": { "alias": "inset"; "required": false; }; }, {}, never, never, true, never>;
14
+ static ngAcceptInputType_vertical: unknown;
15
+ static ngAcceptInputType_inset: unknown;
16
+ }
17
+
18
+ declare class CuteDividerModule {
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<CuteDividerModule, never>;
20
+ static ɵmod: i0.ɵɵNgModuleDeclaration<CuteDividerModule, never, [typeof i1.CommonModule, typeof CuteDivider], [typeof CuteDivider]>;
21
+ static ɵinj: i0.ɵɵInjectorDeclaration<CuteDividerModule>;
22
+ }
23
+
24
+ export { CuteDivider, CuteDividerModule };
@@ -0,0 +1,8 @@
1
+ An `cute-accordion` is a component with one or more expandable sections implemented as
2
+ `cute-expansion-panel` components.
3
+
4
+ The source code of this package is a revised version of the eponymous package in the
5
+ _Angular Material_ library. The source MIT-style license file at https://angular.dev/license.
6
+
7
+ Copyright(c) ALEXANDER STRELKOV, All Rights Reserved.
8
+ Apache license, Version 2.0.