@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 @@
|
|
|
1
|
+
{"version":3,"file":"aeris-ui-core-splitter.mjs","sources":["../../../projects/aeris-ui/splitter/aeris-splitter.ts","../../../projects/aeris-ui/splitter/aeris-ui-core-splitter.ts"],"sourcesContent":["import { DOCUMENT, NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n DestroyRef,\n ElementRef,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChildren,\n inject,\n input,\n model,\n numberAttribute,\n output,\n signal,\n viewChild,\n viewChildren,\n} from '@angular/core';\n\nexport type AerisSplitterOrientation = 'horizontal' | 'vertical';\nexport type AerisSplitterVariant = 'outlined' | 'filled' | 'plain';\nexport type AerisSplitterSize = 'sm' | 'md' | 'lg';\nexport type AerisSplitterDivider = 'handle' | 'line';\n\nexport interface AerisSplitterResizeEvent {\n readonly originalEvent: Event | null;\n readonly sizes: readonly number[];\n readonly previousSizes: readonly number[];\n readonly index: number;\n readonly nextIndex: number;\n}\n\ninterface AerisSplitterPanelState {\n readonly panel: AerisSplitterPanel;\n readonly index: number;\n readonly id: string;\n readonly label: string;\n readonly size: number;\n readonly minSize: number;\n readonly maxSize: number;\n readonly resizable: boolean;\n readonly content: TemplateRef<unknown>;\n}\n\ninterface AerisSplitterHandleState {\n readonly index: number;\n readonly id: string;\n readonly currentPanelId: string;\n readonly nextPanelId: string;\n readonly disabled: boolean;\n readonly active: boolean;\n readonly min: number;\n readonly max: number;\n readonly value: number;\n readonly zIndex: number;\n}\n\ninterface ResizeSession {\n readonly index: number;\n readonly pointerId: number;\n readonly startCoordinate: number;\n readonly containerSize: number;\n readonly startSizes: readonly number[];\n readonly previousSizes: readonly number[];\n readonly move: (event: PointerEvent) => void;\n readonly end: (event: PointerEvent) => void;\n}\n\nlet nextSplitterPanelId = 0;\n\n@Component({\n selector: 'aeris-splitter-panel',\n template: `\n <ng-template #content>\n <ng-content />\n </ng-template>\n `,\n host: {\n '[style.display]': '\"none\"',\n },\n})\nexport class AerisSplitterPanel {\n private readonly element = inject<ElementRef<HTMLElement>>(ElementRef);\n private readonly instanceId = ++nextSplitterPanelId;\n\n readonly size = input<number | null>(null, { transform: nullableNumberAttribute });\n readonly minSize = input(0, { transform: numberAttribute });\n readonly maxSize = input(100, { transform: numberAttribute });\n readonly resizable = input(true, { transform: booleanAttribute });\n readonly ariaLabel = input('');\n readonly content = viewChild.required<TemplateRef<unknown>>('content');\n readonly panelId = `aeris-splitter-panel-${this.instanceId}`;\n\n isDirectPanelOf(splitterHost: HTMLElement): boolean {\n const parent = this.element.nativeElement.parentElement;\n return (\n parent?.classList.contains('aeris-splitter__panel-source') === true &&\n parent.parentElement === splitterHost\n );\n }\n}\n\n@Component({\n selector: 'aeris-splitter',\n imports: [NgTemplateOutlet],\n template: `\n <div class=\"aeris-splitter__panel-source\" aria-hidden=\"true\">\n <ng-content />\n </div>\n\n <div\n #root\n class=\"aeris-splitter__root\"\n [attr.role]=\"role()\"\n [attr.aria-label]=\"ariaLabel() || null\"\n [attr.aria-labelledby]=\"ariaLabelledBy() || null\"\n [attr.aria-describedby]=\"ariaDescribedBy() || null\"\n [style.block-size]=\"height() || null\"\n [style.min-block-size]=\"minHeight() || null\"\n [style.max-block-size]=\"maxHeight() || null\"\n [style.inline-size]=\"width() || null\"\n [style.max-inline-size]=\"maxWidth() || null\"\n >\n @for (state of panelStates(); track state.id; let last = $last) {\n <section\n class=\"aeris-splitter__panel\"\n [id]=\"state.id\"\n [attr.aria-label]=\"state.label || null\"\n [attr.data-resizable]=\"state.resizable || null\"\n [style.flex-grow]=\"state.size\"\n [style.flex-basis.%]=\"0\"\n [style.min-inline-size.%]=\"orientation() === 'horizontal' ? state.minSize : null\"\n [style.max-inline-size.%]=\"orientation() === 'horizontal' ? state.maxSize : null\"\n [style.min-block-size.%]=\"orientation() === 'vertical' ? state.minSize : null\"\n [style.max-block-size.%]=\"orientation() === 'vertical' ? state.maxSize : null\"\n >\n <div class=\"aeris-splitter__panel-content\">\n <ng-container [ngTemplateOutlet]=\"state.content\" />\n </div>\n </section>\n\n @if (!last) {\n <div\n #gutter\n class=\"aeris-splitter__gutter\"\n role=\"separator\"\n tabindex=\"0\"\n [id]=\"handleStates()[state.index]?.id\"\n [attr.aria-label]=\"separatorLabel()\"\n [attr.aria-controls]=\"handleStates()[state.index]?.currentPanelId + ' ' + handleStates()[state.index]?.nextPanelId\"\n [attr.aria-orientation]=\"orientation()\"\n [attr.aria-valuemin]=\"handleStates()[state.index]?.min\"\n [attr.aria-valuemax]=\"handleStates()[state.index]?.max\"\n [attr.aria-valuenow]=\"handleStates()[state.index]?.value\"\n [attr.aria-disabled]=\"handleStates()[state.index]?.disabled || null\"\n [attr.data-active]=\"handleStates()[state.index]?.active || null\"\n [attr.data-disabled]=\"handleStates()[state.index]?.disabled || null\"\n [style.z-index]=\"handleStates()[state.index]?.zIndex\"\n (pointerdown)=\"handlePointerDown($event, state.index)\"\n (keydown)=\"handleGutterKeydown($event, state.index)\"\n >\n <span class=\"aeris-splitter__handle\" aria-hidden=\"true\"></span>\n </div>\n }\n }\n </div>\n `,\n styleUrl: './aeris-splitter.scss',\n host: {\n class: 'aeris-splitter',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'size()',\n '[attr.data-divider]': 'divider()',\n '[attr.data-disabled]': 'disabled() || null',\n '[attr.data-dragging]': 'activeHandle() !== null || null',\n '[attr.data-fluid]': 'fluid() || null',\n '[style.block-size]': 'height() || null',\n '[style.min-block-size]': 'minHeight() || null',\n '[style.max-block-size]': 'maxHeight() || null',\n '[style.inline-size]': 'width() || null',\n '[style.max-inline-size]': 'maxWidth() || null',\n },\n})\nexport class AerisSplitter {\n private readonly hostElement = inject<ElementRef<HTMLElement>>(ElementRef).nativeElement;\n private readonly document = inject(DOCUMENT);\n private readonly destroyRef = inject(DestroyRef);\n private readonly root = viewChild<ElementRef<HTMLElement>>('root');\n\n readonly sizes = model<readonly number[]>([]);\n readonly orientation = input<AerisSplitterOrientation>('horizontal');\n readonly variant = input<AerisSplitterVariant>('outlined');\n readonly size = input<AerisSplitterSize>('md');\n readonly divider = input<AerisSplitterDivider>('handle');\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly fluid = input(true, { transform: booleanAttribute });\n readonly step = input(5, { transform: numberAttribute });\n readonly height = input('');\n readonly minHeight = input('');\n readonly maxHeight = input('');\n readonly width = input('100%');\n readonly maxWidth = input('');\n readonly role = input<'group' | 'region' | null>('group');\n readonly ariaLabel = input('Resizable panels');\n readonly ariaLabelledBy = input('');\n readonly ariaDescribedBy = input('');\n readonly separatorLabel = input('Resize panels');\n\n readonly resizeStart = output<AerisSplitterResizeEvent>();\n readonly resized = output<AerisSplitterResizeEvent>();\n readonly resizeEnd = output<AerisSplitterResizeEvent>();\n\n private readonly discoveredPanels = contentChildren(AerisSplitterPanel, {\n descendants: true,\n });\n protected readonly gutters = viewChildren<ElementRef<HTMLElement>>('gutter');\n protected readonly activeHandle = signal<number | null>(null);\n protected readonly panels = computed(() =>\n this.discoveredPanels().filter((panel) => panel.isDirectPanelOf(this.hostElement)),\n );\n protected readonly normalizedSizes = computed(() => this.normalizeSizes(this.panels(), this.sizes()));\n protected readonly panelStates = computed<readonly AerisSplitterPanelState[]>(() => {\n const sizes = this.normalizedSizes();\n return this.panels().map((panel, index) => ({\n panel,\n index,\n id: panel.panelId,\n label: panel.ariaLabel(),\n size: sizes[index] ?? 0,\n minSize: this.clampPercent(panel.minSize()),\n maxSize: this.clampPercent(Math.max(panel.maxSize(), panel.minSize())),\n resizable: panel.resizable(),\n content: panel.content(),\n }));\n });\n protected readonly handleStates = computed<readonly AerisSplitterHandleState[]>(() => {\n const states = this.panelStates();\n const activeHandle = this.activeHandle();\n return states.slice(0, -1).map((state, index) => {\n const next = states[index + 1];\n const bounds = this.handleBoundsFromStates(states, index);\n return {\n index,\n id: `aeris-splitter-gutter-${state.id}`,\n currentPanelId: state.id,\n nextPanelId: next?.id ?? '',\n disabled: this.disabled() || !state.resizable || !next?.resizable,\n active: activeHandle === index,\n min: Math.round(bounds.min),\n max: Math.round(bounds.max),\n value: Math.round(state.size),\n zIndex: this.handleZIndex(states, index),\n };\n });\n });\n\n private activeSession: ResizeSession | null = null;\n\n constructor() {\n this.destroyRef.onDestroy(() => this.removeDocumentListeners());\n }\n\n setSizes(sizes: readonly number[], originalEvent: Event | null = null): void {\n const previousSizes = this.normalizedSizes();\n const nextSizes = this.normalizeExplicitSizes(this.panels(), sizes);\n this.commitSizes(nextSizes, previousSizes, -1, originalEvent, this.resized);\n }\n\n reset(originalEvent: Event | null = null): void {\n const previousSizes = this.normalizedSizes();\n const nextSizes = this.normalizeSizes(this.panels(), []);\n this.commitSizes(nextSizes, previousSizes, -1, originalEvent, this.resized);\n }\n\n focusHandle(index: number, options?: FocusOptions): void {\n this.gutters()[index]?.nativeElement.focus(options);\n }\n\n protected handlePointerDown(event: PointerEvent, index: number): void {\n if (event.button !== 0 || this.handleStates()[index]?.disabled) return;\n const containerSize = this.containerPixelSize();\n if (containerSize <= 0) return;\n\n event.preventDefault();\n const startSizes = this.normalizedSizes();\n const session: ResizeSession = {\n index,\n pointerId: event.pointerId,\n startCoordinate: this.pointerCoordinate(event),\n containerSize,\n startSizes,\n previousSizes: startSizes,\n move: (moveEvent) => this.handlePointerMove(moveEvent),\n end: (endEvent) => this.handlePointerEnd(endEvent),\n };\n this.activeSession = session;\n this.activeHandle.set(index);\n this.document.addEventListener('pointermove', session.move);\n this.document.addEventListener('pointerup', session.end);\n this.document.addEventListener('pointercancel', session.end);\n this.resizeStart.emit(this.eventPayload(event, startSizes, startSizes, index));\n }\n\n protected handleGutterKeydown(event: KeyboardEvent, index: number): void {\n if (this.handleStates()[index]?.disabled) return;\n\n const amount = this.keyAmount(event);\n if (amount === null) return;\n\n event.preventDefault();\n const previousSizes = this.normalizedSizes();\n const nextSizes =\n amount === 'min'\n ? this.resizePair(previousSizes, index, Number.NEGATIVE_INFINITY)\n : amount === 'max'\n ? this.resizePair(previousSizes, index, Number.POSITIVE_INFINITY)\n : this.resizePair(previousSizes, index, amount);\n this.commitSizes(nextSizes, previousSizes, index, event, this.resized);\n }\n\n private handlePointerMove(event: PointerEvent): void {\n const session = this.activeSession;\n if (!session || event.pointerId !== session.pointerId) return;\n event.preventDefault();\n const delta = ((this.pointerCoordinate(event) - session.startCoordinate) / session.containerSize) * 100;\n const nextSizes = this.resizePair(session.startSizes, session.index, delta);\n this.commitSizes(nextSizes, session.previousSizes, session.index, event, this.resized);\n }\n\n private handlePointerEnd(event: PointerEvent): void {\n const session = this.activeSession;\n if (!session || event.pointerId !== session.pointerId) return;\n event.preventDefault();\n const previousSizes = session.previousSizes;\n const nextSizes = this.normalizedSizes();\n this.removeDocumentListeners();\n this.resizeEnd.emit(this.eventPayload(event, nextSizes, previousSizes, session.index));\n }\n\n private removeDocumentListeners(): void {\n const session = this.activeSession;\n if (!session) return;\n this.document.removeEventListener('pointermove', session.move);\n this.document.removeEventListener('pointerup', session.end);\n this.document.removeEventListener('pointercancel', session.end);\n this.activeSession = null;\n this.activeHandle.set(null);\n }\n\n private commitSizes(\n nextSizes: readonly number[],\n previousSizes: readonly number[],\n index: number,\n originalEvent: Event | null,\n emitter: { emit: (event: AerisSplitterResizeEvent) => void },\n ): void {\n const normalized = this.normalizeExplicitSizes(this.panels(), nextSizes);\n if (this.sameSizes(normalized, this.normalizedSizes())) return;\n this.sizes.set(normalized);\n emitter.emit(this.eventPayload(originalEvent, normalized, previousSizes, index));\n }\n\n private eventPayload(\n originalEvent: Event | null,\n sizes: readonly number[],\n previousSizes: readonly number[],\n index: number,\n ): AerisSplitterResizeEvent {\n return {\n originalEvent,\n sizes,\n previousSizes,\n index,\n nextIndex: index >= 0 ? index + 1 : -1,\n };\n }\n\n private normalizeSizes(\n panels: readonly AerisSplitterPanel[],\n requestedSizes: readonly number[],\n ): readonly number[] {\n if (panels.length === 0) return [];\n if (requestedSizes.length > 0) return this.normalizeExplicitSizes(panels, requestedSizes);\n\n const explicit = panels.map((panel) => panel.size());\n const totalExplicit = explicit.reduce<number>((total, value) => total + (value ?? 0), 0);\n const unsetCount = explicit.filter((value) => value === null).length;\n const fallbackSize = unsetCount > 0 ? Math.max(0, (100 - totalExplicit) / unsetCount) : 0;\n return this.normalizeExplicitSizes(\n panels,\n explicit.map((value) => value ?? fallbackSize),\n );\n }\n\n private normalizeExplicitSizes(\n panels: readonly AerisSplitterPanel[],\n requestedSizes: readonly number[],\n ): readonly number[] {\n if (panels.length === 0) return [];\n const fallbackSize = 100 / panels.length;\n const raw = panels.map((panel, index) => {\n const min = this.clampPercent(panel.minSize());\n const max = this.clampPercent(Math.max(panel.maxSize(), panel.minSize()));\n return clamp(requestedSizes[index] ?? panel.size() ?? fallbackSize, min, max);\n });\n const total = raw.reduce((sum, value) => sum + value, 0);\n if (total <= 0) return panels.map(() => roundSize(fallbackSize));\n return raw.map((value) => roundSize((value / total) * 100));\n }\n\n private resizePair(sizes: readonly number[], index: number, delta: number): readonly number[] {\n const states = this.panelStates();\n const current = states[index];\n const next = states[index + 1];\n if (!current || !next) return sizes;\n\n const pairTotal = (sizes[index] ?? current.size) + (sizes[index + 1] ?? next.size);\n const minCurrent = Math.max(current.minSize, pairTotal - next.maxSize);\n const maxCurrent = Math.min(current.maxSize, pairTotal - next.minSize);\n const currentSize = clamp((sizes[index] ?? current.size) + delta, minCurrent, maxCurrent);\n const nextSize = pairTotal - currentSize;\n\n return sizes.map((size, sizeIndex) =>\n sizeIndex === index\n ? roundSize(currentSize)\n : sizeIndex === index + 1\n ? roundSize(nextSize)\n : size,\n );\n }\n\n private handleBoundsFromStates(\n states: readonly AerisSplitterPanelState[],\n index: number,\n ): { readonly min: number; readonly max: number } {\n const current = states[index];\n const next = states[index + 1];\n if (!current || !next) return { min: 0, max: 0 };\n const pairTotal = current.size + next.size;\n return {\n min: Math.max(current.minSize, pairTotal - next.maxSize),\n max: Math.min(current.maxSize, pairTotal - next.minSize),\n };\n }\n\n private handleZIndex(states: readonly AerisSplitterPanelState[], index: number): number {\n const handleCount = Math.max(0, states.length - 1);\n const position = states.slice(0, index + 1).reduce((total, state) => total + state.size, 0);\n return position > 50 ? handleCount - index : index + 1;\n }\n\n private keyAmount(event: KeyboardEvent): number | 'min' | 'max' | null {\n const step = Math.max(1, this.step());\n if (event.key === 'Home') return 'min';\n if (event.key === 'End') return 'max';\n if (this.orientation() === 'horizontal') {\n if (event.key === 'ArrowLeft') return -step;\n if (event.key === 'ArrowRight') return step;\n } else {\n if (event.key === 'ArrowUp') return -step;\n if (event.key === 'ArrowDown') return step;\n }\n return null;\n }\n\n private pointerCoordinate(event: PointerEvent): number {\n return this.orientation() === 'horizontal' ? event.clientX : event.clientY;\n }\n\n private containerPixelSize(): number {\n const rect = this.root()?.nativeElement.getBoundingClientRect();\n return this.orientation() === 'horizontal' ? rect?.width ?? 0 : rect?.height ?? 0;\n }\n\n private sameSizes(left: readonly number[], right: readonly number[]): boolean {\n return left.length === right.length && left.every((value, index) => Math.abs(value - (right[index] ?? 0)) < 0.001);\n }\n\n private clampPercent(value: number): number {\n return clamp(Number.isFinite(value) ? value : 0, 0, 100);\n }\n}\n\nfunction nullableNumberAttribute(value: unknown): number | null {\n if (value === null || value === undefined || value === '') return null;\n const parsed = Number(value);\n return Number.isFinite(parsed) ? parsed : null;\n}\n\nfunction clamp(value: number, min: number, max: number): number {\n return Math.min(Math.max(value, min), max);\n}\n\nfunction roundSize(value: number): number {\n return Math.round(value * 1000) / 1000;\n}\n\nexport const AerisSplitterModule = [AerisSplitter, AerisSplitterPanel] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAoEA,IAAI,mBAAmB,GAAG,CAAC;MAad,kBAAkB,CAAA;AACZ,IAAA,OAAO,GAAG,MAAM,CAA0B,UAAU,CAAC;IACrD,UAAU,GAAG,EAAE,mBAAmB;IAE1C,IAAI,GAAG,KAAK,CAAgB,IAAI,4EAAI,SAAS,EAAE,uBAAuB,EAAA,CAAG;IACzE,OAAO,GAAG,KAAK,CAAC,CAAC,+EAAI,SAAS,EAAE,eAAe,E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Aa,EAAE,kBAAkB;;AClfrE;;AAEG;;;;"}
|
|
@@ -0,0 +1,437 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, TemplateRef, Directive, ElementRef, input, booleanAttribute, viewChild, contentChild, Component, model, output, contentChildren, viewChildren, computed } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
class AerisStepHeaderTemplate {
|
|
6
|
+
template = inject(TemplateRef);
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisStepHeaderTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisStepHeaderTemplate, isStandalone: true, selector: "ng-template[aerisStepHeader]", ngImport: i0 });
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisStepHeaderTemplate, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{ selector: 'ng-template[aerisStepHeader]' }]
|
|
13
|
+
}] });
|
|
14
|
+
class AerisStepIndicatorTemplate {
|
|
15
|
+
template = inject(TemplateRef);
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisStepIndicatorTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
17
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisStepIndicatorTemplate, isStandalone: true, selector: "ng-template[aerisStepIndicator]", ngImport: i0 });
|
|
18
|
+
}
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisStepIndicatorTemplate, decorators: [{
|
|
20
|
+
type: Directive,
|
|
21
|
+
args: [{ selector: 'ng-template[aerisStepIndicator]' }]
|
|
22
|
+
}] });
|
|
23
|
+
let nextStepId = 0;
|
|
24
|
+
class AerisStep {
|
|
25
|
+
element = inject(ElementRef);
|
|
26
|
+
instanceId = nextStepId++;
|
|
27
|
+
value = input.required(/* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
29
|
+
label = input.required(/* @ts-ignore */
|
|
30
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
31
|
+
description = input('', /* @ts-ignore */
|
|
32
|
+
...(ngDevMode ? [{ debugName: "description" }] : /* istanbul ignore next */ []));
|
|
33
|
+
optional = input(false, { ...(ngDevMode ? { debugName: "optional" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
34
|
+
completed = input(false, { ...(ngDevMode ? { debugName: "completed" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
35
|
+
invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
36
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
37
|
+
stepId = `aeris-step-${this.instanceId}`;
|
|
38
|
+
panelId = `aeris-step-panel-${this.instanceId}`;
|
|
39
|
+
content = viewChild.required('content', /* @ts-ignore */
|
|
40
|
+
...(ngDevMode ? [{ debugName: "content" }] : /* istanbul ignore next */ []));
|
|
41
|
+
headerTemplate = contentChild(AerisStepHeaderTemplate, { ...(ngDevMode ? { debugName: "headerTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
42
|
+
indicatorTemplate = contentChild(AerisStepIndicatorTemplate, { ...(ngDevMode ? { debugName: "indicatorTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
43
|
+
isDirectStepOf(stepperHost) {
|
|
44
|
+
const parent = this.element.nativeElement.parentElement;
|
|
45
|
+
return (parent?.classList.contains('aeris-stepper__step-source') === true &&
|
|
46
|
+
parent.parentElement === stepperHost);
|
|
47
|
+
}
|
|
48
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisStep, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
49
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.2.0", version: "22.0.6", type: AerisStep, isStandalone: true, selector: "aeris-step", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: true, transformFunction: null }, description: { classPropertyName: "description", publicName: "description", isSignal: true, isRequired: false, transformFunction: null }, optional: { classPropertyName: "optional", publicName: "optional", isSignal: true, isRequired: false, transformFunction: null }, completed: { classPropertyName: "completed", publicName: "completed", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "style.display": "\"none\"" } }, queries: [{ propertyName: "headerTemplate", first: true, predicate: AerisStepHeaderTemplate, isSignal: true }, { propertyName: "indicatorTemplate", first: true, predicate: AerisStepIndicatorTemplate, isSignal: true }], viewQueries: [{ propertyName: "content", first: true, predicate: ["content"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
50
|
+
<ng-template #content>
|
|
51
|
+
<ng-content />
|
|
52
|
+
</ng-template>
|
|
53
|
+
`, isInline: true });
|
|
54
|
+
}
|
|
55
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisStep, decorators: [{
|
|
56
|
+
type: Component,
|
|
57
|
+
args: [{
|
|
58
|
+
selector: 'aeris-step',
|
|
59
|
+
template: `
|
|
60
|
+
<ng-template #content>
|
|
61
|
+
<ng-content />
|
|
62
|
+
</ng-template>
|
|
63
|
+
`,
|
|
64
|
+
host: {
|
|
65
|
+
'[style.display]': '"none"',
|
|
66
|
+
},
|
|
67
|
+
}]
|
|
68
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: true }] }], description: [{ type: i0.Input, args: [{ isSignal: true, alias: "description", required: false }] }], optional: [{ type: i0.Input, args: [{ isSignal: true, alias: "optional", required: false }] }], completed: [{ type: i0.Input, args: [{ isSignal: true, alias: "completed", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], content: [{ type: i0.ViewChild, args: ['content', { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisStepHeaderTemplate), { ...{
|
|
69
|
+
descendants: false,
|
|
70
|
+
}, isSignal: true }] }], indicatorTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisStepIndicatorTemplate), { ...{
|
|
71
|
+
descendants: false,
|
|
72
|
+
}, isSignal: true }] }] } });
|
|
73
|
+
class AerisStepper {
|
|
74
|
+
hostElement = inject(ElementRef).nativeElement;
|
|
75
|
+
value = model('', /* @ts-ignore */
|
|
76
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
77
|
+
orientation = input('horizontal', /* @ts-ignore */
|
|
78
|
+
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
79
|
+
activationMode = input('automatic', /* @ts-ignore */
|
|
80
|
+
...(ngDevMode ? [{ debugName: "activationMode" }] : /* istanbul ignore next */ []));
|
|
81
|
+
linear = input(false, { ...(ngDevMode ? { debugName: "linear" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
82
|
+
stepsOnly = input(false, { ...(ngDevMode ? { debugName: "stepsOnly" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
83
|
+
size = input('md', /* @ts-ignore */
|
|
84
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
85
|
+
variant = input('line', /* @ts-ignore */
|
|
86
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
87
|
+
optionalLabel = input('Optional', /* @ts-ignore */
|
|
88
|
+
...(ngDevMode ? [{ debugName: "optionalLabel" }] : /* istanbul ignore next */ []));
|
|
89
|
+
ariaLabel = input('', /* @ts-ignore */
|
|
90
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
91
|
+
ariaLabelledBy = input('', /* @ts-ignore */
|
|
92
|
+
...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
93
|
+
panelTabIndex = input(0, /* @ts-ignore */
|
|
94
|
+
...(ngDevMode ? [{ debugName: "panelTabIndex" }] : /* istanbul ignore next */ []));
|
|
95
|
+
changed = output();
|
|
96
|
+
stepFocused = output();
|
|
97
|
+
indicatorTemplate = contentChild(AerisStepIndicatorTemplate, { ...(ngDevMode ? { debugName: "indicatorTemplate" } : /* istanbul ignore next */ {}), descendants: false });
|
|
98
|
+
discoveredSteps = contentChildren(AerisStep, { ...(ngDevMode ? { debugName: "discoveredSteps" } : /* istanbul ignore next */ {}), descendants: true });
|
|
99
|
+
stepButtons = viewChildren('stepButton', /* @ts-ignore */
|
|
100
|
+
...(ngDevMode ? [{ debugName: "stepButtons" }] : /* istanbul ignore next */ []));
|
|
101
|
+
steps = computed(() => this.discoveredSteps().filter((step) => step.isDirectStepOf(this.hostElement)), /* @ts-ignore */
|
|
102
|
+
...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
|
|
103
|
+
activeState = computed(() => {
|
|
104
|
+
const selectedValue = this.value();
|
|
105
|
+
return (this.stepStates().find((state) => state.selected && !state.disabled) ??
|
|
106
|
+
this.stepStates().find((state) => !state.disabled));
|
|
107
|
+
}, /* @ts-ignore */
|
|
108
|
+
...(ngDevMode ? [{ debugName: "activeState" }] : /* istanbul ignore next */ []));
|
|
109
|
+
stepStates = computed(() => {
|
|
110
|
+
const steps = this.steps();
|
|
111
|
+
const selectedValue = this.value();
|
|
112
|
+
const activeIndex = Math.max(steps.findIndex((step) => !step.disabled() && step.value() === selectedValue), steps.findIndex((step) => !step.disabled()));
|
|
113
|
+
const globalIndicator = this.indicatorTemplate()?.template ?? null;
|
|
114
|
+
const lastReachableIndex = this.linear()
|
|
115
|
+
? Math.min(activeIndex + 1, steps.length - 1)
|
|
116
|
+
: steps.length - 1;
|
|
117
|
+
return steps.map((step, index) => {
|
|
118
|
+
const selected = index === activeIndex;
|
|
119
|
+
const completed = step.completed() || index < activeIndex;
|
|
120
|
+
const invalid = step.invalid();
|
|
121
|
+
const disabled = step.disabled();
|
|
122
|
+
const reachable = !this.linear() || index <= lastReachableIndex;
|
|
123
|
+
const context = {
|
|
124
|
+
$implicit: selected,
|
|
125
|
+
selected,
|
|
126
|
+
active: selected,
|
|
127
|
+
completed,
|
|
128
|
+
invalid,
|
|
129
|
+
disabled,
|
|
130
|
+
optional: step.optional(),
|
|
131
|
+
index,
|
|
132
|
+
value: step.value(),
|
|
133
|
+
label: step.label(),
|
|
134
|
+
description: step.description(),
|
|
135
|
+
};
|
|
136
|
+
return {
|
|
137
|
+
...context,
|
|
138
|
+
step,
|
|
139
|
+
stepId: step.stepId,
|
|
140
|
+
panelId: step.panelId,
|
|
141
|
+
reachable,
|
|
142
|
+
content: step.content(),
|
|
143
|
+
headerTemplate: step.headerTemplate()?.template ?? null,
|
|
144
|
+
indicatorTemplate: step.indicatorTemplate()?.template ?? globalIndicator,
|
|
145
|
+
};
|
|
146
|
+
});
|
|
147
|
+
}, /* @ts-ignore */
|
|
148
|
+
...(ngDevMode ? [{ debugName: "stepStates" }] : /* istanbul ignore next */ []));
|
|
149
|
+
select(value, originalEvent = null) {
|
|
150
|
+
const state = this.stepStates().find((candidate) => candidate.value === value);
|
|
151
|
+
if (!state || state.disabled || !state.reachable)
|
|
152
|
+
return;
|
|
153
|
+
const previousValue = this.activeState()?.value ?? '';
|
|
154
|
+
if (previousValue === value && this.value() === value)
|
|
155
|
+
return;
|
|
156
|
+
this.value.set(value);
|
|
157
|
+
this.changed.emit({
|
|
158
|
+
originalEvent,
|
|
159
|
+
value,
|
|
160
|
+
previousValue,
|
|
161
|
+
index: state.index,
|
|
162
|
+
});
|
|
163
|
+
}
|
|
164
|
+
next(originalEvent = null) {
|
|
165
|
+
const states = this.stepStates();
|
|
166
|
+
const currentIndex = this.activeState()?.index ?? -1;
|
|
167
|
+
const nextState = states.slice(currentIndex + 1).find((state) => !state.disabled && state.reachable);
|
|
168
|
+
if (nextState)
|
|
169
|
+
this.select(nextState.value, originalEvent);
|
|
170
|
+
}
|
|
171
|
+
previous(originalEvent = null) {
|
|
172
|
+
const states = this.stepStates();
|
|
173
|
+
const currentIndex = this.activeState()?.index ?? states.length;
|
|
174
|
+
const previousState = [...states.slice(0, currentIndex)].reverse().find((state) => !state.disabled);
|
|
175
|
+
if (previousState)
|
|
176
|
+
this.select(previousState.value, originalEvent);
|
|
177
|
+
}
|
|
178
|
+
focusStep(value, options) {
|
|
179
|
+
const index = this.stepStates().findIndex((state) => state.value === value && !state.disabled && state.reachable);
|
|
180
|
+
if (index < 0)
|
|
181
|
+
return;
|
|
182
|
+
this.stepButtons()[index]?.nativeElement.focus(options);
|
|
183
|
+
}
|
|
184
|
+
handleListKeydown(event) {
|
|
185
|
+
if (this.activationMode() === 'manual' &&
|
|
186
|
+
(event.key === 'Enter' || event.key === ' ')) {
|
|
187
|
+
event.preventDefault();
|
|
188
|
+
const focused = this.focusedButtonState(event);
|
|
189
|
+
if (focused)
|
|
190
|
+
this.select(focused.value, event);
|
|
191
|
+
return;
|
|
192
|
+
}
|
|
193
|
+
const direction = this.keyDirection(event.key);
|
|
194
|
+
if (direction === undefined)
|
|
195
|
+
return;
|
|
196
|
+
event.preventDefault();
|
|
197
|
+
const states = this.stepStates().filter((state) => !state.disabled && state.reachable);
|
|
198
|
+
if (states.length === 0)
|
|
199
|
+
return;
|
|
200
|
+
const focused = this.focusedButtonState(event) ?? this.activeState();
|
|
201
|
+
const currentIndex = Math.max(states.findIndex((state) => state.value === focused?.value), 0);
|
|
202
|
+
const nextIndex = direction === 'first'
|
|
203
|
+
? 0
|
|
204
|
+
: direction === 'last'
|
|
205
|
+
? states.length - 1
|
|
206
|
+
: (currentIndex + direction + states.length) % states.length;
|
|
207
|
+
const nextState = states[nextIndex];
|
|
208
|
+
if (!nextState)
|
|
209
|
+
return;
|
|
210
|
+
if (this.activationMode() === 'automatic')
|
|
211
|
+
this.select(nextState.value, event);
|
|
212
|
+
this.focusStep(nextState.value);
|
|
213
|
+
}
|
|
214
|
+
focusedButtonState(event) {
|
|
215
|
+
const index = this.stepButtons().findIndex((button) => button.nativeElement === event.target);
|
|
216
|
+
return index >= 0 ? this.stepStates()[index] : undefined;
|
|
217
|
+
}
|
|
218
|
+
keyDirection(key) {
|
|
219
|
+
if (key === 'Home')
|
|
220
|
+
return 'first';
|
|
221
|
+
if (key === 'End')
|
|
222
|
+
return 'last';
|
|
223
|
+
if ((this.orientation() === 'horizontal' && key === 'ArrowLeft') ||
|
|
224
|
+
(this.orientation() === 'vertical' && key === 'ArrowUp')) {
|
|
225
|
+
return -1;
|
|
226
|
+
}
|
|
227
|
+
if ((this.orientation() === 'horizontal' && key === 'ArrowRight') ||
|
|
228
|
+
(this.orientation() === 'vertical' && key === 'ArrowDown')) {
|
|
229
|
+
return 1;
|
|
230
|
+
}
|
|
231
|
+
return undefined;
|
|
232
|
+
}
|
|
233
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisStepper, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
234
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisStepper, isStandalone: true, selector: "aeris-stepper", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, activationMode: { classPropertyName: "activationMode", publicName: "activationMode", isSignal: true, isRequired: false, transformFunction: null }, linear: { classPropertyName: "linear", publicName: "linear", isSignal: true, isRequired: false, transformFunction: null }, stepsOnly: { classPropertyName: "stepsOnly", publicName: "stepsOnly", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, optionalLabel: { classPropertyName: "optionalLabel", publicName: "optionalLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: true, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: true, isRequired: false, transformFunction: null }, panelTabIndex: { classPropertyName: "panelTabIndex", publicName: "panelTabIndex", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { value: "valueChange", changed: "changed", stepFocused: "stepFocused" }, host: { properties: { "attr.data-orientation": "orientation()", "attr.data-size": "size()", "attr.data-variant": "variant()", "attr.data-linear": "linear() || null", "attr.data-steps-only": "stepsOnly() || null" }, classAttribute: "aeris-stepper" }, queries: [{ propertyName: "indicatorTemplate", first: true, predicate: AerisStepIndicatorTemplate, isSignal: true }, { propertyName: "discoveredSteps", predicate: AerisStep, descendants: true, isSignal: true }], viewQueries: [{ propertyName: "stepButtons", predicate: ["stepButton"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
235
|
+
<div class="aeris-stepper__step-source" aria-hidden="true">
|
|
236
|
+
<ng-content />
|
|
237
|
+
</div>
|
|
238
|
+
|
|
239
|
+
<div
|
|
240
|
+
class="aeris-stepper__list"
|
|
241
|
+
[attr.role]="stepsOnly() ? 'list' : 'tablist'"
|
|
242
|
+
[attr.aria-label]="ariaLabel() || null"
|
|
243
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
244
|
+
[attr.aria-orientation]="stepsOnly() ? null : orientation()"
|
|
245
|
+
(keydown)="handleListKeydown($event)"
|
|
246
|
+
>
|
|
247
|
+
@for (state of stepStates(); track state.value; let last = $last) {
|
|
248
|
+
<div
|
|
249
|
+
class="aeris-stepper__item"
|
|
250
|
+
[attr.role]="stepsOnly() ? 'listitem' : null"
|
|
251
|
+
[attr.data-selected]="state.selected || null"
|
|
252
|
+
[attr.data-completed]="state.completed || null"
|
|
253
|
+
[attr.data-invalid]="state.invalid || null"
|
|
254
|
+
[attr.data-disabled]="state.disabled || null"
|
|
255
|
+
[attr.data-reachable]="state.reachable || null"
|
|
256
|
+
>
|
|
257
|
+
<button
|
|
258
|
+
#stepButton
|
|
259
|
+
class="aeris-stepper__trigger"
|
|
260
|
+
type="button"
|
|
261
|
+
[attr.role]="stepsOnly() ? null : 'tab'"
|
|
262
|
+
[id]="state.stepId"
|
|
263
|
+
[disabled]="state.disabled || !state.reachable"
|
|
264
|
+
[attr.aria-selected]="stepsOnly() ? null : state.selected"
|
|
265
|
+
[attr.aria-controls]="stepsOnly() ? null : state.panelId"
|
|
266
|
+
[attr.aria-current]="state.selected ? 'step' : null"
|
|
267
|
+
[attr.aria-invalid]="state.invalid || null"
|
|
268
|
+
[attr.tabindex]="state.selected ? 0 : -1"
|
|
269
|
+
(click)="select(state.value, $event)"
|
|
270
|
+
(focus)="stepFocused.emit(state.value)"
|
|
271
|
+
>
|
|
272
|
+
<span class="aeris-stepper__indicator" aria-hidden="true">
|
|
273
|
+
@if (state.indicatorTemplate; as indicatorTemplate) {
|
|
274
|
+
<ng-container
|
|
275
|
+
[ngTemplateOutlet]="indicatorTemplate"
|
|
276
|
+
[ngTemplateOutletContext]="state"
|
|
277
|
+
/>
|
|
278
|
+
} @else if (state.completed) {
|
|
279
|
+
<span class="aeris-stepper__check"></span>
|
|
280
|
+
} @else {
|
|
281
|
+
{{ state.index + 1 }}
|
|
282
|
+
}
|
|
283
|
+
</span>
|
|
284
|
+
<span class="aeris-stepper__header">
|
|
285
|
+
@if (state.headerTemplate; as headerTemplate) {
|
|
286
|
+
<ng-container
|
|
287
|
+
[ngTemplateOutlet]="headerTemplate"
|
|
288
|
+
[ngTemplateOutletContext]="state"
|
|
289
|
+
/>
|
|
290
|
+
} @else {
|
|
291
|
+
<span class="aeris-stepper__label">{{ state.label }}</span>
|
|
292
|
+
@if (!stepsOnly() && state.description) {
|
|
293
|
+
<span class="aeris-stepper__description">{{ state.description }}</span>
|
|
294
|
+
}
|
|
295
|
+
@if (!stepsOnly() && state.optional) {
|
|
296
|
+
<span class="aeris-stepper__optional">{{ optionalLabel() }}</span>
|
|
297
|
+
}
|
|
298
|
+
}
|
|
299
|
+
</span>
|
|
300
|
+
</button>
|
|
301
|
+
@if (!last) {
|
|
302
|
+
<span class="aeris-stepper__connector" aria-hidden="true"></span>
|
|
303
|
+
}
|
|
304
|
+
</div>
|
|
305
|
+
}
|
|
306
|
+
</div>
|
|
307
|
+
|
|
308
|
+
@if (!stepsOnly()) {
|
|
309
|
+
@if (activeState(); as state) {
|
|
310
|
+
<section
|
|
311
|
+
class="aeris-stepper__panel"
|
|
312
|
+
role="tabpanel"
|
|
313
|
+
[id]="state.panelId"
|
|
314
|
+
[attr.aria-labelledby]="state.stepId"
|
|
315
|
+
[attr.tabindex]="panelTabIndex()"
|
|
316
|
+
>
|
|
317
|
+
<ng-container [ngTemplateOutlet]="state.content" />
|
|
318
|
+
</section>
|
|
319
|
+
}
|
|
320
|
+
}
|
|
321
|
+
`, isInline: true, styles: [":host{--_aeris-stepper-trigger-size: 2.25rem;--_aeris-stepper-gap: .75rem;--_aeris-stepper-font-size: .875rem;display:block;min-width:0;color:var(--aeris-stepper-color, var(--aeris-text, #222222));font:inherit}:host([data-size=sm]){--_aeris-stepper-trigger-size: 1.875rem;--_aeris-stepper-gap: .5rem;--_aeris-stepper-font-size: .8125rem}:host([data-size=lg]){--_aeris-stepper-trigger-size: 2.75rem;--_aeris-stepper-gap: 1rem;--_aeris-stepper-font-size: .9375rem}.aeris-stepper__step-source{display:none}.aeris-stepper__list{min-width:0;display:flex;align-items:stretch;gap:var(--_aeris-stepper-gap)}.aeris-stepper__item{min-width:0;flex:1 1 0;display:flex;align-items:center;gap:var(--_aeris-stepper-gap)}.aeris-stepper__trigger{min-width:0;flex:0 1 auto;display:inline-grid;grid-template-columns:var(--_aeris-stepper-trigger-size) minmax(0,1fr);align-items:center;gap:.625rem;padding:var(--aeris-stepper-trigger-padding, .375rem);border:0;border-radius:var(--aeris-stepper-radius, var(--aeris-radius-md, .6875rem));background:transparent;color:var(--aeris-stepper-muted-color, var(--aeris-text-2, #555555));font:inherit;font-size:var(--_aeris-stepper-font-size);text-align:start;cursor:pointer}.aeris-stepper__trigger:hover:not(:disabled){background:var(--aeris-stepper-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec)));color:var(--aeris-stepper-color, var(--aeris-text, #222222))}.aeris-stepper__trigger:focus-visible{outline:2px solid var(--aeris-stepper-focus, var(--aeris-focus, #536437));outline-offset:2px}.aeris-stepper__trigger:disabled{opacity:var(--aeris-disabled-opacity, .45);cursor:not-allowed}.aeris-stepper__indicator{width:var(--_aeris-stepper-trigger-size);height:var(--_aeris-stepper-trigger-size);display:inline-grid;place-items:center;border:1px solid var(--aeris-stepper-indicator-border, var(--aeris-border-strong, #c7c9c0));border-radius:999px;background:var(--aeris-stepper-indicator-background, var(--aeris-surface, #fff));color:var(--aeris-stepper-muted-color, var(--aeris-text-2, #555555));font-size:.8125em;font-weight:800}.aeris-stepper__header{min-width:0;display:grid;gap:.125rem}.aeris-stepper__label{overflow:hidden;color:inherit;font-weight:750;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.aeris-stepper__description,.aeris-stepper__optional{overflow:hidden;color:var(--aeris-stepper-description-color, var(--aeris-text-3, #73766f));font-size:.75em;font-weight:600;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.aeris-stepper__connector{min-width:1.5rem;height:var(--aeris-stepper-connector-size, 1px);flex:1 1 auto;border-radius:999px;background:var(--aeris-stepper-connector, var(--aeris-border, #deddd7))}.aeris-stepper__check{position:relative;width:1rem;height:1rem}.aeris-stepper__check:before{position:absolute;top:48%;left:50%;width:.65rem;height:.35rem;border-bottom:2px solid currentColor;border-left:2px solid currentColor;content:\"\";transform:translate(-50%,-58%) rotate(-45deg)}.aeris-stepper__item[data-selected] .aeris-stepper__trigger{color:var(--aeris-stepper-active-color, var(--aeris-primary-text, #566137))}.aeris-stepper__item[data-selected] .aeris-stepper__indicator{border-color:var(--aeris-stepper-active-border, var(--aeris-primary, #879566));background:var(--aeris-stepper-active-background, var(--aeris-primary-soft, #eef1e4));color:var(--aeris-stepper-active-color, var(--aeris-primary-text, #566137));box-shadow:0 0 0 4px color-mix(in srgb,var(--aeris-stepper-active-border, var(--aeris-primary, #879566)) 16%,transparent)}.aeris-stepper__item[data-completed] .aeris-stepper__indicator{border-color:var(--aeris-stepper-complete-border, var(--aeris-success, #557345));background:var(--aeris-stepper-complete-background, color-mix(in srgb, var(--aeris-success, #557345) 14%, var(--aeris-surface, #fff)));color:var(--aeris-stepper-complete-color, var(--aeris-success, #557345))}.aeris-stepper__item[data-completed] .aeris-stepper__connector{background:var(--aeris-stepper-complete-border, var(--aeris-success, #557345))}.aeris-stepper__item[data-invalid] .aeris-stepper__indicator{border-color:var(--aeris-stepper-invalid-border, var(--aeris-danger, #c81e2a));background:var(--aeris-stepper-invalid-background, color-mix(in srgb, var(--aeris-danger, #c81e2a) 12%, var(--aeris-surface, #fff)));color:var(--aeris-stepper-invalid-color, var(--aeris-danger-text, #a31722))}:host([data-variant=contained]) .aeris-stepper__list{padding:var(--aeris-stepper-list-padding, .375rem);border:1px solid var(--aeris-stepper-border, var(--aeris-border, #deddd7));border-radius:calc(var(--aeris-stepper-radius, var(--aeris-radius-md, .6875rem)) + .375rem);background:var(--aeris-stepper-list-background, var(--aeris-surface, #fff))}.aeris-stepper__panel{min-width:0;margin-top:var(--aeris-stepper-panel-gap, 1.25rem);padding:var(--aeris-stepper-panel-padding, 1.125rem);border:1px solid var(--aeris-stepper-panel-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-stepper-panel-radius, var(--aeris-radius-lg, 1.125rem));background:var(--aeris-stepper-panel-background, var(--aeris-surface, #fff));color:var(--aeris-stepper-panel-color, var(--aeris-text-2, #555555))}.aeris-stepper__panel:focus-visible{outline:2px solid var(--aeris-stepper-focus, var(--aeris-focus, #536437));outline-offset:2px}:host([data-orientation=vertical]){display:grid;grid-template-columns:minmax(14rem,max-content) minmax(0,1fr);gap:var(--aeris-stepper-vertical-gap, 1.25rem)}:host([data-orientation=vertical]) .aeris-stepper__list{flex-direction:column}:host([data-orientation=vertical]) .aeris-stepper__item{align-items:stretch;flex:0 0 auto;flex-direction:column}:host([data-orientation=vertical]) .aeris-stepper__trigger{width:100%}:host([data-orientation=vertical]) .aeris-stepper__connector{width:var(--aeris-stepper-connector-size, 1px);min-width:0;min-height:1.5rem;margin-inline-start:calc(var(--_aeris-stepper-trigger-size) / 2 + .375rem)}:host([data-orientation=vertical]) .aeris-stepper__panel{margin-top:0}:host([data-steps-only][data-orientation=vertical]){display:block}@media(max-width:48rem){:host,:host([data-orientation=vertical]){display:block}.aeris-stepper__list,:host([data-orientation=vertical]) .aeris-stepper__list{flex-direction:column}.aeris-stepper__item,:host([data-orientation=vertical]) .aeris-stepper__item{align-items:stretch;flex-direction:column}.aeris-stepper__trigger{width:100%}.aeris-stepper__connector,:host([data-orientation=vertical]) .aeris-stepper__connector{width:var(--aeris-stepper-connector-size, 1px);min-width:0;min-height:1rem;margin-inline-start:calc(var(--_aeris-stepper-trigger-size) / 2 + .375rem)}.aeris-stepper__panel{margin-top:1rem}}@media(prefers-reduced-motion:reduce){.aeris-stepper__trigger,.aeris-stepper__indicator{transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
322
|
+
}
|
|
323
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisStepper, decorators: [{
|
|
324
|
+
type: Component,
|
|
325
|
+
args: [{ selector: 'aeris-stepper', imports: [NgTemplateOutlet], template: `
|
|
326
|
+
<div class="aeris-stepper__step-source" aria-hidden="true">
|
|
327
|
+
<ng-content />
|
|
328
|
+
</div>
|
|
329
|
+
|
|
330
|
+
<div
|
|
331
|
+
class="aeris-stepper__list"
|
|
332
|
+
[attr.role]="stepsOnly() ? 'list' : 'tablist'"
|
|
333
|
+
[attr.aria-label]="ariaLabel() || null"
|
|
334
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
335
|
+
[attr.aria-orientation]="stepsOnly() ? null : orientation()"
|
|
336
|
+
(keydown)="handleListKeydown($event)"
|
|
337
|
+
>
|
|
338
|
+
@for (state of stepStates(); track state.value; let last = $last) {
|
|
339
|
+
<div
|
|
340
|
+
class="aeris-stepper__item"
|
|
341
|
+
[attr.role]="stepsOnly() ? 'listitem' : null"
|
|
342
|
+
[attr.data-selected]="state.selected || null"
|
|
343
|
+
[attr.data-completed]="state.completed || null"
|
|
344
|
+
[attr.data-invalid]="state.invalid || null"
|
|
345
|
+
[attr.data-disabled]="state.disabled || null"
|
|
346
|
+
[attr.data-reachable]="state.reachable || null"
|
|
347
|
+
>
|
|
348
|
+
<button
|
|
349
|
+
#stepButton
|
|
350
|
+
class="aeris-stepper__trigger"
|
|
351
|
+
type="button"
|
|
352
|
+
[attr.role]="stepsOnly() ? null : 'tab'"
|
|
353
|
+
[id]="state.stepId"
|
|
354
|
+
[disabled]="state.disabled || !state.reachable"
|
|
355
|
+
[attr.aria-selected]="stepsOnly() ? null : state.selected"
|
|
356
|
+
[attr.aria-controls]="stepsOnly() ? null : state.panelId"
|
|
357
|
+
[attr.aria-current]="state.selected ? 'step' : null"
|
|
358
|
+
[attr.aria-invalid]="state.invalid || null"
|
|
359
|
+
[attr.tabindex]="state.selected ? 0 : -1"
|
|
360
|
+
(click)="select(state.value, $event)"
|
|
361
|
+
(focus)="stepFocused.emit(state.value)"
|
|
362
|
+
>
|
|
363
|
+
<span class="aeris-stepper__indicator" aria-hidden="true">
|
|
364
|
+
@if (state.indicatorTemplate; as indicatorTemplate) {
|
|
365
|
+
<ng-container
|
|
366
|
+
[ngTemplateOutlet]="indicatorTemplate"
|
|
367
|
+
[ngTemplateOutletContext]="state"
|
|
368
|
+
/>
|
|
369
|
+
} @else if (state.completed) {
|
|
370
|
+
<span class="aeris-stepper__check"></span>
|
|
371
|
+
} @else {
|
|
372
|
+
{{ state.index + 1 }}
|
|
373
|
+
}
|
|
374
|
+
</span>
|
|
375
|
+
<span class="aeris-stepper__header">
|
|
376
|
+
@if (state.headerTemplate; as headerTemplate) {
|
|
377
|
+
<ng-container
|
|
378
|
+
[ngTemplateOutlet]="headerTemplate"
|
|
379
|
+
[ngTemplateOutletContext]="state"
|
|
380
|
+
/>
|
|
381
|
+
} @else {
|
|
382
|
+
<span class="aeris-stepper__label">{{ state.label }}</span>
|
|
383
|
+
@if (!stepsOnly() && state.description) {
|
|
384
|
+
<span class="aeris-stepper__description">{{ state.description }}</span>
|
|
385
|
+
}
|
|
386
|
+
@if (!stepsOnly() && state.optional) {
|
|
387
|
+
<span class="aeris-stepper__optional">{{ optionalLabel() }}</span>
|
|
388
|
+
}
|
|
389
|
+
}
|
|
390
|
+
</span>
|
|
391
|
+
</button>
|
|
392
|
+
@if (!last) {
|
|
393
|
+
<span class="aeris-stepper__connector" aria-hidden="true"></span>
|
|
394
|
+
}
|
|
395
|
+
</div>
|
|
396
|
+
}
|
|
397
|
+
</div>
|
|
398
|
+
|
|
399
|
+
@if (!stepsOnly()) {
|
|
400
|
+
@if (activeState(); as state) {
|
|
401
|
+
<section
|
|
402
|
+
class="aeris-stepper__panel"
|
|
403
|
+
role="tabpanel"
|
|
404
|
+
[id]="state.panelId"
|
|
405
|
+
[attr.aria-labelledby]="state.stepId"
|
|
406
|
+
[attr.tabindex]="panelTabIndex()"
|
|
407
|
+
>
|
|
408
|
+
<ng-container [ngTemplateOutlet]="state.content" />
|
|
409
|
+
</section>
|
|
410
|
+
}
|
|
411
|
+
}
|
|
412
|
+
`, host: {
|
|
413
|
+
class: 'aeris-stepper',
|
|
414
|
+
'[attr.data-orientation]': 'orientation()',
|
|
415
|
+
'[attr.data-size]': 'size()',
|
|
416
|
+
'[attr.data-variant]': 'variant()',
|
|
417
|
+
'[attr.data-linear]': 'linear() || null',
|
|
418
|
+
'[attr.data-steps-only]': 'stepsOnly() || null',
|
|
419
|
+
}, styles: [":host{--_aeris-stepper-trigger-size: 2.25rem;--_aeris-stepper-gap: .75rem;--_aeris-stepper-font-size: .875rem;display:block;min-width:0;color:var(--aeris-stepper-color, var(--aeris-text, #222222));font:inherit}:host([data-size=sm]){--_aeris-stepper-trigger-size: 1.875rem;--_aeris-stepper-gap: .5rem;--_aeris-stepper-font-size: .8125rem}:host([data-size=lg]){--_aeris-stepper-trigger-size: 2.75rem;--_aeris-stepper-gap: 1rem;--_aeris-stepper-font-size: .9375rem}.aeris-stepper__step-source{display:none}.aeris-stepper__list{min-width:0;display:flex;align-items:stretch;gap:var(--_aeris-stepper-gap)}.aeris-stepper__item{min-width:0;flex:1 1 0;display:flex;align-items:center;gap:var(--_aeris-stepper-gap)}.aeris-stepper__trigger{min-width:0;flex:0 1 auto;display:inline-grid;grid-template-columns:var(--_aeris-stepper-trigger-size) minmax(0,1fr);align-items:center;gap:.625rem;padding:var(--aeris-stepper-trigger-padding, .375rem);border:0;border-radius:var(--aeris-stepper-radius, var(--aeris-radius-md, .6875rem));background:transparent;color:var(--aeris-stepper-muted-color, var(--aeris-text-2, #555555));font:inherit;font-size:var(--_aeris-stepper-font-size);text-align:start;cursor:pointer}.aeris-stepper__trigger:hover:not(:disabled){background:var(--aeris-stepper-hover-background, var(--aeris-interactive-hover, var(--aeris-surface-2, #f2f0ec)));color:var(--aeris-stepper-color, var(--aeris-text, #222222))}.aeris-stepper__trigger:focus-visible{outline:2px solid var(--aeris-stepper-focus, var(--aeris-focus, #536437));outline-offset:2px}.aeris-stepper__trigger:disabled{opacity:var(--aeris-disabled-opacity, .45);cursor:not-allowed}.aeris-stepper__indicator{width:var(--_aeris-stepper-trigger-size);height:var(--_aeris-stepper-trigger-size);display:inline-grid;place-items:center;border:1px solid var(--aeris-stepper-indicator-border, var(--aeris-border-strong, #c7c9c0));border-radius:999px;background:var(--aeris-stepper-indicator-background, var(--aeris-surface, #fff));color:var(--aeris-stepper-muted-color, var(--aeris-text-2, #555555));font-size:.8125em;font-weight:800}.aeris-stepper__header{min-width:0;display:grid;gap:.125rem}.aeris-stepper__label{overflow:hidden;color:inherit;font-weight:750;line-height:1.3;text-overflow:ellipsis;white-space:nowrap}.aeris-stepper__description,.aeris-stepper__optional{overflow:hidden;color:var(--aeris-stepper-description-color, var(--aeris-text-3, #73766f));font-size:.75em;font-weight:600;line-height:1.35;text-overflow:ellipsis;white-space:nowrap}.aeris-stepper__connector{min-width:1.5rem;height:var(--aeris-stepper-connector-size, 1px);flex:1 1 auto;border-radius:999px;background:var(--aeris-stepper-connector, var(--aeris-border, #deddd7))}.aeris-stepper__check{position:relative;width:1rem;height:1rem}.aeris-stepper__check:before{position:absolute;top:48%;left:50%;width:.65rem;height:.35rem;border-bottom:2px solid currentColor;border-left:2px solid currentColor;content:\"\";transform:translate(-50%,-58%) rotate(-45deg)}.aeris-stepper__item[data-selected] .aeris-stepper__trigger{color:var(--aeris-stepper-active-color, var(--aeris-primary-text, #566137))}.aeris-stepper__item[data-selected] .aeris-stepper__indicator{border-color:var(--aeris-stepper-active-border, var(--aeris-primary, #879566));background:var(--aeris-stepper-active-background, var(--aeris-primary-soft, #eef1e4));color:var(--aeris-stepper-active-color, var(--aeris-primary-text, #566137));box-shadow:0 0 0 4px color-mix(in srgb,var(--aeris-stepper-active-border, var(--aeris-primary, #879566)) 16%,transparent)}.aeris-stepper__item[data-completed] .aeris-stepper__indicator{border-color:var(--aeris-stepper-complete-border, var(--aeris-success, #557345));background:var(--aeris-stepper-complete-background, color-mix(in srgb, var(--aeris-success, #557345) 14%, var(--aeris-surface, #fff)));color:var(--aeris-stepper-complete-color, var(--aeris-success, #557345))}.aeris-stepper__item[data-completed] .aeris-stepper__connector{background:var(--aeris-stepper-complete-border, var(--aeris-success, #557345))}.aeris-stepper__item[data-invalid] .aeris-stepper__indicator{border-color:var(--aeris-stepper-invalid-border, var(--aeris-danger, #c81e2a));background:var(--aeris-stepper-invalid-background, color-mix(in srgb, var(--aeris-danger, #c81e2a) 12%, var(--aeris-surface, #fff)));color:var(--aeris-stepper-invalid-color, var(--aeris-danger-text, #a31722))}:host([data-variant=contained]) .aeris-stepper__list{padding:var(--aeris-stepper-list-padding, .375rem);border:1px solid var(--aeris-stepper-border, var(--aeris-border, #deddd7));border-radius:calc(var(--aeris-stepper-radius, var(--aeris-radius-md, .6875rem)) + .375rem);background:var(--aeris-stepper-list-background, var(--aeris-surface, #fff))}.aeris-stepper__panel{min-width:0;margin-top:var(--aeris-stepper-panel-gap, 1.25rem);padding:var(--aeris-stepper-panel-padding, 1.125rem);border:1px solid var(--aeris-stepper-panel-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-stepper-panel-radius, var(--aeris-radius-lg, 1.125rem));background:var(--aeris-stepper-panel-background, var(--aeris-surface, #fff));color:var(--aeris-stepper-panel-color, var(--aeris-text-2, #555555))}.aeris-stepper__panel:focus-visible{outline:2px solid var(--aeris-stepper-focus, var(--aeris-focus, #536437));outline-offset:2px}:host([data-orientation=vertical]){display:grid;grid-template-columns:minmax(14rem,max-content) minmax(0,1fr);gap:var(--aeris-stepper-vertical-gap, 1.25rem)}:host([data-orientation=vertical]) .aeris-stepper__list{flex-direction:column}:host([data-orientation=vertical]) .aeris-stepper__item{align-items:stretch;flex:0 0 auto;flex-direction:column}:host([data-orientation=vertical]) .aeris-stepper__trigger{width:100%}:host([data-orientation=vertical]) .aeris-stepper__connector{width:var(--aeris-stepper-connector-size, 1px);min-width:0;min-height:1.5rem;margin-inline-start:calc(var(--_aeris-stepper-trigger-size) / 2 + .375rem)}:host([data-orientation=vertical]) .aeris-stepper__panel{margin-top:0}:host([data-steps-only][data-orientation=vertical]){display:block}@media(max-width:48rem){:host,:host([data-orientation=vertical]){display:block}.aeris-stepper__list,:host([data-orientation=vertical]) .aeris-stepper__list{flex-direction:column}.aeris-stepper__item,:host([data-orientation=vertical]) .aeris-stepper__item{align-items:stretch;flex-direction:column}.aeris-stepper__trigger{width:100%}.aeris-stepper__connector,:host([data-orientation=vertical]) .aeris-stepper__connector{width:var(--aeris-stepper-connector-size, 1px);min-width:0;min-height:1rem;margin-inline-start:calc(var(--_aeris-stepper-trigger-size) / 2 + .375rem)}.aeris-stepper__panel{margin-top:1rem}}@media(prefers-reduced-motion:reduce){.aeris-stepper__trigger,.aeris-stepper__indicator{transition:none}}\n"] }]
|
|
420
|
+
}], propDecorators: { value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], activationMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "activationMode", required: false }] }], linear: [{ type: i0.Input, args: [{ isSignal: true, alias: "linear", required: false }] }], stepsOnly: [{ type: i0.Input, args: [{ isSignal: true, alias: "stepsOnly", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], optionalLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "optionalLabel", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], panelTabIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelTabIndex", required: false }] }], changed: [{ type: i0.Output, args: ["changed"] }], stepFocused: [{ type: i0.Output, args: ["stepFocused"] }], indicatorTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisStepIndicatorTemplate), { ...{
|
|
421
|
+
descendants: false,
|
|
422
|
+
}, isSignal: true }] }], discoveredSteps: [{ type: i0.ContentChildren, args: [i0.forwardRef(() => AerisStep), { ...{
|
|
423
|
+
descendants: true,
|
|
424
|
+
}, isSignal: true }] }], stepButtons: [{ type: i0.ViewChildren, args: ['stepButton', { isSignal: true }] }] } });
|
|
425
|
+
const AerisStepperModule = [
|
|
426
|
+
AerisStepper,
|
|
427
|
+
AerisStep,
|
|
428
|
+
AerisStepHeaderTemplate,
|
|
429
|
+
AerisStepIndicatorTemplate,
|
|
430
|
+
];
|
|
431
|
+
|
|
432
|
+
/**
|
|
433
|
+
* Generated bundle index. Do not edit.
|
|
434
|
+
*/
|
|
435
|
+
|
|
436
|
+
export { AerisStep, AerisStepHeaderTemplate, AerisStepIndicatorTemplate, AerisStepper, AerisStepperModule };
|
|
437
|
+
//# sourceMappingURL=aeris-ui-core-stepper.mjs.map
|