@aeris-ui/core 22.0.0-alpha.8 → 22.0.0-alpha.9
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/README.md +2 -2
- package/fesm2022/aeris-ui-core-accordion.mjs +646 -255
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-complete.mjs +1171 -428
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
- package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-badge.mjs +562 -115
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-block-ui.mjs +205 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +547 -177
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button-group.mjs +153 -38
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +730 -110
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-card.mjs +371 -101
- package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-carousel.mjs +690 -353
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +915 -423
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +455 -258
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +432 -135
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +430 -117
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
- package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-color-picker.mjs +1313 -683
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-compare.mjs +819 -310
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1392 -551
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1447 -744
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +900 -450
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker.mjs +1656 -863
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1066 -355
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +204 -43
- package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-drawer.mjs +1002 -326
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +402 -249
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +934 -572
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1313 -511
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
- package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-form-field.mjs +672 -170
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-galleria.mjs +1987 -797
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +110 -33
- package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-icon-field.mjs +426 -106
- package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-inplace.mjs +452 -130
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-group.mjs +413 -114
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +650 -248
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +902 -334
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +667 -253
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +618 -152
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
- package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-mega-menu.mjs +601 -388
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1032 -495
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +960 -491
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +477 -145
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +587 -196
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1550 -552
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-order-list.mjs +518 -202
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +455 -177
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +329 -127
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +596 -196
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +894 -247
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +1280 -659
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +892 -386
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +545 -177
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +410 -133
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +386 -119
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +502 -225
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
- package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-top.mjs +204 -63
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select.mjs +1794 -643
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
- package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-slider.mjs +868 -404
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +800 -329
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +880 -270
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +812 -352
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +697 -254
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
- package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-table.mjs +1984 -865
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +686 -324
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +846 -212
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1256 -1423
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +132 -147
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +885 -465
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toast.mjs +855 -615
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +390 -127
- package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toolbar.mjs +458 -121
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tooltip.mjs +623 -345
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +1356 -601
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2001 -942
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1103 -658
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +861 -842
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +1 -1
- package/types/aeris-ui-core-accordion.d.ts +166 -93
- package/types/aeris-ui-core-animate-on-scroll.d.ts +71 -31
- package/types/aeris-ui-core-auto-complete.d.ts +326 -149
- package/types/aeris-ui-core-auto-focus.d.ts +24 -16
- package/types/aeris-ui-core-avatar.d.ts +112 -42
- package/types/aeris-ui-core-badge.d.ts +160 -47
- package/types/aeris-ui-core-block-ui.d.ts +47 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +162 -92
- package/types/aeris-ui-core-button-group.d.ts +37 -16
- package/types/aeris-ui-core-button.d.ts +226 -64
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +197 -117
- package/types/aeris-ui-core-cascade-select.d.ts +252 -131
- package/types/aeris-ui-core-chart.d.ts +134 -84
- package/types/aeris-ui-core-checkbox.d.ts +139 -55
- package/types/aeris-ui-core-chip.d.ts +116 -51
- package/types/aeris-ui-core-class-names.d.ts +22 -20
- package/types/aeris-ui-core-color-picker.d.ts +347 -150
- package/types/aeris-ui-core-compare.d.ts +224 -101
- package/types/aeris-ui-core-confirm-dialog.d.ts +441 -249
- package/types/aeris-ui-core-confirm-popup.d.ts +440 -268
- package/types/aeris-ui-core-context-menu.d.ts +262 -150
- package/types/aeris-ui-core-date-picker.d.ts +488 -226
- package/types/aeris-ui-core-dialog.d.ts +288 -121
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +273 -116
- package/types/aeris-ui-core-dynamic-dialog.d.ts +157 -140
- package/types/aeris-ui-core-editor.d.ts +243 -124
- package/types/aeris-ui-core-file-upload.d.ts +366 -197
- package/types/aeris-ui-core-filter-service.d.ts +48 -52
- package/types/aeris-ui-core-fluid.d.ts +12 -9
- package/types/aeris-ui-core-focus-trap.d.ts +39 -31
- package/types/aeris-ui-core-form-field.d.ts +158 -62
- package/types/aeris-ui-core-galleria.d.ts +589 -256
- package/types/aeris-ui-core-glass.d.ts +24 -11
- package/types/aeris-ui-core-icon-field.d.ts +94 -34
- package/types/aeris-ui-core-inplace.d.ts +123 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -35
- package/types/aeris-ui-core-input-mask.d.ts +194 -71
- package/types/aeris-ui-core-input-number.d.ts +272 -90
- package/types/aeris-ui-core-input-otp.d.ts +190 -82
- package/types/aeris-ui-core-input-text.d.ts +185 -62
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-mega-menu.d.ts +174 -123
- package/types/aeris-ui-core-menu.d.ts +275 -172
- package/types/aeris-ui-core-menubar.d.ts +272 -160
- package/types/aeris-ui-core-message.d.ts +132 -61
- package/types/aeris-ui-core-meter-group.d.ts +162 -90
- package/types/aeris-ui-core-multi-select.d.ts +435 -187
- package/types/aeris-ui-core-order-list.d.ts +143 -66
- package/types/aeris-ui-core-organization-chart.d.ts +132 -77
- package/types/aeris-ui-core-paginator.d.ts +92 -46
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +257 -108
- package/types/aeris-ui-core-pick-list.d.ts +373 -179
- package/types/aeris-ui-core-popover.d.ts +218 -107
- package/types/aeris-ui-core-progress-bar.d.ts +156 -74
- package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
- package/types/aeris-ui-core-radio-button.d.ts +124 -51
- package/types/aeris-ui-core-rating.d.ts +149 -76
- package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
- package/types/aeris-ui-core-scroll-top.d.ts +64 -29
- package/types/aeris-ui-core-select.d.ts +474 -226
- package/types/aeris-ui-core-skeleton.d.ts +39 -17
- package/types/aeris-ui-core-slider.d.ts +270 -116
- package/types/aeris-ui-core-speed-dial.d.ts +240 -112
- package/types/aeris-ui-core-split-button.d.ts +264 -121
- package/types/aeris-ui-core-splitter.d.ts +224 -106
- package/types/aeris-ui-core-stepper.d.ts +183 -91
- package/types/aeris-ui-core-style-class.d.ts +141 -71
- package/types/aeris-ui-core-table.d.ts +595 -308
- package/types/aeris-ui-core-tabs.d.ts +163 -90
- package/types/aeris-ui-core-textarea.d.ts +261 -81
- package/types/aeris-ui-core-theme-builder.d.ts +463 -475
- package/types/aeris-ui-core-theming.d.ts +42 -49
- package/types/aeris-ui-core-tiered-menu.d.ts +249 -147
- package/types/aeris-ui-core-timeline.d.ts +108 -71
- package/types/aeris-ui-core-toast.d.ts +219 -155
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -52
- package/types/aeris-ui-core-toolbar.d.ts +98 -41
- package/types/aeris-ui-core-tooltip.d.ts +157 -92
- package/types/aeris-ui-core-tree-select.d.ts +359 -179
- package/types/aeris-ui-core-tree-table.d.ts +565 -290
- package/types/aeris-ui-core-tree.d.ts +269 -165
- package/types/aeris-ui-core.d.ts +161 -125
|
@@ -1,148 +1,349 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, Directive, TemplateRef, booleanAttribute, computed, contentChild, inject, input, numberAttribute } from "@angular/core";
|
|
4
|
+
var AerisProgressBarValueTemplate = class AerisProgressBarValueTemplate {
|
|
5
|
+
template = inject(TemplateRef);
|
|
6
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
7
|
+
minVersion: "12.0.0",
|
|
8
|
+
version: "22.2.1",
|
|
9
|
+
ngImport: i0,
|
|
10
|
+
type: AerisProgressBarValueTemplate,
|
|
11
|
+
deps: [],
|
|
12
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
13
|
+
});
|
|
14
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
15
|
+
minVersion: "14.0.0",
|
|
16
|
+
version: "22.2.1",
|
|
17
|
+
type: AerisProgressBarValueTemplate,
|
|
18
|
+
isStandalone: true,
|
|
19
|
+
selector: "ng-template[aerisProgressBarValue]",
|
|
20
|
+
ngImport: i0
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
24
|
+
minVersion: "12.0.0",
|
|
25
|
+
version: "22.2.1",
|
|
26
|
+
ngImport: i0,
|
|
27
|
+
type: AerisProgressBarValueTemplate,
|
|
28
|
+
decorators: [{
|
|
29
|
+
type: Directive,
|
|
30
|
+
args: [{ selector: "ng-template[aerisProgressBarValue]" }]
|
|
31
|
+
}]
|
|
32
|
+
});
|
|
33
|
+
var AerisProgressBarStepTemplate = class AerisProgressBarStepTemplate {
|
|
34
|
+
template = inject(TemplateRef);
|
|
35
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
36
|
+
minVersion: "12.0.0",
|
|
37
|
+
version: "22.2.1",
|
|
38
|
+
ngImport: i0,
|
|
39
|
+
type: AerisProgressBarStepTemplate,
|
|
40
|
+
deps: [],
|
|
41
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
42
|
+
});
|
|
43
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
44
|
+
minVersion: "14.0.0",
|
|
45
|
+
version: "22.2.1",
|
|
46
|
+
type: AerisProgressBarStepTemplate,
|
|
47
|
+
isStandalone: true,
|
|
48
|
+
selector: "ng-template[aerisProgressBarStep]",
|
|
49
|
+
ngImport: i0
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
53
|
+
minVersion: "12.0.0",
|
|
54
|
+
version: "22.2.1",
|
|
55
|
+
ngImport: i0,
|
|
56
|
+
type: AerisProgressBarStepTemplate,
|
|
57
|
+
decorators: [{
|
|
58
|
+
type: Directive,
|
|
59
|
+
args: [{ selector: "ng-template[aerisProgressBarStep]" }]
|
|
60
|
+
}]
|
|
61
|
+
});
|
|
23
62
|
let nextProgressBarId = 0;
|
|
24
|
-
class AerisProgressBar {
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
63
|
+
var AerisProgressBar = class AerisProgressBar {
|
|
64
|
+
valueTemplate = contentChild(AerisProgressBarValueTemplate, ...ngDevMode ? [{ debugName: "valueTemplate" }] : /* istanbul ignore next */ []);
|
|
65
|
+
stepTemplate = contentChild(AerisProgressBarStepTemplate, ...ngDevMode ? [{ debugName: "stepTemplate" }] : /* istanbul ignore next */ []);
|
|
66
|
+
id = input(`aeris-progress-bar-${++nextProgressBarId}`, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
|
|
67
|
+
value = input(0, {
|
|
68
|
+
...ngDevMode ? { debugName: "value" } : /* istanbul ignore next */ {},
|
|
69
|
+
transform: numberAttribute
|
|
70
|
+
});
|
|
71
|
+
min = input(0, {
|
|
72
|
+
...ngDevMode ? { debugName: "min" } : /* istanbul ignore next */ {},
|
|
73
|
+
transform: numberAttribute
|
|
74
|
+
});
|
|
75
|
+
max = input(100, {
|
|
76
|
+
...ngDevMode ? { debugName: "max" } : /* istanbul ignore next */ {},
|
|
77
|
+
transform: numberAttribute
|
|
78
|
+
});
|
|
79
|
+
mode = input("determinate", ...ngDevMode ? [{ debugName: "mode" }] : /* istanbul ignore next */ []);
|
|
80
|
+
severity = input("primary", ...ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []);
|
|
81
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
82
|
+
showValue = input(true, {
|
|
83
|
+
...ngDevMode ? { debugName: "showValue" } : /* istanbul ignore next */ {},
|
|
84
|
+
transform: booleanAttribute
|
|
85
|
+
});
|
|
86
|
+
striped = input(false, {
|
|
87
|
+
...ngDevMode ? { debugName: "striped" } : /* istanbul ignore next */ {},
|
|
88
|
+
transform: booleanAttribute
|
|
89
|
+
});
|
|
90
|
+
animated = input(false, {
|
|
91
|
+
...ngDevMode ? { debugName: "animated" } : /* istanbul ignore next */ {},
|
|
92
|
+
transform: booleanAttribute
|
|
93
|
+
});
|
|
94
|
+
rounded = input(true, {
|
|
95
|
+
...ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {},
|
|
96
|
+
transform: booleanAttribute
|
|
97
|
+
});
|
|
98
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
99
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
100
|
+
ariaValueText = input("", ...ngDevMode ? [{ debugName: "ariaValueText" }] : /* istanbul ignore next */ []);
|
|
101
|
+
steps = input([], ...ngDevMode ? [{ debugName: "steps" }] : /* istanbul ignore next */ []);
|
|
102
|
+
activeStep = input(null, ...ngDevMode ? [{ debugName: "activeStep" }] : /* istanbul ignore next */ []);
|
|
103
|
+
valueFormatter = input(null, ...ngDevMode ? [{ debugName: "valueFormatter" }] : /* istanbul ignore next */ []);
|
|
104
|
+
normalizedMin = computed(() => {
|
|
105
|
+
const min = this.min();
|
|
106
|
+
return Number.isFinite(min) ? min : 0;
|
|
107
|
+
}, ...ngDevMode ? [{ debugName: "normalizedMin" }] : /* istanbul ignore next */ []);
|
|
108
|
+
normalizedMax = computed(() => {
|
|
109
|
+
const min = this.normalizedMin();
|
|
110
|
+
const max = this.max();
|
|
111
|
+
return Number.isFinite(max) && max > min ? max : min + 100;
|
|
112
|
+
}, ...ngDevMode ? [{ debugName: "normalizedMax" }] : /* istanbul ignore next */ []);
|
|
113
|
+
clampedValue = computed(() => {
|
|
114
|
+
const value = this.value();
|
|
115
|
+
return this.clamp(Number.isFinite(value) ? value : this.normalizedMin(), this.normalizedMin(), this.normalizedMax());
|
|
116
|
+
}, ...ngDevMode ? [{ debugName: "clampedValue" }] : /* istanbul ignore next */ []);
|
|
117
|
+
percent = computed(() => {
|
|
118
|
+
const min = this.normalizedMin();
|
|
119
|
+
const range = this.normalizedMax() - min;
|
|
120
|
+
if (range <= 0) return 0;
|
|
121
|
+
return Math.round((this.clampedValue() - min) / range * 1e3) / 10;
|
|
122
|
+
}, ...ngDevMode ? [{ debugName: "percent" }] : /* istanbul ignore next */ []);
|
|
123
|
+
percentStyle = computed(() => `${this.percent()}%`, ...ngDevMode ? [{ debugName: "percentStyle" }] : /* istanbul ignore next */ []);
|
|
124
|
+
valueContext = computed(() => ({
|
|
125
|
+
$implicit: this.clampedValue(),
|
|
126
|
+
value: this.clampedValue(),
|
|
127
|
+
min: this.normalizedMin(),
|
|
128
|
+
max: this.normalizedMax(),
|
|
129
|
+
percent: this.percent()
|
|
130
|
+
}), ...ngDevMode ? [{ debugName: "valueContext" }] : /* istanbul ignore next */ []);
|
|
131
|
+
valueText = computed(() => {
|
|
132
|
+
const formatter = this.valueFormatter();
|
|
133
|
+
if (formatter) return formatter(this.valueContext());
|
|
134
|
+
return `${Math.round(this.percent())}%`;
|
|
135
|
+
}, ...ngDevMode ? [{ debugName: "valueText" }] : /* istanbul ignore next */ []);
|
|
136
|
+
resolvedAriaValueText = computed(() => {
|
|
137
|
+
if (this.mode() !== "determinate") return this.ariaValueText() || null;
|
|
138
|
+
return this.ariaValueText() || this.valueText();
|
|
139
|
+
}, ...ngDevMode ? [{ debugName: "resolvedAriaValueText" }] : /* istanbul ignore next */ []);
|
|
140
|
+
stepViews = computed(() => {
|
|
141
|
+
const steps = this.steps();
|
|
142
|
+
if (steps.length === 0) return [];
|
|
143
|
+
const activeStep = this.activeStep();
|
|
144
|
+
const denominator = Math.max(1, steps.length - 1);
|
|
145
|
+
return steps.map((step, index) => {
|
|
146
|
+
const fallbackPercent = steps.length === 1 ? 100 : index / denominator * 100;
|
|
147
|
+
const stepPercent = this.stepPercent(step.value, fallbackPercent);
|
|
148
|
+
const active = activeStep === null ? this.percent() >= stepPercent : activeStep === index;
|
|
149
|
+
const complete = activeStep === null ? this.percent() >= stepPercent : index <= activeStep;
|
|
150
|
+
return {
|
|
151
|
+
step,
|
|
152
|
+
index,
|
|
153
|
+
active,
|
|
154
|
+
complete,
|
|
155
|
+
percentValue: stepPercent,
|
|
156
|
+
percent: `${stepPercent}%`,
|
|
157
|
+
context: {
|
|
158
|
+
$implicit: step,
|
|
159
|
+
step,
|
|
160
|
+
index,
|
|
161
|
+
active,
|
|
162
|
+
complete,
|
|
163
|
+
percent: stepPercent
|
|
164
|
+
}
|
|
165
|
+
};
|
|
166
|
+
});
|
|
167
|
+
}, ...ngDevMode ? [{ debugName: "stepViews" }] : /* istanbul ignore next */ []);
|
|
168
|
+
stepPercent(value, fallback) {
|
|
169
|
+
if (value === void 0 || !Number.isFinite(value)) return this.clamp(fallback, 0, 100);
|
|
170
|
+
const min = this.normalizedMin();
|
|
171
|
+
const max = this.normalizedMax();
|
|
172
|
+
return this.clamp((value - min) / (max - min) * 100, 0, 100);
|
|
173
|
+
}
|
|
174
|
+
clamp(value, min, max) {
|
|
175
|
+
return Math.min(Math.max(value, min), max);
|
|
176
|
+
}
|
|
177
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
178
|
+
minVersion: "12.0.0",
|
|
179
|
+
version: "22.2.1",
|
|
180
|
+
ngImport: i0,
|
|
181
|
+
type: AerisProgressBar,
|
|
182
|
+
deps: [],
|
|
183
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
184
|
+
});
|
|
185
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
186
|
+
minVersion: "17.0.0",
|
|
187
|
+
version: "22.2.1",
|
|
188
|
+
type: AerisProgressBar,
|
|
189
|
+
isStandalone: true,
|
|
190
|
+
selector: "aeris-progress-bar",
|
|
191
|
+
inputs: {
|
|
192
|
+
id: {
|
|
193
|
+
classPropertyName: "id",
|
|
194
|
+
publicName: "id",
|
|
195
|
+
isSignal: true,
|
|
196
|
+
isRequired: false,
|
|
197
|
+
transformFunction: null
|
|
198
|
+
},
|
|
199
|
+
value: {
|
|
200
|
+
classPropertyName: "value",
|
|
201
|
+
publicName: "value",
|
|
202
|
+
isSignal: true,
|
|
203
|
+
isRequired: false,
|
|
204
|
+
transformFunction: null
|
|
205
|
+
},
|
|
206
|
+
min: {
|
|
207
|
+
classPropertyName: "min",
|
|
208
|
+
publicName: "min",
|
|
209
|
+
isSignal: true,
|
|
210
|
+
isRequired: false,
|
|
211
|
+
transformFunction: null
|
|
212
|
+
},
|
|
213
|
+
max: {
|
|
214
|
+
classPropertyName: "max",
|
|
215
|
+
publicName: "max",
|
|
216
|
+
isSignal: true,
|
|
217
|
+
isRequired: false,
|
|
218
|
+
transformFunction: null
|
|
219
|
+
},
|
|
220
|
+
mode: {
|
|
221
|
+
classPropertyName: "mode",
|
|
222
|
+
publicName: "mode",
|
|
223
|
+
isSignal: true,
|
|
224
|
+
isRequired: false,
|
|
225
|
+
transformFunction: null
|
|
226
|
+
},
|
|
227
|
+
severity: {
|
|
228
|
+
classPropertyName: "severity",
|
|
229
|
+
publicName: "severity",
|
|
230
|
+
isSignal: true,
|
|
231
|
+
isRequired: false,
|
|
232
|
+
transformFunction: null
|
|
233
|
+
},
|
|
234
|
+
size: {
|
|
235
|
+
classPropertyName: "size",
|
|
236
|
+
publicName: "size",
|
|
237
|
+
isSignal: true,
|
|
238
|
+
isRequired: false,
|
|
239
|
+
transformFunction: null
|
|
240
|
+
},
|
|
241
|
+
showValue: {
|
|
242
|
+
classPropertyName: "showValue",
|
|
243
|
+
publicName: "showValue",
|
|
244
|
+
isSignal: true,
|
|
245
|
+
isRequired: false,
|
|
246
|
+
transformFunction: null
|
|
247
|
+
},
|
|
248
|
+
striped: {
|
|
249
|
+
classPropertyName: "striped",
|
|
250
|
+
publicName: "striped",
|
|
251
|
+
isSignal: true,
|
|
252
|
+
isRequired: false,
|
|
253
|
+
transformFunction: null
|
|
254
|
+
},
|
|
255
|
+
animated: {
|
|
256
|
+
classPropertyName: "animated",
|
|
257
|
+
publicName: "animated",
|
|
258
|
+
isSignal: true,
|
|
259
|
+
isRequired: false,
|
|
260
|
+
transformFunction: null
|
|
261
|
+
},
|
|
262
|
+
rounded: {
|
|
263
|
+
classPropertyName: "rounded",
|
|
264
|
+
publicName: "rounded",
|
|
265
|
+
isSignal: true,
|
|
266
|
+
isRequired: false,
|
|
267
|
+
transformFunction: null
|
|
268
|
+
},
|
|
269
|
+
ariaLabel: {
|
|
270
|
+
classPropertyName: "ariaLabel",
|
|
271
|
+
publicName: "ariaLabel",
|
|
272
|
+
isSignal: true,
|
|
273
|
+
isRequired: false,
|
|
274
|
+
transformFunction: null
|
|
275
|
+
},
|
|
276
|
+
ariaLabelledBy: {
|
|
277
|
+
classPropertyName: "ariaLabelledBy",
|
|
278
|
+
publicName: "ariaLabelledBy",
|
|
279
|
+
isSignal: true,
|
|
280
|
+
isRequired: false,
|
|
281
|
+
transformFunction: null
|
|
282
|
+
},
|
|
283
|
+
ariaValueText: {
|
|
284
|
+
classPropertyName: "ariaValueText",
|
|
285
|
+
publicName: "ariaValueText",
|
|
286
|
+
isSignal: true,
|
|
287
|
+
isRequired: false,
|
|
288
|
+
transformFunction: null
|
|
289
|
+
},
|
|
290
|
+
steps: {
|
|
291
|
+
classPropertyName: "steps",
|
|
292
|
+
publicName: "steps",
|
|
293
|
+
isSignal: true,
|
|
294
|
+
isRequired: false,
|
|
295
|
+
transformFunction: null
|
|
296
|
+
},
|
|
297
|
+
activeStep: {
|
|
298
|
+
classPropertyName: "activeStep",
|
|
299
|
+
publicName: "activeStep",
|
|
300
|
+
isSignal: true,
|
|
301
|
+
isRequired: false,
|
|
302
|
+
transformFunction: null
|
|
303
|
+
},
|
|
304
|
+
valueFormatter: {
|
|
305
|
+
classPropertyName: "valueFormatter",
|
|
306
|
+
publicName: "valueFormatter",
|
|
307
|
+
isSignal: true,
|
|
308
|
+
isRequired: false,
|
|
309
|
+
transformFunction: null
|
|
310
|
+
}
|
|
311
|
+
},
|
|
312
|
+
host: {
|
|
313
|
+
attributes: { "role": "progressbar" },
|
|
314
|
+
properties: {
|
|
315
|
+
"attr.id": "id()",
|
|
316
|
+
"attr.aria-valuemin": "mode() === \"determinate\" ? min() : null",
|
|
317
|
+
"attr.aria-valuemax": "mode() === \"determinate\" ? max() : null",
|
|
318
|
+
"attr.aria-valuenow": "mode() === \"determinate\" ? clampedValue() : null",
|
|
319
|
+
"attr.aria-valuetext": "resolvedAriaValueText()",
|
|
320
|
+
"attr.aria-label": "ariaLabel() || null",
|
|
321
|
+
"attr.aria-labelledby": "ariaLabelledBy() || null",
|
|
322
|
+
"attr.data-mode": "mode()",
|
|
323
|
+
"attr.data-severity": "severity()",
|
|
324
|
+
"attr.data-size": "size()",
|
|
325
|
+
"attr.data-striped": "striped() || null",
|
|
326
|
+
"attr.data-animated": "animated() || null",
|
|
327
|
+
"attr.data-rounded": "rounded() || null",
|
|
328
|
+
"style.--aeris-progress-bar-value": "percentStyle()"
|
|
329
|
+
},
|
|
330
|
+
classAttribute: "aeris-progress-bar"
|
|
331
|
+
},
|
|
332
|
+
queries: [{
|
|
333
|
+
propertyName: "valueTemplate",
|
|
334
|
+
first: true,
|
|
335
|
+
predicate: AerisProgressBarValueTemplate,
|
|
336
|
+
descendants: true,
|
|
337
|
+
isSignal: true
|
|
338
|
+
}, {
|
|
339
|
+
propertyName: "stepTemplate",
|
|
340
|
+
first: true,
|
|
341
|
+
predicate: AerisProgressBarStepTemplate,
|
|
342
|
+
descendants: true,
|
|
343
|
+
isSignal: true
|
|
344
|
+
}],
|
|
345
|
+
ngImport: i0,
|
|
346
|
+
template: `
|
|
146
347
|
<div class="aeris-progress-bar__track">
|
|
147
348
|
<span class="aeris-progress-bar__fill" [style.inline-size.%]="mode() === 'determinate' ? percent() : null"></span>
|
|
148
349
|
@if (showValue() && mode() === 'determinate') {
|
|
@@ -185,11 +386,32 @@ class AerisProgressBar {
|
|
|
185
386
|
}
|
|
186
387
|
</ol>
|
|
187
388
|
}
|
|
188
|
-
`,
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
389
|
+
`,
|
|
390
|
+
isInline: true,
|
|
391
|
+
styles: [":host{--_accent: var(--aeris-primary, #2c694b);--_on-accent: var(--aeris-on-primary, #ffffff);--_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, #deddd7));--_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;inline-size:max-content;max-inline-size:min(8rem,40vw);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[data-edge-start=true]{justify-items:start;text-align:start;transform:none}.aeris-progress-bar__step[data-edge-end=true]{justify-items:end;text-align:end;transform:translate(-100%)}.aeris-progress-bar__step-label{max-inline-size:inherit;overflow-wrap:normal;word-break:normal}:host-context([dir=rtl]) .aeris-progress-bar__step{transform:translate(50%)}:host-context([dir=rtl]) .aeris-progress-bar__step[data-edge-start=true]{transform:none}:host-context([dir=rtl]) .aeris-progress-bar__step[data-edge-end=true]{transform:translate(100%)}.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, #deddd7));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"],
|
|
392
|
+
dependencies: [{
|
|
393
|
+
kind: "directive",
|
|
394
|
+
type: NgTemplateOutlet,
|
|
395
|
+
selector: "[ngTemplateOutlet]",
|
|
396
|
+
inputs: [
|
|
397
|
+
"ngTemplateOutletContext",
|
|
398
|
+
"ngTemplateOutlet",
|
|
399
|
+
"ngTemplateOutletInjector"
|
|
400
|
+
]
|
|
401
|
+
}]
|
|
402
|
+
});
|
|
403
|
+
};
|
|
404
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
405
|
+
minVersion: "12.0.0",
|
|
406
|
+
version: "22.2.1",
|
|
407
|
+
ngImport: i0,
|
|
408
|
+
type: AerisProgressBar,
|
|
409
|
+
decorators: [{
|
|
410
|
+
type: Component,
|
|
411
|
+
args: [{
|
|
412
|
+
selector: "aeris-progress-bar",
|
|
413
|
+
imports: [NgTemplateOutlet],
|
|
414
|
+
template: `
|
|
193
415
|
<div class="aeris-progress-bar__track">
|
|
194
416
|
<span class="aeris-progress-bar__fill" [style.inline-size.%]="mode() === 'determinate' ? percent() : null"></span>
|
|
195
417
|
@if (showValue() && mode() === 'determinate') {
|
|
@@ -232,34 +454,180 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
232
454
|
}
|
|
233
455
|
</ol>
|
|
234
456
|
}
|
|
235
|
-
`,
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
457
|
+
`,
|
|
458
|
+
host: {
|
|
459
|
+
class: "aeris-progress-bar",
|
|
460
|
+
"[attr.id]": "id()",
|
|
461
|
+
role: "progressbar",
|
|
462
|
+
"[attr.aria-valuemin]": "mode() === \"determinate\" ? min() : null",
|
|
463
|
+
"[attr.aria-valuemax]": "mode() === \"determinate\" ? max() : null",
|
|
464
|
+
"[attr.aria-valuenow]": "mode() === \"determinate\" ? clampedValue() : null",
|
|
465
|
+
"[attr.aria-valuetext]": "resolvedAriaValueText()",
|
|
466
|
+
"[attr.aria-label]": "ariaLabel() || null",
|
|
467
|
+
"[attr.aria-labelledby]": "ariaLabelledBy() || null",
|
|
468
|
+
"[attr.data-mode]": "mode()",
|
|
469
|
+
"[attr.data-severity]": "severity()",
|
|
470
|
+
"[attr.data-size]": "size()",
|
|
471
|
+
"[attr.data-striped]": "striped() || null",
|
|
472
|
+
"[attr.data-animated]": "animated() || null",
|
|
473
|
+
"[attr.data-rounded]": "rounded() || null",
|
|
474
|
+
"[style.--aeris-progress-bar-value]": "percentStyle()"
|
|
475
|
+
},
|
|
476
|
+
styles: [":host{--_accent: var(--aeris-primary, #2c694b);--_on-accent: var(--aeris-on-primary, #ffffff);--_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, #deddd7));--_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;inline-size:max-content;max-inline-size:min(8rem,40vw);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[data-edge-start=true]{justify-items:start;text-align:start;transform:none}.aeris-progress-bar__step[data-edge-end=true]{justify-items:end;text-align:end;transform:translate(-100%)}.aeris-progress-bar__step-label{max-inline-size:inherit;overflow-wrap:normal;word-break:normal}:host-context([dir=rtl]) .aeris-progress-bar__step{transform:translate(50%)}:host-context([dir=rtl]) .aeris-progress-bar__step[data-edge-start=true]{transform:none}:host-context([dir=rtl]) .aeris-progress-bar__step[data-edge-end=true]{transform:translate(100%)}.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, #deddd7));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"]
|
|
477
|
+
}]
|
|
478
|
+
}],
|
|
479
|
+
propDecorators: {
|
|
480
|
+
valueTemplate: [{
|
|
481
|
+
type: i0.ContentChild,
|
|
482
|
+
args: [i0.forwardRef(() => AerisProgressBarValueTemplate), { isSignal: true }]
|
|
483
|
+
}],
|
|
484
|
+
stepTemplate: [{
|
|
485
|
+
type: i0.ContentChild,
|
|
486
|
+
args: [i0.forwardRef(() => AerisProgressBarStepTemplate), { isSignal: true }]
|
|
487
|
+
}],
|
|
488
|
+
id: [{
|
|
489
|
+
type: i0.Input,
|
|
490
|
+
args: [{
|
|
491
|
+
isSignal: true,
|
|
492
|
+
alias: "id",
|
|
493
|
+
required: false
|
|
494
|
+
}]
|
|
495
|
+
}],
|
|
496
|
+
value: [{
|
|
497
|
+
type: i0.Input,
|
|
498
|
+
args: [{
|
|
499
|
+
isSignal: true,
|
|
500
|
+
alias: "value",
|
|
501
|
+
required: false
|
|
502
|
+
}]
|
|
503
|
+
}],
|
|
504
|
+
min: [{
|
|
505
|
+
type: i0.Input,
|
|
506
|
+
args: [{
|
|
507
|
+
isSignal: true,
|
|
508
|
+
alias: "min",
|
|
509
|
+
required: false
|
|
510
|
+
}]
|
|
511
|
+
}],
|
|
512
|
+
max: [{
|
|
513
|
+
type: i0.Input,
|
|
514
|
+
args: [{
|
|
515
|
+
isSignal: true,
|
|
516
|
+
alias: "max",
|
|
517
|
+
required: false
|
|
518
|
+
}]
|
|
519
|
+
}],
|
|
520
|
+
mode: [{
|
|
521
|
+
type: i0.Input,
|
|
522
|
+
args: [{
|
|
523
|
+
isSignal: true,
|
|
524
|
+
alias: "mode",
|
|
525
|
+
required: false
|
|
526
|
+
}]
|
|
527
|
+
}],
|
|
528
|
+
severity: [{
|
|
529
|
+
type: i0.Input,
|
|
530
|
+
args: [{
|
|
531
|
+
isSignal: true,
|
|
532
|
+
alias: "severity",
|
|
533
|
+
required: false
|
|
534
|
+
}]
|
|
535
|
+
}],
|
|
536
|
+
size: [{
|
|
537
|
+
type: i0.Input,
|
|
538
|
+
args: [{
|
|
539
|
+
isSignal: true,
|
|
540
|
+
alias: "size",
|
|
541
|
+
required: false
|
|
542
|
+
}]
|
|
543
|
+
}],
|
|
544
|
+
showValue: [{
|
|
545
|
+
type: i0.Input,
|
|
546
|
+
args: [{
|
|
547
|
+
isSignal: true,
|
|
548
|
+
alias: "showValue",
|
|
549
|
+
required: false
|
|
550
|
+
}]
|
|
551
|
+
}],
|
|
552
|
+
striped: [{
|
|
553
|
+
type: i0.Input,
|
|
554
|
+
args: [{
|
|
555
|
+
isSignal: true,
|
|
556
|
+
alias: "striped",
|
|
557
|
+
required: false
|
|
558
|
+
}]
|
|
559
|
+
}],
|
|
560
|
+
animated: [{
|
|
561
|
+
type: i0.Input,
|
|
562
|
+
args: [{
|
|
563
|
+
isSignal: true,
|
|
564
|
+
alias: "animated",
|
|
565
|
+
required: false
|
|
566
|
+
}]
|
|
567
|
+
}],
|
|
568
|
+
rounded: [{
|
|
569
|
+
type: i0.Input,
|
|
570
|
+
args: [{
|
|
571
|
+
isSignal: true,
|
|
572
|
+
alias: "rounded",
|
|
573
|
+
required: false
|
|
574
|
+
}]
|
|
575
|
+
}],
|
|
576
|
+
ariaLabel: [{
|
|
577
|
+
type: i0.Input,
|
|
578
|
+
args: [{
|
|
579
|
+
isSignal: true,
|
|
580
|
+
alias: "ariaLabel",
|
|
581
|
+
required: false
|
|
582
|
+
}]
|
|
583
|
+
}],
|
|
584
|
+
ariaLabelledBy: [{
|
|
585
|
+
type: i0.Input,
|
|
586
|
+
args: [{
|
|
587
|
+
isSignal: true,
|
|
588
|
+
alias: "ariaLabelledBy",
|
|
589
|
+
required: false
|
|
590
|
+
}]
|
|
591
|
+
}],
|
|
592
|
+
ariaValueText: [{
|
|
593
|
+
type: i0.Input,
|
|
594
|
+
args: [{
|
|
595
|
+
isSignal: true,
|
|
596
|
+
alias: "ariaValueText",
|
|
597
|
+
required: false
|
|
598
|
+
}]
|
|
599
|
+
}],
|
|
600
|
+
steps: [{
|
|
601
|
+
type: i0.Input,
|
|
602
|
+
args: [{
|
|
603
|
+
isSignal: true,
|
|
604
|
+
alias: "steps",
|
|
605
|
+
required: false
|
|
606
|
+
}]
|
|
607
|
+
}],
|
|
608
|
+
activeStep: [{
|
|
609
|
+
type: i0.Input,
|
|
610
|
+
args: [{
|
|
611
|
+
isSignal: true,
|
|
612
|
+
alias: "activeStep",
|
|
613
|
+
required: false
|
|
614
|
+
}]
|
|
615
|
+
}],
|
|
616
|
+
valueFormatter: [{
|
|
617
|
+
type: i0.Input,
|
|
618
|
+
args: [{
|
|
619
|
+
isSignal: true,
|
|
620
|
+
alias: "valueFormatter",
|
|
621
|
+
required: false
|
|
622
|
+
}]
|
|
623
|
+
}]
|
|
624
|
+
}
|
|
625
|
+
});
|
|
254
626
|
const AerisProgressBarModule = [
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
627
|
+
AerisProgressBar,
|
|
628
|
+
AerisProgressBarValueTemplate,
|
|
629
|
+
AerisProgressBarStepTemplate
|
|
258
630
|
];
|
|
259
|
-
|
|
260
|
-
/**
|
|
261
|
-
* Generated bundle index. Do not edit.
|
|
262
|
-
*/
|
|
263
|
-
|
|
264
631
|
export { AerisProgressBar, AerisProgressBarModule, AerisProgressBarStepTemplate, AerisProgressBarValueTemplate };
|
|
265
|
-
|
|
632
|
+
|
|
633
|
+
//# sourceMappingURL=aeris-ui-core-progress-bar.mjs.map
|