@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,96 +1,88 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
import {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
1
|
+
import { Action, Action as Action$1, AttributeConfig, AttributeConfig as AttributeConfig$1 } from "@nanahoshi/mona-ui/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { DestroyRef, ElementRef, InjectionToken, Signal } from "@angular/core";
|
|
4
|
+
import { ConnectionPositionPair, OverlayRef, ScrollStrategy } from "@angular/cdk/overlay";
|
|
5
|
+
import { Observable } from "rxjs";
|
|
6
|
+
export declare class AttributeBinderDirective {
|
|
7
|
+
#private;
|
|
8
|
+
readonly attributes: import("@angular/core").InputSignal<AttributeConfig$1>;
|
|
9
|
+
constructor();
|
|
10
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<AttributeBinderDirective, never>;
|
|
11
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<AttributeBinderDirective, "[monaAttributeBinder]", never, {
|
|
12
|
+
"attributes": {
|
|
13
|
+
"alias": "monaAttributeBinder";
|
|
14
|
+
"required": false;
|
|
15
|
+
"isSignal": true;
|
|
16
|
+
};
|
|
17
|
+
}, {}, never, never, true, never>;
|
|
14
18
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
name: string;
|
|
19
|
+
export interface ColorScheme {
|
|
20
|
+
colors: string[];
|
|
21
|
+
columns: number;
|
|
22
|
+
name: string;
|
|
20
23
|
}
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
r: number | null;
|
|
24
|
+
export interface RGB {
|
|
25
|
+
b: number | null;
|
|
26
|
+
g: number | null;
|
|
27
|
+
r: number | null;
|
|
26
28
|
}
|
|
27
|
-
interface RGBA extends RGB {
|
|
28
|
-
|
|
29
|
+
export interface RGBA extends RGB {
|
|
30
|
+
a: number | null;
|
|
29
31
|
}
|
|
30
|
-
interface HSV {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
export interface HSV {
|
|
33
|
+
h: number | null;
|
|
34
|
+
s: number | null;
|
|
35
|
+
v: number | null;
|
|
34
36
|
}
|
|
35
|
-
interface HSVA extends HSV {
|
|
36
|
-
|
|
37
|
+
export interface HSVA extends HSV {
|
|
38
|
+
a: number | null;
|
|
37
39
|
}
|
|
38
|
-
type RGBChannel = keyof RGB;
|
|
39
|
-
type RGBAChannel = keyof RGBA;
|
|
40
|
-
type HSVChannel = keyof HSV;
|
|
41
|
-
type Channel = RGBAChannel | HSVChannel;
|
|
42
|
-
interface HSL {
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
40
|
+
export type RGBChannel = keyof RGB;
|
|
41
|
+
export type RGBAChannel = keyof RGBA;
|
|
42
|
+
export type HSVChannel = keyof HSV;
|
|
43
|
+
export type Channel = RGBAChannel | HSVChannel;
|
|
44
|
+
export interface HSL {
|
|
45
|
+
h: number | null;
|
|
46
|
+
l: number | null;
|
|
47
|
+
s: number | null;
|
|
46
48
|
}
|
|
47
|
-
interface HSLA extends HSL {
|
|
48
|
-
|
|
49
|
+
export interface HSLA extends HSL {
|
|
50
|
+
a: number | null;
|
|
49
51
|
}
|
|
50
|
-
|
|
51
|
-
declare const
|
|
52
|
-
|
|
53
|
-
declare const
|
|
54
|
-
|
|
55
|
-
declare const
|
|
56
|
-
|
|
57
|
-
declare const hsva2rgba: (hue: number | null, saturation: number | null, value: number | null, alpha: number | null) => RGBA;
|
|
58
|
-
|
|
59
|
-
declare const rgba2hex: (r: number | null, g: number | null, b: number | null, a: number | null) => string;
|
|
60
|
-
|
|
61
|
-
declare const rgba2hsla: (red: number | null, green: number | null, blue: number | null, alpha: number | null) => HSLA;
|
|
62
|
-
|
|
52
|
+
export declare const isValidHex: (hex: string) => boolean;
|
|
53
|
+
export declare const hex2rgba: (hex: string) => RGBA;
|
|
54
|
+
export declare const hsla2hsva: (hue: number | null, saturation: number | null, lightness: number | null, alpha: number | null) => HSVA;
|
|
55
|
+
export declare const hsva2rgba: (hue: number | null, saturation: number | null, value: number | null, alpha: number | null) => RGBA;
|
|
56
|
+
export declare const rgba2hex: (r: number | null, g: number | null, b: number | null, a: number | null) => string;
|
|
57
|
+
export declare const rgba2hsla: (red: number | null, green: number | null, blue: number | null, alpha: number | null) => HSLA;
|
|
63
58
|
/**
|
|
64
59
|
* Reads a CSS color. Hex, `rgb()` and `hsl()` in both their comma and space forms need nothing but the text; with a
|
|
65
60
|
* `document`, anything else the browser can paint is read through a canvas.
|
|
66
61
|
* @returns The channels, each from 0 to 255, or null when the text isn't a color.
|
|
67
62
|
*/
|
|
68
|
-
declare const parseColor: (text: string, document?: Document) => RGBA | null;
|
|
63
|
+
export declare const parseColor: (text: string, document?: Document) => RGBA | null;
|
|
69
64
|
/**
|
|
70
65
|
* A key that is equal for two spellings of the same color, such as `#ABC`, `#aabbcc` and `rgb(170, 187, 204)`. Text that
|
|
71
66
|
* can't be read as a color only compares equal to itself, ignoring case.
|
|
72
67
|
*/
|
|
73
|
-
declare const colorKey: (text: string, document?: Document) => string;
|
|
68
|
+
export declare const colorKey: (text: string, document?: Document) => string;
|
|
74
69
|
/**
|
|
75
70
|
* The shortest opacity, as CSS writes it, that still reads back as the same 8-bit alpha. A saved `0.5` stays `0.5`.
|
|
76
71
|
*/
|
|
77
|
-
declare const formatAlpha: (alpha: number) => number;
|
|
78
|
-
|
|
72
|
+
export declare const formatAlpha: (alpha: number) => number;
|
|
79
73
|
/**
|
|
80
74
|
* Hue, saturation and value are left unrounded, so converting to RGB and back returns the same color. Round them for
|
|
81
75
|
* display only.
|
|
82
76
|
*/
|
|
83
|
-
declare const rgba2hsva: (r: number | null, g: number | null, b: number | null, a: number | null) => HSVA;
|
|
84
|
-
|
|
77
|
+
export declare const rgba2hsva: (r: number | null, g: number | null, b: number | null, a: number | null) => HSVA;
|
|
85
78
|
/**
|
|
86
79
|
* Adds `id` to an id-list attribute such as `aria-describedby`, keeping the ids already there.
|
|
87
80
|
*/
|
|
88
|
-
declare const addAriaReference: (element: Element, attribute: string, id: string) => void;
|
|
81
|
+
export declare const addAriaReference: (element: Element, attribute: string, id: string) => void;
|
|
89
82
|
/**
|
|
90
83
|
* Removes `id` from an id-list attribute, and the attribute itself once it holds no ids.
|
|
91
84
|
*/
|
|
92
|
-
declare const removeAriaReference: (element: Element, attribute: string, id: string) => void;
|
|
93
|
-
|
|
85
|
+
export declare const removeAriaReference: (element: Element, attribute: string, id: string) => void;
|
|
94
86
|
/**
|
|
95
87
|
* Generates a unique control ID for an element.
|
|
96
88
|
* The ID consists of the `mona-` prefix followed by a random hexadecimal string.
|
|
@@ -99,80 +91,75 @@ declare const removeAriaReference: (element: Element, attribute: string, id: str
|
|
|
99
91
|
* @param {number} [length=7] - The base length of the random part of the ID.
|
|
100
92
|
* @returns {string} A unique control ID string for use for elements.
|
|
101
93
|
*/
|
|
102
|
-
declare const createElementControlId: (level?: number, length?: number) => string;
|
|
103
|
-
|
|
94
|
+
export declare const createElementControlId: (level?: number, length?: number) => string;
|
|
104
95
|
/**
|
|
105
96
|
* Whether the enclosing `mona-fieldset` is disabled. A native `<fieldset disabled>` reaches only native controls,
|
|
106
97
|
* so the fieldset also provides this for controls that draw their own focusable element.
|
|
107
98
|
*/
|
|
108
|
-
declare const MONA_FIELDSET_DISABLED: InjectionToken<Signal<boolean>>;
|
|
99
|
+
export declare const MONA_FIELDSET_DISABLED: InjectionToken<Signal<boolean>>;
|
|
109
100
|
/**
|
|
110
101
|
* Combines a control's own `disabled` with the enclosing `mona-fieldset`. Call it from an injection context.
|
|
111
102
|
*
|
|
112
103
|
* @param disabled Reads the control's own disabled state. It runs lazily, so it may read an input declared later.
|
|
113
104
|
*/
|
|
114
|
-
declare function injectEffectiveDisabled(disabled: () => boolean): Signal<boolean>;
|
|
115
|
-
|
|
105
|
+
export declare function injectEffectiveDisabled(disabled: () => boolean): Signal<boolean>;
|
|
116
106
|
/**
|
|
117
107
|
* A control wrapped by a `mona-label` that has no native input, so the browser can't associate them.
|
|
118
108
|
*/
|
|
119
|
-
interface MonaLabelledControl {
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
109
|
+
export interface MonaLabelledControl {
|
|
110
|
+
readonly activate: () => void;
|
|
111
|
+
readonly element: HTMLElement;
|
|
112
|
+
/** Whether the control has a name of its own, through `aria-label` or `aria-labelledby`. */
|
|
113
|
+
readonly named: () => boolean;
|
|
124
114
|
}
|
|
125
|
-
interface MonaLabelContext {
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
115
|
+
export interface MonaLabelContext {
|
|
116
|
+
/** Id of the element holding the label's caption, or null when the label has no caption of its own. */
|
|
117
|
+
readonly captionId: Signal<string | null>;
|
|
118
|
+
/** Registers a wrapped control and returns the function that removes it. */
|
|
119
|
+
readonly register: (control: MonaLabelledControl) => () => void;
|
|
130
120
|
}
|
|
131
121
|
/**
|
|
132
122
|
* Provided by `mona-label` to the content it wraps.
|
|
133
123
|
*/
|
|
134
|
-
declare const MONA_LABEL: InjectionToken<MonaLabelContext>;
|
|
135
|
-
interface LabelAssociationOptions {
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
124
|
+
export declare const MONA_LABEL: InjectionToken<MonaLabelContext>;
|
|
125
|
+
export interface LabelAssociationOptions {
|
|
126
|
+
/**
|
|
127
|
+
* What a click on the caption does for a wrapped control. Leave it out when the control has a native input, since
|
|
128
|
+
* the browser already handles that click.
|
|
129
|
+
*/
|
|
130
|
+
readonly activate?: () => void;
|
|
131
|
+
readonly ariaLabel: () => string | null | undefined;
|
|
132
|
+
readonly ariaLabelledBy: () => string | null | undefined;
|
|
133
|
+
/** False for a control that renders its own `<label>`, whose text must stay its name. */
|
|
134
|
+
readonly wrapped?: boolean;
|
|
145
135
|
}
|
|
146
|
-
interface LabelAssociation {
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
136
|
+
export interface LabelAssociation {
|
|
137
|
+
/** The id for `aria-labelledby`. An explicit `aria-labelledby` wins, and an explicit `aria-label` turns it off. */
|
|
138
|
+
readonly labelledBy: Signal<string | null>;
|
|
139
|
+
/** Called by a label that points at the control through `[for]`. */
|
|
140
|
+
readonly setLabelledBy: (id: string | null) => void;
|
|
151
141
|
}
|
|
152
142
|
/**
|
|
153
143
|
* Connects a control to a `mona-label` or `label[monaLabel]` that names it, by wrapping it or through `[for]`.
|
|
154
144
|
*/
|
|
155
|
-
declare function injectLabelAssociation(options: LabelAssociationOptions): LabelAssociation;
|
|
156
|
-
|
|
145
|
+
export declare function injectLabelAssociation(options: LabelAssociationOptions): LabelAssociation;
|
|
157
146
|
/**
|
|
158
147
|
* Whether a closing popup may move focus back to its trigger without taking it from somewhere the user put it.
|
|
159
148
|
* That holds while focus is on the page itself or inside one of `containers`, usually the trigger and the popup.
|
|
160
149
|
* A click on another field that closed the popup, or a Tab out of it, must leave focus where it went.
|
|
161
150
|
* This is the rule the CDK dialog uses.
|
|
162
151
|
*/
|
|
163
|
-
declare function focusCanReturn(document: Document, ...containers: ReadonlyArray<Element | null | undefined>): boolean;
|
|
164
|
-
|
|
152
|
+
export declare function focusCanReturn(document: Document, ...containers: ReadonlyArray<Element | null | undefined>): boolean;
|
|
165
153
|
/**
|
|
166
154
|
* Focuses an element given directly, by reference, or by a selector inside `host`, and returns it (or `null` when the
|
|
167
155
|
* selector matches nothing).
|
|
168
156
|
*/
|
|
169
|
-
declare function focusElement(host: HTMLElement, element: HTMLElement | ElementRef<HTMLElement> | string): HTMLElement | null;
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
readonly stopAt?: Element | null;
|
|
157
|
+
export declare function focusElement(host: HTMLElement, element: HTMLElement | ElementRef<HTMLElement> | string): HTMLElement | null;
|
|
158
|
+
export interface InertOutsideOptions {
|
|
159
|
+
/** Elements that manage themselves, or have to stay usable beside the modal. */
|
|
160
|
+
readonly keep?: (element: Element) => boolean;
|
|
161
|
+
/** Where the walk up stops, for a modal that only claims part of the page. Defaults to `<body>`. */
|
|
162
|
+
readonly stopAt?: Element | null;
|
|
176
163
|
}
|
|
177
164
|
/**
|
|
178
165
|
* Makes everything outside a modal overlay inert, so assistive technology, the pointer and Tab can't reach the page
|
|
@@ -183,31 +170,39 @@ interface InertOutsideOptions {
|
|
|
183
170
|
* @param options what to leave alone, and where to stop
|
|
184
171
|
* @returns the function that releases what this call made inert
|
|
185
172
|
*/
|
|
186
|
-
declare const inertOutside: (element: Element, options?: InertOutsideOptions) => (() => void);
|
|
187
|
-
|
|
173
|
+
export declare const inertOutside: (element: Element, options?: InertOutsideOptions) => (() => void);
|
|
188
174
|
/**
|
|
189
175
|
* The text of the elements an `aria-labelledby` value points to, joined with spaces, for names built from a
|
|
190
176
|
* component's name ("Filter {name}"). It's read after every render, so it follows the labelling elements' text.
|
|
191
177
|
* Call it in an injection context.
|
|
192
178
|
* @param ids Returns the space-separated element ids.
|
|
193
179
|
*/
|
|
194
|
-
declare function injectLabelledByText(ids: () => string): Signal<string>;
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
180
|
+
export declare function injectLabelledByText(ids: () => string): Signal<string>;
|
|
181
|
+
/**
|
|
182
|
+
* Wraps CDK's block strategy so it blocks the page's scroll behind a modal only on a page whose root scrolls.
|
|
183
|
+
*
|
|
184
|
+
* CDK keeps the page's scrollbar while it blocks, by forcing `overflow-y: scroll` on `<html>`. A page that scrolls a
|
|
185
|
+
* container inside instead, such as an app shell that sets `overflow: hidden` on `html` and `body`, has no scrollbar to
|
|
186
|
+
* keep: the forced one appears from nowhere, narrows the page and moves it sideways. The user can't scroll that page's
|
|
187
|
+
* root anyway, so it is left alone.
|
|
188
|
+
*
|
|
189
|
+
* The caller creates `block`, with `createBlockScrollStrategy` or `Overlay.scrollStrategies.block()`, so this bundle
|
|
190
|
+
* doesn't import the overlay module, which every component would then load.
|
|
191
|
+
*/
|
|
192
|
+
export declare function createPageScrollBlockStrategy(document: Document, block: ScrollStrategy): ScrollStrategy;
|
|
193
|
+
export interface GlobalOverlayPosition {
|
|
194
|
+
/** Distance from the viewport's left edge in pixels; centered horizontally when omitted. Physical in RTL too. */
|
|
195
|
+
readonly left?: number | null;
|
|
196
|
+
/** Distance from the viewport's top edge in pixels; centered vertically when omitted. */
|
|
197
|
+
readonly top?: number | null;
|
|
201
198
|
}
|
|
202
199
|
/**
|
|
203
200
|
* Places a global overlay through its position strategy, so later `updatePosition()` calls (a direction change, a
|
|
204
201
|
* resize) keep it where it is instead of resetting inline styles. Each axis is independent: a `top` alone keeps the
|
|
205
202
|
* overlay centered horizontally. Centering follows the overlay's size as it grows or shrinks.
|
|
206
203
|
*/
|
|
207
|
-
declare const positionGlobalOverlay: (overlayRef: OverlayRef, position: GlobalOverlayPosition) => void;
|
|
208
|
-
|
|
209
|
-
declare const rxFromResize: (target: Element | Iterable<Element>, options?: ResizeObserverOptions) => Observable<ResizeObserverEntry[]>;
|
|
210
|
-
|
|
204
|
+
export declare const positionGlobalOverlay: (overlayRef: OverlayRef, position: GlobalOverlayPosition) => void;
|
|
205
|
+
export declare const rxFromResize: (target: Element | Iterable<Element>, options?: ResizeObserverOptions) => Observable<ResizeObserverEntry[]>;
|
|
211
206
|
/**
|
|
212
207
|
* The keyboard of an APG toolbar over controls that other components render: one Tab stop, Left and Right (mirrored
|
|
213
208
|
* in right-to-left text) to move between controls, Home and End to the ends. Disabled and hidden controls are
|
|
@@ -216,56 +211,50 @@ declare const rxFromResize: (target: Element | Iterable<Element>, options?: Resi
|
|
|
216
211
|
* Call {@link sync} after every render, so controls added later join the Tab stop, and forward the toolbar's
|
|
217
212
|
* `focusin` and `keydown` events.
|
|
218
213
|
*/
|
|
219
|
-
declare class RovingToolbar {
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
214
|
+
export declare class RovingToolbar {
|
|
215
|
+
#private;
|
|
216
|
+
constructor(element: () => HTMLElement | null | undefined);
|
|
217
|
+
/** The Tab stop follows focus, also when a control is clicked. */
|
|
218
|
+
onFocusIn(event: FocusEvent): void;
|
|
219
|
+
onKeydown(event: KeyboardEvent): void;
|
|
220
|
+
/** Gives the active control the Tab stop and takes it from the others. */
|
|
221
|
+
sync(): void;
|
|
227
222
|
}
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
type VariantInputs<T> = {
|
|
232
|
-
[K in keyof T]-?: Signal<T[K]>;
|
|
233
|
-
};
|
|
234
|
-
|
|
223
|
+
export declare const rxTimeout: (destroyRef: DestroyRef, fn: Action$1, delay?: number) => void;
|
|
224
|
+
export type VariantInputs<T> = { [K in keyof T]-?: Signal<T[K]>; };
|
|
235
225
|
/**
|
|
236
226
|
* What says a row is selected besides its tint, which is faint in every theme and gone in forced colors. The row
|
|
237
227
|
* has to be positioned.
|
|
238
228
|
*/
|
|
239
|
-
declare const themeSelectionBarClasses = "\n before:absolute before:inset-y-0 before:start-0 before:w-0.5 before:bg-(--color-selected-border)\n before:forced-color-adjust-none forced-colors:before:bg-[Highlight]\n";
|
|
229
|
+
export declare const themeSelectionBarClasses = "\n before:absolute before:inset-y-0 before:start-0 before:w-0.5 before:bg-(--color-selected-border)\n before:forced-color-adjust-none forced-colors:before:bg-[Highlight]\n";
|
|
240
230
|
/**
|
|
241
231
|
* A border in the text's color for a selected control, drawn only when the user asks for more contrast or forced colors
|
|
242
232
|
* are on. Elsewhere the fill says it alone. A control with a border of its own adds `after:-inset-px`, so this one
|
|
243
233
|
* replaces it.
|
|
244
234
|
*/
|
|
245
|
-
declare const themeSelectionBorderClasses = "\n relative\n after:pointer-events-none after:absolute after:inset-0\n after:rounded-[inherit] after:border-current\n contrast-more:after:border-2 forced-colors:after:border-2\n";
|
|
246
|
-
declare const themeControlBackdropClasses = "\n [background-image:var(--mona-effect-control-background-image,none)]\n [backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n";
|
|
247
|
-
declare const themeControlSurfaceClasses = "\n [background-color:var(--mona-effect-control-background-color,var(--color-input-background))]\n \n [background-image:var(--mona-effect-control-background-image,none)]\n [backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n\n";
|
|
248
|
-
declare const themeRaisedBackdropClasses = "\n [background-image:var(--mona-effect-raised-background-image,none)]\n [backdrop-filter:var(--mona-effect-raised-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-raised-backdrop-filter,none)]\n";
|
|
249
|
-
declare const themeRaisedSurfaceClasses = "\n [background-color:var(--mona-effect-raised-background-color,var(--color-surface-raised))]\n \n [background-image:var(--mona-effect-raised-background-image,none)]\n [backdrop-filter:var(--mona-effect-raised-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-raised-backdrop-filter,none)]\n\n";
|
|
250
|
-
declare const themeOverlayBackdropClasses = "\n [background-image:var(--mona-effect-overlay-background-image,none)]\n [backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n";
|
|
251
|
-
declare const themeOverlaySurfaceClasses = "\n [background-color:var(--mona-effect-overlay-background-color,var(--color-surface-overlay))]\n \n [background-image:var(--mona-effect-overlay-background-image,none)]\n [backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n\n";
|
|
252
|
-
|
|
235
|
+
export declare const themeSelectionBorderClasses = "\n relative\n after:pointer-events-none after:absolute after:inset-0\n after:rounded-[inherit] after:border-current\n contrast-more:after:border-2 forced-colors:after:border-2\n";
|
|
236
|
+
export declare const themeControlBackdropClasses = "\n [background-image:var(--mona-effect-control-background-image,none)]\n [backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n";
|
|
237
|
+
export declare const themeControlSurfaceClasses = "\n [background-color:var(--mona-effect-control-background-color,var(--color-input-background))]\n \n [background-image:var(--mona-effect-control-background-image,none)]\n [backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-control-backdrop-filter,none)]\n\n";
|
|
238
|
+
export declare const themeRaisedBackdropClasses = "\n [background-image:var(--mona-effect-raised-background-image,none)]\n [backdrop-filter:var(--mona-effect-raised-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-raised-backdrop-filter,none)]\n";
|
|
239
|
+
export declare const themeRaisedSurfaceClasses = "\n [background-color:var(--mona-effect-raised-background-color,var(--color-surface-raised))]\n \n [background-image:var(--mona-effect-raised-background-image,none)]\n [backdrop-filter:var(--mona-effect-raised-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-raised-backdrop-filter,none)]\n\n";
|
|
240
|
+
export declare const themeOverlayBackdropClasses = "\n [background-image:var(--mona-effect-overlay-background-image,none)]\n [backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n";
|
|
241
|
+
export declare const themeOverlaySurfaceClasses = "\n [background-color:var(--mona-effect-overlay-background-color,var(--color-surface-overlay))]\n \n [background-image:var(--mona-effect-overlay-background-image,none)]\n [backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n [-webkit-backdrop-filter:var(--mona-effect-overlay-backdrop-filter,none)]\n\n";
|
|
253
242
|
/**
|
|
254
243
|
* How long a popup opened by hovering waits after the pointer leaves its anchor, so the pointer can cross the gap
|
|
255
244
|
* onto the popup and stay there (WCAG 1.4.13, Content on Hover or Focus).
|
|
256
245
|
*/
|
|
257
|
-
declare const HOVER_GRACE = 100;
|
|
246
|
+
export declare const HOVER_GRACE = 100;
|
|
258
247
|
/** What made an anchor active: the pointer resting on it, or focus inside it. */
|
|
259
|
-
type HoverSource = "focus" | "pointer";
|
|
260
|
-
interface HoverIntentConfig {
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
248
|
+
export type HoverSource = "focus" | "pointer";
|
|
249
|
+
export interface HoverIntentConfig {
|
|
250
|
+
/** Closes the open popup. */
|
|
251
|
+
readonly hide: () => void;
|
|
252
|
+
/** Read each time a hide is scheduled, in milliseconds. */
|
|
253
|
+
readonly hideDelay: () => number;
|
|
254
|
+
/** Opens the popup for `anchor`; report it with `opened()` once it exists. */
|
|
255
|
+
readonly show: (anchor: HTMLElement) => void;
|
|
256
|
+
/** Read each time a show is scheduled, in milliseconds. */
|
|
257
|
+
readonly showDelay: () => number;
|
|
269
258
|
}
|
|
270
259
|
/**
|
|
271
260
|
* When to show and hide a popup that follows the pointer and focus, shared by the tooltip and the hover popover.
|
|
@@ -276,28 +265,28 @@ interface HoverIntentConfig {
|
|
|
276
265
|
* - Moving to another anchor replaces the popup.
|
|
277
266
|
* - After a dismissal (Escape), the popup stays closed until the pointer and focus have left that anchor.
|
|
278
267
|
*/
|
|
279
|
-
declare class HoverIntent {
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
268
|
+
export declare class HoverIntent {
|
|
269
|
+
#private;
|
|
270
|
+
constructor(config: HoverIntentConfig);
|
|
271
|
+
/**
|
|
272
|
+
* Reports that the popup for `anchor` started closing for a reason of its own (Escape, an outside click, being
|
|
273
|
+
* disabled). With `dismissed`, it stays closed until the pointer and focus have left the anchor.
|
|
274
|
+
*/
|
|
275
|
+
closed(anchor: HTMLElement, dismissed?: boolean): void;
|
|
276
|
+
/** Stops every timer and forgets every anchor, without closing anything. */
|
|
277
|
+
dispose(): void;
|
|
278
|
+
/** The pointer moved onto `anchor`, or focus moved into it. */
|
|
279
|
+
enter(anchor: HTMLElement, source: HoverSource): void;
|
|
280
|
+
/** Hides the popup now, as leaving would, and cancels a pending show. */
|
|
281
|
+
hideNow(): void;
|
|
282
|
+
/** The pointer left `anchor`, or focus left it. */
|
|
283
|
+
leave(anchor: HTMLElement, source: HoverSource): void;
|
|
284
|
+
/**
|
|
285
|
+
* Reports that the popup for `anchor` is open. While the pointer is on `panel`, the popup stays.
|
|
286
|
+
*/
|
|
287
|
+
opened(anchor: HTMLElement, panel: HTMLElement | null): void;
|
|
288
|
+
/** The anchor whose popup is open, if any. */
|
|
289
|
+
get anchor(): HTMLElement | null;
|
|
301
290
|
}
|
|
302
291
|
/**
|
|
303
292
|
* Feeds a {@link HoverIntent} from pointer and focus events delegated on `root`, so anchors added, removed or
|
|
@@ -306,36 +295,33 @@ declare class HoverIntent {
|
|
|
306
295
|
* @param resolve the anchor an event target belongs to, or `null`
|
|
307
296
|
* @returns the function that removes the listeners
|
|
308
297
|
*/
|
|
309
|
-
declare const listenForHover: (root: Document | HTMLElement, resolve: (node: Element) => HTMLElement | null, intent: HoverIntent) => (() => void);
|
|
298
|
+
export declare const listenForHover: (root: Document | HTMLElement, resolve: (node: Element) => HTMLElement | null, intent: HoverIntent) => (() => void);
|
|
310
299
|
/**
|
|
311
300
|
* Calls `callback` once `element` leaves the document, for a popup that would otherwise stay anchored to nothing.
|
|
312
301
|
* @returns the function that stops watching
|
|
313
302
|
*/
|
|
314
|
-
declare const onDisconnect: (element: Element, callback: () => void) => (() => void);
|
|
315
|
-
|
|
303
|
+
export declare const onDisconnect: (element: Element, callback: () => void) => (() => void);
|
|
316
304
|
/**
|
|
317
305
|
* The side of its anchor a tooltip or popover opens on. `left` and `right` are physical in every direction; `start`
|
|
318
306
|
* and `end` follow the text direction.
|
|
319
307
|
*/
|
|
320
308
|
/** A side of the anchor. `start` and `end` follow the direction. */
|
|
321
|
-
type OverlaySide = "bottom" | "end" | "left" | "right" | "start" | "top";
|
|
309
|
+
export type OverlaySide = "bottom" | "end" | "left" | "right" | "start" | "top";
|
|
322
310
|
/** A side resolved against the text direction. */
|
|
323
|
-
type PhysicalOverlaySide = "bottom" | "left" | "right" | "top";
|
|
324
|
-
declare const resolveOverlaySide: (side: OverlaySide, direction: "ltr" | "rtl") => PhysicalOverlaySide;
|
|
311
|
+
export type PhysicalOverlaySide = "bottom" | "left" | "right" | "top";
|
|
312
|
+
export declare const resolveOverlaySide: (side: OverlaySide, direction: "ltr" | "rtl") => PhysicalOverlaySide;
|
|
325
313
|
/**
|
|
326
314
|
* Positions for a popup centered on `side` of its anchor, flipping to the opposite side when it doesn't fit. Each
|
|
327
315
|
* position carries its own offset, so the gap stays between the popup and its anchor after a flip.
|
|
328
316
|
* @param gap the distance between the anchor and the popup, in pixels
|
|
329
317
|
* @param direction the overlay's direction
|
|
330
318
|
*/
|
|
331
|
-
declare const overlaySidePositions: (side: PhysicalOverlaySide, gap: number, direction: "ltr" | "rtl") => ConnectionPositionPair[];
|
|
319
|
+
export declare const overlaySidePositions: (side: PhysicalOverlaySide, gap: number, direction: "ltr" | "rtl") => ConnectionPositionPair[];
|
|
332
320
|
/**
|
|
333
321
|
* The physical side of its anchor a popup ended up on, from the position the overlay chose.
|
|
334
322
|
*/
|
|
335
|
-
declare const sideOfPosition: (position: Pick<ConnectionPositionPair, "originY" | "overlayX" | "overlayY">, direction: "ltr" | "rtl") => PhysicalOverlaySide;
|
|
336
|
-
|
|
337
|
-
declare const restoreOverlayScroll: (overlayRef: OverlayRef, element: HTMLElement) => void;
|
|
338
|
-
|
|
323
|
+
export declare const sideOfPosition: (position: Pick<ConnectionPositionPair, "originY" | "overlayX" | "overlayY">, direction: "ltr" | "rtl") => PhysicalOverlaySide;
|
|
324
|
+
export declare const restoreOverlayScroll: (overlayRef: OverlayRef, element: HTMLElement) => void;
|
|
339
325
|
/**
|
|
340
326
|
* Converts a number or a string into a CSS-compliant value.
|
|
341
327
|
* - If the input is a number (e.g., 100), it appends 'px'.
|
|
@@ -345,41 +331,37 @@ declare const restoreOverlayScroll: (overlayRef: OverlayRef, element: HTMLElemen
|
|
|
345
331
|
* @param value The number or string to convert.
|
|
346
332
|
* @returns A CSS-compliant string value.
|
|
347
333
|
*/
|
|
348
|
-
declare const toCssValue: (value: number | string | undefined | null) => string;
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
Space = " "
|
|
334
|
+
export declare const toCssValue: (value: number | string | undefined | null) => string;
|
|
335
|
+
export declare enum NavigationKeys {
|
|
336
|
+
ArrowUp = "ArrowUp",
|
|
337
|
+
ArrowDown = "ArrowDown",
|
|
338
|
+
ArrowLeft = "ArrowLeft",
|
|
339
|
+
ArrowRight = "ArrowRight",
|
|
340
|
+
Enter = "Enter",
|
|
341
|
+
Escape = "Escape",
|
|
342
|
+
Home = "Home",
|
|
343
|
+
End = "End",
|
|
344
|
+
PageDown = "PageDown",
|
|
345
|
+
PageUp = "PageUp",
|
|
346
|
+
Space = " "
|
|
362
347
|
}
|
|
363
|
-
declare const navigationKeysList: readonly string[];
|
|
364
|
-
declare const isNavigationKey: (key: string) => boolean;
|
|
365
|
-
|
|
348
|
+
export declare const navigationKeysList: readonly string[];
|
|
349
|
+
export declare const isNavigationKey: (key: string) => boolean;
|
|
366
350
|
/**
|
|
367
351
|
* Modifier state of a keyboard event. Typeahead is skipped while Ctrl, Meta or Alt is held,
|
|
368
352
|
* so shortcuts such as Ctrl+A or Cmd+C keep their default behavior.
|
|
369
353
|
*/
|
|
370
|
-
interface TypeaheadModifiers {
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
354
|
+
export interface TypeaheadModifiers {
|
|
355
|
+
readonly altKey?: boolean;
|
|
356
|
+
readonly ctrlKey?: boolean;
|
|
357
|
+
readonly metaKey?: boolean;
|
|
374
358
|
}
|
|
375
359
|
/**
|
|
376
360
|
* Returns whether a `KeyboardEvent.key` value should feed typeahead.
|
|
377
361
|
* Any single letter or digit in any script counts, plus space, `-` and `_`.
|
|
378
362
|
*/
|
|
379
|
-
declare const isTypeaheadKey: (key: string, modifiers?: TypeaheadModifiers) => boolean;
|
|
363
|
+
export declare const isTypeaheadKey: (key: string, modifiers?: TypeaheadModifiers) => boolean;
|
|
380
364
|
/** How long typeahead waits after the last key before it starts a new search, in milliseconds. */
|
|
381
|
-
declare const TYPEAHEAD_RESET_DELAY = 200;
|
|
382
|
-
declare const setupTypeahead: (typeaheadKey$: Observable<string>) => Observable<string>;
|
|
383
|
-
|
|
384
|
-
export { AttributeBinderDirective, HOVER_GRACE, HoverIntent, MONA_FIELDSET_DISABLED, MONA_LABEL, NavigationKeys, RovingToolbar, TYPEAHEAD_RESET_DELAY, addAriaReference, colorKey, createElementControlId, focusCanReturn, focusElement, formatAlpha, hex2rgba, hsla2hsva, hsva2rgba, inertOutside, injectEffectiveDisabled, injectLabelAssociation, injectLabelledByText, isNavigationKey, isTypeaheadKey, isValidHex, listenForHover, navigationKeysList, onDisconnect, overlaySidePositions, parseColor, positionGlobalOverlay, removeAriaReference, resolveOverlaySide, restoreOverlayScroll, rgba2hex, rgba2hsla, rgba2hsva, rxFromResize, rxTimeout, setupTypeahead, sideOfPosition, themeControlBackdropClasses, themeControlSurfaceClasses, themeOverlayBackdropClasses, themeOverlaySurfaceClasses, themeRaisedBackdropClasses, themeRaisedSurfaceClasses, themeSelectionBarClasses, themeSelectionBorderClasses, toCssValue };
|
|
385
|
-
export type { Channel, ColorScheme, GlobalOverlayPosition, HSL, HSLA, HSV, HSVA, HSVChannel, HoverIntentConfig, HoverSource, InertOutsideOptions, LabelAssociation, LabelAssociationOptions, MonaLabelContext, MonaLabelledControl, OverlaySide, PhysicalOverlaySide, RGB, RGBA, RGBAChannel, RGBChannel, TypeaheadModifiers, VariantInputs };
|
|
365
|
+
export declare const TYPEAHEAD_RESET_DELAY = 200;
|
|
366
|
+
export declare const setupTypeahead: (typeaheadKey$: Observable<string>) => Observable<string>;
|
|
367
|
+
export type { Action, AttributeConfig };
|