@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,532 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, ElementRef, viewChild, viewChildren, input, model, booleanAttribute, output, contentChild, computed, linkedSignal, Component } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
let splitButtonId = 0;
|
|
6
|
+
class AerisSplitButton {
|
|
7
|
+
host = inject(ElementRef);
|
|
8
|
+
generatedId = `aeris-split-button-${++splitButtonId}`;
|
|
9
|
+
toggleButton = viewChild('toggle', /* @ts-ignore */
|
|
10
|
+
...(ngDevMode ? [{ debugName: "toggleButton" }] : /* istanbul ignore next */ []));
|
|
11
|
+
menuItems = viewChildren('menuItem', /* @ts-ignore */
|
|
12
|
+
...(ngDevMode ? [{ debugName: "menuItems" }] : /* istanbul ignore next */ []));
|
|
13
|
+
id = input(this.generatedId, /* @ts-ignore */
|
|
14
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
15
|
+
label = input('', /* @ts-ignore */
|
|
16
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
17
|
+
icon = input('', /* @ts-ignore */
|
|
18
|
+
...(ngDevMode ? [{ debugName: "icon" }] : /* istanbul ignore next */ []));
|
|
19
|
+
model = input([], /* @ts-ignore */
|
|
20
|
+
...(ngDevMode ? [{ debugName: "model" }] : /* istanbul ignore next */ []));
|
|
21
|
+
open = model(false, /* @ts-ignore */
|
|
22
|
+
...(ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []));
|
|
23
|
+
type = input('button', /* @ts-ignore */
|
|
24
|
+
...(ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []));
|
|
25
|
+
variant = input('primary', /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
27
|
+
severity = input('primary', /* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []));
|
|
29
|
+
size = input('md', /* @ts-ignore */
|
|
30
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
31
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
32
|
+
loading = input(false, { ...(ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
33
|
+
raised = input(false, { ...(ngDevMode ? { debugName: "raised" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
34
|
+
rounded = input(false, { ...(ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
35
|
+
outlined = input(false, { ...(ngDevMode ? { debugName: "outlined" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
36
|
+
text = input(false, { ...(ngDevMode ? { debugName: "text" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
37
|
+
plain = input(false, { ...(ngDevMode ? { debugName: "plain" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
38
|
+
fluid = input(false, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
39
|
+
hideOnClickOutside = input(true, { ...(ngDevMode ? { debugName: "hideOnClickOutside" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
40
|
+
menuAriaLabel = input('Additional actions', /* @ts-ignore */
|
|
41
|
+
...(ngDevMode ? [{ debugName: "menuAriaLabel" }] : /* istanbul ignore next */ []));
|
|
42
|
+
menuStyleClass = input('', /* @ts-ignore */
|
|
43
|
+
...(ngDevMode ? [{ debugName: "menuStyleClass" }] : /* istanbul ignore next */ []));
|
|
44
|
+
buttonProps = input(/* @ts-ignore */
|
|
45
|
+
...(ngDevMode ? [undefined, { debugName: "buttonProps" }] : /* istanbul ignore next */ []));
|
|
46
|
+
menuButtonProps = input(/* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [undefined, { debugName: "menuButtonProps" }] : /* istanbul ignore next */ []));
|
|
48
|
+
contentTemplate = input(/* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [undefined, { debugName: "contentTemplate" }] : /* istanbul ignore next */ []));
|
|
50
|
+
iconTemplate = input(/* @ts-ignore */
|
|
51
|
+
...(ngDevMode ? [undefined, { debugName: "iconTemplate" }] : /* istanbul ignore next */ []));
|
|
52
|
+
loadingIconTemplate = input(/* @ts-ignore */
|
|
53
|
+
...(ngDevMode ? [undefined, { debugName: "loadingIconTemplate" }] : /* istanbul ignore next */ []));
|
|
54
|
+
dropdownIconTemplate = input(/* @ts-ignore */
|
|
55
|
+
...(ngDevMode ? [undefined, { debugName: "dropdownIconTemplate" }] : /* istanbul ignore next */ []));
|
|
56
|
+
itemTemplate = input(/* @ts-ignore */
|
|
57
|
+
...(ngDevMode ? [undefined, { debugName: "itemTemplate" }] : /* istanbul ignore next */ []));
|
|
58
|
+
navigationHandler = input(/* @ts-ignore */
|
|
59
|
+
...(ngDevMode ? [undefined, { debugName: "navigationHandler" }] : /* istanbul ignore next */ []));
|
|
60
|
+
clicked = output();
|
|
61
|
+
dropdownClicked = output();
|
|
62
|
+
shown = output();
|
|
63
|
+
hidden = output();
|
|
64
|
+
itemSelected = output();
|
|
65
|
+
projectedContentTemplate = contentChild('content', /* @ts-ignore */
|
|
66
|
+
...(ngDevMode ? [{ debugName: "projectedContentTemplate" }] : /* istanbul ignore next */ []));
|
|
67
|
+
projectedIconTemplate = contentChild('icon', /* @ts-ignore */
|
|
68
|
+
...(ngDevMode ? [{ debugName: "projectedIconTemplate" }] : /* istanbul ignore next */ []));
|
|
69
|
+
projectedLoadingIconTemplate = contentChild('loadingIcon', /* @ts-ignore */
|
|
70
|
+
...(ngDevMode ? [{ debugName: "projectedLoadingIconTemplate" }] : /* istanbul ignore next */ []));
|
|
71
|
+
projectedDropdownIconTemplate = contentChild('dropdownIcon', /* @ts-ignore */
|
|
72
|
+
...(ngDevMode ? [{ debugName: "projectedDropdownIconTemplate" }] : /* istanbul ignore next */ []));
|
|
73
|
+
projectedItemTemplate = contentChild('item', /* @ts-ignore */
|
|
74
|
+
...(ngDevMode ? [{ debugName: "projectedItemTemplate" }] : /* istanbul ignore next */ []));
|
|
75
|
+
effectiveDisabled = computed(() => this.disabled() || this.loading(), /* @ts-ignore */
|
|
76
|
+
...(ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []));
|
|
77
|
+
effectiveVariant = computed(() => {
|
|
78
|
+
if (this.text())
|
|
79
|
+
return 'ghost';
|
|
80
|
+
if (this.outlined())
|
|
81
|
+
return 'outline';
|
|
82
|
+
return this.variant();
|
|
83
|
+
}, /* @ts-ignore */
|
|
84
|
+
...(ngDevMode ? [{ debugName: "effectiveVariant" }] : /* istanbul ignore next */ []));
|
|
85
|
+
menuId = computed(() => `${this.id()}-menu`, /* @ts-ignore */
|
|
86
|
+
...(ngDevMode ? [{ debugName: "menuId" }] : /* istanbul ignore next */ []));
|
|
87
|
+
visibleItems = computed(() => this.model()
|
|
88
|
+
.filter((item) => item.visible !== false)
|
|
89
|
+
.map((item, index) => ({
|
|
90
|
+
item,
|
|
91
|
+
index,
|
|
92
|
+
id: item.id ?? `${this.id()}-item-${index}`,
|
|
93
|
+
href: this.resolveHref(item),
|
|
94
|
+
})), /* @ts-ignore */
|
|
95
|
+
...(ngDevMode ? [{ debugName: "visibleItems" }] : /* istanbul ignore next */ []));
|
|
96
|
+
activeIndex = linkedSignal(() => this.open() ? this.firstEnabledIndex() : -1, /* @ts-ignore */
|
|
97
|
+
...(ngDevMode ? [{ debugName: "activeIndex" }] : /* istanbul ignore next */ []));
|
|
98
|
+
iconContentTemplate = computed(() => this.iconTemplate() ?? this.projectedIconTemplate(), /* @ts-ignore */
|
|
99
|
+
...(ngDevMode ? [{ debugName: "iconContentTemplate" }] : /* istanbul ignore next */ []));
|
|
100
|
+
loadingIconContentTemplate = computed(() => this.loadingIconTemplate() ?? this.projectedLoadingIconTemplate(), /* @ts-ignore */
|
|
101
|
+
...(ngDevMode ? [{ debugName: "loadingIconContentTemplate" }] : /* istanbul ignore next */ []));
|
|
102
|
+
dropdownIconContentTemplate = computed(() => this.dropdownIconTemplate() ?? this.projectedDropdownIconTemplate(), /* @ts-ignore */
|
|
103
|
+
...(ngDevMode ? [{ debugName: "dropdownIconContentTemplate" }] : /* istanbul ignore next */ []));
|
|
104
|
+
itemContentTemplate = computed(() => this.itemTemplate() ?? this.projectedItemTemplate(), /* @ts-ignore */
|
|
105
|
+
...(ngDevMode ? [{ debugName: "itemContentTemplate" }] : /* istanbul ignore next */ []));
|
|
106
|
+
activatePrimary(event) {
|
|
107
|
+
if (!this.effectiveDisabled())
|
|
108
|
+
this.clicked.emit(event);
|
|
109
|
+
}
|
|
110
|
+
toggleMenu(event) {
|
|
111
|
+
this.dropdownClicked.emit(event);
|
|
112
|
+
this.open() ? this.hide(event) : this.show(event);
|
|
113
|
+
}
|
|
114
|
+
show(event) {
|
|
115
|
+
if (this.effectiveDisabled() || this.open())
|
|
116
|
+
return;
|
|
117
|
+
this.open.set(true);
|
|
118
|
+
this.shown.emit(event);
|
|
119
|
+
}
|
|
120
|
+
hide(event, restoreFocus = false) {
|
|
121
|
+
if (!this.open())
|
|
122
|
+
return;
|
|
123
|
+
this.open.set(false);
|
|
124
|
+
this.hidden.emit(event);
|
|
125
|
+
if (restoreFocus) {
|
|
126
|
+
queueMicrotask(() => this.toggleButton()?.nativeElement.focus());
|
|
127
|
+
}
|
|
128
|
+
}
|
|
129
|
+
activateItem(event, entry) {
|
|
130
|
+
if (entry.item.disabled || entry.item.separator) {
|
|
131
|
+
event.preventDefault();
|
|
132
|
+
return;
|
|
133
|
+
}
|
|
134
|
+
const commandEvent = { originalEvent: event, item: entry.item };
|
|
135
|
+
entry.item.command?.(commandEvent);
|
|
136
|
+
this.itemSelected.emit(commandEvent);
|
|
137
|
+
if (entry.item.routerLink && this.navigationHandler()) {
|
|
138
|
+
event.preventDefault();
|
|
139
|
+
this.navigationHandler()?.(entry.item.routerLink, event);
|
|
140
|
+
}
|
|
141
|
+
this.hide(event, true);
|
|
142
|
+
}
|
|
143
|
+
itemContext(entry) {
|
|
144
|
+
return { $implicit: entry.item, item: entry.item, index: entry.index };
|
|
145
|
+
}
|
|
146
|
+
onToggleKeydown(event) {
|
|
147
|
+
if (!['ArrowDown', 'ArrowUp'].includes(event.key))
|
|
148
|
+
return;
|
|
149
|
+
event.preventDefault();
|
|
150
|
+
this.show(event);
|
|
151
|
+
this.activeIndex.set(event.key === 'ArrowUp' ? this.lastEnabledIndex() : this.firstEnabledIndex());
|
|
152
|
+
this.focusActiveItem();
|
|
153
|
+
}
|
|
154
|
+
onMenuKeydown(event) {
|
|
155
|
+
switch (event.key) {
|
|
156
|
+
case 'ArrowDown':
|
|
157
|
+
event.preventDefault();
|
|
158
|
+
this.moveFocus(1);
|
|
159
|
+
break;
|
|
160
|
+
case 'ArrowUp':
|
|
161
|
+
event.preventDefault();
|
|
162
|
+
this.moveFocus(-1);
|
|
163
|
+
break;
|
|
164
|
+
case 'Home':
|
|
165
|
+
event.preventDefault();
|
|
166
|
+
this.activeIndex.set(this.firstEnabledIndex());
|
|
167
|
+
this.focusActiveItem();
|
|
168
|
+
break;
|
|
169
|
+
case 'End':
|
|
170
|
+
event.preventDefault();
|
|
171
|
+
this.activeIndex.set(this.lastEnabledIndex());
|
|
172
|
+
this.focusActiveItem();
|
|
173
|
+
break;
|
|
174
|
+
case 'Escape':
|
|
175
|
+
event.preventDefault();
|
|
176
|
+
this.hide(event, true);
|
|
177
|
+
break;
|
|
178
|
+
case 'Tab':
|
|
179
|
+
this.hide(event);
|
|
180
|
+
break;
|
|
181
|
+
}
|
|
182
|
+
}
|
|
183
|
+
onDocumentClick(event) {
|
|
184
|
+
const target = event.target;
|
|
185
|
+
if (this.open() &&
|
|
186
|
+
this.hideOnClickOutside() &&
|
|
187
|
+
target instanceof Node &&
|
|
188
|
+
!this.host.nativeElement.contains(target)) {
|
|
189
|
+
this.hide(event);
|
|
190
|
+
}
|
|
191
|
+
}
|
|
192
|
+
enabledIndexes() {
|
|
193
|
+
return this.visibleItems().flatMap((entry) => entry.item.disabled || entry.item.separator ? [] : [entry.index]);
|
|
194
|
+
}
|
|
195
|
+
firstEnabledIndex() {
|
|
196
|
+
return this.enabledIndexes().at(0) ?? -1;
|
|
197
|
+
}
|
|
198
|
+
lastEnabledIndex() {
|
|
199
|
+
return this.enabledIndexes().at(-1) ?? -1;
|
|
200
|
+
}
|
|
201
|
+
moveFocus(step) {
|
|
202
|
+
const enabled = this.enabledIndexes();
|
|
203
|
+
if (!enabled.length)
|
|
204
|
+
return;
|
|
205
|
+
const current = enabled.indexOf(this.activeIndex());
|
|
206
|
+
const next = current < 0
|
|
207
|
+
? (step === 1 ? 0 : enabled.length - 1)
|
|
208
|
+
: (current + step + enabled.length) % enabled.length;
|
|
209
|
+
this.activeIndex.set(enabled[next]);
|
|
210
|
+
this.focusActiveItem();
|
|
211
|
+
}
|
|
212
|
+
focusActiveItem() {
|
|
213
|
+
queueMicrotask(() => {
|
|
214
|
+
const entry = this.visibleItems().find(({ index }) => index === this.activeIndex());
|
|
215
|
+
if (!entry)
|
|
216
|
+
return;
|
|
217
|
+
this.menuItems()
|
|
218
|
+
.find(({ nativeElement }) => nativeElement.id === entry.id)
|
|
219
|
+
?.nativeElement.focus();
|
|
220
|
+
});
|
|
221
|
+
}
|
|
222
|
+
resolveHref(item) {
|
|
223
|
+
if (item.url)
|
|
224
|
+
return item.url;
|
|
225
|
+
if (!item.routerLink)
|
|
226
|
+
return null;
|
|
227
|
+
if (typeof item.routerLink === 'string')
|
|
228
|
+
return item.routerLink;
|
|
229
|
+
return `/${item.routerLink
|
|
230
|
+
.map((segment) => String(segment).replace(/^\/+|\/+$/g, ''))
|
|
231
|
+
.filter(Boolean)
|
|
232
|
+
.join('/')}`;
|
|
233
|
+
}
|
|
234
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisSplitButton, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
235
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisSplitButton, isStandalone: true, selector: "aeris-split-button", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", isSignal: true, isRequired: false, transformFunction: null }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: true, isRequired: false, transformFunction: null }, model: { classPropertyName: "model", publicName: "model", isSignal: true, isRequired: false, transformFunction: null }, open: { classPropertyName: "open", publicName: "open", isSignal: true, isRequired: false, transformFunction: null }, type: { classPropertyName: "type", publicName: "type", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, severity: { classPropertyName: "severity", publicName: "severity", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, raised: { classPropertyName: "raised", publicName: "raised", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", isSignal: true, isRequired: false, transformFunction: null }, outlined: { classPropertyName: "outlined", publicName: "outlined", isSignal: true, isRequired: false, transformFunction: null }, text: { classPropertyName: "text", publicName: "text", isSignal: true, isRequired: false, transformFunction: null }, plain: { classPropertyName: "plain", publicName: "plain", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, hideOnClickOutside: { classPropertyName: "hideOnClickOutside", publicName: "hideOnClickOutside", isSignal: true, isRequired: false, transformFunction: null }, menuAriaLabel: { classPropertyName: "menuAriaLabel", publicName: "menuAriaLabel", isSignal: true, isRequired: false, transformFunction: null }, menuStyleClass: { classPropertyName: "menuStyleClass", publicName: "menuStyleClass", isSignal: true, isRequired: false, transformFunction: null }, buttonProps: { classPropertyName: "buttonProps", publicName: "buttonProps", isSignal: true, isRequired: false, transformFunction: null }, menuButtonProps: { classPropertyName: "menuButtonProps", publicName: "menuButtonProps", isSignal: true, isRequired: false, transformFunction: null }, contentTemplate: { classPropertyName: "contentTemplate", publicName: "contentTemplate", isSignal: true, isRequired: false, transformFunction: null }, iconTemplate: { classPropertyName: "iconTemplate", publicName: "iconTemplate", isSignal: true, isRequired: false, transformFunction: null }, loadingIconTemplate: { classPropertyName: "loadingIconTemplate", publicName: "loadingIconTemplate", isSignal: true, isRequired: false, transformFunction: null }, dropdownIconTemplate: { classPropertyName: "dropdownIconTemplate", publicName: "dropdownIconTemplate", isSignal: true, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null }, navigationHandler: { classPropertyName: "navigationHandler", publicName: "navigationHandler", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { open: "openChange", clicked: "clicked", dropdownClicked: "dropdownClicked", shown: "shown", hidden: "hidden", itemSelected: "itemSelected" }, host: { listeners: { "document:click": "onDocumentClick($event)" }, properties: { "attr.data-fluid": "fluid() || null", "attr.data-open": "open() || null" }, classAttribute: "aeris-split-button" }, queries: [{ propertyName: "projectedContentTemplate", first: true, predicate: ["content"], descendants: true, isSignal: true }, { propertyName: "projectedIconTemplate", first: true, predicate: ["icon"], descendants: true, isSignal: true }, { propertyName: "projectedLoadingIconTemplate", first: true, predicate: ["loadingIcon"], descendants: true, isSignal: true }, { propertyName: "projectedDropdownIconTemplate", first: true, predicate: ["dropdownIcon"], descendants: true, isSignal: true }, { propertyName: "projectedItemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "toggleButton", first: true, predicate: ["toggle"], descendants: true, isSignal: true }, { propertyName: "menuItems", predicate: ["menuItem"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
236
|
+
<div class="aeris-split-button__control">
|
|
237
|
+
<button
|
|
238
|
+
class="aeris-split-button__primary"
|
|
239
|
+
[attr.data-variant]="effectiveVariant()"
|
|
240
|
+
[attr.data-severity]="severity()"
|
|
241
|
+
[attr.data-size]="size()"
|
|
242
|
+
[attr.data-raised]="raised() || null"
|
|
243
|
+
[attr.data-rounded]="rounded() || null"
|
|
244
|
+
[attr.data-plain]="plain() || null"
|
|
245
|
+
[type]="type()"
|
|
246
|
+
[disabled]="effectiveDisabled()"
|
|
247
|
+
[attr.aria-busy]="loading() || null"
|
|
248
|
+
[attr.aria-label]="buttonProps()?.ariaLabel"
|
|
249
|
+
[attr.title]="buttonProps()?.title"
|
|
250
|
+
[attr.tabindex]="buttonProps()?.tabIndex"
|
|
251
|
+
(click)="activatePrimary($event)"
|
|
252
|
+
>
|
|
253
|
+
@if (contentTemplate(); as template) {
|
|
254
|
+
<ng-container
|
|
255
|
+
[ngTemplateOutlet]="template"
|
|
256
|
+
[ngTemplateOutletContext]="{ loading: loading(), disabled: effectiveDisabled() }"
|
|
257
|
+
/>
|
|
258
|
+
} @else {
|
|
259
|
+
@if (loading() && loadingIconContentTemplate(); as template) {
|
|
260
|
+
<ng-container
|
|
261
|
+
[ngTemplateOutlet]="template"
|
|
262
|
+
[ngTemplateOutletContext]="{ loading: true }"
|
|
263
|
+
/>
|
|
264
|
+
} @else if (loading()) {
|
|
265
|
+
<span class="aeris-split-button__spinner" aria-hidden="true"></span>
|
|
266
|
+
} @else if (iconContentTemplate(); as template) {
|
|
267
|
+
<ng-container
|
|
268
|
+
[ngTemplateOutlet]="template"
|
|
269
|
+
[ngTemplateOutletContext]="{ loading: false }"
|
|
270
|
+
/>
|
|
271
|
+
} @else if (icon()) {
|
|
272
|
+
<span class="aeris-split-button__primary-icon" aria-hidden="true">{{ icon() }}</span>
|
|
273
|
+
}
|
|
274
|
+
<span>{{ label() }}</span>
|
|
275
|
+
}
|
|
276
|
+
</button>
|
|
277
|
+
|
|
278
|
+
<button
|
|
279
|
+
#toggle
|
|
280
|
+
type="button"
|
|
281
|
+
class="aeris-split-button__toggle"
|
|
282
|
+
[attr.data-variant]="effectiveVariant()"
|
|
283
|
+
[attr.data-severity]="severity()"
|
|
284
|
+
[attr.data-size]="size()"
|
|
285
|
+
[attr.data-raised]="raised() || null"
|
|
286
|
+
[attr.data-rounded]="rounded() || null"
|
|
287
|
+
[attr.data-plain]="plain() || null"
|
|
288
|
+
[disabled]="effectiveDisabled()"
|
|
289
|
+
[attr.aria-label]="menuButtonProps()?.ariaLabel ?? 'More actions'"
|
|
290
|
+
[attr.title]="menuButtonProps()?.title"
|
|
291
|
+
[attr.tabindex]="menuButtonProps()?.tabIndex"
|
|
292
|
+
[attr.aria-controls]="menuId()"
|
|
293
|
+
[attr.aria-expanded]="open()"
|
|
294
|
+
aria-haspopup="menu"
|
|
295
|
+
(click)="toggleMenu($event)"
|
|
296
|
+
(keydown)="onToggleKeydown($event)"
|
|
297
|
+
>
|
|
298
|
+
@if (dropdownIconContentTemplate(); as template) {
|
|
299
|
+
<ng-container
|
|
300
|
+
[ngTemplateOutlet]="template"
|
|
301
|
+
[ngTemplateOutletContext]="{ loading: loading() }"
|
|
302
|
+
/>
|
|
303
|
+
} @else {
|
|
304
|
+
<span class="aeris-split-button__chevron" aria-hidden="true"></span>
|
|
305
|
+
}
|
|
306
|
+
</button>
|
|
307
|
+
</div>
|
|
308
|
+
|
|
309
|
+
@if (open()) {
|
|
310
|
+
<div
|
|
311
|
+
class="aeris-split-button__menu"
|
|
312
|
+
[class]="menuStyleClass()"
|
|
313
|
+
[id]="menuId()"
|
|
314
|
+
role="menu"
|
|
315
|
+
[attr.aria-label]="menuAriaLabel()"
|
|
316
|
+
(keydown)="onMenuKeydown($event)"
|
|
317
|
+
>
|
|
318
|
+
@for (entry of visibleItems(); track entry.id) {
|
|
319
|
+
@if (entry.item.separator) {
|
|
320
|
+
<div class="aeris-split-button__separator" role="separator"></div>
|
|
321
|
+
} @else if (entry.item.url || entry.item.routerLink) {
|
|
322
|
+
<a
|
|
323
|
+
#menuItem
|
|
324
|
+
class="aeris-split-button__item"
|
|
325
|
+
role="menuitem"
|
|
326
|
+
[attr.id]="entry.id"
|
|
327
|
+
[attr.href]="entry.item.disabled ? null : entry.href"
|
|
328
|
+
[attr.target]="entry.item.target"
|
|
329
|
+
[attr.rel]="entry.item.rel || (entry.item.target === '_blank' ? 'noopener noreferrer' : null)"
|
|
330
|
+
[attr.aria-label]="entry.item.ariaLabel ?? entry.item.label"
|
|
331
|
+
[attr.aria-disabled]="entry.item.disabled || null"
|
|
332
|
+
[attr.tabindex]="activeIndex() === entry.index && !entry.item.disabled ? 0 : -1"
|
|
333
|
+
(click)="activateItem($event, entry)"
|
|
334
|
+
(focus)="activeIndex.set(entry.index)"
|
|
335
|
+
>
|
|
336
|
+
<ng-container
|
|
337
|
+
[ngTemplateOutlet]="itemContentTemplate()"
|
|
338
|
+
[ngTemplateOutletContext]="itemContext(entry)"
|
|
339
|
+
/>
|
|
340
|
+
@if (!itemContentTemplate()) {
|
|
341
|
+
@if (entry.item.icon) {
|
|
342
|
+
<span class="aeris-split-button__item-icon" aria-hidden="true">{{ entry.item.icon }}</span>
|
|
343
|
+
}
|
|
344
|
+
<span>{{ entry.item.label }}</span>
|
|
345
|
+
}
|
|
346
|
+
</a>
|
|
347
|
+
} @else {
|
|
348
|
+
<button
|
|
349
|
+
#menuItem
|
|
350
|
+
type="button"
|
|
351
|
+
class="aeris-split-button__item"
|
|
352
|
+
role="menuitem"
|
|
353
|
+
[attr.id]="entry.id"
|
|
354
|
+
[attr.aria-label]="entry.item.ariaLabel ?? entry.item.label"
|
|
355
|
+
[disabled]="entry.item.disabled"
|
|
356
|
+
[attr.tabindex]="activeIndex() === entry.index && !entry.item.disabled ? 0 : -1"
|
|
357
|
+
(click)="activateItem($event, entry)"
|
|
358
|
+
(focus)="activeIndex.set(entry.index)"
|
|
359
|
+
>
|
|
360
|
+
<ng-container
|
|
361
|
+
[ngTemplateOutlet]="itemContentTemplate()"
|
|
362
|
+
[ngTemplateOutletContext]="itemContext(entry)"
|
|
363
|
+
/>
|
|
364
|
+
@if (!itemContentTemplate()) {
|
|
365
|
+
@if (entry.item.icon) {
|
|
366
|
+
<span class="aeris-split-button__item-icon" aria-hidden="true">{{ entry.item.icon }}</span>
|
|
367
|
+
}
|
|
368
|
+
<span>{{ entry.item.label }}</span>
|
|
369
|
+
}
|
|
370
|
+
</button>
|
|
371
|
+
}
|
|
372
|
+
}
|
|
373
|
+
</div>
|
|
374
|
+
}
|
|
375
|
+
`, isInline: true, styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );position:relative;display:inline-flex;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-split-button__control{display:inline-flex;width:100%}.aeris-split-button__primary,.aeris-split-button__toggle{min-height:2.625rem;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:0 .875rem;border:1px solid transparent;background:var(--aeris-primary, #879566);color:var(--aeris-on-primary, #17200f);font:inherit;font-size:.875rem;font-weight:600;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}.aeris-split-button__toggle{width:2.625rem;padding:0}.aeris-split-button__primary:hover:not(:disabled),.aeris-split-button__toggle:hover:not(:disabled){background:var(--aeris-primary-hover, #758154)}.aeris-split-button__primary:focus-visible,.aeris-split-button__toggle:focus-visible{position:relative;z-index:2;outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 42%,transparent);outline-offset:2px}.aeris-split-button__primary:disabled,.aeris-split-button__toggle:disabled{opacity:.48;cursor:not-allowed}.aeris-split-button__primary[data-variant=secondary],.aeris-split-button__toggle[data-variant=secondary]{border-color:var(--aeris-border, #deddd7);background:var(--aeris-surface-2, #f6f5f1);color:var(--aeris-text, #222222)}.aeris-split-button__primary[data-variant=outline],.aeris-split-button__toggle[data-variant=outline]{border-color:currentColor;background:transparent;color:var(--aeris-primary-text, #566137)}.aeris-split-button__primary[data-variant=ghost],.aeris-split-button__toggle[data-variant=ghost],.aeris-split-button__primary[data-variant=link],.aeris-split-button__toggle[data-variant=link]{background:transparent;color:var(--aeris-primary-text, #566137)}.aeris-split-button__primary[data-variant=danger],.aeris-split-button__toggle[data-variant=danger],.aeris-split-button__primary[data-severity=danger],.aeris-split-button__toggle[data-severity=danger]{background:var(--aeris-danger, #c81e2a);color:var(--aeris-on-danger, #fff)}.aeris-split-button__primary[data-severity=success],.aeris-split-button__toggle[data-severity=success]{background:var(--aeris-success, #49753d);color:var(--aeris-on-success, #fff)}.aeris-split-button__primary[data-severity=info],.aeris-split-button__toggle[data-severity=info]{background:var(--aeris-info, #3f6f82);color:var(--aeris-on-info, #fff)}.aeris-split-button__primary[data-severity=warning],.aeris-split-button__toggle[data-severity=warning]{background:var(--aeris-warning, #c38600);color:var(--aeris-on-warning, #211600)}.aeris-split-button__primary[data-severity=contrast],.aeris-split-button__toggle[data-severity=contrast]{background:var(--aeris-text, #222222);color:var(--aeris-surface, #fff)}.aeris-split-button__primary[data-plain],.aeris-split-button__toggle[data-plain]{border-color:var(--aeris-border, #deddd7);background:var(--aeris-surface-2, #f6f5f1);color:var(--aeris-text, #222222)}.aeris-split-button__primary[data-size=xs],.aeris-split-button__toggle[data-size=xs]{min-height:1.875rem;font-size:.75rem}.aeris-split-button__toggle[data-size=xs]{width:1.875rem}.aeris-split-button__primary[data-size=sm],.aeris-split-button__toggle[data-size=sm]{min-height:2.25rem;font-size:.8125rem}.aeris-split-button__toggle[data-size=sm]{width:2.25rem}.aeris-split-button__primary[data-size=lg],.aeris-split-button__toggle[data-size=lg]{min-height:3rem;font-size:.9375rem}.aeris-split-button__toggle[data-size=lg]{width:3rem}.aeris-split-button__primary[data-raised],.aeris-split-button__toggle[data-raised]{box-shadow:0 .35rem .9rem #191d1629}.aeris-split-button__primary{min-width:0;flex:1 1 auto;border-start-start-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem))!important;border-start-end-radius:0!important;border-end-end-radius:0!important;border-end-start-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem))!important;overflow-wrap:anywhere;text-align:center}.aeris-split-button__toggle{flex:0 0 auto;margin-inline-start:-1px;border-start-start-radius:0!important;border-start-end-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem))!important;border-end-end-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem))!important;border-end-start-radius:0!important}.aeris-split-button__primary[data-rounded],.aeris-split-button__control:has(.aeris-split-button__primary[data-rounded]) .aeris-split-button__primary{border-start-start-radius:999px!important;border-start-end-radius:0!important;border-end-end-radius:0!important;border-end-start-radius:999px!important}.aeris-split-button__control:has(.aeris-split-button__primary[data-rounded]) .aeris-split-button__toggle{border-start-start-radius:0!important;border-start-end-radius:999px!important;border-end-end-radius:999px!important;border-end-start-radius:0!important}.aeris-split-button__chevron{position:relative;width:1rem;height:1rem}.aeris-split-button__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);transition:transform .16s ease;-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}:host([data-open]) .aeris-split-button__chevron:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-split-button__menu{position:absolute;z-index:120;inset-block-start:calc(100% + .4rem);inset-inline-start:0;width:max(100%,min(13rem,100vw - 1rem));max-width:calc(100vw - 1rem);min-width:0;display:grid;gap:.125rem;padding:.35rem;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-md, .6875rem);background:var(--aeris-surface, #fff);box-shadow:0 .75rem 2rem #191d162e;animation:aeris-split-button-menu-in .14s ease both}.aeris-split-button__item{min-width:0;min-height:2.375rem;display:flex;align-items:center;gap:.625rem;padding:0 .7rem;border:0;border-radius:calc(var(--aeris-radius-sm, .4375rem) - 1px);background:transparent;color:var(--aeris-text-2, #555555);font:inherit;font-size:.8125rem;text-align:start;text-decoration:none;cursor:pointer;overflow-wrap:anywhere}.aeris-split-button__item:hover:not(:disabled):not([aria-disabled=true]),.aeris-split-button__item:focus-visible{background:color-mix(in srgb,var(--aeris-primary, #879566) 13%,transparent);color:var(--aeris-text, #222222)}.aeris-split-button__item:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 32%,transparent);outline-offset:-2px}.aeris-split-button__item:disabled,.aeris-split-button__item[aria-disabled=true]{opacity:.45;cursor:not-allowed}.aeris-split-button__item-icon,.aeris-split-button__primary-icon{flex:0 0 auto}.aeris-split-button__separator{height:1px;margin:.25rem .35rem;background:var(--aeris-border, #deddd7)}.aeris-split-button__spinner{width:1rem;height:1rem;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:aeris-split-button-spin .65s linear infinite}@keyframes aeris-split-button-menu-in{0%{opacity:0;transform:translateY(-.25rem) scale(.985)}}@keyframes aeris-split-button-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.aeris-split-button__chevron:before,.aeris-split-button__menu,.aeris-split-button__spinner{animation-duration:1ms;transition-duration:1ms}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
376
|
+
}
|
|
377
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisSplitButton, decorators: [{
|
|
378
|
+
type: Component,
|
|
379
|
+
args: [{ selector: 'aeris-split-button', imports: [NgTemplateOutlet], template: `
|
|
380
|
+
<div class="aeris-split-button__control">
|
|
381
|
+
<button
|
|
382
|
+
class="aeris-split-button__primary"
|
|
383
|
+
[attr.data-variant]="effectiveVariant()"
|
|
384
|
+
[attr.data-severity]="severity()"
|
|
385
|
+
[attr.data-size]="size()"
|
|
386
|
+
[attr.data-raised]="raised() || null"
|
|
387
|
+
[attr.data-rounded]="rounded() || null"
|
|
388
|
+
[attr.data-plain]="plain() || null"
|
|
389
|
+
[type]="type()"
|
|
390
|
+
[disabled]="effectiveDisabled()"
|
|
391
|
+
[attr.aria-busy]="loading() || null"
|
|
392
|
+
[attr.aria-label]="buttonProps()?.ariaLabel"
|
|
393
|
+
[attr.title]="buttonProps()?.title"
|
|
394
|
+
[attr.tabindex]="buttonProps()?.tabIndex"
|
|
395
|
+
(click)="activatePrimary($event)"
|
|
396
|
+
>
|
|
397
|
+
@if (contentTemplate(); as template) {
|
|
398
|
+
<ng-container
|
|
399
|
+
[ngTemplateOutlet]="template"
|
|
400
|
+
[ngTemplateOutletContext]="{ loading: loading(), disabled: effectiveDisabled() }"
|
|
401
|
+
/>
|
|
402
|
+
} @else {
|
|
403
|
+
@if (loading() && loadingIconContentTemplate(); as template) {
|
|
404
|
+
<ng-container
|
|
405
|
+
[ngTemplateOutlet]="template"
|
|
406
|
+
[ngTemplateOutletContext]="{ loading: true }"
|
|
407
|
+
/>
|
|
408
|
+
} @else if (loading()) {
|
|
409
|
+
<span class="aeris-split-button__spinner" aria-hidden="true"></span>
|
|
410
|
+
} @else if (iconContentTemplate(); as template) {
|
|
411
|
+
<ng-container
|
|
412
|
+
[ngTemplateOutlet]="template"
|
|
413
|
+
[ngTemplateOutletContext]="{ loading: false }"
|
|
414
|
+
/>
|
|
415
|
+
} @else if (icon()) {
|
|
416
|
+
<span class="aeris-split-button__primary-icon" aria-hidden="true">{{ icon() }}</span>
|
|
417
|
+
}
|
|
418
|
+
<span>{{ label() }}</span>
|
|
419
|
+
}
|
|
420
|
+
</button>
|
|
421
|
+
|
|
422
|
+
<button
|
|
423
|
+
#toggle
|
|
424
|
+
type="button"
|
|
425
|
+
class="aeris-split-button__toggle"
|
|
426
|
+
[attr.data-variant]="effectiveVariant()"
|
|
427
|
+
[attr.data-severity]="severity()"
|
|
428
|
+
[attr.data-size]="size()"
|
|
429
|
+
[attr.data-raised]="raised() || null"
|
|
430
|
+
[attr.data-rounded]="rounded() || null"
|
|
431
|
+
[attr.data-plain]="plain() || null"
|
|
432
|
+
[disabled]="effectiveDisabled()"
|
|
433
|
+
[attr.aria-label]="menuButtonProps()?.ariaLabel ?? 'More actions'"
|
|
434
|
+
[attr.title]="menuButtonProps()?.title"
|
|
435
|
+
[attr.tabindex]="menuButtonProps()?.tabIndex"
|
|
436
|
+
[attr.aria-controls]="menuId()"
|
|
437
|
+
[attr.aria-expanded]="open()"
|
|
438
|
+
aria-haspopup="menu"
|
|
439
|
+
(click)="toggleMenu($event)"
|
|
440
|
+
(keydown)="onToggleKeydown($event)"
|
|
441
|
+
>
|
|
442
|
+
@if (dropdownIconContentTemplate(); as template) {
|
|
443
|
+
<ng-container
|
|
444
|
+
[ngTemplateOutlet]="template"
|
|
445
|
+
[ngTemplateOutletContext]="{ loading: loading() }"
|
|
446
|
+
/>
|
|
447
|
+
} @else {
|
|
448
|
+
<span class="aeris-split-button__chevron" aria-hidden="true"></span>
|
|
449
|
+
}
|
|
450
|
+
</button>
|
|
451
|
+
</div>
|
|
452
|
+
|
|
453
|
+
@if (open()) {
|
|
454
|
+
<div
|
|
455
|
+
class="aeris-split-button__menu"
|
|
456
|
+
[class]="menuStyleClass()"
|
|
457
|
+
[id]="menuId()"
|
|
458
|
+
role="menu"
|
|
459
|
+
[attr.aria-label]="menuAriaLabel()"
|
|
460
|
+
(keydown)="onMenuKeydown($event)"
|
|
461
|
+
>
|
|
462
|
+
@for (entry of visibleItems(); track entry.id) {
|
|
463
|
+
@if (entry.item.separator) {
|
|
464
|
+
<div class="aeris-split-button__separator" role="separator"></div>
|
|
465
|
+
} @else if (entry.item.url || entry.item.routerLink) {
|
|
466
|
+
<a
|
|
467
|
+
#menuItem
|
|
468
|
+
class="aeris-split-button__item"
|
|
469
|
+
role="menuitem"
|
|
470
|
+
[attr.id]="entry.id"
|
|
471
|
+
[attr.href]="entry.item.disabled ? null : entry.href"
|
|
472
|
+
[attr.target]="entry.item.target"
|
|
473
|
+
[attr.rel]="entry.item.rel || (entry.item.target === '_blank' ? 'noopener noreferrer' : null)"
|
|
474
|
+
[attr.aria-label]="entry.item.ariaLabel ?? entry.item.label"
|
|
475
|
+
[attr.aria-disabled]="entry.item.disabled || null"
|
|
476
|
+
[attr.tabindex]="activeIndex() === entry.index && !entry.item.disabled ? 0 : -1"
|
|
477
|
+
(click)="activateItem($event, entry)"
|
|
478
|
+
(focus)="activeIndex.set(entry.index)"
|
|
479
|
+
>
|
|
480
|
+
<ng-container
|
|
481
|
+
[ngTemplateOutlet]="itemContentTemplate()"
|
|
482
|
+
[ngTemplateOutletContext]="itemContext(entry)"
|
|
483
|
+
/>
|
|
484
|
+
@if (!itemContentTemplate()) {
|
|
485
|
+
@if (entry.item.icon) {
|
|
486
|
+
<span class="aeris-split-button__item-icon" aria-hidden="true">{{ entry.item.icon }}</span>
|
|
487
|
+
}
|
|
488
|
+
<span>{{ entry.item.label }}</span>
|
|
489
|
+
}
|
|
490
|
+
</a>
|
|
491
|
+
} @else {
|
|
492
|
+
<button
|
|
493
|
+
#menuItem
|
|
494
|
+
type="button"
|
|
495
|
+
class="aeris-split-button__item"
|
|
496
|
+
role="menuitem"
|
|
497
|
+
[attr.id]="entry.id"
|
|
498
|
+
[attr.aria-label]="entry.item.ariaLabel ?? entry.item.label"
|
|
499
|
+
[disabled]="entry.item.disabled"
|
|
500
|
+
[attr.tabindex]="activeIndex() === entry.index && !entry.item.disabled ? 0 : -1"
|
|
501
|
+
(click)="activateItem($event, entry)"
|
|
502
|
+
(focus)="activeIndex.set(entry.index)"
|
|
503
|
+
>
|
|
504
|
+
<ng-container
|
|
505
|
+
[ngTemplateOutlet]="itemContentTemplate()"
|
|
506
|
+
[ngTemplateOutletContext]="itemContext(entry)"
|
|
507
|
+
/>
|
|
508
|
+
@if (!itemContentTemplate()) {
|
|
509
|
+
@if (entry.item.icon) {
|
|
510
|
+
<span class="aeris-split-button__item-icon" aria-hidden="true">{{ entry.item.icon }}</span>
|
|
511
|
+
}
|
|
512
|
+
<span>{{ entry.item.label }}</span>
|
|
513
|
+
}
|
|
514
|
+
</button>
|
|
515
|
+
}
|
|
516
|
+
}
|
|
517
|
+
</div>
|
|
518
|
+
}
|
|
519
|
+
`, host: {
|
|
520
|
+
class: 'aeris-split-button',
|
|
521
|
+
'[attr.data-fluid]': 'fluid() || null',
|
|
522
|
+
'[attr.data-open]': 'open() || null',
|
|
523
|
+
'(document:click)': 'onDocumentClick($event)',
|
|
524
|
+
}, styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );position:relative;display:inline-flex;vertical-align:middle}:host([data-fluid]){width:100%}.aeris-split-button__control{display:inline-flex;width:100%}.aeris-split-button__primary,.aeris-split-button__toggle{min-height:2.625rem;display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:0 .875rem;border:1px solid transparent;background:var(--aeris-primary, #879566);color:var(--aeris-on-primary, #17200f);font:inherit;font-size:.875rem;font-weight:600;cursor:pointer;transition:background-color .16s ease,border-color .16s ease,box-shadow .16s ease}.aeris-split-button__toggle{width:2.625rem;padding:0}.aeris-split-button__primary:hover:not(:disabled),.aeris-split-button__toggle:hover:not(:disabled){background:var(--aeris-primary-hover, #758154)}.aeris-split-button__primary:focus-visible,.aeris-split-button__toggle:focus-visible{position:relative;z-index:2;outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 42%,transparent);outline-offset:2px}.aeris-split-button__primary:disabled,.aeris-split-button__toggle:disabled{opacity:.48;cursor:not-allowed}.aeris-split-button__primary[data-variant=secondary],.aeris-split-button__toggle[data-variant=secondary]{border-color:var(--aeris-border, #deddd7);background:var(--aeris-surface-2, #f6f5f1);color:var(--aeris-text, #222222)}.aeris-split-button__primary[data-variant=outline],.aeris-split-button__toggle[data-variant=outline]{border-color:currentColor;background:transparent;color:var(--aeris-primary-text, #566137)}.aeris-split-button__primary[data-variant=ghost],.aeris-split-button__toggle[data-variant=ghost],.aeris-split-button__primary[data-variant=link],.aeris-split-button__toggle[data-variant=link]{background:transparent;color:var(--aeris-primary-text, #566137)}.aeris-split-button__primary[data-variant=danger],.aeris-split-button__toggle[data-variant=danger],.aeris-split-button__primary[data-severity=danger],.aeris-split-button__toggle[data-severity=danger]{background:var(--aeris-danger, #c81e2a);color:var(--aeris-on-danger, #fff)}.aeris-split-button__primary[data-severity=success],.aeris-split-button__toggle[data-severity=success]{background:var(--aeris-success, #49753d);color:var(--aeris-on-success, #fff)}.aeris-split-button__primary[data-severity=info],.aeris-split-button__toggle[data-severity=info]{background:var(--aeris-info, #3f6f82);color:var(--aeris-on-info, #fff)}.aeris-split-button__primary[data-severity=warning],.aeris-split-button__toggle[data-severity=warning]{background:var(--aeris-warning, #c38600);color:var(--aeris-on-warning, #211600)}.aeris-split-button__primary[data-severity=contrast],.aeris-split-button__toggle[data-severity=contrast]{background:var(--aeris-text, #222222);color:var(--aeris-surface, #fff)}.aeris-split-button__primary[data-plain],.aeris-split-button__toggle[data-plain]{border-color:var(--aeris-border, #deddd7);background:var(--aeris-surface-2, #f6f5f1);color:var(--aeris-text, #222222)}.aeris-split-button__primary[data-size=xs],.aeris-split-button__toggle[data-size=xs]{min-height:1.875rem;font-size:.75rem}.aeris-split-button__toggle[data-size=xs]{width:1.875rem}.aeris-split-button__primary[data-size=sm],.aeris-split-button__toggle[data-size=sm]{min-height:2.25rem;font-size:.8125rem}.aeris-split-button__toggle[data-size=sm]{width:2.25rem}.aeris-split-button__primary[data-size=lg],.aeris-split-button__toggle[data-size=lg]{min-height:3rem;font-size:.9375rem}.aeris-split-button__toggle[data-size=lg]{width:3rem}.aeris-split-button__primary[data-raised],.aeris-split-button__toggle[data-raised]{box-shadow:0 .35rem .9rem #191d1629}.aeris-split-button__primary{min-width:0;flex:1 1 auto;border-start-start-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem))!important;border-start-end-radius:0!important;border-end-end-radius:0!important;border-end-start-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem))!important;overflow-wrap:anywhere;text-align:center}.aeris-split-button__toggle{flex:0 0 auto;margin-inline-start:-1px;border-start-start-radius:0!important;border-start-end-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem))!important;border-end-end-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem))!important;border-end-start-radius:0!important}.aeris-split-button__primary[data-rounded],.aeris-split-button__control:has(.aeris-split-button__primary[data-rounded]) .aeris-split-button__primary{border-start-start-radius:999px!important;border-start-end-radius:0!important;border-end-end-radius:0!important;border-end-start-radius:999px!important}.aeris-split-button__control:has(.aeris-split-button__primary[data-rounded]) .aeris-split-button__toggle{border-start-start-radius:0!important;border-start-end-radius:999px!important;border-end-end-radius:999px!important;border-end-start-radius:0!important}.aeris-split-button__chevron{position:relative;width:1rem;height:1rem}.aeris-split-button__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);transition:transform .16s ease;-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}:host([data-open]) .aeris-split-button__chevron:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-split-button__menu{position:absolute;z-index:120;inset-block-start:calc(100% + .4rem);inset-inline-start:0;width:max(100%,min(13rem,100vw - 1rem));max-width:calc(100vw - 1rem);min-width:0;display:grid;gap:.125rem;padding:.35rem;border:1px solid var(--aeris-border, #deddd7);border-radius:var(--aeris-radius-md, .6875rem);background:var(--aeris-surface, #fff);box-shadow:0 .75rem 2rem #191d162e;animation:aeris-split-button-menu-in .14s ease both}.aeris-split-button__item{min-width:0;min-height:2.375rem;display:flex;align-items:center;gap:.625rem;padding:0 .7rem;border:0;border-radius:calc(var(--aeris-radius-sm, .4375rem) - 1px);background:transparent;color:var(--aeris-text-2, #555555);font:inherit;font-size:.8125rem;text-align:start;text-decoration:none;cursor:pointer;overflow-wrap:anywhere}.aeris-split-button__item:hover:not(:disabled):not([aria-disabled=true]),.aeris-split-button__item:focus-visible{background:color-mix(in srgb,var(--aeris-primary, #879566) 13%,transparent);color:var(--aeris-text, #222222)}.aeris-split-button__item:focus-visible{outline:3px solid color-mix(in srgb,var(--aeris-focus, #536437) 32%,transparent);outline-offset:-2px}.aeris-split-button__item:disabled,.aeris-split-button__item[aria-disabled=true]{opacity:.45;cursor:not-allowed}.aeris-split-button__item-icon,.aeris-split-button__primary-icon{flex:0 0 auto}.aeris-split-button__separator{height:1px;margin:.25rem .35rem;background:var(--aeris-border, #deddd7)}.aeris-split-button__spinner{width:1rem;height:1rem;border:2px solid currentColor;border-right-color:transparent;border-radius:50%;animation:aeris-split-button-spin .65s linear infinite}@keyframes aeris-split-button-menu-in{0%{opacity:0;transform:translateY(-.25rem) scale(.985)}}@keyframes aeris-split-button-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.aeris-split-button__chevron:before,.aeris-split-button__menu,.aeris-split-button__spinner{animation-duration:1ms;transition-duration:1ms}}\n"] }]
|
|
525
|
+
}], propDecorators: { toggleButton: [{ type: i0.ViewChild, args: ['toggle', { isSignal: true }] }], menuItems: [{ type: i0.ViewChildren, args: ['menuItem', { isSignal: true }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], icon: [{ type: i0.Input, args: [{ isSignal: true, alias: "icon", required: false }] }], model: [{ type: i0.Input, args: [{ isSignal: true, alias: "model", required: false }] }], open: [{ type: i0.Input, args: [{ isSignal: true, alias: "open", required: false }] }, { type: i0.Output, args: ["openChange"] }], type: [{ type: i0.Input, args: [{ isSignal: true, alias: "type", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], severity: [{ type: i0.Input, args: [{ isSignal: true, alias: "severity", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], raised: [{ type: i0.Input, args: [{ isSignal: true, alias: "raised", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], outlined: [{ type: i0.Input, args: [{ isSignal: true, alias: "outlined", required: false }] }], text: [{ type: i0.Input, args: [{ isSignal: true, alias: "text", required: false }] }], plain: [{ type: i0.Input, args: [{ isSignal: true, alias: "plain", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], hideOnClickOutside: [{ type: i0.Input, args: [{ isSignal: true, alias: "hideOnClickOutside", required: false }] }], menuAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuAriaLabel", required: false }] }], menuStyleClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuStyleClass", required: false }] }], buttonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "buttonProps", required: false }] }], menuButtonProps: [{ type: i0.Input, args: [{ isSignal: true, alias: "menuButtonProps", required: false }] }], contentTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "contentTemplate", required: false }] }], iconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconTemplate", required: false }] }], loadingIconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingIconTemplate", required: false }] }], dropdownIconTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "dropdownIconTemplate", required: false }] }], itemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], navigationHandler: [{ type: i0.Input, args: [{ isSignal: true, alias: "navigationHandler", required: false }] }], clicked: [{ type: i0.Output, args: ["clicked"] }], dropdownClicked: [{ type: i0.Output, args: ["dropdownClicked"] }], shown: [{ type: i0.Output, args: ["shown"] }], hidden: [{ type: i0.Output, args: ["hidden"] }], itemSelected: [{ type: i0.Output, args: ["itemSelected"] }], projectedContentTemplate: [{ type: i0.ContentChild, args: ['content', { isSignal: true }] }], projectedIconTemplate: [{ type: i0.ContentChild, args: ['icon', { isSignal: true }] }], projectedLoadingIconTemplate: [{ type: i0.ContentChild, args: ['loadingIcon', { isSignal: true }] }], projectedDropdownIconTemplate: [{ type: i0.ContentChild, args: ['dropdownIcon', { isSignal: true }] }], projectedItemTemplate: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }] } });
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* Generated bundle index. Do not edit.
|
|
529
|
+
*/
|
|
530
|
+
|
|
531
|
+
export { AerisSplitButton };
|
|
532
|
+
//# sourceMappingURL=aeris-ui-core-split-button.mjs.map
|