@frame-ui-ng/components 0.1.0-beta.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 (249) hide show
  1. package/LICENSE.md +9 -0
  2. package/README.md +31 -0
  3. package/accordion/src/styles/_vars.css +25 -0
  4. package/accordion/src/styles/accordion.css +87 -0
  5. package/alert/src/styles/_vars.css +28 -0
  6. package/alert/src/styles/alert.css +77 -0
  7. package/avatar/src/styles/_vars.css +34 -0
  8. package/avatar/src/styles/avatar.css +209 -0
  9. package/badge/src/styles/_vars.css +16 -0
  10. package/badge/src/styles/badge.css +125 -0
  11. package/breadcrumb/src/styles/_vars.css +16 -0
  12. package/breadcrumb/src/styles/breadcrumb.css +98 -0
  13. package/button/src/styles/_vars.css +20 -0
  14. package/button/src/styles/button-icon.css +18 -0
  15. package/button/src/styles/button-label.css +3 -0
  16. package/button/src/styles/button.css +243 -0
  17. package/button-group/src/styles/button-group.css +69 -0
  18. package/calendar/src/styles/_vars.css +29 -0
  19. package/calendar/src/styles/calendar.css +226 -0
  20. package/card/src/styles/_vars.css +17 -0
  21. package/card/src/styles/card.css +142 -0
  22. package/carousel/src/styles/_vars.css +7 -0
  23. package/carousel/src/styles/carousel.css +89 -0
  24. package/checkbox/src/styles/_vars.css +22 -0
  25. package/checkbox/src/styles/checkbox.css +95 -0
  26. package/collapsible/src/styles/_vars.css +13 -0
  27. package/collapsible/src/styles/collapsible.css +42 -0
  28. package/combobox/src/styles/_vars.css +60 -0
  29. package/combobox/src/styles/combobox.css +285 -0
  30. package/command/src/styles/_vars.css +37 -0
  31. package/command/src/styles/command.css +171 -0
  32. package/context-menu/src/styles/context-menu.css +5 -0
  33. package/date-picker/src/styles/_vars.css +29 -0
  34. package/date-picker/src/styles/date-picker.css +177 -0
  35. package/dropdown-menu/src/styles/_vars.css +34 -0
  36. package/dropdown-menu/src/styles/dropdown-menu-item.css +87 -0
  37. package/dropdown-menu/src/styles/dropdown-menu-motion.css +42 -0
  38. package/dropdown-menu/src/styles/dropdown-menu-panel.css +26 -0
  39. package/dropdown-menu/src/styles/dropdown-menu.css +4 -0
  40. package/empty/src/styles/_vars.css +23 -0
  41. package/empty/src/styles/empty.css +108 -0
  42. package/fesm2022/frame-ui-ng-components-accordion.mjs +268 -0
  43. package/fesm2022/frame-ui-ng-components-accordion.mjs.map +1 -0
  44. package/fesm2022/frame-ui-ng-components-alert.mjs +102 -0
  45. package/fesm2022/frame-ui-ng-components-alert.mjs.map +1 -0
  46. package/fesm2022/frame-ui-ng-components-avatar.mjs +197 -0
  47. package/fesm2022/frame-ui-ng-components-avatar.mjs.map +1 -0
  48. package/fesm2022/frame-ui-ng-components-badge.mjs +120 -0
  49. package/fesm2022/frame-ui-ng-components-badge.mjs.map +1 -0
  50. package/fesm2022/frame-ui-ng-components-breadcrumb.mjs +156 -0
  51. package/fesm2022/frame-ui-ng-components-breadcrumb.mjs.map +1 -0
  52. package/fesm2022/frame-ui-ng-components-button-group.mjs +44 -0
  53. package/fesm2022/frame-ui-ng-components-button-group.mjs.map +1 -0
  54. package/fesm2022/frame-ui-ng-components-button.mjs +150 -0
  55. package/fesm2022/frame-ui-ng-components-button.mjs.map +1 -0
  56. package/fesm2022/frame-ui-ng-components-calendar.mjs +559 -0
  57. package/fesm2022/frame-ui-ng-components-calendar.mjs.map +1 -0
  58. package/fesm2022/frame-ui-ng-components-card.mjs +169 -0
  59. package/fesm2022/frame-ui-ng-components-card.mjs.map +1 -0
  60. package/fesm2022/frame-ui-ng-components-carousel.mjs +454 -0
  61. package/fesm2022/frame-ui-ng-components-carousel.mjs.map +1 -0
  62. package/fesm2022/frame-ui-ng-components-checkbox.mjs +83 -0
  63. package/fesm2022/frame-ui-ng-components-checkbox.mjs.map +1 -0
  64. package/fesm2022/frame-ui-ng-components-collapsible.mjs +191 -0
  65. package/fesm2022/frame-ui-ng-components-collapsible.mjs.map +1 -0
  66. package/fesm2022/frame-ui-ng-components-combobox.mjs +859 -0
  67. package/fesm2022/frame-ui-ng-components-combobox.mjs.map +1 -0
  68. package/fesm2022/frame-ui-ng-components-command.mjs +658 -0
  69. package/fesm2022/frame-ui-ng-components-command.mjs.map +1 -0
  70. package/fesm2022/frame-ui-ng-components-context-menu.mjs +579 -0
  71. package/fesm2022/frame-ui-ng-components-context-menu.mjs.map +1 -0
  72. package/fesm2022/frame-ui-ng-components-date-picker.mjs +512 -0
  73. package/fesm2022/frame-ui-ng-components-date-picker.mjs.map +1 -0
  74. package/fesm2022/frame-ui-ng-components-dropdown-menu.mjs +647 -0
  75. package/fesm2022/frame-ui-ng-components-dropdown-menu.mjs.map +1 -0
  76. package/fesm2022/frame-ui-ng-components-empty.mjs +134 -0
  77. package/fesm2022/frame-ui-ng-components-empty.mjs.map +1 -0
  78. package/fesm2022/frame-ui-ng-components-field.mjs +210 -0
  79. package/fesm2022/frame-ui-ng-components-field.mjs.map +1 -0
  80. package/fesm2022/frame-ui-ng-components-forms.mjs +89 -0
  81. package/fesm2022/frame-ui-ng-components-forms.mjs.map +1 -0
  82. package/fesm2022/frame-ui-ng-components-hover-card.mjs +412 -0
  83. package/fesm2022/frame-ui-ng-components-hover-card.mjs.map +1 -0
  84. package/fesm2022/frame-ui-ng-components-input-otp.mjs +327 -0
  85. package/fesm2022/frame-ui-ng-components-input-otp.mjs.map +1 -0
  86. package/fesm2022/frame-ui-ng-components-input.mjs +250 -0
  87. package/fesm2022/frame-ui-ng-components-input.mjs.map +1 -0
  88. package/fesm2022/frame-ui-ng-components-item.mjs +207 -0
  89. package/fesm2022/frame-ui-ng-components-item.mjs.map +1 -0
  90. package/fesm2022/frame-ui-ng-components-menubar.mjs +371 -0
  91. package/fesm2022/frame-ui-ng-components-menubar.mjs.map +1 -0
  92. package/fesm2022/frame-ui-ng-components-modal.mjs +525 -0
  93. package/fesm2022/frame-ui-ng-components-modal.mjs.map +1 -0
  94. package/fesm2022/frame-ui-ng-components-navigation-menu.mjs +322 -0
  95. package/fesm2022/frame-ui-ng-components-navigation-menu.mjs.map +1 -0
  96. package/fesm2022/frame-ui-ng-components-pagination.mjs +327 -0
  97. package/fesm2022/frame-ui-ng-components-pagination.mjs.map +1 -0
  98. package/fesm2022/frame-ui-ng-components-popover.mjs +454 -0
  99. package/fesm2022/frame-ui-ng-components-popover.mjs.map +1 -0
  100. package/fesm2022/frame-ui-ng-components-progress.mjs +96 -0
  101. package/fesm2022/frame-ui-ng-components-progress.mjs.map +1 -0
  102. package/fesm2022/frame-ui-ng-components-radio-group.mjs +124 -0
  103. package/fesm2022/frame-ui-ng-components-radio-group.mjs.map +1 -0
  104. package/fesm2022/frame-ui-ng-components-resizable.mjs +325 -0
  105. package/fesm2022/frame-ui-ng-components-resizable.mjs.map +1 -0
  106. package/fesm2022/frame-ui-ng-components-select.mjs +434 -0
  107. package/fesm2022/frame-ui-ng-components-select.mjs.map +1 -0
  108. package/fesm2022/frame-ui-ng-components-separator.mjs +51 -0
  109. package/fesm2022/frame-ui-ng-components-separator.mjs.map +1 -0
  110. package/fesm2022/frame-ui-ng-components-sheet.mjs +514 -0
  111. package/fesm2022/frame-ui-ng-components-sheet.mjs.map +1 -0
  112. package/fesm2022/frame-ui-ng-components-sidebar.mjs +628 -0
  113. package/fesm2022/frame-ui-ng-components-sidebar.mjs.map +1 -0
  114. package/fesm2022/frame-ui-ng-components-skeleton.mjs +46 -0
  115. package/fesm2022/frame-ui-ng-components-skeleton.mjs.map +1 -0
  116. package/fesm2022/frame-ui-ng-components-slider.mjs +279 -0
  117. package/fesm2022/frame-ui-ng-components-slider.mjs.map +1 -0
  118. package/fesm2022/frame-ui-ng-components-spinner.mjs +51 -0
  119. package/fesm2022/frame-ui-ng-components-spinner.mjs.map +1 -0
  120. package/fesm2022/frame-ui-ng-components-switch.mjs +130 -0
  121. package/fesm2022/frame-ui-ng-components-switch.mjs.map +1 -0
  122. package/fesm2022/frame-ui-ng-components-table.mjs +594 -0
  123. package/fesm2022/frame-ui-ng-components-table.mjs.map +1 -0
  124. package/fesm2022/frame-ui-ng-components-tabs.mjs +208 -0
  125. package/fesm2022/frame-ui-ng-components-tabs.mjs.map +1 -0
  126. package/fesm2022/frame-ui-ng-components-textarea.mjs +40 -0
  127. package/fesm2022/frame-ui-ng-components-textarea.mjs.map +1 -0
  128. package/fesm2022/frame-ui-ng-components-toast.mjs +346 -0
  129. package/fesm2022/frame-ui-ng-components-toast.mjs.map +1 -0
  130. package/fesm2022/frame-ui-ng-components-toggle.mjs +127 -0
  131. package/fesm2022/frame-ui-ng-components-toggle.mjs.map +1 -0
  132. package/fesm2022/frame-ui-ng-components-tooltip.mjs +425 -0
  133. package/fesm2022/frame-ui-ng-components-tooltip.mjs.map +1 -0
  134. package/fesm2022/frame-ui-ng-components-virtual-scroll.mjs +321 -0
  135. package/fesm2022/frame-ui-ng-components-virtual-scroll.mjs.map +1 -0
  136. package/fesm2022/frame-ui-ng-components.mjs +10278 -0
  137. package/fesm2022/frame-ui-ng-components.mjs.map +1 -0
  138. package/field/src/styles/_vars.css +20 -0
  139. package/field/src/styles/field.css +165 -0
  140. package/hover-card/src/styles/_vars.css +21 -0
  141. package/hover-card/src/styles/hover-card.css +76 -0
  142. package/input/src/styles/_vars.css +65 -0
  143. package/input/src/styles/input-group.css +112 -0
  144. package/input/src/styles/input.css +163 -0
  145. package/input-otp/src/styles/_vars.css +21 -0
  146. package/input-otp/src/styles/input-otp.css +116 -0
  147. package/item/src/styles/_vars.css +34 -0
  148. package/item/src/styles/item.css +187 -0
  149. package/menubar/src/styles/_vars.css +22 -0
  150. package/menubar/src/styles/menubar.css +70 -0
  151. package/modal/src/styles/_vars.css +18 -0
  152. package/modal/src/styles/modal.css +179 -0
  153. package/navigation-menu/src/styles/_vars.css +45 -0
  154. package/navigation-menu/src/styles/navigation-menu.css +245 -0
  155. package/package.json +243 -0
  156. package/pagination/src/styles/_vars.css +22 -0
  157. package/pagination/src/styles/pagination.css +138 -0
  158. package/popover/src/styles/_vars.css +24 -0
  159. package/popover/src/styles/popover.css +101 -0
  160. package/progress/src/styles/_vars.css +15 -0
  161. package/progress/src/styles/progress.css +64 -0
  162. package/radio-group/src/styles/_vars.css +29 -0
  163. package/radio-group/src/styles/radio-group.css +137 -0
  164. package/resizable/src/styles/_vars.css +20 -0
  165. package/resizable/src/styles/resizable.css +130 -0
  166. package/select/src/styles/_vars.css +28 -0
  167. package/select/src/styles/select-content.css +19 -0
  168. package/select/src/styles/select-feedback.css +6 -0
  169. package/select/src/styles/select-item.css +69 -0
  170. package/select/src/styles/select-trigger.css +95 -0
  171. package/select/src/styles/select.css +5 -0
  172. package/separator/src/styles/_vars.css +9 -0
  173. package/separator/src/styles/separator.css +25 -0
  174. package/sheet/src/styles/_vars.css +18 -0
  175. package/sheet/src/styles/sheet.css +215 -0
  176. package/sidebar/src/styles/_vars.css +24 -0
  177. package/sidebar/src/styles/sidebar.css +531 -0
  178. package/skeleton/src/styles/_vars.css +8 -0
  179. package/skeleton/src/styles/skeleton.css +40 -0
  180. package/slider/src/styles/_vars.css +17 -0
  181. package/slider/src/styles/slider.css +147 -0
  182. package/spinner/src/styles/_vars.css +9 -0
  183. package/spinner/src/styles/spinner.css +62 -0
  184. package/src/styles/components.css +47 -0
  185. package/styles/components.css +47 -0
  186. package/styles.css +49 -0
  187. package/switch/src/styles/_vars.css +34 -0
  188. package/switch/src/styles/switch.css +131 -0
  189. package/table/src/styles/_vars.css +25 -0
  190. package/table/src/styles/table.css +245 -0
  191. package/tabs/src/styles/_vars.css +23 -0
  192. package/tabs/src/styles/tabs.css +164 -0
  193. package/textarea/src/styles/_vars.css +20 -0
  194. package/textarea/src/styles/textarea.css +60 -0
  195. package/toast/src/styles/_vars.css +47 -0
  196. package/toast/src/styles/toast.css +314 -0
  197. package/toggle/src/styles/_vars.css +24 -0
  198. package/toggle/src/styles/toggle.css +110 -0
  199. package/tooltip/src/styles/_vars.css +21 -0
  200. package/tooltip/src/styles/tooltip.css +103 -0
  201. package/types/frame-ui-ng-components-accordion.d.ts +75 -0
  202. package/types/frame-ui-ng-components-alert.d.ts +30 -0
  203. package/types/frame-ui-ng-components-avatar.d.ts +65 -0
  204. package/types/frame-ui-ng-components-badge.d.ts +35 -0
  205. package/types/frame-ui-ng-components-breadcrumb.d.ts +40 -0
  206. package/types/frame-ui-ng-components-button-group.d.ts +18 -0
  207. package/types/frame-ui-ng-components-button.d.ts +50 -0
  208. package/types/frame-ui-ng-components-calendar.d.ts +101 -0
  209. package/types/frame-ui-ng-components-card.d.ts +51 -0
  210. package/types/frame-ui-ng-components-carousel.d.ts +117 -0
  211. package/types/frame-ui-ng-components-checkbox.d.ts +25 -0
  212. package/types/frame-ui-ng-components-collapsible.d.ts +55 -0
  213. package/types/frame-ui-ng-components-combobox.d.ts +201 -0
  214. package/types/frame-ui-ng-components-command.d.ts +198 -0
  215. package/types/frame-ui-ng-components-context-menu.d.ts +149 -0
  216. package/types/frame-ui-ng-components-date-picker.d.ts +95 -0
  217. package/types/frame-ui-ng-components-dropdown-menu.d.ts +182 -0
  218. package/types/frame-ui-ng-components-empty.d.ts +44 -0
  219. package/types/frame-ui-ng-components-field.d.ts +60 -0
  220. package/types/frame-ui-ng-components-forms.d.ts +39 -0
  221. package/types/frame-ui-ng-components-hover-card.d.ts +94 -0
  222. package/types/frame-ui-ng-components-input-otp.d.ts +70 -0
  223. package/types/frame-ui-ng-components-input.d.ts +67 -0
  224. package/types/frame-ui-ng-components-item.d.ts +62 -0
  225. package/types/frame-ui-ng-components-menubar.d.ts +76 -0
  226. package/types/frame-ui-ng-components-modal.d.ts +148 -0
  227. package/types/frame-ui-ng-components-navigation-menu.d.ts +74 -0
  228. package/types/frame-ui-ng-components-pagination.d.ts +79 -0
  229. package/types/frame-ui-ng-components-popover.d.ts +95 -0
  230. package/types/frame-ui-ng-components-progress.d.ts +24 -0
  231. package/types/frame-ui-ng-components-radio-group.d.ts +40 -0
  232. package/types/frame-ui-ng-components-resizable.d.ts +61 -0
  233. package/types/frame-ui-ng-components-select.d.ts +114 -0
  234. package/types/frame-ui-ng-components-separator.d.ts +19 -0
  235. package/types/frame-ui-ng-components-sheet.d.ts +146 -0
  236. package/types/frame-ui-ng-components-sidebar.d.ts +163 -0
  237. package/types/frame-ui-ng-components-skeleton.d.ts +18 -0
  238. package/types/frame-ui-ng-components-slider.d.ts +56 -0
  239. package/types/frame-ui-ng-components-spinner.d.ts +23 -0
  240. package/types/frame-ui-ng-components-switch.d.ts +38 -0
  241. package/types/frame-ui-ng-components-table.d.ts +125 -0
  242. package/types/frame-ui-ng-components-tabs.d.ts +62 -0
  243. package/types/frame-ui-ng-components-textarea.d.ts +14 -0
  244. package/types/frame-ui-ng-components-toast.d.ts +74 -0
  245. package/types/frame-ui-ng-components-toggle.d.ts +45 -0
  246. package/types/frame-ui-ng-components-tooltip.d.ts +99 -0
  247. package/types/frame-ui-ng-components-virtual-scroll.d.ts +106 -0
  248. package/types/frame-ui-ng-components.d.ts +2746 -0
  249. package/virtual-scroll/src/styles/virtual-scroll.css +54 -0
@@ -0,0 +1,56 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { FrControlValueAccessor } from '@frame-ui-ng/components/forms';
3
+
4
+ declare const FR_SLIDER_ORIENTATIONS: readonly ["horizontal", "vertical"];
5
+ type FrSliderOrientation = (typeof FR_SLIDER_ORIENTATIONS)[number];
6
+ type FrSliderValue = number | number[];
7
+ declare class FrSlider extends FrControlValueAccessor<FrSliderValue | null> {
8
+ private readonly elementRef;
9
+ private readonly document;
10
+ private controlledByInput;
11
+ readonly min: _angular_core.InputSignalWithTransform<number, unknown>;
12
+ readonly max: _angular_core.InputSignalWithTransform<number, unknown>;
13
+ readonly step: _angular_core.InputSignalWithTransform<number, unknown>;
14
+ readonly minStepsBetweenThumbs: _angular_core.InputSignalWithTransform<number, unknown>;
15
+ readonly orientation: _angular_core.InputSignalWithTransform<"horizontal" | "vertical", unknown>;
16
+ readonly disabledInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
17
+ readonly invalidInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
18
+ readonly inverted: _angular_core.InputSignalWithTransform<boolean, unknown>;
19
+ readonly defaultValue: _angular_core.InputSignal<FrSliderValue>;
20
+ readonly valueInput: _angular_core.InputSignal<FrSliderValue | null>;
21
+ readonly ariaLabel: _angular_core.InputSignal<string>;
22
+ readonly formatValue: _angular_core.InputSignal<((value: number) => string) | null>;
23
+ readonly valueChange: _angular_core.OutputEmitterRef<FrSliderValue>;
24
+ protected readonly values: _angular_core.WritableSignal<number[]>;
25
+ protected readonly activeThumb: _angular_core.WritableSignal<number | null>;
26
+ protected readonly disabled: _angular_core.Signal<boolean>;
27
+ protected readonly invalid: _angular_core.Signal<boolean | null>;
28
+ protected readonly rangeStartPercent: _angular_core.Signal<number>;
29
+ protected readonly rangeEndPercent: _angular_core.Signal<number>;
30
+ constructor();
31
+ protected setViewValue(value: FrSliderValue | null): void;
32
+ protected handleNativeInput(index: number, rawValue: string): void;
33
+ protected markTouched(): void;
34
+ protected handlePointerDown(event: PointerEvent): void;
35
+ protected thumbLabel(index: number): string;
36
+ protected valueText(value: number): string;
37
+ protected percentForValue(value: number): number;
38
+ private commitThumbValue;
39
+ private normalizeValues;
40
+ private snap;
41
+ private toExternalValue;
42
+ private valueFromPointer;
43
+ private closestThumbIndex;
44
+ private isRtl;
45
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrSlider, never>;
46
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FrSlider, "frame-slider", ["frSlider"], { "min": { "alias": "min"; "required": false; "isSignal": true; }; "max": { "alias": "max"; "required": false; "isSignal": true; }; "step": { "alias": "step"; "required": false; "isSignal": true; }; "minStepsBetweenThumbs": { "alias": "minStepsBetweenThumbs"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "invalidInput": { "alias": "invalid"; "required": false; "isSignal": true; }; "inverted": { "alias": "inverted"; "required": false; "isSignal": true; }; "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "valueInput": { "alias": "value"; "required": false; "isSignal": true; }; "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "formatValue": { "alias": "formatValue"; "required": false; "isSignal": true; }; }, { "valueChange": "valueChange"; }, never, never, true, never>;
47
+ }
48
+
49
+ declare class FrSliderModule {
50
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrSliderModule, never>;
51
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<FrSliderModule, never, [typeof FrSlider], [typeof FrSlider]>;
52
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<FrSliderModule>;
53
+ }
54
+
55
+ export { FR_SLIDER_ORIENTATIONS, FrSlider, FrSliderModule };
56
+ export type { FrSliderOrientation, FrSliderValue };
@@ -0,0 +1,23 @@
1
+ import * as _angular_core from '@angular/core';
2
+
3
+ declare const FR_SPINNER_SIZES: readonly ["xs", "sm", "md", "lg", "xl"];
4
+ type FrSpinnerSize = (typeof FR_SPINNER_SIZES)[number];
5
+ declare class FrSpinner {
6
+ readonly customSize: _angular_core.InputSignal<string | null>;
7
+ readonly decorative: _angular_core.InputSignalWithTransform<boolean, unknown>;
8
+ readonly duration: _angular_core.InputSignal<string | null>;
9
+ readonly label: _angular_core.InputSignal<string>;
10
+ readonly size: _angular_core.InputSignal<"xs" | "sm" | "md" | "lg" | "xl">;
11
+ readonly stroke: _angular_core.InputSignal<string | null>;
12
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrSpinner, never>;
13
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrSpinner, "[frSpinner], frame-spinner", ["frSpinner"], { "customSize": { "alias": "sizeValue"; "required": false; "isSignal": true; }; "decorative": { "alias": "decorative"; "required": false; "isSignal": true; }; "duration": { "alias": "duration"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "stroke": { "alias": "stroke"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
14
+ }
15
+
16
+ declare class FrSpinnerModule {
17
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrSpinnerModule, never>;
18
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<FrSpinnerModule, never, [typeof FrSpinner], [typeof FrSpinner]>;
19
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<FrSpinnerModule>;
20
+ }
21
+
22
+ export { FR_SPINNER_SIZES, FrSpinner, FrSpinnerModule };
23
+ export type { FrSpinnerSize };
@@ -0,0 +1,38 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare const FR_SWITCH_SIZES: readonly ["sm", "default"];
4
+ type FrSwitchSize = (typeof FR_SWITCH_SIZES)[number];
5
+ declare class FrSwitch {
6
+ readonly size: i0.InputSignal<"sm" | "default">;
7
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrSwitch, never>;
8
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrSwitch, "input[type=checkbox][frSwitch]", never, { "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
9
+ }
10
+ declare class FrSwitchField {
11
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrSwitchField, never>;
12
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrSwitchField, "[frSwitchField], frame-switch-field", never, {}, {}, never, never, true, never>;
13
+ }
14
+ declare class FrSwitchContent {
15
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrSwitchContent, never>;
16
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrSwitchContent, "[frSwitchContent], frame-switch-content", never, {}, {}, never, never, true, never>;
17
+ }
18
+ declare class FrSwitchLabel {
19
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrSwitchLabel, never>;
20
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrSwitchLabel, "[frSwitchLabel], frame-switch-label", never, {}, {}, never, never, true, never>;
21
+ }
22
+ declare class FrSwitchDescription {
23
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrSwitchDescription, never>;
24
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrSwitchDescription, "[frSwitchDescription], frame-switch-description", never, {}, {}, never, never, true, never>;
25
+ }
26
+ declare class FrSwitchError {
27
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrSwitchError, never>;
28
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrSwitchError, "[frSwitchError], frame-switch-error", never, {}, {}, never, never, true, never>;
29
+ }
30
+
31
+ declare class FrSwitchModule {
32
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrSwitchModule, never>;
33
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FrSwitchModule, never, [typeof FrSwitch, typeof FrSwitchContent, typeof FrSwitchDescription, typeof FrSwitchError, typeof FrSwitchField, typeof FrSwitchLabel], [typeof FrSwitch, typeof FrSwitchContent, typeof FrSwitchDescription, typeof FrSwitchError, typeof FrSwitchField, typeof FrSwitchLabel]>;
34
+ static ɵinj: i0.ɵɵInjectorDeclaration<FrSwitchModule>;
35
+ }
36
+
37
+ export { FR_SWITCH_SIZES, FrSwitch, FrSwitchContent, FrSwitchDescription, FrSwitchError, FrSwitchField, FrSwitchLabel, FrSwitchModule };
38
+ export type { FrSwitchSize };
@@ -0,0 +1,125 @@
1
+ import * as i0 from '@angular/core';
2
+ import * as i1 from '@angular/cdk/table';
3
+ import { CdkFooterRow, CdkHeaderRow, CdkRow, CdkTable } from '@angular/cdk/table';
4
+
5
+ declare const FR_TABLE_DENSITIES: readonly ["sm", "md", "lg"];
6
+ declare const FR_TABLE_VARIANTS: readonly ["default", "outline", "card"];
7
+ type FrTableDensity = (typeof FR_TABLE_DENSITIES)[number];
8
+ type FrTableVariant = (typeof FR_TABLE_VARIANTS)[number];
9
+ declare class FrTable<T> extends CdkTable<T> {
10
+ readonly density: i0.InputSignal<"sm" | "md" | "lg">;
11
+ readonly hover: i0.InputSignalWithTransform<boolean, unknown>;
12
+ readonly striped: i0.InputSignalWithTransform<boolean, unknown>;
13
+ readonly variant: i0.InputSignal<"default" | "outline" | "card">;
14
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTable<any>, never>;
15
+ static ɵcmp: i0.ɵɵComponentDeclaration<FrTable<any>, "table[frTable], frame-table", ["frTable"], { "density": { "alias": "density"; "required": false; "isSignal": true; }; "hover": { "alias": "hover"; "required": false; "isSignal": true; }; "striped": { "alias": "striped"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, ["caption", "colgroup, col", "*"], true, never>;
16
+ }
17
+ declare class FrTableContainer {
18
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTableContainer, never>;
19
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrTableContainer, "[frTableContainer], frame-table-container", never, {}, {}, never, never, true, never>;
20
+ }
21
+ declare class FrTableCaption {
22
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTableCaption, never>;
23
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrTableCaption, "[frTableCaption], frame-table-caption, caption[frTableCaption]", never, {}, {}, never, never, true, never>;
24
+ }
25
+ declare class FrTableHeader {
26
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTableHeader, never>;
27
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrTableHeader, "[frTableHeader], frame-table-header, thead[frTableHeader]", never, {}, {}, never, never, true, never>;
28
+ }
29
+ declare class FrTableBody {
30
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTableBody, never>;
31
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrTableBody, "[frTableBody], frame-table-body, tbody[frTableBody]", never, {}, {}, never, never, true, never>;
32
+ }
33
+ declare class FrTableFooter {
34
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTableFooter, never>;
35
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrTableFooter, "[frTableFooter], frame-table-footer, tfoot[frTableFooter]", never, {}, {}, never, never, true, never>;
36
+ }
37
+ declare class FrColumnDef {
38
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrColumnDef, never>;
39
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrColumnDef, "[frColumnDef]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkColumnDef; inputs: { "cdkColumnDef": "frColumnDef"; "sticky": "sticky"; "stickyEnd": "stickyEnd"; }; outputs: {}; }]>;
40
+ }
41
+ declare class FrHeaderCellDef {
42
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrHeaderCellDef, never>;
43
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrHeaderCellDef, "[frHeaderCellDef]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkHeaderCellDef; inputs: {}; outputs: {}; }]>;
44
+ }
45
+ declare class FrCellDef {
46
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrCellDef, never>;
47
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrCellDef, "[frCellDef]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkCellDef; inputs: {}; outputs: {}; }]>;
48
+ }
49
+ declare class FrFooterCellDef {
50
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrFooterCellDef, never>;
51
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrFooterCellDef, "[frFooterCellDef]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkFooterCellDef; inputs: {}; outputs: {}; }]>;
52
+ }
53
+ declare class FrHeaderCell {
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrHeaderCell, never>;
55
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrHeaderCell, "th[frHeaderCell], frame-header-cell", never, {}, {}, never, never, true, never>;
56
+ }
57
+ declare class FrCell {
58
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrCell, never>;
59
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrCell, "td[frCell], frame-cell", never, {}, {}, never, never, true, never>;
60
+ }
61
+ declare class FrFooterCell {
62
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrFooterCell, never>;
63
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrFooterCell, "td[frFooterCell], frame-footer-cell", never, {}, {}, never, never, true, never>;
64
+ }
65
+ declare class FrHeaderRow extends CdkHeaderRow {
66
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrHeaderRow, never>;
67
+ static ɵcmp: i0.ɵɵComponentDeclaration<FrHeaderRow, "tr[frHeaderRow], frame-header-row", never, {}, {}, never, never, true, never>;
68
+ }
69
+ declare class FrRow extends CdkRow {
70
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrRow, never>;
71
+ static ɵcmp: i0.ɵɵComponentDeclaration<FrRow, "tr[frRow], frame-row", never, {}, {}, never, never, true, never>;
72
+ }
73
+ declare class FrFooterRow extends CdkFooterRow {
74
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrFooterRow, never>;
75
+ static ɵcmp: i0.ɵɵComponentDeclaration<FrFooterRow, "tr[frFooterRow], frame-footer-row", never, {}, {}, never, never, true, never>;
76
+ }
77
+ declare class FrHeaderRowDef {
78
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrHeaderRowDef, never>;
79
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrHeaderRowDef, "[frHeaderRowDef]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkHeaderRowDef; inputs: { "cdkHeaderRowDef": "frHeaderRowDef"; "cdkHeaderRowDefSticky": "frHeaderRowDefSticky"; }; outputs: {}; }]>;
80
+ }
81
+ declare class FrRowDef<T> {
82
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrRowDef<any>, never>;
83
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrRowDef<any>, "[frRowDef]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkRowDef; inputs: { "cdkRowDefColumns": "frRowDefColumns"; "cdkRowDefWhen": "frRowDefWhen"; }; outputs: {}; }]>;
84
+ }
85
+ declare class FrFooterRowDef {
86
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrFooterRowDef, never>;
87
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrFooterRowDef, "[frFooterRowDef]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkFooterRowDef; inputs: { "cdkFooterRowDef": "frFooterRowDef"; "cdkFooterRowDefSticky": "frFooterRowDefSticky"; }; outputs: {}; }]>;
88
+ }
89
+ declare class FrNoDataRow {
90
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrNoDataRow, never>;
91
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrNoDataRow, "ng-template[frNoDataRow]", never, {}, {}, never, never, true, [{ directive: typeof i1.CdkNoDataRow; inputs: {}; outputs: {}; }]>;
92
+ }
93
+ declare class FrTableNumeric {
94
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTableNumeric, never>;
95
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrTableNumeric, "[frTableNumeric]", never, {}, {}, never, never, true, never>;
96
+ }
97
+ declare class FrTableMuted {
98
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTableMuted, never>;
99
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrTableMuted, "[frTableMuted]", never, {}, {}, never, never, true, never>;
100
+ }
101
+ declare class FrTableVirtual {
102
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTableVirtual, never>;
103
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrTableVirtual, "[frTableVirtual], frame-table-virtual", never, {}, {}, never, never, true, never>;
104
+ }
105
+ declare class FrTableVirtualHeader {
106
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTableVirtualHeader, never>;
107
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrTableVirtualHeader, "[frTableVirtualHeader], frame-table-virtual-header", never, {}, {}, never, never, true, never>;
108
+ }
109
+ declare class FrTableVirtualRow {
110
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTableVirtualRow, never>;
111
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrTableVirtualRow, "[frTableVirtualRow], frame-table-virtual-row", never, {}, {}, never, never, true, never>;
112
+ }
113
+ declare class FrTableVirtualCell {
114
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTableVirtualCell, never>;
115
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrTableVirtualCell, "[frTableVirtualCell], frame-table-virtual-cell", never, {}, {}, never, never, true, never>;
116
+ }
117
+
118
+ declare class FrTableModule {
119
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTableModule, never>;
120
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FrTableModule, never, [typeof i1.CdkTableModule, typeof FrCell, typeof FrCellDef, typeof FrColumnDef, typeof FrFooterCell, typeof FrFooterCellDef, typeof FrFooterRow, typeof FrFooterRowDef, typeof FrHeaderCell, typeof FrHeaderCellDef, typeof FrHeaderRow, typeof FrHeaderRowDef, typeof FrNoDataRow, typeof FrRow, typeof FrRowDef, typeof FrTable, typeof FrTableBody, typeof FrTableCaption, typeof FrTableContainer, typeof FrTableFooter, typeof FrTableHeader, typeof FrTableMuted, typeof FrTableNumeric, typeof FrTableVirtual, typeof FrTableVirtualCell, typeof FrTableVirtualHeader, typeof FrTableVirtualRow], [typeof i1.CdkTableModule, typeof FrCell, typeof FrCellDef, typeof FrColumnDef, typeof FrFooterCell, typeof FrFooterCellDef, typeof FrFooterRow, typeof FrFooterRowDef, typeof FrHeaderCell, typeof FrHeaderCellDef, typeof FrHeaderRow, typeof FrHeaderRowDef, typeof FrNoDataRow, typeof FrRow, typeof FrRowDef, typeof FrTable, typeof FrTableBody, typeof FrTableCaption, typeof FrTableContainer, typeof FrTableFooter, typeof FrTableHeader, typeof FrTableMuted, typeof FrTableNumeric, typeof FrTableVirtual, typeof FrTableVirtualCell, typeof FrTableVirtualHeader, typeof FrTableVirtualRow]>;
121
+ static ɵinj: i0.ɵɵInjectorDeclaration<FrTableModule>;
122
+ }
123
+
124
+ export { FR_TABLE_DENSITIES, FR_TABLE_VARIANTS, FrCell, FrCellDef, FrColumnDef, FrFooterCell, FrFooterCellDef, FrFooterRow, FrFooterRowDef, FrHeaderCell, FrHeaderCellDef, FrHeaderRow, FrHeaderRowDef, FrNoDataRow, FrRow, FrRowDef, FrTable, FrTableBody, FrTableCaption, FrTableContainer, FrTableFooter, FrTableHeader, FrTableModule, FrTableMuted, FrTableNumeric, FrTableVirtual, FrTableVirtualCell, FrTableVirtualHeader, FrTableVirtualRow };
125
+ export type { FrTableDensity, FrTableVariant };
@@ -0,0 +1,62 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { InjectionToken } from '@angular/core';
3
+
4
+ declare const FR_TABS_ORIENTATIONS: readonly ["horizontal", "vertical"];
5
+ declare const FR_TABS_ACTIVATIONS: readonly ["automatic", "manual"];
6
+ declare const FR_TABS_LIST_VARIANTS: readonly ["default", "line"];
7
+ type FrTabsOrientation = (typeof FR_TABS_ORIENTATIONS)[number];
8
+ type FrTabsActivation = (typeof FR_TABS_ACTIVATIONS)[number];
9
+ type FrTabsListVariant = (typeof FR_TABS_LIST_VARIANTS)[number];
10
+ declare const FR_TABS_ROOT: InjectionToken<FrTabs>;
11
+ declare class FrTabs {
12
+ readonly defaultValue: _angular_core.InputSignal<string | null>;
13
+ readonly orientation: _angular_core.InputSignalWithTransform<"horizontal" | "vertical", unknown>;
14
+ readonly activationMode: _angular_core.InputSignalWithTransform<"automatic" | "manual", unknown>;
15
+ readonly value: _angular_core.ModelSignal<string | null>;
16
+ readonly valueChange: _angular_core.OutputEmitterRef<string>;
17
+ select(value: string): void;
18
+ isSelected(value: string | null): boolean;
19
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrTabs, never>;
20
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrTabs, "[frTabs], frame-tabs", ["frTabs"], { "defaultValue": { "alias": "defaultValue"; "required": false; "isSignal": true; }; "orientation": { "alias": "orientation"; "required": false; "isSignal": true; }; "activationMode": { "alias": "activationMode"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "value": "valueChange"; "valueChange": "valueChange"; }, never, never, true, never>;
21
+ }
22
+ declare class FrTabsList {
23
+ private readonly elementRef;
24
+ protected readonly root: FrTabs | null;
25
+ readonly variant: _angular_core.InputSignalWithTransform<"default" | "line", unknown>;
26
+ protected handleKeydown(event: KeyboardEvent): void;
27
+ private focusTrigger;
28
+ private triggers;
29
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrTabsList, never>;
30
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrTabsList, "[frTabsList], frame-tabs-list", never, { "variant": { "alias": "variant"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
31
+ }
32
+ declare class FrTabsTrigger {
33
+ private readonly elementRef;
34
+ private readonly root;
35
+ readonly value: _angular_core.InputSignal<string | null>;
36
+ readonly active: _angular_core.InputSignalWithTransform<boolean, unknown>;
37
+ readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
38
+ protected readonly isActive: _angular_core.Signal<boolean>;
39
+ protected readonly contentId: _angular_core.Signal<string | null>;
40
+ protected handleClick(event: Event): void;
41
+ protected isButton(): boolean;
42
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrTabsTrigger, never>;
43
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrTabsTrigger, "button[frTabsTrigger], a[frTabsTrigger], [frTabsTrigger], frame-tabs-trigger", never, { "value": { "alias": "value"; "required": false; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
44
+ }
45
+ declare class FrTabsContent {
46
+ private readonly root;
47
+ readonly value: _angular_core.InputSignal<string>;
48
+ readonly active: _angular_core.InputSignalWithTransform<boolean, unknown>;
49
+ protected readonly isActive: _angular_core.Signal<boolean>;
50
+ protected readonly contentId: _angular_core.Signal<string>;
51
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrTabsContent, never>;
52
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrTabsContent, "[frTabsContent], frame-tabs-content", never, { "value": { "alias": "value"; "required": true; "isSignal": true; }; "active": { "alias": "active"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
53
+ }
54
+
55
+ declare class FrTabsModule {
56
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrTabsModule, never>;
57
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<FrTabsModule, never, [typeof FrTabs, typeof FrTabsContent, typeof FrTabsList, typeof FrTabsTrigger], [typeof FrTabs, typeof FrTabsContent, typeof FrTabsList, typeof FrTabsTrigger]>;
58
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<FrTabsModule>;
59
+ }
60
+
61
+ export { FR_TABS_ACTIVATIONS, FR_TABS_LIST_VARIANTS, FR_TABS_ORIENTATIONS, FR_TABS_ROOT, FrTabs, FrTabsContent, FrTabsList, FrTabsModule, FrTabsTrigger };
62
+ export type { FrTabsActivation, FrTabsListVariant, FrTabsOrientation };
@@ -0,0 +1,14 @@
1
+ import * as i0 from '@angular/core';
2
+
3
+ declare class FrTextarea {
4
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTextarea, never>;
5
+ static ɵdir: i0.ɵɵDirectiveDeclaration<FrTextarea, "textarea[frTextarea]", never, {}, {}, never, never, true, never>;
6
+ }
7
+
8
+ declare class FrTextareaModule {
9
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrTextareaModule, never>;
10
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FrTextareaModule, never, [typeof FrTextarea], [typeof FrTextarea]>;
11
+ static ɵinj: i0.ɵɵInjectorDeclaration<FrTextareaModule>;
12
+ }
13
+
14
+ export { FrTextarea, FrTextareaModule };
@@ -0,0 +1,74 @@
1
+ import * as i0 from '@angular/core';
2
+ import { TemplateRef } from '@angular/core';
3
+ import * as i2 from '@frame-ui-ng/components/spinner';
4
+
5
+ type FrToastVariant = 'default' | 'success' | 'info' | 'warning' | 'error' | 'loading';
6
+ type FrToastPosition = 'top-left' | 'top-center' | 'top-right' | 'bottom-left' | 'bottom-center' | 'bottom-right';
7
+ type FrToastAction = {
8
+ label: string;
9
+ altText?: string;
10
+ handler?: () => void;
11
+ };
12
+ type FrToastState = 'visible' | 'dismissing';
13
+ type FrToastOptions = {
14
+ id?: string;
15
+ title: string;
16
+ description?: string;
17
+ variant?: FrToastVariant;
18
+ position?: FrToastPosition;
19
+ duration?: number;
20
+ dismissible?: boolean;
21
+ action?: FrToastAction;
22
+ loading?: boolean;
23
+ };
24
+ type FrToastRecord = Required<Pick<FrToastOptions, 'id' | 'title' | 'variant' | 'position' | 'dismissible' | 'loading'>> & Pick<FrToastOptions, 'description' | 'duration' | 'action'> & {
25
+ createdAt: number;
26
+ state: FrToastState;
27
+ };
28
+ declare const FR_TOAST_POSITIONS: FrToastPosition[];
29
+
30
+ declare class FrToastService {
31
+ private readonly timers;
32
+ private readonly removalTimers;
33
+ private readonly toastRecords;
34
+ readonly toasts: i0.Signal<FrToastRecord[]>;
35
+ show(title: string, options?: Omit<FrToastOptions, 'title'>): string;
36
+ show(options: FrToastOptions): string;
37
+ success(title: string, options?: Omit<FrToastOptions, 'title' | 'variant'>): string;
38
+ info(title: string, options?: Omit<FrToastOptions, 'title' | 'variant'>): string;
39
+ warning(title: string, options?: Omit<FrToastOptions, 'title' | 'variant'>): string;
40
+ error(title: string, options?: Omit<FrToastOptions, 'title' | 'variant'>): string;
41
+ loading(title: string, options?: Omit<FrToastOptions, 'title' | 'variant' | 'loading'>): string;
42
+ update(id: string, options: Partial<Omit<FrToastOptions, 'id'>>): void;
43
+ dismiss(id: string): void;
44
+ dismissAll(): void;
45
+ private createToast;
46
+ private scheduleDismiss;
47
+ private clearTimer;
48
+ private clearRemovalTimer;
49
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrToastService, never>;
50
+ static ɵprov: i0.ɵɵInjectableDeclaration<FrToastService>;
51
+ }
52
+
53
+ declare class FrToastViewport {
54
+ private readonly toast;
55
+ readonly strategy: i0.InputSignal<"fixed" | "inline">;
56
+ readonly label: i0.InputSignal<string>;
57
+ readonly politeness: i0.InputSignal<"polite" | "assertive" | "off">;
58
+ readonly closeIcon: i0.InputSignal<TemplateRef<unknown> | null>;
59
+ protected readonly positions: FrToastPosition[];
60
+ protected readonly groupedToasts: i0.Signal<Map<FrToastPosition, FrToastRecord[]>>;
61
+ protected dismiss(id: string): void;
62
+ protected runAction(toast: FrToastRecord): void;
63
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrToastViewport, never>;
64
+ static ɵcmp: i0.ɵɵComponentDeclaration<FrToastViewport, "frame-toast-viewport", ["frToastViewport"], { "strategy": { "alias": "strategy"; "required": false; "isSignal": true; }; "label": { "alias": "label"; "required": false; "isSignal": true; }; "politeness": { "alias": "politeness"; "required": false; "isSignal": true; }; "closeIcon": { "alias": "closeIcon"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
65
+ }
66
+
67
+ declare class FrToastModule {
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<FrToastModule, never>;
69
+ static ɵmod: i0.ɵɵNgModuleDeclaration<FrToastModule, never, [typeof FrToastViewport, typeof i2.FrSpinner], [typeof FrToastViewport]>;
70
+ static ɵinj: i0.ɵɵInjectorDeclaration<FrToastModule>;
71
+ }
72
+
73
+ export { FR_TOAST_POSITIONS, FrToastModule, FrToastService, FrToastViewport };
74
+ export type { FrToastAction, FrToastOptions, FrToastPosition, FrToastRecord, FrToastVariant };
@@ -0,0 +1,45 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { FrControlValueAccessor } from '@frame-ui-ng/components/forms';
3
+
4
+ declare const FR_TOGGLE_VARIANTS: readonly ["default", "outline"];
5
+ declare const FR_TOGGLE_SIZES: readonly ["sm", "default", "lg"];
6
+ declare const FR_TOGGLE_TYPES: readonly ["button", "submit", "reset"];
7
+ type FrToggleVariant = (typeof FR_TOGGLE_VARIANTS)[number];
8
+ type FrToggleSize = (typeof FR_TOGGLE_SIZES)[number];
9
+ type FrToggleType = (typeof FR_TOGGLE_TYPES)[number];
10
+ declare class FrToggle extends FrControlValueAccessor<boolean> {
11
+ private readonly internalPressed;
12
+ private controlledByInput;
13
+ readonly defaultPressed: _angular_core.InputSignalWithTransform<boolean, unknown>;
14
+ readonly pressedInput: _angular_core.InputSignalWithTransform<boolean | null, unknown>;
15
+ readonly disabledInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
16
+ readonly variant: _angular_core.InputSignal<"default" | "outline">;
17
+ readonly size: _angular_core.InputSignal<"default" | "sm" | "lg">;
18
+ readonly type: _angular_core.InputSignal<"button" | "submit" | "reset">;
19
+ readonly pressedChange: _angular_core.OutputEmitterRef<boolean>;
20
+ protected readonly disabled: _angular_core.Signal<boolean>;
21
+ protected readonly pressed: _angular_core.Signal<boolean>;
22
+ constructor();
23
+ protected setViewValue(value: boolean | null): void;
24
+ protected togglePressed(event: MouseEvent): void;
25
+ protected markTouched(): void;
26
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrToggle, never>;
27
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FrToggle, "button[frToggle]", ["frToggle"], { "defaultPressed": { "alias": "defaultPressed"; "required": false; "isSignal": true; }; "pressedInput": { "alias": "pressed"; "required": false; "isSignal": true; }; "disabledInput": { "alias": "disabled"; "required": false; "isSignal": true; }; "variant": { "alias": "variant"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "type": { "alias": "type"; "required": false; "isSignal": true; }; }, { "pressedChange": "pressedChange"; }, never, ["*"], true, never>;
28
+ }
29
+ declare class FrToggleIcon {
30
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrToggleIcon, never>;
31
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrToggleIcon, "[frToggleIcon]", never, {}, {}, never, never, true, never>;
32
+ }
33
+ declare class FrToggleLabel {
34
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrToggleLabel, never>;
35
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrToggleLabel, "[frToggleLabel]", never, {}, {}, never, never, true, never>;
36
+ }
37
+
38
+ declare class FrToggleModule {
39
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrToggleModule, never>;
40
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<FrToggleModule, never, [typeof FrToggle, typeof FrToggleIcon, typeof FrToggleLabel], [typeof FrToggle, typeof FrToggleIcon, typeof FrToggleLabel]>;
41
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<FrToggleModule>;
42
+ }
43
+
44
+ export { FR_TOGGLE_SIZES, FR_TOGGLE_TYPES, FR_TOGGLE_VARIANTS, FrToggle, FrToggleIcon, FrToggleLabel, FrToggleModule };
45
+ export type { FrToggleSize, FrToggleType, FrToggleVariant };
@@ -0,0 +1,99 @@
1
+ import * as _angular_core from '@angular/core';
2
+ import { TemplateRef } from '@angular/core';
3
+ import { ConnectedPosition, ConnectedOverlayPositionChange } from '@angular/cdk/overlay';
4
+
5
+ type FrTooltipController = {
6
+ isOpen(): boolean;
7
+ overlaySide(): string;
8
+ registerTrigger(trigger: HTMLElement): void;
9
+ setContent(content: unknown | null): void;
10
+ openWithDelay(): void;
11
+ closeWithDelay(): void;
12
+ open(): void;
13
+ close(): void;
14
+ };
15
+
16
+ declare class FrTooltipContent {
17
+ readonly templateRef: TemplateRef<any>;
18
+ readonly id: string;
19
+ readonly align: _angular_core.InputSignal<"start" | "center" | "end">;
20
+ readonly alignOffset: _angular_core.InputSignal<number>;
21
+ readonly arrow: _angular_core.InputSignalWithTransform<boolean, unknown>;
22
+ readonly debugVisible: _angular_core.InputSignalWithTransform<boolean, unknown>;
23
+ readonly side: _angular_core.InputSignal<"top" | "right" | "bottom" | "left">;
24
+ readonly sideOffset: _angular_core.InputSignal<number>;
25
+ getPositions(): ConnectedPosition[];
26
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrTooltipContent, never>;
27
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrTooltipContent, "ng-template[frTooltipContent]", ["frTooltipContent"], { "align": { "alias": "align"; "required": false; "isSignal": true; }; "alignOffset": { "alias": "alignOffset"; "required": false; "isSignal": true; }; "arrow": { "alias": "arrow"; "required": false; "isSignal": true; }; "debugVisible": { "alias": "debugVisible"; "required": false; "isSignal": true; }; "side": { "alias": "side"; "required": false; "isSignal": true; }; "sideOffset": { "alias": "sideOffset"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
28
+ }
29
+ declare class FrTooltipPanel {
30
+ protected readonly content: FrTooltipContent;
31
+ protected readonly root: FrTooltipController;
32
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrTooltipPanel, never>;
33
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrTooltipPanel, "[frTooltipPanel]", never, {}, {}, never, never, true, never>;
34
+ }
35
+ declare class FrTooltipShortcut {
36
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrTooltipShortcut, never>;
37
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrTooltipShortcut, "[frTooltipShortcut]", never, {}, {}, never, never, true, never>;
38
+ }
39
+
40
+ declare class FrTooltipRoot {
41
+ private readonly elementRef;
42
+ readonly openDelay: _angular_core.InputSignal<number>;
43
+ readonly closeDelay: _angular_core.InputSignal<number>;
44
+ readonly defaultOpen: _angular_core.InputSignalWithTransform<boolean, unknown>;
45
+ readonly debugVisible: _angular_core.InputSignalWithTransform<boolean, unknown>;
46
+ readonly openChange: _angular_core.OutputEmitterRef<boolean>;
47
+ readonly isOpen: _angular_core.WritableSignal<boolean>;
48
+ readonly content: _angular_core.WritableSignal<FrTooltipContent | null>;
49
+ readonly overlaySide: _angular_core.WritableSignal<string>;
50
+ private openTimer;
51
+ private closeTimer;
52
+ private triggerElement;
53
+ readonly positions: _angular_core.Signal<ConnectedPosition[]>;
54
+ constructor();
55
+ registerTrigger(trigger: HTMLElement): void;
56
+ setContent(content: unknown | null): void;
57
+ openWithDelay(): void;
58
+ closeWithDelay(): void;
59
+ open(): void;
60
+ close(): void;
61
+ handleOverlayKeydown(event: KeyboardEvent): void;
62
+ handlePositionChange(event: ConnectedOverlayPositionChange): void;
63
+ overlayPanelClasses(): string[];
64
+ private cancelOpen;
65
+ private cancelClose;
66
+ private syncCustomPropertiesToOverlay;
67
+ private scheduleCustomPropertySync;
68
+ private copyCustomProperties;
69
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrTooltipRoot, never>;
70
+ static ɵcmp: _angular_core.ɵɵComponentDeclaration<FrTooltipRoot, "frame-tooltip", ["frTooltip"], { "openDelay": { "alias": "openDelay"; "required": false; "isSignal": true; }; "closeDelay": { "alias": "closeDelay"; "required": false; "isSignal": true; }; "defaultOpen": { "alias": "defaultOpen"; "required": false; "isSignal": true; }; "debugVisible": { "alias": "debugVisible"; "required": false; "isSignal": true; }; }, { "openChange": "openChange"; }, never, ["*"], true, never>;
71
+ }
72
+
73
+ declare class FrTooltipTrigger {
74
+ readonly content: _angular_core.InputSignal<FrTooltipContent | null>;
75
+ protected readonly root: FrTooltipController;
76
+ private readonly elementRef;
77
+ constructor();
78
+ protected handleMouseEnter(): void;
79
+ protected handleMouseLeave(): void;
80
+ protected handleFocusIn(): void;
81
+ protected handleFocusOut(): void;
82
+ protected handleKeydown(event: KeyboardEvent): void;
83
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrTooltipTrigger, never>;
84
+ static ɵdir: _angular_core.ɵɵDirectiveDeclaration<FrTooltipTrigger, "[frTooltipTrigger]", never, { "content": { "alias": "frTooltipTrigger"; "required": false; "isSignal": true; }; }, {}, never, never, true, never>;
85
+ }
86
+
87
+ declare const FR_TOOLTIP_SIDES: readonly ["top", "right", "bottom", "left"];
88
+ declare const FR_TOOLTIP_ALIGNMENTS: readonly ["start", "center", "end"];
89
+ type FrTooltipSide = (typeof FR_TOOLTIP_SIDES)[number];
90
+ type FrTooltipAlignment = (typeof FR_TOOLTIP_ALIGNMENTS)[number];
91
+
92
+ declare class FrTooltipModule {
93
+ static ɵfac: _angular_core.ɵɵFactoryDeclaration<FrTooltipModule, never>;
94
+ static ɵmod: _angular_core.ɵɵNgModuleDeclaration<FrTooltipModule, never, [typeof FrTooltipRoot, typeof FrTooltipTrigger, typeof FrTooltipContent, typeof FrTooltipPanel, typeof FrTooltipShortcut], [typeof FrTooltipRoot, typeof FrTooltipTrigger, typeof FrTooltipContent, typeof FrTooltipPanel, typeof FrTooltipShortcut]>;
95
+ static ɵinj: _angular_core.ɵɵInjectorDeclaration<FrTooltipModule>;
96
+ }
97
+
98
+ export { FR_TOOLTIP_ALIGNMENTS, FR_TOOLTIP_SIDES, FrTooltipRoot as FrTooltip, FrTooltipContent, FrTooltipModule, FrTooltipPanel, FrTooltipShortcut, FrTooltipTrigger };
99
+ export type { FrTooltipAlignment, FrTooltipSide };