@nanahoshi/mona-ui 0.27.2 → 0.29.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 (213) hide show
  1. package/docs/api/chart.md +2 -2
  2. package/docs/api/locales.md +8 -0
  3. package/docs/api/popup.md +1 -1
  4. package/docs/api/theme.md +2 -2
  5. package/docs/chart.md +14 -0
  6. package/docs/editor.md +2 -0
  7. package/docs/installation.md +147 -15
  8. package/docs/introduction.md +37 -15
  9. package/docs/theming-built-in-themes.md +67 -0
  10. package/docs/theming-custom-colors.md +274 -0
  11. package/docs/theming-custom-themes.md +168 -0
  12. package/docs/theming.md +164 -248
  13. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1089 -603
  14. package/fesm2022/nanahoshi-mona-ui-avatar.mjs +369 -184
  15. package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +658 -371
  16. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +513 -359
  17. package/fesm2022/nanahoshi-mona-ui-button.mjs +622 -517
  18. package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2071 -1573
  19. package/fesm2022/nanahoshi-mona-ui-card.mjs +620 -316
  20. package/fesm2022/nanahoshi-mona-ui-chart.mjs +61151 -64921
  21. package/fesm2022/nanahoshi-mona-ui-check-box.mjs +646 -317
  22. package/fesm2022/nanahoshi-mona-ui-chip.mjs +737 -516
  23. package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +441 -242
  24. package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +443 -390
  25. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +1138 -814
  26. package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +1114 -959
  27. package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +858 -504
  28. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1181 -742
  29. package/fesm2022/nanahoshi-mona-ui-command.mjs +1454 -853
  30. package/fesm2022/nanahoshi-mona-ui-common.mjs +569 -743
  31. package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +978 -532
  32. package/fesm2022/nanahoshi-mona-ui-date-input.mjs +283 -266
  33. package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +973 -451
  34. package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +1203 -658
  35. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +1415 -936
  36. package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +1165 -568
  37. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1142 -677
  38. package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +1018 -734
  39. package/fesm2022/nanahoshi-mona-ui-editor.mjs +3589 -2122
  40. package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +577 -359
  41. package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +311 -151
  42. package/fesm2022/nanahoshi-mona-ui-filter.mjs +1086 -718
  43. package/fesm2022/nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs +77 -0
  44. package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs +480 -0
  45. package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs +470 -0
  46. package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs +2115 -0
  47. package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-DAHqTwBJ.mjs +330 -0
  48. package/fesm2022/nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs +3766 -0
  49. package/fesm2022/nanahoshi-mona-ui-grid.mjs +5418 -2
  50. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +1379 -1079
  51. package/fesm2022/nanahoshi-mona-ui-i18n.mjs +4451 -5077
  52. package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +344 -143
  53. package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +257 -127
  54. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +2080 -1829
  55. package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +103 -141
  56. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +2498 -2706
  57. package/fesm2022/nanahoshi-mona-ui-internal.mjs +722 -1007
  58. package/fesm2022/nanahoshi-mona-ui-label.mjs +313 -202
  59. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1308 -1009
  60. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1411 -677
  61. package/fesm2022/nanahoshi-mona-ui-list.mjs +1 -6
  62. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +556 -577
  63. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +530 -573
  64. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +530 -573
  65. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +533 -576
  66. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +520 -555
  67. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +530 -571
  68. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +520 -555
  69. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +520 -555
  70. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +599 -0
  71. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +530 -571
  72. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +576 -591
  73. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +530 -565
  74. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +520 -555
  75. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +520 -555
  76. package/fesm2022/nanahoshi-mona-ui-locales.mjs +61 -77
  77. package/fesm2022/nanahoshi-mona-ui-menubar.mjs +1411 -829
  78. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1326 -702
  79. package/fesm2022/nanahoshi-mona-ui-notification.mjs +763 -675
  80. package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1306 -826
  81. package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +1122 -897
  82. package/fesm2022/nanahoshi-mona-ui-pager.mjs +1110 -651
  83. package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +95 -53
  84. package/fesm2022/nanahoshi-mona-ui-popover.mjs +559 -397
  85. package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2323 -1694
  86. package/fesm2022/nanahoshi-mona-ui-popup.mjs +1657 -1455
  87. package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +441 -267
  88. package/fesm2022/nanahoshi-mona-ui-query.mjs +211 -340
  89. package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +1017 -548
  90. package/fesm2022/nanahoshi-mona-ui-rating.mjs +874 -624
  91. package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +1130 -917
  92. package/fesm2022/nanahoshi-mona-ui-segmented.mjs +705 -455
  93. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +461 -283
  94. package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +2791 -2449
  95. package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +145 -90
  96. package/fesm2022/nanahoshi-mona-ui-slider.mjs +1563 -1103
  97. package/fesm2022/nanahoshi-mona-ui-spinner.mjs +738 -673
  98. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +1287 -647
  99. package/fesm2022/nanahoshi-mona-ui-splitter.mjs +1313 -909
  100. package/fesm2022/nanahoshi-mona-ui-stepper.mjs +761 -540
  101. package/fesm2022/nanahoshi-mona-ui-switch.mjs +611 -280
  102. package/fesm2022/nanahoshi-mona-ui-tabs.mjs +1393 -841
  103. package/fesm2022/nanahoshi-mona-ui-text-area.mjs +142 -73
  104. package/fesm2022/nanahoshi-mona-ui-text-box.mjs +876 -374
  105. package/fesm2022/nanahoshi-mona-ui-theme.mjs +1465 -1449
  106. package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +897 -443
  107. package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +1100 -703
  108. package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +789 -538
  109. package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +1361 -805
  110. package/fesm2022/nanahoshi-mona-ui-window.mjs +2145 -1531
  111. package/fesm2022/nanahoshi-mona-ui.mjs +1 -8
  112. package/llms.txt +7 -3
  113. package/locales/pl-pl/package.json +4 -0
  114. package/locales/pl-pl/pl-pl.messages.json +536 -0
  115. package/package.json +66 -23
  116. package/types/nanahoshi-mona-ui-auto-complete.d.ts +367 -233
  117. package/types/nanahoshi-mona-ui-avatar.d.ts +722 -649
  118. package/types/nanahoshi-mona-ui-breadcrumb.d.ts +134 -103
  119. package/types/nanahoshi-mona-ui-button-group.d.ts +213 -152
  120. package/types/nanahoshi-mona-ui-button.d.ts +227 -166
  121. package/types/nanahoshi-mona-ui-calendar.d.ts +324 -259
  122. package/types/nanahoshi-mona-ui-card.d.ts +125 -111
  123. package/types/nanahoshi-mona-ui-chart.d.ts +10483 -7326
  124. package/types/nanahoshi-mona-ui-check-box.d.ts +293 -180
  125. package/types/nanahoshi-mona-ui-chip.d.ts +208 -141
  126. package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +194 -133
  127. package/types/nanahoshi-mona-ui-collapsible.d.ts +103 -87
  128. package/types/nanahoshi-mona-ui-color-gradient.d.ts +281 -213
  129. package/types/nanahoshi-mona-ui-color-palette.d.ts +201 -138
  130. package/types/nanahoshi-mona-ui-color-picker.d.ts +283 -194
  131. package/types/nanahoshi-mona-ui-combo-box.d.ts +401 -262
  132. package/types/nanahoshi-mona-ui-command.d.ts +279 -191
  133. package/types/nanahoshi-mona-ui-common.d.ts +354 -385
  134. package/types/nanahoshi-mona-ui-contextmenu.d.ts +142 -117
  135. package/types/nanahoshi-mona-ui-date-input.d.ts +79 -96
  136. package/types/nanahoshi-mona-ui-date-picker.d.ts +338 -208
  137. package/types/nanahoshi-mona-ui-datetime-picker.d.ts +413 -259
  138. package/types/nanahoshi-mona-ui-dialog.d.ts +470 -381
  139. package/types/nanahoshi-mona-ui-dropdown-button.d.ts +216 -168
  140. package/types/nanahoshi-mona-ui-dropdown-list.d.ts +369 -243
  141. package/types/nanahoshi-mona-ui-dropdowns.d.ts +231 -217
  142. package/types/nanahoshi-mona-ui-editor.d.ts +302 -235
  143. package/types/nanahoshi-mona-ui-expansion-panel.d.ts +140 -109
  144. package/types/nanahoshi-mona-ui-fieldset.d.ts +98 -68
  145. package/types/nanahoshi-mona-ui-filter.d.ts +150 -124
  146. package/types/nanahoshi-mona-ui-grid.d.ts +1956 -1678
  147. package/types/nanahoshi-mona-ui-i18n-icu.d.ts +25 -34
  148. package/types/nanahoshi-mona-ui-i18n.d.ts +987 -1052
  149. package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +118 -71
  150. package/types/nanahoshi-mona-ui-internal-indicator-icon.d.ts +56 -27
  151. package/types/nanahoshi-mona-ui-internal-list.d.ts +474 -408
  152. package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +143 -150
  153. package/types/nanahoshi-mona-ui-internal-tree.d.ts +493 -506
  154. package/types/nanahoshi-mona-ui-internal.d.ts +195 -213
  155. package/types/nanahoshi-mona-ui-label.d.ts +108 -78
  156. package/types/nanahoshi-mona-ui-list-box.d.ts +392 -322
  157. package/types/nanahoshi-mona-ui-list-view.d.ts +423 -282
  158. package/types/nanahoshi-mona-ui-list.d.ts +2 -1
  159. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +540 -542
  160. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +540 -542
  161. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +540 -542
  162. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +540 -542
  163. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +540 -542
  164. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +540 -542
  165. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +540 -542
  166. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +540 -542
  167. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +540 -0
  168. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +540 -542
  169. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +540 -542
  170. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +540 -542
  171. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +540 -542
  172. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +540 -542
  173. package/types/nanahoshi-mona-ui-locales.d.ts +18 -19
  174. package/types/nanahoshi-mona-ui-menubar.d.ts +210 -181
  175. package/types/nanahoshi-mona-ui-multi-select.d.ts +416 -276
  176. package/types/nanahoshi-mona-ui-notification.d.ts +140 -151
  177. package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +407 -270
  178. package/types/nanahoshi-mona-ui-otp-input.d.ts +364 -241
  179. package/types/nanahoshi-mona-ui-pager.d.ts +379 -301
  180. package/types/nanahoshi-mona-ui-placeholder.d.ts +35 -28
  181. package/types/nanahoshi-mona-ui-popover.d.ts +176 -134
  182. package/types/nanahoshi-mona-ui-popup-menu.d.ts +488 -344
  183. package/types/nanahoshi-mona-ui-popup.d.ts +698 -560
  184. package/types/nanahoshi-mona-ui-progress-bar.d.ts +197 -137
  185. package/types/nanahoshi-mona-ui-query.d.ts +82 -88
  186. package/types/nanahoshi-mona-ui-radio-button.d.ts +434 -269
  187. package/types/nanahoshi-mona-ui-rating.d.ts +348 -254
  188. package/types/nanahoshi-mona-ui-scroll-view.d.ts +244 -172
  189. package/types/nanahoshi-mona-ui-segmented.d.ts +250 -175
  190. package/types/nanahoshi-mona-ui-sheet.d.ts +115 -63
  191. package/types/nanahoshi-mona-ui-sidebar.d.ts +653 -493
  192. package/types/nanahoshi-mona-ui-skeleton.d.ts +55 -39
  193. package/types/nanahoshi-mona-ui-slider.d.ts +503 -354
  194. package/types/nanahoshi-mona-ui-spinner.d.ts +125 -112
  195. package/types/nanahoshi-mona-ui-split-button.d.ts +241 -196
  196. package/types/nanahoshi-mona-ui-splitter.d.ts +124 -78
  197. package/types/nanahoshi-mona-ui-stepper.d.ts +206 -181
  198. package/types/nanahoshi-mona-ui-switch.d.ts +197 -131
  199. package/types/nanahoshi-mona-ui-tabs.d.ts +349 -248
  200. package/types/nanahoshi-mona-ui-text-area.d.ts +52 -36
  201. package/types/nanahoshi-mona-ui-text-box.d.ts +349 -218
  202. package/types/nanahoshi-mona-ui-theme.d.ts +415 -408
  203. package/types/nanahoshi-mona-ui-time-picker.d.ts +357 -217
  204. package/types/nanahoshi-mona-ui-time-selector.d.ts +255 -170
  205. package/types/nanahoshi-mona-ui-tooltip.d.ts +222 -144
  206. package/types/nanahoshi-mona-ui-tree-view.d.ts +466 -308
  207. package/types/nanahoshi-mona-ui-window.d.ts +494 -399
  208. package/types/nanahoshi-mona-ui.d.ts +1 -2
  209. package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs +0 -181
  210. package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs +0 -208
  211. package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs +0 -1082
  212. package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs +0 -186
  213. package/fesm2022/nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs +0 -7568
@@ -1,34 +1,30 @@
1
- import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
2
- import { MonaColorGradientMessages } from '@nanahoshi/mona-ui/i18n';
3
- import * as _angular_core from '@angular/core';
4
- import { Signal, ElementRef } from '@angular/core';
5
- import { FormValueControl } from '@angular/forms/signals';
6
- import { VariantInputs, HSV, RGB, HSVChannel, RGBChannel } from '@nanahoshi/mona-ui/internal';
7
- import { ColorMode, ColorOutputFormat } from '@nanahoshi/mona-ui/common';
8
- import * as class_variance_authority_types from 'class-variance-authority/types';
9
- import { VariantProps } from 'class-variance-authority';
10
-
1
+ import * as i0 from "@angular/core";
2
+ import { ElementRef, Signal } from "@angular/core";
3
+ import { FormValueControl } from "@angular/forms/signals";
4
+ import { HSV, HSVChannel, RGB, RGBChannel, VariantInputs } from "@nanahoshi/mona-ui/internal";
5
+ import { ColorMode, ColorOutputFormat } from "@nanahoshi/mona-ui/common";
6
+ import { VariantProps } from "class-variance-authority";
7
+ import { MonaColorGradientMessages } from "@nanahoshi/mona-ui/i18n";
11
8
  interface ColorInput {
12
- ariaLabel: string;
13
- change: (value: number | null) => void;
14
- key: string;
15
- label: string;
16
- max: number;
17
- min: number;
18
- value: number | null;
9
+ ariaLabel: string;
10
+ change: (value: number | null) => void;
11
+ key: string;
12
+ label: string;
13
+ max: number;
14
+ min: number;
15
+ value: number | null;
19
16
  }
20
-
21
- declare const colorGradientBaseThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
17
+ declare const colorGradientBaseThemeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
22
18
  declare const colorGradientHsvRectangleThemeVariants: (props?: ({
23
- rounded?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
24
- } & class_variance_authority_types.ClassProp) | undefined) => string;
19
+ rounded?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
20
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
25
21
  declare const colorGradientHsvRectangleHandleThemeVariants: (props?: ({
26
- rounded?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
27
- } & class_variance_authority_types.ClassProp) | undefined) => string;
22
+ rounded?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
23
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
28
24
  declare const colorGradientPreviewThemeVariants: (props?: ({
29
- rounded?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
30
- } & class_variance_authority_types.ClassProp) | undefined) => string;
31
- declare const colorGradientSliderHandleThemeVariants: (props?: class_variance_authority_types.ClassProp | undefined) => string;
25
+ rounded?: "none" | "small" | "medium" | "large" | "full" | null | undefined;
26
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
27
+ declare const colorGradientSliderHandleThemeVariants: (props?: import("class-variance-authority/types").ClassProp | undefined) => string;
32
28
  type ColorGradientBaseVariantProps = VariantProps<typeof colorGradientBaseThemeVariants>;
33
29
  type ColorGradientVaseVariantInput = VariantInputs<ColorGradientBaseVariantProps>;
34
30
  type ColorGradientHsvRectangleVariantProps = VariantProps<typeof colorGradientHsvRectangleThemeVariants>;
@@ -41,191 +37,263 @@ type ColorGradientSliderHandleVariantProps = VariantProps<typeof colorGradientSl
41
37
  type ColorGradientSliderHandleVariantInput = VariantInputs<ColorGradientSliderHandleVariantProps>;
42
38
  type ColorGradientVariantProps = ColorGradientBaseVariantProps & ColorGradientHsvRectangleVariantProps & ColorGradientHsvRectangleHandleVariantProps & ColorGradientPreviewVariantProps & ColorGradientSliderHandleVariantProps;
43
39
  type ColorGradientVariantInputs = ColorGradientVaseVariantInput & ColorGradientHsvRectangleVariantInput & ColorGradientHsvRectangleHandleVariantInput & ColorGradientPreviewVariantInput & ColorGradientSliderHandleVariantInput;
44
-
45
- declare class ColorGradientComponent implements ColorGradientVariantInputs, FormValueControl<string | null | undefined> {
46
- #private;
47
- protected readonly alpha: _angular_core.WritableSignal<number>;
48
- protected readonly alphaInputColor: Signal<string>;
49
- protected readonly alphaSliderBackground: Signal<string>;
50
- protected readonly alphaValueText: Signal<(alpha: number) => string>;
51
- protected readonly baseClasses: Signal<string>;
52
- protected readonly colorInputs: Signal<ColorInput[]>;
53
- protected readonly colorMode: _angular_core.WritableSignal<ColorMode>;
54
- protected readonly colorPreviewClasses: Signal<string>;
55
- protected readonly colorPreviews: Signal<({
56
- type: string;
57
- color: string;
58
- title: string;
59
- onClick?: undefined;
60
- } | {
61
- type: string;
62
- color: string;
63
- title: string;
64
- onClick: () => void;
65
- })[]>;
66
- protected readonly effectiveDisabled: Signal<boolean>;
67
- protected readonly hex: Signal<string>;
68
- protected readonly hexFocused: _angular_core.WritableSignal<boolean>;
69
- protected readonly hexInputValue: _angular_core.WritableSignal<string>;
70
- protected readonly hsv: _angular_core.WritableSignal<HSV>;
71
- protected readonly hsvHandle: Signal<ElementRef<HTMLDivElement>>;
72
- protected readonly hsvRectangle: Signal<ElementRef<HTMLDivElement>>;
73
- protected readonly hsvRectangleBackground: Signal<string>;
74
- protected readonly hsvRectangleClasses: Signal<string>;
75
- protected readonly hsvRectangleHandleClasses: Signal<string>;
76
- protected readonly interactionDisabled: Signal<boolean>;
77
- protected readonly invalidState: Signal<boolean>;
78
- protected readonly labelledBy: Signal<string | null>;
79
- protected readonly lastSelectedColor: _angular_core.WritableSignal<string>;
80
- protected readonly messages: Signal<_nanahoshi_mona_ui_i18n.MonaColorGradientMessages>;
81
- protected readonly rgb: _angular_core.WritableSignal<RGB>;
82
- protected readonly roundedHue: Signal<number>;
83
- protected readonly roundedSaturation: Signal<number>;
84
- protected readonly roundedValue: Signal<number>;
85
- protected readonly selectedColor: Signal<string>;
86
- protected readonly sliderHandleClasses: Signal<string>;
87
- protected readonly sliderHeight = 10;
88
- /**
89
- * @description Emits when the Apply button is clicked.
90
- * The `Apply` button is only displayed when `showButtons` is set to true.
91
- */
92
- readonly apply: _angular_core.OutputEmitterRef<void>;
93
- /**
94
- * @description Accessible name of the group of controls.
95
- * @default ""
96
- */
97
- readonly ariaLabel: _angular_core.InputSignal<string>;
98
- /**
99
- * @description Id of the element that names the group of controls.
100
- * @default ""
101
- */
102
- readonly ariaLabelledBy: _angular_core.InputSignal<string>;
103
- /**
104
- * @description Emits when the Cancel button is clicked, after the controls go back to the current value.
105
- * The `Cancel` button is only displayed when `showButtons` is set to true.
106
- */
107
- readonly cancel: _angular_core.OutputEmitterRef<void>;
108
- /**
109
- * @description Sets the disabled state of the color gradient.
110
- * @default false
111
- */
112
- readonly disabled: _angular_core.InputSignalWithTransform<boolean, unknown>;
113
- /**
114
- * @description Specifies the format of the color output.
115
- * @default "hex"
116
- */
117
- readonly format: _angular_core.InputSignal<ColorOutputFormat>;
118
- /**
119
- * @description Marks the color gradient as invalid. When bound to a signal form field via `[formField]`,
120
- * this is written by the `FormField` directive.
121
- * @default false
122
- */
123
- readonly invalid: _angular_core.InputSignalWithTransform<boolean, unknown>;
124
- /**
125
- * @description Specifies whether the color picker should display the alpha slider.
126
- * @default true
127
- */
128
- readonly opacity: _angular_core.InputSignalWithTransform<boolean, unknown>;
129
- /**
130
- * @description Prevents value changes while the control stays focusable and readable. When bound to a signal form
131
- * field via `[formField]`, this is written by the `FormField` directive.
132
- * @default false
133
- */
134
- readonly readonly: _angular_core.InputSignalWithTransform<boolean, unknown>;
135
- /**
136
- * @description Marks the color gradient as required for form validation.
137
- * @default false
138
- */
139
- readonly required: _angular_core.InputSignalWithTransform<boolean, unknown>;
140
- /**
141
- * @description Specifies the rounded variant of the color picker.
142
- * @default "medium"
143
- */
144
- readonly rounded: _angular_core.InputSignal<"none" | "small" | "medium" | "large" | "full" | null | undefined>;
145
- /**
146
- * @description Specifies whether the color picker should display the buttons.
147
- * When set to true, the color picker will display the "Apply" and "Cancel" buttons.
148
- * When set to false, the color picker will not display the buttons and will emit the color value on change.
149
- * @default true
150
- */
151
- readonly showButtons: _angular_core.InputSignalWithTransform<boolean, unknown>;
152
- /**
153
- * @description Specifies whether the color picker should display the channel inputs (RGB or HSV).
154
- * @default true
155
- */
156
- readonly showColorInputs: _angular_core.InputSignalWithTransform<boolean, unknown>;
157
- /**
158
- * @description Specifies whether the color picker should display the hex input.
159
- * @default true
160
- */
161
- readonly showHexInput: _angular_core.InputSignalWithTransform<boolean, unknown>;
162
- /**
163
- * @description Emitted when focus leaves the color gradient. Moving between its own parts doesn't count.
164
- * The `FormField` directive listens to this to mark the field as touched.
165
- */
166
- readonly touch: _angular_core.OutputEmitterRef<void>;
167
- /**
168
- * @description Marks the color gradient as touched. When bound to a signal form field via `[formField]`,
169
- * this is written by the `FormField` directive.
170
- * @default false
171
- */
172
- readonly touched: _angular_core.InputSignalWithTransform<boolean, unknown>;
173
- /**
174
- * @description Two-way bindable current color value.
175
- * When undefined, the component keeps its default internal color state (white, #ffffffff).
176
- * @default undefined
177
- */
178
- readonly value: _angular_core.ModelSignal<string | null | undefined>;
179
- constructor();
180
- /**
181
- * @description Moves focus to the saturation and value handle.
182
- * @param options Options passed to the native `focus()` call, such as `preventScroll`.
183
- */
184
- focus(options?: FocusOptions): void;
185
- protected onAlphaChange(value: number | null): void;
186
- protected onApply(): void;
187
- protected onCancel(): void;
188
- protected onClearClick(): void;
189
- protected onCopyColorSelect(mode: "hex" | "rgb"): void;
190
- protected onFocusOut(event: FocusEvent): void;
191
- protected onHexChange(value: string): void;
192
- protected onHexInputBlur(): void;
193
- protected onHexInputFocus(): void;
194
- protected onHsvChange(value: number | null, channel: HSVChannel): void;
195
- protected onHsvHandleKeyDown(event: KeyboardEvent): void;
196
- protected onHueChange(value: number): void;
197
- protected onPreviousColorKeyDown(event: KeyboardEvent, handler?: () => void): void;
198
- protected onResetColorClick(): void;
199
- protected onRgbChange(value: number | null, channel: RGBChannel): void;
200
- protected onSwitchColorModeClick(): void;
201
- private clear;
202
- private commitValue;
203
- private createHsvInputList;
204
- private createRgbInputList;
205
- private emitValue;
206
- private getValidChannelValue;
207
- private loadColorFromString;
208
- /**
209
- * Shows a value in the controls, dropping any edit that wasn't applied.
210
- */
211
- private loadValue;
212
- private moveHandleToPointer;
213
- /**
214
- * Pressing anywhere in the area starts a drag. Capturing the pointer keeps the moves coming when it leaves the area,
215
- * and the press itself mustn't take focus away from the handle.
216
- */
217
- private setHsvRectPointerEvents;
218
- private syncValue;
219
- private updateHexInputValue;
220
- private updateHsvValues;
221
- private updateOtherNullChannels;
222
- private updateRgb;
223
- private updateRgbFromHsv;
224
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<ColorGradientComponent, never>;
225
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<ColorGradientComponent, "mona-color-gradient", never, { "ariaLabel": { "alias": "aria-label"; "required": false; "isSignal": true; }; "ariaLabelledBy": { "alias": "aria-labelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "format": { "alias": "format"; "required": false; "isSignal": true; }; "invalid": { "alias": "invalid"; "required": false; "isSignal": true; }; "opacity": { "alias": "opacity"; "required": false; "isSignal": true; }; "readonly": { "alias": "readonly"; "required": false; "isSignal": true; }; "required": { "alias": "required"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "showButtons": { "alias": "showButtons"; "required": false; "isSignal": true; }; "showColorInputs": { "alias": "showColorInputs"; "required": false; "isSignal": true; }; "showHexInput": { "alias": "showHexInput"; "required": false; "isSignal": true; }; "touched": { "alias": "touched"; "required": false; "isSignal": true; }; "value": { "alias": "value"; "required": false; "isSignal": true; }; }, { "apply": "apply"; "cancel": "cancel"; "touch": "touch"; "value": "valueChange"; }, never, never, true, never>;
40
+ export declare class ColorGradientComponent implements ColorGradientVariantInputs, FormValueControl<string | null | undefined> {
41
+ #private;
42
+ protected readonly alpha: import("@angular/core").WritableSignal<number>;
43
+ protected readonly alphaInputColor: Signal<string>;
44
+ protected readonly alphaSliderBackground: Signal<string>;
45
+ protected readonly alphaValueText: Signal<(alpha: number) => string>;
46
+ protected readonly baseClasses: Signal<string>;
47
+ protected readonly colorInputs: Signal<ColorInput[]>;
48
+ protected readonly colorMode: import("@angular/core").WritableSignal<ColorMode>;
49
+ protected readonly colorPreviewClasses: Signal<string>;
50
+ protected readonly colorPreviews: Signal<({
51
+ type: string;
52
+ color: string;
53
+ title: string;
54
+ onClick?: undefined;
55
+ } | {
56
+ type: string;
57
+ color: string;
58
+ title: string;
59
+ onClick: () => void;
60
+ })[]>;
61
+ protected readonly effectiveDisabled: Signal<boolean>;
62
+ protected readonly hex: Signal<string>;
63
+ protected readonly hexFocused: import("@angular/core").WritableSignal<boolean>;
64
+ protected readonly hexInputValue: import("@angular/core").WritableSignal<string>;
65
+ protected readonly hsv: import("@angular/core").WritableSignal<HSV>;
66
+ protected readonly hsvHandle: Signal<ElementRef<HTMLDivElement>>;
67
+ protected readonly hsvRectangle: Signal<ElementRef<HTMLDivElement>>;
68
+ protected readonly hsvRectangleBackground: Signal<string>;
69
+ protected readonly hsvRectangleClasses: Signal<string>;
70
+ protected readonly hsvRectangleHandleClasses: Signal<string>;
71
+ protected readonly interactionDisabled: Signal<boolean>;
72
+ protected readonly invalidState: Signal<boolean>;
73
+ protected readonly labelledBy: Signal<string | null>;
74
+ protected readonly lastSelectedColor: import("@angular/core").WritableSignal<string>;
75
+ protected readonly messages: Signal<import("@nanahoshi/mona-ui/i18n").MonaColorGradientMessages>;
76
+ protected readonly rgb: import("@angular/core").WritableSignal<RGB>;
77
+ protected readonly roundedHue: Signal<number>;
78
+ protected readonly roundedSaturation: Signal<number>;
79
+ protected readonly roundedValue: Signal<number>;
80
+ protected readonly selectedColor: Signal<string>;
81
+ protected readonly sliderHandleClasses: Signal<string>;
82
+ protected readonly sliderHeight = 10;
83
+ /**
84
+ * @description Emits when the Apply button is clicked.
85
+ * The `Apply` button is only displayed when `showButtons` is set to true.
86
+ */
87
+ readonly apply: import("@angular/core").OutputEmitterRef<void>;
88
+ /**
89
+ * @description Accessible name of the group of controls.
90
+ * @default ""
91
+ */
92
+ readonly ariaLabel: import("@angular/core").InputSignal<string>;
93
+ /**
94
+ * @description Id of the element that names the group of controls.
95
+ * @default ""
96
+ */
97
+ readonly ariaLabelledBy: import("@angular/core").InputSignal<string>;
98
+ /**
99
+ * @description Emits when the Cancel button is clicked, after the controls go back to the current value.
100
+ * The `Cancel` button is only displayed when `showButtons` is set to true.
101
+ */
102
+ readonly cancel: import("@angular/core").OutputEmitterRef<void>;
103
+ /**
104
+ * @description Sets the disabled state of the color gradient.
105
+ * @default false
106
+ */
107
+ readonly disabled: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
108
+ /**
109
+ * @description Specifies the format of the color output.
110
+ * @default "hex"
111
+ */
112
+ readonly format: import("@angular/core").InputSignal<ColorOutputFormat>;
113
+ /**
114
+ * @description Marks the color gradient as invalid. When bound to a signal form field via `[formField]`,
115
+ * this is written by the `FormField` directive.
116
+ * @default false
117
+ */
118
+ readonly invalid: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
119
+ /**
120
+ * @description Specifies whether the color picker should display the alpha slider.
121
+ * @default true
122
+ */
123
+ readonly opacity: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
124
+ /**
125
+ * @description Prevents value changes while the control stays focusable and readable. When bound to a signal form
126
+ * field via `[formField]`, this is written by the `FormField` directive.
127
+ * @default false
128
+ */
129
+ readonly readonly: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
130
+ /**
131
+ * @description Marks the color gradient as required for form validation.
132
+ * @default false
133
+ */
134
+ readonly required: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
135
+ /**
136
+ * @description Specifies the rounded variant of the color picker.
137
+ * @default "medium"
138
+ */
139
+ readonly rounded: import("@angular/core").InputSignal<"none" | "small" | "medium" | "large" | "full" | null | undefined>;
140
+ /**
141
+ * @description Specifies whether the color picker should display the buttons.
142
+ * When set to true, the color picker will display the "Apply" and "Cancel" buttons.
143
+ * When set to false, the color picker will not display the buttons and will emit the color value on change.
144
+ * @default true
145
+ */
146
+ readonly showButtons: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
147
+ /**
148
+ * @description Specifies whether the color picker should display the channel inputs (RGB or HSV).
149
+ * @default true
150
+ */
151
+ readonly showColorInputs: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
152
+ /**
153
+ * @description Specifies whether the color picker should display the hex input.
154
+ * @default true
155
+ */
156
+ readonly showHexInput: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
157
+ /**
158
+ * @description Emitted when focus leaves the color gradient. Moving between its own parts doesn't count.
159
+ * The `FormField` directive listens to this to mark the field as touched.
160
+ */
161
+ readonly touch: import("@angular/core").OutputEmitterRef<void>;
162
+ /**
163
+ * @description Marks the color gradient as touched. When bound to a signal form field via `[formField]`,
164
+ * this is written by the `FormField` directive.
165
+ * @default false
166
+ */
167
+ readonly touched: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
168
+ /**
169
+ * @description Two-way bindable current color value.
170
+ * When undefined, the component keeps its default internal color state (white, #ffffffff).
171
+ * @default undefined
172
+ */
173
+ readonly value: import("@angular/core").ModelSignal<string | null | undefined>;
174
+ constructor();
175
+ /**
176
+ * @description Moves focus to the saturation and value handle.
177
+ * @param options Options passed to the native `focus()` call, such as `preventScroll`.
178
+ */
179
+ focus(options?: FocusOptions): void;
180
+ protected onAlphaChange(value: number | null): void;
181
+ protected onApply(): void;
182
+ protected onCancel(): void;
183
+ protected onClearClick(): void;
184
+ protected onCopyColorSelect(mode: "hex" | "rgb"): void;
185
+ protected onFocusOut(event: FocusEvent): void;
186
+ protected onHexChange(value: string): void;
187
+ protected onHexInputBlur(): void;
188
+ protected onHexInputFocus(): void;
189
+ protected onHsvChange(value: number | null, channel: HSVChannel): void;
190
+ protected onHsvHandleKeyDown(event: KeyboardEvent): void;
191
+ protected onHueChange(value: number): void;
192
+ protected onPreviousColorKeyDown(event: KeyboardEvent, handler?: () => void): void;
193
+ protected onResetColorClick(): void;
194
+ protected onRgbChange(value: number | null, channel: RGBChannel): void;
195
+ protected onSwitchColorModeClick(): void;
196
+ private clear;
197
+ private commitValue;
198
+ private createHsvInputList;
199
+ private createRgbInputList;
200
+ private emitValue;
201
+ private getValidChannelValue;
202
+ private loadColorFromString;
203
+ /**
204
+ * Shows a value in the controls, dropping any edit that wasn't applied.
205
+ */
206
+ private loadValue;
207
+ private moveHandleToPointer;
208
+ /**
209
+ * Pressing anywhere in the area starts a drag. Capturing the pointer keeps the moves coming when it leaves the area,
210
+ * and the press itself mustn't take focus away from the handle.
211
+ */
212
+ private setHsvRectPointerEvents;
213
+ private syncValue;
214
+ private updateHexInputValue;
215
+ private updateHsvValues;
216
+ private updateOtherNullChannels;
217
+ private updateRgb;
218
+ private updateRgbFromHsv;
219
+ static ɵfac: i0.ɵɵFactoryDeclaration<ColorGradientComponent, never>;
220
+ static ɵcmp: i0.ɵɵComponentDeclaration<ColorGradientComponent, "mona-color-gradient", never, {
221
+ "ariaLabel": {
222
+ "alias": "aria-label";
223
+ "required": false;
224
+ "isSignal": true;
225
+ };
226
+ "ariaLabelledBy": {
227
+ "alias": "aria-labelledby";
228
+ "required": false;
229
+ "isSignal": true;
230
+ };
231
+ "disabled": {
232
+ "alias": "disabled";
233
+ "required": false;
234
+ "isSignal": true;
235
+ };
236
+ "format": {
237
+ "alias": "format";
238
+ "required": false;
239
+ "isSignal": true;
240
+ };
241
+ "invalid": {
242
+ "alias": "invalid";
243
+ "required": false;
244
+ "isSignal": true;
245
+ };
246
+ "opacity": {
247
+ "alias": "opacity";
248
+ "required": false;
249
+ "isSignal": true;
250
+ };
251
+ "readonly": {
252
+ "alias": "readonly";
253
+ "required": false;
254
+ "isSignal": true;
255
+ };
256
+ "required": {
257
+ "alias": "required";
258
+ "required": false;
259
+ "isSignal": true;
260
+ };
261
+ "rounded": {
262
+ "alias": "rounded";
263
+ "required": false;
264
+ "isSignal": true;
265
+ };
266
+ "showButtons": {
267
+ "alias": "showButtons";
268
+ "required": false;
269
+ "isSignal": true;
270
+ };
271
+ "showColorInputs": {
272
+ "alias": "showColorInputs";
273
+ "required": false;
274
+ "isSignal": true;
275
+ };
276
+ "showHexInput": {
277
+ "alias": "showHexInput";
278
+ "required": false;
279
+ "isSignal": true;
280
+ };
281
+ "touched": {
282
+ "alias": "touched";
283
+ "required": false;
284
+ "isSignal": true;
285
+ };
286
+ "value": {
287
+ "alias": "value";
288
+ "required": false;
289
+ "isSignal": true;
290
+ };
291
+ }, {
292
+ "apply": "apply";
293
+ "cancel": "cancel";
294
+ "touch": "touch";
295
+ "value": "valueChange";
296
+ }, never, never, true, never>;
226
297
  }
227
-
228
- declare const COLOR_GRADIENT_DEFAULT_MESSAGES: MonaColorGradientMessages;
229
-
230
- export { COLOR_GRADIENT_DEFAULT_MESSAGES, ColorGradientComponent };
231
- export type { ColorGradientVariantProps };
298
+ export declare const COLOR_GRADIENT_DEFAULT_MESSAGES: MonaColorGradientMessages;
299
+ export type { ColorGradientVariantProps };