@aeris-ui/core 22.0.0-alpha.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +189 -0
- package/fesm2022/aeris-ui-core-accordion.mjs +412 -0
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +107 -0
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-auto-complete.mjs +754 -0
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-auto-focus.mjs +63 -0
- package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-avatar.mjs +133 -0
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-badge.mjs +163 -0
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-block-ui.mjs +139 -0
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +433 -0
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-button-group.mjs +39 -0
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-button.mjs +246 -0
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-card.mjs +134 -0
- package/fesm2022/aeris-ui-core-card.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-carousel.mjs +542 -0
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-cascade-select.mjs +673 -0
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-chart.mjs +296 -0
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-checkbox.mjs +220 -0
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-chip.mjs +200 -0
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-class-names.mjs +67 -0
- package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs +1192 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-compare.mjs +508 -0
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +818 -0
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1010 -0
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-context-menu.mjs +720 -0
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-date-picker.mjs +1471 -0
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-dialog.mjs +574 -0
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-divider.mjs +51 -0
- package/fesm2022/aeris-ui-core-divider.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-drawer.mjs +549 -0
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +333 -0
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-editor.mjs +1548 -0
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-file-upload.mjs +965 -0
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-filter-service.mjs +304 -0
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-fluid.mjs +23 -0
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-focus-trap.mjs +185 -0
- package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-galleria.mjs +1657 -0
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-glass.mjs +35 -0
- package/fesm2022/aeris-ui-core-glass.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-icon-field.mjs +113 -0
- package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-inplace.mjs +243 -0
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-group.mjs +110 -0
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-mask.mjs +343 -0
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-number.mjs +497 -0
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-otp.mjs +361 -0
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-input-text.mjs +226 -0
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-key-filter.mjs +208 -0
- package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-mega-menu.mjs +835 -0
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-menu.mjs +796 -0
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-menubar.mjs +729 -0
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-message.mjs +225 -0
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-meter-group.mjs +377 -0
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-multi-select.mjs +1033 -0
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-order-list.mjs +351 -0
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-organization-chart.mjs +382 -0
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-paginator.mjs +254 -0
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-panel.mjs +352 -0
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-password.mjs +479 -0
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-pick-list.mjs +939 -0
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-popover.mjs +535 -0
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-progress-bar.mjs +260 -0
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +218 -0
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-radio-button.mjs +194 -0
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-rating.mjs +385 -0
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +211 -0
- package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-scroll-top.mjs +94 -0
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-select.mjs +1134 -0
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-skeleton.mjs +47 -0
- package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-slider.mjs +724 -0
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-speed-dial.mjs +589 -0
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-split-button.mjs +532 -0
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-splitter.mjs +488 -0
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-stepper.mjs +437 -0
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-style-class.mjs +344 -0
- package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-table.mjs +1580 -0
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tabs.mjs +438 -0
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-textarea.mjs +349 -0
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1565 -0
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-theming.mjs +150 -0
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +718 -0
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-timeline.mjs +278 -0
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-toast.mjs +422 -0
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +202 -0
- package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-toolbar.mjs +136 -0
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tooltip.mjs +365 -0
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tree-select.mjs +995 -0
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tree-table.mjs +1600 -0
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-tree.mjs +962 -0
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -0
- package/fesm2022/aeris-ui-core.mjs +360 -0
- package/fesm2022/aeris-ui-core.mjs.map +1 -0
- package/package.json +432 -0
- package/schematics/aeris-setup.schema.json +52 -0
- package/schematics/collection.json +10 -0
- package/schematics/ng-add/schema.json +64 -0
- package/schematics/runtime/package.json +3 -0
- package/schematics/runtime/schematics/ng-add/index.js +13 -0
- package/schematics/runtime/schematics/ng-add/index.js.map +1 -0
- package/schematics/runtime/schematics/ng-add/options.js +338 -0
- package/schematics/runtime/schematics/ng-add/options.js.map +1 -0
- package/schematics/runtime/schematics/ng-add/schema.js +3 -0
- package/schematics/runtime/schematics/ng-add/schema.js.map +1 -0
- package/schematics/runtime/schematics/ng-add/workspace.js +273 -0
- package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-color-derivation.js +12 -0
- package/schematics/runtime/theme-builder/aeris-color-derivation.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-color.js +263 -0
- package/schematics/runtime/theme-builder/aeris-color.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-contrast.js +245 -0
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-foundation.js +47 -0
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +121 -0
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +238 -0
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +101 -0
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +82 -0
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +183 -0
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -0
- package/schematics/runtime/theme-builder/aeris-theme.js +322 -0
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -0
- package/schematics/runtime/theme-builder/public-api.js +17 -0
- package/schematics/runtime/theme-builder/public-api.js.map +1 -0
- package/styles/_index.scss +1 -0
- package/styles/_tokens.scss +13 -0
- package/styles/aeris.css +555 -0
- package/styles/controls.css +169 -0
- package/tools/aeris-theme.mjs +149 -0
- package/tools/aeris-theme.schema.json +143 -0
- package/types/aeris-ui-core-accordion.d.ts +101 -0
- package/types/aeris-ui-core-animate-on-scroll.d.ts +34 -0
- package/types/aeris-ui-core-auto-complete.d.ts +154 -0
- package/types/aeris-ui-core-auto-focus.d.ts +17 -0
- package/types/aeris-ui-core-avatar.d.ts +44 -0
- package/types/aeris-ui-core-badge.d.ts +48 -0
- package/types/aeris-ui-core-block-ui.d.ts +28 -0
- package/types/aeris-ui-core-breadcrumb.d.ts +104 -0
- package/types/aeris-ui-core-button-group.d.ts +17 -0
- package/types/aeris-ui-core-button.d.ts +71 -0
- package/types/aeris-ui-core-card.d.ts +43 -0
- package/types/aeris-ui-core-carousel.d.ts +126 -0
- package/types/aeris-ui-core-cascade-select.d.ts +130 -0
- package/types/aeris-ui-core-chart.d.ts +92 -0
- package/types/aeris-ui-core-checkbox.d.ts +55 -0
- package/types/aeris-ui-core-chip.d.ts +56 -0
- package/types/aeris-ui-core-class-names.d.ts +21 -0
- package/types/aeris-ui-core-color-picker.d.ts +149 -0
- package/types/aeris-ui-core-compare.d.ts +109 -0
- package/types/aeris-ui-core-confirm-dialog.d.ts +263 -0
- package/types/aeris-ui-core-confirm-popup.d.ts +281 -0
- package/types/aeris-ui-core-context-menu.d.ts +156 -0
- package/types/aeris-ui-core-date-picker.d.ts +226 -0
- package/types/aeris-ui-core-dialog.d.ts +124 -0
- package/types/aeris-ui-core-divider.d.ts +21 -0
- package/types/aeris-ui-core-drawer.d.ts +119 -0
- package/types/aeris-ui-core-dynamic-dialog.d.ts +148 -0
- package/types/aeris-ui-core-editor.d.ts +130 -0
- package/types/aeris-ui-core-file-upload.d.ts +199 -0
- package/types/aeris-ui-core-filter-service.d.ts +54 -0
- package/types/aeris-ui-core-fluid.d.ts +10 -0
- package/types/aeris-ui-core-focus-trap.d.ts +32 -0
- package/types/aeris-ui-core-galleria.d.ts +273 -0
- package/types/aeris-ui-core-glass.d.ts +17 -0
- package/types/aeris-ui-core-icon-field.d.ts +36 -0
- package/types/aeris-ui-core-inplace.d.ts +68 -0
- package/types/aeris-ui-core-input-group.d.ts +38 -0
- package/types/aeris-ui-core-input-mask.d.ts +73 -0
- package/types/aeris-ui-core-input-number.d.ts +87 -0
- package/types/aeris-ui-core-input-otp.d.ts +88 -0
- package/types/aeris-ui-core-input-text.d.ts +63 -0
- package/types/aeris-ui-core-key-filter.d.ts +41 -0
- package/types/aeris-ui-core-mega-menu.d.ts +130 -0
- package/types/aeris-ui-core-menu.d.ts +182 -0
- package/types/aeris-ui-core-menubar.d.ts +145 -0
- package/types/aeris-ui-core-message.d.ts +65 -0
- package/types/aeris-ui-core-meter-group.d.ts +100 -0
- package/types/aeris-ui-core-multi-select.d.ts +193 -0
- package/types/aeris-ui-core-order-list.d.ts +73 -0
- package/types/aeris-ui-core-organization-chart.d.ts +85 -0
- package/types/aeris-ui-core-paginator.d.ts +39 -0
- package/types/aeris-ui-core-panel.d.ts +85 -0
- package/types/aeris-ui-core-password.d.ts +110 -0
- package/types/aeris-ui-core-pick-list.d.ts +193 -0
- package/types/aeris-ui-core-popover.d.ts +112 -0
- package/types/aeris-ui-core-progress-bar.d.ts +81 -0
- package/types/aeris-ui-core-progress-spinner.d.ts +51 -0
- package/types/aeris-ui-core-radio-button.d.ts +51 -0
- package/types/aeris-ui-core-rating.d.ts +80 -0
- package/types/aeris-ui-core-scroll-panel.d.ts +66 -0
- package/types/aeris-ui-core-scroll-top.d.ts +29 -0
- package/types/aeris-ui-core-select.d.ts +223 -0
- package/types/aeris-ui-core-skeleton.d.ts +18 -0
- package/types/aeris-ui-core-slider.d.ts +117 -0
- package/types/aeris-ui-core-speed-dial.d.ts +119 -0
- package/types/aeris-ui-core-split-button.d.ts +122 -0
- package/types/aeris-ui-core-splitter.d.ts +113 -0
- package/types/aeris-ui-core-stepper.d.ts +99 -0
- package/types/aeris-ui-core-style-class.d.ts +73 -0
- package/types/aeris-ui-core-table.d.ts +333 -0
- package/types/aeris-ui-core-tabs.d.ts +82 -0
- package/types/aeris-ui-core-textarea.d.ts +80 -0
- package/types/aeris-ui-core-theme-builder.d.ts +499 -0
- package/types/aeris-ui-core-theming.d.ts +47 -0
- package/types/aeris-ui-core-tiered-menu.d.ts +152 -0
- package/types/aeris-ui-core-timeline.d.ts +80 -0
- package/types/aeris-ui-core-toast.d.ts +127 -0
- package/types/aeris-ui-core-toggle-switch.d.ts +52 -0
- package/types/aeris-ui-core-toolbar.d.ts +47 -0
- package/types/aeris-ui-core-tooltip.d.ts +92 -0
- package/types/aeris-ui-core-tree-select.d.ts +187 -0
- package/types/aeris-ui-core-tree-table.d.ts +311 -0
- package/types/aeris-ui-core-tree.d.ts +179 -0
- package/types/aeris-ui-core.d.ts +85 -0
|
@@ -0,0 +1,542 @@
|
|
|
1
|
+
import { DOCUMENT, isPlatformBrowser, NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, TemplateRef, Directive, ElementRef, PLATFORM_ID, DestroyRef, signal, computed, contentChild, input, model, booleanAttribute, output, afterNextRender, effect, Component } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
class AerisCarouselItemTemplate {
|
|
6
|
+
template = inject(TemplateRef);
|
|
7
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisCarouselItemTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
11
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisCarouselItemTemplate, isStandalone: true, selector: "ng-template[aerisCarouselItem]", ngImport: i0 });
|
|
12
|
+
}
|
|
13
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisCarouselItemTemplate, decorators: [{
|
|
14
|
+
type: Directive,
|
|
15
|
+
args: [{ selector: 'ng-template[aerisCarouselItem]' }]
|
|
16
|
+
}] });
|
|
17
|
+
class AerisCarouselHeaderTemplate {
|
|
18
|
+
template = inject(TemplateRef);
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisCarouselHeaderTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
20
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisCarouselHeaderTemplate, isStandalone: true, selector: "ng-template[aerisCarouselHeader]", ngImport: i0 });
|
|
21
|
+
}
|
|
22
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisCarouselHeaderTemplate, decorators: [{
|
|
23
|
+
type: Directive,
|
|
24
|
+
args: [{ selector: 'ng-template[aerisCarouselHeader]' }]
|
|
25
|
+
}] });
|
|
26
|
+
class AerisCarouselFooterTemplate {
|
|
27
|
+
template = inject(TemplateRef);
|
|
28
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisCarouselFooterTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
29
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisCarouselFooterTemplate, isStandalone: true, selector: "ng-template[aerisCarouselFooter]", ngImport: i0 });
|
|
30
|
+
}
|
|
31
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisCarouselFooterTemplate, decorators: [{
|
|
32
|
+
type: Directive,
|
|
33
|
+
args: [{ selector: 'ng-template[aerisCarouselFooter]' }]
|
|
34
|
+
}] });
|
|
35
|
+
class AerisCarousel {
|
|
36
|
+
host = inject((ElementRef));
|
|
37
|
+
document = inject(DOCUMENT);
|
|
38
|
+
platformId = inject(PLATFORM_ID);
|
|
39
|
+
destroyRef = inject(DestroyRef);
|
|
40
|
+
browser = isPlatformBrowser(this.platformId);
|
|
41
|
+
viewportWidth = signal(0, /* @ts-ignore */
|
|
42
|
+
...(ngDevMode ? [{ debugName: "viewportWidth" }] : /* istanbul ignore next */ []));
|
|
43
|
+
hoverPaused = signal(false, /* @ts-ignore */
|
|
44
|
+
...(ngDevMode ? [{ debugName: "hoverPaused" }] : /* istanbul ignore next */ []));
|
|
45
|
+
focusPaused = signal(false, /* @ts-ignore */
|
|
46
|
+
...(ngDevMode ? [{ debugName: "focusPaused" }] : /* istanbul ignore next */ []));
|
|
47
|
+
autoplayStopped = signal(false, /* @ts-ignore */
|
|
48
|
+
...(ngDevMode ? [{ debugName: "autoplayStopped" }] : /* istanbul ignore next */ []));
|
|
49
|
+
paused = computed(() => this.hoverPaused() || this.focusPaused() || this.autoplayStopped(), /* @ts-ignore */
|
|
50
|
+
...(ngDevMode ? [{ debugName: "paused" }] : /* istanbul ignore next */ []));
|
|
51
|
+
pointerStart = signal(null, /* @ts-ignore */
|
|
52
|
+
...(ngDevMode ? [{ debugName: "pointerStart" }] : /* istanbul ignore next */ []));
|
|
53
|
+
dragOffset = signal(0, /* @ts-ignore */
|
|
54
|
+
...(ngDevMode ? [{ debugName: "dragOffset" }] : /* istanbul ignore next */ []));
|
|
55
|
+
dragging = signal(false, /* @ts-ignore */
|
|
56
|
+
...(ngDevMode ? [{ debugName: "dragging" }] : /* istanbul ignore next */ []));
|
|
57
|
+
resizeObserver = null;
|
|
58
|
+
itemTemplate = contentChild((AerisCarouselItemTemplate), /* @ts-ignore */
|
|
59
|
+
...(ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []));
|
|
60
|
+
headerTemplate = contentChild(AerisCarouselHeaderTemplate, /* @ts-ignore */
|
|
61
|
+
...(ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []));
|
|
62
|
+
footerTemplate = contentChild(AerisCarouselFooterTemplate, /* @ts-ignore */
|
|
63
|
+
...(ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []));
|
|
64
|
+
value = input([], /* @ts-ignore */
|
|
65
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
66
|
+
page = model(0, /* @ts-ignore */
|
|
67
|
+
...(ngDevMode ? [{ debugName: "page" }] : /* istanbul ignore next */ []));
|
|
68
|
+
numVisible = input(1, /* @ts-ignore */
|
|
69
|
+
...(ngDevMode ? [{ debugName: "numVisible" }] : /* istanbul ignore next */ []));
|
|
70
|
+
numScroll = input(1, /* @ts-ignore */
|
|
71
|
+
...(ngDevMode ? [{ debugName: "numScroll" }] : /* istanbul ignore next */ []));
|
|
72
|
+
responsiveOptions = input([], /* @ts-ignore */
|
|
73
|
+
...(ngDevMode ? [{ debugName: "responsiveOptions" }] : /* istanbul ignore next */ []));
|
|
74
|
+
circular = input(false, { ...(ngDevMode ? { debugName: "circular" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
75
|
+
showNavigators = input(true, { ...(ngDevMode ? { debugName: "showNavigators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
76
|
+
showIndicators = input(true, { ...(ngDevMode ? { debugName: "showIndicators" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
77
|
+
autoplayInterval = input(0, /* @ts-ignore */
|
|
78
|
+
...(ngDevMode ? [{ debugName: "autoplayInterval" }] : /* istanbul ignore next */ []));
|
|
79
|
+
pauseOnHover = input(true, { ...(ngDevMode ? { debugName: "pauseOnHover" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
80
|
+
orientation = input('horizontal', /* @ts-ignore */
|
|
81
|
+
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
82
|
+
verticalViewportHeight = input('20rem', /* @ts-ignore */
|
|
83
|
+
...(ngDevMode ? [{ debugName: "verticalViewportHeight" }] : /* istanbul ignore next */ []));
|
|
84
|
+
ariaLabel = input('Carousel', /* @ts-ignore */
|
|
85
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
86
|
+
indicatorAriaLabel = input('Carousel pages', /* @ts-ignore */
|
|
87
|
+
...(ngDevMode ? [{ debugName: "indicatorAriaLabel" }] : /* istanbul ignore next */ []));
|
|
88
|
+
previousAriaLabel = input('Previous items', /* @ts-ignore */
|
|
89
|
+
...(ngDevMode ? [{ debugName: "previousAriaLabel" }] : /* istanbul ignore next */ []));
|
|
90
|
+
nextAriaLabel = input('Next items', /* @ts-ignore */
|
|
91
|
+
...(ngDevMode ? [{ debugName: "nextAriaLabel" }] : /* istanbul ignore next */ []));
|
|
92
|
+
pageChanged = output();
|
|
93
|
+
resolvedSettings = computed(() => {
|
|
94
|
+
const base = {
|
|
95
|
+
numVisible: this.safeCount(this.numVisible()),
|
|
96
|
+
numScroll: this.safeCount(this.numScroll()),
|
|
97
|
+
};
|
|
98
|
+
const width = this.viewportWidth();
|
|
99
|
+
if (!width)
|
|
100
|
+
return base;
|
|
101
|
+
const matching = [...this.responsiveOptions()]
|
|
102
|
+
.map((option) => ({ option, pixels: this.breakpointPixels(option.breakpoint) }))
|
|
103
|
+
.filter((option) => option.pixels > 0 && width <= option.pixels)
|
|
104
|
+
.sort((left, right) => left.pixels - right.pixels)[0]?.option;
|
|
105
|
+
return {
|
|
106
|
+
numVisible: this.safeCount(matching?.numVisible ?? base.numVisible),
|
|
107
|
+
numScroll: this.safeCount(matching?.numScroll ?? base.numScroll),
|
|
108
|
+
};
|
|
109
|
+
}, /* @ts-ignore */
|
|
110
|
+
...(ngDevMode ? [{ debugName: "resolvedSettings" }] : /* istanbul ignore next */ []));
|
|
111
|
+
visibleCount = computed(() => Math.min(this.value().length || 1, this.resolvedSettings().numVisible), /* @ts-ignore */
|
|
112
|
+
...(ngDevMode ? [{ debugName: "visibleCount" }] : /* istanbul ignore next */ []));
|
|
113
|
+
pageCount = computed(() => {
|
|
114
|
+
const length = this.value().length;
|
|
115
|
+
if (length <= this.visibleCount())
|
|
116
|
+
return 1;
|
|
117
|
+
return Math.ceil((length - this.visibleCount()) / this.resolvedSettings().numScroll) + 1;
|
|
118
|
+
}, /* @ts-ignore */
|
|
119
|
+
...(ngDevMode ? [{ debugName: "pageCount" }] : /* istanbul ignore next */ []));
|
|
120
|
+
currentPage = computed(() => Math.min(Math.max(this.page(), 0), this.pageCount() - 1), /* @ts-ignore */
|
|
121
|
+
...(ngDevMode ? [{ debugName: "currentPage" }] : /* istanbul ignore next */ []));
|
|
122
|
+
firstVisibleIndex = computed(() => Math.min(this.currentPage() * this.resolvedSettings().numScroll, Math.max(0, this.value().length - this.visibleCount())), /* @ts-ignore */
|
|
123
|
+
...(ngDevMode ? [{ debugName: "firstVisibleIndex" }] : /* istanbul ignore next */ []));
|
|
124
|
+
lastVisibleIndex = computed(() => Math.min(this.value().length - 1, this.firstVisibleIndex() + this.visibleCount() - 1), /* @ts-ignore */
|
|
125
|
+
...(ngDevMode ? [{ debugName: "lastVisibleIndex" }] : /* istanbul ignore next */ []));
|
|
126
|
+
itemViews = computed(() => {
|
|
127
|
+
const first = this.firstVisibleIndex();
|
|
128
|
+
const last = this.lastVisibleIndex();
|
|
129
|
+
return this.value().map((item, index) => ({
|
|
130
|
+
item,
|
|
131
|
+
index,
|
|
132
|
+
context: { $implicit: item, item, index, visible: index >= first && index <= last },
|
|
133
|
+
}));
|
|
134
|
+
}, /* @ts-ignore */
|
|
135
|
+
...(ngDevMode ? [{ debugName: "itemViews" }] : /* istanbul ignore next */ []));
|
|
136
|
+
indicators = computed(() => Array.from({ length: this.pageCount() }, (_, page) => ({
|
|
137
|
+
page,
|
|
138
|
+
label: `Show items ${this.indicatorRange(page)}`,
|
|
139
|
+
})), /* @ts-ignore */
|
|
140
|
+
...(ngDevMode ? [{ debugName: "indicators" }] : /* istanbul ignore next */ []));
|
|
141
|
+
previousDisabled = computed(() => !this.circular() && this.currentPage() === 0, /* @ts-ignore */
|
|
142
|
+
...(ngDevMode ? [{ debugName: "previousDisabled" }] : /* istanbul ignore next */ []));
|
|
143
|
+
nextDisabled = computed(() => !this.circular() && this.currentPage() >= this.pageCount() - 1, /* @ts-ignore */
|
|
144
|
+
...(ngDevMode ? [{ debugName: "nextDisabled" }] : /* istanbul ignore next */ []));
|
|
145
|
+
trackInlineSize = computed(() => this.orientation() === 'horizontal' ? `${(this.value().length / this.visibleCount()) * 100}%` : null, /* @ts-ignore */
|
|
146
|
+
...(ngDevMode ? [{ debugName: "trackInlineSize" }] : /* istanbul ignore next */ []));
|
|
147
|
+
trackBlockSize = computed(() => this.orientation() === 'vertical' ? `${(this.value().length / this.visibleCount()) * 100}%` : null, /* @ts-ignore */
|
|
148
|
+
...(ngDevMode ? [{ debugName: "trackBlockSize" }] : /* istanbul ignore next */ []));
|
|
149
|
+
trackTransform = computed(() => {
|
|
150
|
+
const total = Math.max(1, this.value().length);
|
|
151
|
+
const offset = (this.firstVisibleIndex() / total) * 100;
|
|
152
|
+
const dragOffset = this.dragOffset();
|
|
153
|
+
if (this.orientation() === 'vertical')
|
|
154
|
+
return `translate3d(0, calc(-${offset}% + ${dragOffset}px), 0)`;
|
|
155
|
+
const direction = this.isRtl() ? offset : -offset;
|
|
156
|
+
return `translate3d(calc(${direction}% + ${dragOffset}px), 0, 0)`;
|
|
157
|
+
}, /* @ts-ignore */
|
|
158
|
+
...(ngDevMode ? [{ debugName: "trackTransform" }] : /* istanbul ignore next */ []));
|
|
159
|
+
constructor() {
|
|
160
|
+
afterNextRender(() => this.observeSize());
|
|
161
|
+
this.destroyRef.onDestroy(() => this.resizeObserver?.disconnect());
|
|
162
|
+
effect((onCleanup) => {
|
|
163
|
+
const interval = this.autoplayInterval();
|
|
164
|
+
const canPlay = interval > 0 && this.pageCount() > 1 && !this.paused();
|
|
165
|
+
if (!canPlay || !this.browser)
|
|
166
|
+
return;
|
|
167
|
+
const timer = setInterval(() => this.next('autoplay'), interval);
|
|
168
|
+
onCleanup(() => clearInterval(timer));
|
|
169
|
+
});
|
|
170
|
+
}
|
|
171
|
+
next(reason = 'api') {
|
|
172
|
+
const pageCount = this.pageCount();
|
|
173
|
+
if (pageCount <= 1)
|
|
174
|
+
return;
|
|
175
|
+
const current = this.currentPage();
|
|
176
|
+
if (current >= pageCount - 1 && !this.circular())
|
|
177
|
+
return;
|
|
178
|
+
this.changePage(current >= pageCount - 1 ? 0 : current + 1, reason);
|
|
179
|
+
}
|
|
180
|
+
previous(reason = 'api') {
|
|
181
|
+
const pageCount = this.pageCount();
|
|
182
|
+
if (pageCount <= 1)
|
|
183
|
+
return;
|
|
184
|
+
const current = this.currentPage();
|
|
185
|
+
if (current <= 0 && !this.circular())
|
|
186
|
+
return;
|
|
187
|
+
this.changePage(current <= 0 ? pageCount - 1 : current - 1, reason);
|
|
188
|
+
}
|
|
189
|
+
goToPage(page, reason = 'api') {
|
|
190
|
+
const target = Math.min(Math.max(0, Math.floor(page)), this.pageCount() - 1);
|
|
191
|
+
if (target === this.currentPage())
|
|
192
|
+
return;
|
|
193
|
+
this.changePage(target, reason);
|
|
194
|
+
}
|
|
195
|
+
startAutoplay() {
|
|
196
|
+
this.autoplayStopped.set(false);
|
|
197
|
+
}
|
|
198
|
+
stopAutoplay() {
|
|
199
|
+
this.autoplayStopped.set(true);
|
|
200
|
+
}
|
|
201
|
+
handleViewportKeydown(event) {
|
|
202
|
+
const nextKey = this.orientation() === 'vertical' ? 'ArrowDown' : this.isRtl() ? 'ArrowLeft' : 'ArrowRight';
|
|
203
|
+
const previousKey = this.orientation() === 'vertical' ? 'ArrowUp' : this.isRtl() ? 'ArrowRight' : 'ArrowLeft';
|
|
204
|
+
if (event.key === nextKey) {
|
|
205
|
+
event.preventDefault();
|
|
206
|
+
this.next('keyboard');
|
|
207
|
+
}
|
|
208
|
+
else if (event.key === previousKey) {
|
|
209
|
+
event.preventDefault();
|
|
210
|
+
this.previous('keyboard');
|
|
211
|
+
}
|
|
212
|
+
else if (event.key === 'Home') {
|
|
213
|
+
event.preventDefault();
|
|
214
|
+
this.goToPage(0, 'keyboard');
|
|
215
|
+
}
|
|
216
|
+
else if (event.key === 'End') {
|
|
217
|
+
event.preventDefault();
|
|
218
|
+
this.goToPage(this.pageCount() - 1, 'keyboard');
|
|
219
|
+
}
|
|
220
|
+
}
|
|
221
|
+
handlePointerDown(event) {
|
|
222
|
+
if (event.pointerType === 'mouse' && event.button !== 0)
|
|
223
|
+
return;
|
|
224
|
+
event.preventDefault();
|
|
225
|
+
event.currentTarget.setPointerCapture?.(event.pointerId);
|
|
226
|
+
this.pointerStart.set(this.orientation() === 'vertical' ? event.clientY : event.clientX);
|
|
227
|
+
this.dragOffset.set(0);
|
|
228
|
+
this.dragging.set(true);
|
|
229
|
+
}
|
|
230
|
+
handlePointerMove(event) {
|
|
231
|
+
const start = this.pointerStart();
|
|
232
|
+
if (start === null)
|
|
233
|
+
return;
|
|
234
|
+
event.preventDefault();
|
|
235
|
+
const point = this.orientation() === 'vertical' ? event.clientY : event.clientX;
|
|
236
|
+
this.dragOffset.set(point - start);
|
|
237
|
+
}
|
|
238
|
+
handlePointerUp(event) {
|
|
239
|
+
const start = this.pointerStart();
|
|
240
|
+
const currentTarget = event.currentTarget;
|
|
241
|
+
if (currentTarget.hasPointerCapture?.(event.pointerId))
|
|
242
|
+
currentTarget.releasePointerCapture(event.pointerId);
|
|
243
|
+
if (start === null) {
|
|
244
|
+
this.clearPointer();
|
|
245
|
+
return;
|
|
246
|
+
}
|
|
247
|
+
const end = this.orientation() === 'vertical' ? event.clientY : event.clientX;
|
|
248
|
+
const distance = end - start;
|
|
249
|
+
this.clearPointer();
|
|
250
|
+
if (Math.abs(distance) < 32)
|
|
251
|
+
return;
|
|
252
|
+
const viewportSize = this.orientation() === 'vertical'
|
|
253
|
+
? currentTarget.clientHeight
|
|
254
|
+
: currentTarget.clientWidth;
|
|
255
|
+
const stepSize = viewportSize > 0
|
|
256
|
+
? (viewportSize / this.visibleCount()) * this.resolvedSettings().numScroll
|
|
257
|
+
: 80;
|
|
258
|
+
const pageDelta = Math.max(1, Math.round(Math.abs(distance) / stepSize));
|
|
259
|
+
const direction = this.dragDirection(distance);
|
|
260
|
+
this.goToPage(this.dragTargetPage(this.currentPage() + direction * pageDelta), 'swipe');
|
|
261
|
+
}
|
|
262
|
+
clearPointer() {
|
|
263
|
+
this.pointerStart.set(null);
|
|
264
|
+
this.dragOffset.set(0);
|
|
265
|
+
this.dragging.set(false);
|
|
266
|
+
}
|
|
267
|
+
setHoverPaused(paused) {
|
|
268
|
+
if (this.pauseOnHover())
|
|
269
|
+
this.hoverPaused.set(paused);
|
|
270
|
+
}
|
|
271
|
+
setFocusPaused(paused) {
|
|
272
|
+
if (this.pauseOnHover())
|
|
273
|
+
this.focusPaused.set(paused);
|
|
274
|
+
}
|
|
275
|
+
handleFocusOut(event) {
|
|
276
|
+
const next = event.relatedTarget;
|
|
277
|
+
if (next instanceof Node && this.host.nativeElement.contains(next))
|
|
278
|
+
return;
|
|
279
|
+
this.setFocusPaused(false);
|
|
280
|
+
}
|
|
281
|
+
changePage(page, reason) {
|
|
282
|
+
this.page.set(page);
|
|
283
|
+
this.pageChanged.emit({
|
|
284
|
+
page,
|
|
285
|
+
first: Math.min(page * this.resolvedSettings().numScroll, Math.max(0, this.value().length - this.visibleCount())),
|
|
286
|
+
last: Math.min(this.value().length - 1, page * this.resolvedSettings().numScroll + this.visibleCount() - 1),
|
|
287
|
+
reason,
|
|
288
|
+
});
|
|
289
|
+
}
|
|
290
|
+
dragDirection(distance) {
|
|
291
|
+
const direction = distance < 0 ? 1 : -1;
|
|
292
|
+
return this.orientation() === 'horizontal' && this.isRtl() ? -direction : direction;
|
|
293
|
+
}
|
|
294
|
+
dragTargetPage(page) {
|
|
295
|
+
const pageCount = this.pageCount();
|
|
296
|
+
if (!this.circular())
|
|
297
|
+
return Math.min(Math.max(0, page), pageCount - 1);
|
|
298
|
+
return ((page % pageCount) + pageCount) % pageCount;
|
|
299
|
+
}
|
|
300
|
+
observeSize() {
|
|
301
|
+
if (!this.browser || typeof ResizeObserver === 'undefined')
|
|
302
|
+
return;
|
|
303
|
+
this.resizeObserver = new ResizeObserver((entries) => {
|
|
304
|
+
const width = entries[0]?.contentRect.width;
|
|
305
|
+
if (width)
|
|
306
|
+
this.viewportWidth.set(width);
|
|
307
|
+
});
|
|
308
|
+
this.resizeObserver.observe(this.host.nativeElement);
|
|
309
|
+
}
|
|
310
|
+
safeCount(value) {
|
|
311
|
+
return Number.isFinite(value) ? Math.max(1, Math.floor(value)) : 1;
|
|
312
|
+
}
|
|
313
|
+
breakpointPixels(value) {
|
|
314
|
+
const match = /^(\d+(?:\.\d+)?)(px|rem|em)?$/.exec(value.trim());
|
|
315
|
+
if (!match)
|
|
316
|
+
return 0;
|
|
317
|
+
const amount = Number(match[1]);
|
|
318
|
+
const unit = match[2] ?? 'px';
|
|
319
|
+
if (unit === 'px')
|
|
320
|
+
return amount;
|
|
321
|
+
const rootSize = Number.parseFloat(getComputedStyle(this.document.documentElement).fontSize) || 16;
|
|
322
|
+
return amount * rootSize;
|
|
323
|
+
}
|
|
324
|
+
indicatorRange(page) {
|
|
325
|
+
const first = Math.min(page * this.resolvedSettings().numScroll, Math.max(0, this.value().length - this.visibleCount()));
|
|
326
|
+
const last = Math.min(this.value().length, first + this.visibleCount());
|
|
327
|
+
return `${first + 1} to ${last}`;
|
|
328
|
+
}
|
|
329
|
+
isRtl() {
|
|
330
|
+
return this.document.documentElement.dir === 'rtl';
|
|
331
|
+
}
|
|
332
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisCarousel, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
333
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisCarousel, isStandalone: true, selector: "aeris-carousel", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, page: { classPropertyName: "page", publicName: "page", isSignal: true, isRequired: false, transformFunction: null }, numVisible: { classPropertyName: "numVisible", publicName: "numVisible", isSignal: true, isRequired: false, transformFunction: null }, numScroll: { classPropertyName: "numScroll", publicName: "numScroll", isSignal: true, isRequired: false, transformFunction: null }, responsiveOptions: { classPropertyName: "responsiveOptions", publicName: "responsiveOptions", isSignal: true, isRequired: false, transformFunction: null }, circular: { classPropertyName: "circular", publicName: "circular", isSignal: true, isRequired: false, transformFunction: null }, showNavigators: { classPropertyName: "showNavigators", publicName: "showNavigators", isSignal: true, isRequired: false, transformFunction: null }, showIndicators: { classPropertyName: "showIndicators", publicName: "showIndicators", isSignal: true, isRequired: false, transformFunction: null }, autoplayInterval: { classPropertyName: "autoplayInterval", publicName: "autoplayInterval", isSignal: true, isRequired: false, transformFunction: null }, pauseOnHover: { classPropertyName: "pauseOnHover", publicName: "pauseOnHover", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, verticalViewportHeight: { classPropertyName: "verticalViewportHeight", publicName: "verticalViewportHeight", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, indicatorAriaLabel: { classPropertyName: "indicatorAriaLabel", publicName: "indicatorAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, previousAriaLabel: { classPropertyName: "previousAriaLabel", publicName: "previousAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, nextAriaLabel: { classPropertyName: "nextAriaLabel", publicName: "nextAriaLabel", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { page: "pageChange", pageChanged: "pageChanged" }, host: { properties: { "attr.data-orientation": "orientation()" }, classAttribute: "aeris-carousel-host" }, queries: [{ propertyName: "itemTemplate", first: true, predicate: (AerisCarouselItemTemplate), descendants: true, isSignal: true }, { propertyName: "headerTemplate", first: true, predicate: AerisCarouselHeaderTemplate, descendants: true, isSignal: true }, { propertyName: "footerTemplate", first: true, predicate: AerisCarouselFooterTemplate, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
334
|
+
<section class="aeris-carousel" [attr.aria-label]="ariaLabel()" [attr.aria-roledescription]="'carousel'">
|
|
335
|
+
<ng-template #indicatorList>
|
|
336
|
+
<div class="aeris-carousel__indicators" [attr.data-orientation]="orientation()" role="group" [attr.aria-label]="indicatorAriaLabel()">
|
|
337
|
+
@for (indicator of indicators(); track indicator.page) {
|
|
338
|
+
<button
|
|
339
|
+
type="button"
|
|
340
|
+
[attr.aria-label]="indicator.label"
|
|
341
|
+
[attr.aria-current]="indicator.page === currentPage() ? 'page' : null"
|
|
342
|
+
(click)="goToPage(indicator.page, 'indicator')"
|
|
343
|
+
></button>
|
|
344
|
+
}
|
|
345
|
+
</div>
|
|
346
|
+
</ng-template>
|
|
347
|
+
|
|
348
|
+
@if (headerTemplate(); as header) {
|
|
349
|
+
<div class="aeris-carousel__header"><ng-container [ngTemplateOutlet]="header.template" /></div>
|
|
350
|
+
}
|
|
351
|
+
|
|
352
|
+
<div class="aeris-carousel__content" [attr.data-orientation]="orientation()">
|
|
353
|
+
@if (showNavigators() && pageCount() > 1) {
|
|
354
|
+
<button
|
|
355
|
+
class="aeris-carousel__navigator aeris-carousel__navigator--previous"
|
|
356
|
+
type="button"
|
|
357
|
+
[attr.aria-label]="previousAriaLabel()"
|
|
358
|
+
[disabled]="previousDisabled()"
|
|
359
|
+
(click)="previous('previous')"
|
|
360
|
+
><span aria-hidden="true"></span></button>
|
|
361
|
+
}
|
|
362
|
+
|
|
363
|
+
<div
|
|
364
|
+
class="aeris-carousel__viewport"
|
|
365
|
+
tabindex="0"
|
|
366
|
+
[attr.aria-live]="autoplayInterval() > 0 ? 'off' : 'polite'"
|
|
367
|
+
[style.block-size]="orientation() === 'vertical' ? verticalViewportHeight() : null"
|
|
368
|
+
(keydown)="handleViewportKeydown($event)"
|
|
369
|
+
(pointerdown)="handlePointerDown($event)"
|
|
370
|
+
(pointermove)="handlePointerMove($event)"
|
|
371
|
+
(pointerup)="handlePointerUp($event)"
|
|
372
|
+
(pointercancel)="clearPointer()"
|
|
373
|
+
(pointerenter)="setHoverPaused(true)"
|
|
374
|
+
(pointerleave)="setHoverPaused(false)"
|
|
375
|
+
(focusin)="setFocusPaused(true)"
|
|
376
|
+
(focusout)="handleFocusOut($event)"
|
|
377
|
+
>
|
|
378
|
+
<div
|
|
379
|
+
class="aeris-carousel__track"
|
|
380
|
+
[attr.data-orientation]="orientation()"
|
|
381
|
+
[style.inline-size]="trackInlineSize()"
|
|
382
|
+
[style.block-size]="trackBlockSize()"
|
|
383
|
+
[style.transform]="trackTransform()"
|
|
384
|
+
[attr.data-dragging]="dragging() || null"
|
|
385
|
+
>
|
|
386
|
+
@for (view of itemViews(); track view.index) {
|
|
387
|
+
<article
|
|
388
|
+
class="aeris-carousel__item"
|
|
389
|
+
[attr.aria-hidden]="view.context.visible ? null : 'true'"
|
|
390
|
+
[attr.inert]="view.context.visible ? null : ''"
|
|
391
|
+
[style.--aeris-carousel-visible]="visibleCount()"
|
|
392
|
+
[style.--aeris-carousel-item-count]="value().length"
|
|
393
|
+
>
|
|
394
|
+
@if (itemTemplate(); as template) {
|
|
395
|
+
<ng-container [ngTemplateOutlet]="template.template" [ngTemplateOutletContext]="view.context" />
|
|
396
|
+
} @else {
|
|
397
|
+
<span class="aeris-carousel__default-item">{{ view.item }}</span>
|
|
398
|
+
}
|
|
399
|
+
</article>
|
|
400
|
+
}
|
|
401
|
+
</div>
|
|
402
|
+
</div>
|
|
403
|
+
|
|
404
|
+
@if (orientation() === 'vertical' && showIndicators() && pageCount() > 1) {
|
|
405
|
+
<ng-container [ngTemplateOutlet]="indicatorList" />
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
@if (showNavigators() && pageCount() > 1) {
|
|
409
|
+
<button
|
|
410
|
+
class="aeris-carousel__navigator aeris-carousel__navigator--next"
|
|
411
|
+
type="button"
|
|
412
|
+
[attr.aria-label]="nextAriaLabel()"
|
|
413
|
+
[disabled]="nextDisabled()"
|
|
414
|
+
(click)="next('next')"
|
|
415
|
+
><span aria-hidden="true"></span></button>
|
|
416
|
+
}
|
|
417
|
+
</div>
|
|
418
|
+
|
|
419
|
+
@if (orientation() === 'horizontal' && showIndicators() && pageCount() > 1) {
|
|
420
|
+
<ng-container [ngTemplateOutlet]="indicatorList" />
|
|
421
|
+
}
|
|
422
|
+
|
|
423
|
+
@if (footerTemplate(); as footer) {
|
|
424
|
+
<div class="aeris-carousel__footer"><ng-container [ngTemplateOutlet]="footer.template" /></div>
|
|
425
|
+
}
|
|
426
|
+
</section>
|
|
427
|
+
`, isInline: true, styles: [":host{--_aeris-carousel-chevron: var(--aeris-icon-chevron, url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='m7%209.5%205%205%205-5'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E\"));display:block;min-inline-size:0}.aeris-carousel{display:grid;gap:var(--aeris-carousel-gap, calc(var(--aeris-density-gap, .5rem) * 1.5));min-inline-size:0;color:var(--aeris-carousel-color, var(--aeris-text, #222222))}.aeris-carousel__header,.aeris-carousel__footer{min-inline-size:0}.aeris-carousel__content{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--aeris-carousel-navigator-gap, var(--aeris-density-gap, .5rem));min-inline-size:0}.aeris-carousel__content[data-orientation=vertical]{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto auto;justify-items:center;gap:calc(var(--aeris-carousel-navigator-gap, var(--aeris-density-gap, .5rem)) * .5)}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--previous{grid-row:1;transform:rotate(180deg)}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__viewport{grid-row:2;inline-size:100%}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--next{grid-row:4;transform:rotate(0)}.aeris-carousel__viewport{min-inline-size:0;overflow:hidden;border-radius:var(--aeris-carousel-radius, var(--aeris-radius-lg, .875rem));touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}.aeris-carousel__viewport:active{cursor:grabbing}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__viewport{touch-action:pan-x}.aeris-carousel__viewport:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 24%,transparent);outline-offset:2px}.aeris-carousel__track{display:flex;min-inline-size:0;transition:transform var(--aeris-carousel-transition-duration, .26s) var(--aeris-carousel-transition-easing, cubic-bezier(.22, 1, .36, 1));will-change:transform}.aeris-carousel__track[data-orientation=vertical]{flex-direction:column}.aeris-carousel__track[data-dragging=true]{transition:none;cursor:grabbing}.aeris-carousel__item{box-sizing:border-box;flex:0 0 calc(100% / var(--aeris-carousel-item-count));min-inline-size:0;padding-inline:calc(var(--aeris-carousel-item-gap, var(--aeris-density-gap, .5rem)) / 2)}.aeris-carousel__track[data-orientation=vertical] .aeris-carousel__item{min-block-size:0;padding-block:0;padding-inline:0}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator{transform:none}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--previous span{transform:rotate(180deg)}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--next span{transform:none}.aeris-carousel__item:first-child{padding-inline-start:0}.aeris-carousel__item:last-child{padding-inline-end:0}.aeris-carousel__default-item{display:grid;min-block-size:var(--aeris-carousel-default-item-min-height, 10rem);place-items:center;padding:1rem;border:1px solid var(--aeris-carousel-item-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-carousel-item-radius, var(--aeris-radius-lg, .875rem));background:var(--aeris-carousel-item-background, var(--aeris-surface, #fff));text-align:center}.aeris-carousel__navigator{inline-size:max(2.5rem,var(--aeris-control-height, 2.625rem));block-size:max(2.5rem,var(--aeris-control-height, 2.625rem));display:grid;flex:0 0 auto;place-items:center;padding:0;border:1px solid var(--aeris-carousel-navigator-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-carousel-navigator-radius, var(--aeris-radius-control, .6875rem));background:var(--aeris-carousel-navigator-background, var(--aeris-surface, #fff));color:var(--aeris-carousel-navigator-color, var(--aeris-text, #222222));cursor:pointer}.aeris-carousel__navigator:hover:not(:disabled){border-color:color-mix(in srgb,var(--aeris-primary, #879566) 50%,var(--aeris-border, #deddd7));background:color-mix(in srgb,var(--aeris-primary, #879566) 10%,var(--aeris-surface, #fff))}.aeris-carousel__navigator:disabled{opacity:.42;cursor:not-allowed}.aeris-carousel__navigator:focus-visible,.aeris-carousel__indicators button:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 25%,transparent);outline-offset:2px}.aeris-carousel__navigator span{inline-size:1.125rem;block-size:1.125rem;background:currentColor;transform:rotate(90deg);-webkit-mask:var(--_aeris-carousel-chevron) center/100% 100% no-repeat;mask:var(--_aeris-carousel-chevron) center/100% 100% no-repeat}.aeris-carousel__navigator--next span{transform:rotate(-90deg)}:host([dir=rtl]) .aeris-carousel__navigator--previous span,:host-context([dir=rtl]) .aeris-carousel__navigator--previous span{transform:rotate(-90deg)}:host([dir=rtl]) .aeris-carousel__navigator--next span,:host-context([dir=rtl]) .aeris-carousel__navigator--next span{transform:rotate(90deg)}.aeris-carousel__indicators{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--aeris-carousel-indicator-gap, .5rem)}.aeris-carousel__indicators[data-orientation=vertical]{grid-row:3;flex-direction:row;align-items:center;justify-self:center;margin-block:.125rem}.aeris-carousel__indicators button{inline-size:var(--aeris-carousel-indicator-size, .625rem);block-size:var(--aeris-carousel-indicator-size, .625rem);padding:0;border:0;border-radius:var(--aeris-carousel-indicator-radius, 999px);background:var(--aeris-carousel-indicator-background, var(--aeris-border-strong, #c7c9c0));cursor:pointer;transition:inline-size .16s ease,background .16s ease}.aeris-carousel__indicators button[aria-current=page]{inline-size:var(--aeris-carousel-active-indicator-width, 1.5rem);background:var(--aeris-carousel-active-indicator-background, var(--aeris-primary, #879566))}@media(max-width:38rem){.aeris-carousel__content[data-orientation=horizontal]{grid-template-columns:minmax(0,1fr)}.aeris-carousel__content[data-orientation=horizontal] .aeris-carousel__navigator{position:absolute;z-index:1;inset-block-start:50%;transform:translateY(-50%);box-shadow:0 .5rem 1.5rem #1f231b29}.aeris-carousel__content[data-orientation=horizontal]{position:relative}.aeris-carousel__content[data-orientation=horizontal] .aeris-carousel__navigator--previous{inset-inline-start:.5rem}.aeris-carousel__content[data-orientation=horizontal] .aeris-carousel__navigator--next{inset-inline-end:.5rem}}@media(prefers-reduced-motion:reduce){.aeris-carousel__track,.aeris-carousel__indicators button{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
428
|
+
}
|
|
429
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisCarousel, decorators: [{
|
|
430
|
+
type: Component,
|
|
431
|
+
args: [{ selector: 'aeris-carousel', imports: [NgTemplateOutlet], template: `
|
|
432
|
+
<section class="aeris-carousel" [attr.aria-label]="ariaLabel()" [attr.aria-roledescription]="'carousel'">
|
|
433
|
+
<ng-template #indicatorList>
|
|
434
|
+
<div class="aeris-carousel__indicators" [attr.data-orientation]="orientation()" role="group" [attr.aria-label]="indicatorAriaLabel()">
|
|
435
|
+
@for (indicator of indicators(); track indicator.page) {
|
|
436
|
+
<button
|
|
437
|
+
type="button"
|
|
438
|
+
[attr.aria-label]="indicator.label"
|
|
439
|
+
[attr.aria-current]="indicator.page === currentPage() ? 'page' : null"
|
|
440
|
+
(click)="goToPage(indicator.page, 'indicator')"
|
|
441
|
+
></button>
|
|
442
|
+
}
|
|
443
|
+
</div>
|
|
444
|
+
</ng-template>
|
|
445
|
+
|
|
446
|
+
@if (headerTemplate(); as header) {
|
|
447
|
+
<div class="aeris-carousel__header"><ng-container [ngTemplateOutlet]="header.template" /></div>
|
|
448
|
+
}
|
|
449
|
+
|
|
450
|
+
<div class="aeris-carousel__content" [attr.data-orientation]="orientation()">
|
|
451
|
+
@if (showNavigators() && pageCount() > 1) {
|
|
452
|
+
<button
|
|
453
|
+
class="aeris-carousel__navigator aeris-carousel__navigator--previous"
|
|
454
|
+
type="button"
|
|
455
|
+
[attr.aria-label]="previousAriaLabel()"
|
|
456
|
+
[disabled]="previousDisabled()"
|
|
457
|
+
(click)="previous('previous')"
|
|
458
|
+
><span aria-hidden="true"></span></button>
|
|
459
|
+
}
|
|
460
|
+
|
|
461
|
+
<div
|
|
462
|
+
class="aeris-carousel__viewport"
|
|
463
|
+
tabindex="0"
|
|
464
|
+
[attr.aria-live]="autoplayInterval() > 0 ? 'off' : 'polite'"
|
|
465
|
+
[style.block-size]="orientation() === 'vertical' ? verticalViewportHeight() : null"
|
|
466
|
+
(keydown)="handleViewportKeydown($event)"
|
|
467
|
+
(pointerdown)="handlePointerDown($event)"
|
|
468
|
+
(pointermove)="handlePointerMove($event)"
|
|
469
|
+
(pointerup)="handlePointerUp($event)"
|
|
470
|
+
(pointercancel)="clearPointer()"
|
|
471
|
+
(pointerenter)="setHoverPaused(true)"
|
|
472
|
+
(pointerleave)="setHoverPaused(false)"
|
|
473
|
+
(focusin)="setFocusPaused(true)"
|
|
474
|
+
(focusout)="handleFocusOut($event)"
|
|
475
|
+
>
|
|
476
|
+
<div
|
|
477
|
+
class="aeris-carousel__track"
|
|
478
|
+
[attr.data-orientation]="orientation()"
|
|
479
|
+
[style.inline-size]="trackInlineSize()"
|
|
480
|
+
[style.block-size]="trackBlockSize()"
|
|
481
|
+
[style.transform]="trackTransform()"
|
|
482
|
+
[attr.data-dragging]="dragging() || null"
|
|
483
|
+
>
|
|
484
|
+
@for (view of itemViews(); track view.index) {
|
|
485
|
+
<article
|
|
486
|
+
class="aeris-carousel__item"
|
|
487
|
+
[attr.aria-hidden]="view.context.visible ? null : 'true'"
|
|
488
|
+
[attr.inert]="view.context.visible ? null : ''"
|
|
489
|
+
[style.--aeris-carousel-visible]="visibleCount()"
|
|
490
|
+
[style.--aeris-carousel-item-count]="value().length"
|
|
491
|
+
>
|
|
492
|
+
@if (itemTemplate(); as template) {
|
|
493
|
+
<ng-container [ngTemplateOutlet]="template.template" [ngTemplateOutletContext]="view.context" />
|
|
494
|
+
} @else {
|
|
495
|
+
<span class="aeris-carousel__default-item">{{ view.item }}</span>
|
|
496
|
+
}
|
|
497
|
+
</article>
|
|
498
|
+
}
|
|
499
|
+
</div>
|
|
500
|
+
</div>
|
|
501
|
+
|
|
502
|
+
@if (orientation() === 'vertical' && showIndicators() && pageCount() > 1) {
|
|
503
|
+
<ng-container [ngTemplateOutlet]="indicatorList" />
|
|
504
|
+
}
|
|
505
|
+
|
|
506
|
+
@if (showNavigators() && pageCount() > 1) {
|
|
507
|
+
<button
|
|
508
|
+
class="aeris-carousel__navigator aeris-carousel__navigator--next"
|
|
509
|
+
type="button"
|
|
510
|
+
[attr.aria-label]="nextAriaLabel()"
|
|
511
|
+
[disabled]="nextDisabled()"
|
|
512
|
+
(click)="next('next')"
|
|
513
|
+
><span aria-hidden="true"></span></button>
|
|
514
|
+
}
|
|
515
|
+
</div>
|
|
516
|
+
|
|
517
|
+
@if (orientation() === 'horizontal' && showIndicators() && pageCount() > 1) {
|
|
518
|
+
<ng-container [ngTemplateOutlet]="indicatorList" />
|
|
519
|
+
}
|
|
520
|
+
|
|
521
|
+
@if (footerTemplate(); as footer) {
|
|
522
|
+
<div class="aeris-carousel__footer"><ng-container [ngTemplateOutlet]="footer.template" /></div>
|
|
523
|
+
}
|
|
524
|
+
</section>
|
|
525
|
+
`, host: {
|
|
526
|
+
class: 'aeris-carousel-host',
|
|
527
|
+
'[attr.data-orientation]': 'orientation()',
|
|
528
|
+
}, styles: [":host{--_aeris-carousel-chevron: var(--aeris-icon-chevron, url(\"data:image/svg+xml,%3Csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%2024%2024'%3E%3Cpath%20d='m7%209.5%205%205%205-5'%20fill='none'%20stroke='black'%20stroke-width='2.4'%20stroke-linecap='round'%20stroke-linejoin='round'/%3E%3C/svg%3E\"));display:block;min-inline-size:0}.aeris-carousel{display:grid;gap:var(--aeris-carousel-gap, calc(var(--aeris-density-gap, .5rem) * 1.5));min-inline-size:0;color:var(--aeris-carousel-color, var(--aeris-text, #222222))}.aeris-carousel__header,.aeris-carousel__footer{min-inline-size:0}.aeris-carousel__content{display:grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:var(--aeris-carousel-navigator-gap, var(--aeris-density-gap, .5rem));min-inline-size:0}.aeris-carousel__content[data-orientation=vertical]{grid-template-columns:1fr;grid-template-rows:auto minmax(0,1fr) auto auto;justify-items:center;gap:calc(var(--aeris-carousel-navigator-gap, var(--aeris-density-gap, .5rem)) * .5)}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--previous{grid-row:1;transform:rotate(180deg)}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__viewport{grid-row:2;inline-size:100%}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--next{grid-row:4;transform:rotate(0)}.aeris-carousel__viewport{min-inline-size:0;overflow:hidden;border-radius:var(--aeris-carousel-radius, var(--aeris-radius-lg, .875rem));touch-action:pan-y;user-select:none;-webkit-user-select:none;cursor:grab}.aeris-carousel__viewport:active{cursor:grabbing}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__viewport{touch-action:pan-x}.aeris-carousel__viewport:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 24%,transparent);outline-offset:2px}.aeris-carousel__track{display:flex;min-inline-size:0;transition:transform var(--aeris-carousel-transition-duration, .26s) var(--aeris-carousel-transition-easing, cubic-bezier(.22, 1, .36, 1));will-change:transform}.aeris-carousel__track[data-orientation=vertical]{flex-direction:column}.aeris-carousel__track[data-dragging=true]{transition:none;cursor:grabbing}.aeris-carousel__item{box-sizing:border-box;flex:0 0 calc(100% / var(--aeris-carousel-item-count));min-inline-size:0;padding-inline:calc(var(--aeris-carousel-item-gap, var(--aeris-density-gap, .5rem)) / 2)}.aeris-carousel__track[data-orientation=vertical] .aeris-carousel__item{min-block-size:0;padding-block:0;padding-inline:0}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator{transform:none}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--previous span{transform:rotate(180deg)}.aeris-carousel__content[data-orientation=vertical] .aeris-carousel__navigator--next span{transform:none}.aeris-carousel__item:first-child{padding-inline-start:0}.aeris-carousel__item:last-child{padding-inline-end:0}.aeris-carousel__default-item{display:grid;min-block-size:var(--aeris-carousel-default-item-min-height, 10rem);place-items:center;padding:1rem;border:1px solid var(--aeris-carousel-item-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-carousel-item-radius, var(--aeris-radius-lg, .875rem));background:var(--aeris-carousel-item-background, var(--aeris-surface, #fff));text-align:center}.aeris-carousel__navigator{inline-size:max(2.5rem,var(--aeris-control-height, 2.625rem));block-size:max(2.5rem,var(--aeris-control-height, 2.625rem));display:grid;flex:0 0 auto;place-items:center;padding:0;border:1px solid var(--aeris-carousel-navigator-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-carousel-navigator-radius, var(--aeris-radius-control, .6875rem));background:var(--aeris-carousel-navigator-background, var(--aeris-surface, #fff));color:var(--aeris-carousel-navigator-color, var(--aeris-text, #222222));cursor:pointer}.aeris-carousel__navigator:hover:not(:disabled){border-color:color-mix(in srgb,var(--aeris-primary, #879566) 50%,var(--aeris-border, #deddd7));background:color-mix(in srgb,var(--aeris-primary, #879566) 10%,var(--aeris-surface, #fff))}.aeris-carousel__navigator:disabled{opacity:.42;cursor:not-allowed}.aeris-carousel__navigator:focus-visible,.aeris-carousel__indicators button:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 25%,transparent);outline-offset:2px}.aeris-carousel__navigator span{inline-size:1.125rem;block-size:1.125rem;background:currentColor;transform:rotate(90deg);-webkit-mask:var(--_aeris-carousel-chevron) center/100% 100% no-repeat;mask:var(--_aeris-carousel-chevron) center/100% 100% no-repeat}.aeris-carousel__navigator--next span{transform:rotate(-90deg)}:host([dir=rtl]) .aeris-carousel__navigator--previous span,:host-context([dir=rtl]) .aeris-carousel__navigator--previous span{transform:rotate(-90deg)}:host([dir=rtl]) .aeris-carousel__navigator--next span,:host-context([dir=rtl]) .aeris-carousel__navigator--next span{transform:rotate(90deg)}.aeris-carousel__indicators{display:flex;flex-wrap:wrap;justify-content:center;gap:var(--aeris-carousel-indicator-gap, .5rem)}.aeris-carousel__indicators[data-orientation=vertical]{grid-row:3;flex-direction:row;align-items:center;justify-self:center;margin-block:.125rem}.aeris-carousel__indicators button{inline-size:var(--aeris-carousel-indicator-size, .625rem);block-size:var(--aeris-carousel-indicator-size, .625rem);padding:0;border:0;border-radius:var(--aeris-carousel-indicator-radius, 999px);background:var(--aeris-carousel-indicator-background, var(--aeris-border-strong, #c7c9c0));cursor:pointer;transition:inline-size .16s ease,background .16s ease}.aeris-carousel__indicators button[aria-current=page]{inline-size:var(--aeris-carousel-active-indicator-width, 1.5rem);background:var(--aeris-carousel-active-indicator-background, var(--aeris-primary, #879566))}@media(max-width:38rem){.aeris-carousel__content[data-orientation=horizontal]{grid-template-columns:minmax(0,1fr)}.aeris-carousel__content[data-orientation=horizontal] .aeris-carousel__navigator{position:absolute;z-index:1;inset-block-start:50%;transform:translateY(-50%);box-shadow:0 .5rem 1.5rem #1f231b29}.aeris-carousel__content[data-orientation=horizontal]{position:relative}.aeris-carousel__content[data-orientation=horizontal] .aeris-carousel__navigator--previous{inset-inline-start:.5rem}.aeris-carousel__content[data-orientation=horizontal] .aeris-carousel__navigator--next{inset-inline-end:.5rem}}@media(prefers-reduced-motion:reduce){.aeris-carousel__track,.aeris-carousel__indicators button{transition:none}}\n"] }]
|
|
529
|
+
}], ctorParameters: () => [], propDecorators: { itemTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisCarouselItemTemplate), { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisCarouselHeaderTemplate), { isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisCarouselFooterTemplate), { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], page: [{ type: i0.Input, args: [{ isSignal: true, alias: "page", required: false }] }, { type: i0.Output, args: ["pageChange"] }], numVisible: [{ type: i0.Input, args: [{ isSignal: true, alias: "numVisible", required: false }] }], numScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "numScroll", required: false }] }], responsiveOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "responsiveOptions", required: false }] }], circular: [{ type: i0.Input, args: [{ isSignal: true, alias: "circular", required: false }] }], showNavigators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showNavigators", required: false }] }], showIndicators: [{ type: i0.Input, args: [{ isSignal: true, alias: "showIndicators", required: false }] }], autoplayInterval: [{ type: i0.Input, args: [{ isSignal: true, alias: "autoplayInterval", required: false }] }], pauseOnHover: [{ type: i0.Input, args: [{ isSignal: true, alias: "pauseOnHover", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], verticalViewportHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "verticalViewportHeight", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], indicatorAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "indicatorAriaLabel", required: false }] }], previousAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "previousAriaLabel", required: false }] }], nextAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "nextAriaLabel", required: false }] }], pageChanged: [{ type: i0.Output, args: ["pageChanged"] }] } });
|
|
530
|
+
const AerisCarouselModule = [
|
|
531
|
+
AerisCarousel,
|
|
532
|
+
AerisCarouselItemTemplate,
|
|
533
|
+
AerisCarouselHeaderTemplate,
|
|
534
|
+
AerisCarouselFooterTemplate,
|
|
535
|
+
];
|
|
536
|
+
|
|
537
|
+
/**
|
|
538
|
+
* Generated bundle index. Do not edit.
|
|
539
|
+
*/
|
|
540
|
+
|
|
541
|
+
export { AerisCarousel, AerisCarouselFooterTemplate, AerisCarouselHeaderTemplate, AerisCarouselItemTemplate, AerisCarouselModule };
|
|
542
|
+
//# sourceMappingURL=aeris-ui-core-carousel.mjs.map
|