@aeris-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.11
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/README.md +232 -191
- package/THIRD_PARTY_LICENSES.md +48 -0
- package/fesm2022/aeris-ui-core-accordion.mjs +666 -273
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-complete.mjs +1301 -450
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
- package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-badge.mjs +562 -115
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-block-ui.mjs +221 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +609 -199
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button-forms.mjs +78 -0
- package/fesm2022/aeris-ui-core-button-forms.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-button-group.mjs +554 -36
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +911 -137
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-card.mjs +371 -101
- package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-carousel.mjs +835 -369
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +1294 -525
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +594 -262
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +619 -150
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +1109 -121
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
- package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-code-block.mjs +687 -0
- package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs +2436 -1076
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-command-palette.mjs +996 -0
- package/fesm2022/aeris-ui-core-command-palette.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-compare.mjs +870 -338
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1454 -575
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1499 -760
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +975 -449
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs +946 -0
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-date-picker.mjs +2538 -1183
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1187 -368
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +204 -43
- package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-drawer.mjs +1712 -345
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +418 -254
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +1808 -783
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1529 -536
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
- package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-form-field.mjs +688 -0
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-galleria.mjs +2821 -1143
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +110 -33
- package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-icon-field.mjs +426 -98
- package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-inplace.mjs +496 -132
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-group.mjs +413 -107
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +713 -257
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +1095 -297
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +703 -160
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-kbd.mjs +243 -0
- package/fesm2022/aeris-ui-core-kbd.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
- package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-listbox.mjs +789 -0
- package/fesm2022/aeris-ui-core-listbox.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-mega-menu.mjs +662 -388
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1111 -478
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +1081 -411
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +513 -147
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +641 -230
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1832 -577
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-navbar.mjs +1407 -0
- package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-order-list.mjs +748 -220
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +521 -201
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +671 -127
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +602 -210
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +1046 -269
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +1796 -703
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +1354 -385
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +609 -182
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +428 -133
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +502 -132
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +506 -231
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
- package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-top.mjs +279 -69
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select-native.mjs +145 -0
- package/fesm2022/aeris-ui-core-select-native.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-select.mjs +1984 -668
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-sidebar.mjs +1293 -0
- package/fesm2022/aeris-ui-core-sidebar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
- package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-slider.mjs +884 -430
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +882 -337
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +972 -268
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +831 -356
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +705 -256
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
- package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-table.mjs +2927 -923
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +855 -283
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +919 -221
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1368 -1407
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +132 -144
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +966 -447
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toast.mjs +1109 -384
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
- package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toolbar.mjs +1340 -131
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tooltip.mjs +625 -330
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +1650 -627
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2442 -994
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1257 -670
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +1601 -312
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +48 -8
- package/schematics/ng-add/schema.json +1 -1
- package/schematics/runtime/schematics/ng-add/options.js +4 -4
- package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
- package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
- package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-color-derivation.js +1 -1
- package/schematics/runtime/theme-builder/aeris-contrast.js +38 -17
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-foundation.js +13 -8
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +33 -23
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +8 -2
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +63 -76
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +15 -5
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +18 -2
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +121 -34
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_choice-card.scss +93 -0
- package/styles/_fallback-colors.scss +10 -0
- package/styles/_icon-artwork.scss +14 -0
- package/styles/_icon-template.scss +42 -0
- package/styles/_mobile.scss +16 -0
- package/styles/_selection-icons.scss +12 -0
- package/styles/_table-pinning.scss +119 -0
- package/styles/_tokens.scss +5 -5
- package/styles/aeris.css +447 -137
- package/styles/controls.css +205 -35
- package/tools/aeris-theme.mjs +4 -4
- package/tools/aeris-theme.schema.json +18 -13
- package/types/aeris-ui-core-accordion.d.ts +167 -93
- package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
- package/types/aeris-ui-core-auto-complete.d.ts +339 -140
- package/types/aeris-ui-core-auto-focus.d.ts +24 -16
- package/types/aeris-ui-core-avatar.d.ts +112 -42
- package/types/aeris-ui-core-badge.d.ts +160 -46
- package/types/aeris-ui-core-block-ui.d.ts +48 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
- package/types/aeris-ui-core-button-forms.d.ts +18 -0
- package/types/aeris-ui-core-button-group.d.ts +150 -16
- package/types/aeris-ui-core-button.d.ts +274 -67
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +213 -117
- package/types/aeris-ui-core-cascade-select.d.ts +275 -123
- package/types/aeris-ui-core-chart.d.ts +150 -84
- package/types/aeris-ui-core-checkbox.d.ts +173 -54
- package/types/aeris-ui-core-chip.d.ts +316 -56
- package/types/aeris-ui-core-class-names.d.ts +22 -20
- package/types/aeris-ui-core-code-block.d.ts +201 -0
- package/types/aeris-ui-core-color-picker.d.ts +450 -143
- package/types/aeris-ui-core-command-palette.d.ts +267 -0
- package/types/aeris-ui-core-compare.d.ts +230 -102
- package/types/aeris-ui-core-confirm-dialog.d.ts +450 -245
- package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
- package/types/aeris-ui-core-context-menu.d.ts +270 -146
- package/types/aeris-ui-core-date-picker.d.ts +594 -219
- package/types/aeris-ui-core-dialog.d.ts +301 -117
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +380 -112
- package/types/aeris-ui-core-dynamic-dialog.d.ts +162 -137
- package/types/aeris-ui-core-editor.d.ts +257 -123
- package/types/aeris-ui-core-file-upload.d.ts +385 -197
- package/types/aeris-ui-core-filter-service.d.ts +48 -52
- package/types/aeris-ui-core-fluid.d.ts +12 -9
- package/types/aeris-ui-core-focus-trap.d.ts +39 -31
- package/types/aeris-ui-core-form-field.d.ts +163 -0
- package/types/aeris-ui-core-galleria.d.ts +636 -256
- package/types/aeris-ui-core-glass.d.ts +24 -11
- package/types/aeris-ui-core-icon-field.d.ts +94 -32
- package/types/aeris-ui-core-inplace.d.ts +129 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -33
- package/types/aeris-ui-core-input-mask.d.ts +201 -69
- package/types/aeris-ui-core-input-number.d.ts +291 -87
- package/types/aeris-ui-core-input-otp.d.ts +191 -81
- package/types/aeris-ui-core-input-text.d.ts +195 -60
- package/types/aeris-ui-core-kbd.d.ts +74 -0
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-listbox.d.ts +222 -0
- package/types/aeris-ui-core-mega-menu.d.ts +181 -121
- package/types/aeris-ui-core-menu.d.ts +283 -168
- package/types/aeris-ui-core-menubar.d.ts +289 -135
- package/types/aeris-ui-core-message.d.ts +138 -60
- package/types/aeris-ui-core-meter-group.d.ts +169 -90
- package/types/aeris-ui-core-multi-select.d.ts +469 -180
- package/types/aeris-ui-core-navbar.d.ts +208 -0
- package/types/aeris-ui-core-order-list.d.ts +168 -66
- package/types/aeris-ui-core-organization-chart.d.ts +139 -77
- package/types/aeris-ui-core-paginator.d.ts +129 -38
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +276 -102
- package/types/aeris-ui-core-pick-list.d.ts +428 -179
- package/types/aeris-ui-core-popover.d.ts +294 -105
- package/types/aeris-ui-core-progress-bar.d.ts +163 -73
- package/types/aeris-ui-core-progress-spinner.d.ts +116 -48
- package/types/aeris-ui-core-radio-button.d.ts +146 -50
- package/types/aeris-ui-core-rating.d.ts +149 -76
- package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
- package/types/aeris-ui-core-scroll-top.d.ts +73 -29
- package/types/aeris-ui-core-select-native.d.ts +40 -0
- package/types/aeris-ui-core-select.d.ts +487 -217
- package/types/aeris-ui-core-sidebar.d.ts +220 -0
- package/types/aeris-ui-core-skeleton.d.ts +39 -17
- package/types/aeris-ui-core-slider.d.ts +270 -115
- package/types/aeris-ui-core-speed-dial.d.ts +241 -111
- package/types/aeris-ui-core-split-button.d.ts +267 -113
- package/types/aeris-ui-core-splitter.d.ts +224 -106
- package/types/aeris-ui-core-stepper.d.ts +184 -91
- package/types/aeris-ui-core-style-class.d.ts +141 -71
- package/types/aeris-ui-core-table.d.ts +729 -304
- package/types/aeris-ui-core-tabs.d.ts +193 -76
- package/types/aeris-ui-core-textarea.d.ts +271 -78
- package/types/aeris-ui-core-theme-builder.d.ts +220 -463
- package/types/aeris-ui-core-theming.d.ts +42 -45
- package/types/aeris-ui-core-tiered-menu.d.ts +257 -142
- package/types/aeris-ui-core-timeline.d.ts +109 -71
- package/types/aeris-ui-core-toast.d.ts +231 -115
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
- package/types/aeris-ui-core-toolbar.d.ts +314 -47
- package/types/aeris-ui-core-tooltip.d.ts +157 -88
- package/types/aeris-ui-core-tree-select.d.ts +394 -171
- package/types/aeris-ui-core-tree-table.d.ts +629 -288
- package/types/aeris-ui-core-tree.d.ts +294 -165
- package/types/aeris-ui-core.d.ts +338 -74
|
@@ -1,315 +1,538 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, ElementRef, booleanAttribute, computed, contentChild, effect, inject, input, linkedSignal, model, output, viewChildren } from "@angular/core";
|
|
4
|
+
import { ɵAerisIcon, ɵregisterAerisOverlay, ɵunregisterAerisOverlay } from "@aeris-ui/core";
|
|
5
5
|
const AERIS_SPEED_DIAL_ITEM_LIMITS = {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
6
|
+
linear: 5,
|
|
7
|
+
circle: 8,
|
|
8
|
+
"semi-circle": 7,
|
|
9
|
+
"quarter-circle": 5
|
|
10
10
|
};
|
|
11
11
|
let speedDialId = 0;
|
|
12
|
-
class AerisSpeedDial {
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
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
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
: (current + step + enabled.length) % enabled.length;
|
|
216
|
-
this.focusedIndex.set(enabled[next]);
|
|
217
|
-
this.focusActiveItem();
|
|
218
|
-
}
|
|
219
|
-
focusActiveItem() {
|
|
220
|
-
queueMicrotask(() => this.actions().at(this.focusedIndex())?.nativeElement.focus());
|
|
221
|
-
}
|
|
222
|
-
enabledIndexes() {
|
|
223
|
-
return this.visibleItems().flatMap((item, index) => item.disabled ? [] : [index]);
|
|
224
|
-
}
|
|
225
|
-
firstEnabledIndex() {
|
|
226
|
-
return this.enabledIndexes().at(0) ?? -1;
|
|
227
|
-
}
|
|
228
|
-
lastEnabledIndex() {
|
|
229
|
-
return this.enabledIndexes().at(-1) ?? -1;
|
|
230
|
-
}
|
|
231
|
-
calculatePoint(index, length) {
|
|
232
|
-
if (this.type() === 'linear') {
|
|
233
|
-
const offset = `calc(
|
|
12
|
+
var AerisSpeedDial = class AerisSpeedDial {
|
|
13
|
+
constructor() {
|
|
14
|
+
effect((onCleanup) => {
|
|
15
|
+
if (!this.visible()) return;
|
|
16
|
+
const element = this.host.nativeElement;
|
|
17
|
+
ɵregisterAerisOverlay(element.ownerDocument, element, () => {
|
|
18
|
+
this.hide(new Event("aeris-dismiss"), true);
|
|
19
|
+
return true;
|
|
20
|
+
});
|
|
21
|
+
onCleanup(() => ɵunregisterAerisOverlay(element.ownerDocument, element));
|
|
22
|
+
});
|
|
23
|
+
}
|
|
24
|
+
host = inject(ElementRef);
|
|
25
|
+
generatedId = `aeris-speed-dial-${++speedDialId}`;
|
|
26
|
+
actions = viewChildren("action", ...ngDevMode ? [{ debugName: "actions" }] : /* istanbul ignore next */ []);
|
|
27
|
+
trigger = viewChildren("trigger", ...ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []);
|
|
28
|
+
id = input(this.generatedId, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
|
|
29
|
+
model = input([], ...ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []);
|
|
30
|
+
visible = model(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
31
|
+
direction = input("up", ...ngDevMode ? [{ debugName: "direction" }] : /* istanbul ignore next */ []);
|
|
32
|
+
transitionDelay = input(30, ...ngDevMode ? [{ debugName: "transitionDelay" }] : /* istanbul ignore next */ []);
|
|
33
|
+
type = input("linear", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
|
|
34
|
+
maxItems = input(...ngDevMode ? [void 0, { debugName: "maxItems" }] : /* istanbul ignore next */ []);
|
|
35
|
+
radius = input(0, ...ngDevMode ? [{ debugName: "radius" }] : /* istanbul ignore next */ []);
|
|
36
|
+
mask = input(false, {
|
|
37
|
+
...ngDevMode ? { debugName: "mask" } : /* istanbul ignore next */ {},
|
|
38
|
+
transform: booleanAttribute
|
|
39
|
+
});
|
|
40
|
+
backdropBlur = input(true, {
|
|
41
|
+
...ngDevMode ? { debugName: "backdropBlur" } : /* istanbul ignore next */ {},
|
|
42
|
+
transform: booleanAttribute
|
|
43
|
+
});
|
|
44
|
+
backdropBlurAmount = input("", ...ngDevMode ? [{ debugName: "backdropBlurAmount" }] : /* istanbul ignore next */ []);
|
|
45
|
+
disabled = input(false, {
|
|
46
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
47
|
+
transform: booleanAttribute
|
|
48
|
+
});
|
|
49
|
+
closeOnOutsideClick = input(true, {
|
|
50
|
+
...ngDevMode ? { debugName: "closeOnOutsideClick" } : /* istanbul ignore next */ {},
|
|
51
|
+
transform: booleanAttribute
|
|
52
|
+
});
|
|
53
|
+
buttonClass = input("", ...ngDevMode ? [{ debugName: "buttonClass" }] : /* istanbul ignore next */ []);
|
|
54
|
+
maskClass = input("", ...ngDevMode ? [{ debugName: "maskClass" }] : /* istanbul ignore next */ []);
|
|
55
|
+
showIcon = input("+", ...ngDevMode ? [{ debugName: "showIcon" }] : /* istanbul ignore next */ []);
|
|
56
|
+
hideIcon = input("", ...ngDevMode ? [{ debugName: "hideIcon" }] : /* istanbul ignore next */ []);
|
|
57
|
+
rotateAnimation = input(true, {
|
|
58
|
+
...ngDevMode ? { debugName: "rotateAnimation" } : /* istanbul ignore next */ {},
|
|
59
|
+
transform: booleanAttribute
|
|
60
|
+
});
|
|
61
|
+
ariaLabel = input("Open actions", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
62
|
+
ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
63
|
+
buttonProps = input(...ngDevMode ? [void 0, { debugName: "buttonProps" }] : /* istanbul ignore next */ []);
|
|
64
|
+
buttonTemplate = input(...ngDevMode ? [void 0, { debugName: "buttonTemplate" }] : /* istanbul ignore next */ []);
|
|
65
|
+
itemTemplate = input(...ngDevMode ? [void 0, { debugName: "itemTemplate" }] : /* istanbul ignore next */ []);
|
|
66
|
+
iconTemplate = input(...ngDevMode ? [void 0, { debugName: "iconTemplate" }] : /* istanbul ignore next */ []);
|
|
67
|
+
navigationHandler = input(...ngDevMode ? [void 0, { debugName: "navigationHandler" }] : /* istanbul ignore next */ []);
|
|
68
|
+
clicked = output();
|
|
69
|
+
opened = output();
|
|
70
|
+
closed = output();
|
|
71
|
+
itemSelected = output();
|
|
72
|
+
projectedButtonTemplate = contentChild("button", ...ngDevMode ? [{ debugName: "projectedButtonTemplate" }] : /* istanbul ignore next */ []);
|
|
73
|
+
projectedItemTemplate = contentChild("item", ...ngDevMode ? [{ debugName: "projectedItemTemplate" }] : /* istanbul ignore next */ []);
|
|
74
|
+
projectedIconTemplate = contentChild("icon", ...ngDevMode ? [{ debugName: "projectedIconTemplate" }] : /* istanbul ignore next */ []);
|
|
75
|
+
toggleCallback = (event) => this.toggle(event);
|
|
76
|
+
menuId = computed(() => `${this.id()}-menu`, ...ngDevMode ? [{ debugName: "menuId" }] : /* istanbul ignore next */ []);
|
|
77
|
+
buttonContentTemplate = computed(() => this.buttonTemplate() ?? this.projectedButtonTemplate(), ...ngDevMode ? [{ debugName: "buttonContentTemplate" }] : /* istanbul ignore next */ []);
|
|
78
|
+
itemContentTemplate = computed(() => this.itemTemplate() ?? this.projectedItemTemplate(), ...ngDevMode ? [{ debugName: "itemContentTemplate" }] : /* istanbul ignore next */ []);
|
|
79
|
+
iconContentTemplate = computed(() => this.iconTemplate() ?? this.projectedIconTemplate(), ...ngDevMode ? [{ debugName: "iconContentTemplate" }] : /* istanbul ignore next */ []);
|
|
80
|
+
layoutItemLimit = computed(() => {
|
|
81
|
+
const layoutLimit = AERIS_SPEED_DIAL_ITEM_LIMITS[this.type()];
|
|
82
|
+
const requestedLimit = this.maxItems();
|
|
83
|
+
if (requestedLimit === void 0 || !Number.isFinite(requestedLimit)) return layoutLimit;
|
|
84
|
+
return Math.max(0, Math.min(Math.floor(requestedLimit), layoutLimit));
|
|
85
|
+
}, ...ngDevMode ? [{ debugName: "layoutItemLimit" }] : /* istanbul ignore next */ []);
|
|
86
|
+
availableItems = computed(() => this.model().filter((item) => item.visible !== false), ...ngDevMode ? [{ debugName: "availableItems" }] : /* istanbul ignore next */ []);
|
|
87
|
+
visibleItems = computed(() => this.availableItems().slice(0, this.layoutItemLimit()), ...ngDevMode ? [{ debugName: "visibleItems" }] : /* istanbul ignore next */ []);
|
|
88
|
+
hasOverflowItems = computed(() => this.availableItems().length > this.layoutItemLimit(), ...ngDevMode ? [{ debugName: "hasOverflowItems" }] : /* istanbul ignore next */ []);
|
|
89
|
+
focusedIndex = linkedSignal(() => this.visible() ? this.firstEnabledIndex() : -1, ...ngDevMode ? [{ debugName: "focusedIndex" }] : /* istanbul ignore next */ []);
|
|
90
|
+
positionedItems = computed(() => {
|
|
91
|
+
const items = this.visibleItems();
|
|
92
|
+
return items.map((item, index) => {
|
|
93
|
+
const point = this.calculatePoint(index, items.length);
|
|
94
|
+
const delayIndex = this.visible() ? index : items.length - index - 1;
|
|
95
|
+
return {
|
|
96
|
+
item,
|
|
97
|
+
index,
|
|
98
|
+
id: item.id ?? `${this.id()}-item-${index}`,
|
|
99
|
+
delay: `${Math.max(0, delayIndex * this.transitionDelay())}ms`,
|
|
100
|
+
href: this.resolveHref(item),
|
|
101
|
+
...point
|
|
102
|
+
};
|
|
103
|
+
});
|
|
104
|
+
}, ...ngDevMode ? [{ debugName: "positionedItems" }] : /* istanbul ignore next */ []);
|
|
105
|
+
itemContext(positioned) {
|
|
106
|
+
return {
|
|
107
|
+
$implicit: positioned.item,
|
|
108
|
+
item: positioned.item,
|
|
109
|
+
index: positioned.index
|
|
110
|
+
};
|
|
111
|
+
}
|
|
112
|
+
toggle(event) {
|
|
113
|
+
this.clicked.emit(event);
|
|
114
|
+
this.visible() ? this.hide(event) : this.show(event);
|
|
115
|
+
}
|
|
116
|
+
show(event) {
|
|
117
|
+
if (this.disabled() || this.visible()) return;
|
|
118
|
+
this.visible.set(true);
|
|
119
|
+
const index = this.firstEnabledIndex();
|
|
120
|
+
this.focusedIndex.set(index);
|
|
121
|
+
this.opened.emit(event);
|
|
122
|
+
}
|
|
123
|
+
hide(event, restoreFocus = false) {
|
|
124
|
+
if (!this.visible()) return;
|
|
125
|
+
this.visible.set(false);
|
|
126
|
+
this.focusedIndex.set(-1);
|
|
127
|
+
this.closed.emit(event);
|
|
128
|
+
if (restoreFocus) queueMicrotask(() => this.trigger().at(0)?.nativeElement.focus());
|
|
129
|
+
}
|
|
130
|
+
activate(event, positioned) {
|
|
131
|
+
if (positioned.item.disabled) {
|
|
132
|
+
event.preventDefault();
|
|
133
|
+
return;
|
|
134
|
+
}
|
|
135
|
+
const commandEvent = {
|
|
136
|
+
originalEvent: event,
|
|
137
|
+
item: positioned.item
|
|
138
|
+
};
|
|
139
|
+
positioned.item.command?.(commandEvent);
|
|
140
|
+
this.itemSelected.emit(commandEvent);
|
|
141
|
+
if (positioned.item.routerLink && this.navigationHandler()) {
|
|
142
|
+
event.preventDefault();
|
|
143
|
+
this.navigationHandler()?.(positioned.item.routerLink, event);
|
|
144
|
+
}
|
|
145
|
+
this.hide(event, true);
|
|
146
|
+
}
|
|
147
|
+
onTriggerKeydown(event) {
|
|
148
|
+
if (![
|
|
149
|
+
"ArrowDown",
|
|
150
|
+
"ArrowUp",
|
|
151
|
+
"ArrowLeft",
|
|
152
|
+
"ArrowRight"
|
|
153
|
+
].includes(event.key)) return;
|
|
154
|
+
event.preventDefault();
|
|
155
|
+
this.show(event);
|
|
156
|
+
const useLast = event.key === "ArrowUp" || event.key === "ArrowLeft";
|
|
157
|
+
this.focusedIndex.set(useLast ? this.lastEnabledIndex() : this.firstEnabledIndex());
|
|
158
|
+
this.focusActiveItem();
|
|
159
|
+
}
|
|
160
|
+
onMenuKeydown(event) {
|
|
161
|
+
switch (event.key) {
|
|
162
|
+
case "ArrowDown":
|
|
163
|
+
case "ArrowRight":
|
|
164
|
+
event.preventDefault();
|
|
165
|
+
this.moveFocus(1);
|
|
166
|
+
break;
|
|
167
|
+
case "ArrowUp":
|
|
168
|
+
case "ArrowLeft":
|
|
169
|
+
event.preventDefault();
|
|
170
|
+
this.moveFocus(-1);
|
|
171
|
+
break;
|
|
172
|
+
case "Home":
|
|
173
|
+
event.preventDefault();
|
|
174
|
+
this.focusedIndex.set(this.firstEnabledIndex());
|
|
175
|
+
this.focusActiveItem();
|
|
176
|
+
break;
|
|
177
|
+
case "End":
|
|
178
|
+
event.preventDefault();
|
|
179
|
+
this.focusedIndex.set(this.lastEnabledIndex());
|
|
180
|
+
this.focusActiveItem();
|
|
181
|
+
break;
|
|
182
|
+
case "Escape":
|
|
183
|
+
event.preventDefault();
|
|
184
|
+
this.hide(event, true);
|
|
185
|
+
}
|
|
186
|
+
}
|
|
187
|
+
onDocumentClick(event) {
|
|
188
|
+
const target = event.target;
|
|
189
|
+
const host = this.host.nativeElement;
|
|
190
|
+
if (this.visible() && this.closeOnOutsideClick() && target instanceof Node && host && !host.contains(target)) this.hide(event);
|
|
191
|
+
}
|
|
192
|
+
moveFocus(step) {
|
|
193
|
+
const enabled = this.enabledIndexes();
|
|
194
|
+
if (!enabled.length) return;
|
|
195
|
+
const current = enabled.indexOf(this.focusedIndex());
|
|
196
|
+
const next = current < 0 ? step === 1 ? 0 : enabled.length - 1 : (current + step + enabled.length) % enabled.length;
|
|
197
|
+
this.focusedIndex.set(enabled[next]);
|
|
198
|
+
this.focusActiveItem();
|
|
199
|
+
}
|
|
200
|
+
focusActiveItem() {
|
|
201
|
+
queueMicrotask(() => this.actions().at(this.focusedIndex())?.nativeElement.focus());
|
|
202
|
+
}
|
|
203
|
+
enabledIndexes() {
|
|
204
|
+
return this.visibleItems().flatMap((item, index) => item.disabled ? [] : [index]);
|
|
205
|
+
}
|
|
206
|
+
firstEnabledIndex() {
|
|
207
|
+
return this.enabledIndexes().at(0) ?? -1;
|
|
208
|
+
}
|
|
209
|
+
lastEnabledIndex() {
|
|
210
|
+
return this.enabledIndexes().at(-1) ?? -1;
|
|
211
|
+
}
|
|
212
|
+
calculatePoint(index, length) {
|
|
213
|
+
if (this.type() === "linear") {
|
|
214
|
+
const offset = `calc(
|
|
234
215
|
(var(--aeris-speed-dial-size) + var(--aeris-speed-dial-item-size)) / 2
|
|
235
216
|
+ var(--aeris-speed-dial-gap)
|
|
236
217
|
+ (var(--aeris-speed-dial-item-size) + var(--aeris-speed-dial-gap)) * ${index}
|
|
237
218
|
)`;
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
219
|
+
if (this.direction() === "up") return {
|
|
220
|
+
left: "0px",
|
|
221
|
+
top: `calc(-1 * ${offset})`,
|
|
222
|
+
right: null,
|
|
223
|
+
bottom: null
|
|
224
|
+
};
|
|
225
|
+
if (this.direction() === "down") return {
|
|
226
|
+
left: "0px",
|
|
227
|
+
top: offset,
|
|
228
|
+
right: null,
|
|
229
|
+
bottom: null
|
|
230
|
+
};
|
|
231
|
+
if (this.direction() === "left") return {
|
|
232
|
+
left: `calc(-1 * ${offset})`,
|
|
233
|
+
top: "0px",
|
|
234
|
+
right: null,
|
|
235
|
+
bottom: null
|
|
236
|
+
};
|
|
237
|
+
return {
|
|
238
|
+
left: offset,
|
|
239
|
+
top: "0px",
|
|
240
|
+
right: null,
|
|
241
|
+
bottom: null
|
|
242
|
+
};
|
|
243
|
+
}
|
|
244
|
+
const radius = this.radius() || length * 24;
|
|
245
|
+
const safeLength = Math.max(length - 1, 1);
|
|
246
|
+
let x = 0;
|
|
247
|
+
let y = 0;
|
|
248
|
+
if (this.type() === "circle") {
|
|
249
|
+
const angle = 2 * Math.PI * index / Math.max(length, 1);
|
|
250
|
+
x = radius * Math.cos(angle);
|
|
251
|
+
y = radius * Math.sin(angle);
|
|
252
|
+
} else if (this.type() === "semi-circle") {
|
|
253
|
+
const angle = Math.PI * index / safeLength;
|
|
254
|
+
x = radius * Math.cos(angle);
|
|
255
|
+
y = radius * Math.sin(angle);
|
|
256
|
+
} else {
|
|
257
|
+
const angle = Math.PI * index / (2 * safeLength);
|
|
258
|
+
x = radius * Math.cos(angle);
|
|
259
|
+
y = radius * Math.sin(angle);
|
|
260
|
+
}
|
|
261
|
+
return this.orientPoint(x, y);
|
|
262
|
+
}
|
|
263
|
+
resolveHref(item) {
|
|
264
|
+
if (item.url) return item.url;
|
|
265
|
+
if (!item.routerLink) return null;
|
|
266
|
+
if (typeof item.routerLink === "string") return item.routerLink;
|
|
267
|
+
return `/${item.routerLink.map((segment) => String(segment).replace(/^\/+|\/+$/g, "")).filter(Boolean).join("/")}`;
|
|
268
|
+
}
|
|
269
|
+
orientPoint(x, y) {
|
|
270
|
+
const px = (value) => `${Math.round(value * 100) / 100}px`;
|
|
271
|
+
const direction = this.direction();
|
|
272
|
+
const point = (left, top) => ({
|
|
273
|
+
left: px(left),
|
|
274
|
+
top: px(top),
|
|
275
|
+
right: null,
|
|
276
|
+
bottom: null
|
|
277
|
+
});
|
|
278
|
+
if (this.type() === "circle") return point(x, y);
|
|
279
|
+
if (this.type() === "semi-circle") {
|
|
280
|
+
if (direction === "down") return point(x, y);
|
|
281
|
+
if (direction === "left") return point(-y, x);
|
|
282
|
+
if (direction === "right") return point(y, x);
|
|
283
|
+
return point(x, -y);
|
|
284
|
+
}
|
|
285
|
+
if (direction === "up-left") return point(-x, -y);
|
|
286
|
+
if (direction === "up-right") return point(x, -y);
|
|
287
|
+
if (direction === "down-left") return point(-x, y);
|
|
288
|
+
return point(x, y);
|
|
289
|
+
}
|
|
290
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
291
|
+
minVersion: "12.0.0",
|
|
292
|
+
version: "22.2.3",
|
|
293
|
+
ngImport: i0,
|
|
294
|
+
type: AerisSpeedDial,
|
|
295
|
+
deps: [],
|
|
296
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
297
|
+
});
|
|
298
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
299
|
+
minVersion: "17.0.0",
|
|
300
|
+
version: "22.2.3",
|
|
301
|
+
type: AerisSpeedDial,
|
|
302
|
+
isStandalone: true,
|
|
303
|
+
selector: "aeris-speed-dial",
|
|
304
|
+
inputs: {
|
|
305
|
+
id: {
|
|
306
|
+
classPropertyName: "id",
|
|
307
|
+
publicName: "id",
|
|
308
|
+
isSignal: true,
|
|
309
|
+
isRequired: false,
|
|
310
|
+
transformFunction: null
|
|
311
|
+
},
|
|
312
|
+
model: {
|
|
313
|
+
classPropertyName: "model",
|
|
314
|
+
publicName: "model",
|
|
315
|
+
isSignal: true,
|
|
316
|
+
isRequired: false,
|
|
317
|
+
transformFunction: null
|
|
318
|
+
},
|
|
319
|
+
visible: {
|
|
320
|
+
classPropertyName: "visible",
|
|
321
|
+
publicName: "visible",
|
|
322
|
+
isSignal: true,
|
|
323
|
+
isRequired: false,
|
|
324
|
+
transformFunction: null
|
|
325
|
+
},
|
|
326
|
+
direction: {
|
|
327
|
+
classPropertyName: "direction",
|
|
328
|
+
publicName: "direction",
|
|
329
|
+
isSignal: true,
|
|
330
|
+
isRequired: false,
|
|
331
|
+
transformFunction: null
|
|
332
|
+
},
|
|
333
|
+
transitionDelay: {
|
|
334
|
+
classPropertyName: "transitionDelay",
|
|
335
|
+
publicName: "transitionDelay",
|
|
336
|
+
isSignal: true,
|
|
337
|
+
isRequired: false,
|
|
338
|
+
transformFunction: null
|
|
339
|
+
},
|
|
340
|
+
type: {
|
|
341
|
+
classPropertyName: "type",
|
|
342
|
+
publicName: "type",
|
|
343
|
+
isSignal: true,
|
|
344
|
+
isRequired: false,
|
|
345
|
+
transformFunction: null
|
|
346
|
+
},
|
|
347
|
+
maxItems: {
|
|
348
|
+
classPropertyName: "maxItems",
|
|
349
|
+
publicName: "maxItems",
|
|
350
|
+
isSignal: true,
|
|
351
|
+
isRequired: false,
|
|
352
|
+
transformFunction: null
|
|
353
|
+
},
|
|
354
|
+
radius: {
|
|
355
|
+
classPropertyName: "radius",
|
|
356
|
+
publicName: "radius",
|
|
357
|
+
isSignal: true,
|
|
358
|
+
isRequired: false,
|
|
359
|
+
transformFunction: null
|
|
360
|
+
},
|
|
361
|
+
mask: {
|
|
362
|
+
classPropertyName: "mask",
|
|
363
|
+
publicName: "mask",
|
|
364
|
+
isSignal: true,
|
|
365
|
+
isRequired: false,
|
|
366
|
+
transformFunction: null
|
|
367
|
+
},
|
|
368
|
+
backdropBlur: {
|
|
369
|
+
classPropertyName: "backdropBlur",
|
|
370
|
+
publicName: "backdropBlur",
|
|
371
|
+
isSignal: true,
|
|
372
|
+
isRequired: false,
|
|
373
|
+
transformFunction: null
|
|
374
|
+
},
|
|
375
|
+
backdropBlurAmount: {
|
|
376
|
+
classPropertyName: "backdropBlurAmount",
|
|
377
|
+
publicName: "backdropBlurAmount",
|
|
378
|
+
isSignal: true,
|
|
379
|
+
isRequired: false,
|
|
380
|
+
transformFunction: null
|
|
381
|
+
},
|
|
382
|
+
disabled: {
|
|
383
|
+
classPropertyName: "disabled",
|
|
384
|
+
publicName: "disabled",
|
|
385
|
+
isSignal: true,
|
|
386
|
+
isRequired: false,
|
|
387
|
+
transformFunction: null
|
|
388
|
+
},
|
|
389
|
+
closeOnOutsideClick: {
|
|
390
|
+
classPropertyName: "closeOnOutsideClick",
|
|
391
|
+
publicName: "closeOnOutsideClick",
|
|
392
|
+
isSignal: true,
|
|
393
|
+
isRequired: false,
|
|
394
|
+
transformFunction: null
|
|
395
|
+
},
|
|
396
|
+
buttonClass: {
|
|
397
|
+
classPropertyName: "buttonClass",
|
|
398
|
+
publicName: "buttonClass",
|
|
399
|
+
isSignal: true,
|
|
400
|
+
isRequired: false,
|
|
401
|
+
transformFunction: null
|
|
402
|
+
},
|
|
403
|
+
maskClass: {
|
|
404
|
+
classPropertyName: "maskClass",
|
|
405
|
+
publicName: "maskClass",
|
|
406
|
+
isSignal: true,
|
|
407
|
+
isRequired: false,
|
|
408
|
+
transformFunction: null
|
|
409
|
+
},
|
|
410
|
+
showIcon: {
|
|
411
|
+
classPropertyName: "showIcon",
|
|
412
|
+
publicName: "showIcon",
|
|
413
|
+
isSignal: true,
|
|
414
|
+
isRequired: false,
|
|
415
|
+
transformFunction: null
|
|
416
|
+
},
|
|
417
|
+
hideIcon: {
|
|
418
|
+
classPropertyName: "hideIcon",
|
|
419
|
+
publicName: "hideIcon",
|
|
420
|
+
isSignal: true,
|
|
421
|
+
isRequired: false,
|
|
422
|
+
transformFunction: null
|
|
423
|
+
},
|
|
424
|
+
rotateAnimation: {
|
|
425
|
+
classPropertyName: "rotateAnimation",
|
|
426
|
+
publicName: "rotateAnimation",
|
|
427
|
+
isSignal: true,
|
|
428
|
+
isRequired: false,
|
|
429
|
+
transformFunction: null
|
|
430
|
+
},
|
|
431
|
+
ariaLabel: {
|
|
432
|
+
classPropertyName: "ariaLabel",
|
|
433
|
+
publicName: "ariaLabel",
|
|
434
|
+
isSignal: true,
|
|
435
|
+
isRequired: false,
|
|
436
|
+
transformFunction: null
|
|
437
|
+
},
|
|
438
|
+
ariaLabelledBy: {
|
|
439
|
+
classPropertyName: "ariaLabelledBy",
|
|
440
|
+
publicName: "ariaLabelledBy",
|
|
441
|
+
isSignal: true,
|
|
442
|
+
isRequired: false,
|
|
443
|
+
transformFunction: null
|
|
444
|
+
},
|
|
445
|
+
buttonProps: {
|
|
446
|
+
classPropertyName: "buttonProps",
|
|
447
|
+
publicName: "buttonProps",
|
|
448
|
+
isSignal: true,
|
|
449
|
+
isRequired: false,
|
|
450
|
+
transformFunction: null
|
|
451
|
+
},
|
|
452
|
+
buttonTemplate: {
|
|
453
|
+
classPropertyName: "buttonTemplate",
|
|
454
|
+
publicName: "buttonTemplate",
|
|
455
|
+
isSignal: true,
|
|
456
|
+
isRequired: false,
|
|
457
|
+
transformFunction: null
|
|
458
|
+
},
|
|
459
|
+
itemTemplate: {
|
|
460
|
+
classPropertyName: "itemTemplate",
|
|
461
|
+
publicName: "itemTemplate",
|
|
462
|
+
isSignal: true,
|
|
463
|
+
isRequired: false,
|
|
464
|
+
transformFunction: null
|
|
465
|
+
},
|
|
466
|
+
iconTemplate: {
|
|
467
|
+
classPropertyName: "iconTemplate",
|
|
468
|
+
publicName: "iconTemplate",
|
|
469
|
+
isSignal: true,
|
|
470
|
+
isRequired: false,
|
|
471
|
+
transformFunction: null
|
|
472
|
+
},
|
|
473
|
+
navigationHandler: {
|
|
474
|
+
classPropertyName: "navigationHandler",
|
|
475
|
+
publicName: "navigationHandler",
|
|
476
|
+
isSignal: true,
|
|
477
|
+
isRequired: false,
|
|
478
|
+
transformFunction: null
|
|
479
|
+
}
|
|
480
|
+
},
|
|
481
|
+
outputs: {
|
|
482
|
+
visible: "visibleChange",
|
|
483
|
+
clicked: "clicked",
|
|
484
|
+
opened: "opened",
|
|
485
|
+
closed: "closed",
|
|
486
|
+
itemSelected: "itemSelected"
|
|
487
|
+
},
|
|
488
|
+
host: {
|
|
489
|
+
listeners: { "document:click": "onDocumentClick($event)" },
|
|
490
|
+
properties: {
|
|
491
|
+
"attr.data-type": "type()",
|
|
492
|
+
"attr.data-direction": "direction()",
|
|
493
|
+
"attr.data-open": "visible() || null",
|
|
494
|
+
"attr.data-disabled": "disabled() || null",
|
|
495
|
+
"attr.data-truncated": "hasOverflowItems() || null",
|
|
496
|
+
"style.--aeris-speed-dial-radius": "radius() + \"px\""
|
|
497
|
+
},
|
|
498
|
+
classAttribute: "aeris-speed-dial"
|
|
499
|
+
},
|
|
500
|
+
queries: [
|
|
501
|
+
{
|
|
502
|
+
propertyName: "projectedButtonTemplate",
|
|
503
|
+
first: true,
|
|
504
|
+
predicate: ["button"],
|
|
505
|
+
descendants: true,
|
|
506
|
+
isSignal: true
|
|
507
|
+
},
|
|
508
|
+
{
|
|
509
|
+
propertyName: "projectedItemTemplate",
|
|
510
|
+
first: true,
|
|
511
|
+
predicate: ["item"],
|
|
512
|
+
descendants: true,
|
|
513
|
+
isSignal: true
|
|
514
|
+
},
|
|
515
|
+
{
|
|
516
|
+
propertyName: "projectedIconTemplate",
|
|
517
|
+
first: true,
|
|
518
|
+
predicate: ["icon"],
|
|
519
|
+
descendants: true,
|
|
520
|
+
isSignal: true
|
|
521
|
+
}
|
|
522
|
+
],
|
|
523
|
+
viewQueries: [{
|
|
524
|
+
propertyName: "actions",
|
|
525
|
+
predicate: ["action"],
|
|
526
|
+
descendants: true,
|
|
527
|
+
isSignal: true
|
|
528
|
+
}, {
|
|
529
|
+
propertyName: "trigger",
|
|
530
|
+
predicate: ["trigger"],
|
|
531
|
+
descendants: true,
|
|
532
|
+
isSignal: true
|
|
533
|
+
}],
|
|
534
|
+
ngImport: i0,
|
|
535
|
+
template: `
|
|
313
536
|
@if (mask() && visible()) {
|
|
314
537
|
<button
|
|
315
538
|
type="button"
|
|
@@ -354,10 +577,17 @@ class AerisSpeedDial {
|
|
|
354
577
|
[attr.id]="positioned.id"
|
|
355
578
|
[attr.href]="positioned.item.disabled ? null : positioned.href"
|
|
356
579
|
[attr.target]="positioned.item.target"
|
|
357
|
-
[attr.rel]="
|
|
580
|
+
[attr.rel]="
|
|
581
|
+
positioned.item.rel ||
|
|
582
|
+
(positioned.item.target === '_blank' ? 'noopener noreferrer' : null)
|
|
583
|
+
"
|
|
358
584
|
[attr.aria-label]="positioned.item.ariaLabel ?? positioned.item.label"
|
|
359
585
|
[attr.aria-disabled]="positioned.item.disabled || null"
|
|
360
|
-
[attr.tabindex]="
|
|
586
|
+
[attr.tabindex]="
|
|
587
|
+
visible() && focusedIndex() === positioned.index && !positioned.item.disabled
|
|
588
|
+
? 0
|
|
589
|
+
: -1
|
|
590
|
+
"
|
|
361
591
|
(click)="activate($event, positioned)"
|
|
362
592
|
(focus)="focusedIndex.set(positioned.index)"
|
|
363
593
|
>
|
|
@@ -380,7 +610,11 @@ class AerisSpeedDial {
|
|
|
380
610
|
[attr.id]="positioned.id"
|
|
381
611
|
[attr.aria-label]="positioned.item.ariaLabel ?? positioned.item.label"
|
|
382
612
|
[disabled]="positioned.item.disabled"
|
|
383
|
-
[attr.tabindex]="
|
|
613
|
+
[attr.tabindex]="
|
|
614
|
+
visible() && focusedIndex() === positioned.index && !positioned.item.disabled
|
|
615
|
+
? 0
|
|
616
|
+
: -1
|
|
617
|
+
"
|
|
384
618
|
(click)="activate($event, positioned)"
|
|
385
619
|
(focus)="focusedIndex.set(positioned.index)"
|
|
386
620
|
>
|
|
@@ -395,7 +629,6 @@ class AerisSpeedDial {
|
|
|
395
629
|
}
|
|
396
630
|
</button>
|
|
397
631
|
}
|
|
398
|
-
|
|
399
632
|
</li>
|
|
400
633
|
}
|
|
401
634
|
</ul>
|
|
@@ -432,16 +665,59 @@ class AerisSpeedDial {
|
|
|
432
665
|
class="aeris-speed-dial__trigger-icon"
|
|
433
666
|
[attr.data-rotate]="rotateAnimation() && !hideIcon() ? true : null"
|
|
434
667
|
aria-hidden="true"
|
|
435
|
-
>
|
|
668
|
+
>
|
|
669
|
+
@let icon = visible() && hideIcon() ? hideIcon() : showIcon();
|
|
670
|
+
@if (icon === '+') {
|
|
671
|
+
<ng-template #plusArtwork>
|
|
672
|
+
<svg viewBox="0 0 24 24" focusable="false" aria-hidden="true">
|
|
673
|
+
<path d="M5 12h14" />
|
|
674
|
+
<path d="M12 5v14" />
|
|
675
|
+
</svg>
|
|
676
|
+
</ng-template>
|
|
677
|
+
<span
|
|
678
|
+
aerisInternalIcon="plus"
|
|
679
|
+
[aerisInternalIconFallback]="plusArtwork"
|
|
680
|
+
class="aeris-speed-dial__plus"
|
|
681
|
+
></span>
|
|
682
|
+
} @else {
|
|
683
|
+
{{ icon }}
|
|
684
|
+
}
|
|
685
|
+
</span>
|
|
436
686
|
}
|
|
437
687
|
</button>
|
|
438
688
|
}
|
|
439
689
|
</div>
|
|
440
|
-
`,
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
690
|
+
`,
|
|
691
|
+
isInline: true,
|
|
692
|
+
styles: [":host{--aeris-speed-dial-size: 3rem;--aeris-speed-dial-item-size: 2rem;--aeris-speed-dial-gap: .375rem;position:relative;z-index:20;display:inline-block;width:var(--aeris-speed-dial-size);height:var(--aeris-speed-dial-size)}@media(pointer:coarse){:host{--aeris-speed-dial-item-size: var(--aeris-touch-target-size, 2.75rem)}}:host([data-open]){z-index:1000}.aeris-speed-dial__mask{position:fixed;z-index:1;inset:0;width:100vw;height:100vh;height:100dvh;padding:0;border:0;background:#11151070;cursor:default}.aeris-speed-dial__mask[data-backdrop-blur]{-webkit-backdrop-filter:blur(var(--aeris-speed-dial-backdrop-blur, var(--aeris-backdrop-blur, .25rem)));backdrop-filter:blur(var(--aeris-speed-dial-backdrop-blur, var(--aeris-backdrop-blur, .25rem)))}.aeris-speed-dial__container{position:relative;z-index:2;width:100%;height:100%}.aeris-speed-dial__trigger,.aeris-speed-dial__action{border:0;font:inherit}.aeris-speed-dial__trigger{position:relative;z-index:3;width:var(--aeris-speed-dial-size);height:var(--aeris-speed-dial-size);display:grid;place-items:center;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-primary, #111111);box-shadow:0 .5rem 1.5rem color-mix(in srgb,var(--aeris-primary, #111111) 28%,transparent);color:var(--aeris-on-primary, #ffffff);cursor:pointer;transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-speed-dial__trigger[data-size=sm]{--aeris-speed-dial-size: 2.5rem}.aeris-speed-dial__trigger[data-size=lg]{--aeris-speed-dial-size: 3.5rem}@media(hover:hover){.aeris-speed-dial__trigger:hover:not(:disabled){background:var(--aeris-primary-hover, #242424);transform:translateY(-1px)}}.aeris-speed-dial__trigger:focus-visible,.aeris-speed-dial__action:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid color-mix(in srgb,var(--aeris-focus, #111111) 48%,transparent);outline-offset:3px}.aeris-speed-dial__trigger:disabled{opacity:.48;cursor:not-allowed}.aeris-speed-dial__trigger-icon{display:grid;place-items:center;font-size:1.5rem;line-height:1;transform-origin:center;transition:transform var(--aeris-motion-slow, .22s) var(--aeris-ease-enter, ease-out)}.aeris-speed-dial__plus,.aeris-speed-dial__trigger-icon svg{display:block;width:1.5rem;height:1.5rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}:host([data-open]) .aeris-speed-dial__trigger-icon[data-rotate]{transform:rotate(135deg)}.aeris-speed-dial__list{position:absolute;inset:50% auto auto 50%;z-index:2;width:0;height:0;margin:0;padding:0;list-style:none}.aeris-speed-dial__item{position:absolute;width:var(--aeris-speed-dial-item-size);height:var(--aeris-speed-dial-item-size);opacity:0;pointer-events:none;transform:translate(-50%,-50%) scale(.55);transition:opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease) var(--aeris-speed-dial-delay),transform .26s cubic-bezier(.2,.9,.2,1.18) var(--aeris-speed-dial-delay)}.aeris-speed-dial__item[data-visible]{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}.aeris-speed-dial__action{width:100%;height:100%;display:grid;place-items:center;border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-surface, #fff);box-shadow:0 .4rem 1.1rem #14181224;color:var(--aeris-text, #111111);text-decoration:none;cursor:pointer;transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}@media(hover:hover){.aeris-speed-dial__action:hover:not(:disabled):not(.aeris-speed-dial__action--disabled){border-color:var(--aeris-primary, #111111);background:color-mix(in srgb,var(--aeris-primary, #111111) 10%,var(--aeris-surface, #fff));transform:scale(1.08)}}.aeris-speed-dial__action:disabled,.aeris-speed-dial__action--disabled{opacity:.45;cursor:not-allowed}.aeris-speed-dial__action-icon{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);display:inline-grid;place-items:center;font-size:var(--aeris-icon-size, 1rem);font-weight:var(--aeris-font-weight-bold, 700);line-height:1}@media(prefers-reduced-motion:reduce){.aeris-speed-dial__trigger,.aeris-speed-dial__trigger-icon,.aeris-speed-dial__item,.aeris-speed-dial__action{animation-duration:1ms;transition-duration:1ms;transition-delay:0ms}}\n"],
|
|
693
|
+
dependencies: [{
|
|
694
|
+
kind: "directive",
|
|
695
|
+
type: NgTemplateOutlet,
|
|
696
|
+
selector: "[ngTemplateOutlet]",
|
|
697
|
+
inputs: [
|
|
698
|
+
"ngTemplateOutletContext",
|
|
699
|
+
"ngTemplateOutlet",
|
|
700
|
+
"ngTemplateOutletInjector"
|
|
701
|
+
]
|
|
702
|
+
}, {
|
|
703
|
+
kind: "component",
|
|
704
|
+
type: ɵAerisIcon,
|
|
705
|
+
selector: "span[aerisInternalIcon]",
|
|
706
|
+
inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
|
|
707
|
+
}]
|
|
708
|
+
});
|
|
709
|
+
};
|
|
710
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
711
|
+
minVersion: "12.0.0",
|
|
712
|
+
version: "22.2.3",
|
|
713
|
+
ngImport: i0,
|
|
714
|
+
type: AerisSpeedDial,
|
|
715
|
+
decorators: [{
|
|
716
|
+
type: Component,
|
|
717
|
+
args: [{
|
|
718
|
+
selector: "aeris-speed-dial",
|
|
719
|
+
imports: [NgTemplateOutlet, ɵAerisIcon],
|
|
720
|
+
template: `
|
|
445
721
|
@if (mask() && visible()) {
|
|
446
722
|
<button
|
|
447
723
|
type="button"
|
|
@@ -486,10 +762,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
486
762
|
[attr.id]="positioned.id"
|
|
487
763
|
[attr.href]="positioned.item.disabled ? null : positioned.href"
|
|
488
764
|
[attr.target]="positioned.item.target"
|
|
489
|
-
[attr.rel]="
|
|
765
|
+
[attr.rel]="
|
|
766
|
+
positioned.item.rel ||
|
|
767
|
+
(positioned.item.target === '_blank' ? 'noopener noreferrer' : null)
|
|
768
|
+
"
|
|
490
769
|
[attr.aria-label]="positioned.item.ariaLabel ?? positioned.item.label"
|
|
491
770
|
[attr.aria-disabled]="positioned.item.disabled || null"
|
|
492
|
-
[attr.tabindex]="
|
|
771
|
+
[attr.tabindex]="
|
|
772
|
+
visible() && focusedIndex() === positioned.index && !positioned.item.disabled
|
|
773
|
+
? 0
|
|
774
|
+
: -1
|
|
775
|
+
"
|
|
493
776
|
(click)="activate($event, positioned)"
|
|
494
777
|
(focus)="focusedIndex.set(positioned.index)"
|
|
495
778
|
>
|
|
@@ -512,7 +795,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
512
795
|
[attr.id]="positioned.id"
|
|
513
796
|
[attr.aria-label]="positioned.item.ariaLabel ?? positioned.item.label"
|
|
514
797
|
[disabled]="positioned.item.disabled"
|
|
515
|
-
[attr.tabindex]="
|
|
798
|
+
[attr.tabindex]="
|
|
799
|
+
visible() && focusedIndex() === positioned.index && !positioned.item.disabled
|
|
800
|
+
? 0
|
|
801
|
+
: -1
|
|
802
|
+
"
|
|
516
803
|
(click)="activate($event, positioned)"
|
|
517
804
|
(focus)="focusedIndex.set(positioned.index)"
|
|
518
805
|
>
|
|
@@ -527,7 +814,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
527
814
|
}
|
|
528
815
|
</button>
|
|
529
816
|
}
|
|
530
|
-
|
|
531
817
|
</li>
|
|
532
818
|
}
|
|
533
819
|
</ul>
|
|
@@ -564,26 +850,285 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
564
850
|
class="aeris-speed-dial__trigger-icon"
|
|
565
851
|
[attr.data-rotate]="rotateAnimation() && !hideIcon() ? true : null"
|
|
566
852
|
aria-hidden="true"
|
|
567
|
-
>
|
|
853
|
+
>
|
|
854
|
+
@let icon = visible() && hideIcon() ? hideIcon() : showIcon();
|
|
855
|
+
@if (icon === '+') {
|
|
856
|
+
<ng-template #plusArtwork>
|
|
857
|
+
<svg viewBox="0 0 24 24" focusable="false" aria-hidden="true">
|
|
858
|
+
<path d="M5 12h14" />
|
|
859
|
+
<path d="M12 5v14" />
|
|
860
|
+
</svg>
|
|
861
|
+
</ng-template>
|
|
862
|
+
<span
|
|
863
|
+
aerisInternalIcon="plus"
|
|
864
|
+
[aerisInternalIconFallback]="plusArtwork"
|
|
865
|
+
class="aeris-speed-dial__plus"
|
|
866
|
+
></span>
|
|
867
|
+
} @else {
|
|
868
|
+
{{ icon }}
|
|
869
|
+
}
|
|
870
|
+
</span>
|
|
568
871
|
}
|
|
569
872
|
</button>
|
|
570
873
|
}
|
|
571
874
|
</div>
|
|
572
|
-
`,
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
875
|
+
`,
|
|
876
|
+
host: {
|
|
877
|
+
class: "aeris-speed-dial",
|
|
878
|
+
"[attr.data-type]": "type()",
|
|
879
|
+
"[attr.data-direction]": "direction()",
|
|
880
|
+
"[attr.data-open]": "visible() || null",
|
|
881
|
+
"[attr.data-disabled]": "disabled() || null",
|
|
882
|
+
"[attr.data-truncated]": "hasOverflowItems() || null",
|
|
883
|
+
"[style.--aeris-speed-dial-radius]": "radius() + \"px\"",
|
|
884
|
+
"(document:click)": "onDocumentClick($event)"
|
|
885
|
+
},
|
|
886
|
+
styles: [":host{--aeris-speed-dial-size: 3rem;--aeris-speed-dial-item-size: 2rem;--aeris-speed-dial-gap: .375rem;position:relative;z-index:20;display:inline-block;width:var(--aeris-speed-dial-size);height:var(--aeris-speed-dial-size)}@media(pointer:coarse){:host{--aeris-speed-dial-item-size: var(--aeris-touch-target-size, 2.75rem)}}:host([data-open]){z-index:1000}.aeris-speed-dial__mask{position:fixed;z-index:1;inset:0;width:100vw;height:100vh;height:100dvh;padding:0;border:0;background:#11151070;cursor:default}.aeris-speed-dial__mask[data-backdrop-blur]{-webkit-backdrop-filter:blur(var(--aeris-speed-dial-backdrop-blur, var(--aeris-backdrop-blur, .25rem)));backdrop-filter:blur(var(--aeris-speed-dial-backdrop-blur, var(--aeris-backdrop-blur, .25rem)))}.aeris-speed-dial__container{position:relative;z-index:2;width:100%;height:100%}.aeris-speed-dial__trigger,.aeris-speed-dial__action{border:0;font:inherit}.aeris-speed-dial__trigger{position:relative;z-index:3;width:var(--aeris-speed-dial-size);height:var(--aeris-speed-dial-size);display:grid;place-items:center;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-primary, #111111);box-shadow:0 .5rem 1.5rem color-mix(in srgb,var(--aeris-primary, #111111) 28%,transparent);color:var(--aeris-on-primary, #ffffff);cursor:pointer;transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-speed-dial__trigger[data-size=sm]{--aeris-speed-dial-size: 2.5rem}.aeris-speed-dial__trigger[data-size=lg]{--aeris-speed-dial-size: 3.5rem}@media(hover:hover){.aeris-speed-dial__trigger:hover:not(:disabled){background:var(--aeris-primary-hover, #242424);transform:translateY(-1px)}}.aeris-speed-dial__trigger:focus-visible,.aeris-speed-dial__action:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid color-mix(in srgb,var(--aeris-focus, #111111) 48%,transparent);outline-offset:3px}.aeris-speed-dial__trigger:disabled{opacity:.48;cursor:not-allowed}.aeris-speed-dial__trigger-icon{display:grid;place-items:center;font-size:1.5rem;line-height:1;transform-origin:center;transition:transform var(--aeris-motion-slow, .22s) var(--aeris-ease-enter, ease-out)}.aeris-speed-dial__plus,.aeris-speed-dial__trigger-icon svg{display:block;width:1.5rem;height:1.5rem;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round}:host([data-open]) .aeris-speed-dial__trigger-icon[data-rotate]{transform:rotate(135deg)}.aeris-speed-dial__list{position:absolute;inset:50% auto auto 50%;z-index:2;width:0;height:0;margin:0;padding:0;list-style:none}.aeris-speed-dial__item{position:absolute;width:var(--aeris-speed-dial-item-size);height:var(--aeris-speed-dial-item-size);opacity:0;pointer-events:none;transform:translate(-50%,-50%) scale(.55);transition:opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease) var(--aeris-speed-dial-delay),transform .26s cubic-bezier(.2,.9,.2,1.18) var(--aeris-speed-dial-delay)}.aeris-speed-dial__item[data-visible]{opacity:1;pointer-events:auto;transform:translate(-50%,-50%) scale(1)}.aeris-speed-dial__action{width:100%;height:100%;display:grid;place-items:center;border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-surface, #fff);box-shadow:0 .4rem 1.1rem #14181224;color:var(--aeris-text, #111111);text-decoration:none;cursor:pointer;transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}@media(hover:hover){.aeris-speed-dial__action:hover:not(:disabled):not(.aeris-speed-dial__action--disabled){border-color:var(--aeris-primary, #111111);background:color-mix(in srgb,var(--aeris-primary, #111111) 10%,var(--aeris-surface, #fff));transform:scale(1.08)}}.aeris-speed-dial__action:disabled,.aeris-speed-dial__action--disabled{opacity:.45;cursor:not-allowed}.aeris-speed-dial__action-icon{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);display:inline-grid;place-items:center;font-size:var(--aeris-icon-size, 1rem);font-weight:var(--aeris-font-weight-bold, 700);line-height:1}@media(prefers-reduced-motion:reduce){.aeris-speed-dial__trigger,.aeris-speed-dial__trigger-icon,.aeris-speed-dial__item,.aeris-speed-dial__action{animation-duration:1ms;transition-duration:1ms;transition-delay:0ms}}\n"]
|
|
887
|
+
}]
|
|
888
|
+
}],
|
|
889
|
+
ctorParameters: () => [],
|
|
890
|
+
propDecorators: {
|
|
891
|
+
actions: [{
|
|
892
|
+
type: i0.ViewChildren,
|
|
893
|
+
args: ["action", { isSignal: true }]
|
|
894
|
+
}],
|
|
895
|
+
trigger: [{
|
|
896
|
+
type: i0.ViewChildren,
|
|
897
|
+
args: ["trigger", { isSignal: true }]
|
|
898
|
+
}],
|
|
899
|
+
id: [{
|
|
900
|
+
type: i0.Input,
|
|
901
|
+
args: [{
|
|
902
|
+
isSignal: true,
|
|
903
|
+
alias: "id",
|
|
904
|
+
required: false
|
|
905
|
+
}]
|
|
906
|
+
}],
|
|
907
|
+
model: [{
|
|
908
|
+
type: i0.Input,
|
|
909
|
+
args: [{
|
|
910
|
+
isSignal: true,
|
|
911
|
+
alias: "model",
|
|
912
|
+
required: false
|
|
913
|
+
}]
|
|
914
|
+
}],
|
|
915
|
+
visible: [{
|
|
916
|
+
type: i0.Input,
|
|
917
|
+
args: [{
|
|
918
|
+
isSignal: true,
|
|
919
|
+
alias: "visible",
|
|
920
|
+
required: false
|
|
921
|
+
}]
|
|
922
|
+
}, {
|
|
923
|
+
type: i0.Output,
|
|
924
|
+
args: ["visibleChange"]
|
|
925
|
+
}],
|
|
926
|
+
direction: [{
|
|
927
|
+
type: i0.Input,
|
|
928
|
+
args: [{
|
|
929
|
+
isSignal: true,
|
|
930
|
+
alias: "direction",
|
|
931
|
+
required: false
|
|
932
|
+
}]
|
|
933
|
+
}],
|
|
934
|
+
transitionDelay: [{
|
|
935
|
+
type: i0.Input,
|
|
936
|
+
args: [{
|
|
937
|
+
isSignal: true,
|
|
938
|
+
alias: "transitionDelay",
|
|
939
|
+
required: false
|
|
940
|
+
}]
|
|
941
|
+
}],
|
|
942
|
+
type: [{
|
|
943
|
+
type: i0.Input,
|
|
944
|
+
args: [{
|
|
945
|
+
isSignal: true,
|
|
946
|
+
alias: "type",
|
|
947
|
+
required: false
|
|
948
|
+
}]
|
|
949
|
+
}],
|
|
950
|
+
maxItems: [{
|
|
951
|
+
type: i0.Input,
|
|
952
|
+
args: [{
|
|
953
|
+
isSignal: true,
|
|
954
|
+
alias: "maxItems",
|
|
955
|
+
required: false
|
|
956
|
+
}]
|
|
957
|
+
}],
|
|
958
|
+
radius: [{
|
|
959
|
+
type: i0.Input,
|
|
960
|
+
args: [{
|
|
961
|
+
isSignal: true,
|
|
962
|
+
alias: "radius",
|
|
963
|
+
required: false
|
|
964
|
+
}]
|
|
965
|
+
}],
|
|
966
|
+
mask: [{
|
|
967
|
+
type: i0.Input,
|
|
968
|
+
args: [{
|
|
969
|
+
isSignal: true,
|
|
970
|
+
alias: "mask",
|
|
971
|
+
required: false
|
|
972
|
+
}]
|
|
973
|
+
}],
|
|
974
|
+
backdropBlur: [{
|
|
975
|
+
type: i0.Input,
|
|
976
|
+
args: [{
|
|
977
|
+
isSignal: true,
|
|
978
|
+
alias: "backdropBlur",
|
|
979
|
+
required: false
|
|
980
|
+
}]
|
|
981
|
+
}],
|
|
982
|
+
backdropBlurAmount: [{
|
|
983
|
+
type: i0.Input,
|
|
984
|
+
args: [{
|
|
985
|
+
isSignal: true,
|
|
986
|
+
alias: "backdropBlurAmount",
|
|
987
|
+
required: false
|
|
988
|
+
}]
|
|
989
|
+
}],
|
|
990
|
+
disabled: [{
|
|
991
|
+
type: i0.Input,
|
|
992
|
+
args: [{
|
|
993
|
+
isSignal: true,
|
|
994
|
+
alias: "disabled",
|
|
995
|
+
required: false
|
|
996
|
+
}]
|
|
997
|
+
}],
|
|
998
|
+
closeOnOutsideClick: [{
|
|
999
|
+
type: i0.Input,
|
|
1000
|
+
args: [{
|
|
1001
|
+
isSignal: true,
|
|
1002
|
+
alias: "closeOnOutsideClick",
|
|
1003
|
+
required: false
|
|
1004
|
+
}]
|
|
1005
|
+
}],
|
|
1006
|
+
buttonClass: [{
|
|
1007
|
+
type: i0.Input,
|
|
1008
|
+
args: [{
|
|
1009
|
+
isSignal: true,
|
|
1010
|
+
alias: "buttonClass",
|
|
1011
|
+
required: false
|
|
1012
|
+
}]
|
|
1013
|
+
}],
|
|
1014
|
+
maskClass: [{
|
|
1015
|
+
type: i0.Input,
|
|
1016
|
+
args: [{
|
|
1017
|
+
isSignal: true,
|
|
1018
|
+
alias: "maskClass",
|
|
1019
|
+
required: false
|
|
1020
|
+
}]
|
|
1021
|
+
}],
|
|
1022
|
+
showIcon: [{
|
|
1023
|
+
type: i0.Input,
|
|
1024
|
+
args: [{
|
|
1025
|
+
isSignal: true,
|
|
1026
|
+
alias: "showIcon",
|
|
1027
|
+
required: false
|
|
1028
|
+
}]
|
|
1029
|
+
}],
|
|
1030
|
+
hideIcon: [{
|
|
1031
|
+
type: i0.Input,
|
|
1032
|
+
args: [{
|
|
1033
|
+
isSignal: true,
|
|
1034
|
+
alias: "hideIcon",
|
|
1035
|
+
required: false
|
|
1036
|
+
}]
|
|
1037
|
+
}],
|
|
1038
|
+
rotateAnimation: [{
|
|
1039
|
+
type: i0.Input,
|
|
1040
|
+
args: [{
|
|
1041
|
+
isSignal: true,
|
|
1042
|
+
alias: "rotateAnimation",
|
|
1043
|
+
required: false
|
|
1044
|
+
}]
|
|
1045
|
+
}],
|
|
1046
|
+
ariaLabel: [{
|
|
1047
|
+
type: i0.Input,
|
|
1048
|
+
args: [{
|
|
1049
|
+
isSignal: true,
|
|
1050
|
+
alias: "ariaLabel",
|
|
1051
|
+
required: false
|
|
1052
|
+
}]
|
|
1053
|
+
}],
|
|
1054
|
+
ariaLabelledBy: [{
|
|
1055
|
+
type: i0.Input,
|
|
1056
|
+
args: [{
|
|
1057
|
+
isSignal: true,
|
|
1058
|
+
alias: "ariaLabelledBy",
|
|
1059
|
+
required: false
|
|
1060
|
+
}]
|
|
1061
|
+
}],
|
|
1062
|
+
buttonProps: [{
|
|
1063
|
+
type: i0.Input,
|
|
1064
|
+
args: [{
|
|
1065
|
+
isSignal: true,
|
|
1066
|
+
alias: "buttonProps",
|
|
1067
|
+
required: false
|
|
1068
|
+
}]
|
|
1069
|
+
}],
|
|
1070
|
+
buttonTemplate: [{
|
|
1071
|
+
type: i0.Input,
|
|
1072
|
+
args: [{
|
|
1073
|
+
isSignal: true,
|
|
1074
|
+
alias: "buttonTemplate",
|
|
1075
|
+
required: false
|
|
1076
|
+
}]
|
|
1077
|
+
}],
|
|
1078
|
+
itemTemplate: [{
|
|
1079
|
+
type: i0.Input,
|
|
1080
|
+
args: [{
|
|
1081
|
+
isSignal: true,
|
|
1082
|
+
alias: "itemTemplate",
|
|
1083
|
+
required: false
|
|
1084
|
+
}]
|
|
1085
|
+
}],
|
|
1086
|
+
iconTemplate: [{
|
|
1087
|
+
type: i0.Input,
|
|
1088
|
+
args: [{
|
|
1089
|
+
isSignal: true,
|
|
1090
|
+
alias: "iconTemplate",
|
|
1091
|
+
required: false
|
|
1092
|
+
}]
|
|
1093
|
+
}],
|
|
1094
|
+
navigationHandler: [{
|
|
1095
|
+
type: i0.Input,
|
|
1096
|
+
args: [{
|
|
1097
|
+
isSignal: true,
|
|
1098
|
+
alias: "navigationHandler",
|
|
1099
|
+
required: false
|
|
1100
|
+
}]
|
|
1101
|
+
}],
|
|
1102
|
+
clicked: [{
|
|
1103
|
+
type: i0.Output,
|
|
1104
|
+
args: ["clicked"]
|
|
1105
|
+
}],
|
|
1106
|
+
opened: [{
|
|
1107
|
+
type: i0.Output,
|
|
1108
|
+
args: ["opened"]
|
|
1109
|
+
}],
|
|
1110
|
+
closed: [{
|
|
1111
|
+
type: i0.Output,
|
|
1112
|
+
args: ["closed"]
|
|
1113
|
+
}],
|
|
1114
|
+
itemSelected: [{
|
|
1115
|
+
type: i0.Output,
|
|
1116
|
+
args: ["itemSelected"]
|
|
1117
|
+
}],
|
|
1118
|
+
projectedButtonTemplate: [{
|
|
1119
|
+
type: i0.ContentChild,
|
|
1120
|
+
args: ["button", { isSignal: true }]
|
|
1121
|
+
}],
|
|
1122
|
+
projectedItemTemplate: [{
|
|
1123
|
+
type: i0.ContentChild,
|
|
1124
|
+
args: ["item", { isSignal: true }]
|
|
1125
|
+
}],
|
|
1126
|
+
projectedIconTemplate: [{
|
|
1127
|
+
type: i0.ContentChild,
|
|
1128
|
+
args: ["icon", { isSignal: true }]
|
|
1129
|
+
}]
|
|
1130
|
+
}
|
|
1131
|
+
});
|
|
588
1132
|
export { AERIS_SPEED_DIAL_ITEM_LIMITS, AerisSpeedDial };
|
|
589
|
-
|
|
1133
|
+
|
|
1134
|
+
//# sourceMappingURL=aeris-ui-core-speed-dial.mjs.map
|