@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,106 +1,508 @@
|
|
|
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
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, booleanAttribute, computed, input, output } from "@angular/core";
|
|
4
|
+
var AerisButtonDirective = class AerisButtonDirective {
|
|
5
|
+
variant = input("solid", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
6
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
7
|
+
severity = input("primary", ...ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []);
|
|
8
|
+
iconPosition = input("left", ...ngDevMode ? [{ debugName: "iconPosition" }] : /* istanbul ignore next */ []);
|
|
9
|
+
loading = input(false, {
|
|
10
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
11
|
+
transform: booleanAttribute
|
|
12
|
+
});
|
|
13
|
+
disabled = input(false, {
|
|
14
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
15
|
+
transform: booleanAttribute
|
|
16
|
+
});
|
|
17
|
+
showSpinner = input(true, {
|
|
18
|
+
...ngDevMode ? { debugName: "showSpinner" } : /* istanbul ignore next */ {},
|
|
19
|
+
transform: booleanAttribute
|
|
20
|
+
});
|
|
21
|
+
iconOnly = input(false, {
|
|
22
|
+
...ngDevMode ? { debugName: "iconOnly" } : /* istanbul ignore next */ {},
|
|
23
|
+
transform: booleanAttribute
|
|
24
|
+
});
|
|
25
|
+
raised = input(false, {
|
|
26
|
+
...ngDevMode ? { debugName: "raised" } : /* istanbul ignore next */ {},
|
|
27
|
+
transform: booleanAttribute
|
|
28
|
+
});
|
|
29
|
+
rounded = input(false, {
|
|
30
|
+
...ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {},
|
|
31
|
+
transform: booleanAttribute
|
|
32
|
+
});
|
|
33
|
+
fluid = input(false, {
|
|
34
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
35
|
+
transform: booleanAttribute
|
|
36
|
+
});
|
|
37
|
+
effectiveVariant = this.variant;
|
|
38
|
+
effectiveDisabled = computed(() => this.disabled() || this.loading(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
|
|
39
|
+
preventLoadingActivation(event) {
|
|
40
|
+
if (!this.effectiveDisabled()) return;
|
|
41
|
+
event.preventDefault();
|
|
42
|
+
event.stopImmediatePropagation();
|
|
43
|
+
}
|
|
44
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
45
|
+
minVersion: "12.0.0",
|
|
46
|
+
version: "22.2.1",
|
|
47
|
+
ngImport: i0,
|
|
48
|
+
type: AerisButtonDirective,
|
|
49
|
+
deps: [],
|
|
50
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
51
|
+
});
|
|
52
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
53
|
+
minVersion: "17.0.0",
|
|
54
|
+
version: "22.2.1",
|
|
55
|
+
type: AerisButtonDirective,
|
|
56
|
+
isStandalone: true,
|
|
57
|
+
selector: "button[aerisButton], a[aerisButton]",
|
|
58
|
+
inputs: {
|
|
59
|
+
variant: {
|
|
60
|
+
classPropertyName: "variant",
|
|
61
|
+
publicName: "variant",
|
|
62
|
+
isSignal: true,
|
|
63
|
+
isRequired: false,
|
|
64
|
+
transformFunction: null
|
|
65
|
+
},
|
|
66
|
+
size: {
|
|
67
|
+
classPropertyName: "size",
|
|
68
|
+
publicName: "size",
|
|
69
|
+
isSignal: true,
|
|
70
|
+
isRequired: false,
|
|
71
|
+
transformFunction: null
|
|
72
|
+
},
|
|
73
|
+
severity: {
|
|
74
|
+
classPropertyName: "severity",
|
|
75
|
+
publicName: "severity",
|
|
76
|
+
isSignal: true,
|
|
77
|
+
isRequired: false,
|
|
78
|
+
transformFunction: null
|
|
79
|
+
},
|
|
80
|
+
iconPosition: {
|
|
81
|
+
classPropertyName: "iconPosition",
|
|
82
|
+
publicName: "iconPosition",
|
|
83
|
+
isSignal: true,
|
|
84
|
+
isRequired: false,
|
|
85
|
+
transformFunction: null
|
|
86
|
+
},
|
|
87
|
+
loading: {
|
|
88
|
+
classPropertyName: "loading",
|
|
89
|
+
publicName: "loading",
|
|
90
|
+
isSignal: true,
|
|
91
|
+
isRequired: false,
|
|
92
|
+
transformFunction: null
|
|
93
|
+
},
|
|
94
|
+
disabled: {
|
|
95
|
+
classPropertyName: "disabled",
|
|
96
|
+
publicName: "disabled",
|
|
97
|
+
isSignal: true,
|
|
98
|
+
isRequired: false,
|
|
99
|
+
transformFunction: null
|
|
100
|
+
},
|
|
101
|
+
showSpinner: {
|
|
102
|
+
classPropertyName: "showSpinner",
|
|
103
|
+
publicName: "showSpinner",
|
|
104
|
+
isSignal: true,
|
|
105
|
+
isRequired: false,
|
|
106
|
+
transformFunction: null
|
|
107
|
+
},
|
|
108
|
+
iconOnly: {
|
|
109
|
+
classPropertyName: "iconOnly",
|
|
110
|
+
publicName: "iconOnly",
|
|
111
|
+
isSignal: true,
|
|
112
|
+
isRequired: false,
|
|
113
|
+
transformFunction: null
|
|
114
|
+
},
|
|
115
|
+
raised: {
|
|
116
|
+
classPropertyName: "raised",
|
|
117
|
+
publicName: "raised",
|
|
118
|
+
isSignal: true,
|
|
119
|
+
isRequired: false,
|
|
120
|
+
transformFunction: null
|
|
121
|
+
},
|
|
122
|
+
rounded: {
|
|
123
|
+
classPropertyName: "rounded",
|
|
124
|
+
publicName: "rounded",
|
|
125
|
+
isSignal: true,
|
|
126
|
+
isRequired: false,
|
|
127
|
+
transformFunction: null
|
|
128
|
+
},
|
|
129
|
+
fluid: {
|
|
130
|
+
classPropertyName: "fluid",
|
|
131
|
+
publicName: "fluid",
|
|
132
|
+
isSignal: true,
|
|
133
|
+
isRequired: false,
|
|
134
|
+
transformFunction: null
|
|
135
|
+
}
|
|
136
|
+
},
|
|
137
|
+
host: {
|
|
138
|
+
listeners: { "click": "preventLoadingActivation($event)" },
|
|
139
|
+
properties: {
|
|
140
|
+
"class": "\"aeris-button aeris-button--\" + effectiveVariant() + \" aeris-button--\" + size() + \" aeris-button--severity-\" + severity() + \" aeris-button--icon-\" + iconPosition()",
|
|
141
|
+
"attr.aria-busy": "loading() || null",
|
|
142
|
+
"attr.disabled": "effectiveDisabled() ? \"\" : null",
|
|
143
|
+
"attr.data-icon-only": "iconOnly() || null",
|
|
144
|
+
"attr.data-raised": "raised() || null",
|
|
145
|
+
"attr.data-rounded": "rounded() || null",
|
|
146
|
+
"attr.data-fluid": "fluid() || null",
|
|
147
|
+
"attr.aria-disabled": "effectiveDisabled() ? \"true\" : null"
|
|
148
|
+
},
|
|
149
|
+
classAttribute: "aeris-button"
|
|
150
|
+
},
|
|
151
|
+
ngImport: i0,
|
|
152
|
+
template: `
|
|
32
153
|
@if (loading() && showSpinner()) {
|
|
33
154
|
<span class="aeris-button__spinner" aria-hidden="true"></span>
|
|
34
155
|
}
|
|
35
156
|
<span class="aeris-button__content"><ng-content /></span>
|
|
36
|
-
`, isInline: true, styles: [":host{--_height: var(--aeris-action-height, var(--aeris-control-height, 2.625rem));--_aeris-button-fill: var(--aeris-primary, #2c694b);--_aeris-button-boundary: var(--aeris-primary-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-primary-hover, #2b6549);--_aeris-button-active-fill: var(--aeris-primary-active, #2b6448);--_aeris-button-text: var(--aeris-primary-text, #2c694b);--_aeris-button-on-fill: var(--aeris-on-primary, #ffffff);--_aeris-button-on-hover: var(--aeris-on-primary-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-primary-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-primary-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-primary-soft, var(--_aeris-button-text));min-height:var(--_height);display:inline-flex;align-items:center;justify-content:center;gap:var(--aeris-action-gap, var(--aeris-density-gap, .5rem));padding-inline:var(--aeris-action-padding-inline, 1.0625rem);border:1px solid transparent;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));font:inherit;font-size:var(--aeris-action-font-size, .8125rem);font-weight:var(--aeris-action-font-weight, 600);text-decoration:none;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s,transform .1s}:host(:focus-visible){outline:3px solid color-mix(in srgb,var(--aeris-focus, #2c432c) 44%,transparent);outline-offset:2px}:host(:disabled),:host([aria-disabled=true]){opacity:.48;cursor:not-allowed}:host(.aeris-button--solid){border-color:var(--_aeris-button-boundary);background:var(--_aeris-button-fill);color:var(--_aeris-button-on-fill);box-shadow:0 1px 2px color-mix(in srgb,var(--_aeris-button-fill) 40%,transparent)}:host(.aeris-button--outline){border-color:var(--_aeris-button-boundary);background:transparent;color:var(--_aeris-button-text)}:host(.aeris-button--ghost){background:transparent;color:var(--_aeris-button-text)}@media(hover:hover)and (pointer:fine){:host(:hover:not(:disabled)){transform:translateY(-1px)}:host(.aeris-button--solid:hover:not(:disabled)){background:var(--_aeris-button-hover-fill);color:var(--_aeris-button-on-hover)}:host(.aeris-button--outline:hover:not(:disabled)){border-color:var(--_aeris-button-boundary);background:var(--_aeris-button-hover-fill);color:var(--_aeris-button-on-hover)}:host(.aeris-button--ghost:hover:not(:disabled)){background:var(--_aeris-button-soft);color:var(--_aeris-button-on-soft)}}:host(:active:not(:disabled)){transform:translateY(0)}:host(.aeris-button--solid:active:not(:disabled)){background:var(--_aeris-button-active-fill);color:var(--_aeris-button-on-active)}:host(.aeris-button--outline:active:not(:disabled)){border-color:var(--_aeris-button-boundary);background:var(--_aeris-button-active-fill);color:var(--_aeris-button-on-active)}:host(.aeris-button--ghost:active:not(:disabled)){background:color-mix(in srgb,var(--_aeris-button-fill) 22%,var(--aeris-surface, #fff));color:var(--_aeris-button-on-soft)}:host(.aeris-button--link){min-height:auto;padding:.25rem .125rem;background:transparent;color:var(--_aeris-button-text)}:host(.aeris-button--xs){--_height: calc(var(--aeris-control-height, 2.625rem) - .875rem);padding-inline:.625rem;font-size:.6875rem}:host(.aeris-button--sm){--_height: calc(var(--aeris-control-height, 2.625rem) - .5rem);padding-inline:.8125rem;font-size:.75rem}:host(.aeris-button--lg){--_height: calc(var(--aeris-control-height, 2.625rem) + .5rem);padding-inline:1.3125rem;font-size:.875rem}:host([data-icon-only=true]){width:var(--_height);padding:0}:host([data-raised=true]){box-shadow:0 6px 16px color-mix(in srgb,var(--aeris-text, #222222) 16%,transparent)}:host([data-rounded=true]){border-radius:999px}:host([data-fluid=true]){width:100%}:host(.aeris-button--severity-success){--_aeris-button-fill: var(--aeris-success, #52744d);--_aeris-button-boundary: var(--aeris-success-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-success-hover, #456241);--_aeris-button-active-fill: var(--aeris-success-active, #3f593b);--_aeris-button-text: var(--aeris-success-text, #476142);--_aeris-button-on-fill: var(--aeris-on-success, #fff);--_aeris-button-on-hover: var(--aeris-on-success-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-success-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-success-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-success-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-info){--_aeris-button-fill: var(--aeris-info, #4f7180);--_aeris-button-boundary: var(--aeris-info-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-info-hover, #435f6c);--_aeris-button-active-fill: var(--aeris-info-active, #3e5864);--_aeris-button-text: var(--aeris-info-text, #536d78);--_aeris-button-on-fill: var(--aeris-on-info, #fff);--_aeris-button-on-hover: var(--aeris-on-info-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-info-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-info-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-info-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-warning){--_aeris-button-fill: var(--aeris-warning, #c38600);--_aeris-button-boundary: var(--aeris-warning-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-warning-hover, #bd8200);--_aeris-button-active-fill: var(--aeris-warning-active, #b87d00);--_aeris-button-text: var(--aeris-warning-text, #8a6100);--_aeris-button-on-fill: var(--aeris-on-warning, #211600);--_aeris-button-on-hover: var(--aeris-on-warning-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-warning-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-warning-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-warning-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-danger){--_aeris-button-fill: var(--aeris-danger, #c81e2a);--_aeris-button-boundary: var(--aeris-danger-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-danger-hover, #b51b26);--_aeris-button-active-fill: var(--aeris-danger-active, #a21822);--_aeris-button-text: var(--aeris-danger-text, #a31722);--_aeris-button-on-fill: var(--aeris-on-danger, #fff);--_aeris-button-on-hover: var(--aeris-on-danger-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-danger-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-danger-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-danger-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-contrast){--_aeris-button-fill: var(--aeris-contrast, var(--aeris-text, #222222));--_aeris-button-boundary: var(--aeris-contrast-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-contrast-hover, var(--aeris-text-2, #555555));--_aeris-button-active-fill: var(--aeris-contrast-active, var(--aeris-text, #222222));--_aeris-button-text: var(--aeris-contrast-text, var(--aeris-text, #222222));--_aeris-button-on-fill: var(--aeris-on-contrast, var(--aeris-surface, #fff));--_aeris-button-on-hover: var(--aeris-on-contrast-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-contrast-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-contrast-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-contrast-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-secondary){--_aeris-button-fill: var(--aeris-secondary, #52685b);--_aeris-button-boundary: var(--aeris-secondary-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-secondary-hover, #75868e);--_aeris-button-active-fill: var(--aeris-secondary-active, #6b7b82);--_aeris-button-text: var(--aeris-secondary-text, var(--aeris-text-2, #555555));--_aeris-button-on-fill: var(--aeris-on-secondary, var(--aeris-text, #222222));--_aeris-button-on-hover: var(--aeris-on-secondary-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-secondary-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-secondary-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-secondary-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-neutral){--_aeris-button-fill: var(--aeris-text-2, #555555);--_aeris-button-boundary: var(--_aeris-button-fill);--_aeris-button-hover-fill: var(--aeris-text, #222222);--_aeris-button-active-fill: var(--aeris-text, #222222);--_aeris-button-text: var(--aeris-text-2, #555555);--_aeris-button-on-fill: var(--aeris-surface, #fff);--_aeris-button-on-hover: var(--aeris-surface, #fff);--_aeris-button-on-active: var(--aeris-surface, #fff);--_aeris-button-soft: var(--aeris-surface-2, #f2f0ec);--_aeris-button-on-soft: var(--aeris-text, #222222)}:host(.aeris-button--icon-right){flex-direction:row-reverse}:host(.aeris-button--icon-top){flex-direction:column}:host(.aeris-button--icon-bottom){flex-direction:column-reverse}:host(.aeris-button--icon-top) .aeris-button__content{flex-direction:column}:host(.aeris-button--icon-bottom) .aeris-button__content{flex-direction:column-reverse}.aeris-button__content{display:inline-flex;align-items:center;justify-content:center;gap:.5rem}.aeris-button__spinner{width:.875rem;height:.875rem;border:2px solid color-mix(in srgb,currentColor 28%,transparent);border-top-color:currentColor;border-radius:50%;animation:aeris-button-spin .7s linear infinite}@keyframes aeris-button-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host{transition-duration:.01ms}.aeris-button__spinner{animation-duration:1.5s}}\n"] });
|
|
37
|
-
|
|
38
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AerisButtonDirective, decorators: [{
|
|
39
|
-
|
|
40
|
-
|
|
157
|
+
`,
|
|
158
|
+
isInline: true,
|
|
159
|
+
styles: [":host{--_height: var(--aeris-action-height, var(--aeris-control-height, 2.625rem));--_aeris-button-fill: var(--aeris-primary, #2c694b);--_aeris-button-boundary: var(--aeris-primary-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-primary-hover, #2b6549);--_aeris-button-active-fill: var(--aeris-primary-active, #2b6448);--_aeris-button-text: var(--aeris-primary-text, #2c694b);--_aeris-button-on-fill: var(--aeris-on-primary, #ffffff);--_aeris-button-on-hover: var(--aeris-on-primary-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-primary-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-primary-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-primary-soft, var(--_aeris-button-text));min-height:var(--_height);display:inline-flex;align-items:center;justify-content:center;gap:var(--aeris-action-gap, var(--aeris-density-gap, .5rem));padding-inline:var(--aeris-action-padding-inline, 1.0625rem);border:1px solid transparent;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));font:inherit;font-size:var(--aeris-action-font-size, .8125rem);font-weight:var(--aeris-action-font-weight, 600);text-decoration:none;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s,transform .1s}:host(:focus-visible){outline:3px solid color-mix(in srgb,var(--aeris-focus, #2c432c) 44%,transparent);outline-offset:2px}:host(:disabled),:host([aria-disabled=true]){opacity:.48;cursor:not-allowed}:host(.aeris-button--solid){border-color:var(--_aeris-button-boundary);background:var(--_aeris-button-fill);color:var(--_aeris-button-on-fill);box-shadow:0 1px 2px color-mix(in srgb,var(--_aeris-button-fill) 40%,transparent)}:host(.aeris-button--outline){border-color:var(--_aeris-button-boundary);background:transparent;color:var(--_aeris-button-text)}:host(.aeris-button--ghost){background:transparent;color:var(--_aeris-button-text)}@media(hover:hover)and (pointer:fine){:host(:hover:not(:disabled)){transform:translateY(-1px)}:host(.aeris-button--solid:hover:not(:disabled)){background:var(--_aeris-button-hover-fill);color:var(--_aeris-button-on-hover)}:host(.aeris-button--outline:hover:not(:disabled)){border-color:var(--_aeris-button-boundary);background:var(--_aeris-button-hover-fill);color:var(--_aeris-button-on-hover)}:host(.aeris-button--ghost:hover:not(:disabled)){background:var(--_aeris-button-soft);color:var(--_aeris-button-on-soft)}}:host(:active:not(:disabled)){transform:translateY(0)}:host(.aeris-button--solid:active:not(:disabled)){background:var(--_aeris-button-active-fill);color:var(--_aeris-button-on-active)}:host(.aeris-button--outline:active:not(:disabled)){border-color:var(--_aeris-button-boundary);background:var(--_aeris-button-active-fill);color:var(--_aeris-button-on-active)}:host(.aeris-button--ghost:active:not(:disabled)){background:color-mix(in srgb,var(--_aeris-button-fill) 22%,var(--aeris-surface, #fff));color:var(--_aeris-button-on-soft)}:host(.aeris-button--link){min-height:auto;padding:.25rem .125rem;background:transparent;color:var(--_aeris-button-text)}:host(.aeris-button--xs){--_height: calc(var(--aeris-control-height, 2.625rem) - .875rem);padding-inline:.625rem;font-size:.6875rem}:host(.aeris-button--sm){--_height: calc(var(--aeris-control-height, 2.625rem) - .5rem);padding-inline:.8125rem;font-size:.75rem}:host(.aeris-button--lg){--_height: calc(var(--aeris-control-height, 2.625rem) + .5rem);padding-inline:1.3125rem;font-size:.875rem}:host([data-icon-only=true]){width:var(--_height);padding:0}:host([data-raised=true]){box-shadow:0 6px 16px color-mix(in srgb,var(--aeris-text, #222222) 16%,transparent)}:host([data-rounded=true]){border-radius:999px}:host([data-fluid=true]){width:100%}:host(.aeris-button--severity-success){--_aeris-button-fill: var(--aeris-success, #52744d);--_aeris-button-boundary: var(--aeris-success-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-success-hover, #456241);--_aeris-button-active-fill: var(--aeris-success-active, #3f593b);--_aeris-button-text: var(--aeris-success-text, #476142);--_aeris-button-on-fill: var(--aeris-on-success, #fff);--_aeris-button-on-hover: var(--aeris-on-success-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-success-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-success-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-success-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-info){--_aeris-button-fill: var(--aeris-info, #4f7180);--_aeris-button-boundary: var(--aeris-info-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-info-hover, #435f6c);--_aeris-button-active-fill: var(--aeris-info-active, #3e5864);--_aeris-button-text: var(--aeris-info-text, #536d78);--_aeris-button-on-fill: var(--aeris-on-info, #fff);--_aeris-button-on-hover: var(--aeris-on-info-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-info-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-info-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-info-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-warning){--_aeris-button-fill: var(--aeris-warning, #c38600);--_aeris-button-boundary: var(--aeris-warning-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-warning-hover, #bd8200);--_aeris-button-active-fill: var(--aeris-warning-active, #b87d00);--_aeris-button-text: var(--aeris-warning-text, #8a6100);--_aeris-button-on-fill: var(--aeris-on-warning, #211600);--_aeris-button-on-hover: var(--aeris-on-warning-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-warning-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-warning-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-warning-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-danger){--_aeris-button-fill: var(--aeris-danger, #c81e2a);--_aeris-button-boundary: var(--aeris-danger-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-danger-hover, #b51b26);--_aeris-button-active-fill: var(--aeris-danger-active, #a21822);--_aeris-button-text: var(--aeris-danger-text, #a31722);--_aeris-button-on-fill: var(--aeris-on-danger, #fff);--_aeris-button-on-hover: var(--aeris-on-danger-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-danger-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-danger-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-danger-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-contrast){--_aeris-button-fill: var(--aeris-contrast, var(--aeris-text, #222222));--_aeris-button-boundary: var(--aeris-contrast-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-contrast-hover, var(--aeris-text-2, #555555));--_aeris-button-active-fill: var(--aeris-contrast-active, var(--aeris-text, #222222));--_aeris-button-text: var(--aeris-contrast-text, var(--aeris-text, #222222));--_aeris-button-on-fill: var(--aeris-on-contrast, var(--aeris-surface, #fff));--_aeris-button-on-hover: var(--aeris-on-contrast-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-contrast-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-contrast-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-contrast-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-secondary){--_aeris-button-fill: var(--aeris-secondary, #52685b);--_aeris-button-boundary: var(--aeris-secondary-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-secondary-hover, #75868e);--_aeris-button-active-fill: var(--aeris-secondary-active, #6b7b82);--_aeris-button-text: var(--aeris-secondary-text, var(--aeris-text-2, #555555));--_aeris-button-on-fill: var(--aeris-on-secondary, var(--aeris-text, #222222));--_aeris-button-on-hover: var(--aeris-on-secondary-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-secondary-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-secondary-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-secondary-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-neutral){--_aeris-button-fill: var(--aeris-text-2, #555555);--_aeris-button-boundary: var(--_aeris-button-fill);--_aeris-button-hover-fill: var(--aeris-text, #222222);--_aeris-button-active-fill: var(--aeris-text, #222222);--_aeris-button-text: var(--aeris-text-2, #555555);--_aeris-button-on-fill: var(--aeris-surface, #fff);--_aeris-button-on-hover: var(--aeris-surface, #fff);--_aeris-button-on-active: var(--aeris-surface, #fff);--_aeris-button-soft: var(--aeris-surface-2, #f2f0ec);--_aeris-button-on-soft: var(--aeris-text, #222222)}:host(.aeris-button--icon-right){flex-direction:row-reverse}:host(.aeris-button--icon-top){flex-direction:column}:host(.aeris-button--icon-bottom){flex-direction:column-reverse}:host(.aeris-button--icon-top) .aeris-button__content{flex-direction:column}:host(.aeris-button--icon-bottom) .aeris-button__content{flex-direction:column-reverse}.aeris-button__content{display:inline-flex;align-items:center;justify-content:center;gap:.5rem}.aeris-button__spinner{width:.875rem;height:.875rem;border:2px solid color-mix(in srgb,currentColor 28%,transparent);border-top-color:currentColor;border-radius:50%;animation:aeris-button-spin .7s linear infinite}@keyframes aeris-button-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host{transition-duration:.01ms}.aeris-button__spinner{animation-duration:1.5s}}\n"]
|
|
160
|
+
});
|
|
161
|
+
};
|
|
162
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
163
|
+
minVersion: "12.0.0",
|
|
164
|
+
version: "22.2.1",
|
|
165
|
+
ngImport: i0,
|
|
166
|
+
type: AerisButtonDirective,
|
|
167
|
+
decorators: [{
|
|
168
|
+
type: Component,
|
|
169
|
+
args: [{
|
|
170
|
+
selector: "button[aerisButton], a[aerisButton]",
|
|
171
|
+
template: `
|
|
41
172
|
@if (loading() && showSpinner()) {
|
|
42
173
|
<span class="aeris-button__spinner" aria-hidden="true"></span>
|
|
43
174
|
}
|
|
44
175
|
<span class="aeris-button__content"><ng-content /></span>
|
|
45
|
-
`,
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
}, styles: [":host{--_height: var(--aeris-action-height, var(--aeris-control-height, 2.625rem));--_aeris-button-fill: var(--aeris-primary, #2c694b);--_aeris-button-boundary: var(--aeris-primary-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-primary-hover, #2b6549);--_aeris-button-active-fill: var(--aeris-primary-active, #2b6448);--_aeris-button-text: var(--aeris-primary-text, #2c694b);--_aeris-button-on-fill: var(--aeris-on-primary, #ffffff);--_aeris-button-on-hover: var(--aeris-on-primary-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-primary-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-primary-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-primary-soft, var(--_aeris-button-text));min-height:var(--_height);display:inline-flex;align-items:center;justify-content:center;gap:var(--aeris-action-gap, var(--aeris-density-gap, .5rem));padding-inline:var(--aeris-action-padding-inline, 1.0625rem);border:1px solid transparent;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));font:inherit;font-size:var(--aeris-action-font-size, .8125rem);font-weight:var(--aeris-action-font-weight, 600);text-decoration:none;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s,transform .1s}:host(:focus-visible){outline:3px solid color-mix(in srgb,var(--aeris-focus, #2c432c) 44%,transparent);outline-offset:2px}:host(:disabled),:host([aria-disabled=true]){opacity:.48;cursor:not-allowed}:host(.aeris-button--solid){border-color:var(--_aeris-button-boundary);background:var(--_aeris-button-fill);color:var(--_aeris-button-on-fill);box-shadow:0 1px 2px color-mix(in srgb,var(--_aeris-button-fill) 40%,transparent)}:host(.aeris-button--outline){border-color:var(--_aeris-button-boundary);background:transparent;color:var(--_aeris-button-text)}:host(.aeris-button--ghost){background:transparent;color:var(--_aeris-button-text)}@media(hover:hover)and (pointer:fine){:host(:hover:not(:disabled)){transform:translateY(-1px)}:host(.aeris-button--solid:hover:not(:disabled)){background:var(--_aeris-button-hover-fill);color:var(--_aeris-button-on-hover)}:host(.aeris-button--outline:hover:not(:disabled)){border-color:var(--_aeris-button-boundary);background:var(--_aeris-button-hover-fill);color:var(--_aeris-button-on-hover)}:host(.aeris-button--ghost:hover:not(:disabled)){background:var(--_aeris-button-soft);color:var(--_aeris-button-on-soft)}}:host(:active:not(:disabled)){transform:translateY(0)}:host(.aeris-button--solid:active:not(:disabled)){background:var(--_aeris-button-active-fill);color:var(--_aeris-button-on-active)}:host(.aeris-button--outline:active:not(:disabled)){border-color:var(--_aeris-button-boundary);background:var(--_aeris-button-active-fill);color:var(--_aeris-button-on-active)}:host(.aeris-button--ghost:active:not(:disabled)){background:color-mix(in srgb,var(--_aeris-button-fill) 22%,var(--aeris-surface, #fff));color:var(--_aeris-button-on-soft)}:host(.aeris-button--link){min-height:auto;padding:.25rem .125rem;background:transparent;color:var(--_aeris-button-text)}:host(.aeris-button--xs){--_height: calc(var(--aeris-control-height, 2.625rem) - .875rem);padding-inline:.625rem;font-size:.6875rem}:host(.aeris-button--sm){--_height: calc(var(--aeris-control-height, 2.625rem) - .5rem);padding-inline:.8125rem;font-size:.75rem}:host(.aeris-button--lg){--_height: calc(var(--aeris-control-height, 2.625rem) + .5rem);padding-inline:1.3125rem;font-size:.875rem}:host([data-icon-only=true]){width:var(--_height);padding:0}:host([data-raised=true]){box-shadow:0 6px 16px color-mix(in srgb,var(--aeris-text, #222222) 16%,transparent)}:host([data-rounded=true]){border-radius:999px}:host([data-fluid=true]){width:100%}:host(.aeris-button--severity-success){--_aeris-button-fill: var(--aeris-success, #52744d);--_aeris-button-boundary: var(--aeris-success-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-success-hover, #456241);--_aeris-button-active-fill: var(--aeris-success-active, #3f593b);--_aeris-button-text: var(--aeris-success-text, #476142);--_aeris-button-on-fill: var(--aeris-on-success, #fff);--_aeris-button-on-hover: var(--aeris-on-success-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-success-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-success-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-success-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-info){--_aeris-button-fill: var(--aeris-info, #4f7180);--_aeris-button-boundary: var(--aeris-info-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-info-hover, #435f6c);--_aeris-button-active-fill: var(--aeris-info-active, #3e5864);--_aeris-button-text: var(--aeris-info-text, #536d78);--_aeris-button-on-fill: var(--aeris-on-info, #fff);--_aeris-button-on-hover: var(--aeris-on-info-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-info-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-info-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-info-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-warning){--_aeris-button-fill: var(--aeris-warning, #c38600);--_aeris-button-boundary: var(--aeris-warning-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-warning-hover, #bd8200);--_aeris-button-active-fill: var(--aeris-warning-active, #b87d00);--_aeris-button-text: var(--aeris-warning-text, #8a6100);--_aeris-button-on-fill: var(--aeris-on-warning, #211600);--_aeris-button-on-hover: var(--aeris-on-warning-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-warning-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-warning-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-warning-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-danger){--_aeris-button-fill: var(--aeris-danger, #c81e2a);--_aeris-button-boundary: var(--aeris-danger-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-danger-hover, #b51b26);--_aeris-button-active-fill: var(--aeris-danger-active, #a21822);--_aeris-button-text: var(--aeris-danger-text, #a31722);--_aeris-button-on-fill: var(--aeris-on-danger, #fff);--_aeris-button-on-hover: var(--aeris-on-danger-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-danger-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-danger-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-danger-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-contrast){--_aeris-button-fill: var(--aeris-contrast, var(--aeris-text, #222222));--_aeris-button-boundary: var(--aeris-contrast-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-contrast-hover, var(--aeris-text-2, #555555));--_aeris-button-active-fill: var(--aeris-contrast-active, var(--aeris-text, #222222));--_aeris-button-text: var(--aeris-contrast-text, var(--aeris-text, #222222));--_aeris-button-on-fill: var(--aeris-on-contrast, var(--aeris-surface, #fff));--_aeris-button-on-hover: var(--aeris-on-contrast-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-contrast-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-contrast-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-contrast-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-secondary){--_aeris-button-fill: var(--aeris-secondary, #52685b);--_aeris-button-boundary: var(--aeris-secondary-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-secondary-hover, #75868e);--_aeris-button-active-fill: var(--aeris-secondary-active, #6b7b82);--_aeris-button-text: var(--aeris-secondary-text, var(--aeris-text-2, #555555));--_aeris-button-on-fill: var(--aeris-on-secondary, var(--aeris-text, #222222));--_aeris-button-on-hover: var(--aeris-on-secondary-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-secondary-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-secondary-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-secondary-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-neutral){--_aeris-button-fill: var(--aeris-text-2, #555555);--_aeris-button-boundary: var(--_aeris-button-fill);--_aeris-button-hover-fill: var(--aeris-text, #222222);--_aeris-button-active-fill: var(--aeris-text, #222222);--_aeris-button-text: var(--aeris-text-2, #555555);--_aeris-button-on-fill: var(--aeris-surface, #fff);--_aeris-button-on-hover: var(--aeris-surface, #fff);--_aeris-button-on-active: var(--aeris-surface, #fff);--_aeris-button-soft: var(--aeris-surface-2, #f2f0ec);--_aeris-button-on-soft: var(--aeris-text, #222222)}:host(.aeris-button--icon-right){flex-direction:row-reverse}:host(.aeris-button--icon-top){flex-direction:column}:host(.aeris-button--icon-bottom){flex-direction:column-reverse}:host(.aeris-button--icon-top) .aeris-button__content{flex-direction:column}:host(.aeris-button--icon-bottom) .aeris-button__content{flex-direction:column-reverse}.aeris-button__content{display:inline-flex;align-items:center;justify-content:center;gap:.5rem}.aeris-button__spinner{width:.875rem;height:.875rem;border:2px solid color-mix(in srgb,currentColor 28%,transparent);border-top-color:currentColor;border-radius:50%;animation:aeris-button-spin .7s linear infinite}@keyframes aeris-button-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host{transition-duration:.01ms}.aeris-button__spinner{animation-duration:1.5s}}\n"] }]
|
|
57
|
-
|
|
58
|
-
class AerisButtonComponent {
|
|
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
|
-
|
|
176
|
+
`,
|
|
177
|
+
host: {
|
|
178
|
+
class: "aeris-button",
|
|
179
|
+
"[class]": "\"aeris-button aeris-button--\" + effectiveVariant() + \" aeris-button--\" + size() + \" aeris-button--severity-\" + severity() + \" aeris-button--icon-\" + iconPosition()",
|
|
180
|
+
"[attr.aria-busy]": "loading() || null",
|
|
181
|
+
"[attr.disabled]": "effectiveDisabled() ? \"\" : null",
|
|
182
|
+
"[attr.data-icon-only]": "iconOnly() || null",
|
|
183
|
+
"[attr.data-raised]": "raised() || null",
|
|
184
|
+
"[attr.data-rounded]": "rounded() || null",
|
|
185
|
+
"[attr.data-fluid]": "fluid() || null",
|
|
186
|
+
"[attr.aria-disabled]": "effectiveDisabled() ? \"true\" : null",
|
|
187
|
+
"(click)": "preventLoadingActivation($event)"
|
|
188
|
+
},
|
|
189
|
+
styles: [":host{--_height: var(--aeris-action-height, var(--aeris-control-height, 2.625rem));--_aeris-button-fill: var(--aeris-primary, #2c694b);--_aeris-button-boundary: var(--aeris-primary-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-primary-hover, #2b6549);--_aeris-button-active-fill: var(--aeris-primary-active, #2b6448);--_aeris-button-text: var(--aeris-primary-text, #2c694b);--_aeris-button-on-fill: var(--aeris-on-primary, #ffffff);--_aeris-button-on-hover: var(--aeris-on-primary-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-primary-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-primary-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-primary-soft, var(--_aeris-button-text));min-height:var(--_height);display:inline-flex;align-items:center;justify-content:center;gap:var(--aeris-action-gap, var(--aeris-density-gap, .5rem));padding-inline:var(--aeris-action-padding-inline, 1.0625rem);border:1px solid transparent;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));font:inherit;font-size:var(--aeris-action-font-size, .8125rem);font-weight:var(--aeris-action-font-weight, 600);text-decoration:none;cursor:pointer;transition:background-color .15s,border-color .15s,color .15s,box-shadow .15s,transform .1s}:host(:focus-visible){outline:3px solid color-mix(in srgb,var(--aeris-focus, #2c432c) 44%,transparent);outline-offset:2px}:host(:disabled),:host([aria-disabled=true]){opacity:.48;cursor:not-allowed}:host(.aeris-button--solid){border-color:var(--_aeris-button-boundary);background:var(--_aeris-button-fill);color:var(--_aeris-button-on-fill);box-shadow:0 1px 2px color-mix(in srgb,var(--_aeris-button-fill) 40%,transparent)}:host(.aeris-button--outline){border-color:var(--_aeris-button-boundary);background:transparent;color:var(--_aeris-button-text)}:host(.aeris-button--ghost){background:transparent;color:var(--_aeris-button-text)}@media(hover:hover)and (pointer:fine){:host(:hover:not(:disabled)){transform:translateY(-1px)}:host(.aeris-button--solid:hover:not(:disabled)){background:var(--_aeris-button-hover-fill);color:var(--_aeris-button-on-hover)}:host(.aeris-button--outline:hover:not(:disabled)){border-color:var(--_aeris-button-boundary);background:var(--_aeris-button-hover-fill);color:var(--_aeris-button-on-hover)}:host(.aeris-button--ghost:hover:not(:disabled)){background:var(--_aeris-button-soft);color:var(--_aeris-button-on-soft)}}:host(:active:not(:disabled)){transform:translateY(0)}:host(.aeris-button--solid:active:not(:disabled)){background:var(--_aeris-button-active-fill);color:var(--_aeris-button-on-active)}:host(.aeris-button--outline:active:not(:disabled)){border-color:var(--_aeris-button-boundary);background:var(--_aeris-button-active-fill);color:var(--_aeris-button-on-active)}:host(.aeris-button--ghost:active:not(:disabled)){background:color-mix(in srgb,var(--_aeris-button-fill) 22%,var(--aeris-surface, #fff));color:var(--_aeris-button-on-soft)}:host(.aeris-button--link){min-height:auto;padding:.25rem .125rem;background:transparent;color:var(--_aeris-button-text)}:host(.aeris-button--xs){--_height: calc(var(--aeris-control-height, 2.625rem) - .875rem);padding-inline:.625rem;font-size:.6875rem}:host(.aeris-button--sm){--_height: calc(var(--aeris-control-height, 2.625rem) - .5rem);padding-inline:.8125rem;font-size:.75rem}:host(.aeris-button--lg){--_height: calc(var(--aeris-control-height, 2.625rem) + .5rem);padding-inline:1.3125rem;font-size:.875rem}:host([data-icon-only=true]){width:var(--_height);padding:0}:host([data-raised=true]){box-shadow:0 6px 16px color-mix(in srgb,var(--aeris-text, #222222) 16%,transparent)}:host([data-rounded=true]){border-radius:999px}:host([data-fluid=true]){width:100%}:host(.aeris-button--severity-success){--_aeris-button-fill: var(--aeris-success, #52744d);--_aeris-button-boundary: var(--aeris-success-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-success-hover, #456241);--_aeris-button-active-fill: var(--aeris-success-active, #3f593b);--_aeris-button-text: var(--aeris-success-text, #476142);--_aeris-button-on-fill: var(--aeris-on-success, #fff);--_aeris-button-on-hover: var(--aeris-on-success-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-success-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-success-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-success-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-info){--_aeris-button-fill: var(--aeris-info, #4f7180);--_aeris-button-boundary: var(--aeris-info-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-info-hover, #435f6c);--_aeris-button-active-fill: var(--aeris-info-active, #3e5864);--_aeris-button-text: var(--aeris-info-text, #536d78);--_aeris-button-on-fill: var(--aeris-on-info, #fff);--_aeris-button-on-hover: var(--aeris-on-info-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-info-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-info-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-info-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-warning){--_aeris-button-fill: var(--aeris-warning, #c38600);--_aeris-button-boundary: var(--aeris-warning-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-warning-hover, #bd8200);--_aeris-button-active-fill: var(--aeris-warning-active, #b87d00);--_aeris-button-text: var(--aeris-warning-text, #8a6100);--_aeris-button-on-fill: var(--aeris-on-warning, #211600);--_aeris-button-on-hover: var(--aeris-on-warning-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-warning-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-warning-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-warning-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-danger){--_aeris-button-fill: var(--aeris-danger, #c81e2a);--_aeris-button-boundary: var(--aeris-danger-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-danger-hover, #b51b26);--_aeris-button-active-fill: var(--aeris-danger-active, #a21822);--_aeris-button-text: var(--aeris-danger-text, #a31722);--_aeris-button-on-fill: var(--aeris-on-danger, #fff);--_aeris-button-on-hover: var(--aeris-on-danger-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-danger-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-danger-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-danger-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-contrast){--_aeris-button-fill: var(--aeris-contrast, var(--aeris-text, #222222));--_aeris-button-boundary: var(--aeris-contrast-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-contrast-hover, var(--aeris-text-2, #555555));--_aeris-button-active-fill: var(--aeris-contrast-active, var(--aeris-text, #222222));--_aeris-button-text: var(--aeris-contrast-text, var(--aeris-text, #222222));--_aeris-button-on-fill: var(--aeris-on-contrast, var(--aeris-surface, #fff));--_aeris-button-on-hover: var(--aeris-on-contrast-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-contrast-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-contrast-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-contrast-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-secondary){--_aeris-button-fill: var(--aeris-secondary, #52685b);--_aeris-button-boundary: var(--aeris-secondary-boundary, var(--_aeris-button-fill));--_aeris-button-hover-fill: var(--aeris-secondary-hover, #75868e);--_aeris-button-active-fill: var(--aeris-secondary-active, #6b7b82);--_aeris-button-text: var(--aeris-secondary-text, var(--aeris-text-2, #555555));--_aeris-button-on-fill: var(--aeris-on-secondary, var(--aeris-text, #222222));--_aeris-button-on-hover: var(--aeris-on-secondary-hover, var(--_aeris-button-on-fill));--_aeris-button-on-active: var(--aeris-on-secondary-active, var(--_aeris-button-on-hover));--_aeris-button-soft: var( --aeris-secondary-soft, color-mix(in srgb, var(--_aeris-button-fill) 14%, transparent) );--_aeris-button-on-soft: var(--aeris-on-secondary-soft, var(--_aeris-button-text))}:host(.aeris-button--severity-neutral){--_aeris-button-fill: var(--aeris-text-2, #555555);--_aeris-button-boundary: var(--_aeris-button-fill);--_aeris-button-hover-fill: var(--aeris-text, #222222);--_aeris-button-active-fill: var(--aeris-text, #222222);--_aeris-button-text: var(--aeris-text-2, #555555);--_aeris-button-on-fill: var(--aeris-surface, #fff);--_aeris-button-on-hover: var(--aeris-surface, #fff);--_aeris-button-on-active: var(--aeris-surface, #fff);--_aeris-button-soft: var(--aeris-surface-2, #f2f0ec);--_aeris-button-on-soft: var(--aeris-text, #222222)}:host(.aeris-button--icon-right){flex-direction:row-reverse}:host(.aeris-button--icon-top){flex-direction:column}:host(.aeris-button--icon-bottom){flex-direction:column-reverse}:host(.aeris-button--icon-top) .aeris-button__content{flex-direction:column}:host(.aeris-button--icon-bottom) .aeris-button__content{flex-direction:column-reverse}.aeris-button__content{display:inline-flex;align-items:center;justify-content:center;gap:.5rem}.aeris-button__spinner{width:.875rem;height:.875rem;border:2px solid color-mix(in srgb,currentColor 28%,transparent);border-top-color:currentColor;border-radius:50%;animation:aeris-button-spin .7s linear infinite}@keyframes aeris-button-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){:host{transition-duration:.01ms}.aeris-button__spinner{animation-duration:1.5s}}\n"]
|
|
190
|
+
}]
|
|
191
|
+
}],
|
|
192
|
+
propDecorators: {
|
|
193
|
+
variant: [{
|
|
194
|
+
type: i0.Input,
|
|
195
|
+
args: [{
|
|
196
|
+
isSignal: true,
|
|
197
|
+
alias: "variant",
|
|
198
|
+
required: false
|
|
199
|
+
}]
|
|
200
|
+
}],
|
|
201
|
+
size: [{
|
|
202
|
+
type: i0.Input,
|
|
203
|
+
args: [{
|
|
204
|
+
isSignal: true,
|
|
205
|
+
alias: "size",
|
|
206
|
+
required: false
|
|
207
|
+
}]
|
|
208
|
+
}],
|
|
209
|
+
severity: [{
|
|
210
|
+
type: i0.Input,
|
|
211
|
+
args: [{
|
|
212
|
+
isSignal: true,
|
|
213
|
+
alias: "severity",
|
|
214
|
+
required: false
|
|
215
|
+
}]
|
|
216
|
+
}],
|
|
217
|
+
iconPosition: [{
|
|
218
|
+
type: i0.Input,
|
|
219
|
+
args: [{
|
|
220
|
+
isSignal: true,
|
|
221
|
+
alias: "iconPosition",
|
|
222
|
+
required: false
|
|
223
|
+
}]
|
|
224
|
+
}],
|
|
225
|
+
loading: [{
|
|
226
|
+
type: i0.Input,
|
|
227
|
+
args: [{
|
|
228
|
+
isSignal: true,
|
|
229
|
+
alias: "loading",
|
|
230
|
+
required: false
|
|
231
|
+
}]
|
|
232
|
+
}],
|
|
233
|
+
disabled: [{
|
|
234
|
+
type: i0.Input,
|
|
235
|
+
args: [{
|
|
236
|
+
isSignal: true,
|
|
237
|
+
alias: "disabled",
|
|
238
|
+
required: false
|
|
239
|
+
}]
|
|
240
|
+
}],
|
|
241
|
+
showSpinner: [{
|
|
242
|
+
type: i0.Input,
|
|
243
|
+
args: [{
|
|
244
|
+
isSignal: true,
|
|
245
|
+
alias: "showSpinner",
|
|
246
|
+
required: false
|
|
247
|
+
}]
|
|
248
|
+
}],
|
|
249
|
+
iconOnly: [{
|
|
250
|
+
type: i0.Input,
|
|
251
|
+
args: [{
|
|
252
|
+
isSignal: true,
|
|
253
|
+
alias: "iconOnly",
|
|
254
|
+
required: false
|
|
255
|
+
}]
|
|
256
|
+
}],
|
|
257
|
+
raised: [{
|
|
258
|
+
type: i0.Input,
|
|
259
|
+
args: [{
|
|
260
|
+
isSignal: true,
|
|
261
|
+
alias: "raised",
|
|
262
|
+
required: false
|
|
263
|
+
}]
|
|
264
|
+
}],
|
|
265
|
+
rounded: [{
|
|
266
|
+
type: i0.Input,
|
|
267
|
+
args: [{
|
|
268
|
+
isSignal: true,
|
|
269
|
+
alias: "rounded",
|
|
270
|
+
required: false
|
|
271
|
+
}]
|
|
272
|
+
}],
|
|
273
|
+
fluid: [{
|
|
274
|
+
type: i0.Input,
|
|
275
|
+
args: [{
|
|
276
|
+
isSignal: true,
|
|
277
|
+
alias: "fluid",
|
|
278
|
+
required: false
|
|
279
|
+
}]
|
|
280
|
+
}]
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
var AerisButtonComponent = class AerisButtonComponent {
|
|
284
|
+
type = input("button", ...ngDevMode ? [{ debugName: "type" }] : /* istanbul ignore next */ []);
|
|
285
|
+
label = input("", ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
286
|
+
badge = input(...ngDevMode ? [void 0, { debugName: "badge" }] : /* istanbul ignore next */ []);
|
|
287
|
+
badgeSeverity = input("secondary", ...ngDevMode ? [{ debugName: "badgeSeverity" }] : /* istanbul ignore next */ []);
|
|
288
|
+
ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
289
|
+
tabIndex = input(...ngDevMode ? [void 0, { debugName: "tabIndex" }] : /* istanbul ignore next */ []);
|
|
290
|
+
autofocus = input(false, {
|
|
291
|
+
...ngDevMode ? { debugName: "autofocus" } : /* istanbul ignore next */ {},
|
|
292
|
+
transform: booleanAttribute
|
|
293
|
+
});
|
|
294
|
+
disabled = input(false, {
|
|
295
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
296
|
+
transform: booleanAttribute
|
|
297
|
+
});
|
|
298
|
+
variant = input("solid", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
299
|
+
severity = input("primary", ...ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []);
|
|
300
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
301
|
+
iconPosition = input("left", ...ngDevMode ? [{ debugName: "iconPosition" }] : /* istanbul ignore next */ []);
|
|
302
|
+
loading = input(false, {
|
|
303
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
304
|
+
transform: booleanAttribute
|
|
305
|
+
});
|
|
306
|
+
showSpinner = input(true, {
|
|
307
|
+
...ngDevMode ? { debugName: "showSpinner" } : /* istanbul ignore next */ {},
|
|
308
|
+
transform: booleanAttribute
|
|
309
|
+
});
|
|
310
|
+
iconOnly = input(false, {
|
|
311
|
+
...ngDevMode ? { debugName: "iconOnly" } : /* istanbul ignore next */ {},
|
|
312
|
+
transform: booleanAttribute
|
|
313
|
+
});
|
|
314
|
+
raised = input(false, {
|
|
315
|
+
...ngDevMode ? { debugName: "raised" } : /* istanbul ignore next */ {},
|
|
316
|
+
transform: booleanAttribute
|
|
317
|
+
});
|
|
318
|
+
rounded = input(false, {
|
|
319
|
+
...ngDevMode ? { debugName: "rounded" } : /* istanbul ignore next */ {},
|
|
320
|
+
transform: booleanAttribute
|
|
321
|
+
});
|
|
322
|
+
fluid = input(false, {
|
|
323
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
324
|
+
transform: booleanAttribute
|
|
325
|
+
});
|
|
326
|
+
contentTemplate = input(...ngDevMode ? [void 0, { debugName: "contentTemplate" }] : /* istanbul ignore next */ []);
|
|
327
|
+
iconTemplate = input(...ngDevMode ? [void 0, { debugName: "iconTemplate" }] : /* istanbul ignore next */ []);
|
|
328
|
+
loadingIconTemplate = input(...ngDevMode ? [void 0, { debugName: "loadingIconTemplate" }] : /* istanbul ignore next */ []);
|
|
329
|
+
effectiveDisabled = computed(() => this.disabled() || this.loading(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
|
|
330
|
+
iconAfterLabel = computed(() => this.iconPosition() === "right", ...ngDevMode ? [{ debugName: "iconAfterLabel" }] : /* istanbul ignore next */ []);
|
|
331
|
+
activeIconTemplate = computed(() => this.loading() ? this.loadingIconTemplate() : this.iconTemplate(), ...ngDevMode ? [{ debugName: "activeIconTemplate" }] : /* istanbul ignore next */ []);
|
|
332
|
+
clicked = output();
|
|
333
|
+
focused = output();
|
|
334
|
+
blurred = output();
|
|
335
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
336
|
+
minVersion: "12.0.0",
|
|
337
|
+
version: "22.2.1",
|
|
338
|
+
ngImport: i0,
|
|
339
|
+
type: AerisButtonComponent,
|
|
340
|
+
deps: [],
|
|
341
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
342
|
+
});
|
|
343
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
344
|
+
minVersion: "17.0.0",
|
|
345
|
+
version: "22.2.1",
|
|
346
|
+
type: AerisButtonComponent,
|
|
347
|
+
isStandalone: true,
|
|
348
|
+
selector: "aeris-button",
|
|
349
|
+
inputs: {
|
|
350
|
+
type: {
|
|
351
|
+
classPropertyName: "type",
|
|
352
|
+
publicName: "type",
|
|
353
|
+
isSignal: true,
|
|
354
|
+
isRequired: false,
|
|
355
|
+
transformFunction: null
|
|
356
|
+
},
|
|
357
|
+
label: {
|
|
358
|
+
classPropertyName: "label",
|
|
359
|
+
publicName: "label",
|
|
360
|
+
isSignal: true,
|
|
361
|
+
isRequired: false,
|
|
362
|
+
transformFunction: null
|
|
363
|
+
},
|
|
364
|
+
badge: {
|
|
365
|
+
classPropertyName: "badge",
|
|
366
|
+
publicName: "badge",
|
|
367
|
+
isSignal: true,
|
|
368
|
+
isRequired: false,
|
|
369
|
+
transformFunction: null
|
|
370
|
+
},
|
|
371
|
+
badgeSeverity: {
|
|
372
|
+
classPropertyName: "badgeSeverity",
|
|
373
|
+
publicName: "badgeSeverity",
|
|
374
|
+
isSignal: true,
|
|
375
|
+
isRequired: false,
|
|
376
|
+
transformFunction: null
|
|
377
|
+
},
|
|
378
|
+
ariaLabel: {
|
|
379
|
+
classPropertyName: "ariaLabel",
|
|
380
|
+
publicName: "ariaLabel",
|
|
381
|
+
isSignal: true,
|
|
382
|
+
isRequired: false,
|
|
383
|
+
transformFunction: null
|
|
384
|
+
},
|
|
385
|
+
tabIndex: {
|
|
386
|
+
classPropertyName: "tabIndex",
|
|
387
|
+
publicName: "tabIndex",
|
|
388
|
+
isSignal: true,
|
|
389
|
+
isRequired: false,
|
|
390
|
+
transformFunction: null
|
|
391
|
+
},
|
|
392
|
+
autofocus: {
|
|
393
|
+
classPropertyName: "autofocus",
|
|
394
|
+
publicName: "autofocus",
|
|
395
|
+
isSignal: true,
|
|
396
|
+
isRequired: false,
|
|
397
|
+
transformFunction: null
|
|
398
|
+
},
|
|
399
|
+
disabled: {
|
|
400
|
+
classPropertyName: "disabled",
|
|
401
|
+
publicName: "disabled",
|
|
402
|
+
isSignal: true,
|
|
403
|
+
isRequired: false,
|
|
404
|
+
transformFunction: null
|
|
405
|
+
},
|
|
406
|
+
variant: {
|
|
407
|
+
classPropertyName: "variant",
|
|
408
|
+
publicName: "variant",
|
|
409
|
+
isSignal: true,
|
|
410
|
+
isRequired: false,
|
|
411
|
+
transformFunction: null
|
|
412
|
+
},
|
|
413
|
+
severity: {
|
|
414
|
+
classPropertyName: "severity",
|
|
415
|
+
publicName: "severity",
|
|
416
|
+
isSignal: true,
|
|
417
|
+
isRequired: false,
|
|
418
|
+
transformFunction: null
|
|
419
|
+
},
|
|
420
|
+
size: {
|
|
421
|
+
classPropertyName: "size",
|
|
422
|
+
publicName: "size",
|
|
423
|
+
isSignal: true,
|
|
424
|
+
isRequired: false,
|
|
425
|
+
transformFunction: null
|
|
426
|
+
},
|
|
427
|
+
iconPosition: {
|
|
428
|
+
classPropertyName: "iconPosition",
|
|
429
|
+
publicName: "iconPosition",
|
|
430
|
+
isSignal: true,
|
|
431
|
+
isRequired: false,
|
|
432
|
+
transformFunction: null
|
|
433
|
+
},
|
|
434
|
+
loading: {
|
|
435
|
+
classPropertyName: "loading",
|
|
436
|
+
publicName: "loading",
|
|
437
|
+
isSignal: true,
|
|
438
|
+
isRequired: false,
|
|
439
|
+
transformFunction: null
|
|
440
|
+
},
|
|
441
|
+
showSpinner: {
|
|
442
|
+
classPropertyName: "showSpinner",
|
|
443
|
+
publicName: "showSpinner",
|
|
444
|
+
isSignal: true,
|
|
445
|
+
isRequired: false,
|
|
446
|
+
transformFunction: null
|
|
447
|
+
},
|
|
448
|
+
iconOnly: {
|
|
449
|
+
classPropertyName: "iconOnly",
|
|
450
|
+
publicName: "iconOnly",
|
|
451
|
+
isSignal: true,
|
|
452
|
+
isRequired: false,
|
|
453
|
+
transformFunction: null
|
|
454
|
+
},
|
|
455
|
+
raised: {
|
|
456
|
+
classPropertyName: "raised",
|
|
457
|
+
publicName: "raised",
|
|
458
|
+
isSignal: true,
|
|
459
|
+
isRequired: false,
|
|
460
|
+
transformFunction: null
|
|
461
|
+
},
|
|
462
|
+
rounded: {
|
|
463
|
+
classPropertyName: "rounded",
|
|
464
|
+
publicName: "rounded",
|
|
465
|
+
isSignal: true,
|
|
466
|
+
isRequired: false,
|
|
467
|
+
transformFunction: null
|
|
468
|
+
},
|
|
469
|
+
fluid: {
|
|
470
|
+
classPropertyName: "fluid",
|
|
471
|
+
publicName: "fluid",
|
|
472
|
+
isSignal: true,
|
|
473
|
+
isRequired: false,
|
|
474
|
+
transformFunction: null
|
|
475
|
+
},
|
|
476
|
+
contentTemplate: {
|
|
477
|
+
classPropertyName: "contentTemplate",
|
|
478
|
+
publicName: "contentTemplate",
|
|
479
|
+
isSignal: true,
|
|
480
|
+
isRequired: false,
|
|
481
|
+
transformFunction: null
|
|
482
|
+
},
|
|
483
|
+
iconTemplate: {
|
|
484
|
+
classPropertyName: "iconTemplate",
|
|
485
|
+
publicName: "iconTemplate",
|
|
486
|
+
isSignal: true,
|
|
487
|
+
isRequired: false,
|
|
488
|
+
transformFunction: null
|
|
489
|
+
},
|
|
490
|
+
loadingIconTemplate: {
|
|
491
|
+
classPropertyName: "loadingIconTemplate",
|
|
492
|
+
publicName: "loadingIconTemplate",
|
|
493
|
+
isSignal: true,
|
|
494
|
+
isRequired: false,
|
|
495
|
+
transformFunction: null
|
|
496
|
+
}
|
|
497
|
+
},
|
|
498
|
+
outputs: {
|
|
499
|
+
clicked: "clicked",
|
|
500
|
+
focused: "focused",
|
|
501
|
+
blurred: "blurred"
|
|
502
|
+
},
|
|
503
|
+
host: { properties: { "attr.data-fluid": "fluid() || null" } },
|
|
504
|
+
ngImport: i0,
|
|
505
|
+
template: `
|
|
104
506
|
<button
|
|
105
507
|
aerisButton
|
|
106
508
|
[type]="type()"
|
|
@@ -155,11 +557,49 @@ class AerisButtonComponent {
|
|
|
155
557
|
}
|
|
156
558
|
}
|
|
157
559
|
</button>
|
|
158
|
-
`,
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
560
|
+
`,
|
|
561
|
+
isInline: true,
|
|
562
|
+
styles: [":host{display:inline-block}:host([data-fluid=true]){display:block;width:100%}:host([data-fluid=true]) .aeris-button{width:100%}.aeris-button-component__label{display:inline-flex}.aeris-button-component__badge{min-width:1.2rem;height:1.2rem;display:inline-grid;place-items:center;padding:0 .35rem;border:1px solid color-mix(in srgb,var(--_badge-color) 28%,transparent);border-radius:999px;background:var(--aeris-surface, #fff);color:var(--_badge-color);box-shadow:0 1px 1px #00000014;font-size:.625rem;font-weight:700}.aeris-button-component__badge[data-severity=primary]{--_badge-color: var(--aeris-primary-text, #2c694b)}.aeris-button-component__badge[data-severity=secondary]{--_badge-color: var(--aeris-text-2, #555555)}.aeris-button-component__badge[data-severity=success]{--_badge-color: #52744d}.aeris-button-component__badge[data-severity=info]{--_badge-color: #536d78}.aeris-button-component__badge[data-severity=warning]{--_badge-color: #805a34}.aeris-button-component__badge[data-severity=danger]{--_badge-color: var(--aeris-danger, #c81e2a)}.aeris-button-component__badge[data-severity=contrast]{--_badge-color: var(--aeris-text, #222222)}\n"],
|
|
563
|
+
dependencies: [{
|
|
564
|
+
kind: "directive",
|
|
565
|
+
type: NgTemplateOutlet,
|
|
566
|
+
selector: "[ngTemplateOutlet]",
|
|
567
|
+
inputs: [
|
|
568
|
+
"ngTemplateOutletContext",
|
|
569
|
+
"ngTemplateOutlet",
|
|
570
|
+
"ngTemplateOutletInjector"
|
|
571
|
+
]
|
|
572
|
+
}, {
|
|
573
|
+
kind: "component",
|
|
574
|
+
type: AerisButtonDirective,
|
|
575
|
+
selector: "button[aerisButton], a[aerisButton]",
|
|
576
|
+
inputs: [
|
|
577
|
+
"variant",
|
|
578
|
+
"size",
|
|
579
|
+
"severity",
|
|
580
|
+
"iconPosition",
|
|
581
|
+
"loading",
|
|
582
|
+
"disabled",
|
|
583
|
+
"showSpinner",
|
|
584
|
+
"iconOnly",
|
|
585
|
+
"raised",
|
|
586
|
+
"rounded",
|
|
587
|
+
"fluid"
|
|
588
|
+
]
|
|
589
|
+
}]
|
|
590
|
+
});
|
|
591
|
+
};
|
|
592
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
593
|
+
minVersion: "12.0.0",
|
|
594
|
+
version: "22.2.1",
|
|
595
|
+
ngImport: i0,
|
|
596
|
+
type: AerisButtonComponent,
|
|
597
|
+
decorators: [{
|
|
598
|
+
type: Component,
|
|
599
|
+
args: [{
|
|
600
|
+
selector: "aeris-button",
|
|
601
|
+
imports: [NgTemplateOutlet, AerisButtonDirective],
|
|
602
|
+
template: `
|
|
163
603
|
<button
|
|
164
604
|
aerisButton
|
|
165
605
|
[type]="type()"
|
|
@@ -214,15 +654,195 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImpor
|
|
|
214
654
|
}
|
|
215
655
|
}
|
|
216
656
|
</button>
|
|
217
|
-
`,
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
657
|
+
`,
|
|
658
|
+
host: { "[attr.data-fluid]": "fluid() || null" },
|
|
659
|
+
styles: [":host{display:inline-block}:host([data-fluid=true]){display:block;width:100%}:host([data-fluid=true]) .aeris-button{width:100%}.aeris-button-component__label{display:inline-flex}.aeris-button-component__badge{min-width:1.2rem;height:1.2rem;display:inline-grid;place-items:center;padding:0 .35rem;border:1px solid color-mix(in srgb,var(--_badge-color) 28%,transparent);border-radius:999px;background:var(--aeris-surface, #fff);color:var(--_badge-color);box-shadow:0 1px 1px #00000014;font-size:.625rem;font-weight:700}.aeris-button-component__badge[data-severity=primary]{--_badge-color: var(--aeris-primary-text, #2c694b)}.aeris-button-component__badge[data-severity=secondary]{--_badge-color: var(--aeris-text-2, #555555)}.aeris-button-component__badge[data-severity=success]{--_badge-color: #52744d}.aeris-button-component__badge[data-severity=info]{--_badge-color: #536d78}.aeris-button-component__badge[data-severity=warning]{--_badge-color: #805a34}.aeris-button-component__badge[data-severity=danger]{--_badge-color: var(--aeris-danger, #c81e2a)}.aeris-button-component__badge[data-severity=contrast]{--_badge-color: var(--aeris-text, #222222)}\n"]
|
|
660
|
+
}]
|
|
661
|
+
}],
|
|
662
|
+
propDecorators: {
|
|
663
|
+
type: [{
|
|
664
|
+
type: i0.Input,
|
|
665
|
+
args: [{
|
|
666
|
+
isSignal: true,
|
|
667
|
+
alias: "type",
|
|
668
|
+
required: false
|
|
669
|
+
}]
|
|
670
|
+
}],
|
|
671
|
+
label: [{
|
|
672
|
+
type: i0.Input,
|
|
673
|
+
args: [{
|
|
674
|
+
isSignal: true,
|
|
675
|
+
alias: "label",
|
|
676
|
+
required: false
|
|
677
|
+
}]
|
|
678
|
+
}],
|
|
679
|
+
badge: [{
|
|
680
|
+
type: i0.Input,
|
|
681
|
+
args: [{
|
|
682
|
+
isSignal: true,
|
|
683
|
+
alias: "badge",
|
|
684
|
+
required: false
|
|
685
|
+
}]
|
|
686
|
+
}],
|
|
687
|
+
badgeSeverity: [{
|
|
688
|
+
type: i0.Input,
|
|
689
|
+
args: [{
|
|
690
|
+
isSignal: true,
|
|
691
|
+
alias: "badgeSeverity",
|
|
692
|
+
required: false
|
|
693
|
+
}]
|
|
694
|
+
}],
|
|
695
|
+
ariaLabel: [{
|
|
696
|
+
type: i0.Input,
|
|
697
|
+
args: [{
|
|
698
|
+
isSignal: true,
|
|
699
|
+
alias: "ariaLabel",
|
|
700
|
+
required: false
|
|
701
|
+
}]
|
|
702
|
+
}],
|
|
703
|
+
tabIndex: [{
|
|
704
|
+
type: i0.Input,
|
|
705
|
+
args: [{
|
|
706
|
+
isSignal: true,
|
|
707
|
+
alias: "tabIndex",
|
|
708
|
+
required: false
|
|
709
|
+
}]
|
|
710
|
+
}],
|
|
711
|
+
autofocus: [{
|
|
712
|
+
type: i0.Input,
|
|
713
|
+
args: [{
|
|
714
|
+
isSignal: true,
|
|
715
|
+
alias: "autofocus",
|
|
716
|
+
required: false
|
|
717
|
+
}]
|
|
718
|
+
}],
|
|
719
|
+
disabled: [{
|
|
720
|
+
type: i0.Input,
|
|
721
|
+
args: [{
|
|
722
|
+
isSignal: true,
|
|
723
|
+
alias: "disabled",
|
|
724
|
+
required: false
|
|
725
|
+
}]
|
|
726
|
+
}],
|
|
727
|
+
variant: [{
|
|
728
|
+
type: i0.Input,
|
|
729
|
+
args: [{
|
|
730
|
+
isSignal: true,
|
|
731
|
+
alias: "variant",
|
|
732
|
+
required: false
|
|
733
|
+
}]
|
|
734
|
+
}],
|
|
735
|
+
severity: [{
|
|
736
|
+
type: i0.Input,
|
|
737
|
+
args: [{
|
|
738
|
+
isSignal: true,
|
|
739
|
+
alias: "severity",
|
|
740
|
+
required: false
|
|
741
|
+
}]
|
|
742
|
+
}],
|
|
743
|
+
size: [{
|
|
744
|
+
type: i0.Input,
|
|
745
|
+
args: [{
|
|
746
|
+
isSignal: true,
|
|
747
|
+
alias: "size",
|
|
748
|
+
required: false
|
|
749
|
+
}]
|
|
750
|
+
}],
|
|
751
|
+
iconPosition: [{
|
|
752
|
+
type: i0.Input,
|
|
753
|
+
args: [{
|
|
754
|
+
isSignal: true,
|
|
755
|
+
alias: "iconPosition",
|
|
756
|
+
required: false
|
|
757
|
+
}]
|
|
758
|
+
}],
|
|
759
|
+
loading: [{
|
|
760
|
+
type: i0.Input,
|
|
761
|
+
args: [{
|
|
762
|
+
isSignal: true,
|
|
763
|
+
alias: "loading",
|
|
764
|
+
required: false
|
|
765
|
+
}]
|
|
766
|
+
}],
|
|
767
|
+
showSpinner: [{
|
|
768
|
+
type: i0.Input,
|
|
769
|
+
args: [{
|
|
770
|
+
isSignal: true,
|
|
771
|
+
alias: "showSpinner",
|
|
772
|
+
required: false
|
|
773
|
+
}]
|
|
774
|
+
}],
|
|
775
|
+
iconOnly: [{
|
|
776
|
+
type: i0.Input,
|
|
777
|
+
args: [{
|
|
778
|
+
isSignal: true,
|
|
779
|
+
alias: "iconOnly",
|
|
780
|
+
required: false
|
|
781
|
+
}]
|
|
782
|
+
}],
|
|
783
|
+
raised: [{
|
|
784
|
+
type: i0.Input,
|
|
785
|
+
args: [{
|
|
786
|
+
isSignal: true,
|
|
787
|
+
alias: "raised",
|
|
788
|
+
required: false
|
|
789
|
+
}]
|
|
790
|
+
}],
|
|
791
|
+
rounded: [{
|
|
792
|
+
type: i0.Input,
|
|
793
|
+
args: [{
|
|
794
|
+
isSignal: true,
|
|
795
|
+
alias: "rounded",
|
|
796
|
+
required: false
|
|
797
|
+
}]
|
|
798
|
+
}],
|
|
799
|
+
fluid: [{
|
|
800
|
+
type: i0.Input,
|
|
801
|
+
args: [{
|
|
802
|
+
isSignal: true,
|
|
803
|
+
alias: "fluid",
|
|
804
|
+
required: false
|
|
805
|
+
}]
|
|
806
|
+
}],
|
|
807
|
+
contentTemplate: [{
|
|
808
|
+
type: i0.Input,
|
|
809
|
+
args: [{
|
|
810
|
+
isSignal: true,
|
|
811
|
+
alias: "contentTemplate",
|
|
812
|
+
required: false
|
|
813
|
+
}]
|
|
814
|
+
}],
|
|
815
|
+
iconTemplate: [{
|
|
816
|
+
type: i0.Input,
|
|
817
|
+
args: [{
|
|
818
|
+
isSignal: true,
|
|
819
|
+
alias: "iconTemplate",
|
|
820
|
+
required: false
|
|
821
|
+
}]
|
|
822
|
+
}],
|
|
823
|
+
loadingIconTemplate: [{
|
|
824
|
+
type: i0.Input,
|
|
825
|
+
args: [{
|
|
826
|
+
isSignal: true,
|
|
827
|
+
alias: "loadingIconTemplate",
|
|
828
|
+
required: false
|
|
829
|
+
}]
|
|
830
|
+
}],
|
|
831
|
+
clicked: [{
|
|
832
|
+
type: i0.Output,
|
|
833
|
+
args: ["clicked"]
|
|
834
|
+
}],
|
|
835
|
+
focused: [{
|
|
836
|
+
type: i0.Output,
|
|
837
|
+
args: ["focused"]
|
|
838
|
+
}],
|
|
839
|
+
blurred: [{
|
|
840
|
+
type: i0.Output,
|
|
841
|
+
args: ["blurred"]
|
|
842
|
+
}]
|
|
843
|
+
}
|
|
844
|
+
});
|
|
221
845
|
const AerisButton = [AerisButtonDirective, AerisButtonComponent];
|
|
222
|
-
|
|
223
|
-
/**
|
|
224
|
-
* Generated bundle index. Do not edit.
|
|
225
|
-
*/
|
|
226
|
-
|
|
227
846
|
export { AerisButton, AerisButtonComponent, AerisButtonDirective };
|
|
228
|
-
|
|
847
|
+
|
|
848
|
+
//# sourceMappingURL=aeris-ui-core-button.mjs.map
|