@nanahoshi/mona-ui 0.24.7 → 0.24.9

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 (97) hide show
  1. package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1 -1
  2. package/fesm2022/nanahoshi-mona-ui-button-group.mjs +37 -9
  3. package/fesm2022/nanahoshi-mona-ui-button.mjs +8 -2
  4. package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +4 -3
  5. package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1 -1
  6. package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +101 -47
  7. package/fesm2022/nanahoshi-mona-ui-dialog.mjs +339 -101
  8. package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +119 -69
  9. package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1 -1
  10. package/fesm2022/nanahoshi-mona-ui-editor.mjs +2 -2
  11. package/fesm2022/{nanahoshi-mona-ui-grid-grid-footer-row.component-vXXNWmEN.mjs → nanahoshi-mona-ui-grid-grid-footer-row.component-DhKLnW06.mjs} +2 -2
  12. package/fesm2022/{nanahoshi-mona-ui-grid-grid-list.component-DDgNmgE0.mjs → nanahoshi-mona-ui-grid-grid-list.component-voGbKOiB.mjs} +4 -4
  13. package/fesm2022/{nanahoshi-mona-ui-grid-grid-row.component-Dzf6Vbs_.mjs → nanahoshi-mona-ui-grid-grid-row.component-HQ1Kv6R9.mjs} +2 -3
  14. package/fesm2022/{nanahoshi-mona-ui-grid-grid-virtual-list.component-DAPNqnWV.mjs → nanahoshi-mona-ui-grid-grid-virtual-list.component-PNLJFcuH.mjs} +4 -4
  15. package/fesm2022/{nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-B9rmDLq8.mjs → nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-BO19AVwC.mjs} +10 -10
  16. package/fesm2022/nanahoshi-mona-ui-grid.mjs +1 -1
  17. package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +44 -3
  18. package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +20 -4
  19. package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +335 -45
  20. package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +565 -197
  21. package/fesm2022/nanahoshi-mona-ui-internal.mjs +465 -23
  22. package/fesm2022/nanahoshi-mona-ui-list-box.mjs +598 -208
  23. package/fesm2022/nanahoshi-mona-ui-list-view.mjs +193 -71
  24. package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +29 -3
  25. package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +33 -3
  26. package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +33 -3
  27. package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +40 -3
  28. package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +29 -3
  29. package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +33 -3
  30. package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +29 -3
  31. package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +29 -3
  32. package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +33 -3
  33. package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +49 -3
  34. package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +29 -3
  35. package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +29 -3
  36. package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +29 -3
  37. package/fesm2022/nanahoshi-mona-ui-menubar.mjs +127 -133
  38. package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1 -1
  39. package/fesm2022/nanahoshi-mona-ui-notification.mjs +473 -240
  40. package/fesm2022/nanahoshi-mona-ui-popover.mjs +202 -90
  41. package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +609 -256
  42. package/fesm2022/nanahoshi-mona-ui-popup.mjs +2 -0
  43. package/fesm2022/nanahoshi-mona-ui-sheet.mjs +45 -10
  44. package/fesm2022/nanahoshi-mona-ui-split-button.mjs +102 -58
  45. package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +286 -443
  46. package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +205 -140
  47. package/fesm2022/nanahoshi-mona-ui-window.mjs +591 -310
  48. package/i18n/catalogs/en-US.messages.json +32 -6
  49. package/locales/ar-sa/ar-sa.messages.json +29 -3
  50. package/locales/de-de/de-de.messages.json +29 -3
  51. package/locales/es-es/es-es.messages.json +29 -3
  52. package/locales/fr-fr/fr-fr.messages.json +29 -3
  53. package/locales/id-id/id-id.messages.json +29 -3
  54. package/locales/it-it/it-it.messages.json +29 -3
  55. package/locales/ja-jp/ja-jp.messages.json +29 -3
  56. package/locales/ko-kr/ko-kr.messages.json +29 -3
  57. package/locales/pt-br/pt-br.messages.json +29 -3
  58. package/locales/ru-ru/ru-ru.messages.json +29 -3
  59. package/locales/tr-tr/tr-tr.messages.json +29 -3
  60. package/locales/zh-cn/zh-cn.messages.json +29 -3
  61. package/locales/zh-tw/zh-tw.messages.json +29 -3
  62. package/package.json +1 -1
  63. package/types/nanahoshi-mona-ui-button-group.d.ts +13 -3
  64. package/types/nanahoshi-mona-ui-button.d.ts +20 -3
  65. package/types/nanahoshi-mona-ui-contextmenu.d.ts +5 -6
  66. package/types/nanahoshi-mona-ui-dialog.d.ts +131 -20
  67. package/types/nanahoshi-mona-ui-dropdown-button.d.ts +75 -56
  68. package/types/nanahoshi-mona-ui-i18n.d.ts +69 -0
  69. package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +14 -2
  70. package/types/nanahoshi-mona-ui-internal-list.d.ts +89 -10
  71. package/types/nanahoshi-mona-ui-internal-tree.d.ts +155 -40
  72. package/types/nanahoshi-mona-ui-internal.d.ts +128 -16
  73. package/types/nanahoshi-mona-ui-list-box.d.ts +148 -47
  74. package/types/nanahoshi-mona-ui-list-view.d.ts +112 -21
  75. package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +26 -0
  76. package/types/nanahoshi-mona-ui-locales-de-de.d.ts +26 -0
  77. package/types/nanahoshi-mona-ui-locales-es-es.d.ts +26 -0
  78. package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +26 -0
  79. package/types/nanahoshi-mona-ui-locales-id-id.d.ts +26 -0
  80. package/types/nanahoshi-mona-ui-locales-it-it.d.ts +26 -0
  81. package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +26 -0
  82. package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +26 -0
  83. package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +26 -0
  84. package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +26 -0
  85. package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +26 -0
  86. package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +26 -0
  87. package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +26 -0
  88. package/types/nanahoshi-mona-ui-menubar.d.ts +65 -62
  89. package/types/nanahoshi-mona-ui-notification.d.ts +76 -16
  90. package/types/nanahoshi-mona-ui-popover.d.ts +44 -17
  91. package/types/nanahoshi-mona-ui-popup-menu.d.ts +110 -32
  92. package/types/nanahoshi-mona-ui-popup.d.ts +2 -0
  93. package/types/nanahoshi-mona-ui-sheet.d.ts +16 -5
  94. package/types/nanahoshi-mona-ui-split-button.d.ts +29 -7
  95. package/types/nanahoshi-mona-ui-tooltip.d.ts +43 -20
  96. package/types/nanahoshi-mona-ui-tree-view.d.ts +84 -40
  97. package/types/nanahoshi-mona-ui-window.d.ts +103 -14
@@ -260,17 +260,29 @@ declare const MONA_PT_BR_LOCALE: {
260
260
  };
261
261
  list: {
262
262
  filterList: string;
263
+ loading: string;
263
264
  noData: string;
265
+ pagerLabel: (list: string) => string;
264
266
  };
265
267
  listBox: {
266
268
  clearSelection: string;
269
+ itemsMoved: (position: number, total: number) => string;
270
+ itemsRemoved: (count: number) => string;
271
+ itemsTransferred: (count: number, list: string) => string;
272
+ itemsTransferredToOtherList: (count: number) => string;
267
273
  moveDown: string;
268
274
  moveUp: string;
269
275
  remove: string;
276
+ selectionCleared: string;
277
+ toolbarLabel: (list: string) => string;
270
278
  transferAllFrom: string;
279
+ transferAllFromList: (list: string) => string;
271
280
  transferAllTo: string;
281
+ transferAllToList: (list: string) => string;
272
282
  transferFrom: string;
283
+ transferFromList: (list: string) => string;
273
284
  transferTo: string;
285
+ transferToList: (list: string) => string;
274
286
  };
275
287
  multiSelect: {
276
288
  clear: string;
@@ -281,6 +293,7 @@ declare const MONA_PT_BR_LOCALE: {
281
293
  close: string;
282
294
  error: string;
283
295
  info: string;
296
+ region: string;
284
297
  success: string;
285
298
  warning: string;
286
299
  };
@@ -338,6 +351,7 @@ declare const MONA_PT_BR_LOCALE: {
338
351
  };
339
352
  splitButton: {
340
353
  menuButtonAriaLabel: string;
354
+ menuButtonWithText: (text: string) => string;
341
355
  splitButton: (text: string) => string;
342
356
  };
343
357
  splitter: {
@@ -381,13 +395,24 @@ declare const MONA_PT_BR_LOCALE: {
381
395
  collapse: string;
382
396
  expand: string;
383
397
  filter: string;
398
+ filterLabel: (tree: string) => string;
384
399
  filterTree: string;
400
+ loadError: (node: string) => string;
401
+ loadingNode: (node: string) => string;
402
+ movedAfter: (node: string, target: string) => string;
403
+ movedBefore: (node: string, target: string) => string;
404
+ movedInto: (node: string, target: string) => string;
405
+ noData: string;
406
+ noMatches: string;
407
+ results: (count: number) => string;
408
+ retryLoading: (node: string) => string;
385
409
  };
386
410
  window: {
387
411
  close: string;
388
412
  closeWindow: string;
389
413
  maximize: string;
390
414
  minimize: string;
415
+ moveOrResizeWindow: string;
391
416
  moveWindow: string;
392
417
  resizeBottom: string;
393
418
  resizeBottomLeft: string;
@@ -397,6 +422,7 @@ declare const MONA_PT_BR_LOCALE: {
397
422
  resizeTop: string;
398
423
  resizeTopLeft: string;
399
424
  resizeTopRight: string;
425
+ resizeWindow: string;
400
426
  restore: string;
401
427
  };
402
428
  };
@@ -260,17 +260,29 @@ declare const MONA_RU_RU_LOCALE: {
260
260
  };
261
261
  list: {
262
262
  filterList: string;
263
+ loading: string;
263
264
  noData: string;
265
+ pagerLabel: (list: string) => string;
264
266
  };
265
267
  listBox: {
266
268
  clearSelection: string;
269
+ itemsMoved: (position: number, total: number) => string;
270
+ itemsRemoved: (count: number) => string;
271
+ itemsTransferred: (count: number, list: string) => string;
272
+ itemsTransferredToOtherList: (count: number) => string;
267
273
  moveDown: string;
268
274
  moveUp: string;
269
275
  remove: string;
276
+ selectionCleared: string;
277
+ toolbarLabel: (list: string) => string;
270
278
  transferAllFrom: string;
279
+ transferAllFromList: (list: string) => string;
271
280
  transferAllTo: string;
281
+ transferAllToList: (list: string) => string;
272
282
  transferFrom: string;
283
+ transferFromList: (list: string) => string;
273
284
  transferTo: string;
285
+ transferToList: (list: string) => string;
274
286
  };
275
287
  multiSelect: {
276
288
  clear: string;
@@ -281,6 +293,7 @@ declare const MONA_RU_RU_LOCALE: {
281
293
  close: string;
282
294
  error: string;
283
295
  info: string;
296
+ region: string;
284
297
  success: string;
285
298
  warning: string;
286
299
  };
@@ -338,6 +351,7 @@ declare const MONA_RU_RU_LOCALE: {
338
351
  };
339
352
  splitButton: {
340
353
  menuButtonAriaLabel: string;
354
+ menuButtonWithText: (text: string) => string;
341
355
  splitButton: (text: string) => string;
342
356
  };
343
357
  splitter: {
@@ -381,13 +395,24 @@ declare const MONA_RU_RU_LOCALE: {
381
395
  collapse: string;
382
396
  expand: string;
383
397
  filter: string;
398
+ filterLabel: (tree: string) => string;
384
399
  filterTree: string;
400
+ loadError: (node: string) => string;
401
+ loadingNode: (node: string) => string;
402
+ movedAfter: (node: string, target: string) => string;
403
+ movedBefore: (node: string, target: string) => string;
404
+ movedInto: (node: string, target: string) => string;
405
+ noData: string;
406
+ noMatches: string;
407
+ results: (count: number) => string;
408
+ retryLoading: (node: string) => string;
385
409
  };
386
410
  window: {
387
411
  close: string;
388
412
  closeWindow: string;
389
413
  maximize: string;
390
414
  minimize: string;
415
+ moveOrResizeWindow: string;
391
416
  moveWindow: string;
392
417
  resizeBottom: string;
393
418
  resizeBottomLeft: string;
@@ -397,6 +422,7 @@ declare const MONA_RU_RU_LOCALE: {
397
422
  resizeTop: string;
398
423
  resizeTopLeft: string;
399
424
  resizeTopRight: string;
425
+ resizeWindow: string;
400
426
  restore: string;
401
427
  };
402
428
  };
@@ -260,17 +260,29 @@ declare const MONA_TR_TR_LOCALE: {
260
260
  };
261
261
  list: {
262
262
  filterList: string;
263
+ loading: string;
263
264
  noData: string;
265
+ pagerLabel: (list: string) => string;
264
266
  };
265
267
  listBox: {
266
268
  clearSelection: string;
269
+ itemsMoved: (position: number, total: number) => string;
270
+ itemsRemoved: (count: number) => string;
271
+ itemsTransferred: (count: number, list: string) => string;
272
+ itemsTransferredToOtherList: (count: number) => string;
267
273
  moveDown: string;
268
274
  moveUp: string;
269
275
  remove: string;
276
+ selectionCleared: string;
277
+ toolbarLabel: (list: string) => string;
270
278
  transferAllFrom: string;
279
+ transferAllFromList: (list: string) => string;
271
280
  transferAllTo: string;
281
+ transferAllToList: (list: string) => string;
272
282
  transferFrom: string;
283
+ transferFromList: (list: string) => string;
273
284
  transferTo: string;
285
+ transferToList: (list: string) => string;
274
286
  };
275
287
  multiSelect: {
276
288
  clear: string;
@@ -281,6 +293,7 @@ declare const MONA_TR_TR_LOCALE: {
281
293
  close: string;
282
294
  error: string;
283
295
  info: string;
296
+ region: string;
284
297
  success: string;
285
298
  warning: string;
286
299
  };
@@ -338,6 +351,7 @@ declare const MONA_TR_TR_LOCALE: {
338
351
  };
339
352
  splitButton: {
340
353
  menuButtonAriaLabel: string;
354
+ menuButtonWithText: (text: string) => string;
341
355
  splitButton: (text: string) => string;
342
356
  };
343
357
  splitter: {
@@ -381,13 +395,24 @@ declare const MONA_TR_TR_LOCALE: {
381
395
  collapse: string;
382
396
  expand: string;
383
397
  filter: string;
398
+ filterLabel: (tree: string) => string;
384
399
  filterTree: string;
400
+ loadError: (node: string) => string;
401
+ loadingNode: (node: string) => string;
402
+ movedAfter: (node: string, target: string) => string;
403
+ movedBefore: (node: string, target: string) => string;
404
+ movedInto: (node: string, target: string) => string;
405
+ noData: string;
406
+ noMatches: string;
407
+ results: (count: number) => string;
408
+ retryLoading: (node: string) => string;
385
409
  };
386
410
  window: {
387
411
  close: string;
388
412
  closeWindow: string;
389
413
  maximize: string;
390
414
  minimize: string;
415
+ moveOrResizeWindow: string;
391
416
  moveWindow: string;
392
417
  resizeBottom: string;
393
418
  resizeBottomLeft: string;
@@ -397,6 +422,7 @@ declare const MONA_TR_TR_LOCALE: {
397
422
  resizeTop: string;
398
423
  resizeTopLeft: string;
399
424
  resizeTopRight: string;
425
+ resizeWindow: string;
400
426
  restore: string;
401
427
  };
402
428
  };
@@ -260,17 +260,29 @@ declare const MONA_ZH_CN_LOCALE: {
260
260
  };
261
261
  list: {
262
262
  filterList: string;
263
+ loading: string;
263
264
  noData: string;
265
+ pagerLabel: (list: string) => string;
264
266
  };
265
267
  listBox: {
266
268
  clearSelection: string;
269
+ itemsMoved: (position: number, total: number) => string;
270
+ itemsRemoved: (count: number) => string;
271
+ itemsTransferred: (count: number, list: string) => string;
272
+ itemsTransferredToOtherList: (count: number) => string;
267
273
  moveDown: string;
268
274
  moveUp: string;
269
275
  remove: string;
276
+ selectionCleared: string;
277
+ toolbarLabel: (list: string) => string;
270
278
  transferAllFrom: string;
279
+ transferAllFromList: (list: string) => string;
271
280
  transferAllTo: string;
281
+ transferAllToList: (list: string) => string;
272
282
  transferFrom: string;
283
+ transferFromList: (list: string) => string;
273
284
  transferTo: string;
285
+ transferToList: (list: string) => string;
274
286
  };
275
287
  multiSelect: {
276
288
  clear: string;
@@ -281,6 +293,7 @@ declare const MONA_ZH_CN_LOCALE: {
281
293
  close: string;
282
294
  error: string;
283
295
  info: string;
296
+ region: string;
284
297
  success: string;
285
298
  warning: string;
286
299
  };
@@ -338,6 +351,7 @@ declare const MONA_ZH_CN_LOCALE: {
338
351
  };
339
352
  splitButton: {
340
353
  menuButtonAriaLabel: string;
354
+ menuButtonWithText: (text: string) => string;
341
355
  splitButton: (text: string) => string;
342
356
  };
343
357
  splitter: {
@@ -381,13 +395,24 @@ declare const MONA_ZH_CN_LOCALE: {
381
395
  collapse: string;
382
396
  expand: string;
383
397
  filter: string;
398
+ filterLabel: (tree: string) => string;
384
399
  filterTree: string;
400
+ loadError: (node: string) => string;
401
+ loadingNode: (node: string) => string;
402
+ movedAfter: (node: string, target: string) => string;
403
+ movedBefore: (node: string, target: string) => string;
404
+ movedInto: (node: string, target: string) => string;
405
+ noData: string;
406
+ noMatches: string;
407
+ results: (count: number) => string;
408
+ retryLoading: (node: string) => string;
385
409
  };
386
410
  window: {
387
411
  close: string;
388
412
  closeWindow: string;
389
413
  maximize: string;
390
414
  minimize: string;
415
+ moveOrResizeWindow: string;
391
416
  moveWindow: string;
392
417
  resizeBottom: string;
393
418
  resizeBottomLeft: string;
@@ -397,6 +422,7 @@ declare const MONA_ZH_CN_LOCALE: {
397
422
  resizeTop: string;
398
423
  resizeTopLeft: string;
399
424
  resizeTopRight: string;
425
+ resizeWindow: string;
400
426
  restore: string;
401
427
  };
402
428
  };
@@ -260,17 +260,29 @@ declare const MONA_ZH_TW_LOCALE: {
260
260
  };
261
261
  list: {
262
262
  filterList: string;
263
+ loading: string;
263
264
  noData: string;
265
+ pagerLabel: (list: string) => string;
264
266
  };
265
267
  listBox: {
266
268
  clearSelection: string;
269
+ itemsMoved: (position: number, total: number) => string;
270
+ itemsRemoved: (count: number) => string;
271
+ itemsTransferred: (count: number, list: string) => string;
272
+ itemsTransferredToOtherList: (count: number) => string;
267
273
  moveDown: string;
268
274
  moveUp: string;
269
275
  remove: string;
276
+ selectionCleared: string;
277
+ toolbarLabel: (list: string) => string;
270
278
  transferAllFrom: string;
279
+ transferAllFromList: (list: string) => string;
271
280
  transferAllTo: string;
281
+ transferAllToList: (list: string) => string;
272
282
  transferFrom: string;
283
+ transferFromList: (list: string) => string;
273
284
  transferTo: string;
285
+ transferToList: (list: string) => string;
274
286
  };
275
287
  multiSelect: {
276
288
  clear: string;
@@ -281,6 +293,7 @@ declare const MONA_ZH_TW_LOCALE: {
281
293
  close: string;
282
294
  error: string;
283
295
  info: string;
296
+ region: string;
284
297
  success: string;
285
298
  warning: string;
286
299
  };
@@ -338,6 +351,7 @@ declare const MONA_ZH_TW_LOCALE: {
338
351
  };
339
352
  splitButton: {
340
353
  menuButtonAriaLabel: string;
354
+ menuButtonWithText: (text: string) => string;
341
355
  splitButton: (text: string) => string;
342
356
  };
343
357
  splitter: {
@@ -381,13 +395,24 @@ declare const MONA_ZH_TW_LOCALE: {
381
395
  collapse: string;
382
396
  expand: string;
383
397
  filter: string;
398
+ filterLabel: (tree: string) => string;
384
399
  filterTree: string;
400
+ loadError: (node: string) => string;
401
+ loadingNode: (node: string) => string;
402
+ movedAfter: (node: string, target: string) => string;
403
+ movedBefore: (node: string, target: string) => string;
404
+ movedInto: (node: string, target: string) => string;
405
+ noData: string;
406
+ noMatches: string;
407
+ results: (count: number) => string;
408
+ retryLoading: (node: string) => string;
385
409
  };
386
410
  window: {
387
411
  close: string;
388
412
  closeWindow: string;
389
413
  maximize: string;
390
414
  minimize: string;
415
+ moveOrResizeWindow: string;
391
416
  moveWindow: string;
392
417
  resizeBottom: string;
393
418
  resizeBottomLeft: string;
@@ -397,6 +422,7 @@ declare const MONA_ZH_TW_LOCALE: {
397
422
  resizeTop: string;
398
423
  resizeTopLeft: string;
399
424
  resizeTopRight: string;
425
+ resizeWindow: string;
400
426
  restore: string;
401
427
  };
402
428
  };
@@ -1,6 +1,6 @@
1
1
  import * as _nanahoshi_mona_ui_popup_menu from '@nanahoshi/mona-ui/popup-menu';
2
2
  import { PopupMenuItemClickEvent, MenuItem, PopupMenuComponent, PopupMenuCheckboxItemComponent, PopupMenuOrigin, PopupMenuGroupComponent, PopupMenuItemComponent, PopupMenuRadioGroupComponent, PopupMenuRadioItemComponent, PopupMenuSeparatorComponent, PopupMenuNavigationEvent, PopupMenuGroupTemplateDirective, PopupMenuTemplateOrigin, PopupMenuIconTemplateDirective, PopupMenuShortcutTemplateDirective, PopupMenuTextTemplateDirective } from '@nanahoshi/mona-ui/popup-menu';
3
- import * as _angular_core from '@angular/core';
3
+ import * as i0 from '@angular/core';
4
4
  import { TemplateRef } from '@angular/core';
5
5
  import { Subject } from 'rxjs';
6
6
  import * as class_variance_authority_types from 'class-variance-authority/types';
@@ -14,64 +14,65 @@ declare class MenuComponent {
14
14
  /**
15
15
  * @description Sets the menu as disabled.
16
16
  */
17
- readonly disabled: _angular_core.InputSignal<boolean>;
18
- readonly iconTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
17
+ readonly disabled: i0.InputSignal<boolean>;
18
+ readonly iconTemplate: i0.Signal<TemplateRef<any> | undefined>;
19
19
  /**
20
20
  * @description Sets the items of the menu.
21
21
  * If provided, it will override the menu items defined by the menu item components.
22
22
  */
23
- readonly items: _angular_core.InputSignal<Iterable<MenuItem>>;
24
- readonly menuItems: _angular_core.Signal<_nanahoshi_mona_ui_popup_menu.PopupMenuItem[]>;
23
+ readonly items: i0.InputSignal<Iterable<MenuItem>>;
24
+ readonly menuItems: i0.Signal<_nanahoshi_mona_ui_popup_menu.PopupMenuItem[]>;
25
25
  /**
26
26
  * @description The text of the menu.
27
27
  */
28
- readonly text: _angular_core.InputSignal<string>;
29
- readonly textTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
28
+ readonly text: i0.InputSignal<string>;
29
+ readonly textTemplate: i0.Signal<TemplateRef<any> | undefined>;
30
30
  readonly uid: string;
31
31
  popupMenu: PopupMenuComponent | null;
32
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuComponent, never>;
33
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenuComponent, "mona-menu", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, ["menuItemComponents", "iconTemplate", "textTemplate"], never, true, never>;
32
+ constructor();
33
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuComponent, never>;
34
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuComponent, "mona-menu", never, { "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "items": { "alias": "items"; "required": false; "isSignal": true; }; "text": { "alias": "text"; "required": false; "isSignal": true; }; }, {}, ["menuItemComponents", "iconTemplate", "textTemplate"], never, true, never>;
34
35
  }
35
36
 
36
37
  declare class MenuCheckboxItemComponent extends PopupMenuCheckboxItemComponent {
37
38
  readonly origin = PopupMenuOrigin.MenubarMenu;
38
39
  constructor();
39
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuCheckboxItemComponent, never>;
40
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenuCheckboxItemComponent, "mona-menu-checkbox-item", never, {}, {}, never, never, true, never>;
40
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuCheckboxItemComponent, never>;
41
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuCheckboxItemComponent, "mona-menu-checkbox-item", never, {}, {}, never, never, true, never>;
41
42
  }
42
43
 
43
44
  declare class MenuGroupComponent extends PopupMenuGroupComponent {
44
45
  readonly origin = PopupMenuOrigin.MenubarMenu;
45
46
  constructor();
46
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuGroupComponent, never>;
47
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenuGroupComponent, "mona-menu-group", never, {}, {}, never, never, true, never>;
47
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuGroupComponent, never>;
48
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuGroupComponent, "mona-menu-group", never, {}, {}, never, never, true, never>;
48
49
  }
49
50
 
50
51
  declare class MenuItemComponent extends PopupMenuItemComponent {
51
52
  readonly origin = PopupMenuOrigin.MenubarMenu;
52
53
  constructor();
53
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuItemComponent, never>;
54
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenuItemComponent, "mona-menu-item", never, {}, {}, never, never, true, never>;
54
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemComponent, never>;
55
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuItemComponent, "mona-menu-item", never, {}, {}, never, never, true, never>;
55
56
  }
56
57
 
57
58
  declare class MenuRadioGroupComponent extends PopupMenuRadioGroupComponent {
58
59
  readonly origin = PopupMenuOrigin.MenubarMenu;
59
60
  constructor();
60
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuRadioGroupComponent, never>;
61
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenuRadioGroupComponent, "mona-menu-radio-group", never, {}, {}, never, never, true, never>;
61
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuRadioGroupComponent, never>;
62
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuRadioGroupComponent, "mona-menu-radio-group", never, {}, {}, never, never, true, never>;
62
63
  }
63
64
 
64
65
  declare class MenuRadioItemComponent extends PopupMenuRadioItemComponent {
65
66
  readonly origin = PopupMenuOrigin.MenubarMenu;
66
67
  constructor();
67
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuRadioItemComponent, never>;
68
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenuRadioItemComponent, "mona-menu-radio-item", never, {}, {}, never, never, true, never>;
68
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuRadioItemComponent, never>;
69
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuRadioItemComponent, "mona-menu-radio-item", never, {}, {}, never, never, true, never>;
69
70
  }
70
71
 
71
72
  declare class MenuSeparatorComponent extends PopupMenuSeparatorComponent {
72
73
  readonly origin = PopupMenuOrigin.MenubarMenu;
73
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuSeparatorComponent, never>;
74
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenuSeparatorComponent, "mona-menu-separator", never, {}, {}, never, never, true, never>;
74
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuSeparatorComponent, never>;
75
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenuSeparatorComponent, "mona-menu-separator", never, {}, {}, never, never, true, never>;
75
76
  }
76
77
 
77
78
  declare const menubarBaseThemeVariants: (props?: ({
@@ -90,108 +91,110 @@ type MenubarVariantInput = VariantInputs<MenubarVariantProps>;
90
91
 
91
92
  declare class MenubarComponent implements MenubarVariantInput {
92
93
  #private;
93
- protected readonly isRtl: _angular_core.Signal<boolean>;
94
- protected readonly activeIndex: _angular_core.WritableSignal<number>;
95
- protected readonly baseClasses: _angular_core.Signal<string>;
96
- protected readonly currentPopupElement: _angular_core.WritableSignal<HTMLElement | null>;
97
- protected readonly currentPopupMenu: _angular_core.WritableSignal<PopupMenuComponent | null>;
98
- protected readonly groupTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
99
- protected readonly iconTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
100
- protected readonly listClasses: _angular_core.Signal<string>;
101
- protected readonly listItemClasses: _angular_core.Signal<string>;
102
- protected readonly menuItemIconTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
103
- protected readonly menuItemShortcutTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
104
- protected readonly menuItemTextTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
105
- protected readonly menuList: _angular_core.Signal<readonly MenuComponent[]>;
94
+ protected readonly activeIndex: i0.WritableSignal<number>;
95
+ protected readonly baseClasses: i0.Signal<string>;
96
+ protected readonly currentPopupMenu: i0.WritableSignal<PopupMenuComponent | null>;
97
+ protected readonly groupTemplate: i0.Signal<TemplateRef<any> | undefined>;
98
+ protected readonly iconTemplate: i0.Signal<TemplateRef<any> | undefined>;
99
+ protected readonly isRtl: i0.Signal<boolean>;
100
+ protected readonly listClasses: i0.Signal<string>;
101
+ protected readonly listItemClasses: i0.Signal<string>;
102
+ protected readonly menuItemIconTemplate: i0.Signal<TemplateRef<any> | undefined>;
103
+ protected readonly menuItemShortcutTemplate: i0.Signal<TemplateRef<any> | undefined>;
104
+ protected readonly menuItemTextTemplate: i0.Signal<TemplateRef<any> | undefined>;
105
+ protected readonly menuList: i0.Signal<readonly MenuComponent[]>;
106
106
  protected readonly navigate$: Subject<PopupMenuNavigationEvent>;
107
- protected readonly popupMenuComponents: _angular_core.Signal<readonly PopupMenuComponent[]>;
108
- protected readonly textTemplate: _angular_core.Signal<TemplateRef<any> | undefined>;
107
+ protected readonly popupMenuComponents: i0.Signal<readonly PopupMenuComponent[]>;
108
+ protected readonly textTemplate: i0.Signal<TemplateRef<any> | undefined>;
109
109
  /**
110
110
  * @description ARIA label for the menubar.
111
111
  */
112
- readonly ariaLabel: _angular_core.InputSignal<string>;
112
+ readonly ariaLabel: i0.InputSignal<string>;
113
113
  /**
114
114
  * @description ARIA labelledby for the menubar.
115
115
  */
116
- readonly ariaLabelledby: _angular_core.InputSignal<string>;
116
+ readonly ariaLabelledby: i0.InputSignal<string>;
117
117
  /**
118
118
  * @description Sets the disabled state of menubar.
119
119
  */
120
- readonly disabled: _angular_core.InputSignal<boolean>;
120
+ readonly disabled: i0.InputSignal<boolean>;
121
121
  /**
122
122
  * @description Emits when a menu item is clicked.
123
123
  */
124
- readonly menuItemClick: _angular_core.OutputEmitterRef<_nanahoshi_mona_ui_popup_menu.PopupMenuItemClickEvent>;
124
+ readonly menuItemClick: i0.OutputEmitterRef<_nanahoshi_mona_ui_popup_menu.PopupMenuItemClickEvent>;
125
125
  /**
126
126
  * @description Sets the rounded style of the menubar.
127
127
  */
128
- readonly rounded: _angular_core.InputSignal<"small" | "medium" | "large" | "none" | null | undefined>;
128
+ readonly rounded: i0.InputSignal<"small" | "medium" | "large" | "none" | null | undefined>;
129
129
  /**
130
130
  * @description Sets the size of the menubar.
131
131
  */
132
- readonly size: _angular_core.InputSignal<"small" | "medium" | "large" | null | undefined>;
132
+ readonly size: i0.InputSignal<"small" | "medium" | "large" | null | undefined>;
133
133
  /**
134
134
  * @description Additional CSS classes to apply to the menubar, merged with the computed theme classes.
135
135
  */
136
- readonly userClasses: _angular_core.InputSignal<string>;
136
+ readonly userClasses: i0.InputSignal<string>;
137
137
  constructor();
138
- protected onMenuBlur(event: FocusEvent): void;
139
138
  protected onMenuClick(event: MouseEvent, item: MenuComponent): void;
140
139
  protected onMenuFocus(index: number): void;
141
140
  protected onMenuItemClick(event: MenuItemClickEvent): void;
142
141
  protected onMenuKeyDown(event: KeyboardEvent, item: MenuComponent, popupMenu: PopupMenuComponent): void;
143
- protected onMenuPointerEnter(item: MenuComponent, element: HTMLLIElement, popupMenu: PopupMenuComponent): void;
142
+ protected onMenuPointerEnter(item: MenuComponent, popupMenu: PopupMenuComponent): void;
144
143
  protected onPopupMenuClose(): void;
145
- protected onPopupMenuOpen(popupMenu: PopupMenuComponent, element: HTMLLIElement): void;
144
+ protected onPopupMenuOpen(popupMenu: PopupMenuComponent): void;
146
145
  private closeCurrentMenu;
147
146
  private findCurrentMenuIndex;
148
147
  private findMenuElementByUid;
149
- private findNextNonDisabledMenuIndex;
150
- private findPreviousNonDisabledMenuIndex;
148
+ private findNextMenuIndex;
149
+ private findPreviousMenuIndex;
151
150
  private focusMenuAt;
152
151
  private moveToFirstMenu;
153
152
  private moveToLastMenu;
153
+ /**
154
+ * Typeahead on the menubar: moves to the next menu whose text starts with the character, after the current one.
155
+ */
156
+ private moveToMenuStartingWith;
154
157
  private moveToNextMenu;
155
158
  private moveToPreviousMenu;
156
159
  private setNavigationSubscription;
157
160
  private setSubscriptions;
158
161
  private updateCurrentMenuData;
159
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenubarComponent, never>;
160
- static ɵcmp: _angular_core.ɵɵComponentDeclaration<MenubarComponent, "mona-menubar", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "userClasses": { "alias": "class"; "required": false; "isSignal": true; }; }, { "menuItemClick": "menuItemClick"; }, ["groupTemplate", "iconTemplate", "menuItemIconTemplate", "menuItemShortcutTemplate", "menuItemTextTemplate", "menuList", "textTemplate"], never, true, never>;
162
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenubarComponent, never>;
163
+ static ɵcmp: i0.ɵɵComponentDeclaration<MenubarComponent, "mona-menubar", never, { "ariaLabel": { "alias": "ariaLabel"; "required": false; "isSignal": true; }; "ariaLabelledby": { "alias": "ariaLabelledby"; "required": false; "isSignal": true; }; "disabled": { "alias": "disabled"; "required": false; "isSignal": true; }; "rounded": { "alias": "rounded"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; "userClasses": { "alias": "class"; "required": false; "isSignal": true; }; }, { "menuItemClick": "menuItemClick"; }, ["groupTemplate", "iconTemplate", "menuItemIconTemplate", "menuItemShortcutTemplate", "menuItemTextTemplate", "menuList", "textTemplate"], never, true, never>;
161
164
  }
162
165
 
163
166
  declare class MenuGroupTemplateDirective extends PopupMenuGroupTemplateDirective {
164
167
  readonly origin = PopupMenuTemplateOrigin.MenubarMenu;
165
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuGroupTemplateDirective, never>;
166
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuGroupTemplateDirective, "ng-template[monaMenuGroupTemplate]", never, {}, {}, never, never, true, never>;
168
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuGroupTemplateDirective, never>;
169
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MenuGroupTemplateDirective, "ng-template[monaMenuGroupTemplate]", never, {}, {}, never, never, true, never>;
167
170
  }
168
171
 
169
172
  declare class MenuIconTemplateDirective {
170
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuIconTemplateDirective, never>;
171
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuIconTemplateDirective, "ng-template[monaMenuIconTemplate]", never, {}, {}, never, never, true, never>;
173
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuIconTemplateDirective, never>;
174
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MenuIconTemplateDirective, "ng-template[monaMenuIconTemplate]", never, {}, {}, never, never, true, never>;
172
175
  }
173
176
 
174
177
  declare class MenuItemIconTemplateDirective extends PopupMenuIconTemplateDirective {
175
178
  readonly origin = PopupMenuTemplateOrigin.MenubarMenu;
176
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuItemIconTemplateDirective, never>;
177
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuItemIconTemplateDirective, "ng-template[monaMenuItemIconTemplate]", never, {}, {}, never, never, true, never>;
179
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemIconTemplateDirective, never>;
180
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MenuItemIconTemplateDirective, "ng-template[monaMenuItemIconTemplate]", never, {}, {}, never, never, true, never>;
178
181
  }
179
182
 
180
183
  declare class MenuItemShortcutTemplateDirective extends PopupMenuShortcutTemplateDirective {
181
184
  readonly origin = PopupMenuTemplateOrigin.MenubarMenu;
182
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuItemShortcutTemplateDirective, never>;
183
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuItemShortcutTemplateDirective, "ng-template[monaMenuItemShortcutTemplate]", never, {}, {}, never, never, true, never>;
185
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemShortcutTemplateDirective, never>;
186
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MenuItemShortcutTemplateDirective, "ng-template[monaMenuItemShortcutTemplate]", never, {}, {}, never, never, true, never>;
184
187
  }
185
188
 
186
189
  declare class MenuItemTextTemplateDirective extends PopupMenuTextTemplateDirective {
187
190
  readonly origin = PopupMenuTemplateOrigin.MenubarMenu;
188
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuItemTextTemplateDirective, never>;
189
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuItemTextTemplateDirective, "ng-template[monaMenuItemTextTemplate]", never, {}, {}, never, never, true, never>;
191
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuItemTextTemplateDirective, never>;
192
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MenuItemTextTemplateDirective, "ng-template[monaMenuItemTextTemplate]", never, {}, {}, never, never, true, never>;
190
193
  }
191
194
 
192
195
  declare class MenuTextTemplateDirective {
193
- static ɵfac: _angular_core.ɵɵFactoryDeclaration<MenuTextTemplateDirective, never>;
194
- static ɵdir: _angular_core.ɵɵDirectiveDeclaration<MenuTextTemplateDirective, "ng-template[monaMenuTextTemplate]", never, {}, {}, never, never, true, never>;
196
+ static ɵfac: i0.ɵɵFactoryDeclaration<MenuTextTemplateDirective, never>;
197
+ static ɵdir: i0.ɵɵDirectiveDeclaration<MenuTextTemplateDirective, "ng-template[monaMenuTextTemplate]", never, {}, {}, never, never, true, never>;
195
198
  }
196
199
 
197
200
  export { MenuCheckboxItemComponent, MenuComponent, MenuGroupComponent, MenuGroupTemplateDirective, MenuIconTemplateDirective, MenuItemComponent, MenuItemIconTemplateDirective, MenuItemShortcutTemplateDirective, MenuItemTextTemplateDirective, MenuRadioGroupComponent, MenuRadioItemComponent, MenuSeparatorComponent, MenuTextTemplateDirective, MenubarComponent };