@nanahoshi/mona-ui 0.27.1 → 0.28.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.
- package/docs/api/auto-complete.md +67 -0
- package/docs/api/avatar.md +31 -0
- package/docs/api/breadcrumb.md +74 -0
- package/docs/api/button-group.md +71 -0
- package/docs/api/button.md +84 -0
- package/docs/api/calendar.md +123 -0
- package/docs/api/card.md +97 -0
- package/docs/api/chart.md +4380 -0
- package/docs/api/check-box.md +70 -0
- package/docs/api/chip.md +55 -0
- package/docs/api/circular-progress-bar.md +71 -0
- package/docs/api/collapsible.md +71 -0
- package/docs/api/color-gradient.md +54 -0
- package/docs/api/color-palette.md +52 -0
- package/docs/api/color-picker.md +89 -0
- package/docs/api/combo-box.md +69 -0
- package/docs/api/command.md +282 -0
- package/docs/api/common.md +599 -0
- package/docs/api/contextmenu.md +239 -0
- package/docs/api/date-input.md +119 -0
- package/docs/api/date-picker.md +67 -0
- package/docs/api/datetime-picker.md +72 -0
- package/docs/api/dialog.md +291 -0
- package/docs/api/dropdown-button.md +248 -0
- package/docs/api/dropdown-list.md +72 -0
- package/docs/api/dropdowns.md +172 -0
- package/docs/api/editor.md +117 -0
- package/docs/api/expansion-panel.md +85 -0
- package/docs/api/fieldset.md +33 -0
- package/docs/api/filter.md +116 -0
- package/docs/api/grid.md +1445 -0
- package/docs/api/i18n.md +1699 -0
- package/docs/api/label.md +58 -0
- package/docs/api/list-box.md +301 -0
- package/docs/api/list-view.md +294 -0
- package/docs/api/list.md +119 -0
- package/docs/api/locales.md +134 -0
- package/docs/api/menubar.md +275 -0
- package/docs/api/multi-select.md +92 -0
- package/docs/api/notification.md +164 -0
- package/docs/api/numeric-text-box.md +130 -0
- package/docs/api/otp-input.md +100 -0
- package/docs/api/pager.md +371 -0
- package/docs/api/placeholder.md +18 -0
- package/docs/api/popover.md +170 -0
- package/docs/api/popup-menu.md +328 -0
- package/docs/api/popup.md +299 -0
- package/docs/api/progress-bar.md +79 -0
- package/docs/api/query.md +367 -0
- package/docs/api/radio-button.md +113 -0
- package/docs/api/rating.md +187 -0
- package/docs/api/scroll-view.md +93 -0
- package/docs/api/segmented.md +114 -0
- package/docs/api/sheet.md +65 -0
- package/docs/api/sidebar.md +583 -0
- package/docs/api/skeleton.md +26 -0
- package/docs/api/slider.md +173 -0
- package/docs/api/spinner.md +132 -0
- package/docs/api/split-button.md +261 -0
- package/docs/api/splitter.md +57 -0
- package/docs/api/stepper.md +148 -0
- package/docs/api/switch.md +78 -0
- package/docs/api/tabs.md +139 -0
- package/docs/api/text-area.md +20 -0
- package/docs/api/text-box.md +106 -0
- package/docs/api/theme.md +627 -0
- package/docs/api/time-picker.md +69 -0
- package/docs/api/time-selector.md +54 -0
- package/docs/api/tooltip.md +112 -0
- package/docs/api/tree-view.md +631 -0
- package/docs/api/window.md +245 -0
- package/docs/auto-complete.md +28 -329
- package/docs/avatar.md +4 -24
- package/docs/breadcrumb.md +10 -65
- package/docs/button-group.md +7 -60
- package/docs/button.md +8 -67
- package/docs/calendar.md +16 -121
- package/docs/card.md +16 -79
- package/docs/chart-bar.md +16 -234
- package/docs/chart-financial.md +10 -121
- package/docs/chart-funnel.md +13 -176
- package/docs/chart-heatmap.md +15 -131
- package/docs/chart-line-area.md +12 -137
- package/docs/chart-pie.md +17 -221
- package/docs/chart-radar.md +13 -129
- package/docs/chart-radial.md +13 -211
- package/docs/chart-scatter.md +6 -74
- package/docs/chart-treemap.md +14 -196
- package/docs/chart.md +168 -1892
- package/docs/checkbox.md +5 -61
- package/docs/chip.md +7 -42
- package/docs/circular-progress-bar.md +9 -61
- package/docs/collapsible.md +5 -87
- package/docs/color-gradient.md +8 -81
- package/docs/color-palette.md +7 -69
- package/docs/color-picker.md +9 -105
- package/docs/combo-box.md +28 -331
- package/docs/command.md +25 -236
- package/docs/contextmenu.md +15 -140
- package/docs/date-picker.md +7 -110
- package/docs/datetime-picker.md +7 -129
- package/docs/decimal-textbox.md +6 -69
- package/docs/dialog.md +23 -263
- package/docs/dropdown-button.md +15 -146
- package/docs/dropdown-list.md +29 -332
- package/docs/editor.md +10 -164
- package/docs/expansion-panel.md +7 -69
- package/docs/fieldset.md +5 -24
- package/docs/grid-columns.md +12 -92
- package/docs/grid-editing.md +29 -291
- package/docs/grid-grouping.md +11 -50
- package/docs/grid-rows.md +10 -74
- package/docs/grid-selection.md +7 -36
- package/docs/grid-server.md +8 -293
- package/docs/grid-sorting-filtering.md +10 -333
- package/docs/grid-state-export.md +17 -228
- package/docs/grid.md +23 -216
- package/docs/input.md +7 -19
- package/docs/installation.md +147 -15
- package/docs/introduction.md +37 -15
- package/docs/label.md +8 -39
- package/docs/list-box.md +21 -253
- package/docs/list-view.md +25 -232
- package/docs/menubar.md +21 -167
- package/docs/multi-select.md +31 -350
- package/docs/notification.md +17 -116
- package/docs/numeric-textbox.md +9 -78
- package/docs/otp-input.md +9 -95
- package/docs/pager.md +19 -239
- package/docs/placeholder.md +5 -18
- package/docs/popover.md +13 -123
- package/docs/popup-menu.md +22 -243
- package/docs/popup.md +24 -248
- package/docs/progress-bar.md +10 -75
- package/docs/radio-button.md +8 -96
- package/docs/range-slider.md +9 -82
- package/docs/rating.md +15 -163
- package/docs/scroll-view.md +9 -86
- package/docs/segmented.md +8 -90
- package/docs/sheet.md +10 -74
- package/docs/sidebar-menus.md +20 -155
- package/docs/sidebar-state.md +16 -134
- package/docs/sidebar.md +18 -218
- package/docs/skeleton.md +5 -26
- package/docs/slider.md +9 -97
- package/docs/spinner.md +15 -95
- package/docs/split-button.md +21 -166
- package/docs/splitter.md +9 -56
- package/docs/stepper.md +13 -127
- package/docs/switch.md +8 -58
- package/docs/tabs.md +13 -111
- package/docs/textarea.md +4 -13
- package/docs/textbox.md +10 -77
- package/docs/theming-built-in-themes.md +67 -0
- package/docs/theming-custom-colors.md +274 -0
- package/docs/theming-custom-themes.md +168 -0
- package/docs/theming.md +164 -248
- package/docs/time-picker.md +7 -112
- package/docs/tooltip-directive.md +12 -96
- package/docs/tooltip.md +12 -96
- package/docs/tree-view.md +42 -495
- package/docs/window.md +19 -230
- package/fesm2022/nanahoshi-mona-ui-auto-complete.mjs +1089 -603
- package/fesm2022/nanahoshi-mona-ui-avatar.mjs +369 -184
- package/fesm2022/nanahoshi-mona-ui-breadcrumb.mjs +658 -371
- package/fesm2022/nanahoshi-mona-ui-button-group.mjs +513 -359
- package/fesm2022/nanahoshi-mona-ui-button.mjs +622 -517
- package/fesm2022/nanahoshi-mona-ui-calendar.mjs +2070 -1573
- package/fesm2022/nanahoshi-mona-ui-card.mjs +620 -316
- package/fesm2022/nanahoshi-mona-ui-chart.mjs +61151 -64921
- package/fesm2022/nanahoshi-mona-ui-check-box.mjs +646 -317
- package/fesm2022/nanahoshi-mona-ui-chip.mjs +737 -516
- package/fesm2022/nanahoshi-mona-ui-circular-progress-bar.mjs +441 -242
- package/fesm2022/nanahoshi-mona-ui-collapsible.mjs +443 -389
- package/fesm2022/nanahoshi-mona-ui-color-gradient.mjs +1138 -814
- package/fesm2022/nanahoshi-mona-ui-color-palette.mjs +1114 -959
- package/fesm2022/nanahoshi-mona-ui-color-picker.mjs +858 -504
- package/fesm2022/nanahoshi-mona-ui-combo-box.mjs +1181 -742
- package/fesm2022/nanahoshi-mona-ui-command.mjs +1454 -853
- package/fesm2022/nanahoshi-mona-ui-common.mjs +569 -740
- package/fesm2022/nanahoshi-mona-ui-contextmenu.mjs +978 -532
- package/fesm2022/nanahoshi-mona-ui-date-input.mjs +283 -254
- package/fesm2022/nanahoshi-mona-ui-date-picker.mjs +973 -451
- package/fesm2022/nanahoshi-mona-ui-datetime-picker.mjs +1203 -658
- package/fesm2022/nanahoshi-mona-ui-dialog.mjs +1415 -936
- package/fesm2022/nanahoshi-mona-ui-dropdown-button.mjs +1165 -568
- package/fesm2022/nanahoshi-mona-ui-dropdown-list.mjs +1142 -677
- package/fesm2022/nanahoshi-mona-ui-dropdowns.mjs +1018 -729
- package/fesm2022/nanahoshi-mona-ui-editor.mjs +3589 -2122
- package/fesm2022/nanahoshi-mona-ui-expansion-panel.mjs +577 -359
- package/fesm2022/nanahoshi-mona-ui-fieldset.mjs +311 -151
- package/fesm2022/nanahoshi-mona-ui-filter.mjs +1086 -718
- package/fesm2022/nanahoshi-mona-ui-grid-grid-colgroup.component-NhONCVIX.mjs +77 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-Djv8ZnT5.mjs +480 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-WbXAzGCa.mjs +470 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-DkWTD3pN.mjs +2115 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-DAHqTwBJ.mjs +330 -0
- package/fesm2022/nanahoshi-mona-ui-grid-grid.styles-BmLU-3zP.mjs +3766 -0
- package/fesm2022/nanahoshi-mona-ui-grid.mjs +5418 -2
- package/fesm2022/nanahoshi-mona-ui-i18n-icu.mjs +1379 -1079
- package/fesm2022/nanahoshi-mona-ui-i18n.mjs +4451 -5068
- package/fesm2022/nanahoshi-mona-ui-internal-filter-input.mjs +344 -143
- package/fesm2022/nanahoshi-mona-ui-internal-indicator-icon.mjs +257 -127
- package/fesm2022/nanahoshi-mona-ui-internal-list.mjs +2080 -1829
- package/fesm2022/nanahoshi-mona-ui-internal-popup-menu.mjs +103 -141
- package/fesm2022/nanahoshi-mona-ui-internal-tree.mjs +2498 -2706
- package/fesm2022/nanahoshi-mona-ui-internal.mjs +722 -1007
- package/fesm2022/nanahoshi-mona-ui-label.mjs +313 -202
- package/fesm2022/nanahoshi-mona-ui-list-box.mjs +1308 -1009
- package/fesm2022/nanahoshi-mona-ui-list-view.mjs +1411 -677
- package/fesm2022/nanahoshi-mona-ui-list.mjs +1 -6
- package/fesm2022/nanahoshi-mona-ui-locales-ar-sa.mjs +556 -577
- package/fesm2022/nanahoshi-mona-ui-locales-de-de.mjs +530 -573
- package/fesm2022/nanahoshi-mona-ui-locales-es-es.mjs +530 -573
- package/fesm2022/nanahoshi-mona-ui-locales-fr-fr.mjs +533 -576
- package/fesm2022/nanahoshi-mona-ui-locales-id-id.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-it-it.mjs +530 -571
- package/fesm2022/nanahoshi-mona-ui-locales-ja-jp.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-ko-kr.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-pt-br.mjs +530 -571
- package/fesm2022/nanahoshi-mona-ui-locales-ru-ru.mjs +576 -591
- package/fesm2022/nanahoshi-mona-ui-locales-tr-tr.mjs +530 -565
- package/fesm2022/nanahoshi-mona-ui-locales-zh-cn.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales-zh-tw.mjs +520 -555
- package/fesm2022/nanahoshi-mona-ui-locales.mjs +59 -77
- package/fesm2022/nanahoshi-mona-ui-menubar.mjs +1411 -829
- package/fesm2022/nanahoshi-mona-ui-multi-select.mjs +1326 -702
- package/fesm2022/nanahoshi-mona-ui-notification.mjs +763 -675
- package/fesm2022/nanahoshi-mona-ui-numeric-text-box.mjs +1306 -826
- package/fesm2022/nanahoshi-mona-ui-otp-input.mjs +1122 -897
- package/fesm2022/nanahoshi-mona-ui-pager.mjs +1110 -651
- package/fesm2022/nanahoshi-mona-ui-placeholder.mjs +95 -53
- package/fesm2022/nanahoshi-mona-ui-popover.mjs +559 -397
- package/fesm2022/nanahoshi-mona-ui-popup-menu.mjs +2323 -1694
- package/fesm2022/nanahoshi-mona-ui-popup.mjs +1657 -1455
- package/fesm2022/nanahoshi-mona-ui-progress-bar.mjs +441 -267
- package/fesm2022/nanahoshi-mona-ui-query.mjs +211 -340
- package/fesm2022/nanahoshi-mona-ui-radio-button.mjs +1017 -548
- package/fesm2022/nanahoshi-mona-ui-rating.mjs +874 -624
- package/fesm2022/nanahoshi-mona-ui-scroll-view.mjs +1130 -917
- package/fesm2022/nanahoshi-mona-ui-segmented.mjs +705 -455
- package/fesm2022/nanahoshi-mona-ui-sheet.mjs +461 -283
- package/fesm2022/nanahoshi-mona-ui-sidebar.mjs +2791 -2449
- package/fesm2022/nanahoshi-mona-ui-skeleton.mjs +145 -90
- package/fesm2022/nanahoshi-mona-ui-slider.mjs +1563 -1103
- package/fesm2022/nanahoshi-mona-ui-spinner.mjs +738 -673
- package/fesm2022/nanahoshi-mona-ui-split-button.mjs +1287 -647
- package/fesm2022/nanahoshi-mona-ui-splitter.mjs +1313 -909
- package/fesm2022/nanahoshi-mona-ui-stepper.mjs +761 -540
- package/fesm2022/nanahoshi-mona-ui-switch.mjs +611 -280
- package/fesm2022/nanahoshi-mona-ui-tabs.mjs +1393 -841
- package/fesm2022/nanahoshi-mona-ui-text-area.mjs +142 -73
- package/fesm2022/nanahoshi-mona-ui-text-box.mjs +876 -374
- package/fesm2022/nanahoshi-mona-ui-theme.mjs +1465 -1449
- package/fesm2022/nanahoshi-mona-ui-time-picker.mjs +897 -443
- package/fesm2022/nanahoshi-mona-ui-time-selector.mjs +1100 -703
- package/fesm2022/nanahoshi-mona-ui-tooltip.mjs +789 -538
- package/fesm2022/nanahoshi-mona-ui-tree-view.mjs +1361 -805
- package/fesm2022/nanahoshi-mona-ui-window.mjs +2145 -1531
- package/fesm2022/nanahoshi-mona-ui.mjs +1 -8
- package/llms.txt +80 -2
- package/package.json +62 -23
- package/types/nanahoshi-mona-ui-auto-complete.d.ts +367 -233
- package/types/nanahoshi-mona-ui-avatar.d.ts +722 -649
- package/types/nanahoshi-mona-ui-breadcrumb.d.ts +134 -103
- package/types/nanahoshi-mona-ui-button-group.d.ts +213 -152
- package/types/nanahoshi-mona-ui-button.d.ts +227 -166
- package/types/nanahoshi-mona-ui-calendar.d.ts +324 -259
- package/types/nanahoshi-mona-ui-card.d.ts +125 -111
- package/types/nanahoshi-mona-ui-chart.d.ts +10483 -7326
- package/types/nanahoshi-mona-ui-check-box.d.ts +293 -180
- package/types/nanahoshi-mona-ui-chip.d.ts +208 -141
- package/types/nanahoshi-mona-ui-circular-progress-bar.d.ts +194 -133
- package/types/nanahoshi-mona-ui-collapsible.d.ts +105 -87
- package/types/nanahoshi-mona-ui-color-gradient.d.ts +281 -213
- package/types/nanahoshi-mona-ui-color-palette.d.ts +201 -138
- package/types/nanahoshi-mona-ui-color-picker.d.ts +283 -194
- package/types/nanahoshi-mona-ui-combo-box.d.ts +401 -262
- package/types/nanahoshi-mona-ui-command.d.ts +279 -191
- package/types/nanahoshi-mona-ui-common.d.ts +360 -385
- package/types/nanahoshi-mona-ui-contextmenu.d.ts +142 -117
- package/types/nanahoshi-mona-ui-date-input.d.ts +97 -97
- package/types/nanahoshi-mona-ui-date-picker.d.ts +338 -208
- package/types/nanahoshi-mona-ui-datetime-picker.d.ts +413 -259
- package/types/nanahoshi-mona-ui-dialog.d.ts +470 -381
- package/types/nanahoshi-mona-ui-dropdown-button.d.ts +216 -168
- package/types/nanahoshi-mona-ui-dropdown-list.d.ts +369 -243
- package/types/nanahoshi-mona-ui-dropdowns.d.ts +255 -235
- package/types/nanahoshi-mona-ui-editor.d.ts +302 -235
- package/types/nanahoshi-mona-ui-expansion-panel.d.ts +140 -109
- package/types/nanahoshi-mona-ui-fieldset.d.ts +98 -68
- package/types/nanahoshi-mona-ui-filter.d.ts +150 -124
- package/types/nanahoshi-mona-ui-grid.d.ts +1956 -1678
- package/types/nanahoshi-mona-ui-i18n-icu.d.ts +25 -34
- package/types/nanahoshi-mona-ui-i18n.d.ts +999 -1052
- package/types/nanahoshi-mona-ui-internal-filter-input.d.ts +118 -71
- package/types/nanahoshi-mona-ui-internal-indicator-icon.d.ts +56 -27
- package/types/nanahoshi-mona-ui-internal-list.d.ts +474 -408
- package/types/nanahoshi-mona-ui-internal-popup-menu.d.ts +143 -150
- package/types/nanahoshi-mona-ui-internal-tree.d.ts +493 -506
- package/types/nanahoshi-mona-ui-internal.d.ts +195 -213
- package/types/nanahoshi-mona-ui-label.d.ts +108 -78
- package/types/nanahoshi-mona-ui-list-box.d.ts +392 -322
- package/types/nanahoshi-mona-ui-list-view.d.ts +423 -282
- package/types/nanahoshi-mona-ui-list.d.ts +2 -1
- package/types/nanahoshi-mona-ui-locales-ar-sa.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-de-de.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-es-es.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-fr-fr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-id-id.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-it-it.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ja-jp.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ko-kr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-pt-br.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-ru-ru.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-tr-tr.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-zh-cn.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales-zh-tw.d.ts +540 -542
- package/types/nanahoshi-mona-ui-locales.d.ts +17 -19
- package/types/nanahoshi-mona-ui-menubar.d.ts +210 -181
- package/types/nanahoshi-mona-ui-multi-select.d.ts +416 -276
- package/types/nanahoshi-mona-ui-notification.d.ts +140 -151
- package/types/nanahoshi-mona-ui-numeric-text-box.d.ts +407 -270
- package/types/nanahoshi-mona-ui-otp-input.d.ts +364 -241
- package/types/nanahoshi-mona-ui-pager.d.ts +379 -301
- package/types/nanahoshi-mona-ui-placeholder.d.ts +35 -28
- package/types/nanahoshi-mona-ui-popover.d.ts +176 -134
- package/types/nanahoshi-mona-ui-popup-menu.d.ts +488 -344
- package/types/nanahoshi-mona-ui-popup.d.ts +698 -560
- package/types/nanahoshi-mona-ui-progress-bar.d.ts +197 -137
- package/types/nanahoshi-mona-ui-query.d.ts +82 -88
- package/types/nanahoshi-mona-ui-radio-button.d.ts +434 -269
- package/types/nanahoshi-mona-ui-rating.d.ts +348 -254
- package/types/nanahoshi-mona-ui-scroll-view.d.ts +244 -172
- package/types/nanahoshi-mona-ui-segmented.d.ts +250 -175
- package/types/nanahoshi-mona-ui-sheet.d.ts +115 -63
- package/types/nanahoshi-mona-ui-sidebar.d.ts +653 -493
- package/types/nanahoshi-mona-ui-skeleton.d.ts +55 -39
- package/types/nanahoshi-mona-ui-slider.d.ts +503 -354
- package/types/nanahoshi-mona-ui-spinner.d.ts +125 -112
- package/types/nanahoshi-mona-ui-split-button.d.ts +241 -196
- package/types/nanahoshi-mona-ui-splitter.d.ts +124 -78
- package/types/nanahoshi-mona-ui-stepper.d.ts +206 -181
- package/types/nanahoshi-mona-ui-switch.d.ts +197 -131
- package/types/nanahoshi-mona-ui-tabs.d.ts +349 -248
- package/types/nanahoshi-mona-ui-text-area.d.ts +52 -36
- package/types/nanahoshi-mona-ui-text-box.d.ts +349 -218
- package/types/nanahoshi-mona-ui-theme.d.ts +415 -408
- package/types/nanahoshi-mona-ui-time-picker.d.ts +357 -217
- package/types/nanahoshi-mona-ui-time-selector.d.ts +255 -170
- package/types/nanahoshi-mona-ui-tooltip.d.ts +222 -144
- package/types/nanahoshi-mona-ui-tree-view.d.ts +466 -308
- package/types/nanahoshi-mona-ui-window.d.ts +494 -399
- package/types/nanahoshi-mona-ui.d.ts +1 -2
- package/fesm2022/nanahoshi-mona-ui-grid-grid-footer-row.component-DjNnVxHE.mjs +0 -181
- package/fesm2022/nanahoshi-mona-ui-grid-grid-list.component-ihQIKeP-.mjs +0 -208
- package/fesm2022/nanahoshi-mona-ui-grid-grid-row.component-BpnybNcs.mjs +0 -1082
- package/fesm2022/nanahoshi-mona-ui-grid-grid-virtual-list.component-CYlgfc7c.mjs +0 -186
- package/fesm2022/nanahoshi-mona-ui-grid-nanahoshi-mona-ui-grid-LCzfCYd3.mjs +0 -7568
|
@@ -1,13 +1,10 @@
|
|
|
1
|
-
import
|
|
2
|
-
import * as
|
|
3
|
-
import {
|
|
4
|
-
import
|
|
5
|
-
import * as i1 from
|
|
6
|
-
import * as i1
|
|
7
|
-
import
|
|
8
|
-
import * as _nanahoshi_mona_ui_i18n from '@nanahoshi/mona-ui/i18n';
|
|
9
|
-
import { MonaSidebarMessages } from '@nanahoshi/mona-ui/i18n';
|
|
10
|
-
|
|
1
|
+
import { ClassInputType } from "@nanahoshi/mona-ui/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { EnvironmentProviders, InjectionToken, Signal } from "@angular/core";
|
|
4
|
+
import * as i1$2 from "@angular/cdk/a11y";
|
|
5
|
+
import * as i1$1 from "@nanahoshi/mona-ui/text-box";
|
|
6
|
+
import * as i1 from "@nanahoshi/mona-ui/button";
|
|
7
|
+
import { MonaSidebarMessages } from "@nanahoshi/mona-ui/i18n";
|
|
11
8
|
/**
|
|
12
9
|
* How the sidebar behaves when it is collapsed.
|
|
13
10
|
*
|
|
@@ -16,7 +13,6 @@ import { MonaSidebarMessages } from '@nanahoshi/mona-ui/i18n';
|
|
|
16
13
|
* - `none` — the sidebar cannot be collapsed and stays at its full width.
|
|
17
14
|
*/
|
|
18
15
|
type SidebarCollapsibleMode = "offcanvas" | "icon" | "none";
|
|
19
|
-
|
|
20
16
|
/**
|
|
21
17
|
* Which edge of the layout the sidebar sits on. Also determines its order within the layout
|
|
22
18
|
* and which side its rail and border are drawn on.
|
|
@@ -31,7 +27,6 @@ type SidebarCollapsibleMode = "offcanvas" | "icon" | "none";
|
|
|
31
27
|
type SidebarSide = "start" | "end" | "left" | "right";
|
|
32
28
|
/** The direction-relative side, once the `left`/`right` aliases have been folded in. */
|
|
33
29
|
type SidebarLogicalSide = "start" | "end";
|
|
34
|
-
|
|
35
30
|
/**
|
|
36
31
|
* The visual treatment of the sidebar region.
|
|
37
32
|
*
|
|
@@ -40,7 +35,6 @@ type SidebarLogicalSide = "start" | "end";
|
|
|
40
35
|
* - `inset` — the sidebar itself is plain, and the inset region beside it becomes the raised surface.
|
|
41
36
|
*/
|
|
42
37
|
type SidebarVariant = "sidebar" | "floating" | "inset";
|
|
43
|
-
|
|
44
38
|
/**
|
|
45
39
|
* @description
|
|
46
40
|
* The sidebar region itself. Content is projected in author order, so header, content and footer
|
|
@@ -51,129 +45,200 @@ type SidebarVariant = "sidebar" | "floating" | "inset";
|
|
|
51
45
|
* inert, as far as the layout's `modalScope` says. It is not a navigation landmark by itself — wrap
|
|
52
46
|
* the menus in a labelled `nav`, or set `role` and `aria-label` if the whole region is navigation.
|
|
53
47
|
*/
|
|
54
|
-
declare class SidebarComponent {
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
48
|
+
export declare class SidebarComponent {
|
|
49
|
+
#private;
|
|
50
|
+
/** Only while there's a role to name. On a plain element a label means nothing, and axe reports it. */
|
|
51
|
+
protected readonly accessibleName: import("@angular/core").Signal<string | null>;
|
|
52
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
53
|
+
/** The compact presentation: an overlay pinned to one edge rather than a column in the flow. */
|
|
54
|
+
protected readonly drawer: import("@angular/core").Signal<boolean>;
|
|
55
|
+
/**
|
|
56
|
+
* Whether the panel is out of view entirely. The icon rail does not count — it is still on screen
|
|
57
|
+
* and still operable — but a closed drawer and a fully collapsed off-canvas sidebar both do.
|
|
58
|
+
*/
|
|
59
|
+
protected readonly hidden: import("@angular/core").Signal<boolean>;
|
|
60
|
+
protected readonly iconOnly: import("@angular/core").Signal<boolean>;
|
|
61
|
+
/** Published rather than the raw input, so a `left`/`right` alias still reports as `start`/`end`. */
|
|
62
|
+
protected readonly logicalSide: import("@angular/core").Signal<import("@nanahoshi/mona-ui/sidebar").SidebarLogicalSide>;
|
|
63
|
+
/** A drawer scoped to its layout leaves what's around that usable, so it can't claim to be modal. */
|
|
64
|
+
protected readonly modal: import("@angular/core").Signal<boolean>;
|
|
65
|
+
protected readonly offCanvasClosed: import("@angular/core").Signal<boolean>;
|
|
66
|
+
protected readonly physicalSide: import("@angular/core").Signal<"left" | "right">;
|
|
67
|
+
protected readonly railOpensToward: import("@angular/core").Signal<"start" | "end">;
|
|
68
|
+
protected readonly railTooltipText: (element: HTMLElement) => string;
|
|
69
|
+
/** A drawer is a modal surface; a docked sidebar keeps whatever role the consumer gave it. */
|
|
70
|
+
protected readonly resolvedRole: import("@angular/core").Signal<string | null>;
|
|
71
|
+
protected readonly sidebarId: import("@angular/core").Signal<string>;
|
|
72
|
+
protected readonly state: import("@angular/core").Signal<"expanded" | "collapsed">;
|
|
73
|
+
/**
|
|
74
|
+
* `width` and `iconWidth` are the width the sidebar's *contents* get, because that is what the
|
|
75
|
+
* parts inside are measured against — an icon rail less a region's padding is meant to leave
|
|
76
|
+
* exactly one icon square. The variant's border is painted inside the box under the global
|
|
77
|
+
* `border-box`, so it is added back on here rather than being taken out of that measurement.
|
|
78
|
+
*/
|
|
79
|
+
protected readonly widthString: import("@angular/core").Signal<string>;
|
|
80
|
+
/**
|
|
81
|
+
* @description Accessible name for the sidebar region. Required when `role` is set, and used as the
|
|
82
|
+
* drawer's name on compact viewports, which otherwise has a localized default.
|
|
83
|
+
* @default ""
|
|
84
|
+
*/
|
|
85
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
86
|
+
/**
|
|
87
|
+
* @description The id of the element that names the sidebar region, in place of `aria-label`. A docked sidebar with no
|
|
88
|
+
* `role` ignores it.
|
|
89
|
+
* @default ""
|
|
90
|
+
*/
|
|
91
|
+
readonly ariaLabelledBy: import("@angular/core").InputSignal<string>;
|
|
92
|
+
/**
|
|
93
|
+
* @description How the sidebar behaves when collapsed. `"icon"` keeps a narrow rail of icons visible,
|
|
94
|
+
* `"offcanvas"` removes it from the layout entirely, and `"none"` disables collapsing altogether.
|
|
95
|
+
* @default "offcanvas"
|
|
96
|
+
*/
|
|
97
|
+
readonly collapsible: import("@angular/core").InputSignal<SidebarCollapsibleMode>;
|
|
98
|
+
/**
|
|
99
|
+
* @description Sets whether this sidebar is open. Supports two-way binding. While the viewport is
|
|
100
|
+
* compact this reflects the drawer, so one binding drives both presentations, and it reads `false` on
|
|
101
|
+
* a phone from the start. To remember the docked state, use `persistKey` rather than saving this.
|
|
102
|
+
* @default true
|
|
103
|
+
*/
|
|
104
|
+
readonly expanded: import("@angular/core").ModelSignal<boolean>;
|
|
105
|
+
/**
|
|
106
|
+
* @description Width of the icon rail while collapsed. Only applies when `collapsible` is `"icon"`.
|
|
107
|
+
* Numbers are treated as pixels.
|
|
108
|
+
* @default "3rem"
|
|
109
|
+
*/
|
|
110
|
+
readonly iconWidth: import("@angular/core").InputSignal<string | number>;
|
|
111
|
+
/**
|
|
112
|
+
* @description Id for the sidebar element, referenced by triggers through `aria-controls`. Supply a
|
|
113
|
+
* stable value when the markup is server rendered, so the client does not hydrate onto a different
|
|
114
|
+
* generated id. Falls back to a generated id.
|
|
115
|
+
* @default ""
|
|
116
|
+
*/
|
|
117
|
+
readonly id: import("@angular/core").InputSignal<string>;
|
|
118
|
+
/**
|
|
119
|
+
* @description Width of the overlay drawer on compact viewports. Numbers are treated as pixels.
|
|
120
|
+
* @default "18rem"
|
|
121
|
+
*/
|
|
122
|
+
readonly mobileWidth: import("@angular/core").InputSignal<string | number>;
|
|
123
|
+
/**
|
|
124
|
+
* @description Remembers whether this sidebar was left open, under this key. Unset means nothing is
|
|
125
|
+
* stored — no key, no storage written.
|
|
126
|
+
*
|
|
127
|
+
* Only the docked state is kept. A drawer is never restored open: on the viewport that makes one,
|
|
128
|
+
* it would cover the page on load. A stored value wins over `expanded`, and is pushed back out
|
|
129
|
+
* through that binding, so do not set a key on a sidebar whose state is already restored elsewhere.
|
|
130
|
+
*
|
|
131
|
+
* Where it is kept is `SIDEBAR_STORAGE`, which defaults to `localStorage`. A server-rendered
|
|
132
|
+
* application cannot read that until hydration and so flashes the default first; supply storage the
|
|
133
|
+
* server can read through `provideSidebarStorage()`.
|
|
134
|
+
* @default ""
|
|
135
|
+
*/
|
|
136
|
+
readonly persistKey: import("@angular/core").InputSignal<string>;
|
|
137
|
+
/**
|
|
138
|
+
* @description ARIA role for the sidebar region. Leave unset and wrap the menus in a labelled `nav`
|
|
139
|
+
* when the sidebar holds more than navigation; set `"navigation"` with an `aria-label` when it does
|
|
140
|
+
* not. Ignored on compact viewports, where the drawer is a `dialog`.
|
|
141
|
+
* @default ""
|
|
142
|
+
*/
|
|
143
|
+
readonly role: import("@angular/core").InputSignal<string>;
|
|
144
|
+
/**
|
|
145
|
+
* @description Which edge the sidebar sits on. Prefer `"start"` and `"end"`, which follow the
|
|
146
|
+
* document's writing direction; `"left"` and `"right"` are aliases of them.
|
|
147
|
+
* @default "start"
|
|
148
|
+
*/
|
|
149
|
+
readonly side: import("@angular/core").InputSignal<SidebarSide>;
|
|
150
|
+
/**
|
|
151
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
152
|
+
* @default ""
|
|
153
|
+
*/
|
|
154
|
+
readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
|
|
155
|
+
/**
|
|
156
|
+
* @description The visual treatment of the sidebar. `"floating"` detaches it from the edge on its own
|
|
157
|
+
* surface, and `"inset"` moves that raised surface onto the region beside it instead.
|
|
158
|
+
* @default "sidebar"
|
|
159
|
+
*/
|
|
160
|
+
readonly variant: import("@angular/core").InputSignal<SidebarVariant>;
|
|
161
|
+
/**
|
|
162
|
+
* @description Width of the sidebar while expanded. Numbers are treated as pixels.
|
|
163
|
+
* @default "16rem"
|
|
164
|
+
*/
|
|
165
|
+
readonly width: import("@angular/core").InputSignal<string | number>;
|
|
166
|
+
constructor();
|
|
167
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarComponent, never>;
|
|
168
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarComponent, "mona-sidebar", never, {
|
|
169
|
+
"ariaLabel": {
|
|
170
|
+
"alias": "aria-label";
|
|
171
|
+
"required": false;
|
|
172
|
+
"isSignal": true;
|
|
173
|
+
};
|
|
174
|
+
"ariaLabelledBy": {
|
|
175
|
+
"alias": "aria-labelledby";
|
|
176
|
+
"required": false;
|
|
177
|
+
"isSignal": true;
|
|
178
|
+
};
|
|
179
|
+
"collapsible": {
|
|
180
|
+
"alias": "collapsible";
|
|
181
|
+
"required": false;
|
|
182
|
+
"isSignal": true;
|
|
183
|
+
};
|
|
184
|
+
"expanded": {
|
|
185
|
+
"alias": "expanded";
|
|
186
|
+
"required": false;
|
|
187
|
+
"isSignal": true;
|
|
188
|
+
};
|
|
189
|
+
"iconWidth": {
|
|
190
|
+
"alias": "iconWidth";
|
|
191
|
+
"required": false;
|
|
192
|
+
"isSignal": true;
|
|
193
|
+
};
|
|
194
|
+
"id": {
|
|
195
|
+
"alias": "id";
|
|
196
|
+
"required": false;
|
|
197
|
+
"isSignal": true;
|
|
198
|
+
};
|
|
199
|
+
"mobileWidth": {
|
|
200
|
+
"alias": "mobileWidth";
|
|
201
|
+
"required": false;
|
|
202
|
+
"isSignal": true;
|
|
203
|
+
};
|
|
204
|
+
"persistKey": {
|
|
205
|
+
"alias": "persistKey";
|
|
206
|
+
"required": false;
|
|
207
|
+
"isSignal": true;
|
|
208
|
+
};
|
|
209
|
+
"role": {
|
|
210
|
+
"alias": "role";
|
|
211
|
+
"required": false;
|
|
212
|
+
"isSignal": true;
|
|
213
|
+
};
|
|
214
|
+
"side": {
|
|
215
|
+
"alias": "side";
|
|
216
|
+
"required": false;
|
|
217
|
+
"isSignal": true;
|
|
218
|
+
};
|
|
219
|
+
"userClass": {
|
|
220
|
+
"alias": "class";
|
|
221
|
+
"required": false;
|
|
222
|
+
"isSignal": true;
|
|
223
|
+
};
|
|
224
|
+
"variant": {
|
|
225
|
+
"alias": "variant";
|
|
226
|
+
"required": false;
|
|
227
|
+
"isSignal": true;
|
|
228
|
+
};
|
|
229
|
+
"width": {
|
|
230
|
+
"alias": "width";
|
|
231
|
+
"required": false;
|
|
232
|
+
"isSignal": true;
|
|
233
|
+
};
|
|
234
|
+
}, {
|
|
235
|
+
"expanded": "expandedChange";
|
|
236
|
+
}, never, ["*"], true, [{
|
|
237
|
+
directive: typeof i1$2.CdkTrapFocus;
|
|
238
|
+
inputs: {};
|
|
239
|
+
outputs: {};
|
|
240
|
+
}]>;
|
|
175
241
|
}
|
|
176
|
-
|
|
177
242
|
/**
|
|
178
243
|
* @description
|
|
179
244
|
* How far an open drawer's modality reaches.
|
|
@@ -182,7 +247,6 @@ declare class SidebarComponent {
|
|
|
182
247
|
* layout stays usable, so the drawer isn't `aria-modal`.
|
|
183
248
|
*/
|
|
184
249
|
type SidebarModalScope = "page" | "layout";
|
|
185
|
-
|
|
186
250
|
/**
|
|
187
251
|
* @description
|
|
188
252
|
* Lays its children out in a row and owns what they share. Project one or more `mona-sidebar`
|
|
@@ -195,179 +259,211 @@ type SidebarModalScope = "page" | "layout";
|
|
|
195
259
|
* reset whenever the viewport crosses the breakpoint. Only one drawer is open at a time: opening one
|
|
196
260
|
* closes any other, and they share the single backdrop this layout paints behind them.
|
|
197
261
|
*/
|
|
198
|
-
declare class SidebarLayoutComponent {
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
262
|
+
export declare class SidebarLayoutComponent {
|
|
263
|
+
#private;
|
|
264
|
+
protected readonly backdropClass: import("@angular/core").Signal<string>;
|
|
265
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
266
|
+
protected readonly compact: import("@angular/core").Signal<boolean>;
|
|
267
|
+
/** One backdrop serves every sidebar, because only one of their drawers is ever open. */
|
|
268
|
+
protected readonly mobileOpen: import("@angular/core").Signal<boolean>;
|
|
269
|
+
/**
|
|
270
|
+
* @description Viewport width, in pixels, below which the sidebar presents as an overlay drawer.
|
|
271
|
+
* Set to `0` to keep the docked presentation at every size.
|
|
272
|
+
* @default 768
|
|
273
|
+
*/
|
|
274
|
+
readonly mobileBreakpoint: import("@angular/core").InputSignal<number>;
|
|
275
|
+
/**
|
|
276
|
+
* @description How far an open drawer's modality reaches. `"page"` makes everything outside the drawer inert and
|
|
277
|
+
* locks the page's scroll. Use `"layout"` for a sidebar embedded in part of a page: what's around the layout stays
|
|
278
|
+
* usable, so the drawer isn't `aria-modal`.
|
|
279
|
+
* @default "page"
|
|
280
|
+
*/
|
|
281
|
+
readonly modalScope: import("@angular/core").InputSignal<SidebarModalScope>;
|
|
282
|
+
/**
|
|
283
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
284
|
+
* @default ""
|
|
285
|
+
*/
|
|
286
|
+
readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
|
|
287
|
+
constructor();
|
|
288
|
+
protected onBackdropClick(): void;
|
|
289
|
+
protected onEscape(event: Event): void;
|
|
290
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarLayoutComponent, never>;
|
|
291
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarLayoutComponent, "mona-sidebar-layout", never, {
|
|
292
|
+
"mobileBreakpoint": {
|
|
293
|
+
"alias": "mobileBreakpoint";
|
|
294
|
+
"required": false;
|
|
295
|
+
"isSignal": true;
|
|
296
|
+
};
|
|
297
|
+
"modalScope": {
|
|
298
|
+
"alias": "modalScope";
|
|
299
|
+
"required": false;
|
|
300
|
+
"isSignal": true;
|
|
301
|
+
};
|
|
302
|
+
"userClass": {
|
|
303
|
+
"alias": "class";
|
|
304
|
+
"required": false;
|
|
305
|
+
"isSignal": true;
|
|
306
|
+
};
|
|
307
|
+
}, {}, never, ["*"], true, never>;
|
|
228
308
|
}
|
|
229
|
-
|
|
230
309
|
/**
|
|
231
310
|
* @description
|
|
232
311
|
* A loading placeholder shaped like a menu item. Its label bar is clipped on the icon rail, where the
|
|
233
312
|
* real labels are not visible either.
|
|
234
313
|
*/
|
|
235
|
-
declare class SidebarMenuSkeletonComponent {
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
314
|
+
export declare class SidebarMenuSkeletonComponent {
|
|
315
|
+
#private;
|
|
316
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
317
|
+
protected readonly iconOnly: import("@angular/core").Signal<boolean>;
|
|
318
|
+
/**
|
|
319
|
+
* @description Width of the label bar. Varying it across a list keeps the placeholder from looking
|
|
320
|
+
* like a rigid grid. Numbers are treated as pixels.
|
|
321
|
+
* @default "60%"
|
|
322
|
+
*/
|
|
323
|
+
readonly labelWidth: import("@angular/core").InputSignal<string | number>;
|
|
324
|
+
/**
|
|
325
|
+
* @description Renders a square standing in for the item's icon.
|
|
326
|
+
* @default true
|
|
327
|
+
*/
|
|
328
|
+
readonly showIcon: import("@angular/core").InputSignal<boolean>;
|
|
329
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuSkeletonComponent, never>;
|
|
330
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<SidebarMenuSkeletonComponent, "mona-sidebar-menu-skeleton", never, {
|
|
331
|
+
"labelWidth": {
|
|
332
|
+
"alias": "labelWidth";
|
|
333
|
+
"required": false;
|
|
334
|
+
"isSignal": true;
|
|
335
|
+
};
|
|
336
|
+
"showIcon": {
|
|
337
|
+
"alias": "showIcon";
|
|
338
|
+
"required": false;
|
|
339
|
+
"isSignal": true;
|
|
340
|
+
};
|
|
341
|
+
}, {}, never, never, true, never>;
|
|
252
342
|
}
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
static ɵdir: _angular_core.ɵɵDirectiveDeclaration<SidebarContentDirective, "[monaSidebarContent]", never, {}, {}, never, never, true, never>;
|
|
343
|
+
export declare class SidebarContentDirective {
|
|
344
|
+
#private;
|
|
345
|
+
/**
|
|
346
|
+
* A scrollbar takes its width out of the content box, and the icon rail has none to give: at a
|
|
347
|
+
* `3rem` rail it claims about a third of it and squeezes every icon in the region. There is nothing
|
|
348
|
+
* to read on the rail anyway — the labels are gone — so the overflow is simply clipped there.
|
|
349
|
+
*/
|
|
350
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
351
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarContentDirective, never>;
|
|
352
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarContentDirective, "[monaSidebarContent]", never, {}, {}, never, never, true, never>;
|
|
264
353
|
}
|
|
265
|
-
|
|
266
354
|
/**
|
|
267
355
|
* @description
|
|
268
356
|
* The region at the bottom of the sidebar, below its content. Holds what stays put while the content
|
|
269
357
|
* scrolls — a profile menu, a sign-out.
|
|
270
358
|
*/
|
|
271
|
-
declare class SidebarFooterDirective {
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
359
|
+
export declare class SidebarFooterDirective {
|
|
360
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
361
|
+
/**
|
|
362
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
363
|
+
* @default ""
|
|
364
|
+
*/
|
|
365
|
+
readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
|
|
366
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarFooterDirective, never>;
|
|
367
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarFooterDirective, "[monaSidebarFooter]", never, {
|
|
368
|
+
"userClass": {
|
|
369
|
+
"alias": "class";
|
|
370
|
+
"required": false;
|
|
371
|
+
"isSignal": true;
|
|
372
|
+
};
|
|
373
|
+
}, {}, never, never, true, never>;
|
|
280
374
|
}
|
|
281
|
-
|
|
282
375
|
/**
|
|
283
376
|
* @description
|
|
284
377
|
* A titled section of the sidebar, grouping a label and its menu. Stack as many as the sidebar
|
|
285
378
|
* needs; each is an ordinary block, so a `monaSidebarSeparator` between them is optional. A
|
|
286
379
|
* `monaSidebarGroupLabel` inside it names the group.
|
|
287
380
|
*/
|
|
288
|
-
declare class SidebarGroupDirective {
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
381
|
+
export declare class SidebarGroupDirective {
|
|
382
|
+
protected readonly baseClass: string;
|
|
383
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarGroupDirective, never>;
|
|
384
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarGroupDirective, "[monaSidebarGroup]", never, {}, {}, never, never, true, never>;
|
|
292
385
|
}
|
|
293
|
-
|
|
294
386
|
/**
|
|
295
387
|
* @description
|
|
296
388
|
* A control in the corner of a group header — an add or overflow button. Stands down on the icon
|
|
297
389
|
* rail, where there is no header row left to sit in. Give it an `aria-label`: it is icon-only.
|
|
298
390
|
*/
|
|
299
|
-
declare class SidebarGroupActionDirective {
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
391
|
+
export declare class SidebarGroupActionDirective {
|
|
392
|
+
#private;
|
|
393
|
+
protected readonly hidden: import("@angular/core").Signal<boolean>;
|
|
394
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarGroupActionDirective, never>;
|
|
395
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarGroupActionDirective, "button[monaSidebarGroupAction]", never, {}, {}, never, never, true, never>;
|
|
304
396
|
}
|
|
305
|
-
|
|
306
397
|
/**
|
|
307
398
|
* @description
|
|
308
399
|
* The body of a `monaSidebarGroup`, below its header. Wraps the menu itself.
|
|
309
400
|
*/
|
|
310
|
-
declare class SidebarGroupContentDirective {
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
401
|
+
export declare class SidebarGroupContentDirective {
|
|
402
|
+
protected readonly baseClass: string;
|
|
403
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarGroupContentDirective, never>;
|
|
404
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarGroupContentDirective, "[monaSidebarGroupContent]", never, {}, {}, never, never, true, never>;
|
|
314
405
|
}
|
|
315
|
-
|
|
316
406
|
/**
|
|
317
407
|
* @description
|
|
318
408
|
* The row above a group's content, holding its label and any group action. Collapses to nothing on
|
|
319
409
|
* the icon rail rather than leaving an empty gap where the label used to be.
|
|
320
410
|
*/
|
|
321
|
-
declare class SidebarGroupHeaderDirective {
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
411
|
+
export declare class SidebarGroupHeaderDirective {
|
|
412
|
+
#private;
|
|
413
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
414
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarGroupHeaderDirective, never>;
|
|
415
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarGroupHeaderDirective, "[monaSidebarGroupHeader]", never, {}, {}, never, never, true, never>;
|
|
326
416
|
}
|
|
327
|
-
|
|
328
417
|
/**
|
|
329
418
|
* @description
|
|
330
419
|
* The name of a group, which the enclosing `monaSidebarGroup` is labelled by. Fades out on the icon
|
|
331
420
|
* rail, where there is no width to read it in.
|
|
332
421
|
*/
|
|
333
|
-
declare class SidebarGroupLabelDirective {
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
422
|
+
export declare class SidebarGroupLabelDirective {
|
|
423
|
+
#private;
|
|
424
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
425
|
+
protected readonly id: string;
|
|
426
|
+
constructor();
|
|
427
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarGroupLabelDirective, never>;
|
|
428
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarGroupLabelDirective, "[monaSidebarGroupLabel]", never, {}, {}, never, never, true, never>;
|
|
340
429
|
}
|
|
341
|
-
|
|
342
430
|
/**
|
|
343
431
|
* @description
|
|
344
432
|
* The region at the top of the sidebar, above its content. Holds what stays put while the content
|
|
345
433
|
* scrolls — a workspace switcher, a search box.
|
|
346
434
|
*/
|
|
347
|
-
declare class SidebarHeaderDirective {
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
435
|
+
export declare class SidebarHeaderDirective {
|
|
436
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
437
|
+
/**
|
|
438
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
439
|
+
* @default ""
|
|
440
|
+
*/
|
|
441
|
+
readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
|
|
442
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarHeaderDirective, never>;
|
|
443
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarHeaderDirective, "[monaSidebarHeader]", never, {
|
|
444
|
+
"userClass": {
|
|
445
|
+
"alias": "class";
|
|
446
|
+
"required": false;
|
|
447
|
+
"isSignal": true;
|
|
448
|
+
};
|
|
449
|
+
}, {}, never, never, true, never>;
|
|
356
450
|
}
|
|
357
|
-
|
|
358
451
|
/**
|
|
359
452
|
* @description
|
|
360
453
|
* A text input sized for the sidebar, composing `monaTextBox`. Stands down on the icon rail,
|
|
361
454
|
* where there is no room to type.
|
|
362
455
|
*/
|
|
363
|
-
declare class SidebarInputDirective {
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
456
|
+
export declare class SidebarInputDirective {
|
|
457
|
+
#private;
|
|
458
|
+
protected readonly baseClass: string;
|
|
459
|
+
protected readonly hidden: import("@angular/core").Signal<boolean>;
|
|
460
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarInputDirective, never>;
|
|
461
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarInputDirective, "input[monaSidebarInput]", never, {}, {}, never, never, true, [{
|
|
462
|
+
directive: typeof i1$1.TextBoxDirective;
|
|
463
|
+
inputs: {};
|
|
464
|
+
outputs: {};
|
|
465
|
+
}]>;
|
|
369
466
|
}
|
|
370
|
-
|
|
371
467
|
/**
|
|
372
468
|
* @description
|
|
373
469
|
* Marks the main region beside the sidebar. Fills the remaining width and scrolls independently.
|
|
@@ -377,61 +473,79 @@ declare class SidebarInputDirective {
|
|
|
377
473
|
* out of the way for whichever drawer is open, and where a layout holds more than one sidebar it takes
|
|
378
474
|
* its surface from the first one in author order.
|
|
379
475
|
*/
|
|
380
|
-
declare class SidebarInsetDirective {
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
476
|
+
export declare class SidebarInsetDirective {
|
|
477
|
+
#private;
|
|
478
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
479
|
+
protected readonly behindDrawer: import("@angular/core").Signal<boolean>;
|
|
480
|
+
/**
|
|
481
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
482
|
+
* @default ""
|
|
483
|
+
*/
|
|
484
|
+
readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
|
|
485
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarInsetDirective, never>;
|
|
486
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarInsetDirective, "[monaSidebarInset]", never, {
|
|
487
|
+
"userClass": {
|
|
488
|
+
"alias": "class";
|
|
489
|
+
"required": false;
|
|
490
|
+
"isSignal": true;
|
|
491
|
+
};
|
|
492
|
+
}, {}, never, never, true, never>;
|
|
391
493
|
}
|
|
392
|
-
|
|
393
494
|
/**
|
|
394
495
|
* @description
|
|
395
496
|
* A trailing control on a menu item — an overflow menu, a pin. Sits inside the row's highlight and
|
|
396
497
|
* stands down on the icon rail. Give it an `aria-label`: it is icon-only.
|
|
397
498
|
*/
|
|
398
|
-
declare class SidebarMenuActionDirective {
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
499
|
+
export declare class SidebarMenuActionDirective {
|
|
500
|
+
#private;
|
|
501
|
+
protected readonly baseClass: string;
|
|
502
|
+
protected readonly hidden: import("@angular/core").Signal<boolean>;
|
|
503
|
+
constructor();
|
|
504
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuActionDirective, never>;
|
|
505
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarMenuActionDirective, "button[monaSidebarMenuAction]", never, {}, {}, never, never, true, [{
|
|
506
|
+
directive: typeof i1.ButtonDirective;
|
|
507
|
+
inputs: {};
|
|
508
|
+
outputs: {};
|
|
509
|
+
}]>;
|
|
405
510
|
}
|
|
406
|
-
|
|
407
511
|
/**
|
|
408
512
|
* @description
|
|
409
513
|
* A trailing count or status badge on a menu item. Stands down on the icon rail, where it would
|
|
410
514
|
* crowd out the icon it belongs to.
|
|
411
515
|
*/
|
|
412
|
-
declare class SidebarMenuBadgeDirective {
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
516
|
+
export declare class SidebarMenuBadgeDirective {
|
|
517
|
+
#private;
|
|
518
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
519
|
+
/**
|
|
520
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
521
|
+
* @default ""
|
|
522
|
+
*/
|
|
523
|
+
readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
|
|
524
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuBadgeDirective, never>;
|
|
525
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarMenuBadgeDirective, "[monaSidebarMenuBadge]", never, {
|
|
526
|
+
"userClass": {
|
|
527
|
+
"alias": "class";
|
|
528
|
+
"required": false;
|
|
529
|
+
"isSignal": true;
|
|
530
|
+
};
|
|
531
|
+
}, {}, never, never, true, never>;
|
|
422
532
|
}
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
533
|
+
export declare class SidebarMenuDirective {
|
|
534
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
535
|
+
/**
|
|
536
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
537
|
+
* @default ""
|
|
538
|
+
*/
|
|
539
|
+
readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
|
|
540
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuDirective, never>;
|
|
541
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarMenuDirective, "ul[monaSidebarMenu]", never, {
|
|
542
|
+
"userClass": {
|
|
543
|
+
"alias": "class";
|
|
544
|
+
"required": false;
|
|
545
|
+
"isSignal": true;
|
|
546
|
+
};
|
|
547
|
+
}, {}, never, never, true, never>;
|
|
433
548
|
}
|
|
434
|
-
|
|
435
549
|
/**
|
|
436
550
|
* How much room the button's leading visual needs.
|
|
437
551
|
*
|
|
@@ -440,7 +554,6 @@ declare class SidebarMenuDirective {
|
|
|
440
554
|
* edge, and which is given a taller row while the sidebar is expanded.
|
|
441
555
|
*/
|
|
442
556
|
type SidebarMenuButtonSize = "medium" | "large";
|
|
443
|
-
|
|
444
557
|
/**
|
|
445
558
|
* @description
|
|
446
559
|
* A row in a sidebar menu. Applies to a `button` for an action and to an `a` for a destination —
|
|
@@ -451,81 +564,116 @@ type SidebarMenuButtonSize = "medium" | "large";
|
|
|
451
564
|
* underneath it. A row that opens a submenu leaves the drawer open, and on the icon rail it expands the
|
|
452
565
|
* sidebar, since that's the only place the submenu can open.
|
|
453
566
|
*/
|
|
454
|
-
declare class SidebarMenuButtonDirective {
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
567
|
+
export declare class SidebarMenuButtonDirective {
|
|
568
|
+
#private;
|
|
569
|
+
protected readonly ariaDisabled: import("@angular/core").Signal<"true" | null>;
|
|
570
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
571
|
+
/**
|
|
572
|
+
* Marks the row the user is currently on. `page` regardless of host element: `active` describes a
|
|
573
|
+
* destination, and a sidebar built from buttons rather than anchors is still a set of destinations
|
|
574
|
+
* as far as a screen reader is concerned.
|
|
575
|
+
*/
|
|
576
|
+
protected readonly current: import("@angular/core").Signal<"page" | null>;
|
|
577
|
+
protected readonly nativeDisabled: import("@angular/core").Signal<"" | null>;
|
|
578
|
+
/**
|
|
579
|
+
* On the rail the row becomes a square exactly the size of its leading visual and clips its own
|
|
580
|
+
* overflow, so any label is pushed out of view instead of competing for space.
|
|
581
|
+
*/
|
|
582
|
+
protected readonly railBox: import("@angular/core").Signal<boolean>;
|
|
583
|
+
protected readonly railTooltip: import("@angular/core").Signal<string | null>;
|
|
584
|
+
protected readonly role: import("@angular/core").Signal<string | null>;
|
|
585
|
+
protected readonly tabIndex: import("@angular/core").Signal<0 | null>;
|
|
586
|
+
protected readonly type: string | null;
|
|
587
|
+
/**
|
|
588
|
+
* @description Closes the overlay drawer after this row is activated. Only applies on compact
|
|
589
|
+
* viewports, where the drawer covers the destination being navigated to. Set to `false` for rows
|
|
590
|
+
* that do not navigate. Leave it unset on a `monaCollapsibleTrigger`, which keeps the drawer open.
|
|
591
|
+
* @default true, or false on a `monaCollapsibleTrigger`
|
|
592
|
+
*/
|
|
593
|
+
readonly closeOnSelect: import("@angular/core").InputSignal<boolean | undefined>;
|
|
594
|
+
/**
|
|
595
|
+
* @description Renders the row as unavailable and suppresses activation, including a `routerLink` and any `click`
|
|
596
|
+
* handler on it. A disabled anchor gives up its `href`.
|
|
597
|
+
* @default false
|
|
598
|
+
*/
|
|
599
|
+
readonly disabled: import("@angular/core").InputSignal<boolean>;
|
|
600
|
+
/**
|
|
601
|
+
* @description How much room this row's leading visual needs. Use `"large"` when it opens with
|
|
602
|
+
* something avatar sized, so the icon rail lets it fill the square instead of insetting and clipping it.
|
|
603
|
+
* @default "medium"
|
|
604
|
+
*/
|
|
605
|
+
readonly size: import("@angular/core").InputSignal<SidebarMenuButtonSize>;
|
|
606
|
+
/**
|
|
607
|
+
* @description Text identifying this item while the sidebar is collapsed to its icon rail, where the
|
|
608
|
+
* label is clipped away. Shown as a tooltip on hover and on keyboard focus, on the rail only.
|
|
609
|
+
* @default ""
|
|
610
|
+
*/
|
|
611
|
+
readonly tooltip: import("@angular/core").InputSignal<string>;
|
|
612
|
+
/**
|
|
613
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
614
|
+
* @default ""
|
|
615
|
+
*/
|
|
616
|
+
readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
|
|
617
|
+
constructor();
|
|
618
|
+
protected onClick(): void;
|
|
619
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuButtonDirective, never>;
|
|
620
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarMenuButtonDirective, "a[monaSidebarMenuButton], button[monaSidebarMenuButton]", ["monaSidebarMenuButton"], {
|
|
621
|
+
"closeOnSelect": {
|
|
622
|
+
"alias": "closeOnSelect";
|
|
623
|
+
"required": false;
|
|
624
|
+
"isSignal": true;
|
|
625
|
+
};
|
|
626
|
+
"disabled": {
|
|
627
|
+
"alias": "disabled";
|
|
628
|
+
"required": false;
|
|
629
|
+
"isSignal": true;
|
|
630
|
+
};
|
|
631
|
+
"size": {
|
|
632
|
+
"alias": "size";
|
|
633
|
+
"required": false;
|
|
634
|
+
"isSignal": true;
|
|
635
|
+
};
|
|
636
|
+
"tooltip": {
|
|
637
|
+
"alias": "tooltip";
|
|
638
|
+
"required": false;
|
|
639
|
+
"isSignal": true;
|
|
640
|
+
};
|
|
641
|
+
"userClass": {
|
|
642
|
+
"alias": "class";
|
|
643
|
+
"required": false;
|
|
644
|
+
"isSignal": true;
|
|
645
|
+
};
|
|
646
|
+
}, {}, never, never, true, never>;
|
|
508
647
|
}
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
648
|
+
export declare class SidebarMenuItemDirective {
|
|
649
|
+
#private;
|
|
650
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
651
|
+
/**
|
|
652
|
+
* @description Marks this row as the current sidebar destination. The row owns the selected
|
|
653
|
+
* surface so trailing badges and actions remain inside one continuous highlight.
|
|
654
|
+
* @default false
|
|
655
|
+
*/
|
|
656
|
+
readonly active: import("@angular/core").InputSignal<boolean>;
|
|
657
|
+
/**
|
|
658
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
659
|
+
* @default ""
|
|
660
|
+
*/
|
|
661
|
+
readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
|
|
662
|
+
constructor();
|
|
663
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuItemDirective, never>;
|
|
664
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarMenuItemDirective, "li[monaSidebarMenuItem]", never, {
|
|
665
|
+
"active": {
|
|
666
|
+
"alias": "active";
|
|
667
|
+
"required": false;
|
|
668
|
+
"isSignal": true;
|
|
669
|
+
};
|
|
670
|
+
"userClass": {
|
|
671
|
+
"alias": "class";
|
|
672
|
+
"required": false;
|
|
673
|
+
"isSignal": true;
|
|
674
|
+
};
|
|
675
|
+
}, {}, never, never, true, never>;
|
|
527
676
|
}
|
|
528
|
-
|
|
529
677
|
/**
|
|
530
678
|
* @description
|
|
531
679
|
* An indented submenu inside a `monaSidebarMenuItem` that is also a `monaCollapsible`.
|
|
@@ -535,17 +683,22 @@ declare class SidebarMenuItemDirective {
|
|
|
535
683
|
* directive apply its own `inert`. Hiding it here as well used to produce the opposite: a submenu the
|
|
536
684
|
* trigger still described as expanded, with focusable items, that nobody could see.
|
|
537
685
|
*/
|
|
538
|
-
declare class SidebarMenuSubDirective {
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
686
|
+
export declare class SidebarMenuSubDirective {
|
|
687
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
688
|
+
/**
|
|
689
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
690
|
+
* @default ""
|
|
691
|
+
*/
|
|
692
|
+
readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
|
|
693
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarMenuSubDirective, never>;
|
|
694
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarMenuSubDirective, "ul[monaSidebarMenuSub]", never, {
|
|
695
|
+
"userClass": {
|
|
696
|
+
"alias": "class";
|
|
697
|
+
"required": false;
|
|
698
|
+
"isSignal": true;
|
|
699
|
+
};
|
|
700
|
+
}, {}, never, never, true, never>;
|
|
547
701
|
}
|
|
548
|
-
|
|
549
702
|
/**
|
|
550
703
|
* @description
|
|
551
704
|
* A thin strip along the sidebar's inner edge that toggles it. Place it inside `mona-sidebar`,
|
|
@@ -555,39 +708,49 @@ declare class SidebarMenuSubDirective {
|
|
|
555
708
|
* does, and a second tab stop onto a 4px strip would be noise for keyboard users. Provide a
|
|
556
709
|
* `monaSidebarTrigger` as well — the rail is not a substitute for it.
|
|
557
710
|
*/
|
|
558
|
-
declare class SidebarRailDirective {
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
711
|
+
export declare class SidebarRailDirective {
|
|
712
|
+
#private;
|
|
713
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
714
|
+
protected readonly expanded: import("@angular/core").Signal<boolean>;
|
|
715
|
+
protected readonly messages: import("@angular/core").Signal<import("@nanahoshi/mona-ui/i18n").MonaSidebarMessages>;
|
|
716
|
+
protected readonly sidebarId: import("@angular/core").Signal<string>;
|
|
717
|
+
/**
|
|
718
|
+
* @description Accessible name of the rail, which otherwise has a localized default.
|
|
719
|
+
* @default ""
|
|
720
|
+
*/
|
|
721
|
+
readonly ariaLabel: import("@angular/core").InputSignal<string>;
|
|
722
|
+
protected onClick(): void;
|
|
723
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarRailDirective, never>;
|
|
724
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarRailDirective, "button[monaSidebarRail]", never, {
|
|
725
|
+
"ariaLabel": {
|
|
726
|
+
"alias": "aria-label";
|
|
727
|
+
"required": false;
|
|
728
|
+
"isSignal": true;
|
|
729
|
+
};
|
|
730
|
+
}, {}, never, never, true, never>;
|
|
572
731
|
}
|
|
573
|
-
|
|
574
732
|
/**
|
|
575
733
|
* @description
|
|
576
734
|
* A horizontal rule between sidebar regions. Tightens its inset on the icon rail.
|
|
577
735
|
*/
|
|
578
|
-
declare class SidebarSeparatorDirective {
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
736
|
+
export declare class SidebarSeparatorDirective {
|
|
737
|
+
#private;
|
|
738
|
+
protected readonly baseClass: import("@angular/core").Signal<string>;
|
|
739
|
+
protected readonly role: string | null;
|
|
740
|
+
/**
|
|
741
|
+
* @description Additional CSS classes merged onto the host element via `tailwind-merge`.
|
|
742
|
+
* @default ""
|
|
743
|
+
*/
|
|
744
|
+
readonly userClass: import("@angular/core").InputSignalWithTransform<string, ClassInputType>;
|
|
745
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarSeparatorDirective, never>;
|
|
746
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarSeparatorDirective, "[monaSidebarSeparator]", never, {
|
|
747
|
+
"userClass": {
|
|
748
|
+
"alias": "class";
|
|
749
|
+
"required": false;
|
|
750
|
+
"isSignal": true;
|
|
751
|
+
};
|
|
752
|
+
}, {}, never, never, true, never>;
|
|
589
753
|
}
|
|
590
|
-
|
|
591
754
|
/**
|
|
592
755
|
* @description
|
|
593
756
|
* Toggles a sidebar. Can be placed anywhere inside a `mona-sidebar-layout`, including in the inset,
|
|
@@ -605,28 +768,33 @@ declare class SidebarSeparatorDirective {
|
|
|
605
768
|
* A sidebar that can't collapse has nothing for a trigger to do on a wide viewport, so the trigger
|
|
606
769
|
* reports itself as disabled there rather than as an open disclosure.
|
|
607
770
|
*/
|
|
608
|
-
declare class SidebarTriggerDirective {
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
771
|
+
export declare class SidebarTriggerDirective {
|
|
772
|
+
#private;
|
|
773
|
+
protected readonly expanded: import("@angular/core").Signal<boolean | null>;
|
|
774
|
+
protected readonly fixed: import("@angular/core").Signal<boolean>;
|
|
775
|
+
protected readonly role: import("@angular/core").Signal<"button" | null>;
|
|
776
|
+
protected readonly sidebarId: import("@angular/core").Signal<string | null>;
|
|
777
|
+
protected readonly tabIndex: import("@angular/core").Signal<0 | null>;
|
|
778
|
+
protected readonly type: string | null;
|
|
779
|
+
/**
|
|
780
|
+
* @description Id of the `mona-sidebar` to toggle. Leave unset to toggle the sidebar this trigger
|
|
781
|
+
* is written inside.
|
|
782
|
+
* @default ""
|
|
783
|
+
*/
|
|
784
|
+
readonly for: import("@angular/core").InputSignal<string>;
|
|
785
|
+
constructor();
|
|
786
|
+
protected onClick(): void;
|
|
787
|
+
protected onEnterKeydown(event: Event): void;
|
|
788
|
+
protected onSpaceKeydown(event: Event): void;
|
|
789
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<SidebarTriggerDirective, never>;
|
|
790
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<SidebarTriggerDirective, "[monaSidebarTrigger]", ["monaSidebarTrigger"], {
|
|
791
|
+
"for": {
|
|
792
|
+
"alias": "for";
|
|
793
|
+
"required": false;
|
|
794
|
+
"isSignal": true;
|
|
795
|
+
};
|
|
796
|
+
}, {}, never, never, true, never>;
|
|
628
797
|
}
|
|
629
|
-
|
|
630
798
|
/**
|
|
631
799
|
* The safe, read-and-command view of one sidebar, returned by `injectSidebar()`.
|
|
632
800
|
*
|
|
@@ -636,42 +804,41 @@ declare class SidebarTriggerDirective {
|
|
|
636
804
|
* change detection pass. Consumers who need them to change should bind the inputs.
|
|
637
805
|
*/
|
|
638
806
|
interface SidebarController {
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
645
|
-
|
|
646
|
-
|
|
647
|
-
|
|
648
|
-
|
|
649
|
-
|
|
650
|
-
|
|
651
|
-
|
|
652
|
-
|
|
653
|
-
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
|
|
658
|
-
|
|
659
|
-
|
|
660
|
-
|
|
661
|
-
|
|
662
|
-
|
|
663
|
-
|
|
664
|
-
|
|
665
|
-
|
|
666
|
-
|
|
667
|
-
|
|
668
|
-
|
|
669
|
-
|
|
670
|
-
|
|
671
|
-
|
|
672
|
-
|
|
807
|
+
/** Closes the sidebar. On a compact viewport this closes the drawer instead. */
|
|
808
|
+
collapse(): void;
|
|
809
|
+
/** How the sidebar behaves when collapsed, as authored on `mona-sidebar`. */
|
|
810
|
+
readonly collapsible: Signal<SidebarCollapsibleMode>;
|
|
811
|
+
/**
|
|
812
|
+
* Whether the viewport is narrow enough that the sidebar presents as an overlay drawer rather
|
|
813
|
+
* than as a column in the layout.
|
|
814
|
+
*/
|
|
815
|
+
readonly compact: Signal<boolean>;
|
|
816
|
+
/** Opens the sidebar. On a compact viewport this opens the drawer instead. */
|
|
817
|
+
expand(): void;
|
|
818
|
+
/**
|
|
819
|
+
* Whether the sidebar is showing at full width. On a compact viewport this reports the drawer's
|
|
820
|
+
* state, so a single binding drives both presentations.
|
|
821
|
+
*/
|
|
822
|
+
readonly expanded: Signal<boolean>;
|
|
823
|
+
/**
|
|
824
|
+
* Whether the sidebar is currently reduced to its icon rail, meaning parts that only make sense
|
|
825
|
+
* at full width — labels, trailing actions, submenus — should step aside. Never true while
|
|
826
|
+
* compact, where the drawer always presents at full width.
|
|
827
|
+
*/
|
|
828
|
+
readonly iconOnly: Signal<boolean>;
|
|
829
|
+
/** Whether the overlay drawer is open. Only meaningful while `compact` is true. */
|
|
830
|
+
readonly mobileOpen: Signal<boolean>;
|
|
831
|
+
/** Which edge the sidebar sits on, resolved to a direction-relative side. */
|
|
832
|
+
readonly side: Signal<SidebarLogicalSide>;
|
|
833
|
+
/** The id of the sidebar element, for `aria-controls` on a custom trigger. */
|
|
834
|
+
readonly sidebarId: Signal<string>;
|
|
835
|
+
/** The expanded state as a string, for `data-state` bindings and styling hooks. */
|
|
836
|
+
readonly state: Signal<"expanded" | "collapsed">;
|
|
837
|
+
/** Flips the sidebar between open and closed, on whichever presentation is current. */
|
|
838
|
+
toggle(): void;
|
|
839
|
+
/** The visual treatment of the sidebar, as authored on `mona-sidebar`. */
|
|
840
|
+
readonly variant: Signal<SidebarVariant>;
|
|
673
841
|
}
|
|
674
|
-
|
|
675
842
|
/**
|
|
676
843
|
* Where a sidebar remembers whether it was left open. Supplied through `SIDEBAR_STORAGE`, and only
|
|
677
844
|
* ever consulted for a sidebar that was given a `persistKey`.
|
|
@@ -681,18 +848,16 @@ interface SidebarController {
|
|
|
681
848
|
* asked for.
|
|
682
849
|
*/
|
|
683
850
|
interface SidebarStorage {
|
|
684
|
-
|
|
685
|
-
|
|
686
|
-
|
|
687
|
-
|
|
688
|
-
|
|
689
|
-
|
|
690
|
-
|
|
691
|
-
|
|
851
|
+
/**
|
|
852
|
+
* The remembered state for `key`, or `null` when nothing has been stored under it — including
|
|
853
|
+
* when this storage cannot answer, such as on the server. A `null` leaves the sidebar on whatever
|
|
854
|
+
* its `expanded` input says.
|
|
855
|
+
*/
|
|
856
|
+
read(key: string): boolean | null;
|
|
857
|
+
/** Records the docked state for `key`. Failing to store it must not throw. */
|
|
858
|
+
write(key: string, expanded: boolean): void;
|
|
692
859
|
}
|
|
693
|
-
|
|
694
|
-
declare const SIDEBAR_DEFAULT_MESSAGES: MonaSidebarMessages;
|
|
695
|
-
|
|
860
|
+
export declare const SIDEBAR_DEFAULT_MESSAGES: MonaSidebarMessages;
|
|
696
861
|
/**
|
|
697
862
|
* Replaces where sidebars remember whether they were left open. The default is `localStorage`, which
|
|
698
863
|
* the server cannot read; supply a cookie- or request-backed storage here to have a server-rendered
|
|
@@ -700,8 +865,7 @@ declare const SIDEBAR_DEFAULT_MESSAGES: MonaSidebarMessages;
|
|
|
700
865
|
* @param storage the storage, or a factory for it that runs in an injection context, such as for one
|
|
701
866
|
* that injects the current request
|
|
702
867
|
*/
|
|
703
|
-
declare function provideSidebarStorage(storage: SidebarStorage | (() => SidebarStorage)): EnvironmentProviders;
|
|
704
|
-
|
|
868
|
+
export declare function provideSidebarStorage(storage: SidebarStorage | (() => SidebarStorage)): EnvironmentProviders;
|
|
705
869
|
/**
|
|
706
870
|
* The default `SidebarStorage`: `localStorage`, under the sidebar's `persistKey`.
|
|
707
871
|
*
|
|
@@ -714,26 +878,24 @@ declare function provideSidebarStorage(storage: SidebarStorage | (() => SidebarS
|
|
|
714
878
|
* hydration, which shows as a flash. Storage that the server can read too — a cookie, or state
|
|
715
879
|
* transferred from the request — avoids it; supply it through `provideSidebarStorage()`.
|
|
716
880
|
*/
|
|
717
|
-
declare class LocalStorageSidebarStorage implements SidebarStorage {
|
|
718
|
-
|
|
719
|
-
|
|
720
|
-
|
|
721
|
-
|
|
722
|
-
|
|
881
|
+
export declare class LocalStorageSidebarStorage implements SidebarStorage {
|
|
882
|
+
#private;
|
|
883
|
+
/** Takes the value of `PLATFORM_ID`, which is a string in practice though typed loosely. */
|
|
884
|
+
constructor(platformId: string | object);
|
|
885
|
+
read(key: string): boolean | null;
|
|
886
|
+
write(key: string, expanded: boolean): void;
|
|
723
887
|
}
|
|
724
|
-
|
|
725
888
|
/**
|
|
726
889
|
* Where sidebars given a `persistKey` remember whether they were left open. Defaults to
|
|
727
890
|
* `localStorage`. Replace it with `provideSidebarStorage()` — with something the server can read too,
|
|
728
891
|
* for an application that renders there.
|
|
729
892
|
*/
|
|
730
|
-
declare const SIDEBAR_STORAGE: InjectionToken<SidebarStorage>;
|
|
731
|
-
|
|
893
|
+
export declare const SIDEBAR_STORAGE: InjectionToken<SidebarStorage>;
|
|
732
894
|
interface InjectSidebarOptions {
|
|
733
|
-
|
|
734
|
-
|
|
735
|
-
|
|
736
|
-
|
|
895
|
+
/** Reads the sidebar with this id in the enclosing layout, rather than the nearest one. Needs a layout. */
|
|
896
|
+
readonly for?: string;
|
|
897
|
+
/** Returns `null` instead of throwing when there is no enclosing sidebar or layout. */
|
|
898
|
+
readonly optional?: boolean;
|
|
737
899
|
}
|
|
738
900
|
/**
|
|
739
901
|
* @description
|
|
@@ -752,10 +914,8 @@ interface InjectSidebarOptions {
|
|
|
752
914
|
* @param options.for The id of the `mona-sidebar` to read, in the enclosing layout. Without a layout this throws, or
|
|
753
915
|
* returns `null` with `optional`, even inside a sidebar, because only a layout can find one by id.
|
|
754
916
|
*/
|
|
755
|
-
declare function injectSidebar(options: InjectSidebarOptions & {
|
|
756
|
-
|
|
917
|
+
export declare function injectSidebar(options: InjectSidebarOptions & {
|
|
918
|
+
optional: true;
|
|
757
919
|
}): SidebarController | null;
|
|
758
|
-
declare function injectSidebar(options?: InjectSidebarOptions): SidebarController;
|
|
759
|
-
|
|
760
|
-
export { LocalStorageSidebarStorage, SIDEBAR_DEFAULT_MESSAGES, SIDEBAR_STORAGE, SidebarComponent, SidebarContentDirective, SidebarFooterDirective, SidebarGroupActionDirective, SidebarGroupContentDirective, SidebarGroupDirective, SidebarGroupHeaderDirective, SidebarGroupLabelDirective, SidebarHeaderDirective, SidebarInputDirective, SidebarInsetDirective, SidebarLayoutComponent, SidebarMenuActionDirective, SidebarMenuBadgeDirective, SidebarMenuButtonDirective, SidebarMenuDirective, SidebarMenuItemDirective, SidebarMenuSkeletonComponent, SidebarMenuSubDirective, SidebarRailDirective, SidebarSeparatorDirective, SidebarTriggerDirective, injectSidebar, provideSidebarStorage };
|
|
761
|
-
export type { InjectSidebarOptions, SidebarCollapsibleMode, SidebarController, SidebarLogicalSide, SidebarMenuButtonSize, SidebarModalScope, SidebarSide, SidebarStorage, SidebarVariant };
|
|
920
|
+
export declare function injectSidebar(options?: InjectSidebarOptions): SidebarController;
|
|
921
|
+
export type { InjectSidebarOptions, SidebarCollapsibleMode, SidebarController, SidebarLogicalSide, SidebarMenuButtonSize, SidebarModalScope, SidebarSide, SidebarStorage, SidebarVariant };
|