@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,260 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, TemplateRef, Directive, contentChild, input, numberAttribute, booleanAttribute, computed, Component } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
class AerisProgressBarValueTemplate {
|
|
6
|
+
template = inject(TemplateRef);
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressBarValueTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisProgressBarValueTemplate, isStandalone: true, selector: "ng-template[aerisProgressBarValue]", ngImport: i0 });
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressBarValueTemplate, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{ selector: 'ng-template[aerisProgressBarValue]' }]
|
|
13
|
+
}] });
|
|
14
|
+
class AerisProgressBarStepTemplate {
|
|
15
|
+
template = inject(TemplateRef);
|
|
16
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressBarStepTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
17
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisProgressBarStepTemplate, isStandalone: true, selector: "ng-template[aerisProgressBarStep]", ngImport: i0 });
|
|
18
|
+
}
|
|
19
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressBarStepTemplate, decorators: [{
|
|
20
|
+
type: Directive,
|
|
21
|
+
args: [{ selector: 'ng-template[aerisProgressBarStep]' }]
|
|
22
|
+
}] });
|
|
23
|
+
let nextProgressBarId = 0;
|
|
24
|
+
class AerisProgressBar {
|
|
25
|
+
valueTemplate = contentChild(AerisProgressBarValueTemplate, /* @ts-ignore */
|
|
26
|
+
...(ngDevMode ? [{ debugName: "valueTemplate" }] : /* istanbul ignore next */ []));
|
|
27
|
+
stepTemplate = contentChild(AerisProgressBarStepTemplate, /* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [{ debugName: "stepTemplate" }] : /* istanbul ignore next */ []));
|
|
29
|
+
id = input(`aeris-progress-bar-${++nextProgressBarId}`, /* @ts-ignore */
|
|
30
|
+
...(ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []));
|
|
31
|
+
value = input(0, { ...(ngDevMode ? { debugName: "value" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
32
|
+
min = input(0, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
33
|
+
max = input(100, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
34
|
+
mode = input('determinate', /* @ts-ignore */
|
|
35
|
+
...(ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []));
|
|
36
|
+
severity = input('primary', /* @ts-ignore */
|
|
37
|
+
...(ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []));
|
|
38
|
+
size = input('md', /* @ts-ignore */
|
|
39
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
40
|
+
showValue = input(true, { ...(ngDevMode ? { debugName: "showValue" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
41
|
+
striped = input(false, { ...(ngDevMode ? { debugName: "striped" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
42
|
+
animated = input(false, { ...(ngDevMode ? { debugName: "animated" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
43
|
+
rounded = input(true, { ...(ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
44
|
+
ariaLabel = input('', /* @ts-ignore */
|
|
45
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
46
|
+
ariaLabelledBy = input('', /* @ts-ignore */
|
|
47
|
+
...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
48
|
+
ariaValueText = input('', /* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [{ debugName: "ariaValueText" }] : /* istanbul ignore next */ []));
|
|
50
|
+
steps = input([], /* @ts-ignore */
|
|
51
|
+
...(ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []));
|
|
52
|
+
activeStep = input(null, /* @ts-ignore */
|
|
53
|
+
...(ngDevMode ? [{ debugName: "activeStep" }] : /* istanbul ignore next */ []));
|
|
54
|
+
valueFormatter = input(null, /* @ts-ignore */
|
|
55
|
+
...(ngDevMode ? [{ debugName: "valueFormatter" }] : /* istanbul ignore next */ []));
|
|
56
|
+
normalizedMin = computed(() => {
|
|
57
|
+
const min = this.min();
|
|
58
|
+
return Number.isFinite(min) ? min : 0;
|
|
59
|
+
}, /* @ts-ignore */
|
|
60
|
+
...(ngDevMode ? [{ debugName: "normalizedMin" }] : /* istanbul ignore next */ []));
|
|
61
|
+
normalizedMax = computed(() => {
|
|
62
|
+
const min = this.normalizedMin();
|
|
63
|
+
const max = this.max();
|
|
64
|
+
return Number.isFinite(max) && max > min ? max : min + 100;
|
|
65
|
+
}, /* @ts-ignore */
|
|
66
|
+
...(ngDevMode ? [{ debugName: "normalizedMax" }] : /* istanbul ignore next */ []));
|
|
67
|
+
clampedValue = computed(() => {
|
|
68
|
+
const value = this.value();
|
|
69
|
+
return this.clamp(Number.isFinite(value) ? value : this.normalizedMin(), this.normalizedMin(), this.normalizedMax());
|
|
70
|
+
}, /* @ts-ignore */
|
|
71
|
+
...(ngDevMode ? [{ debugName: "clampedValue" }] : /* istanbul ignore next */ []));
|
|
72
|
+
percent = computed(() => {
|
|
73
|
+
const min = this.normalizedMin();
|
|
74
|
+
const max = this.normalizedMax();
|
|
75
|
+
const range = max - min;
|
|
76
|
+
if (range <= 0)
|
|
77
|
+
return 0;
|
|
78
|
+
return Math.round(((this.clampedValue() - min) / range) * 1000) / 10;
|
|
79
|
+
}, /* @ts-ignore */
|
|
80
|
+
...(ngDevMode ? [{ debugName: "percent" }] : /* istanbul ignore next */ []));
|
|
81
|
+
percentStyle = computed(() => `${this.percent()}%`, /* @ts-ignore */
|
|
82
|
+
...(ngDevMode ? [{ debugName: "percentStyle" }] : /* istanbul ignore next */ []));
|
|
83
|
+
valueContext = computed(() => ({
|
|
84
|
+
$implicit: this.clampedValue(),
|
|
85
|
+
value: this.clampedValue(),
|
|
86
|
+
min: this.normalizedMin(),
|
|
87
|
+
max: this.normalizedMax(),
|
|
88
|
+
percent: this.percent(),
|
|
89
|
+
}), /* @ts-ignore */
|
|
90
|
+
...(ngDevMode ? [{ debugName: "valueContext" }] : /* istanbul ignore next */ []));
|
|
91
|
+
valueText = computed(() => {
|
|
92
|
+
const formatter = this.valueFormatter();
|
|
93
|
+
if (formatter)
|
|
94
|
+
return formatter(this.valueContext());
|
|
95
|
+
return `${Math.round(this.percent())}%`;
|
|
96
|
+
}, /* @ts-ignore */
|
|
97
|
+
...(ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []));
|
|
98
|
+
resolvedAriaValueText = computed(() => {
|
|
99
|
+
if (this.mode() !== 'determinate')
|
|
100
|
+
return this.ariaValueText() || null;
|
|
101
|
+
return this.ariaValueText() || this.valueText();
|
|
102
|
+
}, /* @ts-ignore */
|
|
103
|
+
...(ngDevMode ? [{ debugName: "resolvedAriaValueText" }] : /* istanbul ignore next */ []));
|
|
104
|
+
stepViews = computed(() => {
|
|
105
|
+
const steps = this.steps();
|
|
106
|
+
if (steps.length === 0)
|
|
107
|
+
return [];
|
|
108
|
+
const activeStep = this.activeStep();
|
|
109
|
+
const denominator = Math.max(1, steps.length - 1);
|
|
110
|
+
return steps.map((step, index) => {
|
|
111
|
+
const fallbackPercent = steps.length === 1 ? 100 : (index / denominator) * 100;
|
|
112
|
+
const stepPercent = this.stepPercent(step.value, fallbackPercent);
|
|
113
|
+
const active = activeStep === null ? this.percent() >= stepPercent : activeStep === index;
|
|
114
|
+
const complete = activeStep === null ? this.percent() >= stepPercent : index <= activeStep;
|
|
115
|
+
return {
|
|
116
|
+
step,
|
|
117
|
+
index,
|
|
118
|
+
active,
|
|
119
|
+
complete,
|
|
120
|
+
percent: `${stepPercent}%`,
|
|
121
|
+
context: {
|
|
122
|
+
$implicit: step,
|
|
123
|
+
step,
|
|
124
|
+
index,
|
|
125
|
+
active,
|
|
126
|
+
complete,
|
|
127
|
+
percent: stepPercent,
|
|
128
|
+
},
|
|
129
|
+
};
|
|
130
|
+
});
|
|
131
|
+
}, /* @ts-ignore */
|
|
132
|
+
...(ngDevMode ? [{ debugName: "stepViews" }] : /* istanbul ignore next */ []));
|
|
133
|
+
stepPercent(value, fallback) {
|
|
134
|
+
if (value === undefined || !Number.isFinite(value))
|
|
135
|
+
return this.clamp(fallback, 0, 100);
|
|
136
|
+
const min = this.normalizedMin();
|
|
137
|
+
const max = this.normalizedMax();
|
|
138
|
+
return this.clamp(((value - min) / (max - min)) * 100, 0, 100);
|
|
139
|
+
}
|
|
140
|
+
clamp(value, min, max) {
|
|
141
|
+
return Math.min(Math.max(value, min), max);
|
|
142
|
+
}
|
|
143
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressBar, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
144
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisProgressBar, isStandalone: true, selector: "aeris-progress-bar", inputs: { id: { classPropertyName: "id", publicName: "id", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", 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 }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, striped: { classPropertyName: "striped", publicName: "striped", isSignal: true, isRequired: false, transformFunction: null }, animated: { classPropertyName: "animated", publicName: "animated", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", 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 }, ariaValueText: { classPropertyName: "ariaValueText", publicName: "ariaValueText", isSignal: true, isRequired: false, transformFunction: null }, steps: { classPropertyName: "steps", publicName: "steps", isSignal: true, isRequired: false, transformFunction: null }, activeStep: { classPropertyName: "activeStep", publicName: "activeStep", isSignal: true, isRequired: false, transformFunction: null }, valueFormatter: { classPropertyName: "valueFormatter", publicName: "valueFormatter", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "progressbar" }, properties: { "attr.id": "id()", "attr.aria-valuemin": "mode() === \"determinate\" ? min() : null", "attr.aria-valuemax": "mode() === \"determinate\" ? max() : null", "attr.aria-valuenow": "mode() === \"determinate\" ? clampedValue() : null", "attr.aria-valuetext": "resolvedAriaValueText()", "attr.aria-label": "ariaLabel() || null", "attr.aria-labelledby": "ariaLabelledBy() || null", "attr.data-mode": "mode()", "attr.data-severity": "severity()", "attr.data-size": "size()", "attr.data-striped": "striped() || null", "attr.data-animated": "animated() || null", "attr.data-rounded": "rounded() || null", "style.--aeris-progress-bar-value": "percentStyle()" }, classAttribute: "aeris-progress-bar" }, queries: [{ propertyName: "valueTemplate", first: true, predicate: AerisProgressBarValueTemplate, descendants: true, isSignal: true }, { propertyName: "stepTemplate", first: true, predicate: AerisProgressBarStepTemplate, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
145
|
+
<div class="aeris-progress-bar__track">
|
|
146
|
+
<span class="aeris-progress-bar__fill" [style.inline-size.%]="mode() === 'determinate' ? percent() : null"></span>
|
|
147
|
+
@if (showValue() && mode() === 'determinate') {
|
|
148
|
+
<span class="aeris-progress-bar__value">
|
|
149
|
+
@if (valueTemplate(); as template) {
|
|
150
|
+
<ng-container
|
|
151
|
+
[ngTemplateOutlet]="template.template"
|
|
152
|
+
[ngTemplateOutletContext]="valueContext()"
|
|
153
|
+
/>
|
|
154
|
+
} @else {
|
|
155
|
+
{{ valueText() }}
|
|
156
|
+
}
|
|
157
|
+
</span>
|
|
158
|
+
}
|
|
159
|
+
</div>
|
|
160
|
+
|
|
161
|
+
@if (stepViews().length > 0) {
|
|
162
|
+
<ol class="aeris-progress-bar__steps" aria-hidden="true">
|
|
163
|
+
@for (item of stepViews(); track item.index) {
|
|
164
|
+
<li
|
|
165
|
+
class="aeris-progress-bar__step"
|
|
166
|
+
[attr.data-active]="item.active || null"
|
|
167
|
+
[attr.data-complete]="item.complete || null"
|
|
168
|
+
[style.--aeris-progress-bar-step-position]="item.percent"
|
|
169
|
+
>
|
|
170
|
+
<span class="aeris-progress-bar__step-marker"></span>
|
|
171
|
+
<span class="aeris-progress-bar__step-label">
|
|
172
|
+
@if (stepTemplate(); as template) {
|
|
173
|
+
<ng-container
|
|
174
|
+
[ngTemplateOutlet]="template.template"
|
|
175
|
+
[ngTemplateOutletContext]="item.context"
|
|
176
|
+
/>
|
|
177
|
+
} @else {
|
|
178
|
+
{{ item.step.label }}
|
|
179
|
+
}
|
|
180
|
+
</span>
|
|
181
|
+
</li>
|
|
182
|
+
}
|
|
183
|
+
</ol>
|
|
184
|
+
}
|
|
185
|
+
`, isInline: true, styles: [":host{--_accent: var(--aeris-primary, #879566);--_on-accent: var(--aeris-on-primary, #17200f);--_height: var(--aeris-progress-bar-height, .875rem);display:grid;gap:var(--aeris-progress-bar-gap, .75rem);min-inline-size:0;color:var(--aeris-progress-bar-text, var(--aeris-text, #222222))}:host([data-size=sm]){--_height: var(--aeris-progress-bar-sm-height, .5rem)}:host([data-size=lg]){--_height: var(--aeris-progress-bar-lg-height, 1.25rem)}:host([data-severity=secondary]){--_accent: var(--aeris-surface-3, var(--aeris-border-strong, #c7c9c0));--_on-accent: var(--aeris-text, #222222)}:host([data-severity=success]){--_accent: var(--aeris-success, #6f8a68);--_on-accent: #fff}:host([data-severity=info]){--_accent: var(--aeris-info, #6b8793);--_on-accent: #fff}:host([data-severity=warning]){--_accent: var(--aeris-warning, #c38600);--_on-accent: var(--aeris-on-warning, #211600)}:host([data-severity=danger]){--_accent: var(--aeris-danger, #c81e2a);--_on-accent: #fff}:host([data-severity=neutral]){--_accent: var(--aeris-text-3, #6f7667);--_on-accent: #fff}:host([data-severity=contrast]){--_accent: var(--aeris-text, #222222);--_on-accent: var(--aeris-surface, #fff)}.aeris-progress-bar__track{position:relative;min-inline-size:0;block-size:var(--_height);overflow:hidden;border-radius:var(--aeris-progress-bar-radius, 999px);background:var(--aeris-progress-bar-track, color-mix(in srgb, var(--_accent) 14%, var(--aeris-surface-2, #f2f0ec)));box-shadow:inset 0 0 0 1px var(--aeris-progress-bar-track-border, color-mix(in srgb, var(--_accent) 12%, transparent))}:host([data-rounded=false]) .aeris-progress-bar__track{border-radius:var(--aeris-radius-sm, .4375rem)}.aeris-progress-bar__fill{position:absolute;inset-block:0;inset-inline-start:0;inline-size:0%;min-inline-size:0;border-radius:inherit;background:var(--aeris-progress-bar-fill, var(--_accent));transition:inline-size .18s ease}:host([data-striped=true]) .aeris-progress-bar__fill{background:linear-gradient(45deg,color-mix(in srgb,#fff 22%,transparent) 25%,transparent 25%,transparent 50%,color-mix(in srgb,#fff 22%,transparent) 50%,color-mix(in srgb,#fff 22%,transparent) 75%,transparent 75%,transparent),var(--aeris-progress-bar-fill, var(--_accent));background-size:1.2rem 1.2rem}:host([data-striped=true][data-animated=true]) .aeris-progress-bar__fill{animation:aeris-progress-bar-stripes .9s linear infinite}:host([data-mode=indeterminate]) .aeris-progress-bar__fill{inline-size:42%;min-inline-size:42%;animation:aeris-progress-bar-indeterminate 1.25s ease-in-out infinite}.aeris-progress-bar__value{position:absolute;inset:0;z-index:1;display:inline-grid;place-items:center;padding-inline:.5rem;color:var(--aeris-progress-bar-value-text, var(--_on-accent));font-size:var(--aeris-progress-bar-value-font-size, .75rem);font-weight:800;line-height:1;text-shadow:0 1px 1px rgba(0,0,0,.14)}:host([data-size=sm]) .aeris-progress-bar__value{display:none}.aeris-progress-bar__steps{position:relative;display:block;min-block-size:2rem;margin:0;padding:0;list-style:none}.aeris-progress-bar__step{position:absolute;inset-block-start:0;inset-inline-start:var(--aeris-progress-bar-step-position);display:grid;justify-items:center;gap:.35rem;max-inline-size:8rem;color:var(--aeris-progress-bar-step-text, var(--aeris-text-3, #6f7667));font-size:.75rem;font-weight:700;text-align:center;transform:translate(-50%)}.aeris-progress-bar__step-marker{inline-size:var(--aeris-progress-bar-step-marker-size, .75rem);block-size:var(--aeris-progress-bar-step-marker-size, .75rem);border:2px solid var(--aeris-progress-bar-step-border, var(--aeris-border-strong, #c7c9c0));border-radius:999px;background:var(--aeris-progress-bar-step-background, var(--aeris-surface, #fff));box-shadow:0 0 0 2px var(--aeris-progress-bar-step-ring, var(--aeris-surface, #fff))}.aeris-progress-bar__step[data-complete=true]{color:var(--aeris-progress-bar-step-complete-text, var(--aeris-text, #222222))}.aeris-progress-bar__step[data-complete=true] .aeris-progress-bar__step-marker{border-color:var(--_accent);background:var(--_accent)}.aeris-progress-bar__step[data-active=true] .aeris-progress-bar__step-marker{box-shadow:0 0 0 2px var(--aeris-progress-bar-step-ring, var(--aeris-surface, #fff)),0 0 0 5px color-mix(in srgb,var(--_accent) 22%,transparent)}@keyframes aeris-progress-bar-indeterminate{0%{transform:translate(-115%)}55%{transform:translate(80%)}to{transform:translate(245%)}}@keyframes aeris-progress-bar-stripes{0%{background-position:0 0}to{background-position:1.2rem 0}}@media(max-width:36rem){.aeris-progress-bar__steps{min-block-size:3rem}.aeris-progress-bar__step-label{max-inline-size:4.5rem}}@media(prefers-reduced-motion:reduce){.aeris-progress-bar__fill{transition:none;animation:none!important}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
186
|
+
}
|
|
187
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressBar, decorators: [{
|
|
188
|
+
type: Component,
|
|
189
|
+
args: [{ selector: 'aeris-progress-bar', imports: [NgTemplateOutlet], template: `
|
|
190
|
+
<div class="aeris-progress-bar__track">
|
|
191
|
+
<span class="aeris-progress-bar__fill" [style.inline-size.%]="mode() === 'determinate' ? percent() : null"></span>
|
|
192
|
+
@if (showValue() && mode() === 'determinate') {
|
|
193
|
+
<span class="aeris-progress-bar__value">
|
|
194
|
+
@if (valueTemplate(); as template) {
|
|
195
|
+
<ng-container
|
|
196
|
+
[ngTemplateOutlet]="template.template"
|
|
197
|
+
[ngTemplateOutletContext]="valueContext()"
|
|
198
|
+
/>
|
|
199
|
+
} @else {
|
|
200
|
+
{{ valueText() }}
|
|
201
|
+
}
|
|
202
|
+
</span>
|
|
203
|
+
}
|
|
204
|
+
</div>
|
|
205
|
+
|
|
206
|
+
@if (stepViews().length > 0) {
|
|
207
|
+
<ol class="aeris-progress-bar__steps" aria-hidden="true">
|
|
208
|
+
@for (item of stepViews(); track item.index) {
|
|
209
|
+
<li
|
|
210
|
+
class="aeris-progress-bar__step"
|
|
211
|
+
[attr.data-active]="item.active || null"
|
|
212
|
+
[attr.data-complete]="item.complete || null"
|
|
213
|
+
[style.--aeris-progress-bar-step-position]="item.percent"
|
|
214
|
+
>
|
|
215
|
+
<span class="aeris-progress-bar__step-marker"></span>
|
|
216
|
+
<span class="aeris-progress-bar__step-label">
|
|
217
|
+
@if (stepTemplate(); as template) {
|
|
218
|
+
<ng-container
|
|
219
|
+
[ngTemplateOutlet]="template.template"
|
|
220
|
+
[ngTemplateOutletContext]="item.context"
|
|
221
|
+
/>
|
|
222
|
+
} @else {
|
|
223
|
+
{{ item.step.label }}
|
|
224
|
+
}
|
|
225
|
+
</span>
|
|
226
|
+
</li>
|
|
227
|
+
}
|
|
228
|
+
</ol>
|
|
229
|
+
}
|
|
230
|
+
`, host: {
|
|
231
|
+
class: 'aeris-progress-bar',
|
|
232
|
+
'[attr.id]': 'id()',
|
|
233
|
+
role: 'progressbar',
|
|
234
|
+
'[attr.aria-valuemin]': 'mode() === "determinate" ? min() : null',
|
|
235
|
+
'[attr.aria-valuemax]': 'mode() === "determinate" ? max() : null',
|
|
236
|
+
'[attr.aria-valuenow]': 'mode() === "determinate" ? clampedValue() : null',
|
|
237
|
+
'[attr.aria-valuetext]': 'resolvedAriaValueText()',
|
|
238
|
+
'[attr.aria-label]': 'ariaLabel() || null',
|
|
239
|
+
'[attr.aria-labelledby]': 'ariaLabelledBy() || null',
|
|
240
|
+
'[attr.data-mode]': 'mode()',
|
|
241
|
+
'[attr.data-severity]': 'severity()',
|
|
242
|
+
'[attr.data-size]': 'size()',
|
|
243
|
+
'[attr.data-striped]': 'striped() || null',
|
|
244
|
+
'[attr.data-animated]': 'animated() || null',
|
|
245
|
+
'[attr.data-rounded]': 'rounded() || null',
|
|
246
|
+
'[style.--aeris-progress-bar-value]': 'percentStyle()',
|
|
247
|
+
}, styles: [":host{--_accent: var(--aeris-primary, #879566);--_on-accent: var(--aeris-on-primary, #17200f);--_height: var(--aeris-progress-bar-height, .875rem);display:grid;gap:var(--aeris-progress-bar-gap, .75rem);min-inline-size:0;color:var(--aeris-progress-bar-text, var(--aeris-text, #222222))}:host([data-size=sm]){--_height: var(--aeris-progress-bar-sm-height, .5rem)}:host([data-size=lg]){--_height: var(--aeris-progress-bar-lg-height, 1.25rem)}:host([data-severity=secondary]){--_accent: var(--aeris-surface-3, var(--aeris-border-strong, #c7c9c0));--_on-accent: var(--aeris-text, #222222)}:host([data-severity=success]){--_accent: var(--aeris-success, #6f8a68);--_on-accent: #fff}:host([data-severity=info]){--_accent: var(--aeris-info, #6b8793);--_on-accent: #fff}:host([data-severity=warning]){--_accent: var(--aeris-warning, #c38600);--_on-accent: var(--aeris-on-warning, #211600)}:host([data-severity=danger]){--_accent: var(--aeris-danger, #c81e2a);--_on-accent: #fff}:host([data-severity=neutral]){--_accent: var(--aeris-text-3, #6f7667);--_on-accent: #fff}:host([data-severity=contrast]){--_accent: var(--aeris-text, #222222);--_on-accent: var(--aeris-surface, #fff)}.aeris-progress-bar__track{position:relative;min-inline-size:0;block-size:var(--_height);overflow:hidden;border-radius:var(--aeris-progress-bar-radius, 999px);background:var(--aeris-progress-bar-track, color-mix(in srgb, var(--_accent) 14%, var(--aeris-surface-2, #f2f0ec)));box-shadow:inset 0 0 0 1px var(--aeris-progress-bar-track-border, color-mix(in srgb, var(--_accent) 12%, transparent))}:host([data-rounded=false]) .aeris-progress-bar__track{border-radius:var(--aeris-radius-sm, .4375rem)}.aeris-progress-bar__fill{position:absolute;inset-block:0;inset-inline-start:0;inline-size:0%;min-inline-size:0;border-radius:inherit;background:var(--aeris-progress-bar-fill, var(--_accent));transition:inline-size .18s ease}:host([data-striped=true]) .aeris-progress-bar__fill{background:linear-gradient(45deg,color-mix(in srgb,#fff 22%,transparent) 25%,transparent 25%,transparent 50%,color-mix(in srgb,#fff 22%,transparent) 50%,color-mix(in srgb,#fff 22%,transparent) 75%,transparent 75%,transparent),var(--aeris-progress-bar-fill, var(--_accent));background-size:1.2rem 1.2rem}:host([data-striped=true][data-animated=true]) .aeris-progress-bar__fill{animation:aeris-progress-bar-stripes .9s linear infinite}:host([data-mode=indeterminate]) .aeris-progress-bar__fill{inline-size:42%;min-inline-size:42%;animation:aeris-progress-bar-indeterminate 1.25s ease-in-out infinite}.aeris-progress-bar__value{position:absolute;inset:0;z-index:1;display:inline-grid;place-items:center;padding-inline:.5rem;color:var(--aeris-progress-bar-value-text, var(--_on-accent));font-size:var(--aeris-progress-bar-value-font-size, .75rem);font-weight:800;line-height:1;text-shadow:0 1px 1px rgba(0,0,0,.14)}:host([data-size=sm]) .aeris-progress-bar__value{display:none}.aeris-progress-bar__steps{position:relative;display:block;min-block-size:2rem;margin:0;padding:0;list-style:none}.aeris-progress-bar__step{position:absolute;inset-block-start:0;inset-inline-start:var(--aeris-progress-bar-step-position);display:grid;justify-items:center;gap:.35rem;max-inline-size:8rem;color:var(--aeris-progress-bar-step-text, var(--aeris-text-3, #6f7667));font-size:.75rem;font-weight:700;text-align:center;transform:translate(-50%)}.aeris-progress-bar__step-marker{inline-size:var(--aeris-progress-bar-step-marker-size, .75rem);block-size:var(--aeris-progress-bar-step-marker-size, .75rem);border:2px solid var(--aeris-progress-bar-step-border, var(--aeris-border-strong, #c7c9c0));border-radius:999px;background:var(--aeris-progress-bar-step-background, var(--aeris-surface, #fff));box-shadow:0 0 0 2px var(--aeris-progress-bar-step-ring, var(--aeris-surface, #fff))}.aeris-progress-bar__step[data-complete=true]{color:var(--aeris-progress-bar-step-complete-text, var(--aeris-text, #222222))}.aeris-progress-bar__step[data-complete=true] .aeris-progress-bar__step-marker{border-color:var(--_accent);background:var(--_accent)}.aeris-progress-bar__step[data-active=true] .aeris-progress-bar__step-marker{box-shadow:0 0 0 2px var(--aeris-progress-bar-step-ring, var(--aeris-surface, #fff)),0 0 0 5px color-mix(in srgb,var(--_accent) 22%,transparent)}@keyframes aeris-progress-bar-indeterminate{0%{transform:translate(-115%)}55%{transform:translate(80%)}to{transform:translate(245%)}}@keyframes aeris-progress-bar-stripes{0%{background-position:0 0}to{background-position:1.2rem 0}}@media(max-width:36rem){.aeris-progress-bar__steps{min-block-size:3rem}.aeris-progress-bar__step-label{max-inline-size:4.5rem}}@media(prefers-reduced-motion:reduce){.aeris-progress-bar__fill{transition:none;animation:none!important}}\n"] }]
|
|
248
|
+
}], propDecorators: { valueTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisProgressBarValueTemplate), { isSignal: true }] }], stepTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisProgressBarStepTemplate), { isSignal: true }] }], id: [{ type: i0.Input, args: [{ isSignal: true, alias: "id", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], severity: [{ type: i0.Input, args: [{ isSignal: true, alias: "severity", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], showValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValue", required: false }] }], striped: [{ type: i0.Input, args: [{ isSignal: true, alias: "striped", required: false }] }], animated: [{ type: i0.Input, args: [{ isSignal: true, alias: "animated", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaValueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaValueText", required: false }] }], steps: [{ type: i0.Input, args: [{ isSignal: true, alias: "steps", required: false }] }], activeStep: [{ type: i0.Input, args: [{ isSignal: true, alias: "activeStep", required: false }] }], valueFormatter: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormatter", required: false }] }] } });
|
|
249
|
+
const AerisProgressBarModule = [
|
|
250
|
+
AerisProgressBar,
|
|
251
|
+
AerisProgressBarValueTemplate,
|
|
252
|
+
AerisProgressBarStepTemplate,
|
|
253
|
+
];
|
|
254
|
+
|
|
255
|
+
/**
|
|
256
|
+
* Generated bundle index. Do not edit.
|
|
257
|
+
*/
|
|
258
|
+
|
|
259
|
+
export { AerisProgressBar, AerisProgressBarModule, AerisProgressBarStepTemplate, AerisProgressBarValueTemplate };
|
|
260
|
+
//# sourceMappingURL=aeris-ui-core-progress-bar.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aeris-ui-core-progress-bar.mjs","sources":["../../../projects/aeris-ui/progress-bar/aeris-progress-bar.ts","../../../projects/aeris-ui/progress-bar/aeris-ui-core-progress-bar.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n numberAttribute,\n} from '@angular/core';\n\nexport type AerisProgressBarMode = 'determinate' | 'indeterminate';\nexport type AerisProgressBarSeverity =\n | 'primary'\n | 'secondary'\n | 'success'\n | 'info'\n | 'warning'\n | 'danger'\n | 'neutral'\n | 'contrast';\nexport type AerisProgressBarSize = 'sm' | 'md' | 'lg';\n\nexport interface AerisProgressBarStep {\n readonly label: string;\n readonly value?: number;\n}\n\nexport interface AerisProgressBarValueContext {\n readonly $implicit: number;\n readonly value: number;\n readonly min: number;\n readonly max: number;\n readonly percent: number;\n}\n\nexport interface AerisProgressBarStepContext {\n readonly $implicit: AerisProgressBarStep;\n readonly step: AerisProgressBarStep;\n readonly index: number;\n readonly active: boolean;\n readonly complete: boolean;\n readonly percent: number;\n}\n\n@Directive({ selector: 'ng-template[aerisProgressBarValue]' })\nexport class AerisProgressBarValueTemplate {\n readonly template = inject<TemplateRef<AerisProgressBarValueContext>>(TemplateRef);\n}\n\n@Directive({ selector: 'ng-template[aerisProgressBarStep]' })\nexport class AerisProgressBarStepTemplate {\n readonly template = inject<TemplateRef<AerisProgressBarStepContext>>(TemplateRef);\n}\n\ninterface AerisProgressBarStepView {\n readonly step: AerisProgressBarStep;\n readonly index: number;\n readonly active: boolean;\n readonly complete: boolean;\n readonly percent: string;\n readonly context: AerisProgressBarStepContext;\n}\n\nlet nextProgressBarId = 0;\n\n@Component({\n selector: 'aeris-progress-bar',\n imports: [NgTemplateOutlet],\n template: `\n <div class=\"aeris-progress-bar__track\">\n <span class=\"aeris-progress-bar__fill\" [style.inline-size.%]=\"mode() === 'determinate' ? percent() : null\"></span>\n @if (showValue() && mode() === 'determinate') {\n <span class=\"aeris-progress-bar__value\">\n @if (valueTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.template\"\n [ngTemplateOutletContext]=\"valueContext()\"\n />\n } @else {\n {{ valueText() }}\n }\n </span>\n }\n </div>\n\n @if (stepViews().length > 0) {\n <ol class=\"aeris-progress-bar__steps\" aria-hidden=\"true\">\n @for (item of stepViews(); track item.index) {\n <li\n class=\"aeris-progress-bar__step\"\n [attr.data-active]=\"item.active || null\"\n [attr.data-complete]=\"item.complete || null\"\n [style.--aeris-progress-bar-step-position]=\"item.percent\"\n >\n <span class=\"aeris-progress-bar__step-marker\"></span>\n <span class=\"aeris-progress-bar__step-label\">\n @if (stepTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.template\"\n [ngTemplateOutletContext]=\"item.context\"\n />\n } @else {\n {{ item.step.label }}\n }\n </span>\n </li>\n }\n </ol>\n }\n `,\n styleUrl: './aeris-progress-bar.scss',\n host: {\n class: 'aeris-progress-bar',\n '[attr.id]': 'id()',\n role: 'progressbar',\n '[attr.aria-valuemin]': 'mode() === \"determinate\" ? min() : null',\n '[attr.aria-valuemax]': 'mode() === \"determinate\" ? max() : null',\n '[attr.aria-valuenow]': 'mode() === \"determinate\" ? clampedValue() : null',\n '[attr.aria-valuetext]': 'resolvedAriaValueText()',\n '[attr.aria-label]': 'ariaLabel() || null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() || null',\n '[attr.data-mode]': 'mode()',\n '[attr.data-severity]': 'severity()',\n '[attr.data-size]': 'size()',\n '[attr.data-striped]': 'striped() || null',\n '[attr.data-animated]': 'animated() || null',\n '[attr.data-rounded]': 'rounded() || null',\n '[style.--aeris-progress-bar-value]': 'percentStyle()',\n },\n})\nexport class AerisProgressBar {\n protected readonly valueTemplate = contentChild(AerisProgressBarValueTemplate);\n protected readonly stepTemplate = contentChild(AerisProgressBarStepTemplate);\n\n readonly id = input(`aeris-progress-bar-${++nextProgressBarId}`);\n readonly value = input(0, { transform: numberAttribute });\n readonly min = input(0, { transform: numberAttribute });\n readonly max = input(100, { transform: numberAttribute });\n readonly mode = input<AerisProgressBarMode>('determinate');\n readonly severity = input<AerisProgressBarSeverity>('primary');\n readonly size = input<AerisProgressBarSize>('md');\n readonly showValue = input(true, { transform: booleanAttribute });\n readonly striped = input(false, { transform: booleanAttribute });\n readonly animated = input(false, { transform: booleanAttribute });\n readonly rounded = input(true, { transform: booleanAttribute });\n readonly ariaLabel = input('');\n readonly ariaLabelledBy = input('');\n readonly ariaValueText = input('');\n readonly steps = input<readonly AerisProgressBarStep[]>([]);\n readonly activeStep = input<number | null>(null);\n readonly valueFormatter = input<((context: AerisProgressBarValueContext) => string) | null>(null);\n\n protected readonly normalizedMin = computed(() => {\n const min = this.min();\n return Number.isFinite(min) ? min : 0;\n });\n\n protected readonly normalizedMax = computed(() => {\n const min = this.normalizedMin();\n const max = this.max();\n return Number.isFinite(max) && max > min ? max : min + 100;\n });\n\n protected readonly clampedValue = computed(() => {\n const value = this.value();\n return this.clamp(\n Number.isFinite(value) ? value : this.normalizedMin(),\n this.normalizedMin(),\n this.normalizedMax(),\n );\n });\n\n protected readonly percent = computed(() => {\n const min = this.normalizedMin();\n const max = this.normalizedMax();\n const range = max - min;\n if (range <= 0) return 0;\n return Math.round(((this.clampedValue() - min) / range) * 1000) / 10;\n });\n\n protected readonly percentStyle = computed(() => `${this.percent()}%`);\n\n protected readonly valueContext = computed<AerisProgressBarValueContext>(() => ({\n $implicit: this.clampedValue(),\n value: this.clampedValue(),\n min: this.normalizedMin(),\n max: this.normalizedMax(),\n percent: this.percent(),\n }));\n\n protected readonly valueText = computed(() => {\n const formatter = this.valueFormatter();\n if (formatter) return formatter(this.valueContext());\n return `${Math.round(this.percent())}%`;\n });\n\n protected readonly resolvedAriaValueText = computed(() => {\n if (this.mode() !== 'determinate') return this.ariaValueText() || null;\n return this.ariaValueText() || this.valueText();\n });\n\n protected readonly stepViews = computed<readonly AerisProgressBarStepView[]>(() => {\n const steps = this.steps();\n if (steps.length === 0) return [];\n\n const activeStep = this.activeStep();\n const denominator = Math.max(1, steps.length - 1);\n return steps.map((step, index) => {\n const fallbackPercent = steps.length === 1 ? 100 : (index / denominator) * 100;\n const stepPercent = this.stepPercent(step.value, fallbackPercent);\n const active = activeStep === null ? this.percent() >= stepPercent : activeStep === index;\n const complete = activeStep === null ? this.percent() >= stepPercent : index <= activeStep;\n return {\n step,\n index,\n active,\n complete,\n percent: `${stepPercent}%`,\n context: {\n $implicit: step,\n step,\n index,\n active,\n complete,\n percent: stepPercent,\n },\n };\n });\n });\n\n private stepPercent(value: number | undefined, fallback: number): number {\n if (value === undefined || !Number.isFinite(value)) return this.clamp(fallback, 0, 100);\n\n const min = this.normalizedMin();\n const max = this.normalizedMax();\n return this.clamp(((value - min) / (max - min)) * 100, 0, 100);\n }\n\n private clamp(value: number, min: number, max: number): number {\n return Math.min(Math.max(value, min), max);\n }\n}\n\nexport const AerisProgressBarModule = [\n AerisProgressBar,\n AerisProgressBarValueTemplate,\n AerisProgressBarStepTemplate,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAgDa,6BAA6B,CAAA;AAC/B,IAAA,QAAQ,GAAG,MAAM,CAA4C,WAAW,CAAC;uGADvE,6BAA6B,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA;2FAA7B,6BAA6B,EAAA,YAAA,EAAA,I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cAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,KAAA,EAAA,IAAA,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,KAAA,EAAA,gBAAA,EAAA,QAAA,EAAA,KAAA,EAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;AA+GtE,MAAM,sBAAsB,GAAG;IACpC,gBAAgB;IAChB,6BAA6B;IAC7B,4BAA4B;;;ACzP9B;;AAEG;;;;"}
|
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { inject, TemplateRef, Directive, contentChild, input, numberAttribute, booleanAttribute, computed, Component } from '@angular/core';
|
|
4
|
+
|
|
5
|
+
class AerisProgressSpinnerValueTemplate {
|
|
6
|
+
template = inject(TemplateRef);
|
|
7
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressSpinnerValueTemplate, deps: [], target: i0.ɵɵFactoryTarget.Directive });
|
|
8
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "22.0.6", type: AerisProgressSpinnerValueTemplate, isStandalone: true, selector: "ng-template[aerisProgressSpinnerValue]", ngImport: i0 });
|
|
9
|
+
}
|
|
10
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressSpinnerValueTemplate, decorators: [{
|
|
11
|
+
type: Directive,
|
|
12
|
+
args: [{ selector: 'ng-template[aerisProgressSpinnerValue]' }]
|
|
13
|
+
}] });
|
|
14
|
+
function nullableNumberAttribute(value) {
|
|
15
|
+
if (value === null || value === undefined || value === '')
|
|
16
|
+
return null;
|
|
17
|
+
const numeric = Number(value);
|
|
18
|
+
return Number.isFinite(numeric) ? numeric : null;
|
|
19
|
+
}
|
|
20
|
+
class AerisProgressSpinner {
|
|
21
|
+
circumference = 2 * Math.PI * 20;
|
|
22
|
+
valueTemplate = contentChild(AerisProgressSpinnerValueTemplate, /* @ts-ignore */
|
|
23
|
+
...(ngDevMode ? [{ debugName: "valueTemplate" }] : /* istanbul ignore next */ []));
|
|
24
|
+
value = input(null, { ...(ngDevMode ? { debugName: "value" } : /* istanbul ignore next */ {}), transform: nullableNumberAttribute });
|
|
25
|
+
min = input(0, { ...(ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
26
|
+
max = input(100, { ...(ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
27
|
+
size = input('md', /* @ts-ignore */
|
|
28
|
+
...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
|
|
29
|
+
tone = input('primary', /* @ts-ignore */
|
|
30
|
+
...(ngDevMode ? [{ debugName: "tone" }] : /* istanbul ignore next */ []));
|
|
31
|
+
strokeWidth = input(4, { ...(ngDevMode ? { debugName: "strokeWidth" } : /* istanbul ignore next */ {}), transform: numberAttribute });
|
|
32
|
+
showTrack = input(true, { ...(ngDevMode ? { debugName: "showTrack" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
33
|
+
showValue = input(true, { ...(ngDevMode ? { debugName: "showValue" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
34
|
+
rounded = input(true, { ...(ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
35
|
+
ariaLabel = input('Loading', /* @ts-ignore */
|
|
36
|
+
...(ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []));
|
|
37
|
+
ariaLabelledBy = input('', /* @ts-ignore */
|
|
38
|
+
...(ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []));
|
|
39
|
+
ariaValueText = input('', /* @ts-ignore */
|
|
40
|
+
...(ngDevMode ? [{ debugName: "ariaValueText" }] : /* istanbul ignore next */ []));
|
|
41
|
+
valueFormatter = input(null, /* @ts-ignore */
|
|
42
|
+
...(ngDevMode ? [{ debugName: "valueFormatter" }] : /* istanbul ignore next */ []));
|
|
43
|
+
determinate = computed(() => this.value() !== null, /* @ts-ignore */
|
|
44
|
+
...(ngDevMode ? [{ debugName: "determinate" }] : /* istanbul ignore next */ []));
|
|
45
|
+
normalizedMin = computed(() => {
|
|
46
|
+
const min = this.min();
|
|
47
|
+
return Number.isFinite(min) ? min : 0;
|
|
48
|
+
}, /* @ts-ignore */
|
|
49
|
+
...(ngDevMode ? [{ debugName: "normalizedMin" }] : /* istanbul ignore next */ []));
|
|
50
|
+
normalizedMax = computed(() => {
|
|
51
|
+
const min = this.normalizedMin();
|
|
52
|
+
const max = this.max();
|
|
53
|
+
return Number.isFinite(max) && max > min ? max : min + 100;
|
|
54
|
+
}, /* @ts-ignore */
|
|
55
|
+
...(ngDevMode ? [{ debugName: "normalizedMax" }] : /* istanbul ignore next */ []));
|
|
56
|
+
clampedValue = computed(() => {
|
|
57
|
+
const value = this.value();
|
|
58
|
+
const min = this.normalizedMin();
|
|
59
|
+
const max = this.normalizedMax();
|
|
60
|
+
if (value === null || !Number.isFinite(value))
|
|
61
|
+
return min;
|
|
62
|
+
return Math.min(max, Math.max(min, value));
|
|
63
|
+
}, /* @ts-ignore */
|
|
64
|
+
...(ngDevMode ? [{ debugName: "clampedValue" }] : /* istanbul ignore next */ []));
|
|
65
|
+
percent = computed(() => {
|
|
66
|
+
const range = this.normalizedMax() - this.normalizedMin();
|
|
67
|
+
return this.round(((this.clampedValue() - this.normalizedMin()) / range) * 100);
|
|
68
|
+
}, /* @ts-ignore */
|
|
69
|
+
...(ngDevMode ? [{ debugName: "percent" }] : /* istanbul ignore next */ []));
|
|
70
|
+
dashOffset = computed(() => this.circumference - (this.percent() / 100) * this.circumference, /* @ts-ignore */
|
|
71
|
+
...(ngDevMode ? [{ debugName: "dashOffset" }] : /* istanbul ignore next */ []));
|
|
72
|
+
resolvedStrokeWidth = computed(() => {
|
|
73
|
+
const width = this.strokeWidth();
|
|
74
|
+
if (!Number.isFinite(width))
|
|
75
|
+
return 4;
|
|
76
|
+
return Math.min(12, Math.max(1, width));
|
|
77
|
+
}, /* @ts-ignore */
|
|
78
|
+
...(ngDevMode ? [{ debugName: "resolvedStrokeWidth" }] : /* istanbul ignore next */ []));
|
|
79
|
+
valueContext = computed(() => ({
|
|
80
|
+
$implicit: this.clampedValue(),
|
|
81
|
+
value: this.clampedValue(),
|
|
82
|
+
min: this.normalizedMin(),
|
|
83
|
+
max: this.normalizedMax(),
|
|
84
|
+
percent: this.percent(),
|
|
85
|
+
}), /* @ts-ignore */
|
|
86
|
+
...(ngDevMode ? [{ debugName: "valueContext" }] : /* istanbul ignore next */ []));
|
|
87
|
+
valueText = computed(() => {
|
|
88
|
+
const formatter = this.valueFormatter();
|
|
89
|
+
if (formatter)
|
|
90
|
+
return formatter(this.valueContext());
|
|
91
|
+
return `${Math.round(this.percent())}%`;
|
|
92
|
+
}, /* @ts-ignore */
|
|
93
|
+
...(ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []));
|
|
94
|
+
resolvedAriaValueText = computed(() => {
|
|
95
|
+
if (this.ariaValueText())
|
|
96
|
+
return this.ariaValueText();
|
|
97
|
+
return this.determinate() ? this.valueText() : null;
|
|
98
|
+
}, /* @ts-ignore */
|
|
99
|
+
...(ngDevMode ? [{ debugName: "resolvedAriaValueText" }] : /* istanbul ignore next */ []));
|
|
100
|
+
round(value) {
|
|
101
|
+
return Math.round(value * 10) / 10;
|
|
102
|
+
}
|
|
103
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressSpinner, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
104
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.6", type: AerisProgressSpinner, isStandalone: true, selector: "aeris-progress-spinner", inputs: { value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, min: { classPropertyName: "min", publicName: "min", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, tone: { classPropertyName: "tone", publicName: "tone", isSignal: true, isRequired: false, transformFunction: null }, strokeWidth: { classPropertyName: "strokeWidth", publicName: "strokeWidth", isSignal: true, isRequired: false, transformFunction: null }, showTrack: { classPropertyName: "showTrack", publicName: "showTrack", isSignal: true, isRequired: false, transformFunction: null }, showValue: { classPropertyName: "showValue", publicName: "showValue", isSignal: true, isRequired: false, transformFunction: null }, rounded: { classPropertyName: "rounded", publicName: "rounded", 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 }, ariaValueText: { classPropertyName: "ariaValueText", publicName: "ariaValueText", isSignal: true, isRequired: false, transformFunction: null }, valueFormatter: { classPropertyName: "valueFormatter", publicName: "valueFormatter", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "role": "progressbar" }, properties: { "attr.aria-valuemin": "determinate() ? normalizedMin() : null", "attr.aria-valuemax": "determinate() ? normalizedMax() : null", "attr.aria-valuenow": "determinate() ? clampedValue() : null", "attr.aria-valuetext": "resolvedAriaValueText()", "attr.aria-label": "ariaLabel() || null", "attr.aria-labelledby": "ariaLabelledBy() || null", "attr.data-mode": "determinate() ? \"determinate\" : \"indeterminate\"", "attr.data-size": "size()", "attr.data-tone": "tone()", "attr.data-track": "showTrack() || null", "attr.data-rounded": "rounded() || null" }, classAttribute: "aeris-progress-spinner" }, queries: [{ propertyName: "valueTemplate", first: true, predicate: AerisProgressSpinnerValueTemplate, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
105
|
+
<svg
|
|
106
|
+
class="aeris-progress-spinner__graphic"
|
|
107
|
+
viewBox="0 0 48 48"
|
|
108
|
+
aria-hidden="true"
|
|
109
|
+
focusable="false"
|
|
110
|
+
>
|
|
111
|
+
@if (showTrack()) {
|
|
112
|
+
<circle
|
|
113
|
+
class="aeris-progress-spinner__track"
|
|
114
|
+
cx="24"
|
|
115
|
+
cy="24"
|
|
116
|
+
r="20"
|
|
117
|
+
fill="none"
|
|
118
|
+
[attr.stroke-width]="resolvedStrokeWidth()"
|
|
119
|
+
/>
|
|
120
|
+
}
|
|
121
|
+
<circle
|
|
122
|
+
class="aeris-progress-spinner__indicator"
|
|
123
|
+
cx="24"
|
|
124
|
+
cy="24"
|
|
125
|
+
r="20"
|
|
126
|
+
fill="none"
|
|
127
|
+
[attr.stroke-width]="resolvedStrokeWidth()"
|
|
128
|
+
[attr.stroke-linecap]="rounded() ? 'round' : 'butt'"
|
|
129
|
+
[attr.stroke-dasharray]="circumference"
|
|
130
|
+
[attr.stroke-dashoffset]="determinate() ? dashOffset() : null"
|
|
131
|
+
/>
|
|
132
|
+
</svg>
|
|
133
|
+
|
|
134
|
+
@if (determinate() && showValue()) {
|
|
135
|
+
<span class="aeris-progress-spinner__value" aria-hidden="true">
|
|
136
|
+
@if (valueTemplate(); as template) {
|
|
137
|
+
<ng-container
|
|
138
|
+
[ngTemplateOutlet]="template.template"
|
|
139
|
+
[ngTemplateOutletContext]="valueContext()"
|
|
140
|
+
/>
|
|
141
|
+
} @else {
|
|
142
|
+
{{ valueText() }}
|
|
143
|
+
}
|
|
144
|
+
</span>
|
|
145
|
+
}
|
|
146
|
+
`, isInline: true, styles: [":host,.aeris-progress-spinner,.aeris-progress-spinner *{box-sizing:border-box}:host(.aeris-progress-spinner){--_aeris-progress-spinner-size: var(--aeris-progress-spinner-size, 3rem);--_aeris-progress-spinner-color: var(--aeris-primary, #879566);position:relative;inline-size:var(--_aeris-progress-spinner-size);block-size:var(--_aeris-progress-spinner-size);max-inline-size:100%;display:inline-grid;place-items:center;color:var(--aeris-progress-spinner-value-color, var(--aeris-text, #222222));font:inherit;vertical-align:middle}:host([data-size=sm]){--_aeris-progress-spinner-size: var(--aeris-progress-spinner-sm-size, 1.75rem)}:host([data-size=lg]){--_aeris-progress-spinner-size: var(--aeris-progress-spinner-lg-size, 4.5rem)}:host([data-tone=secondary]){--_aeris-progress-spinner-color: var(--aeris-surface-3, var(--aeris-border-strong, #c7c9c0))}:host([data-tone=success]){--_aeris-progress-spinner-color: var(--aeris-success, #6f8a68)}:host([data-tone=info]){--_aeris-progress-spinner-color: var(--aeris-info, #6b8793)}:host([data-tone=warning]){--_aeris-progress-spinner-color: var(--aeris-warning, #c38600)}:host([data-tone=danger]){--_aeris-progress-spinner-color: var(--aeris-danger, #c81e2a)}:host([data-tone=neutral]){--_aeris-progress-spinner-color: var(--aeris-text-3, #6f7667)}:host([data-tone=contrast]){--_aeris-progress-spinner-color: var(--aeris-text, #222222)}.aeris-progress-spinner__graphic{inline-size:100%;block-size:100%;display:block;overflow:visible}.aeris-progress-spinner__track{stroke:var(--aeris-progress-spinner-track, color-mix(in srgb, var(--_aeris-progress-spinner-color) 16%, transparent))}.aeris-progress-spinner__indicator{stroke:var(--aeris-progress-spinner-indicator, var(--_aeris-progress-spinner-color));transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset .18s ease}:host([data-mode=indeterminate]) .aeris-progress-spinner__graphic{animation:aeris-progress-spinner-rotate var(--aeris-progress-spinner-duration, 1.1s) linear infinite}:host([data-mode=indeterminate]) .aeris-progress-spinner__indicator{stroke-dasharray:32 94;animation:aeris-progress-spinner-dash var(--aeris-progress-spinner-duration, 1.1s) ease-in-out infinite}.aeris-progress-spinner__value{position:absolute;inset:0;display:grid;place-items:center;padding:.25rem;overflow:hidden;font-size:var(--aeris-progress-spinner-value-font-size, .6875rem);font-weight:800;line-height:1;text-align:center}:host([data-size=sm]) .aeris-progress-spinner__value{display:none}:host([data-size=lg]) .aeris-progress-spinner__value{font-size:var(--aeris-progress-spinner-lg-value-font-size, .875rem)}@keyframes aeris-progress-spinner-rotate{to{transform:rotate(360deg)}}@keyframes aeris-progress-spinner-dash{0%{stroke-dasharray:12 114;stroke-dashoffset:0}50%{stroke-dasharray:76 50;stroke-dashoffset:-26}to{stroke-dasharray:12 114;stroke-dashoffset:-112}}@media(prefers-reduced-motion:reduce){.aeris-progress-spinner__graphic,.aeris-progress-spinner__indicator{animation:none!important;transition:none}}\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }] });
|
|
147
|
+
}
|
|
148
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisProgressSpinner, decorators: [{
|
|
149
|
+
type: Component,
|
|
150
|
+
args: [{ selector: 'aeris-progress-spinner', imports: [NgTemplateOutlet], template: `
|
|
151
|
+
<svg
|
|
152
|
+
class="aeris-progress-spinner__graphic"
|
|
153
|
+
viewBox="0 0 48 48"
|
|
154
|
+
aria-hidden="true"
|
|
155
|
+
focusable="false"
|
|
156
|
+
>
|
|
157
|
+
@if (showTrack()) {
|
|
158
|
+
<circle
|
|
159
|
+
class="aeris-progress-spinner__track"
|
|
160
|
+
cx="24"
|
|
161
|
+
cy="24"
|
|
162
|
+
r="20"
|
|
163
|
+
fill="none"
|
|
164
|
+
[attr.stroke-width]="resolvedStrokeWidth()"
|
|
165
|
+
/>
|
|
166
|
+
}
|
|
167
|
+
<circle
|
|
168
|
+
class="aeris-progress-spinner__indicator"
|
|
169
|
+
cx="24"
|
|
170
|
+
cy="24"
|
|
171
|
+
r="20"
|
|
172
|
+
fill="none"
|
|
173
|
+
[attr.stroke-width]="resolvedStrokeWidth()"
|
|
174
|
+
[attr.stroke-linecap]="rounded() ? 'round' : 'butt'"
|
|
175
|
+
[attr.stroke-dasharray]="circumference"
|
|
176
|
+
[attr.stroke-dashoffset]="determinate() ? dashOffset() : null"
|
|
177
|
+
/>
|
|
178
|
+
</svg>
|
|
179
|
+
|
|
180
|
+
@if (determinate() && showValue()) {
|
|
181
|
+
<span class="aeris-progress-spinner__value" aria-hidden="true">
|
|
182
|
+
@if (valueTemplate(); as template) {
|
|
183
|
+
<ng-container
|
|
184
|
+
[ngTemplateOutlet]="template.template"
|
|
185
|
+
[ngTemplateOutletContext]="valueContext()"
|
|
186
|
+
/>
|
|
187
|
+
} @else {
|
|
188
|
+
{{ valueText() }}
|
|
189
|
+
}
|
|
190
|
+
</span>
|
|
191
|
+
}
|
|
192
|
+
`, host: {
|
|
193
|
+
class: 'aeris-progress-spinner',
|
|
194
|
+
role: 'progressbar',
|
|
195
|
+
'[attr.aria-valuemin]': 'determinate() ? normalizedMin() : null',
|
|
196
|
+
'[attr.aria-valuemax]': 'determinate() ? normalizedMax() : null',
|
|
197
|
+
'[attr.aria-valuenow]': 'determinate() ? clampedValue() : null',
|
|
198
|
+
'[attr.aria-valuetext]': 'resolvedAriaValueText()',
|
|
199
|
+
'[attr.aria-label]': 'ariaLabel() || null',
|
|
200
|
+
'[attr.aria-labelledby]': 'ariaLabelledBy() || null',
|
|
201
|
+
'[attr.data-mode]': 'determinate() ? "determinate" : "indeterminate"',
|
|
202
|
+
'[attr.data-size]': 'size()',
|
|
203
|
+
'[attr.data-tone]': 'tone()',
|
|
204
|
+
'[attr.data-track]': 'showTrack() || null',
|
|
205
|
+
'[attr.data-rounded]': 'rounded() || null',
|
|
206
|
+
}, styles: [":host,.aeris-progress-spinner,.aeris-progress-spinner *{box-sizing:border-box}:host(.aeris-progress-spinner){--_aeris-progress-spinner-size: var(--aeris-progress-spinner-size, 3rem);--_aeris-progress-spinner-color: var(--aeris-primary, #879566);position:relative;inline-size:var(--_aeris-progress-spinner-size);block-size:var(--_aeris-progress-spinner-size);max-inline-size:100%;display:inline-grid;place-items:center;color:var(--aeris-progress-spinner-value-color, var(--aeris-text, #222222));font:inherit;vertical-align:middle}:host([data-size=sm]){--_aeris-progress-spinner-size: var(--aeris-progress-spinner-sm-size, 1.75rem)}:host([data-size=lg]){--_aeris-progress-spinner-size: var(--aeris-progress-spinner-lg-size, 4.5rem)}:host([data-tone=secondary]){--_aeris-progress-spinner-color: var(--aeris-surface-3, var(--aeris-border-strong, #c7c9c0))}:host([data-tone=success]){--_aeris-progress-spinner-color: var(--aeris-success, #6f8a68)}:host([data-tone=info]){--_aeris-progress-spinner-color: var(--aeris-info, #6b8793)}:host([data-tone=warning]){--_aeris-progress-spinner-color: var(--aeris-warning, #c38600)}:host([data-tone=danger]){--_aeris-progress-spinner-color: var(--aeris-danger, #c81e2a)}:host([data-tone=neutral]){--_aeris-progress-spinner-color: var(--aeris-text-3, #6f7667)}:host([data-tone=contrast]){--_aeris-progress-spinner-color: var(--aeris-text, #222222)}.aeris-progress-spinner__graphic{inline-size:100%;block-size:100%;display:block;overflow:visible}.aeris-progress-spinner__track{stroke:var(--aeris-progress-spinner-track, color-mix(in srgb, var(--_aeris-progress-spinner-color) 16%, transparent))}.aeris-progress-spinner__indicator{stroke:var(--aeris-progress-spinner-indicator, var(--_aeris-progress-spinner-color));transform:rotate(-90deg);transform-origin:center;transition:stroke-dashoffset .18s ease}:host([data-mode=indeterminate]) .aeris-progress-spinner__graphic{animation:aeris-progress-spinner-rotate var(--aeris-progress-spinner-duration, 1.1s) linear infinite}:host([data-mode=indeterminate]) .aeris-progress-spinner__indicator{stroke-dasharray:32 94;animation:aeris-progress-spinner-dash var(--aeris-progress-spinner-duration, 1.1s) ease-in-out infinite}.aeris-progress-spinner__value{position:absolute;inset:0;display:grid;place-items:center;padding:.25rem;overflow:hidden;font-size:var(--aeris-progress-spinner-value-font-size, .6875rem);font-weight:800;line-height:1;text-align:center}:host([data-size=sm]) .aeris-progress-spinner__value{display:none}:host([data-size=lg]) .aeris-progress-spinner__value{font-size:var(--aeris-progress-spinner-lg-value-font-size, .875rem)}@keyframes aeris-progress-spinner-rotate{to{transform:rotate(360deg)}}@keyframes aeris-progress-spinner-dash{0%{stroke-dasharray:12 114;stroke-dashoffset:0}50%{stroke-dasharray:76 50;stroke-dashoffset:-26}to{stroke-dasharray:12 114;stroke-dashoffset:-112}}@media(prefers-reduced-motion:reduce){.aeris-progress-spinner__graphic,.aeris-progress-spinner__indicator{animation:none!important;transition:none}}\n"] }]
|
|
207
|
+
}], propDecorators: { valueTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisProgressSpinnerValueTemplate), { isSignal: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }], min: [{ type: i0.Input, args: [{ isSignal: true, alias: "min", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], strokeWidth: [{ type: i0.Input, args: [{ isSignal: true, alias: "strokeWidth", required: false }] }], showTrack: [{ type: i0.Input, args: [{ isSignal: true, alias: "showTrack", required: false }] }], showValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "showValue", required: false }] }], rounded: [{ type: i0.Input, args: [{ isSignal: true, alias: "rounded", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledBy: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledBy", required: false }] }], ariaValueText: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaValueText", required: false }] }], valueFormatter: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueFormatter", required: false }] }] } });
|
|
208
|
+
const AerisProgressSpinnerModule = [
|
|
209
|
+
AerisProgressSpinner,
|
|
210
|
+
AerisProgressSpinnerValueTemplate,
|
|
211
|
+
];
|
|
212
|
+
|
|
213
|
+
/**
|
|
214
|
+
* Generated bundle index. Do not edit.
|
|
215
|
+
*/
|
|
216
|
+
|
|
217
|
+
export { AerisProgressSpinner, AerisProgressSpinnerModule, AerisProgressSpinnerValueTemplate };
|
|
218
|
+
//# sourceMappingURL=aeris-ui-core-progress-spinner.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"aeris-ui-core-progress-spinner.mjs","sources":["../../../projects/aeris-ui/progress-spinner/aeris-progress-spinner.ts","../../../projects/aeris-ui/progress-spinner/aeris-ui-core-progress-spinner.ts"],"sourcesContent":["import { NgTemplateOutlet } from '@angular/common';\nimport {\n Component,\n Directive,\n TemplateRef,\n booleanAttribute,\n computed,\n contentChild,\n inject,\n input,\n numberAttribute,\n} from '@angular/core';\n\nexport type AerisProgressSpinnerSize = 'sm' | 'md' | 'lg';\nexport type AerisProgressSpinnerTone =\n | 'primary'\n | 'secondary'\n | 'success'\n | 'info'\n | 'warning'\n | 'danger'\n | 'neutral'\n | 'contrast';\n\nexport interface AerisProgressSpinnerValueContext {\n readonly $implicit: number;\n readonly value: number;\n readonly min: number;\n readonly max: number;\n readonly percent: number;\n}\n\n@Directive({ selector: 'ng-template[aerisProgressSpinnerValue]' })\nexport class AerisProgressSpinnerValueTemplate {\n readonly template = inject<TemplateRef<AerisProgressSpinnerValueContext>>(TemplateRef);\n}\n\nfunction nullableNumberAttribute(value: unknown): number | null {\n if (value === null || value === undefined || value === '') return null;\n const numeric = Number(value);\n return Number.isFinite(numeric) ? numeric : null;\n}\n\n@Component({\n selector: 'aeris-progress-spinner',\n imports: [NgTemplateOutlet],\n template: `\n <svg\n class=\"aeris-progress-spinner__graphic\"\n viewBox=\"0 0 48 48\"\n aria-hidden=\"true\"\n focusable=\"false\"\n >\n @if (showTrack()) {\n <circle\n class=\"aeris-progress-spinner__track\"\n cx=\"24\"\n cy=\"24\"\n r=\"20\"\n fill=\"none\"\n [attr.stroke-width]=\"resolvedStrokeWidth()\"\n />\n }\n <circle\n class=\"aeris-progress-spinner__indicator\"\n cx=\"24\"\n cy=\"24\"\n r=\"20\"\n fill=\"none\"\n [attr.stroke-width]=\"resolvedStrokeWidth()\"\n [attr.stroke-linecap]=\"rounded() ? 'round' : 'butt'\"\n [attr.stroke-dasharray]=\"circumference\"\n [attr.stroke-dashoffset]=\"determinate() ? dashOffset() : null\"\n />\n </svg>\n\n @if (determinate() && showValue()) {\n <span class=\"aeris-progress-spinner__value\" aria-hidden=\"true\">\n @if (valueTemplate(); as template) {\n <ng-container\n [ngTemplateOutlet]=\"template.template\"\n [ngTemplateOutletContext]=\"valueContext()\"\n />\n } @else {\n {{ valueText() }}\n }\n </span>\n }\n `,\n styleUrl: './aeris-progress-spinner.scss',\n host: {\n class: 'aeris-progress-spinner',\n role: 'progressbar',\n '[attr.aria-valuemin]': 'determinate() ? normalizedMin() : null',\n '[attr.aria-valuemax]': 'determinate() ? normalizedMax() : null',\n '[attr.aria-valuenow]': 'determinate() ? clampedValue() : null',\n '[attr.aria-valuetext]': 'resolvedAriaValueText()',\n '[attr.aria-label]': 'ariaLabel() || null',\n '[attr.aria-labelledby]': 'ariaLabelledBy() || null',\n '[attr.data-mode]': 'determinate() ? \"determinate\" : \"indeterminate\"',\n '[attr.data-size]': 'size()',\n '[attr.data-tone]': 'tone()',\n '[attr.data-track]': 'showTrack() || null',\n '[attr.data-rounded]': 'rounded() || null',\n },\n})\nexport class AerisProgressSpinner {\n protected readonly circumference = 2 * Math.PI * 20;\n protected readonly valueTemplate = contentChild(AerisProgressSpinnerValueTemplate);\n\n readonly value = input<number | null>(null, { transform: nullableNumberAttribute });\n readonly min = input(0, { transform: numberAttribute });\n readonly max = input(100, { transform: numberAttribute });\n readonly size = input<AerisProgressSpinnerSize>('md');\n readonly tone = input<AerisProgressSpinnerTone>('primary');\n readonly strokeWidth = input(4, { transform: numberAttribute });\n readonly showTrack = input(true, { transform: booleanAttribute });\n readonly showValue = input(true, { transform: booleanAttribute });\n readonly rounded = input(true, { transform: booleanAttribute });\n readonly ariaLabel = input('Loading');\n readonly ariaLabelledBy = input('');\n readonly ariaValueText = input('');\n readonly valueFormatter = input<((context: AerisProgressSpinnerValueContext) => string) | null>(\n null,\n );\n\n protected readonly determinate = computed(() => this.value() !== null);\n\n protected readonly normalizedMin = computed(() => {\n const min = this.min();\n return Number.isFinite(min) ? min : 0;\n });\n\n protected readonly normalizedMax = computed(() => {\n const min = this.normalizedMin();\n const max = this.max();\n return Number.isFinite(max) && max > min ? max : min + 100;\n });\n\n protected readonly clampedValue = computed(() => {\n const value = this.value();\n const min = this.normalizedMin();\n const max = this.normalizedMax();\n if (value === null || !Number.isFinite(value)) return min;\n return Math.min(max, Math.max(min, value));\n });\n\n protected readonly percent = computed(() => {\n const range = this.normalizedMax() - this.normalizedMin();\n return this.round(((this.clampedValue() - this.normalizedMin()) / range) * 100);\n });\n\n protected readonly dashOffset = computed(\n () => this.circumference - (this.percent() / 100) * this.circumference,\n );\n\n protected readonly resolvedStrokeWidth = computed(() => {\n const width = this.strokeWidth();\n if (!Number.isFinite(width)) return 4;\n return Math.min(12, Math.max(1, width));\n });\n\n protected readonly valueContext = computed<AerisProgressSpinnerValueContext>(() => ({\n $implicit: this.clampedValue(),\n value: this.clampedValue(),\n min: this.normalizedMin(),\n max: this.normalizedMax(),\n percent: this.percent(),\n }));\n\n protected readonly valueText = computed(() => {\n const formatter = this.valueFormatter();\n if (formatter) return formatter(this.valueContext());\n return `${Math.round(this.percent())}%`;\n });\n\n protected readonly resolvedAriaValueText = computed(() => {\n if (this.ariaValueText()) return this.ariaValueText();\n return this.determinate() ? this.valueText() : null;\n });\n\n private round(value: number): number {\n return Math.round(value * 10) / 10;\n }\n}\n\nexport const AerisProgressSpinnerModule = [\n AerisProgressSpinner,\n AerisProgressSpinnerValueTemplate,\n] as const;\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;MAiCa,iCAAiC,CAAA;AACnC,IAAA,QAAQ,GAAG,MAAM,CAAgD,WAAW,CAAC;uGAD3E,iCAAiC,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,C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