@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,134 +1,280 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, afterNextRender, booleanAttribute, computed, input, numberAttribute, output, signal, viewChild } from "@angular/core";
|
|
4
3
|
let nextScrollPanelId = 0;
|
|
5
|
-
class AerisScrollPanel {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
4
|
+
var AerisScrollPanel = class AerisScrollPanel {
|
|
5
|
+
instanceId = ++nextScrollPanelId;
|
|
6
|
+
viewport = viewChild("viewport", ...ngDevMode ? [{ debugName: "viewport" }] : /* istanbul ignore next */ []);
|
|
7
|
+
canScrollTop = signal(false, ...ngDevMode ? [{ debugName: "canScrollTop" }] : /* istanbul ignore next */ []);
|
|
8
|
+
canScrollBottom = signal(false, ...ngDevMode ? [{ debugName: "canScrollBottom" }] : /* istanbul ignore next */ []);
|
|
9
|
+
canScrollStart = signal(false, ...ngDevMode ? [{ debugName: "canScrollStart" }] : /* istanbul ignore next */ []);
|
|
10
|
+
canScrollEnd = signal(false, ...ngDevMode ? [{ debugName: "canScrollEnd" }] : /* istanbul ignore next */ []);
|
|
11
|
+
id = input(`aeris-scroll-panel-${this.instanceId}`, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
|
|
12
|
+
orientation = input("vertical", ...ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []);
|
|
13
|
+
variant = input("auto", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
14
|
+
fade = input(false, {
|
|
15
|
+
...ngDevMode ? { debugName: "fade" } : /* istanbul ignore next */ {},
|
|
16
|
+
transform: booleanAttribute
|
|
17
|
+
});
|
|
18
|
+
fluid = input(true, {
|
|
19
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
20
|
+
transform: booleanAttribute
|
|
21
|
+
});
|
|
22
|
+
focusable = input(true, {
|
|
23
|
+
...ngDevMode ? { debugName: "focusable" } : /* istanbul ignore next */ {},
|
|
24
|
+
transform: booleanAttribute
|
|
25
|
+
});
|
|
26
|
+
tabIndex = input(0, {
|
|
27
|
+
...ngDevMode ? { debugName: "tabIndex" } : /* istanbul ignore next */ {},
|
|
28
|
+
transform: numberAttribute
|
|
29
|
+
});
|
|
30
|
+
height = input("14rem", ...ngDevMode ? [{ debugName: "height" }] : /* istanbul ignore next */ []);
|
|
31
|
+
maxHeight = input("", ...ngDevMode ? [{ debugName: "maxHeight" }] : /* istanbul ignore next */ []);
|
|
32
|
+
width = input("100%", ...ngDevMode ? [{ debugName: "width" }] : /* istanbul ignore next */ []);
|
|
33
|
+
maxWidth = input("", ...ngDevMode ? [{ debugName: "maxWidth" }] : /* istanbul ignore next */ []);
|
|
34
|
+
role = input("region", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
|
|
35
|
+
ariaLabel = input("Scrollable content", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
36
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
37
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
38
|
+
scrolled = output();
|
|
39
|
+
reachedTop = output();
|
|
40
|
+
reachedBottom = output();
|
|
41
|
+
reachedStart = output();
|
|
42
|
+
reachedEnd = output();
|
|
43
|
+
viewportId = computed(() => `${this.id()}-viewport`, ...ngDevMode ? [{ debugName: "viewportId" }] : /* istanbul ignore next */ []);
|
|
44
|
+
resolvedAriaLabel = computed(() => this.ariaLabelledBy() ? null : this.ariaLabel() || null, ...ngDevMode ? [{ debugName: "resolvedAriaLabel" }] : /* istanbul ignore next */ []);
|
|
45
|
+
constructor() {
|
|
46
|
+
afterNextRender(() => this.refresh());
|
|
47
|
+
}
|
|
48
|
+
scrollTo(options) {
|
|
49
|
+
this.viewportElement()?.scrollTo(options);
|
|
50
|
+
}
|
|
51
|
+
scrollBy(options) {
|
|
52
|
+
this.viewportElement()?.scrollBy(options);
|
|
53
|
+
}
|
|
54
|
+
scrollToTop(options = {}) {
|
|
55
|
+
this.scrollTo({
|
|
56
|
+
...options,
|
|
57
|
+
top: 0
|
|
58
|
+
});
|
|
59
|
+
}
|
|
60
|
+
scrollToBottom(options = {}) {
|
|
61
|
+
const viewport = this.viewportElement();
|
|
62
|
+
if (!viewport) return;
|
|
63
|
+
this.scrollTo({
|
|
64
|
+
...options,
|
|
65
|
+
top: viewport.scrollHeight - viewport.clientHeight
|
|
66
|
+
});
|
|
67
|
+
}
|
|
68
|
+
scrollToStart(options = {}) {
|
|
69
|
+
this.scrollTo({
|
|
70
|
+
...options,
|
|
71
|
+
left: 0
|
|
72
|
+
});
|
|
73
|
+
}
|
|
74
|
+
scrollToEnd(options = {}) {
|
|
75
|
+
const viewport = this.viewportElement();
|
|
76
|
+
if (!viewport) return;
|
|
77
|
+
this.scrollTo({
|
|
78
|
+
...options,
|
|
79
|
+
left: viewport.scrollWidth - viewport.clientWidth
|
|
80
|
+
});
|
|
81
|
+
}
|
|
82
|
+
refresh() {
|
|
83
|
+
const viewport = this.viewportElement();
|
|
84
|
+
if (!viewport) return;
|
|
85
|
+
this.updateScrollState(this.createScrollEvent(viewport, null));
|
|
86
|
+
}
|
|
87
|
+
handleScroll(event) {
|
|
88
|
+
const target = event.currentTarget;
|
|
89
|
+
if (!(target instanceof HTMLElement)) return;
|
|
90
|
+
const scrollEvent = this.createScrollEvent(target, event);
|
|
91
|
+
this.updateScrollState(scrollEvent);
|
|
92
|
+
this.scrolled.emit(scrollEvent);
|
|
93
|
+
if (scrollEvent.atTop) this.reachedTop.emit(scrollEvent);
|
|
94
|
+
if (scrollEvent.atBottom) this.reachedBottom.emit(scrollEvent);
|
|
95
|
+
if (scrollEvent.atStart) this.reachedStart.emit(scrollEvent);
|
|
96
|
+
if (scrollEvent.atEnd) this.reachedEnd.emit(scrollEvent);
|
|
97
|
+
}
|
|
98
|
+
viewportElement() {
|
|
99
|
+
return this.viewport()?.nativeElement ?? null;
|
|
100
|
+
}
|
|
101
|
+
createScrollEvent(viewport, originalEvent) {
|
|
102
|
+
const tolerance = 1;
|
|
103
|
+
const maxTop = Math.max(0, viewport.scrollHeight - viewport.clientHeight);
|
|
104
|
+
const maxLeft = Math.max(0, viewport.scrollWidth - viewport.clientWidth);
|
|
105
|
+
const scrollTop = viewport.scrollTop;
|
|
106
|
+
const scrollLeft = viewport.scrollLeft;
|
|
107
|
+
return {
|
|
108
|
+
originalEvent,
|
|
109
|
+
scrollTop,
|
|
110
|
+
scrollLeft,
|
|
111
|
+
scrollHeight: viewport.scrollHeight,
|
|
112
|
+
scrollWidth: viewport.scrollWidth,
|
|
113
|
+
clientHeight: viewport.clientHeight,
|
|
114
|
+
clientWidth: viewport.clientWidth,
|
|
115
|
+
atTop: scrollTop <= tolerance,
|
|
116
|
+
atBottom: maxTop - scrollTop <= tolerance,
|
|
117
|
+
atStart: scrollLeft <= tolerance,
|
|
118
|
+
atEnd: maxLeft - scrollLeft <= tolerance
|
|
119
|
+
};
|
|
120
|
+
}
|
|
121
|
+
updateScrollState(event) {
|
|
122
|
+
this.canScrollTop.set(!event.atTop);
|
|
123
|
+
this.canScrollBottom.set(!event.atBottom);
|
|
124
|
+
this.canScrollStart.set(!event.atStart);
|
|
125
|
+
this.canScrollEnd.set(!event.atEnd);
|
|
126
|
+
}
|
|
127
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
128
|
+
minVersion: "12.0.0",
|
|
129
|
+
version: "22.2.3",
|
|
130
|
+
ngImport: i0,
|
|
131
|
+
type: AerisScrollPanel,
|
|
132
|
+
deps: [],
|
|
133
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
134
|
+
});
|
|
135
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
136
|
+
minVersion: "17.2.0",
|
|
137
|
+
version: "22.2.3",
|
|
138
|
+
type: AerisScrollPanel,
|
|
139
|
+
isStandalone: true,
|
|
140
|
+
selector: "aeris-scroll-panel",
|
|
141
|
+
inputs: {
|
|
142
|
+
id: {
|
|
143
|
+
classPropertyName: "id",
|
|
144
|
+
publicName: "id",
|
|
145
|
+
isSignal: true,
|
|
146
|
+
isRequired: false,
|
|
147
|
+
transformFunction: null
|
|
148
|
+
},
|
|
149
|
+
orientation: {
|
|
150
|
+
classPropertyName: "orientation",
|
|
151
|
+
publicName: "orientation",
|
|
152
|
+
isSignal: true,
|
|
153
|
+
isRequired: false,
|
|
154
|
+
transformFunction: null
|
|
155
|
+
},
|
|
156
|
+
variant: {
|
|
157
|
+
classPropertyName: "variant",
|
|
158
|
+
publicName: "variant",
|
|
159
|
+
isSignal: true,
|
|
160
|
+
isRequired: false,
|
|
161
|
+
transformFunction: null
|
|
162
|
+
},
|
|
163
|
+
fade: {
|
|
164
|
+
classPropertyName: "fade",
|
|
165
|
+
publicName: "fade",
|
|
166
|
+
isSignal: true,
|
|
167
|
+
isRequired: false,
|
|
168
|
+
transformFunction: null
|
|
169
|
+
},
|
|
170
|
+
fluid: {
|
|
171
|
+
classPropertyName: "fluid",
|
|
172
|
+
publicName: "fluid",
|
|
173
|
+
isSignal: true,
|
|
174
|
+
isRequired: false,
|
|
175
|
+
transformFunction: null
|
|
176
|
+
},
|
|
177
|
+
focusable: {
|
|
178
|
+
classPropertyName: "focusable",
|
|
179
|
+
publicName: "focusable",
|
|
180
|
+
isSignal: true,
|
|
181
|
+
isRequired: false,
|
|
182
|
+
transformFunction: null
|
|
183
|
+
},
|
|
184
|
+
tabIndex: {
|
|
185
|
+
classPropertyName: "tabIndex",
|
|
186
|
+
publicName: "tabIndex",
|
|
187
|
+
isSignal: true,
|
|
188
|
+
isRequired: false,
|
|
189
|
+
transformFunction: null
|
|
190
|
+
},
|
|
191
|
+
height: {
|
|
192
|
+
classPropertyName: "height",
|
|
193
|
+
publicName: "height",
|
|
194
|
+
isSignal: true,
|
|
195
|
+
isRequired: false,
|
|
196
|
+
transformFunction: null
|
|
197
|
+
},
|
|
198
|
+
maxHeight: {
|
|
199
|
+
classPropertyName: "maxHeight",
|
|
200
|
+
publicName: "maxHeight",
|
|
201
|
+
isSignal: true,
|
|
202
|
+
isRequired: false,
|
|
203
|
+
transformFunction: null
|
|
204
|
+
},
|
|
205
|
+
width: {
|
|
206
|
+
classPropertyName: "width",
|
|
207
|
+
publicName: "width",
|
|
208
|
+
isSignal: true,
|
|
209
|
+
isRequired: false,
|
|
210
|
+
transformFunction: null
|
|
211
|
+
},
|
|
212
|
+
maxWidth: {
|
|
213
|
+
classPropertyName: "maxWidth",
|
|
214
|
+
publicName: "maxWidth",
|
|
215
|
+
isSignal: true,
|
|
216
|
+
isRequired: false,
|
|
217
|
+
transformFunction: null
|
|
218
|
+
},
|
|
219
|
+
role: {
|
|
220
|
+
classPropertyName: "role",
|
|
221
|
+
publicName: "role",
|
|
222
|
+
isSignal: true,
|
|
223
|
+
isRequired: false,
|
|
224
|
+
transformFunction: null
|
|
225
|
+
},
|
|
226
|
+
ariaLabel: {
|
|
227
|
+
classPropertyName: "ariaLabel",
|
|
228
|
+
publicName: "ariaLabel",
|
|
229
|
+
isSignal: true,
|
|
230
|
+
isRequired: false,
|
|
231
|
+
transformFunction: null
|
|
232
|
+
},
|
|
233
|
+
ariaLabelledBy: {
|
|
234
|
+
classPropertyName: "ariaLabelledBy",
|
|
235
|
+
publicName: "ariaLabelledBy",
|
|
236
|
+
isSignal: true,
|
|
237
|
+
isRequired: false,
|
|
238
|
+
transformFunction: null
|
|
239
|
+
},
|
|
240
|
+
ariaDescribedBy: {
|
|
241
|
+
classPropertyName: "ariaDescribedBy",
|
|
242
|
+
publicName: "ariaDescribedBy",
|
|
243
|
+
isSignal: true,
|
|
244
|
+
isRequired: false,
|
|
245
|
+
transformFunction: null
|
|
246
|
+
}
|
|
247
|
+
},
|
|
248
|
+
outputs: {
|
|
249
|
+
scrolled: "scrolled",
|
|
250
|
+
reachedTop: "reachedTop",
|
|
251
|
+
reachedBottom: "reachedBottom",
|
|
252
|
+
reachedStart: "reachedStart",
|
|
253
|
+
reachedEnd: "reachedEnd"
|
|
254
|
+
},
|
|
255
|
+
host: {
|
|
256
|
+
properties: {
|
|
257
|
+
"attr.id": "id()",
|
|
258
|
+
"attr.data-orientation": "orientation()",
|
|
259
|
+
"attr.data-variant": "variant()",
|
|
260
|
+
"attr.data-fade": "fade() || null",
|
|
261
|
+
"attr.data-fluid": "fluid() || null",
|
|
262
|
+
"attr.data-scroll-top": "canScrollTop() || null",
|
|
263
|
+
"attr.data-scroll-bottom": "canScrollBottom() || null",
|
|
264
|
+
"attr.data-scroll-start": "canScrollStart() || null",
|
|
265
|
+
"attr.data-scroll-end": "canScrollEnd() || null"
|
|
266
|
+
},
|
|
267
|
+
classAttribute: "aeris-scroll-panel"
|
|
268
|
+
},
|
|
269
|
+
viewQueries: [{
|
|
270
|
+
propertyName: "viewport",
|
|
271
|
+
first: true,
|
|
272
|
+
predicate: ["viewport"],
|
|
273
|
+
descendants: true,
|
|
274
|
+
isSignal: true
|
|
275
|
+
}],
|
|
276
|
+
ngImport: i0,
|
|
277
|
+
template: `
|
|
132
278
|
<div
|
|
133
279
|
class="aeris-scroll-panel__frame"
|
|
134
280
|
[style.block-size]="height() || null"
|
|
@@ -156,11 +302,21 @@ class AerisScrollPanel {
|
|
|
156
302
|
<span class="aeris-scroll-panel__fade aeris-scroll-panel__fade--start" aria-hidden="true"></span>
|
|
157
303
|
<span class="aeris-scroll-panel__fade aeris-scroll-panel__fade--end" aria-hidden="true"></span>
|
|
158
304
|
</div>
|
|
159
|
-
`,
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
305
|
+
`,
|
|
306
|
+
isInline: true,
|
|
307
|
+
styles: [":host{display:block;min-inline-size:0}:host([data-fluid=true]){inline-size:100%}.aeris-scroll-panel__frame{position:relative;min-inline-size:0;overflow:hidden;border:var(--aeris-scroll-panel-border-width, 1px) solid var(--aeris-scroll-panel-border, var(--aeris-border));border-radius:var(--aeris-scroll-panel-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-scroll-panel-background, var(--aeris-surface, #fff));color:var(--aeris-scroll-panel-color, var(--aeris-text, #111111))}.aeris-scroll-panel__frame:has(.aeris-scroll-panel__viewport:focus-visible){outline:var(--aeris-focus-ring-width, 3px) solid color-mix(in srgb,var(--focus, var(--aeris-primary, #111111)) 42%,transparent);outline-offset:3px}.aeris-scroll-panel__viewport{position:relative;z-index:1;min-inline-size:0;inline-size:100%;block-size:100%;overflow:auto;overscroll-behavior:contain;background:transparent;color:inherit;scrollbar-color:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #111111) 34%, transparent)) var(--aeris-scroll-panel-track, transparent);scrollbar-gutter:stable;scrollbar-width:thin}.aeris-scroll-panel__viewport:focus-visible{outline:none}.aeris-scroll-panel__viewport::-webkit-scrollbar{inline-size:var(--aeris-scroll-panel-scrollbar-size, .75rem);block-size:var(--aeris-scroll-panel-scrollbar-size, .75rem)}.aeris-scroll-panel__viewport::-webkit-scrollbar-track{border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-scroll-panel-track, transparent)}.aeris-scroll-panel__viewport::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #111111) 34%, transparent));background-clip:content-box}@media(hover:hover){.aeris-scroll-panel__viewport::-webkit-scrollbar-thumb:hover{background:var(--aeris-scroll-panel-thumb-hover, color-mix(in srgb, var(--aeris-text, #111111) 48%, transparent));background-clip:content-box}}.aeris-scroll-panel__content{min-inline-size:0;padding:var(--aeris-scroll-panel-padding, 1rem);color:var(--aeris-scroll-panel-content-color, var(--aeris-text-2, #454545));font-size:var(--aeris-scroll-panel-content-size, .875rem);line-height:var(--aeris-line-height-relaxed, 1.65)}.aeris-scroll-panel__content>:first-child{margin-block-start:0}.aeris-scroll-panel__content>:last-child{margin-block-end:0}:host([data-orientation=vertical]) .aeris-scroll-panel__viewport{overflow-x:hidden;overflow-y:auto}:host([data-orientation=horizontal]) .aeris-scroll-panel__viewport{overflow-x:auto;overflow-y:hidden}:host([data-orientation=horizontal]) .aeris-scroll-panel__content,:host([data-orientation=both]) .aeris-scroll-panel__content{inline-size:max-content;min-inline-size:100%}:host([data-variant=hover]) .aeris-scroll-panel__viewport{scrollbar-color:transparent transparent}@media(hover:hover){:host([data-variant=hover]) .aeris-scroll-panel__viewport:is(:hover,:focus-within){scrollbar-color:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #111111) 34%, transparent)) var(--aeris-scroll-panel-track, transparent)}}:host([data-variant=hover]) .aeris-scroll-panel__viewport::-webkit-scrollbar-thumb{background:transparent}@media(hover:hover){:host([data-variant=hover]) .aeris-scroll-panel__viewport:is(:hover,:focus-within)::-webkit-scrollbar-thumb{background:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #111111) 34%, transparent));background-clip:content-box}}:host([data-variant=always]) .aeris-scroll-panel__viewport{scrollbar-color:var(--aeris-scroll-panel-thumb-always, color-mix(in srgb, var(--aeris-text, #111111) 42%, transparent)) var(--aeris-scroll-panel-track-always, color-mix(in srgb, var(--aeris-text, #111111) 8%, transparent))}:host([data-variant=always]) .aeris-scroll-panel__viewport::-webkit-scrollbar-track{background:var(--aeris-scroll-panel-track-always, color-mix(in srgb, var(--aeris-text, #111111) 8%, transparent))}:host([data-variant=always]) .aeris-scroll-panel__viewport::-webkit-scrollbar-thumb{background:var(--aeris-scroll-panel-thumb-always, color-mix(in srgb, var(--aeris-text, #111111) 42%, transparent));background-clip:content-box}:host([data-variant=hidden]) .aeris-scroll-panel__viewport{scrollbar-width:none}:host([data-variant=hidden]) .aeris-scroll-panel__viewport::-webkit-scrollbar{display:none}.aeris-scroll-panel__fade{--_fade-size: var(--aeris-scroll-panel-fade-size, 2rem);position:absolute;z-index:2;display:block;pointer-events:none;opacity:0;transition:opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-scroll-panel__fade--top,.aeris-scroll-panel__fade--bottom{inset-inline:0;block-size:var(--_fade-size)}.aeris-scroll-panel__fade--top{inset-block-start:0;background:linear-gradient(to bottom,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}.aeris-scroll-panel__fade--bottom{inset-block-end:0;background:linear-gradient(to top,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}.aeris-scroll-panel__fade--start,.aeris-scroll-panel__fade--end{inset-block:0;inline-size:var(--_fade-size)}.aeris-scroll-panel__fade--start{inset-inline-start:0;background:linear-gradient(to right,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}.aeris-scroll-panel__fade--end{inset-inline-end:0;background:linear-gradient(to left,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}:host([data-fade=true][data-scroll-top=true]) .aeris-scroll-panel__fade--top,:host([data-fade=true][data-scroll-bottom=true]) .aeris-scroll-panel__fade--bottom,:host([data-fade=true][data-scroll-start=true]) .aeris-scroll-panel__fade--start,:host([data-fade=true][data-scroll-end=true]) .aeris-scroll-panel__fade--end{opacity:1}@media(prefers-reduced-motion:reduce){.aeris-scroll-panel__viewport{scroll-behavior:auto}.aeris-scroll-panel__fade{transition:none}}\n"]
|
|
308
|
+
});
|
|
309
|
+
};
|
|
310
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
311
|
+
minVersion: "12.0.0",
|
|
312
|
+
version: "22.2.3",
|
|
313
|
+
ngImport: i0,
|
|
314
|
+
type: AerisScrollPanel,
|
|
315
|
+
decorators: [{
|
|
316
|
+
type: Component,
|
|
317
|
+
args: [{
|
|
318
|
+
selector: "aeris-scroll-panel",
|
|
319
|
+
template: `
|
|
164
320
|
<div
|
|
165
321
|
class="aeris-scroll-panel__frame"
|
|
166
322
|
[style.block-size]="height() || null"
|
|
@@ -188,24 +344,171 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
188
344
|
<span class="aeris-scroll-panel__fade aeris-scroll-panel__fade--start" aria-hidden="true"></span>
|
|
189
345
|
<span class="aeris-scroll-panel__fade aeris-scroll-panel__fade--end" aria-hidden="true"></span>
|
|
190
346
|
</div>
|
|
191
|
-
`,
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
347
|
+
`,
|
|
348
|
+
host: {
|
|
349
|
+
class: "aeris-scroll-panel",
|
|
350
|
+
"[attr.id]": "id()",
|
|
351
|
+
"[attr.data-orientation]": "orientation()",
|
|
352
|
+
"[attr.data-variant]": "variant()",
|
|
353
|
+
"[attr.data-fade]": "fade() || null",
|
|
354
|
+
"[attr.data-fluid]": "fluid() || null",
|
|
355
|
+
"[attr.data-scroll-top]": "canScrollTop() || null",
|
|
356
|
+
"[attr.data-scroll-bottom]": "canScrollBottom() || null",
|
|
357
|
+
"[attr.data-scroll-start]": "canScrollStart() || null",
|
|
358
|
+
"[attr.data-scroll-end]": "canScrollEnd() || null"
|
|
359
|
+
},
|
|
360
|
+
styles: [":host{display:block;min-inline-size:0}:host([data-fluid=true]){inline-size:100%}.aeris-scroll-panel__frame{position:relative;min-inline-size:0;overflow:hidden;border:var(--aeris-scroll-panel-border-width, 1px) solid var(--aeris-scroll-panel-border, var(--aeris-border));border-radius:var(--aeris-scroll-panel-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-scroll-panel-background, var(--aeris-surface, #fff));color:var(--aeris-scroll-panel-color, var(--aeris-text, #111111))}.aeris-scroll-panel__frame:has(.aeris-scroll-panel__viewport:focus-visible){outline:var(--aeris-focus-ring-width, 3px) solid color-mix(in srgb,var(--focus, var(--aeris-primary, #111111)) 42%,transparent);outline-offset:3px}.aeris-scroll-panel__viewport{position:relative;z-index:1;min-inline-size:0;inline-size:100%;block-size:100%;overflow:auto;overscroll-behavior:contain;background:transparent;color:inherit;scrollbar-color:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #111111) 34%, transparent)) var(--aeris-scroll-panel-track, transparent);scrollbar-gutter:stable;scrollbar-width:thin}.aeris-scroll-panel__viewport:focus-visible{outline:none}.aeris-scroll-panel__viewport::-webkit-scrollbar{inline-size:var(--aeris-scroll-panel-scrollbar-size, .75rem);block-size:var(--aeris-scroll-panel-scrollbar-size, .75rem)}.aeris-scroll-panel__viewport::-webkit-scrollbar-track{border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-scroll-panel-track, transparent)}.aeris-scroll-panel__viewport::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #111111) 34%, transparent));background-clip:content-box}@media(hover:hover){.aeris-scroll-panel__viewport::-webkit-scrollbar-thumb:hover{background:var(--aeris-scroll-panel-thumb-hover, color-mix(in srgb, var(--aeris-text, #111111) 48%, transparent));background-clip:content-box}}.aeris-scroll-panel__content{min-inline-size:0;padding:var(--aeris-scroll-panel-padding, 1rem);color:var(--aeris-scroll-panel-content-color, var(--aeris-text-2, #454545));font-size:var(--aeris-scroll-panel-content-size, .875rem);line-height:var(--aeris-line-height-relaxed, 1.65)}.aeris-scroll-panel__content>:first-child{margin-block-start:0}.aeris-scroll-panel__content>:last-child{margin-block-end:0}:host([data-orientation=vertical]) .aeris-scroll-panel__viewport{overflow-x:hidden;overflow-y:auto}:host([data-orientation=horizontal]) .aeris-scroll-panel__viewport{overflow-x:auto;overflow-y:hidden}:host([data-orientation=horizontal]) .aeris-scroll-panel__content,:host([data-orientation=both]) .aeris-scroll-panel__content{inline-size:max-content;min-inline-size:100%}:host([data-variant=hover]) .aeris-scroll-panel__viewport{scrollbar-color:transparent transparent}@media(hover:hover){:host([data-variant=hover]) .aeris-scroll-panel__viewport:is(:hover,:focus-within){scrollbar-color:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #111111) 34%, transparent)) var(--aeris-scroll-panel-track, transparent)}}:host([data-variant=hover]) .aeris-scroll-panel__viewport::-webkit-scrollbar-thumb{background:transparent}@media(hover:hover){:host([data-variant=hover]) .aeris-scroll-panel__viewport:is(:hover,:focus-within)::-webkit-scrollbar-thumb{background:var(--aeris-scroll-panel-thumb, color-mix(in srgb, var(--aeris-text, #111111) 34%, transparent));background-clip:content-box}}:host([data-variant=always]) .aeris-scroll-panel__viewport{scrollbar-color:var(--aeris-scroll-panel-thumb-always, color-mix(in srgb, var(--aeris-text, #111111) 42%, transparent)) var(--aeris-scroll-panel-track-always, color-mix(in srgb, var(--aeris-text, #111111) 8%, transparent))}:host([data-variant=always]) .aeris-scroll-panel__viewport::-webkit-scrollbar-track{background:var(--aeris-scroll-panel-track-always, color-mix(in srgb, var(--aeris-text, #111111) 8%, transparent))}:host([data-variant=always]) .aeris-scroll-panel__viewport::-webkit-scrollbar-thumb{background:var(--aeris-scroll-panel-thumb-always, color-mix(in srgb, var(--aeris-text, #111111) 42%, transparent));background-clip:content-box}:host([data-variant=hidden]) .aeris-scroll-panel__viewport{scrollbar-width:none}:host([data-variant=hidden]) .aeris-scroll-panel__viewport::-webkit-scrollbar{display:none}.aeris-scroll-panel__fade{--_fade-size: var(--aeris-scroll-panel-fade-size, 2rem);position:absolute;z-index:2;display:block;pointer-events:none;opacity:0;transition:opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-scroll-panel__fade--top,.aeris-scroll-panel__fade--bottom{inset-inline:0;block-size:var(--_fade-size)}.aeris-scroll-panel__fade--top{inset-block-start:0;background:linear-gradient(to bottom,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}.aeris-scroll-panel__fade--bottom{inset-block-end:0;background:linear-gradient(to top,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}.aeris-scroll-panel__fade--start,.aeris-scroll-panel__fade--end{inset-block:0;inline-size:var(--_fade-size)}.aeris-scroll-panel__fade--start{inset-inline-start:0;background:linear-gradient(to right,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}.aeris-scroll-panel__fade--end{inset-inline-end:0;background:linear-gradient(to left,var(--aeris-scroll-panel-background, var(--aeris-surface, #fff)),transparent)}:host([data-fade=true][data-scroll-top=true]) .aeris-scroll-panel__fade--top,:host([data-fade=true][data-scroll-bottom=true]) .aeris-scroll-panel__fade--bottom,:host([data-fade=true][data-scroll-start=true]) .aeris-scroll-panel__fade--start,:host([data-fade=true][data-scroll-end=true]) .aeris-scroll-panel__fade--end{opacity:1}@media(prefers-reduced-motion:reduce){.aeris-scroll-panel__viewport{scroll-behavior:auto}.aeris-scroll-panel__fade{transition:none}}\n"]
|
|
361
|
+
}]
|
|
362
|
+
}],
|
|
363
|
+
ctorParameters: () => [],
|
|
364
|
+
propDecorators: {
|
|
365
|
+
viewport: [{
|
|
366
|
+
type: i0.ViewChild,
|
|
367
|
+
args: ["viewport", { isSignal: true }]
|
|
368
|
+
}],
|
|
369
|
+
id: [{
|
|
370
|
+
type: i0.Input,
|
|
371
|
+
args: [{
|
|
372
|
+
isSignal: true,
|
|
373
|
+
alias: "id",
|
|
374
|
+
required: false
|
|
375
|
+
}]
|
|
376
|
+
}],
|
|
377
|
+
orientation: [{
|
|
378
|
+
type: i0.Input,
|
|
379
|
+
args: [{
|
|
380
|
+
isSignal: true,
|
|
381
|
+
alias: "orientation",
|
|
382
|
+
required: false
|
|
383
|
+
}]
|
|
384
|
+
}],
|
|
385
|
+
variant: [{
|
|
386
|
+
type: i0.Input,
|
|
387
|
+
args: [{
|
|
388
|
+
isSignal: true,
|
|
389
|
+
alias: "variant",
|
|
390
|
+
required: false
|
|
391
|
+
}]
|
|
392
|
+
}],
|
|
393
|
+
fade: [{
|
|
394
|
+
type: i0.Input,
|
|
395
|
+
args: [{
|
|
396
|
+
isSignal: true,
|
|
397
|
+
alias: "fade",
|
|
398
|
+
required: false
|
|
399
|
+
}]
|
|
400
|
+
}],
|
|
401
|
+
fluid: [{
|
|
402
|
+
type: i0.Input,
|
|
403
|
+
args: [{
|
|
404
|
+
isSignal: true,
|
|
405
|
+
alias: "fluid",
|
|
406
|
+
required: false
|
|
407
|
+
}]
|
|
408
|
+
}],
|
|
409
|
+
focusable: [{
|
|
410
|
+
type: i0.Input,
|
|
411
|
+
args: [{
|
|
412
|
+
isSignal: true,
|
|
413
|
+
alias: "focusable",
|
|
414
|
+
required: false
|
|
415
|
+
}]
|
|
416
|
+
}],
|
|
417
|
+
tabIndex: [{
|
|
418
|
+
type: i0.Input,
|
|
419
|
+
args: [{
|
|
420
|
+
isSignal: true,
|
|
421
|
+
alias: "tabIndex",
|
|
422
|
+
required: false
|
|
423
|
+
}]
|
|
424
|
+
}],
|
|
425
|
+
height: [{
|
|
426
|
+
type: i0.Input,
|
|
427
|
+
args: [{
|
|
428
|
+
isSignal: true,
|
|
429
|
+
alias: "height",
|
|
430
|
+
required: false
|
|
431
|
+
}]
|
|
432
|
+
}],
|
|
433
|
+
maxHeight: [{
|
|
434
|
+
type: i0.Input,
|
|
435
|
+
args: [{
|
|
436
|
+
isSignal: true,
|
|
437
|
+
alias: "maxHeight",
|
|
438
|
+
required: false
|
|
439
|
+
}]
|
|
440
|
+
}],
|
|
441
|
+
width: [{
|
|
442
|
+
type: i0.Input,
|
|
443
|
+
args: [{
|
|
444
|
+
isSignal: true,
|
|
445
|
+
alias: "width",
|
|
446
|
+
required: false
|
|
447
|
+
}]
|
|
448
|
+
}],
|
|
449
|
+
maxWidth: [{
|
|
450
|
+
type: i0.Input,
|
|
451
|
+
args: [{
|
|
452
|
+
isSignal: true,
|
|
453
|
+
alias: "maxWidth",
|
|
454
|
+
required: false
|
|
455
|
+
}]
|
|
456
|
+
}],
|
|
457
|
+
role: [{
|
|
458
|
+
type: i0.Input,
|
|
459
|
+
args: [{
|
|
460
|
+
isSignal: true,
|
|
461
|
+
alias: "role",
|
|
462
|
+
required: false
|
|
463
|
+
}]
|
|
464
|
+
}],
|
|
465
|
+
ariaLabel: [{
|
|
466
|
+
type: i0.Input,
|
|
467
|
+
args: [{
|
|
468
|
+
isSignal: true,
|
|
469
|
+
alias: "ariaLabel",
|
|
470
|
+
required: false
|
|
471
|
+
}]
|
|
472
|
+
}],
|
|
473
|
+
ariaLabelledBy: [{
|
|
474
|
+
type: i0.Input,
|
|
475
|
+
args: [{
|
|
476
|
+
isSignal: true,
|
|
477
|
+
alias: "ariaLabelledBy",
|
|
478
|
+
required: false
|
|
479
|
+
}]
|
|
480
|
+
}],
|
|
481
|
+
ariaDescribedBy: [{
|
|
482
|
+
type: i0.Input,
|
|
483
|
+
args: [{
|
|
484
|
+
isSignal: true,
|
|
485
|
+
alias: "ariaDescribedBy",
|
|
486
|
+
required: false
|
|
487
|
+
}]
|
|
488
|
+
}],
|
|
489
|
+
scrolled: [{
|
|
490
|
+
type: i0.Output,
|
|
491
|
+
args: ["scrolled"]
|
|
492
|
+
}],
|
|
493
|
+
reachedTop: [{
|
|
494
|
+
type: i0.Output,
|
|
495
|
+
args: ["reachedTop"]
|
|
496
|
+
}],
|
|
497
|
+
reachedBottom: [{
|
|
498
|
+
type: i0.Output,
|
|
499
|
+
args: ["reachedBottom"]
|
|
500
|
+
}],
|
|
501
|
+
reachedStart: [{
|
|
502
|
+
type: i0.Output,
|
|
503
|
+
args: ["reachedStart"]
|
|
504
|
+
}],
|
|
505
|
+
reachedEnd: [{
|
|
506
|
+
type: i0.Output,
|
|
507
|
+
args: ["reachedEnd"]
|
|
508
|
+
}]
|
|
509
|
+
}
|
|
510
|
+
});
|
|
204
511
|
const AerisScrollPanelModule = [AerisScrollPanel];
|
|
205
|
-
|
|
206
|
-
/**
|
|
207
|
-
* Generated bundle index. Do not edit.
|
|
208
|
-
*/
|
|
209
|
-
|
|
210
512
|
export { AerisScrollPanel, AerisScrollPanelModule };
|
|
211
|
-
|
|
513
|
+
|
|
514
|
+
//# sourceMappingURL=aeris-ui-core-scroll-panel.mjs.map
|