@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,306 +1,1140 @@
|
|
|
1
|
-
import { DOCUMENT, NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import {
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
1
|
+
import { DOCUMENT, NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, DestroyRef, Directive, TemplateRef, afterRenderEffect, booleanAttribute, computed, contentChild, effect, inject, input, model, output, signal, untracked, viewChild } from "@angular/core";
|
|
4
|
+
import { aerisInternalCreateFrameScheduler, aerisInternalFocusInitialElement, aerisInternalTrapTabFocus, aerisInternalViewportBounds, ɵAerisAppendTo, ɵAerisIcon, ɵisTopmostAerisOverlay, ɵlockAerisDocumentScroll, ɵregisterAerisOverlay, ɵunlockAerisDocumentScroll, ɵunregisterAerisOverlay } from "@aeris-ui/core";
|
|
5
|
+
var AerisDrawerSwipe = class {
|
|
6
|
+
document;
|
|
7
|
+
changed;
|
|
8
|
+
dismissed;
|
|
9
|
+
snap;
|
|
10
|
+
session = null;
|
|
11
|
+
frame = aerisInternalCreateFrameScheduler(() => this.flush());
|
|
12
|
+
constructor(document, changed, dismissed, snap = () => null) {
|
|
13
|
+
this.document = document;
|
|
14
|
+
this.changed = changed;
|
|
15
|
+
this.dismissed = dismissed;
|
|
16
|
+
this.snap = snap;
|
|
17
|
+
}
|
|
18
|
+
start(event, position, extent) {
|
|
19
|
+
if (event.pointerType === "touch") return;
|
|
20
|
+
this.begin(event, position, extent, event.currentTarget, event.target, true);
|
|
21
|
+
}
|
|
22
|
+
begin(event, position, extent, surface, target, capture) {
|
|
23
|
+
if (this.session) {
|
|
24
|
+
if (event.pointerId !== this.session.id) this.cancel(true);
|
|
25
|
+
return;
|
|
26
|
+
}
|
|
27
|
+
if (!event.isPrimary || event.button !== 0 || extent <= 0) return;
|
|
28
|
+
const handle = target?.closest(".aeris-drawer__swipe-handle");
|
|
29
|
+
if (!handle && !this.canStart(surface, target, position)) return;
|
|
30
|
+
this.session = {
|
|
31
|
+
id: event.pointerId,
|
|
32
|
+
handle: handle ?? surface,
|
|
33
|
+
capture,
|
|
34
|
+
position,
|
|
35
|
+
extent,
|
|
36
|
+
viewport: this.viewportKey(),
|
|
37
|
+
x: event.clientX,
|
|
38
|
+
y: event.clientY,
|
|
39
|
+
dragging: false,
|
|
40
|
+
distance: 0,
|
|
41
|
+
velocity: 0,
|
|
42
|
+
time: event.timeStamp,
|
|
43
|
+
snap: position === "bottom" ? this.snap() : null,
|
|
44
|
+
fromHandle: !!handle
|
|
45
|
+
};
|
|
46
|
+
if (capture) this.session.handle.setPointerCapture?.(event.pointerId);
|
|
47
|
+
}
|
|
48
|
+
move(event) {
|
|
49
|
+
if ("pointerType" in event && event.pointerType === "touch") return false;
|
|
50
|
+
const session = this.session;
|
|
51
|
+
if (!session || session.id !== event.pointerId) return false;
|
|
52
|
+
const horizontal = session.position === "left" || session.position === "right";
|
|
53
|
+
const direction = session.position === "left" || session.position === "top" ? -1 : 1;
|
|
54
|
+
const x = event.clientX - session.x;
|
|
55
|
+
const y = event.clientY - session.y;
|
|
56
|
+
const distance = (horizontal ? x : y) * direction;
|
|
57
|
+
if (!session.dragging) {
|
|
58
|
+
const intended = session.snap ? Math.abs(distance) : distance;
|
|
59
|
+
if (session.snap && !session.fromHandle && distance < 0 && session.extent >= session.snap.heights[session.snap.heights.length - 1] - 1) {
|
|
60
|
+
this.cancel();
|
|
61
|
+
return false;
|
|
62
|
+
}
|
|
63
|
+
if (Math.max(Math.abs(x), Math.abs(y)) < 8) return intended > 0 && intended > Math.abs(horizontal ? y : x) * 1.2;
|
|
64
|
+
if (intended <= 0 || intended < Math.abs(horizontal ? y : x) * 1.2) {
|
|
65
|
+
this.cancel(true);
|
|
66
|
+
return false;
|
|
67
|
+
}
|
|
68
|
+
const selection = this.document.getSelection();
|
|
69
|
+
if (selection && !selection.isCollapsed) {
|
|
70
|
+
this.cancel();
|
|
71
|
+
return false;
|
|
72
|
+
}
|
|
73
|
+
session.dragging = true;
|
|
74
|
+
}
|
|
75
|
+
event.preventDefault();
|
|
76
|
+
const minimum = session.snap && !session.snap.dismissible ? session.snap.heights[0] : 0;
|
|
77
|
+
const next = session.snap ? Math.max(session.extent - session.snap.heights[session.snap.heights.length - 1], Math.min(session.extent - minimum, distance)) : Math.max(0, Math.min(session.extent, distance));
|
|
78
|
+
if (next !== session.distance) {
|
|
79
|
+
session.velocity = (next - session.distance) / Math.max(1, event.timeStamp - session.time);
|
|
80
|
+
session.distance = next;
|
|
81
|
+
session.time = event.timeStamp;
|
|
82
|
+
}
|
|
83
|
+
this.frame.schedule();
|
|
84
|
+
return true;
|
|
85
|
+
}
|
|
86
|
+
end(event, threshold) {
|
|
87
|
+
if ("pointerType" in event && event.pointerType === "touch") return;
|
|
88
|
+
const session = this.session;
|
|
89
|
+
if (!session || session.id !== event.pointerId) return;
|
|
90
|
+
const cancelled = event.type !== "pointerup" || session.viewport !== this.viewportKey();
|
|
91
|
+
if (!cancelled && session.dragging) this.move(event);
|
|
92
|
+
this.frame.cancel();
|
|
93
|
+
this.session = null;
|
|
94
|
+
this.release(session);
|
|
95
|
+
if (!session.dragging) return;
|
|
96
|
+
guardReleaseClick(this.document, session.capture ? session.id : null);
|
|
97
|
+
if (session.snap) {
|
|
98
|
+
const originalEvent = "originalEvent" in event ? event.originalEvent : event;
|
|
99
|
+
if (!cancelled) {
|
|
100
|
+
const recent = event.timeStamp - session.time < 100;
|
|
101
|
+
const projected = session.extent - session.distance - (recent ? session.velocity * 100 : 0);
|
|
102
|
+
if (session.snap.dismissible && projected < session.snap.heights[0] / 2) {
|
|
103
|
+
this.changed(Math.max(0, session.distance), Math.max(0, session.distance / session.extent), false);
|
|
104
|
+
this.dismissed(originalEvent);
|
|
105
|
+
return;
|
|
106
|
+
}
|
|
107
|
+
let nearest = 0;
|
|
108
|
+
session.snap.heights.forEach((height, index, heights) => {
|
|
109
|
+
if (Math.abs(height - projected) < Math.abs(heights[nearest] - projected)) nearest = index;
|
|
110
|
+
});
|
|
111
|
+
session.snap.settled(nearest, originalEvent);
|
|
112
|
+
}
|
|
113
|
+
this.changed(0, 0, false);
|
|
114
|
+
return;
|
|
115
|
+
}
|
|
116
|
+
const fraction = Number.isFinite(threshold) ? Math.min(1, Math.max(.1, threshold)) : .35;
|
|
117
|
+
const flick = session.distance >= 32 && session.velocity >= .5 && event.timeStamp - session.time < 100;
|
|
118
|
+
const dismiss = !cancelled && (session.distance >= session.extent * fraction || flick);
|
|
119
|
+
const direction = session.position === "left" || session.position === "top" ? -1 : 1;
|
|
120
|
+
this.changed(dismiss ? session.distance * direction : 0, dismiss ? session.distance / session.extent : 0, false);
|
|
121
|
+
if (dismiss) this.dismissed("originalEvent" in event ? event.originalEvent : event);
|
|
122
|
+
}
|
|
123
|
+
cancel(suppressClick = false) {
|
|
124
|
+
const session = this.session;
|
|
125
|
+
this.session = null;
|
|
126
|
+
this.frame.cancel();
|
|
127
|
+
if (session) {
|
|
128
|
+
this.release(session);
|
|
129
|
+
if (session.dragging || suppressClick) guardReleaseClick(this.document, session.capture ? session.id : null);
|
|
130
|
+
}
|
|
131
|
+
this.changed(0, 0, false);
|
|
132
|
+
}
|
|
133
|
+
flush() {
|
|
134
|
+
const session = this.session;
|
|
135
|
+
if (!session?.dragging) return;
|
|
136
|
+
const direction = session.position === "left" || session.position === "top" ? -1 : 1;
|
|
137
|
+
this.changed(session.distance * direction, session.distance / session.extent, true);
|
|
138
|
+
}
|
|
139
|
+
release(session) {
|
|
140
|
+
if (session.capture && session.handle.hasPointerCapture?.(session.id)) session.handle.releasePointerCapture(session.id);
|
|
141
|
+
}
|
|
142
|
+
listenForTouch(surface, position, threshold, enabled) {
|
|
143
|
+
const input = (event, touch) => ({
|
|
144
|
+
pointerId: touch.identifier,
|
|
145
|
+
isPrimary: true,
|
|
146
|
+
button: 0,
|
|
147
|
+
clientX: touch.clientX,
|
|
148
|
+
clientY: touch.clientY,
|
|
149
|
+
timeStamp: event.timeStamp,
|
|
150
|
+
type: event.type === "touchend" ? "pointerup" : event.type === "touchcancel" ? "pointercancel" : event.type,
|
|
151
|
+
preventDefault: () => event.preventDefault(),
|
|
152
|
+
originalEvent: event
|
|
153
|
+
});
|
|
154
|
+
const start = (event) => {
|
|
155
|
+
if (!enabled()) return;
|
|
156
|
+
if (event.touches.length !== 1) {
|
|
157
|
+
this.cancel();
|
|
158
|
+
return;
|
|
159
|
+
}
|
|
160
|
+
const touch = event.touches[0];
|
|
161
|
+
const bounds = surface.getBoundingClientRect();
|
|
162
|
+
this.begin(input(event, touch), position, position === "left" || position === "right" ? bounds.width : bounds.height, surface, touch.target, false);
|
|
163
|
+
};
|
|
164
|
+
const move = (event) => {
|
|
165
|
+
if (event.touches.length !== 1 || !event.cancelable) {
|
|
166
|
+
this.cancel();
|
|
167
|
+
return;
|
|
168
|
+
}
|
|
169
|
+
if (this.move(input(event, event.touches[0]))) event.preventDefault();
|
|
170
|
+
};
|
|
171
|
+
const end = (event) => {
|
|
172
|
+
for (const touch of Array.from(event.changedTouches)) this.end(input(event, touch), threshold());
|
|
173
|
+
};
|
|
174
|
+
surface.addEventListener("touchstart", start, { passive: true });
|
|
175
|
+
surface.addEventListener("touchmove", move, { passive: false });
|
|
176
|
+
surface.addEventListener("touchend", end);
|
|
177
|
+
surface.addEventListener("touchcancel", end);
|
|
178
|
+
return () => {
|
|
179
|
+
surface.removeEventListener("touchstart", start);
|
|
180
|
+
surface.removeEventListener("touchmove", move);
|
|
181
|
+
surface.removeEventListener("touchend", end);
|
|
182
|
+
surface.removeEventListener("touchcancel", end);
|
|
183
|
+
};
|
|
184
|
+
}
|
|
185
|
+
canStart(surface, target, position) {
|
|
186
|
+
if (!target || !surface.contains(target)) return true;
|
|
187
|
+
if (target.closest("button, a, input, textarea, select, label, [contenteditable]:not([contenteditable=\"false\"]), [draggable=\"true\"], [role=\"button\"], [role=\"slider\"], [role=\"spinbutton\"], [role=\"combobox\"], [role=\"listbox\"], canvas, video, audio, [data-aeris-swipe-ignore]")) return false;
|
|
188
|
+
const horizontal = position === "left" || position === "right";
|
|
189
|
+
for (let node = target; node && surface.contains(node); node = node.parentElement) {
|
|
190
|
+
const style = this.document.defaultView?.getComputedStyle(node);
|
|
191
|
+
if (!style) continue;
|
|
192
|
+
if (horizontal && /auto|scroll/.test(style.overflowX) && node.scrollWidth > node.clientWidth + 1) return false;
|
|
193
|
+
if (!horizontal && /auto|scroll/.test(style.overflowY) && node.scrollHeight > node.clientHeight + 1) {
|
|
194
|
+
if (position === "bottom" ? node.scrollTop > 1 : node.scrollTop < node.scrollHeight - node.clientHeight - 1) return false;
|
|
195
|
+
}
|
|
196
|
+
}
|
|
197
|
+
return true;
|
|
198
|
+
}
|
|
199
|
+
viewportKey() {
|
|
200
|
+
const view = this.document.defaultView;
|
|
201
|
+
return [
|
|
202
|
+
view?.innerWidth,
|
|
203
|
+
view?.innerHeight,
|
|
204
|
+
view?.visualViewport?.width,
|
|
205
|
+
view?.visualViewport?.height
|
|
206
|
+
].join(":");
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
function guardReleaseClick(document, pointerId) {
|
|
210
|
+
const clear = () => {
|
|
211
|
+
document.removeEventListener("click", click, true);
|
|
212
|
+
document.removeEventListener("pointerdown", clear, true);
|
|
213
|
+
globalThis.clearTimeout(timer);
|
|
214
|
+
};
|
|
215
|
+
const click = (event) => {
|
|
216
|
+
if (!event.detail || pointerId !== null && "pointerId" in event && event.pointerId !== pointerId) return;
|
|
217
|
+
event.preventDefault();
|
|
218
|
+
event.stopImmediatePropagation();
|
|
219
|
+
clear();
|
|
220
|
+
};
|
|
221
|
+
const timer = globalThis.setTimeout(clear, 750);
|
|
222
|
+
document.addEventListener("click", click, true);
|
|
223
|
+
document.addEventListener("pointerdown", clear, true);
|
|
19
224
|
}
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
225
|
+
function normalizeDrawerSnapPoints(values, availableHeight) {
|
|
226
|
+
if (!Number.isFinite(availableHeight) || availableHeight <= 0) return [];
|
|
227
|
+
const points = [];
|
|
228
|
+
for (const value of values) {
|
|
229
|
+
const height = typeof value === "number" ? value > 0 && value <= 1 ? value * availableHeight : NaN : /^\d+(?:\.\d+)?px$/.test(value) ? Number.parseFloat(value) : NaN;
|
|
230
|
+
if (!Number.isFinite(height) || height <= 0) continue;
|
|
231
|
+
points.push({
|
|
232
|
+
value,
|
|
233
|
+
height: Math.max(1, Math.min(availableHeight, height))
|
|
234
|
+
});
|
|
235
|
+
}
|
|
236
|
+
return points.sort((a, b) => a.height - b.height).filter((point, index, sorted) => index === 0 || point.height - sorted[index - 1].height >= .5);
|
|
28
237
|
}
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisDrawerHeadlessTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
36
|
-
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisDrawerHeadlessTemplate, isStandalone: true, selector: "ng-template[aerisDrawerHeadless]", ngImport: i0 });
|
|
238
|
+
function drawerSnapIndex(points, value, availableHeight) {
|
|
239
|
+
if (value === null) return 0;
|
|
240
|
+
const requested = normalizeDrawerSnapPoints([value], availableHeight)[0];
|
|
241
|
+
if (!requested) return 0;
|
|
242
|
+
const index = points.findIndex((point) => Math.abs(point.height - requested.height) < .5);
|
|
243
|
+
return Math.max(0, index);
|
|
37
244
|
}
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
245
|
+
var AerisDrawerHeaderTemplate = class AerisDrawerHeaderTemplate {
|
|
246
|
+
template = inject(TemplateRef);
|
|
247
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
248
|
+
minVersion: "12.0.0",
|
|
249
|
+
version: "22.2.3",
|
|
250
|
+
ngImport: i0,
|
|
251
|
+
type: AerisDrawerHeaderTemplate,
|
|
252
|
+
deps: [],
|
|
253
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
254
|
+
});
|
|
255
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
256
|
+
minVersion: "14.0.0",
|
|
257
|
+
version: "22.2.3",
|
|
258
|
+
type: AerisDrawerHeaderTemplate,
|
|
259
|
+
isStandalone: true,
|
|
260
|
+
selector: "ng-template[aerisDrawerHeader]",
|
|
261
|
+
ngImport: i0
|
|
262
|
+
});
|
|
263
|
+
};
|
|
264
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
265
|
+
minVersion: "12.0.0",
|
|
266
|
+
version: "22.2.3",
|
|
267
|
+
ngImport: i0,
|
|
268
|
+
type: AerisDrawerHeaderTemplate,
|
|
269
|
+
decorators: [{
|
|
270
|
+
type: Directive,
|
|
271
|
+
args: [{ selector: "ng-template[aerisDrawerHeader]" }]
|
|
272
|
+
}]
|
|
273
|
+
});
|
|
274
|
+
var AerisDrawerFooterTemplate = class AerisDrawerFooterTemplate {
|
|
275
|
+
template = inject(TemplateRef);
|
|
276
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
277
|
+
minVersion: "12.0.0",
|
|
278
|
+
version: "22.2.3",
|
|
279
|
+
ngImport: i0,
|
|
280
|
+
type: AerisDrawerFooterTemplate,
|
|
281
|
+
deps: [],
|
|
282
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
283
|
+
});
|
|
284
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
285
|
+
minVersion: "14.0.0",
|
|
286
|
+
version: "22.2.3",
|
|
287
|
+
type: AerisDrawerFooterTemplate,
|
|
288
|
+
isStandalone: true,
|
|
289
|
+
selector: "ng-template[aerisDrawerFooter]",
|
|
290
|
+
ngImport: i0
|
|
291
|
+
});
|
|
292
|
+
};
|
|
293
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
294
|
+
minVersion: "12.0.0",
|
|
295
|
+
version: "22.2.3",
|
|
296
|
+
ngImport: i0,
|
|
297
|
+
type: AerisDrawerFooterTemplate,
|
|
298
|
+
decorators: [{
|
|
299
|
+
type: Directive,
|
|
300
|
+
args: [{ selector: "ng-template[aerisDrawerFooter]" }]
|
|
301
|
+
}]
|
|
302
|
+
});
|
|
303
|
+
var AerisDrawerCloseIconTemplate = class AerisDrawerCloseIconTemplate {
|
|
304
|
+
template = inject(TemplateRef);
|
|
305
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
306
|
+
minVersion: "12.0.0",
|
|
307
|
+
version: "22.2.3",
|
|
308
|
+
ngImport: i0,
|
|
309
|
+
type: AerisDrawerCloseIconTemplate,
|
|
310
|
+
deps: [],
|
|
311
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
312
|
+
});
|
|
313
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
314
|
+
minVersion: "14.0.0",
|
|
315
|
+
version: "22.2.3",
|
|
316
|
+
type: AerisDrawerCloseIconTemplate,
|
|
317
|
+
isStandalone: true,
|
|
318
|
+
selector: "ng-template[aerisDrawerCloseIcon]",
|
|
319
|
+
ngImport: i0
|
|
320
|
+
});
|
|
321
|
+
};
|
|
322
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
323
|
+
minVersion: "12.0.0",
|
|
324
|
+
version: "22.2.3",
|
|
325
|
+
ngImport: i0,
|
|
326
|
+
type: AerisDrawerCloseIconTemplate,
|
|
327
|
+
decorators: [{
|
|
328
|
+
type: Directive,
|
|
329
|
+
args: [{ selector: "ng-template[aerisDrawerCloseIcon]" }]
|
|
330
|
+
}]
|
|
331
|
+
});
|
|
332
|
+
var AerisDrawerHeadlessTemplate = class AerisDrawerHeadlessTemplate {
|
|
333
|
+
template = inject(TemplateRef);
|
|
334
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
335
|
+
minVersion: "12.0.0",
|
|
336
|
+
version: "22.2.3",
|
|
337
|
+
ngImport: i0,
|
|
338
|
+
type: AerisDrawerHeadlessTemplate,
|
|
339
|
+
deps: [],
|
|
340
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
341
|
+
});
|
|
342
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
343
|
+
minVersion: "14.0.0",
|
|
344
|
+
version: "22.2.3",
|
|
345
|
+
type: AerisDrawerHeadlessTemplate,
|
|
346
|
+
isStandalone: true,
|
|
347
|
+
selector: "ng-template[aerisDrawerHeadless]",
|
|
348
|
+
ngImport: i0
|
|
349
|
+
});
|
|
350
|
+
};
|
|
351
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
352
|
+
minVersion: "12.0.0",
|
|
353
|
+
version: "22.2.3",
|
|
354
|
+
ngImport: i0,
|
|
355
|
+
type: AerisDrawerHeadlessTemplate,
|
|
356
|
+
decorators: [{
|
|
357
|
+
type: Directive,
|
|
358
|
+
args: [{ selector: "ng-template[aerisDrawerHeadless]" }]
|
|
359
|
+
}]
|
|
360
|
+
});
|
|
42
361
|
let nextDrawerId = 0;
|
|
43
362
|
const DRAWER_EXIT_DURATION_MS = 220;
|
|
44
363
|
const DRAWER_FOCUS_OPTIONS = {
|
|
45
|
-
|
|
46
|
-
|
|
364
|
+
includeContentEditable: true,
|
|
365
|
+
checkComputedVisibility: true
|
|
47
366
|
};
|
|
48
|
-
class AerisDrawer {
|
|
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
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
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
|
-
|
|
367
|
+
var AerisDrawer = class AerisDrawer {
|
|
368
|
+
closeIconTemplate = input(...ngDevMode ? [void 0, { debugName: "closeIconTemplate" }] : /* istanbul ignore next */ []);
|
|
369
|
+
resolvedCloseIconTemplate = computed(() => this.closeIconTemplate() ?? this.projectedCloseIconTemplate()?.template, ...ngDevMode ? [{ debugName: "resolvedCloseIconTemplate" }] : /* istanbul ignore next */ []);
|
|
370
|
+
maximizeIconTemplate = input(...ngDevMode ? [void 0, { debugName: "maximizeIconTemplate" }] : /* istanbul ignore next */ []);
|
|
371
|
+
document = inject(DOCUMENT);
|
|
372
|
+
destroyRef = inject(DestroyRef);
|
|
373
|
+
overlayToken = {};
|
|
374
|
+
scrollLocked = false;
|
|
375
|
+
previouslyFocused = signal(null, ...ngDevMode ? [{ debugName: "previouslyFocused" }] : /* istanbul ignore next */ []);
|
|
376
|
+
previousVisible = false;
|
|
377
|
+
pendingOriginalEvent = null;
|
|
378
|
+
pendingCloseReason = "api";
|
|
379
|
+
closeRenderTimer;
|
|
380
|
+
availableSnapHeight = signal(0, ...ngDevMode ? [{ debugName: "availableSnapHeight" }] : /* istanbul ignore next */ []);
|
|
381
|
+
snapDragHeight = signal(null, ...ngDevMode ? [{ debugName: "snapDragHeight" }] : /* istanbul ignore next */ []);
|
|
382
|
+
snapStartHeight = 0;
|
|
383
|
+
normalizedSnapPoints = computed(() => normalizeDrawerSnapPoints(this.snapPoints(), this.availableSnapHeight()), ...ngDevMode ? [{ debugName: "normalizedSnapPoints" }] : /* istanbul ignore next */ []);
|
|
384
|
+
snapEnabled = computed(() => this.position() === "bottom" && !this.maximized() && this.size() !== "full" && !this.mobileFullScreen() && this.normalizedSnapPoints().length > 0, ...ngDevMode ? [{ debugName: "snapEnabled" }] : /* istanbul ignore next */ []);
|
|
385
|
+
snapIndex = computed(() => drawerSnapIndex(this.normalizedSnapPoints(), this.activeSnapPoint(), this.availableSnapHeight()), ...ngDevMode ? [{ debugName: "snapIndex" }] : /* istanbul ignore next */ []);
|
|
386
|
+
currentSnapHeight = computed(() => this.normalizedSnapPoints()[this.snapIndex()]?.height ?? 0, ...ngDevMode ? [{ debugName: "currentSnapHeight" }] : /* istanbul ignore next */ []);
|
|
387
|
+
minimumSnapHeight = computed(() => this.normalizedSnapPoints()[0]?.height ?? 0, ...ngDevMode ? [{ debugName: "minimumSnapHeight" }] : /* istanbul ignore next */ []);
|
|
388
|
+
maximumSnapHeight = computed(() => this.normalizedSnapPoints().at(-1)?.height ?? 0, ...ngDevMode ? [{ debugName: "maximumSnapHeight" }] : /* istanbul ignore next */ []);
|
|
389
|
+
snapValueText = computed(() => `${Math.round(this.currentSnapHeight() / Math.max(1, this.availableSnapHeight()) * 100)}% of available height`, ...ngDevMode ? [{ debugName: "snapValueText" }] : /* istanbul ignore next */ []);
|
|
390
|
+
swiping = signal(false, ...ngDevMode ? [{ debugName: "swiping" }] : /* istanbul ignore next */ []);
|
|
391
|
+
swipeOffset = signal(0, ...ngDevMode ? [{ debugName: "swipeOffset" }] : /* istanbul ignore next */ []);
|
|
392
|
+
swipeProgress = signal(0, ...ngDevMode ? [{ debugName: "swipeProgress" }] : /* istanbul ignore next */ []);
|
|
393
|
+
swipeTransform = computed(() => {
|
|
394
|
+
const offset = this.swipeOffset();
|
|
395
|
+
if (!this.visible() || !offset) return null;
|
|
396
|
+
return this.position() === "left" || this.position() === "right" ? `translate3d(${offset}px, 0, 0)` : `translate3d(0, ${offset}px, 0)`;
|
|
397
|
+
}, ...ngDevMode ? [{ debugName: "swipeTransform" }] : /* istanbul ignore next */ []);
|
|
398
|
+
swipe = new AerisDrawerSwipe(this.document, (offset, progress, dragging) => {
|
|
399
|
+
if (!dragging) this.snapDragHeight.set(null);
|
|
400
|
+
if (this.snapEnabled()) {
|
|
401
|
+
this.swipeOffset.set(0);
|
|
402
|
+
this.snapDragHeight.set(dragging ? Math.max(1, this.snapStartHeight - offset) : null);
|
|
403
|
+
this.swiping.set(dragging);
|
|
404
|
+
this.swipeProgress.set(dragging && this.swipeToClose() ? Math.max(0, (this.minimumSnapHeight() - (this.snapStartHeight - offset)) / Math.max(1, this.minimumSnapHeight())) : 0);
|
|
405
|
+
return;
|
|
406
|
+
}
|
|
407
|
+
this.swipeOffset.set(offset);
|
|
408
|
+
this.swiping.set(dragging);
|
|
409
|
+
if (this.visible()) this.swipeProgress.set(progress);
|
|
410
|
+
}, (event) => this.hide(event, "swipe"), () => {
|
|
411
|
+
if (!this.snapEnabled()) return null;
|
|
412
|
+
this.snapStartHeight = this.drawerPanel()?.nativeElement.getBoundingClientRect().height || this.currentSnapHeight();
|
|
413
|
+
return {
|
|
414
|
+
heights: this.normalizedSnapPoints().map((point) => point.height),
|
|
415
|
+
dismissible: this.swipeToClose(),
|
|
416
|
+
settled: (index) => {
|
|
417
|
+
const point = this.normalizedSnapPoints()[index];
|
|
418
|
+
if (point) this.activeSnapPoint.set(point.value);
|
|
419
|
+
}
|
|
420
|
+
};
|
|
421
|
+
});
|
|
422
|
+
drawerPanel = viewChild("drawerPanel", ...ngDevMode ? [{ debugName: "drawerPanel" }] : /* istanbul ignore next */ []);
|
|
423
|
+
overlayPortal = viewChild(ɵAerisAppendTo, ...ngDevMode ? [{ debugName: "overlayPortal" }] : /* istanbul ignore next */ []);
|
|
424
|
+
rendered = signal(false, ...ngDevMode ? [{ debugName: "rendered" }] : /* istanbul ignore next */ []);
|
|
425
|
+
animationState = computed(() => this.visible() ? "open" : "closed", ...ngDevMode ? [{ debugName: "animationState" }] : /* istanbul ignore next */ []);
|
|
426
|
+
headerTemplate = contentChild(AerisDrawerHeaderTemplate, ...ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []);
|
|
427
|
+
footerTemplate = contentChild(AerisDrawerFooterTemplate, ...ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []);
|
|
428
|
+
projectedCloseIconTemplate = contentChild(AerisDrawerCloseIconTemplate, ...ngDevMode ? [{ debugName: "projectedCloseIconTemplate" }] : /* istanbul ignore next */ []);
|
|
429
|
+
headlessTemplate = contentChild(AerisDrawerHeadlessTemplate, ...ngDevMode ? [{ debugName: "headlessTemplate" }] : /* istanbul ignore next */ []);
|
|
430
|
+
templateContext = computed(() => ({
|
|
431
|
+
$implicit: this,
|
|
432
|
+
close: (event) => this.hide(event ?? null, "api"),
|
|
433
|
+
position: this.position(),
|
|
434
|
+
maximized: this.maximized()
|
|
435
|
+
}), ...ngDevMode ? [{ debugName: "templateContext" }] : /* istanbul ignore next */ []);
|
|
436
|
+
hasHeader = computed(() => !!this.header() || !!this.headerTemplate() || this.closable() || this.maximizable(), ...ngDevMode ? [{ debugName: "hasHeader" }] : /* istanbul ignore next */ []);
|
|
437
|
+
computedAriaLabelledBy = computed(() => {
|
|
438
|
+
const labelledBy = this.ariaLabelledBy();
|
|
439
|
+
if (labelledBy) return labelledBy;
|
|
440
|
+
if (this.ariaLabel()) return null;
|
|
441
|
+
return this.hasHeader() && !this.headlessTemplate() ? this.titleId : null;
|
|
442
|
+
}, ...ngDevMode ? [{ debugName: "computedAriaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
443
|
+
visible = model(false, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
444
|
+
maximized = model(false, ...ngDevMode ? [{ debugName: "maximized" }] : /* istanbul ignore next */ []);
|
|
445
|
+
activeSnapPoint = model(null, ...ngDevMode ? [{ debugName: "activeSnapPoint" }] : /* istanbul ignore next */ []);
|
|
446
|
+
snapPoints = input([], ...ngDevMode ? [{ debugName: "snapPoints" }] : /* istanbul ignore next */ []);
|
|
447
|
+
snapAriaLabel = input("Resize drawer", ...ngDevMode ? [{ debugName: "snapAriaLabel" }] : /* istanbul ignore next */ []);
|
|
448
|
+
header = input("", ...ngDevMode ? [{ debugName: "header" }] : /* istanbul ignore next */ []);
|
|
449
|
+
appendTo = input(...ngDevMode ? [void 0, { debugName: "appendTo" }] : /* istanbul ignore next */ []);
|
|
450
|
+
position = input("right", ...ngDevMode ? [{ debugName: "position" }] : /* istanbul ignore next */ []);
|
|
451
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
452
|
+
modal = input(true, {
|
|
453
|
+
...ngDevMode ? { debugName: "modal" } : /* istanbul ignore next */ {},
|
|
454
|
+
transform: booleanAttribute
|
|
455
|
+
});
|
|
456
|
+
backdrop = input(true, {
|
|
457
|
+
...ngDevMode ? { debugName: "backdrop" } : /* istanbul ignore next */ {},
|
|
458
|
+
transform: booleanAttribute
|
|
459
|
+
});
|
|
460
|
+
backdropBlur = input(true, {
|
|
461
|
+
...ngDevMode ? { debugName: "backdropBlur" } : /* istanbul ignore next */ {},
|
|
462
|
+
transform: booleanAttribute
|
|
463
|
+
});
|
|
464
|
+
backdropBlurAmount = input("", ...ngDevMode ? [{ debugName: "backdropBlurAmount" }] : /* istanbul ignore next */ []);
|
|
465
|
+
closeOnBackdropClick = input(false, {
|
|
466
|
+
...ngDevMode ? { debugName: "closeOnBackdropClick" } : /* istanbul ignore next */ {},
|
|
467
|
+
transform: booleanAttribute
|
|
468
|
+
});
|
|
469
|
+
closeOnEscape = input(true, {
|
|
470
|
+
...ngDevMode ? { debugName: "closeOnEscape" } : /* istanbul ignore next */ {},
|
|
471
|
+
transform: booleanAttribute
|
|
472
|
+
});
|
|
473
|
+
swipeToClose = input(false, {
|
|
474
|
+
...ngDevMode ? { debugName: "swipeToClose" } : /* istanbul ignore next */ {},
|
|
475
|
+
transform: booleanAttribute
|
|
476
|
+
});
|
|
477
|
+
swipeHandle = input(false, {
|
|
478
|
+
...ngDevMode ? { debugName: "swipeHandle" } : /* istanbul ignore next */ {},
|
|
479
|
+
transform: booleanAttribute
|
|
480
|
+
});
|
|
481
|
+
swipeThreshold = input(.35, ...ngDevMode ? [{ debugName: "swipeThreshold" }] : /* istanbul ignore next */ []);
|
|
482
|
+
closable = input(true, {
|
|
483
|
+
...ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {},
|
|
484
|
+
transform: booleanAttribute
|
|
485
|
+
});
|
|
486
|
+
maximizable = input(false, {
|
|
487
|
+
...ngDevMode ? { debugName: "maximizable" } : /* istanbul ignore next */ {},
|
|
488
|
+
transform: booleanAttribute
|
|
489
|
+
});
|
|
490
|
+
blockScroll = input(true, {
|
|
491
|
+
...ngDevMode ? { debugName: "blockScroll" } : /* istanbul ignore next */ {},
|
|
492
|
+
transform: booleanAttribute
|
|
493
|
+
});
|
|
494
|
+
focusTrap = input(true, {
|
|
495
|
+
...ngDevMode ? { debugName: "focusTrap" } : /* istanbul ignore next */ {},
|
|
496
|
+
transform: booleanAttribute
|
|
497
|
+
});
|
|
498
|
+
restoreFocus = input(true, {
|
|
499
|
+
...ngDevMode ? { debugName: "restoreFocus" } : /* istanbul ignore next */ {},
|
|
500
|
+
transform: booleanAttribute
|
|
501
|
+
});
|
|
502
|
+
autoFocus = input(true, {
|
|
503
|
+
...ngDevMode ? { debugName: "autoFocus" } : /* istanbul ignore next */ {},
|
|
504
|
+
transform: booleanAttribute
|
|
505
|
+
});
|
|
506
|
+
initialFocus = input("", ...ngDevMode ? [{ debugName: "initialFocus" }] : /* istanbul ignore next */ []);
|
|
507
|
+
width = input("", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
508
|
+
height = input("", ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
509
|
+
maxWidth = input("", ...ngDevMode ? [{ debugName: "maxWidth" }] : /* istanbul ignore next */ []);
|
|
510
|
+
maxHeight = input("", ...ngDevMode ? [{ debugName: "maxHeight" }] : /* istanbul ignore next */ []);
|
|
511
|
+
mobileWidth = input("", ...ngDevMode ? [{ debugName: "mobileWidth" }] : /* istanbul ignore next */ []);
|
|
512
|
+
mobileHeight = input("", ...ngDevMode ? [{ debugName: "mobileHeight" }] : /* istanbul ignore next */ []);
|
|
513
|
+
mobileFullScreen = input(false, {
|
|
514
|
+
...ngDevMode ? { debugName: "mobileFullScreen" } : /* istanbul ignore next */ {},
|
|
515
|
+
transform: booleanAttribute
|
|
516
|
+
});
|
|
517
|
+
footerLayout = input("responsive", ...ngDevMode ? [{ debugName: "footerLayout" }] : /* istanbul ignore next */ []);
|
|
518
|
+
closeAriaLabel = input("Close drawer", ...ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []);
|
|
519
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
520
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
521
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
522
|
+
opened = output();
|
|
523
|
+
closed = output();
|
|
524
|
+
id = `aeris-drawer-${nextDrawerId++}`;
|
|
525
|
+
titleId = `${this.id}-title`;
|
|
526
|
+
constructor() {
|
|
527
|
+
afterRenderEffect(() => {
|
|
528
|
+
if (!this.visible() || !this.snapEnabled() || this.swiping()) return;
|
|
529
|
+
this.availableSnapHeight();
|
|
530
|
+
this.currentSnapHeight();
|
|
531
|
+
const active = this.document.activeElement;
|
|
532
|
+
if (active instanceof HTMLElement && this.drawerPanel()?.nativeElement.contains(active) && active.matches("input, textarea, select, [contenteditable=\"true\"]")) active.scrollIntoView?.({
|
|
533
|
+
block: "nearest",
|
|
534
|
+
inline: "nearest"
|
|
535
|
+
});
|
|
536
|
+
});
|
|
537
|
+
this.destroyRef.onDestroy(() => {
|
|
538
|
+
this.swipe.cancel();
|
|
539
|
+
this.clearRenderTimer();
|
|
540
|
+
ɵunregisterAerisOverlay(this.document, this.overlayToken);
|
|
541
|
+
this.unlockScroll();
|
|
542
|
+
});
|
|
543
|
+
effect(() => {
|
|
544
|
+
const visible = this.visible();
|
|
545
|
+
if (visible === this.previousVisible) return;
|
|
546
|
+
if (visible) {
|
|
547
|
+
this.clearRenderTimer();
|
|
548
|
+
this.rendered.set(true);
|
|
549
|
+
this.handleShown();
|
|
550
|
+
} else {
|
|
551
|
+
this.handleHidden();
|
|
552
|
+
this.scheduleRenderRemoval();
|
|
553
|
+
}
|
|
554
|
+
this.previousVisible = visible;
|
|
555
|
+
});
|
|
556
|
+
effect((onCleanup) => {
|
|
557
|
+
if (!this.visible()) return;
|
|
558
|
+
const keydown = (event) => this.handleDocumentKeydown(event);
|
|
559
|
+
this.document.addEventListener("keydown", keydown);
|
|
560
|
+
onCleanup(() => this.document.removeEventListener("keydown", keydown));
|
|
561
|
+
});
|
|
562
|
+
effect((onCleanup) => {
|
|
563
|
+
if (!this.visible() || this.position() !== "bottom" || !this.snapPoints().length) return;
|
|
564
|
+
const panel = this.drawerPanel()?.nativeElement;
|
|
565
|
+
const view = this.document.defaultView;
|
|
566
|
+
if (!panel || !view) return;
|
|
567
|
+
let previousWidth = 0;
|
|
568
|
+
const measure = () => {
|
|
569
|
+
const viewport = aerisInternalViewportBounds(view);
|
|
570
|
+
const container = panel.parentElement?.getBoundingClientRect();
|
|
571
|
+
const height = Math.min(viewport.height, container?.height || viewport.height);
|
|
572
|
+
const width = container?.width || viewport.width;
|
|
573
|
+
if (height !== untracked(this.availableSnapHeight) || width !== previousWidth) {
|
|
574
|
+
untracked(() => this.swipe.cancel());
|
|
575
|
+
this.availableSnapHeight.set(height);
|
|
576
|
+
previousWidth = width;
|
|
577
|
+
}
|
|
578
|
+
};
|
|
579
|
+
const frame = aerisInternalCreateFrameScheduler(measure);
|
|
580
|
+
measure();
|
|
581
|
+
const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(frame.schedule);
|
|
582
|
+
if (panel.parentElement) observer?.observe(panel.parentElement);
|
|
583
|
+
view.addEventListener("resize", frame.schedule);
|
|
584
|
+
view.visualViewport?.addEventListener("resize", frame.schedule);
|
|
585
|
+
onCleanup(() => {
|
|
586
|
+
frame.cancel();
|
|
587
|
+
observer?.disconnect();
|
|
588
|
+
view.removeEventListener("resize", frame.schedule);
|
|
589
|
+
view.visualViewport?.removeEventListener("resize", frame.schedule);
|
|
590
|
+
});
|
|
591
|
+
});
|
|
592
|
+
effect((onCleanup) => {
|
|
593
|
+
const snapping = this.snapEnabled();
|
|
594
|
+
this.activeSnapPoint();
|
|
595
|
+
this.snapPoints();
|
|
596
|
+
const enabled = this.visible() && (this.swipeToClose() || snapping) && !this.maximized();
|
|
597
|
+
const position = this.position();
|
|
598
|
+
const panel = this.drawerPanel()?.nativeElement;
|
|
599
|
+
if (!enabled || !panel) return;
|
|
600
|
+
const view = this.document.defaultView;
|
|
601
|
+
const cancel = () => this.swipe.cancel();
|
|
602
|
+
const visibility = () => {
|
|
603
|
+
if (this.document.hidden) cancel();
|
|
604
|
+
};
|
|
605
|
+
const observer = typeof ResizeObserver === "undefined" ? null : new ResizeObserver(cancel);
|
|
606
|
+
const stopTouch = this.swipe.listenForTouch(panel, position, () => this.swipeThreshold(), () => this.visible() && (this.swipeToClose() || this.snapEnabled()) && !this.maximized() && ɵisTopmostAerisOverlay(this.document, this.overlayToken));
|
|
607
|
+
if (!snapping) observer?.observe(panel);
|
|
608
|
+
view?.addEventListener("resize", cancel);
|
|
609
|
+
view?.addEventListener("blur", cancel);
|
|
610
|
+
view?.visualViewport?.addEventListener("resize", cancel);
|
|
611
|
+
this.document.addEventListener("visibilitychange", visibility);
|
|
612
|
+
onCleanup(() => {
|
|
613
|
+
this.swipe.cancel();
|
|
614
|
+
stopTouch();
|
|
615
|
+
observer?.disconnect();
|
|
616
|
+
view?.removeEventListener("resize", cancel);
|
|
617
|
+
view?.removeEventListener("blur", cancel);
|
|
618
|
+
view?.visualViewport?.removeEventListener("resize", cancel);
|
|
619
|
+
this.document.removeEventListener("visibilitychange", visibility);
|
|
620
|
+
});
|
|
621
|
+
});
|
|
622
|
+
}
|
|
623
|
+
startSwipe(event) {
|
|
624
|
+
if (!this.visible() || !(this.swipeToClose() || this.snapEnabled()) || this.maximized() || !ɵisTopmostAerisOverlay(this.document, this.overlayToken)) return;
|
|
625
|
+
const bounds = this.drawerPanel()?.nativeElement.getBoundingClientRect();
|
|
626
|
+
if (!bounds) return;
|
|
627
|
+
this.swipe.start(event, this.position(), this.position() === "left" || this.position() === "right" ? bounds.width : bounds.height);
|
|
628
|
+
}
|
|
629
|
+
show(originalEvent = null) {
|
|
630
|
+
if (this.visible()) return;
|
|
631
|
+
this.previouslyFocused.set(this.activeHtmlElement());
|
|
632
|
+
this.pendingOriginalEvent = originalEvent;
|
|
633
|
+
this.visible.set(true);
|
|
634
|
+
}
|
|
635
|
+
hide(originalEvent = null, reason = "api") {
|
|
636
|
+
if (!this.visible()) return;
|
|
637
|
+
this.pendingOriginalEvent = originalEvent;
|
|
638
|
+
this.pendingCloseReason = reason;
|
|
639
|
+
this.visible.set(false);
|
|
640
|
+
}
|
|
641
|
+
toggle(originalEvent = null) {
|
|
642
|
+
if (this.visible()) this.hide(originalEvent);
|
|
643
|
+
else this.show(originalEvent);
|
|
644
|
+
}
|
|
645
|
+
focus(options) {
|
|
646
|
+
this.focusInitial(options);
|
|
647
|
+
}
|
|
648
|
+
toggleMaximized() {
|
|
649
|
+
this.maximized.update((value) => !value);
|
|
650
|
+
}
|
|
651
|
+
maximize() {
|
|
652
|
+
this.maximized.set(true);
|
|
653
|
+
}
|
|
654
|
+
restore() {
|
|
655
|
+
this.maximized.set(false);
|
|
656
|
+
}
|
|
657
|
+
snapTo(point) {
|
|
658
|
+
if (!this.snapEnabled()) return;
|
|
659
|
+
const requested = normalizeDrawerSnapPoints([point], this.availableSnapHeight())[0];
|
|
660
|
+
const match = requested && this.normalizedSnapPoints().find((candidate) => Math.abs(candidate.height - requested.height) < .5);
|
|
661
|
+
if (!match) return;
|
|
662
|
+
this.swipe.cancel();
|
|
663
|
+
this.activeSnapPoint.set(match.value);
|
|
664
|
+
}
|
|
665
|
+
handleSnapKeydown(event) {
|
|
666
|
+
if (!this.snapEnabled() || !ɵisTopmostAerisOverlay(this.document, this.overlayToken)) return;
|
|
667
|
+
const points = this.normalizedSnapPoints();
|
|
668
|
+
let index = this.snapIndex();
|
|
669
|
+
switch (event.key) {
|
|
670
|
+
case "ArrowUp":
|
|
671
|
+
case "PageUp":
|
|
672
|
+
index++;
|
|
673
|
+
break;
|
|
674
|
+
case "ArrowDown":
|
|
675
|
+
case "PageDown":
|
|
676
|
+
index--;
|
|
677
|
+
break;
|
|
678
|
+
case "Home":
|
|
679
|
+
index = 0;
|
|
680
|
+
break;
|
|
681
|
+
case "End":
|
|
682
|
+
index = points.length - 1;
|
|
683
|
+
break;
|
|
684
|
+
default: return;
|
|
685
|
+
}
|
|
686
|
+
event.preventDefault();
|
|
687
|
+
const point = points[Math.max(0, Math.min(points.length - 1, index))];
|
|
688
|
+
if (point) this.snapTo(point.value);
|
|
689
|
+
}
|
|
690
|
+
handlePanelKeydown(event) {
|
|
691
|
+
if (!this.visible()) return;
|
|
692
|
+
if (event.key !== "Tab" || !this.focusTrap()) return;
|
|
693
|
+
this.trapTab(event);
|
|
694
|
+
}
|
|
695
|
+
handleDocumentKeydown(event) {
|
|
696
|
+
if (!this.visible() || event.key !== "Escape" || !this.closeOnEscape() || !ɵisTopmostAerisOverlay(this.document, this.overlayToken)) return;
|
|
697
|
+
event.preventDefault();
|
|
698
|
+
this.hide(event, "escape");
|
|
699
|
+
}
|
|
700
|
+
handleOverlayClick(event) {
|
|
701
|
+
if (!this.visible()) return;
|
|
702
|
+
if (event.target !== event.currentTarget) return;
|
|
703
|
+
event.preventDefault();
|
|
704
|
+
event.stopPropagation();
|
|
705
|
+
if (!this.closeOnBackdropClick()) return;
|
|
706
|
+
this.hide(event, "mask");
|
|
707
|
+
}
|
|
708
|
+
scheduleRenderRemoval() {
|
|
709
|
+
this.clearRenderTimer();
|
|
710
|
+
this.closeRenderTimer = globalThis.setTimeout(() => {
|
|
711
|
+
if (!this.visible()) {
|
|
712
|
+
this.swipeProgress.set(0);
|
|
713
|
+
this.overlayPortal()?.restore();
|
|
714
|
+
this.rendered.set(false);
|
|
715
|
+
}
|
|
716
|
+
this.closeRenderTimer = void 0;
|
|
717
|
+
}, DRAWER_EXIT_DURATION_MS);
|
|
718
|
+
}
|
|
719
|
+
clearRenderTimer() {
|
|
720
|
+
if (!this.closeRenderTimer) return;
|
|
721
|
+
globalThis.clearTimeout(this.closeRenderTimer);
|
|
722
|
+
this.closeRenderTimer = void 0;
|
|
723
|
+
}
|
|
724
|
+
handleShown() {
|
|
725
|
+
this.swipe.cancel();
|
|
726
|
+
this.previouslyFocused.set(this.activeHtmlElement());
|
|
727
|
+
ɵregisterAerisOverlay(this.document, this.overlayToken, () => {
|
|
728
|
+
if (!this.visible() || !this.closeOnEscape()) return false;
|
|
729
|
+
this.hide();
|
|
730
|
+
return true;
|
|
731
|
+
});
|
|
732
|
+
this.lockScroll();
|
|
733
|
+
const event = this.visibilityEvent(true, "api", this.pendingOriginalEvent);
|
|
734
|
+
this.pendingOriginalEvent = null;
|
|
735
|
+
this.opened.emit(event);
|
|
736
|
+
if (!this.autoFocus()) return;
|
|
737
|
+
queueMicrotask(() => this.focusInitial());
|
|
738
|
+
}
|
|
739
|
+
handleHidden() {
|
|
740
|
+
this.swipe.cancel();
|
|
741
|
+
const restoreFocus = ɵisTopmostAerisOverlay(this.document, this.overlayToken);
|
|
742
|
+
ɵunregisterAerisOverlay(this.document, this.overlayToken);
|
|
743
|
+
this.unlockScroll();
|
|
744
|
+
const event = this.visibilityEvent(false, this.pendingCloseReason, this.pendingOriginalEvent);
|
|
745
|
+
this.pendingOriginalEvent = null;
|
|
746
|
+
this.pendingCloseReason = "api";
|
|
747
|
+
this.closed.emit(event);
|
|
748
|
+
if (!this.restoreFocus() || !restoreFocus) return;
|
|
749
|
+
queueMicrotask(() => {
|
|
750
|
+
if (!this.visible()) this.previouslyFocused()?.focus();
|
|
751
|
+
});
|
|
752
|
+
}
|
|
753
|
+
lockScroll() {
|
|
754
|
+
if (!this.modal() || !this.blockScroll() || this.scrollLocked) return;
|
|
755
|
+
ɵlockAerisDocumentScroll(this.document);
|
|
756
|
+
this.scrollLocked = true;
|
|
757
|
+
}
|
|
758
|
+
unlockScroll() {
|
|
759
|
+
if (!this.scrollLocked) return;
|
|
760
|
+
ɵunlockAerisDocumentScroll(this.document);
|
|
761
|
+
this.scrollLocked = false;
|
|
762
|
+
}
|
|
763
|
+
focusInitial(options) {
|
|
764
|
+
if (!this.visible()) return;
|
|
765
|
+
const panel = this.drawerPanel()?.nativeElement;
|
|
766
|
+
if (!panel) return;
|
|
767
|
+
aerisInternalFocusInitialElement(panel, this.initialFocus(), options, DRAWER_FOCUS_OPTIONS);
|
|
768
|
+
}
|
|
769
|
+
trapTab(event) {
|
|
770
|
+
const panel = this.drawerPanel()?.nativeElement;
|
|
771
|
+
if (!panel) return;
|
|
772
|
+
aerisInternalTrapTabFocus(event, panel, this.activeHtmlElement(), DRAWER_FOCUS_OPTIONS);
|
|
773
|
+
}
|
|
774
|
+
activeHtmlElement() {
|
|
775
|
+
const active = this.document.activeElement;
|
|
776
|
+
return active instanceof HTMLElement ? active : null;
|
|
777
|
+
}
|
|
778
|
+
visibilityEvent(visible, reason, originalEvent) {
|
|
779
|
+
return {
|
|
780
|
+
originalEvent,
|
|
781
|
+
visible,
|
|
782
|
+
reason
|
|
783
|
+
};
|
|
784
|
+
}
|
|
785
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
786
|
+
minVersion: "12.0.0",
|
|
787
|
+
version: "22.2.3",
|
|
788
|
+
ngImport: i0,
|
|
789
|
+
type: AerisDrawer,
|
|
790
|
+
deps: [],
|
|
791
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
792
|
+
});
|
|
793
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
794
|
+
minVersion: "17.0.0",
|
|
795
|
+
version: "22.2.3",
|
|
796
|
+
type: AerisDrawer,
|
|
797
|
+
isStandalone: true,
|
|
798
|
+
selector: "aeris-drawer",
|
|
799
|
+
inputs: {
|
|
800
|
+
closeIconTemplate: {
|
|
801
|
+
classPropertyName: "closeIconTemplate",
|
|
802
|
+
publicName: "closeIconTemplate",
|
|
803
|
+
isSignal: true,
|
|
804
|
+
isRequired: false,
|
|
805
|
+
transformFunction: null
|
|
806
|
+
},
|
|
807
|
+
maximizeIconTemplate: {
|
|
808
|
+
classPropertyName: "maximizeIconTemplate",
|
|
809
|
+
publicName: "maximizeIconTemplate",
|
|
810
|
+
isSignal: true,
|
|
811
|
+
isRequired: false,
|
|
812
|
+
transformFunction: null
|
|
813
|
+
},
|
|
814
|
+
visible: {
|
|
815
|
+
classPropertyName: "visible",
|
|
816
|
+
publicName: "visible",
|
|
817
|
+
isSignal: true,
|
|
818
|
+
isRequired: false,
|
|
819
|
+
transformFunction: null
|
|
820
|
+
},
|
|
821
|
+
maximized: {
|
|
822
|
+
classPropertyName: "maximized",
|
|
823
|
+
publicName: "maximized",
|
|
824
|
+
isSignal: true,
|
|
825
|
+
isRequired: false,
|
|
826
|
+
transformFunction: null
|
|
827
|
+
},
|
|
828
|
+
activeSnapPoint: {
|
|
829
|
+
classPropertyName: "activeSnapPoint",
|
|
830
|
+
publicName: "activeSnapPoint",
|
|
831
|
+
isSignal: true,
|
|
832
|
+
isRequired: false,
|
|
833
|
+
transformFunction: null
|
|
834
|
+
},
|
|
835
|
+
snapPoints: {
|
|
836
|
+
classPropertyName: "snapPoints",
|
|
837
|
+
publicName: "snapPoints",
|
|
838
|
+
isSignal: true,
|
|
839
|
+
isRequired: false,
|
|
840
|
+
transformFunction: null
|
|
841
|
+
},
|
|
842
|
+
snapAriaLabel: {
|
|
843
|
+
classPropertyName: "snapAriaLabel",
|
|
844
|
+
publicName: "snapAriaLabel",
|
|
845
|
+
isSignal: true,
|
|
846
|
+
isRequired: false,
|
|
847
|
+
transformFunction: null
|
|
848
|
+
},
|
|
849
|
+
header: {
|
|
850
|
+
classPropertyName: "header",
|
|
851
|
+
publicName: "header",
|
|
852
|
+
isSignal: true,
|
|
853
|
+
isRequired: false,
|
|
854
|
+
transformFunction: null
|
|
855
|
+
},
|
|
856
|
+
appendTo: {
|
|
857
|
+
classPropertyName: "appendTo",
|
|
858
|
+
publicName: "appendTo",
|
|
859
|
+
isSignal: true,
|
|
860
|
+
isRequired: false,
|
|
861
|
+
transformFunction: null
|
|
862
|
+
},
|
|
863
|
+
position: {
|
|
864
|
+
classPropertyName: "position",
|
|
865
|
+
publicName: "position",
|
|
866
|
+
isSignal: true,
|
|
867
|
+
isRequired: false,
|
|
868
|
+
transformFunction: null
|
|
869
|
+
},
|
|
870
|
+
size: {
|
|
871
|
+
classPropertyName: "size",
|
|
872
|
+
publicName: "size",
|
|
873
|
+
isSignal: true,
|
|
874
|
+
isRequired: false,
|
|
875
|
+
transformFunction: null
|
|
876
|
+
},
|
|
877
|
+
modal: {
|
|
878
|
+
classPropertyName: "modal",
|
|
879
|
+
publicName: "modal",
|
|
880
|
+
isSignal: true,
|
|
881
|
+
isRequired: false,
|
|
882
|
+
transformFunction: null
|
|
883
|
+
},
|
|
884
|
+
backdrop: {
|
|
885
|
+
classPropertyName: "backdrop",
|
|
886
|
+
publicName: "backdrop",
|
|
887
|
+
isSignal: true,
|
|
888
|
+
isRequired: false,
|
|
889
|
+
transformFunction: null
|
|
890
|
+
},
|
|
891
|
+
backdropBlur: {
|
|
892
|
+
classPropertyName: "backdropBlur",
|
|
893
|
+
publicName: "backdropBlur",
|
|
894
|
+
isSignal: true,
|
|
895
|
+
isRequired: false,
|
|
896
|
+
transformFunction: null
|
|
897
|
+
},
|
|
898
|
+
backdropBlurAmount: {
|
|
899
|
+
classPropertyName: "backdropBlurAmount",
|
|
900
|
+
publicName: "backdropBlurAmount",
|
|
901
|
+
isSignal: true,
|
|
902
|
+
isRequired: false,
|
|
903
|
+
transformFunction: null
|
|
904
|
+
},
|
|
905
|
+
closeOnBackdropClick: {
|
|
906
|
+
classPropertyName: "closeOnBackdropClick",
|
|
907
|
+
publicName: "closeOnBackdropClick",
|
|
908
|
+
isSignal: true,
|
|
909
|
+
isRequired: false,
|
|
910
|
+
transformFunction: null
|
|
911
|
+
},
|
|
912
|
+
closeOnEscape: {
|
|
913
|
+
classPropertyName: "closeOnEscape",
|
|
914
|
+
publicName: "closeOnEscape",
|
|
915
|
+
isSignal: true,
|
|
916
|
+
isRequired: false,
|
|
917
|
+
transformFunction: null
|
|
918
|
+
},
|
|
919
|
+
swipeToClose: {
|
|
920
|
+
classPropertyName: "swipeToClose",
|
|
921
|
+
publicName: "swipeToClose",
|
|
922
|
+
isSignal: true,
|
|
923
|
+
isRequired: false,
|
|
924
|
+
transformFunction: null
|
|
925
|
+
},
|
|
926
|
+
swipeHandle: {
|
|
927
|
+
classPropertyName: "swipeHandle",
|
|
928
|
+
publicName: "swipeHandle",
|
|
929
|
+
isSignal: true,
|
|
930
|
+
isRequired: false,
|
|
931
|
+
transformFunction: null
|
|
932
|
+
},
|
|
933
|
+
swipeThreshold: {
|
|
934
|
+
classPropertyName: "swipeThreshold",
|
|
935
|
+
publicName: "swipeThreshold",
|
|
936
|
+
isSignal: true,
|
|
937
|
+
isRequired: false,
|
|
938
|
+
transformFunction: null
|
|
939
|
+
},
|
|
940
|
+
closable: {
|
|
941
|
+
classPropertyName: "closable",
|
|
942
|
+
publicName: "closable",
|
|
943
|
+
isSignal: true,
|
|
944
|
+
isRequired: false,
|
|
945
|
+
transformFunction: null
|
|
946
|
+
},
|
|
947
|
+
maximizable: {
|
|
948
|
+
classPropertyName: "maximizable",
|
|
949
|
+
publicName: "maximizable",
|
|
950
|
+
isSignal: true,
|
|
951
|
+
isRequired: false,
|
|
952
|
+
transformFunction: null
|
|
953
|
+
},
|
|
954
|
+
blockScroll: {
|
|
955
|
+
classPropertyName: "blockScroll",
|
|
956
|
+
publicName: "blockScroll",
|
|
957
|
+
isSignal: true,
|
|
958
|
+
isRequired: false,
|
|
959
|
+
transformFunction: null
|
|
960
|
+
},
|
|
961
|
+
focusTrap: {
|
|
962
|
+
classPropertyName: "focusTrap",
|
|
963
|
+
publicName: "focusTrap",
|
|
964
|
+
isSignal: true,
|
|
965
|
+
isRequired: false,
|
|
966
|
+
transformFunction: null
|
|
967
|
+
},
|
|
968
|
+
restoreFocus: {
|
|
969
|
+
classPropertyName: "restoreFocus",
|
|
970
|
+
publicName: "restoreFocus",
|
|
971
|
+
isSignal: true,
|
|
972
|
+
isRequired: false,
|
|
973
|
+
transformFunction: null
|
|
974
|
+
},
|
|
975
|
+
autoFocus: {
|
|
976
|
+
classPropertyName: "autoFocus",
|
|
977
|
+
publicName: "autoFocus",
|
|
978
|
+
isSignal: true,
|
|
979
|
+
isRequired: false,
|
|
980
|
+
transformFunction: null
|
|
981
|
+
},
|
|
982
|
+
initialFocus: {
|
|
983
|
+
classPropertyName: "initialFocus",
|
|
984
|
+
publicName: "initialFocus",
|
|
985
|
+
isSignal: true,
|
|
986
|
+
isRequired: false,
|
|
987
|
+
transformFunction: null
|
|
988
|
+
},
|
|
989
|
+
width: {
|
|
990
|
+
classPropertyName: "width",
|
|
991
|
+
publicName: "width",
|
|
992
|
+
isSignal: true,
|
|
993
|
+
isRequired: false,
|
|
994
|
+
transformFunction: null
|
|
995
|
+
},
|
|
996
|
+
height: {
|
|
997
|
+
classPropertyName: "height",
|
|
998
|
+
publicName: "height",
|
|
999
|
+
isSignal: true,
|
|
1000
|
+
isRequired: false,
|
|
1001
|
+
transformFunction: null
|
|
1002
|
+
},
|
|
1003
|
+
maxWidth: {
|
|
1004
|
+
classPropertyName: "maxWidth",
|
|
1005
|
+
publicName: "maxWidth",
|
|
1006
|
+
isSignal: true,
|
|
1007
|
+
isRequired: false,
|
|
1008
|
+
transformFunction: null
|
|
1009
|
+
},
|
|
1010
|
+
maxHeight: {
|
|
1011
|
+
classPropertyName: "maxHeight",
|
|
1012
|
+
publicName: "maxHeight",
|
|
1013
|
+
isSignal: true,
|
|
1014
|
+
isRequired: false,
|
|
1015
|
+
transformFunction: null
|
|
1016
|
+
},
|
|
1017
|
+
mobileWidth: {
|
|
1018
|
+
classPropertyName: "mobileWidth",
|
|
1019
|
+
publicName: "mobileWidth",
|
|
1020
|
+
isSignal: true,
|
|
1021
|
+
isRequired: false,
|
|
1022
|
+
transformFunction: null
|
|
1023
|
+
},
|
|
1024
|
+
mobileHeight: {
|
|
1025
|
+
classPropertyName: "mobileHeight",
|
|
1026
|
+
publicName: "mobileHeight",
|
|
1027
|
+
isSignal: true,
|
|
1028
|
+
isRequired: false,
|
|
1029
|
+
transformFunction: null
|
|
1030
|
+
},
|
|
1031
|
+
mobileFullScreen: {
|
|
1032
|
+
classPropertyName: "mobileFullScreen",
|
|
1033
|
+
publicName: "mobileFullScreen",
|
|
1034
|
+
isSignal: true,
|
|
1035
|
+
isRequired: false,
|
|
1036
|
+
transformFunction: null
|
|
1037
|
+
},
|
|
1038
|
+
footerLayout: {
|
|
1039
|
+
classPropertyName: "footerLayout",
|
|
1040
|
+
publicName: "footerLayout",
|
|
1041
|
+
isSignal: true,
|
|
1042
|
+
isRequired: false,
|
|
1043
|
+
transformFunction: null
|
|
1044
|
+
},
|
|
1045
|
+
closeAriaLabel: {
|
|
1046
|
+
classPropertyName: "closeAriaLabel",
|
|
1047
|
+
publicName: "closeAriaLabel",
|
|
1048
|
+
isSignal: true,
|
|
1049
|
+
isRequired: false,
|
|
1050
|
+
transformFunction: null
|
|
1051
|
+
},
|
|
1052
|
+
ariaLabel: {
|
|
1053
|
+
classPropertyName: "ariaLabel",
|
|
1054
|
+
publicName: "ariaLabel",
|
|
1055
|
+
isSignal: true,
|
|
1056
|
+
isRequired: false,
|
|
1057
|
+
transformFunction: null
|
|
1058
|
+
},
|
|
1059
|
+
ariaLabelledBy: {
|
|
1060
|
+
classPropertyName: "ariaLabelledBy",
|
|
1061
|
+
publicName: "ariaLabelledBy",
|
|
1062
|
+
isSignal: true,
|
|
1063
|
+
isRequired: false,
|
|
1064
|
+
transformFunction: null
|
|
1065
|
+
},
|
|
1066
|
+
ariaDescribedBy: {
|
|
1067
|
+
classPropertyName: "ariaDescribedBy",
|
|
1068
|
+
publicName: "ariaDescribedBy",
|
|
1069
|
+
isSignal: true,
|
|
1070
|
+
isRequired: false,
|
|
1071
|
+
transformFunction: null
|
|
1072
|
+
}
|
|
1073
|
+
},
|
|
1074
|
+
outputs: {
|
|
1075
|
+
visible: "visibleChange",
|
|
1076
|
+
maximized: "maximizedChange",
|
|
1077
|
+
activeSnapPoint: "activeSnapPointChange",
|
|
1078
|
+
opened: "opened",
|
|
1079
|
+
closed: "closed"
|
|
1080
|
+
},
|
|
1081
|
+
host: {
|
|
1082
|
+
properties: {
|
|
1083
|
+
"attr.data-open": "visible() || null",
|
|
1084
|
+
"attr.data-block-scroll": "blockScroll() || null"
|
|
1085
|
+
},
|
|
1086
|
+
classAttribute: "aeris-drawer"
|
|
1087
|
+
},
|
|
1088
|
+
queries: [
|
|
1089
|
+
{
|
|
1090
|
+
propertyName: "headerTemplate",
|
|
1091
|
+
first: true,
|
|
1092
|
+
predicate: AerisDrawerHeaderTemplate,
|
|
1093
|
+
descendants: true,
|
|
1094
|
+
isSignal: true
|
|
1095
|
+
},
|
|
1096
|
+
{
|
|
1097
|
+
propertyName: "footerTemplate",
|
|
1098
|
+
first: true,
|
|
1099
|
+
predicate: AerisDrawerFooterTemplate,
|
|
1100
|
+
descendants: true,
|
|
1101
|
+
isSignal: true
|
|
1102
|
+
},
|
|
1103
|
+
{
|
|
1104
|
+
propertyName: "projectedCloseIconTemplate",
|
|
1105
|
+
first: true,
|
|
1106
|
+
predicate: AerisDrawerCloseIconTemplate,
|
|
1107
|
+
descendants: true,
|
|
1108
|
+
isSignal: true
|
|
1109
|
+
},
|
|
1110
|
+
{
|
|
1111
|
+
propertyName: "headlessTemplate",
|
|
1112
|
+
first: true,
|
|
1113
|
+
predicate: AerisDrawerHeadlessTemplate,
|
|
1114
|
+
descendants: true,
|
|
1115
|
+
isSignal: true
|
|
1116
|
+
}
|
|
1117
|
+
],
|
|
1118
|
+
viewQueries: [{
|
|
1119
|
+
propertyName: "drawerPanel",
|
|
1120
|
+
first: true,
|
|
1121
|
+
predicate: ["drawerPanel"],
|
|
1122
|
+
descendants: true,
|
|
1123
|
+
isSignal: true
|
|
1124
|
+
}, {
|
|
1125
|
+
propertyName: "overlayPortal",
|
|
1126
|
+
first: true,
|
|
1127
|
+
predicate: ɵAerisAppendTo,
|
|
1128
|
+
descendants: true,
|
|
1129
|
+
isSignal: true
|
|
1130
|
+
}],
|
|
1131
|
+
ngImport: i0,
|
|
1132
|
+
template: `
|
|
301
1133
|
@if (rendered()) {
|
|
302
1134
|
<div
|
|
303
1135
|
class="aeris-drawer__overlay"
|
|
1136
|
+
[aerisInternalAppendTo]="appendTo()"
|
|
1137
|
+
aerisInternalAppendToDefault="body"
|
|
304
1138
|
[attr.data-modal]="modal() || null"
|
|
305
1139
|
[attr.data-backdrop]="backdrop() || null"
|
|
306
1140
|
[attr.data-backdrop-blur]="backdrop() && backdropBlur() ? true : null"
|
|
@@ -308,11 +1142,14 @@ class AerisDrawer {
|
|
|
308
1142
|
[attr.data-position]="position()"
|
|
309
1143
|
[attr.data-maximized]="maximized() || null"
|
|
310
1144
|
[attr.data-state]="animationState()"
|
|
1145
|
+
[attr.data-swipe-enabled]="(swipeToClose() && !maximized()) || null"
|
|
1146
|
+
[attr.data-swiping]="swiping() || null"
|
|
1147
|
+
[style.--_aeris-drawer-swipe-progress]="swipeProgress()"
|
|
311
1148
|
[attr.aria-hidden]="visible() ? null : 'true'"
|
|
312
1149
|
[attr.inert]="visible() ? null : ''"
|
|
313
|
-
(
|
|
1150
|
+
(click)="handleOverlayClick($event)"
|
|
314
1151
|
>
|
|
315
|
-
<
|
|
1152
|
+
<section
|
|
316
1153
|
#drawerPanel
|
|
317
1154
|
class="aeris-drawer__panel"
|
|
318
1155
|
role="dialog"
|
|
@@ -327,14 +1164,53 @@ class AerisDrawer {
|
|
|
327
1164
|
[attr.data-headless]="headlessTemplate() ? true : null"
|
|
328
1165
|
[attr.data-mobile-fullscreen]="mobileFullScreen() || null"
|
|
329
1166
|
[attr.data-maximized]="maximized() || null"
|
|
1167
|
+
[attr.data-swipe-enabled]="((swipeToClose() || snapEnabled()) && !maximized()) || null"
|
|
1168
|
+
[attr.data-swipe-handle]="
|
|
1169
|
+
((swipeToClose() || snapEnabled()) && swipeHandle() && !maximized()) || null
|
|
1170
|
+
"
|
|
1171
|
+
[attr.data-snap-points]="snapEnabled() || null"
|
|
1172
|
+
[attr.data-swiping]="swiping() || null"
|
|
1173
|
+
[style.transform]="swipeTransform()"
|
|
330
1174
|
[style.--aeris-drawer-width]="width() || null"
|
|
331
1175
|
[style.--aeris-drawer-height]="height() || null"
|
|
332
1176
|
[style.--aeris-drawer-max-width]="maxWidth() || null"
|
|
333
1177
|
[style.--aeris-drawer-max-height]="maxHeight() || null"
|
|
334
1178
|
[style.--aeris-drawer-mobile-width]="mobileWidth() || null"
|
|
335
1179
|
[style.--aeris-drawer-mobile-height]="mobileHeight() || null"
|
|
1180
|
+
[style.height.px]="snapEnabled() ? (snapDragHeight() ?? currentSnapHeight()) : null"
|
|
1181
|
+
[style.max-height.px]="snapEnabled() ? availableSnapHeight() : null"
|
|
336
1182
|
(keydown)="handlePanelKeydown($event)"
|
|
1183
|
+
(pointerdown)="startSwipe($event)"
|
|
1184
|
+
(pointermove)="swipe.move($event)"
|
|
1185
|
+
(pointerup)="swipe.end($event, swipeThreshold())"
|
|
1186
|
+
(pointercancel)="swipe.end($event, swipeThreshold())"
|
|
1187
|
+
(lostpointercapture)="swipe.end($event, swipeThreshold())"
|
|
337
1188
|
>
|
|
1189
|
+
@if (snapEnabled() && swipeHandle()) {
|
|
1190
|
+
<div
|
|
1191
|
+
class="aeris-drawer__swipe-handle"
|
|
1192
|
+
role="slider"
|
|
1193
|
+
tabindex="0"
|
|
1194
|
+
aria-orientation="vertical"
|
|
1195
|
+
[attr.aria-label]="snapAriaLabel()"
|
|
1196
|
+
[attr.aria-valuemin]="minimumSnapHeight()"
|
|
1197
|
+
[attr.aria-valuemax]="maximumSnapHeight()"
|
|
1198
|
+
[attr.aria-valuenow]="currentSnapHeight()"
|
|
1199
|
+
[attr.aria-valuetext]="snapValueText()"
|
|
1200
|
+
(keydown)="handleSnapKeydown($event)"
|
|
1201
|
+
>
|
|
1202
|
+
<span aria-hidden="true"></span>
|
|
1203
|
+
</div>
|
|
1204
|
+
} @else if (swipeToClose() && swipeHandle() && !maximized()) {
|
|
1205
|
+
<button
|
|
1206
|
+
type="button"
|
|
1207
|
+
class="aeris-drawer__swipe-handle"
|
|
1208
|
+
[attr.aria-label]="closeAriaLabel()"
|
|
1209
|
+
(click)="hide($event, 'close-button')"
|
|
1210
|
+
>
|
|
1211
|
+
<span aria-hidden="true"></span>
|
|
1212
|
+
</button>
|
|
1213
|
+
}
|
|
338
1214
|
@if (headlessTemplate(); as headlessTemplateRef) {
|
|
339
1215
|
<ng-container
|
|
340
1216
|
[ngTemplateOutlet]="headlessTemplateRef.template"
|
|
@@ -364,11 +1240,23 @@ class AerisDrawer {
|
|
|
364
1240
|
[attr.aria-pressed]="maximized()"
|
|
365
1241
|
(click)="toggleMaximized()"
|
|
366
1242
|
>
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
1243
|
+
@if (maximizeIconTemplate(); as customIcon) {
|
|
1244
|
+
<span
|
|
1245
|
+
class="aeris-drawer__maximize-icon"
|
|
1246
|
+
[attr.data-maximized]="maximized() || null"
|
|
1247
|
+
aria-hidden="true"
|
|
1248
|
+
data-aeris-custom-icon
|
|
1249
|
+
><ng-container
|
|
1250
|
+
[ngTemplateOutlet]="customIcon"
|
|
1251
|
+
[ngTemplateOutletContext]="templateContext()"
|
|
1252
|
+
/></span>
|
|
1253
|
+
} @else {
|
|
1254
|
+
<span
|
|
1255
|
+
class="aeris-drawer__maximize-icon"
|
|
1256
|
+
[attr.data-maximized]="maximized() || null"
|
|
1257
|
+
aria-hidden="true"
|
|
1258
|
+
></span>
|
|
1259
|
+
}
|
|
372
1260
|
</button>
|
|
373
1261
|
}
|
|
374
1262
|
|
|
@@ -379,13 +1267,21 @@ class AerisDrawer {
|
|
|
379
1267
|
[attr.aria-label]="closeAriaLabel()"
|
|
380
1268
|
(click)="hide($event, 'close-button')"
|
|
381
1269
|
>
|
|
382
|
-
@if (
|
|
383
|
-
<
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
1270
|
+
@if (resolvedCloseIconTemplate(); as closeIconTemplateRef) {
|
|
1271
|
+
<span
|
|
1272
|
+
class="aeris-drawer__close-icon"
|
|
1273
|
+
aria-hidden="true"
|
|
1274
|
+
data-aeris-custom-icon
|
|
1275
|
+
><ng-container
|
|
1276
|
+
[ngTemplateOutlet]="closeIconTemplateRef"
|
|
1277
|
+
[ngTemplateOutletContext]="templateContext()"
|
|
1278
|
+
/></span>
|
|
387
1279
|
} @else {
|
|
388
|
-
<span
|
|
1280
|
+
<span
|
|
1281
|
+
aerisInternalIcon="close"
|
|
1282
|
+
class="aeris-drawer__close-icon"
|
|
1283
|
+
aria-hidden="true"
|
|
1284
|
+
></span>
|
|
389
1285
|
}
|
|
390
1286
|
</button>
|
|
391
1287
|
}
|
|
@@ -399,7 +1295,7 @@ class AerisDrawer {
|
|
|
399
1295
|
</div>
|
|
400
1296
|
|
|
401
1297
|
@if (footerTemplate(); as footerTemplateRef) {
|
|
402
|
-
<footer class="aeris-drawer__footer">
|
|
1298
|
+
<footer class="aeris-drawer__footer" [attr.data-footer-layout]="footerLayout()">
|
|
403
1299
|
<ng-container
|
|
404
1300
|
[ngTemplateOutlet]="footerTemplateRef.template"
|
|
405
1301
|
[ngTemplateOutletContext]="templateContext()"
|
|
@@ -407,17 +1303,70 @@ class AerisDrawer {
|
|
|
407
1303
|
</footer>
|
|
408
1304
|
}
|
|
409
1305
|
}
|
|
410
|
-
</
|
|
1306
|
+
</section>
|
|
411
1307
|
</div>
|
|
412
1308
|
}
|
|
413
|
-
`,
|
|
414
|
-
|
|
415
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisDrawer, decorators: [{
|
|
416
|
-
|
|
417
|
-
|
|
1309
|
+
`,
|
|
1310
|
+
isInline: true,
|
|
1311
|
+
styles: [".aeris-drawer__panel[data-swipe-enabled]{position:relative}.aeris-drawer__overlay[data-swipe-enabled][data-backdrop]{background-color:color-mix(in srgb,var(--aeris-drawer-mask-background, rgba(16, 19, 14, .46)) calc(100% - var(--_aeris-drawer-swipe-progress, 0) * 70%),transparent);transition:opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, ease)}.aeris-drawer__swipe-handle{position:absolute;z-index:1;display:grid;place-items:center;width:4rem;height:var(--aeris-drawer-swipe-handle-space, 2rem);padding:0;border:0;border-radius:var(--aeris-radius-item);background:transparent;color:var(--aeris-drawer-swipe-handle-color, var(--aeris-text-3));cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.aeris-drawer__swipe-handle span{width:2.25rem;height:.25rem;border-radius:999px;background:currentColor}.aeris-drawer__swipe-handle:active{cursor:grabbing}.aeris-drawer__swipe-handle:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus-ring-color);outline-offset:-4px}.aeris-drawer__panel[data-position=bottom][data-swipe-handle]{padding-top:calc(var(--aeris-safe-area-top, 0px) + var(--aeris-drawer-swipe-handle-space, 2rem))}.aeris-drawer__panel[data-position=top][data-swipe-handle]{padding-bottom:calc(var(--aeris-safe-area-bottom, 0px) + var(--aeris-drawer-swipe-handle-space, 2rem))}.aeris-drawer__panel:is([data-position=bottom],[data-position=top]) .aeris-drawer__swipe-handle{left:calc(50% - 2rem)}.aeris-drawer__panel[data-position=bottom] .aeris-drawer__swipe-handle{top:var(--aeris-safe-area-top, 0px)}.aeris-drawer__panel[data-position=top] .aeris-drawer__swipe-handle{bottom:var(--aeris-safe-area-bottom, 0px)}.aeris-drawer__panel[data-position=left][data-swipe-handle]{padding-right:calc(var(--aeris-safe-area-right, 0px) + var(--aeris-drawer-swipe-handle-space, 2rem))}.aeris-drawer__panel[data-position=right][data-swipe-handle]{padding-left:calc(var(--aeris-safe-area-left, 0px) + var(--aeris-drawer-swipe-handle-space, 2rem))}.aeris-drawer__panel:is([data-position=left],[data-position=right]) .aeris-drawer__swipe-handle{top:calc(50% - 2rem);width:var(--aeris-drawer-swipe-handle-space, 2rem);height:4rem}.aeris-drawer__panel:is([data-position=left],[data-position=right]) .aeris-drawer__swipe-handle span{width:.25rem;height:2.25rem}.aeris-drawer__panel[data-position=left] .aeris-drawer__swipe-handle{right:var(--aeris-safe-area-right, 0px)}.aeris-drawer__panel[data-position=right] .aeris-drawer__swipe-handle{left:var(--aeris-safe-area-left, 0px)}.aeris-drawer__panel[data-swiping],.aeris-drawer__overlay[data-swipe-enabled][data-swiping]{transition:none}.aeris-drawer__panel[data-swiping]{-webkit-user-select:none;user-select:none}:host{--_aeris-drawer-icon-size: var(--aeris-icon-size, 1rem);display:contents;color:var(--aeris-drawer-color, var(--aeris-text, #111111));font:inherit}.aeris-drawer__overlay{position:fixed;z-index:var(--aeris-drawer-z-index, 1000);inset:0;inset:var(--_aeris-viewport-top, 0px) var(--_aeris-viewport-right, 0px) var(--_aeris-viewport-bottom, 0px) var(--_aeris-viewport-left, 0px);display:grid;opacity:1;pointer-events:auto;transition:opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-drawer__overlay[data-state=closed]{opacity:0;pointer-events:none}.aeris-drawer__overlay[data-backdrop]{background:var(--aeris-drawer-mask-background, color-mix(in srgb, #10130e 46%, transparent))}.aeris-drawer__overlay[data-backdrop][data-backdrop-blur]{-webkit-backdrop-filter:blur(var(--aeris-drawer-backdrop-blur, var(--aeris-backdrop-blur, .25rem)));backdrop-filter:blur(var(--aeris-drawer-backdrop-blur, var(--aeris-backdrop-blur, .25rem)))}.aeris-drawer__overlay[data-position=left]{justify-items:start}.aeris-drawer__overlay[data-position=right]{justify-items:end}.aeris-drawer__overlay[data-position=top]{align-items:start}.aeris-drawer__overlay[data-position=bottom]{align-items:end}.aeris-drawer__panel{box-sizing:border-box;padding:var(--aeris-safe-area-top, 0px) var(--aeris-safe-area-right, 0px) var(--aeris-safe-area-bottom, 0px) var(--aeris-safe-area-left, 0px);width:min(var(--aeris-drawer-width, 24rem),var(--aeris-drawer-max-width, 100vw));height:100vh;height:100dvh;height:var(--_aeris-viewport-height, 100dvh);max-width:var(--aeris-drawer-max-width, 100vw);max-height:var(--aeris-drawer-max-height, 100vh);max-height:var(--aeris-drawer-max-height, 100dvh);max-height:min(var(--aeris-drawer-max-height, 100dvh),var(--_aeris-viewport-height, 100dvh));display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid var(--aeris-drawer-border, var(--aeris-border));background:var(--aeris-drawer-background, var(--aeris-surface, #fff));color:inherit;box-shadow:var(--aeris-drawer-shadow, 0 1.25rem 3.25rem rgba(31, 35, 27, .22));overflow:hidden;opacity:1;transform:translateZ(0);transition:transform var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, ease),opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease);will-change:transform}.aeris-drawer__panel[data-state=closed]{opacity:0}.aeris-drawer__panel[data-snap-points]{transition:height var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, ease),opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-drawer__panel[data-snap-points] .aeris-drawer__header{grid-row:1}.aeris-drawer__panel[data-snap-points] .aeris-drawer__body{grid-row:2}.aeris-drawer__panel[data-snap-points] .aeris-drawer__footer{grid-row:3}.aeris-drawer__panel[data-snap-points][data-swiping]{transition:none}.aeris-drawer__panel[data-position=left][data-state=closed]{transform:translate3d(-100%,0,0)}.aeris-drawer__panel[data-position=right][data-state=closed]{transform:translate3d(100%,0,0)}.aeris-drawer__panel[data-position=top][data-state=closed]{transform:translate3d(0,-100%,0)}.aeris-drawer__panel[data-position=bottom][data-state=closed]{transform:translate3d(0,100%,0)}@starting-style{.aeris-drawer__overlay[data-state=open]{opacity:0}.aeris-drawer__panel[data-position=left][data-state=open]{opacity:0;transform:translate3d(-100%,0,0)}.aeris-drawer__panel[data-position=right][data-state=open]{opacity:0;transform:translate3d(100%,0,0)}.aeris-drawer__panel[data-position=top][data-state=open]{opacity:0;transform:translate3d(0,-100%,0)}.aeris-drawer__panel[data-position=bottom][data-state=open]{opacity:0;transform:translate3d(0,100%,0)}}.aeris-drawer__panel:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-drawer-focus, var(--aeris-focus, #111111));outline-offset:-4px}.aeris-drawer__panel[data-position=left]{border-radius:0 var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem))) var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem))) 0;border-inline-start:0}.aeris-drawer__panel[data-position=right]{border-radius:var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem))) 0 0 var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));border-inline-end:0}.aeris-drawer__panel[data-position=top],.aeris-drawer__panel[data-position=bottom]{padding-block-start:0;width:100vw;height:min(var(--aeris-drawer-height, 20rem),var(--aeris-drawer-max-height, 100vh));height:min(var(--aeris-drawer-height, 20rem),var(--aeris-drawer-max-height, 100dvh));max-width:100vw}.aeris-drawer__panel[data-position=top]{border-block-start:0;border-radius:0 0 var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem))) var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)))}.aeris-drawer__panel[data-position=bottom]{border-block-end:0;border-radius:var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem))) var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem))) 0 0}.aeris-drawer__panel[data-size=sm][data-position=left],.aeris-drawer__panel[data-size=sm][data-position=right]{--aeris-drawer-width: 18rem}.aeris-drawer__panel[data-size=lg][data-position=left],.aeris-drawer__panel[data-size=lg][data-position=right]{--aeris-drawer-width: 32rem}.aeris-drawer__panel[data-size=full][data-position=left],.aeris-drawer__panel[data-size=full][data-position=right]{--aeris-drawer-width: 100vw}.aeris-drawer__panel[data-size=sm][data-position=top],.aeris-drawer__panel[data-size=sm][data-position=bottom]{--aeris-drawer-height: 14rem}.aeris-drawer__panel[data-size=lg][data-position=top],.aeris-drawer__panel[data-size=lg][data-position=bottom]{--aeris-drawer-height: 28rem}.aeris-drawer__panel[data-size=full][data-position=top],.aeris-drawer__panel[data-size=full][data-position=bottom]{--aeris-drawer-height: 100vh;--aeris-drawer-height: 100dvh}.aeris-drawer__panel[data-size=full],.aeris-drawer__panel[data-maximized]{width:100vw;height:100vh;height:100dvh;max-width:100vw;max-height:100vh;max-height:100dvh;border:0;border-radius:0}.aeris-drawer__panel[data-headless]{display:block}.aeris-drawer__overlay .aeris-drawer__panel{max-height:min(var(--aeris-drawer-max-height, 100dvh),var(--_aeris-viewport-height, 100dvh));max-width:min(var(--aeris-drawer-max-width, 100vw),var(--_aeris-viewport-width, 100vw))}.aeris-drawer__panel[data-size=full],.aeris-drawer__panel[data-maximized]{padding-block-start:var(--aeris-safe-area-top, 0px)}.aeris-drawer__header,.aeris-drawer__footer{min-width:0;display:flex;align-items:center;gap:var(--aeris-density-gap, .5rem);padding:var(--aeris-drawer-header-padding, var(--aeris-surface-padding-sm, .875rem) var(--aeris-surface-padding, 1.25rem));background:var(--aeris-drawer-header-background, var(--aeris-surface, #fff))}.aeris-drawer__header{border-bottom:1px solid var(--aeris-drawer-border, var(--aeris-border))}.aeris-drawer__footer{justify-content:flex-end;border-top:1px solid var(--aeris-drawer-border, var(--aeris-border))}.aeris-drawer__footer[data-footer-layout=responsive],.aeris-drawer__footer[data-footer-layout=wrap]{flex-wrap:wrap}.aeris-drawer__footer[data-footer-layout=stack]{flex-direction:column;align-items:stretch}.aeris-drawer__title{min-width:0;flex:1 1 auto;color:var(--aeris-drawer-title-color, var(--aeris-text, #111111));font-size:var(--aeris-drawer-title-size, var(--aeris-heading-font-size, 1rem));font-weight:var(--aeris-font-weight-bold, 700);line-height:1.35}.aeris-drawer__actions{display:inline-flex;align-items:center;gap:var(--aeris-overlay-padding, .375rem);flex:0 0 auto}.aeris-drawer__action{width:2rem;height:2rem;display:inline-grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-drawer-icon-color, var(--aeris-text-2, #454545));cursor:pointer}@media(hover:hover){.aeris-drawer__action:hover{background:var(--aeris-drawer-action-hover, var(--aeris-surface-2, #f3f3f3));color:var(--aeris-drawer-title-color, var(--aeris-text, #111111))}}.aeris-drawer__action:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-drawer-focus, var(--aeris-focus, #111111));outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-drawer__close-icon,.aeris-drawer__maximize-icon{position:relative;width:var(--_aeris-drawer-icon-size, var(--aeris-icon-size, 1rem));height:var(--_aeris-drawer-icon-size, var(--aeris-icon-size, 1rem));display:inline-block}.aeris-drawer__close-icon{background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-drawer__maximize-icon{background:currentColor;-webkit-mask:var(--aeris-icon-maximize, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"M8 3H5a2 2 0 0 0-2 2v3\"/%3E%3Cpath d=\"M21 8V5a2 2 0 0 0-2-2h-3\"/%3E%3Cpath d=\"M3 16v3a2 2 0 0 0 2 2h3\"/%3E%3Cpath d=\"M16 21h3a2 2 0 0 0 2-2v-3\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-maximize, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"M8 3H5a2 2 0 0 0-2 2v3\"/%3E%3Cpath d=\"M21 8V5a2 2 0 0 0-2-2h-3\"/%3E%3Cpath d=\"M3 16v3a2 2 0 0 0 2 2h3\"/%3E%3Cpath d=\"M16 21h3a2 2 0 0 0 2-2v-3\"/%3E%3C/svg%3E')) center/100% 100% no-repeat}.aeris-drawer__maximize-icon[data-maximized]{-webkit-mask-image:var(--aeris-icon-restore, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"M8 3v3a2 2 0 0 1-2 2H3\"/%3E%3Cpath d=\"M21 8h-3a2 2 0 0 1-2-2V3\"/%3E%3Cpath d=\"M3 16h3a2 2 0 0 1 2 2v3\"/%3E%3Cpath d=\"M16 21v-3a2 2 0 0 1 2-2h3\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-restore, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"M8 3v3a2 2 0 0 1-2 2H3\"/%3E%3Cpath d=\"M21 8h-3a2 2 0 0 1-2-2V3\"/%3E%3Cpath d=\"M3 16h3a2 2 0 0 1 2 2v3\"/%3E%3Cpath d=\"M16 21v-3a2 2 0 0 1 2-2h3\"/%3E%3C/svg%3E'))}.aeris-drawer__body{min-width:0;min-height:0;padding:var(--aeris-drawer-body-padding, var(--aeris-surface-padding, 1.25rem));overflow:auto;color:var(--aeris-drawer-body-color, var(--aeris-text-2, #454545));font-size:var(--aeris-body-font-size, .875rem);line-height:1.6}@media(max-width:42rem){.aeris-drawer__panel[data-position=left],.aeris-drawer__panel[data-position=right]{width:min(var(--aeris-drawer-mobile-width, var(--aeris-drawer-width, 24rem)),100vw)}.aeris-drawer__panel[data-position=top],.aeris-drawer__panel[data-position=bottom]{height:min(var(--aeris-drawer-mobile-height, var(--aeris-drawer-height, 20rem)),100vh);height:min(var(--aeris-drawer-mobile-height, var(--aeris-drawer-height, 20rem)),100dvh)}.aeris-drawer__panel[data-mobile-fullscreen]{width:100vw;height:100vh;height:100dvh;max-width:100vw;max-height:100vh;max-height:100dvh;border:0;border-radius:0}.aeris-drawer__header,.aeris-drawer__footer{padding-inline:.875rem}.aeris-drawer__footer[data-footer-layout=responsive]{flex-direction:column;align-items:stretch}.aeris-drawer__body{padding:.875rem}}@media(prefers-reduced-motion:reduce){.aeris-drawer__panel[data-snap-points],.aeris-drawer__overlay[data-swipe-enabled][data-backdrop],.aeris-drawer__overlay,.aeris-drawer__panel,.aeris-drawer__action{transition:none}}@media(pointer:coarse){.aeris-drawer__action{min-block-size:var(--aeris-touch-target-size, 2.75rem);min-inline-size:var(--aeris-touch-target-size, 2.75rem)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}\n"],
|
|
1312
|
+
dependencies: [
|
|
1313
|
+
{
|
|
1314
|
+
kind: "component",
|
|
1315
|
+
type: ɵAerisIcon,
|
|
1316
|
+
selector: "span[aerisInternalIcon]",
|
|
1317
|
+
inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
|
|
1318
|
+
},
|
|
1319
|
+
{
|
|
1320
|
+
kind: "directive",
|
|
1321
|
+
type: NgTemplateOutlet,
|
|
1322
|
+
selector: "[ngTemplateOutlet]",
|
|
1323
|
+
inputs: [
|
|
1324
|
+
"ngTemplateOutletContext",
|
|
1325
|
+
"ngTemplateOutlet",
|
|
1326
|
+
"ngTemplateOutletInjector"
|
|
1327
|
+
]
|
|
1328
|
+
},
|
|
1329
|
+
{
|
|
1330
|
+
kind: "directive",
|
|
1331
|
+
type: ɵAerisAppendTo,
|
|
1332
|
+
selector: "[aerisInternalAppendTo]",
|
|
1333
|
+
inputs: [
|
|
1334
|
+
"aerisInternalAppendTo",
|
|
1335
|
+
"aerisInternalAppendToDefault",
|
|
1336
|
+
"aerisInternalAppendToAnchor",
|
|
1337
|
+
"aerisInternalAppendToOffset",
|
|
1338
|
+
"aerisInternalAppendToMatchWidth",
|
|
1339
|
+
"aerisInternalAppendToPlacement",
|
|
1340
|
+
"aerisInternalAppendToAlignment",
|
|
1341
|
+
"aerisInternalAppendToCollisionPadding",
|
|
1342
|
+
"aerisInternalAppendToPositionSelf",
|
|
1343
|
+
"aerisInternalAppendToDismiss"
|
|
1344
|
+
],
|
|
1345
|
+
outputs: ["aerisInternalAppendToOutside"]
|
|
1346
|
+
}
|
|
1347
|
+
]
|
|
1348
|
+
});
|
|
1349
|
+
};
|
|
1350
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1351
|
+
minVersion: "12.0.0",
|
|
1352
|
+
version: "22.2.3",
|
|
1353
|
+
ngImport: i0,
|
|
1354
|
+
type: AerisDrawer,
|
|
1355
|
+
decorators: [{
|
|
1356
|
+
type: Component,
|
|
1357
|
+
args: [{
|
|
1358
|
+
selector: "aeris-drawer",
|
|
1359
|
+
imports: [
|
|
1360
|
+
ɵAerisIcon,
|
|
1361
|
+
NgTemplateOutlet,
|
|
1362
|
+
ɵAerisAppendTo
|
|
1363
|
+
],
|
|
1364
|
+
template: `
|
|
418
1365
|
@if (rendered()) {
|
|
419
1366
|
<div
|
|
420
1367
|
class="aeris-drawer__overlay"
|
|
1368
|
+
[aerisInternalAppendTo]="appendTo()"
|
|
1369
|
+
aerisInternalAppendToDefault="body"
|
|
421
1370
|
[attr.data-modal]="modal() || null"
|
|
422
1371
|
[attr.data-backdrop]="backdrop() || null"
|
|
423
1372
|
[attr.data-backdrop-blur]="backdrop() && backdropBlur() ? true : null"
|
|
@@ -425,11 +1374,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
425
1374
|
[attr.data-position]="position()"
|
|
426
1375
|
[attr.data-maximized]="maximized() || null"
|
|
427
1376
|
[attr.data-state]="animationState()"
|
|
1377
|
+
[attr.data-swipe-enabled]="(swipeToClose() && !maximized()) || null"
|
|
1378
|
+
[attr.data-swiping]="swiping() || null"
|
|
1379
|
+
[style.--_aeris-drawer-swipe-progress]="swipeProgress()"
|
|
428
1380
|
[attr.aria-hidden]="visible() ? null : 'true'"
|
|
429
1381
|
[attr.inert]="visible() ? null : ''"
|
|
430
|
-
(
|
|
1382
|
+
(click)="handleOverlayClick($event)"
|
|
431
1383
|
>
|
|
432
|
-
<
|
|
1384
|
+
<section
|
|
433
1385
|
#drawerPanel
|
|
434
1386
|
class="aeris-drawer__panel"
|
|
435
1387
|
role="dialog"
|
|
@@ -444,14 +1396,53 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
444
1396
|
[attr.data-headless]="headlessTemplate() ? true : null"
|
|
445
1397
|
[attr.data-mobile-fullscreen]="mobileFullScreen() || null"
|
|
446
1398
|
[attr.data-maximized]="maximized() || null"
|
|
1399
|
+
[attr.data-swipe-enabled]="((swipeToClose() || snapEnabled()) && !maximized()) || null"
|
|
1400
|
+
[attr.data-swipe-handle]="
|
|
1401
|
+
((swipeToClose() || snapEnabled()) && swipeHandle() && !maximized()) || null
|
|
1402
|
+
"
|
|
1403
|
+
[attr.data-snap-points]="snapEnabled() || null"
|
|
1404
|
+
[attr.data-swiping]="swiping() || null"
|
|
1405
|
+
[style.transform]="swipeTransform()"
|
|
447
1406
|
[style.--aeris-drawer-width]="width() || null"
|
|
448
1407
|
[style.--aeris-drawer-height]="height() || null"
|
|
449
1408
|
[style.--aeris-drawer-max-width]="maxWidth() || null"
|
|
450
1409
|
[style.--aeris-drawer-max-height]="maxHeight() || null"
|
|
451
1410
|
[style.--aeris-drawer-mobile-width]="mobileWidth() || null"
|
|
452
1411
|
[style.--aeris-drawer-mobile-height]="mobileHeight() || null"
|
|
1412
|
+
[style.height.px]="snapEnabled() ? (snapDragHeight() ?? currentSnapHeight()) : null"
|
|
1413
|
+
[style.max-height.px]="snapEnabled() ? availableSnapHeight() : null"
|
|
453
1414
|
(keydown)="handlePanelKeydown($event)"
|
|
1415
|
+
(pointerdown)="startSwipe($event)"
|
|
1416
|
+
(pointermove)="swipe.move($event)"
|
|
1417
|
+
(pointerup)="swipe.end($event, swipeThreshold())"
|
|
1418
|
+
(pointercancel)="swipe.end($event, swipeThreshold())"
|
|
1419
|
+
(lostpointercapture)="swipe.end($event, swipeThreshold())"
|
|
454
1420
|
>
|
|
1421
|
+
@if (snapEnabled() && swipeHandle()) {
|
|
1422
|
+
<div
|
|
1423
|
+
class="aeris-drawer__swipe-handle"
|
|
1424
|
+
role="slider"
|
|
1425
|
+
tabindex="0"
|
|
1426
|
+
aria-orientation="vertical"
|
|
1427
|
+
[attr.aria-label]="snapAriaLabel()"
|
|
1428
|
+
[attr.aria-valuemin]="minimumSnapHeight()"
|
|
1429
|
+
[attr.aria-valuemax]="maximumSnapHeight()"
|
|
1430
|
+
[attr.aria-valuenow]="currentSnapHeight()"
|
|
1431
|
+
[attr.aria-valuetext]="snapValueText()"
|
|
1432
|
+
(keydown)="handleSnapKeydown($event)"
|
|
1433
|
+
>
|
|
1434
|
+
<span aria-hidden="true"></span>
|
|
1435
|
+
</div>
|
|
1436
|
+
} @else if (swipeToClose() && swipeHandle() && !maximized()) {
|
|
1437
|
+
<button
|
|
1438
|
+
type="button"
|
|
1439
|
+
class="aeris-drawer__swipe-handle"
|
|
1440
|
+
[attr.aria-label]="closeAriaLabel()"
|
|
1441
|
+
(click)="hide($event, 'close-button')"
|
|
1442
|
+
>
|
|
1443
|
+
<span aria-hidden="true"></span>
|
|
1444
|
+
</button>
|
|
1445
|
+
}
|
|
455
1446
|
@if (headlessTemplate(); as headlessTemplateRef) {
|
|
456
1447
|
<ng-container
|
|
457
1448
|
[ngTemplateOutlet]="headlessTemplateRef.template"
|
|
@@ -481,11 +1472,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
481
1472
|
[attr.aria-pressed]="maximized()"
|
|
482
1473
|
(click)="toggleMaximized()"
|
|
483
1474
|
>
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
1475
|
+
@if (maximizeIconTemplate(); as customIcon) {
|
|
1476
|
+
<span
|
|
1477
|
+
class="aeris-drawer__maximize-icon"
|
|
1478
|
+
[attr.data-maximized]="maximized() || null"
|
|
1479
|
+
aria-hidden="true"
|
|
1480
|
+
data-aeris-custom-icon
|
|
1481
|
+
><ng-container
|
|
1482
|
+
[ngTemplateOutlet]="customIcon"
|
|
1483
|
+
[ngTemplateOutletContext]="templateContext()"
|
|
1484
|
+
/></span>
|
|
1485
|
+
} @else {
|
|
1486
|
+
<span
|
|
1487
|
+
class="aeris-drawer__maximize-icon"
|
|
1488
|
+
[attr.data-maximized]="maximized() || null"
|
|
1489
|
+
aria-hidden="true"
|
|
1490
|
+
></span>
|
|
1491
|
+
}
|
|
489
1492
|
</button>
|
|
490
1493
|
}
|
|
491
1494
|
|
|
@@ -496,13 +1499,21 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
496
1499
|
[attr.aria-label]="closeAriaLabel()"
|
|
497
1500
|
(click)="hide($event, 'close-button')"
|
|
498
1501
|
>
|
|
499
|
-
@if (
|
|
500
|
-
<
|
|
501
|
-
|
|
502
|
-
|
|
503
|
-
|
|
1502
|
+
@if (resolvedCloseIconTemplate(); as closeIconTemplateRef) {
|
|
1503
|
+
<span
|
|
1504
|
+
class="aeris-drawer__close-icon"
|
|
1505
|
+
aria-hidden="true"
|
|
1506
|
+
data-aeris-custom-icon
|
|
1507
|
+
><ng-container
|
|
1508
|
+
[ngTemplateOutlet]="closeIconTemplateRef"
|
|
1509
|
+
[ngTemplateOutletContext]="templateContext()"
|
|
1510
|
+
/></span>
|
|
504
1511
|
} @else {
|
|
505
|
-
<span
|
|
1512
|
+
<span
|
|
1513
|
+
aerisInternalIcon="close"
|
|
1514
|
+
class="aeris-drawer__close-icon"
|
|
1515
|
+
aria-hidden="true"
|
|
1516
|
+
></span>
|
|
506
1517
|
}
|
|
507
1518
|
</button>
|
|
508
1519
|
}
|
|
@@ -516,7 +1527,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
516
1527
|
</div>
|
|
517
1528
|
|
|
518
1529
|
@if (footerTemplate(); as footerTemplateRef) {
|
|
519
|
-
<footer class="aeris-drawer__footer">
|
|
1530
|
+
<footer class="aeris-drawer__footer" [attr.data-footer-layout]="footerLayout()">
|
|
520
1531
|
<ng-container
|
|
521
1532
|
[ngTemplateOutlet]="footerTemplateRef.template"
|
|
522
1533
|
[ngTemplateOutletContext]="templateContext()"
|
|
@@ -524,26 +1535,382 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
524
1535
|
</footer>
|
|
525
1536
|
}
|
|
526
1537
|
}
|
|
527
|
-
</
|
|
1538
|
+
</section>
|
|
528
1539
|
</div>
|
|
529
1540
|
}
|
|
530
|
-
`,
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
1541
|
+
`,
|
|
1542
|
+
host: {
|
|
1543
|
+
class: "aeris-drawer",
|
|
1544
|
+
"[attr.data-open]": "visible() || null",
|
|
1545
|
+
"[attr.data-block-scroll]": "blockScroll() || null"
|
|
1546
|
+
},
|
|
1547
|
+
styles: [".aeris-drawer__panel[data-swipe-enabled]{position:relative}.aeris-drawer__overlay[data-swipe-enabled][data-backdrop]{background-color:color-mix(in srgb,var(--aeris-drawer-mask-background, rgba(16, 19, 14, .46)) calc(100% - var(--_aeris-drawer-swipe-progress, 0) * 70%),transparent);transition:opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, ease)}.aeris-drawer__swipe-handle{position:absolute;z-index:1;display:grid;place-items:center;width:4rem;height:var(--aeris-drawer-swipe-handle-space, 2rem);padding:0;border:0;border-radius:var(--aeris-radius-item);background:transparent;color:var(--aeris-drawer-swipe-handle-color, var(--aeris-text-3));cursor:grab;touch-action:none;-webkit-user-select:none;user-select:none}.aeris-drawer__swipe-handle span{width:2.25rem;height:.25rem;border-radius:999px;background:currentColor}.aeris-drawer__swipe-handle:active{cursor:grabbing}.aeris-drawer__swipe-handle:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus-ring-color);outline-offset:-4px}.aeris-drawer__panel[data-position=bottom][data-swipe-handle]{padding-top:calc(var(--aeris-safe-area-top, 0px) + var(--aeris-drawer-swipe-handle-space, 2rem))}.aeris-drawer__panel[data-position=top][data-swipe-handle]{padding-bottom:calc(var(--aeris-safe-area-bottom, 0px) + var(--aeris-drawer-swipe-handle-space, 2rem))}.aeris-drawer__panel:is([data-position=bottom],[data-position=top]) .aeris-drawer__swipe-handle{left:calc(50% - 2rem)}.aeris-drawer__panel[data-position=bottom] .aeris-drawer__swipe-handle{top:var(--aeris-safe-area-top, 0px)}.aeris-drawer__panel[data-position=top] .aeris-drawer__swipe-handle{bottom:var(--aeris-safe-area-bottom, 0px)}.aeris-drawer__panel[data-position=left][data-swipe-handle]{padding-right:calc(var(--aeris-safe-area-right, 0px) + var(--aeris-drawer-swipe-handle-space, 2rem))}.aeris-drawer__panel[data-position=right][data-swipe-handle]{padding-left:calc(var(--aeris-safe-area-left, 0px) + var(--aeris-drawer-swipe-handle-space, 2rem))}.aeris-drawer__panel:is([data-position=left],[data-position=right]) .aeris-drawer__swipe-handle{top:calc(50% - 2rem);width:var(--aeris-drawer-swipe-handle-space, 2rem);height:4rem}.aeris-drawer__panel:is([data-position=left],[data-position=right]) .aeris-drawer__swipe-handle span{width:.25rem;height:2.25rem}.aeris-drawer__panel[data-position=left] .aeris-drawer__swipe-handle{right:var(--aeris-safe-area-right, 0px)}.aeris-drawer__panel[data-position=right] .aeris-drawer__swipe-handle{left:var(--aeris-safe-area-left, 0px)}.aeris-drawer__panel[data-swiping],.aeris-drawer__overlay[data-swipe-enabled][data-swiping]{transition:none}.aeris-drawer__panel[data-swiping]{-webkit-user-select:none;user-select:none}:host{--_aeris-drawer-icon-size: var(--aeris-icon-size, 1rem);display:contents;color:var(--aeris-drawer-color, var(--aeris-text, #111111));font:inherit}.aeris-drawer__overlay{position:fixed;z-index:var(--aeris-drawer-z-index, 1000);inset:0;inset:var(--_aeris-viewport-top, 0px) var(--_aeris-viewport-right, 0px) var(--_aeris-viewport-bottom, 0px) var(--_aeris-viewport-left, 0px);display:grid;opacity:1;pointer-events:auto;transition:opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-drawer__overlay[data-state=closed]{opacity:0;pointer-events:none}.aeris-drawer__overlay[data-backdrop]{background:var(--aeris-drawer-mask-background, color-mix(in srgb, #10130e 46%, transparent))}.aeris-drawer__overlay[data-backdrop][data-backdrop-blur]{-webkit-backdrop-filter:blur(var(--aeris-drawer-backdrop-blur, var(--aeris-backdrop-blur, .25rem)));backdrop-filter:blur(var(--aeris-drawer-backdrop-blur, var(--aeris-backdrop-blur, .25rem)))}.aeris-drawer__overlay[data-position=left]{justify-items:start}.aeris-drawer__overlay[data-position=right]{justify-items:end}.aeris-drawer__overlay[data-position=top]{align-items:start}.aeris-drawer__overlay[data-position=bottom]{align-items:end}.aeris-drawer__panel{box-sizing:border-box;padding:var(--aeris-safe-area-top, 0px) var(--aeris-safe-area-right, 0px) var(--aeris-safe-area-bottom, 0px) var(--aeris-safe-area-left, 0px);width:min(var(--aeris-drawer-width, 24rem),var(--aeris-drawer-max-width, 100vw));height:100vh;height:100dvh;height:var(--_aeris-viewport-height, 100dvh);max-width:var(--aeris-drawer-max-width, 100vw);max-height:var(--aeris-drawer-max-height, 100vh);max-height:var(--aeris-drawer-max-height, 100dvh);max-height:min(var(--aeris-drawer-max-height, 100dvh),var(--_aeris-viewport-height, 100dvh));display:grid;grid-template-rows:auto minmax(0,1fr) auto;border:1px solid var(--aeris-drawer-border, var(--aeris-border));background:var(--aeris-drawer-background, var(--aeris-surface, #fff));color:inherit;box-shadow:var(--aeris-drawer-shadow, 0 1.25rem 3.25rem rgba(31, 35, 27, .22));overflow:hidden;opacity:1;transform:translateZ(0);transition:transform var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, ease),opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease);will-change:transform}.aeris-drawer__panel[data-state=closed]{opacity:0}.aeris-drawer__panel[data-snap-points]{transition:height var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-slow, .22s) var(--aeris-ease-standard, ease),opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-drawer__panel[data-snap-points] .aeris-drawer__header{grid-row:1}.aeris-drawer__panel[data-snap-points] .aeris-drawer__body{grid-row:2}.aeris-drawer__panel[data-snap-points] .aeris-drawer__footer{grid-row:3}.aeris-drawer__panel[data-snap-points][data-swiping]{transition:none}.aeris-drawer__panel[data-position=left][data-state=closed]{transform:translate3d(-100%,0,0)}.aeris-drawer__panel[data-position=right][data-state=closed]{transform:translate3d(100%,0,0)}.aeris-drawer__panel[data-position=top][data-state=closed]{transform:translate3d(0,-100%,0)}.aeris-drawer__panel[data-position=bottom][data-state=closed]{transform:translate3d(0,100%,0)}@starting-style{.aeris-drawer__overlay[data-state=open]{opacity:0}.aeris-drawer__panel[data-position=left][data-state=open]{opacity:0;transform:translate3d(-100%,0,0)}.aeris-drawer__panel[data-position=right][data-state=open]{opacity:0;transform:translate3d(100%,0,0)}.aeris-drawer__panel[data-position=top][data-state=open]{opacity:0;transform:translate3d(0,-100%,0)}.aeris-drawer__panel[data-position=bottom][data-state=open]{opacity:0;transform:translate3d(0,100%,0)}}.aeris-drawer__panel:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-drawer-focus, var(--aeris-focus, #111111));outline-offset:-4px}.aeris-drawer__panel[data-position=left]{border-radius:0 var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem))) var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem))) 0;border-inline-start:0}.aeris-drawer__panel[data-position=right]{border-radius:var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem))) 0 0 var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));border-inline-end:0}.aeris-drawer__panel[data-position=top],.aeris-drawer__panel[data-position=bottom]{padding-block-start:0;width:100vw;height:min(var(--aeris-drawer-height, 20rem),var(--aeris-drawer-max-height, 100vh));height:min(var(--aeris-drawer-height, 20rem),var(--aeris-drawer-max-height, 100dvh));max-width:100vw}.aeris-drawer__panel[data-position=top]{border-block-start:0;border-radius:0 0 var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem))) var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)))}.aeris-drawer__panel[data-position=bottom]{border-block-end:0;border-radius:var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem))) var(--aeris-drawer-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem))) 0 0}.aeris-drawer__panel[data-size=sm][data-position=left],.aeris-drawer__panel[data-size=sm][data-position=right]{--aeris-drawer-width: 18rem}.aeris-drawer__panel[data-size=lg][data-position=left],.aeris-drawer__panel[data-size=lg][data-position=right]{--aeris-drawer-width: 32rem}.aeris-drawer__panel[data-size=full][data-position=left],.aeris-drawer__panel[data-size=full][data-position=right]{--aeris-drawer-width: 100vw}.aeris-drawer__panel[data-size=sm][data-position=top],.aeris-drawer__panel[data-size=sm][data-position=bottom]{--aeris-drawer-height: 14rem}.aeris-drawer__panel[data-size=lg][data-position=top],.aeris-drawer__panel[data-size=lg][data-position=bottom]{--aeris-drawer-height: 28rem}.aeris-drawer__panel[data-size=full][data-position=top],.aeris-drawer__panel[data-size=full][data-position=bottom]{--aeris-drawer-height: 100vh;--aeris-drawer-height: 100dvh}.aeris-drawer__panel[data-size=full],.aeris-drawer__panel[data-maximized]{width:100vw;height:100vh;height:100dvh;max-width:100vw;max-height:100vh;max-height:100dvh;border:0;border-radius:0}.aeris-drawer__panel[data-headless]{display:block}.aeris-drawer__overlay .aeris-drawer__panel{max-height:min(var(--aeris-drawer-max-height, 100dvh),var(--_aeris-viewport-height, 100dvh));max-width:min(var(--aeris-drawer-max-width, 100vw),var(--_aeris-viewport-width, 100vw))}.aeris-drawer__panel[data-size=full],.aeris-drawer__panel[data-maximized]{padding-block-start:var(--aeris-safe-area-top, 0px)}.aeris-drawer__header,.aeris-drawer__footer{min-width:0;display:flex;align-items:center;gap:var(--aeris-density-gap, .5rem);padding:var(--aeris-drawer-header-padding, var(--aeris-surface-padding-sm, .875rem) var(--aeris-surface-padding, 1.25rem));background:var(--aeris-drawer-header-background, var(--aeris-surface, #fff))}.aeris-drawer__header{border-bottom:1px solid var(--aeris-drawer-border, var(--aeris-border))}.aeris-drawer__footer{justify-content:flex-end;border-top:1px solid var(--aeris-drawer-border, var(--aeris-border))}.aeris-drawer__footer[data-footer-layout=responsive],.aeris-drawer__footer[data-footer-layout=wrap]{flex-wrap:wrap}.aeris-drawer__footer[data-footer-layout=stack]{flex-direction:column;align-items:stretch}.aeris-drawer__title{min-width:0;flex:1 1 auto;color:var(--aeris-drawer-title-color, var(--aeris-text, #111111));font-size:var(--aeris-drawer-title-size, var(--aeris-heading-font-size, 1rem));font-weight:var(--aeris-font-weight-bold, 700);line-height:1.35}.aeris-drawer__actions{display:inline-flex;align-items:center;gap:var(--aeris-overlay-padding, .375rem);flex:0 0 auto}.aeris-drawer__action{width:2rem;height:2rem;display:inline-grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-drawer-icon-color, var(--aeris-text-2, #454545));cursor:pointer}@media(hover:hover){.aeris-drawer__action:hover{background:var(--aeris-drawer-action-hover, var(--aeris-surface-2, #f3f3f3));color:var(--aeris-drawer-title-color, var(--aeris-text, #111111))}}.aeris-drawer__action:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-drawer-focus, var(--aeris-focus, #111111));outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-drawer__close-icon,.aeris-drawer__maximize-icon{position:relative;width:var(--_aeris-drawer-icon-size, var(--aeris-icon-size, 1rem));height:var(--_aeris-drawer-icon-size, var(--aeris-icon-size, 1rem));display:inline-block}.aeris-drawer__close-icon{background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-drawer__maximize-icon{background:currentColor;-webkit-mask:var(--aeris-icon-maximize, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"M8 3H5a2 2 0 0 0-2 2v3\"/%3E%3Cpath d=\"M21 8V5a2 2 0 0 0-2-2h-3\"/%3E%3Cpath d=\"M3 16v3a2 2 0 0 0 2 2h3\"/%3E%3Cpath d=\"M16 21h3a2 2 0 0 0 2-2v-3\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-maximize, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"M8 3H5a2 2 0 0 0-2 2v3\"/%3E%3Cpath d=\"M21 8V5a2 2 0 0 0-2-2h-3\"/%3E%3Cpath d=\"M3 16v3a2 2 0 0 0 2 2h3\"/%3E%3Cpath d=\"M16 21h3a2 2 0 0 0 2-2v-3\"/%3E%3C/svg%3E')) center/100% 100% no-repeat}.aeris-drawer__maximize-icon[data-maximized]{-webkit-mask-image:var(--aeris-icon-restore, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"M8 3v3a2 2 0 0 1-2 2H3\"/%3E%3Cpath d=\"M21 8h-3a2 2 0 0 1-2-2V3\"/%3E%3Cpath d=\"M3 16h3a2 2 0 0 1 2 2v3\"/%3E%3Cpath d=\"M16 21v-3a2 2 0 0 1 2-2h3\"/%3E%3C/svg%3E'));mask-image:var(--aeris-icon-restore, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"M8 3v3a2 2 0 0 1-2 2H3\"/%3E%3Cpath d=\"M21 8h-3a2 2 0 0 1-2-2V3\"/%3E%3Cpath d=\"M3 16h3a2 2 0 0 1 2 2v3\"/%3E%3Cpath d=\"M16 21v-3a2 2 0 0 1 2-2h3\"/%3E%3C/svg%3E'))}.aeris-drawer__body{min-width:0;min-height:0;padding:var(--aeris-drawer-body-padding, var(--aeris-surface-padding, 1.25rem));overflow:auto;color:var(--aeris-drawer-body-color, var(--aeris-text-2, #454545));font-size:var(--aeris-body-font-size, .875rem);line-height:1.6}@media(max-width:42rem){.aeris-drawer__panel[data-position=left],.aeris-drawer__panel[data-position=right]{width:min(var(--aeris-drawer-mobile-width, var(--aeris-drawer-width, 24rem)),100vw)}.aeris-drawer__panel[data-position=top],.aeris-drawer__panel[data-position=bottom]{height:min(var(--aeris-drawer-mobile-height, var(--aeris-drawer-height, 20rem)),100vh);height:min(var(--aeris-drawer-mobile-height, var(--aeris-drawer-height, 20rem)),100dvh)}.aeris-drawer__panel[data-mobile-fullscreen]{width:100vw;height:100vh;height:100dvh;max-width:100vw;max-height:100vh;max-height:100dvh;border:0;border-radius:0}.aeris-drawer__header,.aeris-drawer__footer{padding-inline:.875rem}.aeris-drawer__footer[data-footer-layout=responsive]{flex-direction:column;align-items:stretch}.aeris-drawer__body{padding:.875rem}}@media(prefers-reduced-motion:reduce){.aeris-drawer__panel[data-snap-points],.aeris-drawer__overlay[data-swipe-enabled][data-backdrop],.aeris-drawer__overlay,.aeris-drawer__panel,.aeris-drawer__action{transition:none}}@media(pointer:coarse){.aeris-drawer__action{min-block-size:var(--aeris-touch-target-size, 2.75rem);min-inline-size:var(--aeris-touch-target-size, 2.75rem)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}\n"]
|
|
1548
|
+
}]
|
|
1549
|
+
}],
|
|
1550
|
+
ctorParameters: () => [],
|
|
1551
|
+
propDecorators: {
|
|
1552
|
+
closeIconTemplate: [{
|
|
1553
|
+
type: i0.Input,
|
|
1554
|
+
args: [{
|
|
1555
|
+
isSignal: true,
|
|
1556
|
+
alias: "closeIconTemplate",
|
|
1557
|
+
required: false
|
|
1558
|
+
}]
|
|
1559
|
+
}],
|
|
1560
|
+
maximizeIconTemplate: [{
|
|
1561
|
+
type: i0.Input,
|
|
1562
|
+
args: [{
|
|
1563
|
+
isSignal: true,
|
|
1564
|
+
alias: "maximizeIconTemplate",
|
|
1565
|
+
required: false
|
|
1566
|
+
}]
|
|
1567
|
+
}],
|
|
1568
|
+
drawerPanel: [{
|
|
1569
|
+
type: i0.ViewChild,
|
|
1570
|
+
args: ["drawerPanel", { isSignal: true }]
|
|
1571
|
+
}],
|
|
1572
|
+
overlayPortal: [{
|
|
1573
|
+
type: i0.ViewChild,
|
|
1574
|
+
args: [i0.forwardRef(() => ɵAerisAppendTo), { isSignal: true }]
|
|
1575
|
+
}],
|
|
1576
|
+
headerTemplate: [{
|
|
1577
|
+
type: i0.ContentChild,
|
|
1578
|
+
args: [i0.forwardRef(() => AerisDrawerHeaderTemplate), { isSignal: true }]
|
|
1579
|
+
}],
|
|
1580
|
+
footerTemplate: [{
|
|
1581
|
+
type: i0.ContentChild,
|
|
1582
|
+
args: [i0.forwardRef(() => AerisDrawerFooterTemplate), { isSignal: true }]
|
|
1583
|
+
}],
|
|
1584
|
+
projectedCloseIconTemplate: [{
|
|
1585
|
+
type: i0.ContentChild,
|
|
1586
|
+
args: [i0.forwardRef(() => AerisDrawerCloseIconTemplate), { isSignal: true }]
|
|
1587
|
+
}],
|
|
1588
|
+
headlessTemplate: [{
|
|
1589
|
+
type: i0.ContentChild,
|
|
1590
|
+
args: [i0.forwardRef(() => AerisDrawerHeadlessTemplate), { isSignal: true }]
|
|
1591
|
+
}],
|
|
1592
|
+
visible: [{
|
|
1593
|
+
type: i0.Input,
|
|
1594
|
+
args: [{
|
|
1595
|
+
isSignal: true,
|
|
1596
|
+
alias: "visible",
|
|
1597
|
+
required: false
|
|
1598
|
+
}]
|
|
1599
|
+
}, {
|
|
1600
|
+
type: i0.Output,
|
|
1601
|
+
args: ["visibleChange"]
|
|
1602
|
+
}],
|
|
1603
|
+
maximized: [{
|
|
1604
|
+
type: i0.Input,
|
|
1605
|
+
args: [{
|
|
1606
|
+
isSignal: true,
|
|
1607
|
+
alias: "maximized",
|
|
1608
|
+
required: false
|
|
1609
|
+
}]
|
|
1610
|
+
}, {
|
|
1611
|
+
type: i0.Output,
|
|
1612
|
+
args: ["maximizedChange"]
|
|
1613
|
+
}],
|
|
1614
|
+
activeSnapPoint: [{
|
|
1615
|
+
type: i0.Input,
|
|
1616
|
+
args: [{
|
|
1617
|
+
isSignal: true,
|
|
1618
|
+
alias: "activeSnapPoint",
|
|
1619
|
+
required: false
|
|
1620
|
+
}]
|
|
1621
|
+
}, {
|
|
1622
|
+
type: i0.Output,
|
|
1623
|
+
args: ["activeSnapPointChange"]
|
|
1624
|
+
}],
|
|
1625
|
+
snapPoints: [{
|
|
1626
|
+
type: i0.Input,
|
|
1627
|
+
args: [{
|
|
1628
|
+
isSignal: true,
|
|
1629
|
+
alias: "snapPoints",
|
|
1630
|
+
required: false
|
|
1631
|
+
}]
|
|
1632
|
+
}],
|
|
1633
|
+
snapAriaLabel: [{
|
|
1634
|
+
type: i0.Input,
|
|
1635
|
+
args: [{
|
|
1636
|
+
isSignal: true,
|
|
1637
|
+
alias: "snapAriaLabel",
|
|
1638
|
+
required: false
|
|
1639
|
+
}]
|
|
1640
|
+
}],
|
|
1641
|
+
header: [{
|
|
1642
|
+
type: i0.Input,
|
|
1643
|
+
args: [{
|
|
1644
|
+
isSignal: true,
|
|
1645
|
+
alias: "header",
|
|
1646
|
+
required: false
|
|
1647
|
+
}]
|
|
1648
|
+
}],
|
|
1649
|
+
appendTo: [{
|
|
1650
|
+
type: i0.Input,
|
|
1651
|
+
args: [{
|
|
1652
|
+
isSignal: true,
|
|
1653
|
+
alias: "appendTo",
|
|
1654
|
+
required: false
|
|
1655
|
+
}]
|
|
1656
|
+
}],
|
|
1657
|
+
position: [{
|
|
1658
|
+
type: i0.Input,
|
|
1659
|
+
args: [{
|
|
1660
|
+
isSignal: true,
|
|
1661
|
+
alias: "position",
|
|
1662
|
+
required: false
|
|
1663
|
+
}]
|
|
1664
|
+
}],
|
|
1665
|
+
size: [{
|
|
1666
|
+
type: i0.Input,
|
|
1667
|
+
args: [{
|
|
1668
|
+
isSignal: true,
|
|
1669
|
+
alias: "size",
|
|
1670
|
+
required: false
|
|
1671
|
+
}]
|
|
1672
|
+
}],
|
|
1673
|
+
modal: [{
|
|
1674
|
+
type: i0.Input,
|
|
1675
|
+
args: [{
|
|
1676
|
+
isSignal: true,
|
|
1677
|
+
alias: "modal",
|
|
1678
|
+
required: false
|
|
1679
|
+
}]
|
|
1680
|
+
}],
|
|
1681
|
+
backdrop: [{
|
|
1682
|
+
type: i0.Input,
|
|
1683
|
+
args: [{
|
|
1684
|
+
isSignal: true,
|
|
1685
|
+
alias: "backdrop",
|
|
1686
|
+
required: false
|
|
1687
|
+
}]
|
|
1688
|
+
}],
|
|
1689
|
+
backdropBlur: [{
|
|
1690
|
+
type: i0.Input,
|
|
1691
|
+
args: [{
|
|
1692
|
+
isSignal: true,
|
|
1693
|
+
alias: "backdropBlur",
|
|
1694
|
+
required: false
|
|
1695
|
+
}]
|
|
1696
|
+
}],
|
|
1697
|
+
backdropBlurAmount: [{
|
|
1698
|
+
type: i0.Input,
|
|
1699
|
+
args: [{
|
|
1700
|
+
isSignal: true,
|
|
1701
|
+
alias: "backdropBlurAmount",
|
|
1702
|
+
required: false
|
|
1703
|
+
}]
|
|
1704
|
+
}],
|
|
1705
|
+
closeOnBackdropClick: [{
|
|
1706
|
+
type: i0.Input,
|
|
1707
|
+
args: [{
|
|
1708
|
+
isSignal: true,
|
|
1709
|
+
alias: "closeOnBackdropClick",
|
|
1710
|
+
required: false
|
|
1711
|
+
}]
|
|
1712
|
+
}],
|
|
1713
|
+
closeOnEscape: [{
|
|
1714
|
+
type: i0.Input,
|
|
1715
|
+
args: [{
|
|
1716
|
+
isSignal: true,
|
|
1717
|
+
alias: "closeOnEscape",
|
|
1718
|
+
required: false
|
|
1719
|
+
}]
|
|
1720
|
+
}],
|
|
1721
|
+
swipeToClose: [{
|
|
1722
|
+
type: i0.Input,
|
|
1723
|
+
args: [{
|
|
1724
|
+
isSignal: true,
|
|
1725
|
+
alias: "swipeToClose",
|
|
1726
|
+
required: false
|
|
1727
|
+
}]
|
|
1728
|
+
}],
|
|
1729
|
+
swipeHandle: [{
|
|
1730
|
+
type: i0.Input,
|
|
1731
|
+
args: [{
|
|
1732
|
+
isSignal: true,
|
|
1733
|
+
alias: "swipeHandle",
|
|
1734
|
+
required: false
|
|
1735
|
+
}]
|
|
1736
|
+
}],
|
|
1737
|
+
swipeThreshold: [{
|
|
1738
|
+
type: i0.Input,
|
|
1739
|
+
args: [{
|
|
1740
|
+
isSignal: true,
|
|
1741
|
+
alias: "swipeThreshold",
|
|
1742
|
+
required: false
|
|
1743
|
+
}]
|
|
1744
|
+
}],
|
|
1745
|
+
closable: [{
|
|
1746
|
+
type: i0.Input,
|
|
1747
|
+
args: [{
|
|
1748
|
+
isSignal: true,
|
|
1749
|
+
alias: "closable",
|
|
1750
|
+
required: false
|
|
1751
|
+
}]
|
|
1752
|
+
}],
|
|
1753
|
+
maximizable: [{
|
|
1754
|
+
type: i0.Input,
|
|
1755
|
+
args: [{
|
|
1756
|
+
isSignal: true,
|
|
1757
|
+
alias: "maximizable",
|
|
1758
|
+
required: false
|
|
1759
|
+
}]
|
|
1760
|
+
}],
|
|
1761
|
+
blockScroll: [{
|
|
1762
|
+
type: i0.Input,
|
|
1763
|
+
args: [{
|
|
1764
|
+
isSignal: true,
|
|
1765
|
+
alias: "blockScroll",
|
|
1766
|
+
required: false
|
|
1767
|
+
}]
|
|
1768
|
+
}],
|
|
1769
|
+
focusTrap: [{
|
|
1770
|
+
type: i0.Input,
|
|
1771
|
+
args: [{
|
|
1772
|
+
isSignal: true,
|
|
1773
|
+
alias: "focusTrap",
|
|
1774
|
+
required: false
|
|
1775
|
+
}]
|
|
1776
|
+
}],
|
|
1777
|
+
restoreFocus: [{
|
|
1778
|
+
type: i0.Input,
|
|
1779
|
+
args: [{
|
|
1780
|
+
isSignal: true,
|
|
1781
|
+
alias: "restoreFocus",
|
|
1782
|
+
required: false
|
|
1783
|
+
}]
|
|
1784
|
+
}],
|
|
1785
|
+
autoFocus: [{
|
|
1786
|
+
type: i0.Input,
|
|
1787
|
+
args: [{
|
|
1788
|
+
isSignal: true,
|
|
1789
|
+
alias: "autoFocus",
|
|
1790
|
+
required: false
|
|
1791
|
+
}]
|
|
1792
|
+
}],
|
|
1793
|
+
initialFocus: [{
|
|
1794
|
+
type: i0.Input,
|
|
1795
|
+
args: [{
|
|
1796
|
+
isSignal: true,
|
|
1797
|
+
alias: "initialFocus",
|
|
1798
|
+
required: false
|
|
1799
|
+
}]
|
|
1800
|
+
}],
|
|
1801
|
+
width: [{
|
|
1802
|
+
type: i0.Input,
|
|
1803
|
+
args: [{
|
|
1804
|
+
isSignal: true,
|
|
1805
|
+
alias: "width",
|
|
1806
|
+
required: false
|
|
1807
|
+
}]
|
|
1808
|
+
}],
|
|
1809
|
+
height: [{
|
|
1810
|
+
type: i0.Input,
|
|
1811
|
+
args: [{
|
|
1812
|
+
isSignal: true,
|
|
1813
|
+
alias: "height",
|
|
1814
|
+
required: false
|
|
1815
|
+
}]
|
|
1816
|
+
}],
|
|
1817
|
+
maxWidth: [{
|
|
1818
|
+
type: i0.Input,
|
|
1819
|
+
args: [{
|
|
1820
|
+
isSignal: true,
|
|
1821
|
+
alias: "maxWidth",
|
|
1822
|
+
required: false
|
|
1823
|
+
}]
|
|
1824
|
+
}],
|
|
1825
|
+
maxHeight: [{
|
|
1826
|
+
type: i0.Input,
|
|
1827
|
+
args: [{
|
|
1828
|
+
isSignal: true,
|
|
1829
|
+
alias: "maxHeight",
|
|
1830
|
+
required: false
|
|
1831
|
+
}]
|
|
1832
|
+
}],
|
|
1833
|
+
mobileWidth: [{
|
|
1834
|
+
type: i0.Input,
|
|
1835
|
+
args: [{
|
|
1836
|
+
isSignal: true,
|
|
1837
|
+
alias: "mobileWidth",
|
|
1838
|
+
required: false
|
|
1839
|
+
}]
|
|
1840
|
+
}],
|
|
1841
|
+
mobileHeight: [{
|
|
1842
|
+
type: i0.Input,
|
|
1843
|
+
args: [{
|
|
1844
|
+
isSignal: true,
|
|
1845
|
+
alias: "mobileHeight",
|
|
1846
|
+
required: false
|
|
1847
|
+
}]
|
|
1848
|
+
}],
|
|
1849
|
+
mobileFullScreen: [{
|
|
1850
|
+
type: i0.Input,
|
|
1851
|
+
args: [{
|
|
1852
|
+
isSignal: true,
|
|
1853
|
+
alias: "mobileFullScreen",
|
|
1854
|
+
required: false
|
|
1855
|
+
}]
|
|
1856
|
+
}],
|
|
1857
|
+
footerLayout: [{
|
|
1858
|
+
type: i0.Input,
|
|
1859
|
+
args: [{
|
|
1860
|
+
isSignal: true,
|
|
1861
|
+
alias: "footerLayout",
|
|
1862
|
+
required: false
|
|
1863
|
+
}]
|
|
1864
|
+
}],
|
|
1865
|
+
closeAriaLabel: [{
|
|
1866
|
+
type: i0.Input,
|
|
1867
|
+
args: [{
|
|
1868
|
+
isSignal: true,
|
|
1869
|
+
alias: "closeAriaLabel",
|
|
1870
|
+
required: false
|
|
1871
|
+
}]
|
|
1872
|
+
}],
|
|
1873
|
+
ariaLabel: [{
|
|
1874
|
+
type: i0.Input,
|
|
1875
|
+
args: [{
|
|
1876
|
+
isSignal: true,
|
|
1877
|
+
alias: "ariaLabel",
|
|
1878
|
+
required: false
|
|
1879
|
+
}]
|
|
1880
|
+
}],
|
|
1881
|
+
ariaLabelledBy: [{
|
|
1882
|
+
type: i0.Input,
|
|
1883
|
+
args: [{
|
|
1884
|
+
isSignal: true,
|
|
1885
|
+
alias: "ariaLabelledBy",
|
|
1886
|
+
required: false
|
|
1887
|
+
}]
|
|
1888
|
+
}],
|
|
1889
|
+
ariaDescribedBy: [{
|
|
1890
|
+
type: i0.Input,
|
|
1891
|
+
args: [{
|
|
1892
|
+
isSignal: true,
|
|
1893
|
+
alias: "ariaDescribedBy",
|
|
1894
|
+
required: false
|
|
1895
|
+
}]
|
|
1896
|
+
}],
|
|
1897
|
+
opened: [{
|
|
1898
|
+
type: i0.Output,
|
|
1899
|
+
args: ["opened"]
|
|
1900
|
+
}],
|
|
1901
|
+
closed: [{
|
|
1902
|
+
type: i0.Output,
|
|
1903
|
+
args: ["closed"]
|
|
1904
|
+
}]
|
|
1905
|
+
}
|
|
1906
|
+
});
|
|
536
1907
|
const AerisDrawerModule = [
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
1908
|
+
AerisDrawer,
|
|
1909
|
+
AerisDrawerHeaderTemplate,
|
|
1910
|
+
AerisDrawerFooterTemplate,
|
|
1911
|
+
AerisDrawerCloseIconTemplate,
|
|
1912
|
+
AerisDrawerHeadlessTemplate
|
|
542
1913
|
];
|
|
543
|
-
|
|
544
|
-
/**
|
|
545
|
-
* Generated bundle index. Do not edit.
|
|
546
|
-
*/
|
|
547
|
-
|
|
548
1914
|
export { AerisDrawer, AerisDrawerCloseIconTemplate, AerisDrawerFooterTemplate, AerisDrawerHeaderTemplate, AerisDrawerHeadlessTemplate, AerisDrawerModule };
|
|
549
|
-
|
|
1915
|
+
|
|
1916
|
+
//# sourceMappingURL=aeris-ui-core-drawer.mjs.map
|