@nanahoshi/mona-ui 0.34.0 → 0.35.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 (80) hide show
  1. package/alert/package.json +4 -0
  2. package/badge/package.json +4 -0
  3. package/docs/alert.md +219 -0
  4. package/docs/api/alert.md +78 -0
  5. package/docs/api/avatar.md +25 -0
  6. package/docs/api/badge.md +24 -0
  7. package/docs/api/common.md +2 -2
  8. package/docs/api/i18n.md +45 -0
  9. package/docs/api/locales.md +14 -14
  10. package/docs/api/multi-select.md +2 -0
  11. package/docs/api/separator.md +23 -0
  12. package/docs/api/toolbar.md +81 -0
  13. package/docs/avatar.md +108 -6
  14. package/docs/badge.md +181 -0
  15. package/docs/multi-select.md +54 -0
  16. package/docs/separator.md +147 -0
  17. package/docs/sidebar-menus.md +1 -1
  18. package/docs/toolbar.md +327 -0
  19. package/fesm2022/nanahoshi-mona-ui-alert.mjs +422 -0
  20. package/fesm2022/nanahoshi-mona-ui-avatar.mjs +182 -3
  21. package/fesm2022/nanahoshi-mona-ui-badge.mjs +273 -0
  22. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +10 -0
  23. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +3 -0
  24. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +3 -0
  25. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +3 -0
  26. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +3 -0
  27. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +3 -0
  28. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +3 -0
  29. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +3 -0
  30. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +3 -0
  31. package/fesm2022/nanahoshi-mona-ui-locales-pl-pl.mjs +3 -0
  32. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +3 -0
  33. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +3 -0
  34. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +3 -0
  35. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +3 -0
  36. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +3 -0
  37. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +83 -2
  38. package/fesm2022/nanahoshi-mona-ui-separator.mjs +165 -0
  39. package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +3 -3
  40. package/fesm2022/nanahoshi-mona-ui-toolbar.mjs +536 -0
  41. package/i18n/catalogs/en-US.messages.json +9 -0
  42. package/llms.txt +11 -3
  43. package/locales/ar-sa/ar-sa.messages.json +9 -0
  44. package/locales/de-de/de-de.messages.json +9 -0
  45. package/locales/es-es/es-es.messages.json +9 -0
  46. package/locales/fr-fr/fr-fr.messages.json +9 -0
  47. package/locales/id-id/id-id.messages.json +9 -0
  48. package/locales/it-it/it-it.messages.json +9 -0
  49. package/locales/ja-jp/ja-jp.messages.json +9 -0
  50. package/locales/ko-kr/ko-kr.messages.json +9 -0
  51. package/locales/pl-pl/pl-pl.messages.json +9 -0
  52. package/locales/pt-br/pt-br.messages.json +9 -0
  53. package/locales/ru-ru/ru-ru.messages.json +9 -0
  54. package/locales/tr-tr/tr-tr.messages.json +9 -0
  55. package/locales/zh-cn/zh-cn.messages.json +9 -0
  56. package/locales/zh-tw/zh-tw.messages.json +9 -0
  57. package/package.json +17 -1
  58. package/separator/package.json +4 -0
  59. package/toolbar/package.json +4 -0
  60. package/types/nanahoshi-mona-ui-alert.d.ts +144 -0
  61. package/types/nanahoshi-mona-ui-avatar.d.ts +66 -0
  62. package/types/nanahoshi-mona-ui-badge.d.ts +82 -0
  63. package/types/nanahoshi-mona-ui-i18n.d.ts +24 -0
  64. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +9 -0
  65. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +9 -0
  66. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +9 -0
  67. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +9 -0
  68. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +9 -0
  69. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +9 -0
  70. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +9 -0
  71. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +9 -0
  72. package/types/nanahoshi-mona-ui-locales-pl-pl.d.ts +9 -0
  73. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +9 -0
  74. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +9 -0
  75. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +9 -0
  76. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +9 -0
  77. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +9 -0
  78. package/types/nanahoshi-mona-ui-multi-select.d.ts +27 -0
  79. package/types/nanahoshi-mona-ui-separator.d.ts +66 -0
  80. package/types/nanahoshi-mona-ui-toolbar.d.ts +183 -0
@@ -4,9 +4,23 @@ import { Directionality } from "@angular/cdk/bidi";
4
4
  import { DateTime } from "luxon";
5
5
  export type DeepPartial<T> = T extends ((...args: never[]) => unknown) ? T : T extends readonly (infer U)[] ? readonly DeepPartial<U>[] : T extends object ? { [K in keyof T]?: DeepPartial<T[K]>; } : T;
6
6
  export type MonaTextDirection = "ltr" | "rtl";
7
+ /**
8
+ * The alert's dismiss button.
9
+ */
10
+ export interface MonaAlertMessages {
11
+ /** Name of the button that dismisses the alert, with the alert's title when it has one. */
12
+ dismissLabel(title?: string): string;
13
+ }
7
14
  export interface MonaAutoCompleteMessages {
8
15
  readonly clear: string;
9
16
  }
17
+ /**
18
+ * The avatar group's count of the avatars it doesn't show.
19
+ */
20
+ export interface MonaAvatarMessages {
21
+ /** Name of the item that stands for the avatars past `max`, such as "3 more". It shows the count as "+3". */
22
+ moreLabel(count: number): string;
23
+ }
10
24
  export interface MonaBreadcrumbMessages {
11
25
  readonly breadcrumb: string;
12
26
  readonly showFullPath: string;
@@ -833,6 +847,13 @@ export interface MonaTimeSelectorMessages {
833
847
  readonly timeSelector: string;
834
848
  }
835
849
  export type TimeSelectorMessages = MonaTimeSelectorMessages;
850
+ /**
851
+ * The toolbar's overflow menu.
852
+ */
853
+ export interface MonaToolbarMessages {
854
+ /** Name of the button that opens the menu of the items that don't fit. */
855
+ readonly moreLabel: string;
856
+ }
836
857
  export interface MonaTreeViewMessages {
837
858
  /** Start of an expanded node's expander name, followed by the node's text ("Collapse Documents"). */
838
859
  readonly collapse: string;
@@ -899,7 +920,9 @@ export interface MonaWindowMessages {
899
920
  }
900
921
  export type WindowMessages = MonaWindowMessages;
901
922
  export interface MonaLocaleMessages {
923
+ alert: MonaAlertMessages;
902
924
  autoComplete: MonaAutoCompleteMessages;
925
+ avatar: MonaAvatarMessages;
903
926
  breadcrumb: MonaBreadcrumbMessages;
904
927
  buttonGroup: MonaButtonGroupMessages;
905
928
  calendar: MonaCalendarMessages;
@@ -945,6 +968,7 @@ export interface MonaLocaleMessages {
945
968
  textBox: MonaTextBoxMessages;
946
969
  timePicker: MonaTimePickerMessages;
947
970
  timeSelector: MonaTimeSelectorMessages;
971
+ toolbar: MonaToolbarMessages;
948
972
  treeView: MonaTreeViewMessages;
949
973
  window: MonaWindowMessages;
950
974
  }
@@ -2,9 +2,15 @@ export declare const MONA_AR_SA_LOCALE: {
2
2
  direction: "rtl";
3
3
  id: string;
4
4
  messages: {
5
+ alert: {
6
+ dismissLabel: (title?: string) => string;
7
+ };
5
8
  autoComplete: {
6
9
  clear: string;
7
10
  };
11
+ avatar: {
12
+ moreLabel: (count: number) => string;
13
+ };
8
14
  breadcrumb: {
9
15
  breadcrumb: string;
10
16
  showFullPath: string;
@@ -563,6 +569,9 @@ export declare const MONA_AR_SA_LOCALE: {
563
569
  set: string;
564
570
  timeSelector: string;
565
571
  };
572
+ toolbar: {
573
+ moreLabel: string;
574
+ };
566
575
  treeView: {
567
576
  collapse: string;
568
577
  expand: string;
@@ -2,9 +2,15 @@ export declare const MONA_DE_DE_LOCALE: {
2
2
  direction: "ltr";
3
3
  id: string;
4
4
  messages: {
5
+ alert: {
6
+ dismissLabel: (title?: string) => string;
7
+ };
5
8
  autoComplete: {
6
9
  clear: string;
7
10
  };
11
+ avatar: {
12
+ moreLabel: (count: number) => string;
13
+ };
8
14
  breadcrumb: {
9
15
  breadcrumb: string;
10
16
  showFullPath: string;
@@ -563,6 +569,9 @@ export declare const MONA_DE_DE_LOCALE: {
563
569
  set: string;
564
570
  timeSelector: string;
565
571
  };
572
+ toolbar: {
573
+ moreLabel: string;
574
+ };
566
575
  treeView: {
567
576
  collapse: string;
568
577
  expand: string;
@@ -2,9 +2,15 @@ export declare const MONA_ES_ES_LOCALE: {
2
2
  direction: "ltr";
3
3
  id: string;
4
4
  messages: {
5
+ alert: {
6
+ dismissLabel: (title?: string) => string;
7
+ };
5
8
  autoComplete: {
6
9
  clear: string;
7
10
  };
11
+ avatar: {
12
+ moreLabel: (count: number) => string;
13
+ };
8
14
  breadcrumb: {
9
15
  breadcrumb: string;
10
16
  showFullPath: string;
@@ -563,6 +569,9 @@ export declare const MONA_ES_ES_LOCALE: {
563
569
  set: string;
564
570
  timeSelector: string;
565
571
  };
572
+ toolbar: {
573
+ moreLabel: string;
574
+ };
566
575
  treeView: {
567
576
  collapse: string;
568
577
  expand: string;
@@ -2,9 +2,15 @@ export declare const MONA_FR_FR_LOCALE: {
2
2
  direction: "ltr";
3
3
  id: string;
4
4
  messages: {
5
+ alert: {
6
+ dismissLabel: (title?: string) => string;
7
+ };
5
8
  autoComplete: {
6
9
  clear: string;
7
10
  };
11
+ avatar: {
12
+ moreLabel: (count: number) => string;
13
+ };
8
14
  breadcrumb: {
9
15
  breadcrumb: string;
10
16
  showFullPath: string;
@@ -563,6 +569,9 @@ export declare const MONA_FR_FR_LOCALE: {
563
569
  set: string;
564
570
  timeSelector: string;
565
571
  };
572
+ toolbar: {
573
+ moreLabel: string;
574
+ };
566
575
  treeView: {
567
576
  collapse: string;
568
577
  expand: string;
@@ -2,9 +2,15 @@ export declare const MONA_ID_ID_LOCALE: {
2
2
  direction: "ltr";
3
3
  id: string;
4
4
  messages: {
5
+ alert: {
6
+ dismissLabel: (title?: string) => string;
7
+ };
5
8
  autoComplete: {
6
9
  clear: string;
7
10
  };
11
+ avatar: {
12
+ moreLabel: (count: number) => string;
13
+ };
8
14
  breadcrumb: {
9
15
  breadcrumb: string;
10
16
  showFullPath: string;
@@ -563,6 +569,9 @@ export declare const MONA_ID_ID_LOCALE: {
563
569
  set: string;
564
570
  timeSelector: string;
565
571
  };
572
+ toolbar: {
573
+ moreLabel: string;
574
+ };
566
575
  treeView: {
567
576
  collapse: string;
568
577
  expand: string;
@@ -2,9 +2,15 @@ export declare const MONA_IT_IT_LOCALE: {
2
2
  direction: "ltr";
3
3
  id: string;
4
4
  messages: {
5
+ alert: {
6
+ dismissLabel: (title?: string) => string;
7
+ };
5
8
  autoComplete: {
6
9
  clear: string;
7
10
  };
11
+ avatar: {
12
+ moreLabel: (count: number) => string;
13
+ };
8
14
  breadcrumb: {
9
15
  breadcrumb: string;
10
16
  showFullPath: string;
@@ -563,6 +569,9 @@ export declare const MONA_IT_IT_LOCALE: {
563
569
  set: string;
564
570
  timeSelector: string;
565
571
  };
572
+ toolbar: {
573
+ moreLabel: string;
574
+ };
566
575
  treeView: {
567
576
  collapse: string;
568
577
  expand: string;
@@ -2,9 +2,15 @@ export declare const MONA_JA_JP_LOCALE: {
2
2
  direction: "ltr";
3
3
  id: string;
4
4
  messages: {
5
+ alert: {
6
+ dismissLabel: (title?: string) => string;
7
+ };
5
8
  autoComplete: {
6
9
  clear: string;
7
10
  };
11
+ avatar: {
12
+ moreLabel: (count: number) => string;
13
+ };
8
14
  breadcrumb: {
9
15
  breadcrumb: string;
10
16
  showFullPath: string;
@@ -563,6 +569,9 @@ export declare const MONA_JA_JP_LOCALE: {
563
569
  set: string;
564
570
  timeSelector: string;
565
571
  };
572
+ toolbar: {
573
+ moreLabel: string;
574
+ };
566
575
  treeView: {
567
576
  collapse: string;
568
577
  expand: string;
@@ -2,9 +2,15 @@ export declare const MONA_KO_KR_LOCALE: {
2
2
  direction: "ltr";
3
3
  id: string;
4
4
  messages: {
5
+ alert: {
6
+ dismissLabel: (title?: string) => string;
7
+ };
5
8
  autoComplete: {
6
9
  clear: string;
7
10
  };
11
+ avatar: {
12
+ moreLabel: (count: number) => string;
13
+ };
8
14
  breadcrumb: {
9
15
  breadcrumb: string;
10
16
  showFullPath: string;
@@ -563,6 +569,9 @@ export declare const MONA_KO_KR_LOCALE: {
563
569
  set: string;
564
570
  timeSelector: string;
565
571
  };
572
+ toolbar: {
573
+ moreLabel: string;
574
+ };
566
575
  treeView: {
567
576
  collapse: string;
568
577
  expand: string;
@@ -2,9 +2,15 @@ export declare const MONA_PL_PL_LOCALE: {
2
2
  direction: "ltr";
3
3
  id: string;
4
4
  messages: {
5
+ alert: {
6
+ dismissLabel: (title?: string) => string;
7
+ };
5
8
  autoComplete: {
6
9
  clear: string;
7
10
  };
11
+ avatar: {
12
+ moreLabel: (count: number) => string;
13
+ };
8
14
  breadcrumb: {
9
15
  breadcrumb: string;
10
16
  showFullPath: string;
@@ -563,6 +569,9 @@ export declare const MONA_PL_PL_LOCALE: {
563
569
  set: string;
564
570
  timeSelector: string;
565
571
  };
572
+ toolbar: {
573
+ moreLabel: string;
574
+ };
566
575
  treeView: {
567
576
  collapse: string;
568
577
  expand: string;
@@ -2,9 +2,15 @@ export declare const MONA_PT_BR_LOCALE: {
2
2
  direction: "ltr";
3
3
  id: string;
4
4
  messages: {
5
+ alert: {
6
+ dismissLabel: (title?: string) => string;
7
+ };
5
8
  autoComplete: {
6
9
  clear: string;
7
10
  };
11
+ avatar: {
12
+ moreLabel: (count: number) => string;
13
+ };
8
14
  breadcrumb: {
9
15
  breadcrumb: string;
10
16
  showFullPath: string;
@@ -563,6 +569,9 @@ export declare const MONA_PT_BR_LOCALE: {
563
569
  set: string;
564
570
  timeSelector: string;
565
571
  };
572
+ toolbar: {
573
+ moreLabel: string;
574
+ };
566
575
  treeView: {
567
576
  collapse: string;
568
577
  expand: string;
@@ -2,9 +2,15 @@ export declare const MONA_RU_RU_LOCALE: {
2
2
  direction: "ltr";
3
3
  id: string;
4
4
  messages: {
5
+ alert: {
6
+ dismissLabel: (title?: string) => string;
7
+ };
5
8
  autoComplete: {
6
9
  clear: string;
7
10
  };
11
+ avatar: {
12
+ moreLabel: (count: number) => string;
13
+ };
8
14
  breadcrumb: {
9
15
  breadcrumb: string;
10
16
  showFullPath: string;
@@ -563,6 +569,9 @@ export declare const MONA_RU_RU_LOCALE: {
563
569
  set: string;
564
570
  timeSelector: string;
565
571
  };
572
+ toolbar: {
573
+ moreLabel: string;
574
+ };
566
575
  treeView: {
567
576
  collapse: string;
568
577
  expand: string;
@@ -2,9 +2,15 @@ export declare const MONA_TR_TR_LOCALE: {
2
2
  direction: "ltr";
3
3
  id: string;
4
4
  messages: {
5
+ alert: {
6
+ dismissLabel: (title?: string) => string;
7
+ };
5
8
  autoComplete: {
6
9
  clear: string;
7
10
  };
11
+ avatar: {
12
+ moreLabel: (count: number) => string;
13
+ };
8
14
  breadcrumb: {
9
15
  breadcrumb: string;
10
16
  showFullPath: string;
@@ -563,6 +569,9 @@ export declare const MONA_TR_TR_LOCALE: {
563
569
  set: string;
564
570
  timeSelector: string;
565
571
  };
572
+ toolbar: {
573
+ moreLabel: string;
574
+ };
566
575
  treeView: {
567
576
  collapse: string;
568
577
  expand: string;
@@ -2,9 +2,15 @@ export declare const MONA_ZH_CN_LOCALE: {
2
2
  direction: "ltr";
3
3
  id: string;
4
4
  messages: {
5
+ alert: {
6
+ dismissLabel: (title?: string) => string;
7
+ };
5
8
  autoComplete: {
6
9
  clear: string;
7
10
  };
11
+ avatar: {
12
+ moreLabel: (count: number) => string;
13
+ };
8
14
  breadcrumb: {
9
15
  breadcrumb: string;
10
16
  showFullPath: string;
@@ -563,6 +569,9 @@ export declare const MONA_ZH_CN_LOCALE: {
563
569
  set: string;
564
570
  timeSelector: string;
565
571
  };
572
+ toolbar: {
573
+ moreLabel: string;
574
+ };
566
575
  treeView: {
567
576
  collapse: string;
568
577
  expand: string;
@@ -2,9 +2,15 @@ export declare const MONA_ZH_TW_LOCALE: {
2
2
  direction: "ltr";
3
3
  id: string;
4
4
  messages: {
5
+ alert: {
6
+ dismissLabel: (title?: string) => string;
7
+ };
5
8
  autoComplete: {
6
9
  clear: string;
7
10
  };
11
+ avatar: {
12
+ moreLabel: (count: number) => string;
13
+ };
8
14
  breadcrumb: {
9
15
  breadcrumb: string;
10
16
  showFullPath: string;
@@ -563,6 +569,9 @@ export declare const MONA_ZH_TW_LOCALE: {
563
569
  set: string;
564
570
  timeSelector: string;
565
571
  };
572
+ toolbar: {
573
+ moreLabel: string;
574
+ };
566
575
  treeView: {
567
576
  collapse: string;
568
577
  expand: string;
@@ -65,6 +65,13 @@ export declare class MultiSelectComponent<TData = unknown, TValue = TData> imple
65
65
  protected readonly tagTemplate: import("@angular/core").Signal<TemplateRef<any> | undefined>;
66
66
  protected readonly valueTextMap: import("@angular/core").Signal<import("@mirei/ts-collections").ImmutableDictionary<ListItem<TData>, string>>;
67
67
  protected readonly visibleTagCount: import("@angular/core").Signal<number>;
68
+ /**
69
+ * @description Lets people add values that aren't in {@link data}: Enter in the popup's filter box, on text that
70
+ * matches no item, emits {@link valueAdd} with the text, and an item whose text it matches is selected instead.
71
+ * Needs `monaDropDownFilterable`, whose filter box is where the text is typed.
72
+ * @default false
73
+ */
74
+ readonly allowCustomValue: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
68
75
  /**
69
76
  * @description ID of an element that describes the multi select, such as help text or an error message.
70
77
  * @default ""
@@ -211,6 +218,12 @@ export declare class MultiSelectComponent<TData = unknown, TValue = TData> imple
211
218
  * @default []
212
219
  */
213
220
  readonly value: import("@angular/core").ModelSignal<Iterable<TValue>>;
221
+ /**
222
+ * @description Emitted with the trimmed text when Enter is pressed in the filter box on text that matches no item.
223
+ * Only emitted when {@link allowCustomValue} is true. Add an item for it to {@link data} and to {@link value}; the
224
+ * filter box is cleared for the next one.
225
+ */
226
+ readonly valueAdd: import("@angular/core").OutputEmitterRef<string>;
214
227
  /**
215
228
  * @description Sets the value field of the multi select component.
216
229
  * It is used for stable item identity, matching externally supplied values, and primitive
@@ -243,8 +256,15 @@ export declare class MultiSelectComponent<TData = unknown, TValue = TData> imple
243
256
  protected onSelectedItemGroupRemove(event: Event): void;
244
257
  protected onSelectedItemRemove(event: Event, listItem: ListItem<TData>): void;
245
258
  protected onValueClear(event: Event): void;
259
+ private addCustomValue;
246
260
  private getSelectedControlValues;
247
261
  private handleEnterKey;
262
+ /**
263
+ * Enter in the filter box. With custom values, it adds the typed text: the item it names is selected, or `valueAdd`
264
+ * offers it. An item reached with the arrow keys is left to the list, which toggles it. With nothing highlighted,
265
+ * the list would toggle the first selected item, so Enter does nothing then.
266
+ */
267
+ private handlePopupKeydown;
248
268
  private handlePopupPositionUpdate;
249
269
  private initialize;
250
270
  private setBackspaceKeySubscription;
@@ -256,8 +276,14 @@ export declare class MultiSelectComponent<TData = unknown, TValue = TData> imple
256
276
  private synchronizeSelection;
257
277
  private toggleHighlightedItem;
258
278
  private updateValue;
279
+ private warnIfCustomValueHasNoFilter;
259
280
  static ɵfac: i0.ɵɵFactoryDeclaration<MultiSelectComponent<any, any>, never>;
260
281
  static ɵcmp: i0.ɵɵComponentDeclaration<MultiSelectComponent<any, any>, "mona-multi-select", never, {
282
+ "allowCustomValue": {
283
+ "alias": "allowCustomValue";
284
+ "required": false;
285
+ "isSignal": true;
286
+ };
261
287
  "ariaDescribedBy": {
262
288
  "alias": "aria-describedby";
263
289
  "required": false;
@@ -390,6 +416,7 @@ export declare class MultiSelectComponent<TData = unknown, TValue = TData> imple
390
416
  "opened": "opened";
391
417
  "touch": "touch";
392
418
  "value": "valueChange";
419
+ "valueAdd": "valueAdd";
393
420
  }, ["footerTemplate", "groupHeaderTemplate", "headerTemplate", "itemTemplate", "noDataTemplate", "prefixTemplate", "tagTemplate"], never, true, [{
394
421
  directive: typeof i1.DropdownDataHandlerDirective;
395
422
  inputs: {};
@@ -0,0 +1,66 @@
1
+ import { ClassInputType } from "@nanahoshi/mona-ui/common";
2
+ import * as i0 from "@angular/core";
3
+ import { VariantProps } from "class-variance-authority";
4
+ /**
5
+ * A thin line between groups of content, across a column or down a row, with an optional label in its middle. Like an
6
+ * `<hr>`, it's a separator for assistive technology unless it's marked decorative.
7
+ */
8
+ export declare class SeparatorComponent {
9
+ protected readonly baseClass: import("@angular/core").Signal<string>;
10
+ protected readonly labelled: import("@angular/core").Signal<boolean>;
11
+ protected readonly lineClass = "h-px flex-1 bg-border forced-colors:bg-[CanvasText]";
12
+ /** A label is read as text, which a separator's role would hide, so a labelled line has none. */
13
+ protected readonly role: import("@angular/core").Signal<"separator" | null>;
14
+ /**
15
+ * @description Marks the line as only visual, so assistive technology skips it. Use it where the line repeats a
16
+ * boundary the content already makes, such as between cards.
17
+ * @default false
18
+ */
19
+ readonly decorative: import("@angular/core").InputSignalWithTransform<boolean, unknown>;
20
+ /**
21
+ * @description Text in the middle of a horizontal line, such as "or" between two ways to sign in. It's read as text,
22
+ * and the line stays out of the way, as if it were decorative.
23
+ * @default ""
24
+ */
25
+ readonly label: import("@angular/core").InputSignal<string>;
26
+ /**
27
+ * @description Whether the line runs across (`horizontal`, between stacked content) or down (`vertical`, between
28
+ * items in a row). A vertical line stretches to the row's height. A labelled line is always horizontal.
29
+ * @default "horizontal"
30
+ */
31
+ readonly orientation: import("@angular/core").InputSignal<NonNullable<"horizontal" | "vertical" | null | undefined>>;
32
+ /**
33
+ * @description Additional CSS classes merged onto the host element via `tailwind-merge`, such as a margin.
34
+ * @default ""
35
+ */
36
+ readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
37
+ static ɵfac: i0.ɵɵFactoryDeclaration<SeparatorComponent, never>;
38
+ static ɵcmp: i0.ɵɵComponentDeclaration<SeparatorComponent, "mona-separator", never, {
39
+ "decorative": {
40
+ "alias": "decorative";
41
+ "required": false;
42
+ "isSignal": true;
43
+ };
44
+ "label": {
45
+ "alias": "label";
46
+ "required": false;
47
+ "isSignal": true;
48
+ };
49
+ "orientation": {
50
+ "alias": "orientation";
51
+ "required": false;
52
+ "isSignal": true;
53
+ };
54
+ "userClass": {
55
+ "alias": "class";
56
+ "required": false;
57
+ "isSignal": true;
58
+ };
59
+ }, {}, never, never, true, never>;
60
+ }
61
+ declare const separatorThemeVariants: (props?: ({
62
+ labelled?: boolean | null | undefined;
63
+ orientation?: "horizontal" | "vertical" | null | undefined;
64
+ } & import("class-variance-authority/types").ClassProp) | undefined) => string;
65
+ type SeparatorVariantProps = VariantProps<typeof separatorThemeVariants>;
66
+ export type { SeparatorVariantProps };