@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,202 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { viewChild, signal, model, input, booleanAttribute, output, computed, forwardRef, Component } from '@angular/core';
|
|
3
|
+
import { NG_VALUE_ACCESSOR } from '@angular/forms';
|
|
4
|
+
|
|
5
|
+
let toggleSwitchId = 0;
|
|
6
|
+
class AerisToggleSwitch {
|
|
7
|
+
inputElement = viewChild('switchInput', /* @ts-ignore */
|
|
8
|
+
...(ngDevMode ? [{ debugName: "inputElement" }] : /* istanbul ignore next */ []));
|
|
9
|
+
generatedId = `aeris-toggle-switch-${++toggleSwitchId}`;
|
|
10
|
+
formDisabled = signal(false, /* @ts-ignore */
|
|
11
|
+
...(ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []));
|
|
12
|
+
onChange = () => undefined;
|
|
13
|
+
onTouched = () => undefined;
|
|
14
|
+
checked = model(false, /* @ts-ignore */
|
|
15
|
+
...(ngDevMode ? [{ debugName: "checked" }] : /* istanbul ignore next */ []));
|
|
16
|
+
inputId = input('', /* @ts-ignore */
|
|
17
|
+
...(ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []));
|
|
18
|
+
name = input('', /* @ts-ignore */
|
|
19
|
+
...(ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []));
|
|
20
|
+
value = input('on', /* @ts-ignore */
|
|
21
|
+
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
22
|
+
label = input('', /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []));
|
|
24
|
+
ariaLabel = input(/* @ts-ignore */
|
|
25
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
26
|
+
ariaLabelledby = input(/* @ts-ignore */
|
|
27
|
+
...(ngDevMode ? [undefined, { debugName: "ariaLabelledby" }] : /* istanbul ignore next */ []));
|
|
28
|
+
ariaDescribedby = input(/* @ts-ignore */
|
|
29
|
+
...(ngDevMode ? [undefined, { debugName: "ariaDescribedby" }] : /* istanbul ignore next */ []));
|
|
30
|
+
size = input('md', /* @ts-ignore */
|
|
31
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
32
|
+
labelPosition = input('end', /* @ts-ignore */
|
|
33
|
+
...(ngDevMode ? [{ debugName: "labelPosition" }] : /* istanbul ignore next */ []));
|
|
34
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
35
|
+
required = input(false, { ...(ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
36
|
+
invalid = input(false, { ...(ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
37
|
+
checkedInput = output();
|
|
38
|
+
changed = output();
|
|
39
|
+
focused = output();
|
|
40
|
+
blurred = output();
|
|
41
|
+
touch = output();
|
|
42
|
+
resolvedInputId = computed(() => this.inputId() || this.generatedId, /* @ts-ignore */
|
|
43
|
+
...(ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []));
|
|
44
|
+
effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), /* @ts-ignore */
|
|
45
|
+
...(ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []));
|
|
46
|
+
writeValue(value) {
|
|
47
|
+
this.checked.set(Boolean(value));
|
|
48
|
+
}
|
|
49
|
+
registerOnChange(callback) {
|
|
50
|
+
this.onChange = callback;
|
|
51
|
+
}
|
|
52
|
+
registerOnTouched(callback) {
|
|
53
|
+
this.onTouched = callback;
|
|
54
|
+
}
|
|
55
|
+
setDisabledState(disabled) {
|
|
56
|
+
this.formDisabled.set(disabled);
|
|
57
|
+
}
|
|
58
|
+
focus(options) {
|
|
59
|
+
this.inputElement()?.nativeElement.focus(options);
|
|
60
|
+
}
|
|
61
|
+
toggle() {
|
|
62
|
+
if (this.effectiveDisabled()) {
|
|
63
|
+
return;
|
|
64
|
+
}
|
|
65
|
+
this.setChecked(!this.checked());
|
|
66
|
+
this.focus();
|
|
67
|
+
}
|
|
68
|
+
reset() {
|
|
69
|
+
this.setChecked(false);
|
|
70
|
+
}
|
|
71
|
+
handleChange(event) {
|
|
72
|
+
if (this.effectiveDisabled()) {
|
|
73
|
+
return;
|
|
74
|
+
}
|
|
75
|
+
const checked = event.target.checked;
|
|
76
|
+
this.setChecked(checked);
|
|
77
|
+
this.changed.emit({
|
|
78
|
+
originalEvent: event,
|
|
79
|
+
checked,
|
|
80
|
+
value: this.value(),
|
|
81
|
+
});
|
|
82
|
+
}
|
|
83
|
+
handleBlur(event) {
|
|
84
|
+
this.onTouched();
|
|
85
|
+
this.touch.emit();
|
|
86
|
+
this.blurred.emit(event);
|
|
87
|
+
}
|
|
88
|
+
setChecked(checked) {
|
|
89
|
+
if (this.checked() === checked) {
|
|
90
|
+
return;
|
|
91
|
+
}
|
|
92
|
+
this.checked.set(checked);
|
|
93
|
+
this.checkedInput.emit(checked);
|
|
94
|
+
this.onChange(checked);
|
|
95
|
+
}
|
|
96
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToggleSwitch, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
97
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisToggleSwitch, isStandalone: true, selector: "aeris-toggle-switch", inputs: { checked: { classPropertyName: "checked", publicName: "checked", isSignal: true, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: true, isRequired: false, transformFunction: null }, name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, label: { classPropertyName: "label", publicName: "label", 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 }, ariaDescribedby: { classPropertyName: "ariaDescribedby", publicName: "ariaDescribedby", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, labelPosition: { classPropertyName: "labelPosition", publicName: "labelPosition", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, required: { classPropertyName: "required", publicName: "required", isSignal: true, isRequired: false, transformFunction: null }, invalid: { classPropertyName: "invalid", publicName: "invalid", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { checked: "checkedChange", checkedInput: "checkedInput", changed: "changed", focused: "focused", blurred: "blurred", touch: "touch" }, host: { properties: { "attr.data-checked": "checked() || null", "attr.data-disabled": "effectiveDisabled() || null" } }, providers: [
|
|
98
|
+
{
|
|
99
|
+
provide: NG_VALUE_ACCESSOR,
|
|
100
|
+
useExisting: forwardRef(() => AerisToggleSwitch),
|
|
101
|
+
multi: true,
|
|
102
|
+
},
|
|
103
|
+
], viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["switchInput"], descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
104
|
+
<label
|
|
105
|
+
class="aeris-toggle-switch"
|
|
106
|
+
[attr.data-size]="size()"
|
|
107
|
+
[attr.data-label-position]="labelPosition()"
|
|
108
|
+
[attr.data-checked]="checked() || null"
|
|
109
|
+
[attr.data-disabled]="effectiveDisabled() || null"
|
|
110
|
+
[attr.data-invalid]="invalid() || null"
|
|
111
|
+
>
|
|
112
|
+
<input
|
|
113
|
+
#switchInput
|
|
114
|
+
class="aeris-toggle-switch__input"
|
|
115
|
+
type="checkbox"
|
|
116
|
+
role="switch"
|
|
117
|
+
[id]="resolvedInputId()"
|
|
118
|
+
[name]="name()"
|
|
119
|
+
[value]="value()"
|
|
120
|
+
[checked]="checked()"
|
|
121
|
+
[disabled]="effectiveDisabled()"
|
|
122
|
+
[required]="required()"
|
|
123
|
+
[attr.aria-label]="ariaLabel()"
|
|
124
|
+
[attr.aria-labelledby]="ariaLabelledby()"
|
|
125
|
+
[attr.aria-describedby]="ariaDescribedby()"
|
|
126
|
+
[attr.aria-invalid]="invalid() || null"
|
|
127
|
+
[attr.aria-required]="required() || null"
|
|
128
|
+
(change)="handleChange($event)"
|
|
129
|
+
(focus)="focused.emit($event)"
|
|
130
|
+
(blur)="handleBlur($event)"
|
|
131
|
+
/>
|
|
132
|
+
<span class="aeris-toggle-switch__control" aria-hidden="true">
|
|
133
|
+
<span class="aeris-toggle-switch__thumb"></span>
|
|
134
|
+
</span>
|
|
135
|
+
<span class="aeris-toggle-switch__label">
|
|
136
|
+
@if (label()) {
|
|
137
|
+
<span>{{ label() }}</span>
|
|
138
|
+
}
|
|
139
|
+
<ng-content />
|
|
140
|
+
</span>
|
|
141
|
+
</label>
|
|
142
|
+
`, isInline: true, styles: [":host{display:inline-block;max-width:100%;color:var(--aeris-toggle-switch-label-color, var(--aeris-text-2, #555555));font:inherit;vertical-align:middle}.aeris-toggle-switch{--_track-width: 40px;--_track-height: 22px;--_thumb-size: 16px;--_track-padding: 2px;--_gap: .625rem;display:inline-flex;align-items:center;gap:var(--_gap);max-width:100%;min-height:2rem;color:inherit;font:inherit;font-size:.875rem;line-height:1.45;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.aeris-toggle-switch[data-label-position=start]{flex-direction:row-reverse}.aeris-toggle-switch__input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}.aeris-toggle-switch__control{position:relative;box-sizing:border-box;width:var(--_track-width);height:var(--_track-height);flex:0 0 auto;border:1px solid var(--aeris-toggle-switch-border, var(--aeris-text-3, #686b63));border-radius:999px;background:var(--aeris-toggle-switch-background, var(--aeris-surface-3, #deddd7));box-shadow:var(--aeris-toggle-switch-shadow, none);transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}.aeris-toggle-switch__thumb{position:absolute;top:var(--_track-padding);left:var(--_track-padding);box-sizing:border-box;width:var(--_thumb-size);height:var(--_thumb-size);border:1px solid var(--aeris-toggle-switch-thumb-border, var(--aeris-text-3, #686b63));border-radius:50%;background:var(--aeris-toggle-switch-thumb, var(--aeris-surface, #fff));box-shadow:0 1px 3px #181d1647;transform:translate(0);transition:transform .18s cubic-bezier(.2,.8,.2,1)}.aeris-toggle-switch:hover:not([data-disabled]) .aeris-toggle-switch__control{border-color:var(--aeris-toggle-switch-hover-border, var(--aeris-primary, #768653))}.aeris-toggle-switch__input:checked+.aeris-toggle-switch__control{border-color:var(--aeris-toggle-switch-checked-background, var(--aeris-primary, #768653));background:var(--aeris-toggle-switch-checked-background, var(--aeris-primary, #768653))}.aeris-toggle-switch__input:checked+.aeris-toggle-switch__control .aeris-toggle-switch__thumb{border-color:color-mix(in srgb,var(--aeris-toggle-switch-checked-background, var(--aeris-primary, #768653)) 56%,var(--aeris-toggle-switch-thumb, var(--aeris-surface, #fff)));transform:translate(calc(var(--_track-width) - var(--_thumb-size) - var(--_track-padding) * 2 - 2px))}.aeris-toggle-switch__input:focus-visible+.aeris-toggle-switch__control{outline:3px solid var(--aeris-toggle-switch-focus-ring, color-mix(in srgb, var(--aeris-focus, var(--aeris-primary, #536437)) 44%, transparent));outline-offset:2px}.aeris-toggle-switch[data-invalid] .aeris-toggle-switch__control{border-color:var(--aeris-danger, #c81e2a)}.aeris-toggle-switch[data-invalid] .aeris-toggle-switch__input:focus-visible+.aeris-toggle-switch__control{outline-color:color-mix(in srgb,var(--aeris-danger, #c81e2a) 42%,transparent)}.aeris-toggle-switch[data-disabled]{cursor:not-allowed;opacity:var(--aeris-disabled-opacity, .5)}.aeris-toggle-switch__label{min-width:0}.aeris-toggle-switch[data-size=xs]{--_track-width: 30px;--_track-height: 18px;--_thumb-size: 12px;--_track-padding: 2px;--_gap: .4375rem;min-height:1.5rem;font-size:.75rem}.aeris-toggle-switch[data-size=sm]{--_track-width: 34px;--_track-height: 20px;--_thumb-size: 14px;--_track-padding: 2px;--_gap: .5rem;min-height:1.75rem;font-size:.8125rem}.aeris-toggle-switch[data-size=lg]{--_track-width: 46px;--_track-height: 26px;--_thumb-size: 20px;--_track-padding: 2px;--_gap: .6875rem;min-height:2.25rem;font-size:.9375rem}@media(prefers-reduced-motion:reduce){.aeris-toggle-switch__control,.aeris-toggle-switch__thumb{transition:none}}\n"] });
|
|
143
|
+
}
|
|
144
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToggleSwitch, decorators: [{
|
|
145
|
+
type: Component,
|
|
146
|
+
args: [{ selector: 'aeris-toggle-switch', template: `
|
|
147
|
+
<label
|
|
148
|
+
class="aeris-toggle-switch"
|
|
149
|
+
[attr.data-size]="size()"
|
|
150
|
+
[attr.data-label-position]="labelPosition()"
|
|
151
|
+
[attr.data-checked]="checked() || null"
|
|
152
|
+
[attr.data-disabled]="effectiveDisabled() || null"
|
|
153
|
+
[attr.data-invalid]="invalid() || null"
|
|
154
|
+
>
|
|
155
|
+
<input
|
|
156
|
+
#switchInput
|
|
157
|
+
class="aeris-toggle-switch__input"
|
|
158
|
+
type="checkbox"
|
|
159
|
+
role="switch"
|
|
160
|
+
[id]="resolvedInputId()"
|
|
161
|
+
[name]="name()"
|
|
162
|
+
[value]="value()"
|
|
163
|
+
[checked]="checked()"
|
|
164
|
+
[disabled]="effectiveDisabled()"
|
|
165
|
+
[required]="required()"
|
|
166
|
+
[attr.aria-label]="ariaLabel()"
|
|
167
|
+
[attr.aria-labelledby]="ariaLabelledby()"
|
|
168
|
+
[attr.aria-describedby]="ariaDescribedby()"
|
|
169
|
+
[attr.aria-invalid]="invalid() || null"
|
|
170
|
+
[attr.aria-required]="required() || null"
|
|
171
|
+
(change)="handleChange($event)"
|
|
172
|
+
(focus)="focused.emit($event)"
|
|
173
|
+
(blur)="handleBlur($event)"
|
|
174
|
+
/>
|
|
175
|
+
<span class="aeris-toggle-switch__control" aria-hidden="true">
|
|
176
|
+
<span class="aeris-toggle-switch__thumb"></span>
|
|
177
|
+
</span>
|
|
178
|
+
<span class="aeris-toggle-switch__label">
|
|
179
|
+
@if (label()) {
|
|
180
|
+
<span>{{ label() }}</span>
|
|
181
|
+
}
|
|
182
|
+
<ng-content />
|
|
183
|
+
</span>
|
|
184
|
+
</label>
|
|
185
|
+
`, providers: [
|
|
186
|
+
{
|
|
187
|
+
provide: NG_VALUE_ACCESSOR,
|
|
188
|
+
useExisting: forwardRef(() => AerisToggleSwitch),
|
|
189
|
+
multi: true,
|
|
190
|
+
},
|
|
191
|
+
], host: {
|
|
192
|
+
'[attr.data-checked]': 'checked() || null',
|
|
193
|
+
'[attr.data-disabled]': 'effectiveDisabled() || null',
|
|
194
|
+
}, styles: [":host{display:inline-block;max-width:100%;color:var(--aeris-toggle-switch-label-color, var(--aeris-text-2, #555555));font:inherit;vertical-align:middle}.aeris-toggle-switch{--_track-width: 40px;--_track-height: 22px;--_thumb-size: 16px;--_track-padding: 2px;--_gap: .625rem;display:inline-flex;align-items:center;gap:var(--_gap);max-width:100%;min-height:2rem;color:inherit;font:inherit;font-size:.875rem;line-height:1.45;cursor:pointer;-webkit-user-select:none;user-select:none;-webkit-tap-highlight-color:transparent}.aeris-toggle-switch[data-label-position=start]{flex-direction:row-reverse}.aeris-toggle-switch__input{position:absolute;width:1px;height:1px;margin:-1px;padding:0;border:0;overflow:hidden;clip:rect(0,0,0,0);clip-path:inset(50%);white-space:nowrap}.aeris-toggle-switch__control{position:relative;box-sizing:border-box;width:var(--_track-width);height:var(--_track-height);flex:0 0 auto;border:1px solid var(--aeris-toggle-switch-border, var(--aeris-text-3, #686b63));border-radius:999px;background:var(--aeris-toggle-switch-background, var(--aeris-surface-3, #deddd7));box-shadow:var(--aeris-toggle-switch-shadow, none);transition:border-color .16s ease,background-color .16s ease,box-shadow .16s ease}.aeris-toggle-switch__thumb{position:absolute;top:var(--_track-padding);left:var(--_track-padding);box-sizing:border-box;width:var(--_thumb-size);height:var(--_thumb-size);border:1px solid var(--aeris-toggle-switch-thumb-border, var(--aeris-text-3, #686b63));border-radius:50%;background:var(--aeris-toggle-switch-thumb, var(--aeris-surface, #fff));box-shadow:0 1px 3px #181d1647;transform:translate(0);transition:transform .18s cubic-bezier(.2,.8,.2,1)}.aeris-toggle-switch:hover:not([data-disabled]) .aeris-toggle-switch__control{border-color:var(--aeris-toggle-switch-hover-border, var(--aeris-primary, #768653))}.aeris-toggle-switch__input:checked+.aeris-toggle-switch__control{border-color:var(--aeris-toggle-switch-checked-background, var(--aeris-primary, #768653));background:var(--aeris-toggle-switch-checked-background, var(--aeris-primary, #768653))}.aeris-toggle-switch__input:checked+.aeris-toggle-switch__control .aeris-toggle-switch__thumb{border-color:color-mix(in srgb,var(--aeris-toggle-switch-checked-background, var(--aeris-primary, #768653)) 56%,var(--aeris-toggle-switch-thumb, var(--aeris-surface, #fff)));transform:translate(calc(var(--_track-width) - var(--_thumb-size) - var(--_track-padding) * 2 - 2px))}.aeris-toggle-switch__input:focus-visible+.aeris-toggle-switch__control{outline:3px solid var(--aeris-toggle-switch-focus-ring, color-mix(in srgb, var(--aeris-focus, var(--aeris-primary, #536437)) 44%, transparent));outline-offset:2px}.aeris-toggle-switch[data-invalid] .aeris-toggle-switch__control{border-color:var(--aeris-danger, #c81e2a)}.aeris-toggle-switch[data-invalid] .aeris-toggle-switch__input:focus-visible+.aeris-toggle-switch__control{outline-color:color-mix(in srgb,var(--aeris-danger, #c81e2a) 42%,transparent)}.aeris-toggle-switch[data-disabled]{cursor:not-allowed;opacity:var(--aeris-disabled-opacity, .5)}.aeris-toggle-switch__label{min-width:0}.aeris-toggle-switch[data-size=xs]{--_track-width: 30px;--_track-height: 18px;--_thumb-size: 12px;--_track-padding: 2px;--_gap: .4375rem;min-height:1.5rem;font-size:.75rem}.aeris-toggle-switch[data-size=sm]{--_track-width: 34px;--_track-height: 20px;--_thumb-size: 14px;--_track-padding: 2px;--_gap: .5rem;min-height:1.75rem;font-size:.8125rem}.aeris-toggle-switch[data-size=lg]{--_track-width: 46px;--_track-height: 26px;--_thumb-size: 20px;--_track-padding: 2px;--_gap: .6875rem;min-height:2.25rem;font-size:.9375rem}@media(prefers-reduced-motion:reduce){.aeris-toggle-switch__control,.aeris-toggle-switch__thumb{transition:none}}\n"] }]
|
|
195
|
+
}], propDecorators: { inputElement: [{ type: i0.ViewChild, args: ['switchInput', { isSignal: true }] }], checked: [{ type: i0.Input, args: [{ isSignal: true, alias: "checked", required: false }] }, { type: i0.Output, args: ["checkedChange"] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], label: [{ type: i0.Input, args: [{ isSignal: true, alias: "label", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedby", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], labelPosition: [{ type: i0.Input, args: [{ isSignal: true, alias: "labelPosition", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], checkedInput: [{ type: i0.Output, args: ["checkedInput"] }], changed: [{ type: i0.Output, args: ["changed"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }] } });
|
|
196
|
+
|
|
197
|
+
/**
|
|
198
|
+
* Generated bundle index. Do not edit.
|
|
199
|
+
*/
|
|
200
|
+
|
|
201
|
+
export { AerisToggleSwitch };
|
|
202
|
+
//# sourceMappingURL=aeris-ui-core-toggle-switch.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aeris-ui-core-toggle-switch.mjs","sources":["../../../projects/aeris-ui/toggle-switch/aeris-toggle-switch.ts","../../../projects/aeris-ui/toggle-switch/aeris-ui-core-toggle-switch.ts"],"sourcesContent":["import {\n Component,\n ElementRef,\n booleanAttribute,\n computed,\n forwardRef,\n input,\n model,\n output,\n signal,\n viewChild,\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\n\nexport type AerisToggleSwitchSize = 'xs' | 'sm' | 'md' | 'lg';\nexport type AerisToggleSwitchLabelPosition = 'start' | 'end';\n\nexport interface AerisToggleSwitchChangeEvent {\n readonly originalEvent: Event;\n readonly checked: boolean;\n readonly value: string;\n}\n\nlet toggleSwitchId = 0;\n\n@Component({\n selector: 'aeris-toggle-switch',\n template: `\n <label\n class=\"aeris-toggle-switch\"\n [attr.data-size]=\"size()\"\n [attr.data-label-position]=\"labelPosition()\"\n [attr.data-checked]=\"checked() || null\"\n [attr.data-disabled]=\"effectiveDisabled() || null\"\n [attr.data-invalid]=\"invalid() || null\"\n >\n <input\n #switchInput\n class=\"aeris-toggle-switch__input\"\n type=\"checkbox\"\n role=\"switch\"\n [id]=\"resolvedInputId()\"\n [name]=\"name()\"\n [value]=\"value()\"\n [checked]=\"checked()\"\n [disabled]=\"effectiveDisabled()\"\n [required]=\"required()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledby()\"\n [attr.aria-describedby]=\"ariaDescribedby()\"\n [attr.aria-invalid]=\"invalid() || null\"\n [attr.aria-required]=\"required() || null\"\n (change)=\"handleChange($event)\"\n (focus)=\"focused.emit($event)\"\n (blur)=\"handleBlur($event)\"\n />\n <span class=\"aeris-toggle-switch__control\" aria-hidden=\"true\">\n <span class=\"aeris-toggle-switch__thumb\"></span>\n </span>\n <span class=\"aeris-toggle-switch__label\">\n @if (label()) {\n <span>{{ label() }}</span>\n }\n <ng-content />\n </span>\n </label>\n `,\n styleUrl: './aeris-toggle-switch.scss',\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => AerisToggleSwitch),\n multi: true,\n },\n ],\n host: {\n '[attr.data-checked]': 'checked() || null',\n '[attr.data-disabled]': 'effectiveDisabled() || null',\n },\n})\nexport class AerisToggleSwitch implements ControlValueAccessor {\n private readonly inputElement =\n viewChild<ElementRef<HTMLInputElement>>('switchInput');\n private readonly generatedId = `aeris-toggle-switch-${++toggleSwitchId}`;\n private readonly formDisabled = signal(false);\n private onChange: (value: boolean) => void = () => undefined;\n private onTouched: () => void = () => undefined;\n\n readonly checked = model(false);\n readonly inputId = input('');\n readonly name = input('');\n readonly value = input('on');\n readonly label = input('');\n readonly ariaLabel = input<string>();\n readonly ariaLabelledby = input<string>();\n readonly ariaDescribedby = input<string>();\n readonly size = input<AerisToggleSwitchSize>('md');\n readonly labelPosition = input<AerisToggleSwitchLabelPosition>('end');\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly required = input(false, { transform: booleanAttribute });\n readonly invalid = input(false, { transform: booleanAttribute });\n\n readonly checkedInput = output<boolean>();\n readonly changed = output<AerisToggleSwitchChangeEvent>();\n readonly focused = output<FocusEvent>();\n readonly blurred = output<FocusEvent>();\n readonly touch = output<void>();\n\n protected readonly resolvedInputId = computed(\n () => this.inputId() || this.generatedId,\n );\n protected readonly effectiveDisabled = computed(\n () => this.disabled() || this.formDisabled(),\n );\n\n writeValue(value: unknown): void {\n this.checked.set(Boolean(value));\n }\n\n registerOnChange(callback: (value: boolean) => void): void {\n this.onChange = callback;\n }\n\n registerOnTouched(callback: () => void): void {\n this.onTouched = callback;\n }\n\n setDisabledState(disabled: boolean): void {\n this.formDisabled.set(disabled);\n }\n\n focus(options?: FocusOptions): void {\n this.inputElement()?.nativeElement.focus(options);\n }\n\n toggle(): void {\n if (this.effectiveDisabled()) {\n return;\n }\n\n this.setChecked(!this.checked());\n this.focus();\n }\n\n reset(): void {\n this.setChecked(false);\n }\n\n protected handleChange(event: Event): void {\n if (this.effectiveDisabled()) {\n return;\n }\n\n const checked = (event.target as HTMLInputElement).checked;\n this.setChecked(checked);\n this.changed.emit({\n originalEvent: event,\n checked,\n value: this.value(),\n });\n }\n\n protected handleBlur(event: FocusEvent): void {\n this.onTouched();\n this.touch.emit();\n this.blurred.emit(event);\n }\n\n private setChecked(checked: boolean): void {\n if (this.checked() === checked) {\n return;\n }\n\n this.checked.set(checked);\n this.checkedInput.emit(checked);\n this.onChange(checked);\n }\n}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;AAuBA,IAAI,cAAc,GAAG,CAAC;MAyDT,iBAAiB,CAAA;IACX,YAAY,GAC3B,SAAS,CAA+B,aAAa;qFAAC;AACvC,IAAA,WAAW,GAAG,CAAA,oBAAA,EAAuB,EAAE,cAAc,EAAE;IACvD,YAAY,GAAG,MAAM,CAAC,KAAK;qFAAC;AACrC,IAAA,QAAQ,GAA6B,MAAM,SAAS;AACpD,IAAA,SAAS,GAAe,MAAM,SAAS;IAEtC,OAAO,GAAG,KAAK,CAAC,KAAK;gFAAC;IACtB,OAAO,GAAG,KAAK,CAAC,EAAE;gFAAC;IACnB,IAAI,GAAG,KAAK,CAAC,EAAE;6EAAC;IAChB,KAAK,GAAG,KAAK,CAAC,IAAI;8EAAC;IACnB,KAAK,GAAG,KAAK,CAAC,EAAE;8EAAC;AACjB,IAAA,SAAS,GAAG,KAAK;6FAAU;AAC3B,IAAA,cAAc,GAAG,KAAK;kGAAU;AAChC,IAAA,eAAe,GAAG,KAAK;mGAAU;IACjC,IAAI,GAAG,KAAK,CAAwB,IAAI;6EAAC;IACzC,aAAa,GAAG,KAAK,CA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AA,IAAA,EAAA,CAAA,SAAA,CAAA,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,OAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;AClFzD;;AAEG;;;;"}
|
|
@@ -0,0 +1,136 @@
|
|
|
1
|
+
import * as i0 from '@angular/core';
|
|
2
|
+
import { Directive, input, booleanAttribute, ViewEncapsulation, Component } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
class AerisToolbarStart {
|
|
5
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarStart, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
6
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisToolbarStart, isStandalone: true, selector: "[aerisToolbarStart]", host: { classAttribute: "aeris-toolbar__section aeris-toolbar__section--start" }, ngImport: i0 });
|
|
7
|
+
}
|
|
8
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarStart, decorators: [{
|
|
9
|
+
type: Directive,
|
|
10
|
+
args: [{
|
|
11
|
+
selector: '[aerisToolbarStart]',
|
|
12
|
+
host: { class: 'aeris-toolbar__section aeris-toolbar__section--start' },
|
|
13
|
+
}]
|
|
14
|
+
}] });
|
|
15
|
+
class AerisToolbarCenter {
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarCenter, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
17
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisToolbarCenter, isStandalone: true, selector: "[aerisToolbarCenter]", host: { classAttribute: "aeris-toolbar__section aeris-toolbar__section--center" }, ngImport: i0 });
|
|
18
|
+
}
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarCenter, decorators: [{
|
|
20
|
+
type: Directive,
|
|
21
|
+
args: [{
|
|
22
|
+
selector: '[aerisToolbarCenter]',
|
|
23
|
+
host: { class: 'aeris-toolbar__section aeris-toolbar__section--center' },
|
|
24
|
+
}]
|
|
25
|
+
}] });
|
|
26
|
+
class AerisToolbarEnd {
|
|
27
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarEnd, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
28
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisToolbarEnd, isStandalone: true, selector: "[aerisToolbarEnd]", host: { classAttribute: "aeris-toolbar__section aeris-toolbar__section--end" }, ngImport: i0 });
|
|
29
|
+
}
|
|
30
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarEnd, decorators: [{
|
|
31
|
+
type: Directive,
|
|
32
|
+
args: [{
|
|
33
|
+
selector: '[aerisToolbarEnd]',
|
|
34
|
+
host: { class: 'aeris-toolbar__section aeris-toolbar__section--end' },
|
|
35
|
+
}]
|
|
36
|
+
}] });
|
|
37
|
+
class AerisToolbarGroup {
|
|
38
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarGroup, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
39
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisToolbarGroup, isStandalone: true, selector: "[aerisToolbarGroup]", host: { classAttribute: "aeris-toolbar__group" }, ngImport: i0 });
|
|
40
|
+
}
|
|
41
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarGroup, decorators: [{
|
|
42
|
+
type: Directive,
|
|
43
|
+
args: [{
|
|
44
|
+
selector: '[aerisToolbarGroup]',
|
|
45
|
+
host: { class: 'aeris-toolbar__group' },
|
|
46
|
+
}]
|
|
47
|
+
}] });
|
|
48
|
+
class AerisToolbarSpacer {
|
|
49
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarSpacer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
50
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisToolbarSpacer, isStandalone: true, selector: "[aerisToolbarSpacer]", host: { attributes: { "aria-hidden": "true" }, classAttribute: "aeris-toolbar__spacer" }, ngImport: i0 });
|
|
51
|
+
}
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbarSpacer, decorators: [{
|
|
53
|
+
type: Directive,
|
|
54
|
+
args: [{
|
|
55
|
+
selector: '[aerisToolbarSpacer]',
|
|
56
|
+
host: {
|
|
57
|
+
class: 'aeris-toolbar__spacer',
|
|
58
|
+
'aria-hidden': 'true',
|
|
59
|
+
},
|
|
60
|
+
}]
|
|
61
|
+
}] });
|
|
62
|
+
class AerisToolbar {
|
|
63
|
+
id = input('', /* @ts-ignore */
|
|
64
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
65
|
+
variant = input('outlined', /* @ts-ignore */
|
|
66
|
+
...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
|
|
67
|
+
size = input('md', /* @ts-ignore */
|
|
68
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
69
|
+
orientation = input('horizontal', /* @ts-ignore */
|
|
70
|
+
...(ngDevMode ? [{ debugName: "orientation" }] : /* istanbul ignore next */ []));
|
|
71
|
+
align = input('center', /* @ts-ignore */
|
|
72
|
+
...(ngDevMode ? [{ debugName: "align" }] : /* istanbul ignore next */ []));
|
|
73
|
+
wrap = input(true, { ...(ngDevMode ? { debugName: "wrap" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
74
|
+
fluid = input(true, { ...(ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
75
|
+
disabled = input(false, { ...(ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
76
|
+
role = input('toolbar', /* @ts-ignore */
|
|
77
|
+
...(ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []));
|
|
78
|
+
ariaLabel = input('', /* @ts-ignore */
|
|
79
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
80
|
+
ariaLabelledBy = input('', /* @ts-ignore */
|
|
81
|
+
...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
82
|
+
ariaDescribedBy = input('', /* @ts-ignore */
|
|
83
|
+
...(ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []));
|
|
84
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
85
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "22.0.6", type: AerisToolbar, isStandalone: true, selector: "aeris-toolbar", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, orientation: { classPropertyName: "orientation", publicName: "orientation", isSignal: true, isRequired: false, transformFunction: null }, align: { classPropertyName: "align", publicName: "align", isSignal: true, isRequired: false, transformFunction: null }, wrap: { classPropertyName: "wrap", publicName: "wrap", isSignal: true, isRequired: false, transformFunction: null }, fluid: { classPropertyName: "fluid", publicName: "fluid", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, role: { classPropertyName: "role", publicName: "role", 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 }, ariaDescribedBy: { classPropertyName: "ariaDescribedBy", publicName: "ariaDescribedBy", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.id": "id() || null", "attr.role": "role()", "attr.aria-label": "ariaLabel() || null", "attr.aria-labelledby": "ariaLabelledBy() || null", "attr.aria-describedby": "ariaDescribedBy() || null", "attr.aria-orientation": "role() === \"toolbar\" ? orientation() : null", "attr.aria-disabled": "disabled() || null", "attr.inert": "disabled() ? \"\" : null", "attr.data-variant": "variant()", "attr.data-size": "size()", "attr.data-orientation": "orientation()", "attr.data-align": "align()", "attr.data-wrap": "wrap()", "attr.data-fluid": "fluid() || null", "attr.data-disabled": "disabled() || null" }, classAttribute: "aeris-toolbar" }, ngImport: i0, template: `
|
|
86
|
+
<div class="aeris-toolbar__content">
|
|
87
|
+
<ng-content select="[aerisToolbarStart]" />
|
|
88
|
+
<ng-content select="[aerisToolbarCenter]" />
|
|
89
|
+
<ng-content select="[aerisToolbarEnd]" />
|
|
90
|
+
<ng-content />
|
|
91
|
+
</div>
|
|
92
|
+
`, isInline: true, styles: ["aeris-toolbar{display:block;min-inline-size:0}.aeris-toolbar{--_padding-block: var(--aeris-toolbar-padding-block, .75rem);--_padding-inline: var(--aeris-toolbar-padding-inline, .875rem);--_gap: var(--aeris-toolbar-gap, .75rem);--_section-gap: var(--aeris-toolbar-section-gap, .5rem);border:var(--aeris-toolbar-border-width, 1px) solid var(--aeris-toolbar-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-toolbar-radius, var(--aeris-radius-lg, 1.125rem));background:var(--aeris-toolbar-background, var(--aeris-surface, #fff));color:var(--aeris-toolbar-color, var(--aeris-text, #222222));box-shadow:var(--aeris-toolbar-shadow, none)}.aeris-toolbar[data-fluid=true]{inline-size:100%}.aeris-toolbar[data-size=sm]{--_padding-block: var(--aeris-toolbar-padding-block-sm, .5625rem);--_padding-inline: var(--aeris-toolbar-padding-inline-sm, .625rem);--_gap: var(--aeris-toolbar-gap-sm, .5rem);--_section-gap: var(--aeris-toolbar-section-gap-sm, .375rem)}.aeris-toolbar[data-size=lg]{--_padding-block: var(--aeris-toolbar-padding-block-lg, 1rem);--_padding-inline: var(--aeris-toolbar-padding-inline-lg, 1.125rem);--_gap: var(--aeris-toolbar-gap-lg, 1rem);--_section-gap: var(--aeris-toolbar-section-gap-lg, .625rem)}.aeris-toolbar[data-variant=filled]{border-color:var(--aeris-toolbar-filled-border, transparent);background:var(--aeris-toolbar-filled-background, color-mix(in srgb, var(--aeris-surface-2, #f2f0ec) 76%, var(--aeris-surface, #fff)))}.aeris-toolbar[data-variant=elevated]{border-color:var(--aeris-toolbar-elevated-border, transparent);box-shadow:var(--aeris-toolbar-elevated-shadow, 0 .75rem 2rem color-mix(in srgb, var(--aeris-text, #222222) 10%, transparent))}.aeris-toolbar[data-variant=plain]{border-color:transparent;border-radius:0;background:transparent;box-shadow:none}.aeris-toolbar__content{display:flex;align-items:center;gap:var(--_gap);min-block-size:var(--aeris-toolbar-min-height, 3.25rem);min-inline-size:0;padding:var(--_padding-block) var(--_padding-inline)}.aeris-toolbar[data-wrap=true] .aeris-toolbar__content{flex-wrap:wrap}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content{flex-wrap:nowrap;overflow-x:auto;scrollbar-color:var(--aeris-border-strong, #c7c9c0) transparent;scrollbar-width:thin}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-track,.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-corner{background:transparent}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border-strong, #c7c9c0);background-clip:content-box}.aeris-toolbar[data-align=start] .aeris-toolbar__content{align-items:flex-start}.aeris-toolbar[data-align=end] .aeris-toolbar__content{align-items:flex-end}.aeris-toolbar[data-align=stretch] .aeris-toolbar__content{align-items:stretch}.aeris-toolbar__section,.aeris-toolbar__group{display:inline-flex;align-items:center;gap:var(--_section-gap);min-inline-size:0}.aeris-toolbar__section{flex-wrap:wrap}.aeris-toolbar[data-wrap=false] .aeris-toolbar__section{flex-wrap:nowrap}.aeris-toolbar__section--start{flex:1 1 0;justify-content:flex-start}.aeris-toolbar__section--center{flex:0 1 auto;justify-content:center}.aeris-toolbar__section--end{flex:1 1 0;justify-content:flex-end}.aeris-toolbar__group{flex:0 0 auto}.aeris-toolbar__spacer{flex:1 1 auto;min-inline-size:var(--aeris-toolbar-spacer-min-size, 1rem)}.aeris-toolbar[data-orientation=vertical]{inline-size:max-content;max-inline-size:100%}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__content,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__group{align-items:stretch;flex-direction:column}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section{flex:0 0 auto;justify-content:flex-start}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__spacer{min-block-size:var(--aeris-toolbar-spacer-min-size, 1rem);min-inline-size:0}.aeris-toolbar[data-disabled=true]{opacity:var(--aeris-toolbar-disabled-opacity, .62)}@media(max-width:42rem){.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section{flex:1 1 100%;justify-content:flex-start}.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section--center{justify-content:center}.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section--end{justify-content:flex-start}}\n"], encapsulation: i0.ViewEncapsulation.None });
|
|
93
|
+
}
|
|
94
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisToolbar, decorators: [{
|
|
95
|
+
type: Component,
|
|
96
|
+
args: [{ selector: 'aeris-toolbar', template: `
|
|
97
|
+
<div class="aeris-toolbar__content">
|
|
98
|
+
<ng-content select="[aerisToolbarStart]" />
|
|
99
|
+
<ng-content select="[aerisToolbarCenter]" />
|
|
100
|
+
<ng-content select="[aerisToolbarEnd]" />
|
|
101
|
+
<ng-content />
|
|
102
|
+
</div>
|
|
103
|
+
`, encapsulation: ViewEncapsulation.None, host: {
|
|
104
|
+
class: 'aeris-toolbar',
|
|
105
|
+
'[attr.id]': 'id() || null',
|
|
106
|
+
'[attr.role]': 'role()',
|
|
107
|
+
'[attr.aria-label]': 'ariaLabel() || null',
|
|
108
|
+
'[attr.aria-labelledby]': 'ariaLabelledBy() || null',
|
|
109
|
+
'[attr.aria-describedby]': 'ariaDescribedBy() || null',
|
|
110
|
+
'[attr.aria-orientation]': 'role() === "toolbar" ? orientation() : null',
|
|
111
|
+
'[attr.aria-disabled]': 'disabled() || null',
|
|
112
|
+
'[attr.inert]': 'disabled() ? "" : null',
|
|
113
|
+
'[attr.data-variant]': 'variant()',
|
|
114
|
+
'[attr.data-size]': 'size()',
|
|
115
|
+
'[attr.data-orientation]': 'orientation()',
|
|
116
|
+
'[attr.data-align]': 'align()',
|
|
117
|
+
'[attr.data-wrap]': 'wrap()',
|
|
118
|
+
'[attr.data-fluid]': 'fluid() || null',
|
|
119
|
+
'[attr.data-disabled]': 'disabled() || null',
|
|
120
|
+
}, styles: ["aeris-toolbar{display:block;min-inline-size:0}.aeris-toolbar{--_padding-block: var(--aeris-toolbar-padding-block, .75rem);--_padding-inline: var(--aeris-toolbar-padding-inline, .875rem);--_gap: var(--aeris-toolbar-gap, .75rem);--_section-gap: var(--aeris-toolbar-section-gap, .5rem);border:var(--aeris-toolbar-border-width, 1px) solid var(--aeris-toolbar-border, var(--aeris-border, #deddd7));border-radius:var(--aeris-toolbar-radius, var(--aeris-radius-lg, 1.125rem));background:var(--aeris-toolbar-background, var(--aeris-surface, #fff));color:var(--aeris-toolbar-color, var(--aeris-text, #222222));box-shadow:var(--aeris-toolbar-shadow, none)}.aeris-toolbar[data-fluid=true]{inline-size:100%}.aeris-toolbar[data-size=sm]{--_padding-block: var(--aeris-toolbar-padding-block-sm, .5625rem);--_padding-inline: var(--aeris-toolbar-padding-inline-sm, .625rem);--_gap: var(--aeris-toolbar-gap-sm, .5rem);--_section-gap: var(--aeris-toolbar-section-gap-sm, .375rem)}.aeris-toolbar[data-size=lg]{--_padding-block: var(--aeris-toolbar-padding-block-lg, 1rem);--_padding-inline: var(--aeris-toolbar-padding-inline-lg, 1.125rem);--_gap: var(--aeris-toolbar-gap-lg, 1rem);--_section-gap: var(--aeris-toolbar-section-gap-lg, .625rem)}.aeris-toolbar[data-variant=filled]{border-color:var(--aeris-toolbar-filled-border, transparent);background:var(--aeris-toolbar-filled-background, color-mix(in srgb, var(--aeris-surface-2, #f2f0ec) 76%, var(--aeris-surface, #fff)))}.aeris-toolbar[data-variant=elevated]{border-color:var(--aeris-toolbar-elevated-border, transparent);box-shadow:var(--aeris-toolbar-elevated-shadow, 0 .75rem 2rem color-mix(in srgb, var(--aeris-text, #222222) 10%, transparent))}.aeris-toolbar[data-variant=plain]{border-color:transparent;border-radius:0;background:transparent;box-shadow:none}.aeris-toolbar__content{display:flex;align-items:center;gap:var(--_gap);min-block-size:var(--aeris-toolbar-min-height, 3.25rem);min-inline-size:0;padding:var(--_padding-block) var(--_padding-inline)}.aeris-toolbar[data-wrap=true] .aeris-toolbar__content{flex-wrap:wrap}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content{flex-wrap:nowrap;overflow-x:auto;scrollbar-color:var(--aeris-border-strong, #c7c9c0) transparent;scrollbar-width:thin}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-track,.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-corner{background:transparent}.aeris-toolbar[data-wrap=false] .aeris-toolbar__content::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border-strong, #c7c9c0);background-clip:content-box}.aeris-toolbar[data-align=start] .aeris-toolbar__content{align-items:flex-start}.aeris-toolbar[data-align=end] .aeris-toolbar__content{align-items:flex-end}.aeris-toolbar[data-align=stretch] .aeris-toolbar__content{align-items:stretch}.aeris-toolbar__section,.aeris-toolbar__group{display:inline-flex;align-items:center;gap:var(--_section-gap);min-inline-size:0}.aeris-toolbar__section{flex-wrap:wrap}.aeris-toolbar[data-wrap=false] .aeris-toolbar__section{flex-wrap:nowrap}.aeris-toolbar__section--start{flex:1 1 0;justify-content:flex-start}.aeris-toolbar__section--center{flex:0 1 auto;justify-content:center}.aeris-toolbar__section--end{flex:1 1 0;justify-content:flex-end}.aeris-toolbar__group{flex:0 0 auto}.aeris-toolbar__spacer{flex:1 1 auto;min-inline-size:var(--aeris-toolbar-spacer-min-size, 1rem)}.aeris-toolbar[data-orientation=vertical]{inline-size:max-content;max-inline-size:100%}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__content,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section,.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__group{align-items:stretch;flex-direction:column}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__section{flex:0 0 auto;justify-content:flex-start}.aeris-toolbar[data-orientation=vertical] .aeris-toolbar__spacer{min-block-size:var(--aeris-toolbar-spacer-min-size, 1rem);min-inline-size:0}.aeris-toolbar[data-disabled=true]{opacity:var(--aeris-toolbar-disabled-opacity, .62)}@media(max-width:42rem){.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section{flex:1 1 100%;justify-content:flex-start}.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section--center{justify-content:center}.aeris-toolbar[data-orientation=horizontal][data-wrap=true] .aeris-toolbar__section--end{justify-content:flex-start}}\n"] }]
|
|
121
|
+
}], propDecorators: { id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], orientation: [{ type: i0.Input, args: [{ isSignal: true, alias: "orientation", required: false }] }], align: [{ type: i0.Input, args: [{ isSignal: true, alias: "align", required: false }] }], wrap: [{ type: i0.Input, args: [{ isSignal: true, alias: "wrap", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], role: [{ type: i0.Input, args: [{ isSignal: true, alias: "role", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaDescribedBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedBy", required: false }] }] } });
|
|
122
|
+
const AerisToolbarModule = [
|
|
123
|
+
AerisToolbar,
|
|
124
|
+
AerisToolbarStart,
|
|
125
|
+
AerisToolbarCenter,
|
|
126
|
+
AerisToolbarEnd,
|
|
127
|
+
AerisToolbarGroup,
|
|
128
|
+
AerisToolbarSpacer,
|
|
129
|
+
];
|
|
130
|
+
|
|
131
|
+
/**
|
|
132
|
+
* Generated bundle index. Do not edit.
|
|
133
|
+
*/
|
|
134
|
+
|
|
135
|
+
export { AerisToolbar, AerisToolbarCenter, AerisToolbarEnd, AerisToolbarGroup, AerisToolbarModule, AerisToolbarSpacer, AerisToolbarStart };
|
|
136
|
+
//# sourceMappingURL=aeris-ui-core-toolbar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aeris-ui-core-toolbar.mjs","sources":["../../../projects/aeris-ui/toolbar/aeris-toolbar.ts","../../../projects/aeris-ui/toolbar/aeris-ui-core-toolbar.ts"],"sourcesContent":["import {\n Component,\n Directive,\n ViewEncapsulation,\n booleanAttribute,\n input,\n} from '@angular/core';\n\nexport type AerisToolbarVariant = 'outlined' | 'filled' | 'elevated' | 'plain';\nexport type AerisToolbarSize = 'sm' | 'md' | 'lg';\nexport type AerisToolbarOrientation = 'horizontal' | 'vertical';\nexport type AerisToolbarRole = 'toolbar' | 'group' | null;\nexport type AerisToolbarAlign = 'start' | 'center' | 'end' | 'stretch';\n\n@Directive({\n selector: '[aerisToolbarStart]',\n host: { class: 'aeris-toolbar__section aeris-toolbar__section--start' },\n})\nexport class AerisToolbarStart {}\n\n@Directive({\n selector: '[aerisToolbarCenter]',\n host: { class: 'aeris-toolbar__section aeris-toolbar__section--center' },\n})\nexport class AerisToolbarCenter {}\n\n@Directive({\n selector: '[aerisToolbarEnd]',\n host: { class: 'aeris-toolbar__section aeris-toolbar__section--end' },\n})\nexport class AerisToolbarEnd {}\n\n@Directive({\n selector: '[aerisToolbarGroup]',\n host: { class: 'aeris-toolbar__group' },\n})\nexport class AerisToolbarGroup {}\n\n@Directive({\n selector: '[aerisToolbarSpacer]',\n host: {\n class: 'aeris-toolbar__spacer',\n 'aria-hidden': 'true',\n },\n})\nexport class AerisToolbarSpacer {}\n\n@Component({\n selector: 'aeris-toolbar',\n template: `\n <div class=\"aeris-toolbar__content\">\n <ng-content select=\"[aerisToolbarStart]\" />\n <ng-content select=\"[aerisToolbarCenter]\" />\n <ng-content select=\"[aerisToolbarEnd]\" />\n <ng-content />\n </div>\n `,\n styleUrl: './aeris-toolbar.scss',\n encapsulation: ViewEncapsulation.None,\n host: {\n class: 'aeris-toolbar',\n '[attr.id]': 'id() || null',\n '[attr.role]': 'role()',\n '[attr.aria-label]': 'ariaLabel() || null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() || null',\n '[attr.aria-describedby]': 'ariaDescribedBy() || null',\n '[attr.aria-orientation]': 'role() === \"toolbar\" ? orientation() : null',\n '[attr.aria-disabled]': 'disabled() || null',\n '[attr.inert]': 'disabled() ? \"\" : null',\n '[attr.data-variant]': 'variant()',\n '[attr.data-size]': 'size()',\n '[attr.data-orientation]': 'orientation()',\n '[attr.data-align]': 'align()',\n '[attr.data-wrap]': 'wrap()',\n '[attr.data-fluid]': 'fluid() || null',\n '[attr.data-disabled]': 'disabled() || null',\n },\n})\nexport class AerisToolbar {\n readonly id = input('');\n readonly variant = input<AerisToolbarVariant>('outlined');\n readonly size = input<AerisToolbarSize>('md');\n readonly orientation = input<AerisToolbarOrientation>('horizontal');\n readonly align = input<AerisToolbarAlign>('center');\n readonly wrap = input(true, { transform: booleanAttribute });\n readonly fluid = input(true, { transform: booleanAttribute });\n readonly disabled = input(false, { transform: booleanAttribute });\n readonly role = input<AerisToolbarRole>('toolbar');\n readonly ariaLabel = input('');\n readonly ariaLabelledBy = input('');\n readonly ariaDescribedBy = input('');\n}\n\nexport const AerisToolbarModule = [\n AerisToolbar,\n AerisToolbarStart,\n AerisToolbarCenter,\n AerisToolbarEnd,\n AerisToolbarGroup,\n AerisToolbarSpacer,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;MAkBa,iBAAiB,CAAA;uGAAjB,iBAAiB,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAAjB,iBAAiB,EAAA,YAAA,EAAA,IAAA,EAAA,QAAA,EAAA,qBAAA,EAAA,IAAA,EAAA,EAAA,cAAA,EAAA,s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