@aeris-ui/core 22.0.0-alpha.0 → 22.0.0-alpha.10
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 +14 -3
- 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 +1228 -446
- 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 +209 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +581 -189
- 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 +741 -139
- 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 +773 -369
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +1171 -521
- 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 +440 -140
- 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-code-block.mjs +637 -0
- package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs +1340 -700
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-compare.mjs +823 -318
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1404 -555
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1471 -740
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +918 -443
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker.mjs +1942 -1123
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1079 -346
- 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 +1015 -322
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +410 -254
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +967 -587
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1379 -522
- 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 +688 -0
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-galleria.mjs +2446 -1117
- 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 -98
- 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 -107
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +658 -255
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +926 -291
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +625 -158
- 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 +613 -382
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1062 -472
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +994 -393
- 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 +623 -230
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1598 -561
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-order-list.mjs +592 -220
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +485 -199
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +428 -123
- 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 +925 -249
- 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 +912 -375
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +549 -176
- 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 +394 -124
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +506 -231
- 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 +226 -63
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select.mjs +1845 -648
- 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 +884 -430
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +861 -337
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +955 -266
- 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 +2034 -869
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +789 -279
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +856 -219
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1284 -1399
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +132 -144
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +909 -441
- 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 +1076 -384
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
- 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 +625 -330
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +1453 -621
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2019 -940
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1107 -658
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +985 -316
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +20 -8
- package/schematics/ng-add/schema.json +1 -1
- package/schematics/runtime/schematics/ng-add/options.js +4 -4
- package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
- package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
- package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-contrast.js +6 -17
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-foundation.js +10 -4
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +28 -5
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +2 -2
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +22 -8
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +12 -4
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +7 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +49 -33
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_fallback-colors.scss +10 -0
- package/styles/_mobile.scss +16 -0
- package/styles/_tokens.scss +5 -5
- package/styles/aeris.css +412 -125
- package/styles/controls.css +61 -29
- package/tools/aeris-theme.mjs +2 -2
- package/tools/aeris-theme.schema.json +5 -2
- package/types/aeris-ui-core-accordion.d.ts +167 -93
- package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
- package/types/aeris-ui-core-auto-complete.d.ts +327 -140
- 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 -46
- package/types/aeris-ui-core-block-ui.d.ts +47 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
- package/types/aeris-ui-core-button-group.d.ts +37 -16
- package/types/aeris-ui-core-button.d.ts +226 -67
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +201 -117
- package/types/aeris-ui-core-cascade-select.d.ts +257 -123
- package/types/aeris-ui-core-chart.d.ts +134 -84
- package/types/aeris-ui-core-checkbox.d.ts +139 -54
- 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-code-block.d.ts +188 -0
- package/types/aeris-ui-core-color-picker.d.ts +348 -143
- package/types/aeris-ui-core-compare.d.ts +224 -102
- package/types/aeris-ui-core-confirm-dialog.d.ts +442 -245
- package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
- package/types/aeris-ui-core-context-menu.d.ts +264 -146
- package/types/aeris-ui-core-date-picker.d.ts +489 -217
- package/types/aeris-ui-core-dialog.d.ts +288 -117
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +273 -112
- package/types/aeris-ui-core-dynamic-dialog.d.ts +158 -137
- package/types/aeris-ui-core-editor.d.ts +250 -123
- package/types/aeris-ui-core-file-upload.d.ts +367 -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 +163 -0
- package/types/aeris-ui-core-galleria.d.ts +588 -256
- package/types/aeris-ui-core-glass.d.ts +24 -11
- package/types/aeris-ui-core-icon-field.d.ts +94 -32
- package/types/aeris-ui-core-inplace.d.ts +123 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -33
- package/types/aeris-ui-core-input-mask.d.ts +194 -69
- package/types/aeris-ui-core-input-number.d.ts +272 -87
- package/types/aeris-ui-core-input-otp.d.ts +191 -81
- package/types/aeris-ui-core-input-text.d.ts +185 -60
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-mega-menu.d.ts +175 -121
- package/types/aeris-ui-core-menu.d.ts +277 -168
- package/types/aeris-ui-core-menubar.d.ts +273 -135
- package/types/aeris-ui-core-message.d.ts +132 -60
- package/types/aeris-ui-core-meter-group.d.ts +163 -90
- package/types/aeris-ui-core-multi-select.d.ts +439 -180
- package/types/aeris-ui-core-order-list.d.ts +144 -66
- package/types/aeris-ui-core-organization-chart.d.ts +133 -77
- package/types/aeris-ui-core-paginator.d.ts +93 -38
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +258 -102
- package/types/aeris-ui-core-pick-list.d.ts +374 -179
- package/types/aeris-ui-core-popover.d.ts +219 -105
- package/types/aeris-ui-core-progress-bar.d.ts +157 -73
- package/types/aeris-ui-core-progress-spinner.d.ts +110 -48
- package/types/aeris-ui-core-radio-button.d.ts +124 -50
- 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 +66 -29
- package/types/aeris-ui-core-select.d.ts +475 -217
- package/types/aeris-ui-core-skeleton.d.ts +39 -17
- package/types/aeris-ui-core-slider.d.ts +270 -115
- package/types/aeris-ui-core-speed-dial.d.ts +241 -111
- package/types/aeris-ui-core-split-button.d.ts +267 -113
- package/types/aeris-ui-core-splitter.d.ts +225 -106
- package/types/aeris-ui-core-stepper.d.ts +184 -91
- package/types/aeris-ui-core-style-class.d.ts +141 -71
- package/types/aeris-ui-core-table.d.ts +596 -304
- package/types/aeris-ui-core-tabs.d.ts +181 -76
- package/types/aeris-ui-core-textarea.d.ts +261 -78
- package/types/aeris-ui-core-theme-builder.d.ts +472 -450
- package/types/aeris-ui-core-theming.d.ts +42 -45
- package/types/aeris-ui-core-tiered-menu.d.ts +251 -142
- package/types/aeris-ui-core-timeline.d.ts +109 -71
- package/types/aeris-ui-core-toast.d.ts +225 -115
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
- package/types/aeris-ui-core-toolbar.d.ts +98 -41
- package/types/aeris-ui-core-tooltip.d.ts +157 -88
- package/types/aeris-ui-core-tree-select.d.ts +364 -171
- package/types/aeris-ui-core-tree-table.d.ts +566 -286
- package/types/aeris-ui-core-tree.d.ts +270 -165
- package/types/aeris-ui-core.d.ts +197 -72
|
@@ -1,119 +1,296 @@
|
|
|
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, effect, inject, input, model, numberAttribute, output } from "@angular/core";
|
|
4
|
+
var AerisMessageIconTemplate = class AerisMessageIconTemplate {
|
|
5
|
+
template = inject(TemplateRef);
|
|
6
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
7
|
+
minVersion: "12.0.0",
|
|
8
|
+
version: "22.2.2",
|
|
9
|
+
ngImport: i0,
|
|
10
|
+
type: AerisMessageIconTemplate,
|
|
11
|
+
deps: [],
|
|
12
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
13
|
+
});
|
|
14
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
15
|
+
minVersion: "14.0.0",
|
|
16
|
+
version: "22.2.2",
|
|
17
|
+
type: AerisMessageIconTemplate,
|
|
18
|
+
isStandalone: true,
|
|
19
|
+
selector: "ng-template[aerisMessageIcon]",
|
|
20
|
+
ngImport: i0
|
|
21
|
+
});
|
|
22
|
+
};
|
|
23
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
24
|
+
minVersion: "12.0.0",
|
|
25
|
+
version: "22.2.2",
|
|
26
|
+
ngImport: i0,
|
|
27
|
+
type: AerisMessageIconTemplate,
|
|
28
|
+
decorators: [{
|
|
29
|
+
type: Directive,
|
|
30
|
+
args: [{ selector: "ng-template[aerisMessageIcon]" }]
|
|
31
|
+
}]
|
|
32
|
+
});
|
|
33
|
+
var AerisMessageContentTemplate = class AerisMessageContentTemplate {
|
|
34
|
+
template = inject(TemplateRef);
|
|
35
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
36
|
+
minVersion: "12.0.0",
|
|
37
|
+
version: "22.2.2",
|
|
38
|
+
ngImport: i0,
|
|
39
|
+
type: AerisMessageContentTemplate,
|
|
40
|
+
deps: [],
|
|
41
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
42
|
+
});
|
|
43
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
44
|
+
minVersion: "14.0.0",
|
|
45
|
+
version: "22.2.2",
|
|
46
|
+
type: AerisMessageContentTemplate,
|
|
47
|
+
isStandalone: true,
|
|
48
|
+
selector: "ng-template[aerisMessageContent]",
|
|
49
|
+
ngImport: i0
|
|
50
|
+
});
|
|
51
|
+
};
|
|
52
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
53
|
+
minVersion: "12.0.0",
|
|
54
|
+
version: "22.2.2",
|
|
55
|
+
ngImport: i0,
|
|
56
|
+
type: AerisMessageContentTemplate,
|
|
57
|
+
decorators: [{
|
|
58
|
+
type: Directive,
|
|
59
|
+
args: [{ selector: "ng-template[aerisMessageContent]" }]
|
|
60
|
+
}]
|
|
61
|
+
});
|
|
23
62
|
let nextMessageId = 0;
|
|
24
|
-
class AerisMessage {
|
|
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
|
-
|
|
63
|
+
var AerisMessage = class AerisMessage {
|
|
64
|
+
generatedId = `aeris-message-${++nextMessageId}`;
|
|
65
|
+
iconTemplate = contentChild(AerisMessageIconTemplate, ...ngDevMode ? [{ debugName: "iconTemplate" }] : /* istanbul ignore next */ []);
|
|
66
|
+
contentTemplate = contentChild(AerisMessageContentTemplate, ...ngDevMode ? [{ debugName: "contentTemplate" }] : /* istanbul ignore next */ []);
|
|
67
|
+
lifeTimer;
|
|
68
|
+
visible = model(true, ...ngDevMode ? [{ debugName: "visible" }] : /* istanbul ignore next */ []);
|
|
69
|
+
id = input(this.generatedId, ...ngDevMode ? [{ debugName: "id" }] : /* istanbul ignore next */ []);
|
|
70
|
+
severity = input("info", ...ngDevMode ? [{ debugName: "severity" }] : /* istanbul ignore next */ []);
|
|
71
|
+
variant = input("filled", ...ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []);
|
|
72
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
73
|
+
text = input("", ...ngDevMode ? [{ debugName: "text" }] : /* istanbul ignore next */ []);
|
|
74
|
+
closable = input(false, {
|
|
75
|
+
...ngDevMode ? { debugName: "closable" } : /* istanbul ignore next */ {},
|
|
76
|
+
transform: booleanAttribute
|
|
77
|
+
});
|
|
78
|
+
life = input(0, {
|
|
79
|
+
...ngDevMode ? { debugName: "life" } : /* istanbul ignore next */ {},
|
|
80
|
+
transform: numberAttribute
|
|
81
|
+
});
|
|
82
|
+
showIcon = input(true, {
|
|
83
|
+
...ngDevMode ? { debugName: "showIcon" } : /* istanbul ignore next */ {},
|
|
84
|
+
transform: booleanAttribute
|
|
85
|
+
});
|
|
86
|
+
role = input("", ...ngDevMode ? [{ debugName: "role" }] : /* istanbul ignore next */ []);
|
|
87
|
+
ariaLive = input("", ...ngDevMode ? [{ debugName: "ariaLive" }] : /* istanbul ignore next */ []);
|
|
88
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
89
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
90
|
+
closeAriaLabel = input("Close message", ...ngDevMode ? [{ debugName: "closeAriaLabel" }] : /* istanbul ignore next */ []);
|
|
91
|
+
closed = output();
|
|
92
|
+
visibilityChanged = output();
|
|
93
|
+
resolvedRole = computed(() => {
|
|
94
|
+
const role = this.role();
|
|
95
|
+
if (role) return role;
|
|
96
|
+
return this.severity() === "danger" || this.severity() === "warning" ? "alert" : "status";
|
|
97
|
+
}, ...ngDevMode ? [{ debugName: "resolvedRole" }] : /* istanbul ignore next */ []);
|
|
98
|
+
resolvedLive = computed(() => {
|
|
99
|
+
const live = this.ariaLive();
|
|
100
|
+
if (live) return live;
|
|
101
|
+
return this.resolvedRole() === "alert" ? "assertive" : "polite";
|
|
102
|
+
}, ...ngDevMode ? [{ debugName: "resolvedLive" }] : /* istanbul ignore next */ []);
|
|
103
|
+
templateContext = computed(() => ({
|
|
104
|
+
$implicit: this,
|
|
105
|
+
message: this,
|
|
106
|
+
close: (event) => this.close(event ?? null, "api"),
|
|
107
|
+
severity: this.severity()
|
|
108
|
+
}), ...ngDevMode ? [{ debugName: "templateContext" }] : /* istanbul ignore next */ []);
|
|
109
|
+
constructor() {
|
|
110
|
+
effect((onCleanup) => {
|
|
111
|
+
if (!this.visible()) {
|
|
112
|
+
this.clearLifeTimer();
|
|
113
|
+
return;
|
|
114
|
+
}
|
|
115
|
+
const life = this.life();
|
|
116
|
+
if (Number.isFinite(life) && life > 0) this.lifeTimer = globalThis.setTimeout(() => this.close(null, "timeout"), life);
|
|
117
|
+
onCleanup(() => this.clearLifeTimer());
|
|
118
|
+
});
|
|
119
|
+
}
|
|
120
|
+
close(originalEvent = null, reason = "api") {
|
|
121
|
+
if (!this.visible()) return;
|
|
122
|
+
this.clearLifeTimer();
|
|
123
|
+
this.visible.set(false);
|
|
124
|
+
this.visibilityChanged.emit(false);
|
|
125
|
+
this.closed.emit({
|
|
126
|
+
originalEvent,
|
|
127
|
+
reason
|
|
128
|
+
});
|
|
129
|
+
}
|
|
130
|
+
show() {
|
|
131
|
+
if (this.visible()) return;
|
|
132
|
+
this.visible.set(true);
|
|
133
|
+
this.visibilityChanged.emit(true);
|
|
134
|
+
}
|
|
135
|
+
hide() {
|
|
136
|
+
this.close(null, "api");
|
|
137
|
+
}
|
|
138
|
+
clearLifeTimer() {
|
|
139
|
+
if (!this.lifeTimer) return;
|
|
140
|
+
globalThis.clearTimeout(this.lifeTimer);
|
|
141
|
+
this.lifeTimer = void 0;
|
|
142
|
+
}
|
|
143
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
144
|
+
minVersion: "12.0.0",
|
|
145
|
+
version: "22.2.2",
|
|
146
|
+
ngImport: i0,
|
|
147
|
+
type: AerisMessage,
|
|
148
|
+
deps: [],
|
|
149
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
150
|
+
});
|
|
151
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
152
|
+
minVersion: "17.0.0",
|
|
153
|
+
version: "22.2.2",
|
|
154
|
+
type: AerisMessage,
|
|
155
|
+
isStandalone: true,
|
|
156
|
+
selector: "aeris-message",
|
|
157
|
+
inputs: {
|
|
158
|
+
visible: {
|
|
159
|
+
classPropertyName: "visible",
|
|
160
|
+
publicName: "visible",
|
|
161
|
+
isSignal: true,
|
|
162
|
+
isRequired: false,
|
|
163
|
+
transformFunction: null
|
|
164
|
+
},
|
|
165
|
+
id: {
|
|
166
|
+
classPropertyName: "id",
|
|
167
|
+
publicName: "id",
|
|
168
|
+
isSignal: true,
|
|
169
|
+
isRequired: false,
|
|
170
|
+
transformFunction: null
|
|
171
|
+
},
|
|
172
|
+
severity: {
|
|
173
|
+
classPropertyName: "severity",
|
|
174
|
+
publicName: "severity",
|
|
175
|
+
isSignal: true,
|
|
176
|
+
isRequired: false,
|
|
177
|
+
transformFunction: null
|
|
178
|
+
},
|
|
179
|
+
variant: {
|
|
180
|
+
classPropertyName: "variant",
|
|
181
|
+
publicName: "variant",
|
|
182
|
+
isSignal: true,
|
|
183
|
+
isRequired: false,
|
|
184
|
+
transformFunction: null
|
|
185
|
+
},
|
|
186
|
+
size: {
|
|
187
|
+
classPropertyName: "size",
|
|
188
|
+
publicName: "size",
|
|
189
|
+
isSignal: true,
|
|
190
|
+
isRequired: false,
|
|
191
|
+
transformFunction: null
|
|
192
|
+
},
|
|
193
|
+
text: {
|
|
194
|
+
classPropertyName: "text",
|
|
195
|
+
publicName: "text",
|
|
196
|
+
isSignal: true,
|
|
197
|
+
isRequired: false,
|
|
198
|
+
transformFunction: null
|
|
199
|
+
},
|
|
200
|
+
closable: {
|
|
201
|
+
classPropertyName: "closable",
|
|
202
|
+
publicName: "closable",
|
|
203
|
+
isSignal: true,
|
|
204
|
+
isRequired: false,
|
|
205
|
+
transformFunction: null
|
|
206
|
+
},
|
|
207
|
+
life: {
|
|
208
|
+
classPropertyName: "life",
|
|
209
|
+
publicName: "life",
|
|
210
|
+
isSignal: true,
|
|
211
|
+
isRequired: false,
|
|
212
|
+
transformFunction: null
|
|
213
|
+
},
|
|
214
|
+
showIcon: {
|
|
215
|
+
classPropertyName: "showIcon",
|
|
216
|
+
publicName: "showIcon",
|
|
217
|
+
isSignal: true,
|
|
218
|
+
isRequired: false,
|
|
219
|
+
transformFunction: null
|
|
220
|
+
},
|
|
221
|
+
role: {
|
|
222
|
+
classPropertyName: "role",
|
|
223
|
+
publicName: "role",
|
|
224
|
+
isSignal: true,
|
|
225
|
+
isRequired: false,
|
|
226
|
+
transformFunction: null
|
|
227
|
+
},
|
|
228
|
+
ariaLive: {
|
|
229
|
+
classPropertyName: "ariaLive",
|
|
230
|
+
publicName: "ariaLive",
|
|
231
|
+
isSignal: true,
|
|
232
|
+
isRequired: false,
|
|
233
|
+
transformFunction: null
|
|
234
|
+
},
|
|
235
|
+
ariaLabel: {
|
|
236
|
+
classPropertyName: "ariaLabel",
|
|
237
|
+
publicName: "ariaLabel",
|
|
238
|
+
isSignal: true,
|
|
239
|
+
isRequired: false,
|
|
240
|
+
transformFunction: null
|
|
241
|
+
},
|
|
242
|
+
ariaLabelledBy: {
|
|
243
|
+
classPropertyName: "ariaLabelledBy",
|
|
244
|
+
publicName: "ariaLabelledBy",
|
|
245
|
+
isSignal: true,
|
|
246
|
+
isRequired: false,
|
|
247
|
+
transformFunction: null
|
|
248
|
+
},
|
|
249
|
+
closeAriaLabel: {
|
|
250
|
+
classPropertyName: "closeAriaLabel",
|
|
251
|
+
publicName: "closeAriaLabel",
|
|
252
|
+
isSignal: true,
|
|
253
|
+
isRequired: false,
|
|
254
|
+
transformFunction: null
|
|
255
|
+
}
|
|
256
|
+
},
|
|
257
|
+
outputs: {
|
|
258
|
+
visible: "visibleChange",
|
|
259
|
+
closed: "closed",
|
|
260
|
+
visibilityChanged: "visibilityChanged"
|
|
261
|
+
},
|
|
262
|
+
host: {
|
|
263
|
+
properties: {
|
|
264
|
+
"attr.id": "id()",
|
|
265
|
+
"attr.role": "visible() ? resolvedRole() : null",
|
|
266
|
+
"attr.aria-live": "visible() ? resolvedLive() : null",
|
|
267
|
+
"attr.aria-atomic": "visible() ? \"true\" : null",
|
|
268
|
+
"attr.aria-label": "visible() && ariaLabel() ? ariaLabel() : null",
|
|
269
|
+
"attr.aria-labelledby": "visible() && ariaLabelledBy() ? ariaLabelledBy() : null",
|
|
270
|
+
"attr.data-visible": "visible() || null",
|
|
271
|
+
"attr.data-severity": "severity()",
|
|
272
|
+
"attr.data-variant": "variant()",
|
|
273
|
+
"attr.data-size": "size()",
|
|
274
|
+
"attr.data-closable": "closable() || null",
|
|
275
|
+
"attr.data-icon": "showIcon() || null"
|
|
276
|
+
},
|
|
277
|
+
classAttribute: "aeris-message"
|
|
278
|
+
},
|
|
279
|
+
queries: [{
|
|
280
|
+
propertyName: "iconTemplate",
|
|
281
|
+
first: true,
|
|
282
|
+
predicate: AerisMessageIconTemplate,
|
|
283
|
+
descendants: true,
|
|
284
|
+
isSignal: true
|
|
285
|
+
}, {
|
|
286
|
+
propertyName: "contentTemplate",
|
|
287
|
+
first: true,
|
|
288
|
+
predicate: AerisMessageContentTemplate,
|
|
289
|
+
descendants: true,
|
|
290
|
+
isSignal: true
|
|
291
|
+
}],
|
|
292
|
+
ngImport: i0,
|
|
293
|
+
template: `
|
|
117
294
|
@if (visible()) {
|
|
118
295
|
@if (showIcon()) {
|
|
119
296
|
<span class="aeris-message__icon" aria-hidden="true">
|
|
@@ -152,11 +329,32 @@ class AerisMessage {
|
|
|
152
329
|
</button>
|
|
153
330
|
}
|
|
154
331
|
}
|
|
155
|
-
`,
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
332
|
+
`,
|
|
333
|
+
isInline: true,
|
|
334
|
+
styles: [":host{--_accent: var(--aeris-primary, #111111);--_surface: color-mix( in srgb, var(--_accent) var(--aeris-message-severity-tint, 9%), var(--aeris-surface, #fff) );--_text: var(--aeris-text, #111111);--_muted: var(--aeris-text-2, #454545);min-width:0;display:inline-grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.625rem;padding:.625rem .75rem;border:1px solid var(--aeris-message-border-color, var(--_accent));border-radius:var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem));background:var(--aeris-message-background, var(--_surface));color:var(--_text);box-shadow:var(--aeris-shadow-sm, 0 2px 5px rgba(0, 0, 0, .14));font-size:var(--aeris-font-size-lg, .875rem);line-height:1.45;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}:host(:not([data-visible])){display:none}:host([data-severity=success]){--_accent: var(--aeris-success, #6f8a68)}:host([data-severity=info]){--_accent: var(--aeris-info, #6b8793)}:host([data-severity=warning]){--_accent: var(--aeris-warning, #c38600)}:host([data-severity=danger]){--_accent: var(--aeris-danger, #c81e2a)}:host([data-severity=neutral]),:host([data-severity=secondary]){--_accent: var(--aeris-text-2, #454545)}:host([data-severity=contrast]){--_accent: var(--aeris-text, #111111)}:host([data-variant=outlined]){--_surface: transparent;background:transparent;box-shadow:none}:host([data-variant=simple]){--_surface: transparent;padding-inline:0;border-color:transparent;background:transparent;box-shadow:none}:host([data-size=sm]){gap:.5rem;padding:.45rem .625rem;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));font-size:var(--aeris-font-size-md, .8125rem)}:host([data-size=lg]){gap:.75rem;padding:.8125rem .95rem;font-size:var(--aeris-font-size-xl, .9375rem)}:host([data-size=sm][data-variant=simple]){padding-inline:0}:host([data-size=lg][data-variant=simple]){padding-inline:0}.aeris-message__icon{width:var(--aeris-message-icon-size, 1.15rem);height:var(--aeris-message-icon-size, 1.15rem);display:inline-grid;place-items:center;color:var(--_accent)}:host([data-size=sm]) .aeris-message__icon{--aeris-message-icon-size: 1rem}:host([data-size=lg]) .aeris-message__icon{--aeris-message-icon-size: 1.35rem}.aeris-message__default-icon{position:relative;width:var(--aeris-message-icon-size, 1.15rem);height:var(--aeris-message-icon-size, 1.15rem);display:block;border:2px solid currentColor;border-radius:var(--aeris-radius-pill, 999px)}.aeris-message__default-icon:before,.aeris-message__default-icon:after{position:absolute;content:\"\";background:currentColor}.aeris-message__default-icon:before{width:.125rem;height:.4rem;top:.45rem;left:50%;border-radius:var(--aeris-radius-pill, 999px);transform:translate(-50%)}.aeris-message__default-icon:after{width:.15625rem;height:.15625rem;top:.22rem;left:50%;border-radius:var(--aeris-radius-pill, 999px);transform:translate(-50%)}:host([data-severity=success]) .aeris-message__default-icon{border-color:transparent}:host([data-severity=success]) .aeris-message__default-icon:before{inset:0;width:100%;height:100%;background:currentColor;transform:none;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.25 8.25 6.6 11.6 12.8 4.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center/100% 100% no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.25 8.25 6.6 11.6 12.8 4.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center/100% 100% no-repeat}:host([data-severity=success]) .aeris-message__default-icon:after{display:none}:host([data-severity=danger]) .aeris-message__default-icon:before,:host([data-severity=danger]) .aeris-message__default-icon:after{width:.65rem;height:.125rem;top:50%;left:50%;border-radius:var(--aeris-radius-pill, 999px)}:host([data-severity=danger]) .aeris-message__default-icon:before{transform:translate(-50%,-50%) rotate(45deg)}:host([data-severity=danger]) .aeris-message__default-icon:after{transform:translate(-50%,-50%) rotate(-45deg)}.aeris-message__content{min-width:0;color:inherit}.aeris-message__close{width:1.875rem;height:1.875rem;display:inline-grid;place-items:center;margin:-.25rem -.25rem -.25rem 0;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--_muted);cursor:pointer}@media(hover:hover){.aeris-message__close:hover{background:color-mix(in srgb,var(--aeris-text, #111111) 8%,transparent);color:var(--aeris-text, #111111)}}.aeris-message__close:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-message__close span{width:.8rem;height:.8rem;display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}@media(prefers-reduced-motion:reduce){:host{transition:none}}\n"],
|
|
335
|
+
dependencies: [{
|
|
336
|
+
kind: "directive",
|
|
337
|
+
type: NgTemplateOutlet,
|
|
338
|
+
selector: "[ngTemplateOutlet]",
|
|
339
|
+
inputs: [
|
|
340
|
+
"ngTemplateOutletContext",
|
|
341
|
+
"ngTemplateOutlet",
|
|
342
|
+
"ngTemplateOutletInjector"
|
|
343
|
+
]
|
|
344
|
+
}]
|
|
345
|
+
});
|
|
346
|
+
};
|
|
347
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
348
|
+
minVersion: "12.0.0",
|
|
349
|
+
version: "22.2.2",
|
|
350
|
+
ngImport: i0,
|
|
351
|
+
type: AerisMessage,
|
|
352
|
+
decorators: [{
|
|
353
|
+
type: Component,
|
|
354
|
+
args: [{
|
|
355
|
+
selector: "aeris-message",
|
|
356
|
+
imports: [NgTemplateOutlet],
|
|
357
|
+
template: `
|
|
160
358
|
@if (visible()) {
|
|
161
359
|
@if (showIcon()) {
|
|
162
360
|
<span class="aeris-message__icon" aria-hidden="true">
|
|
@@ -195,31 +393,165 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
195
393
|
</button>
|
|
196
394
|
}
|
|
197
395
|
}
|
|
198
|
-
`,
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
396
|
+
`,
|
|
397
|
+
host: {
|
|
398
|
+
class: "aeris-message",
|
|
399
|
+
"[attr.id]": "id()",
|
|
400
|
+
"[attr.role]": "visible() ? resolvedRole() : null",
|
|
401
|
+
"[attr.aria-live]": "visible() ? resolvedLive() : null",
|
|
402
|
+
"[attr.aria-atomic]": "visible() ? \"true\" : null",
|
|
403
|
+
"[attr.aria-label]": "visible() && ariaLabel() ? ariaLabel() : null",
|
|
404
|
+
"[attr.aria-labelledby]": "visible() && ariaLabelledBy() ? ariaLabelledBy() : null",
|
|
405
|
+
"[attr.data-visible]": "visible() || null",
|
|
406
|
+
"[attr.data-severity]": "severity()",
|
|
407
|
+
"[attr.data-variant]": "variant()",
|
|
408
|
+
"[attr.data-size]": "size()",
|
|
409
|
+
"[attr.data-closable]": "closable() || null",
|
|
410
|
+
"[attr.data-icon]": "showIcon() || null"
|
|
411
|
+
},
|
|
412
|
+
styles: [":host{--_accent: var(--aeris-primary, #111111);--_surface: color-mix( in srgb, var(--_accent) var(--aeris-message-severity-tint, 9%), var(--aeris-surface, #fff) );--_text: var(--aeris-text, #111111);--_muted: var(--aeris-text-2, #454545);min-width:0;display:inline-grid;grid-template-columns:auto minmax(0,1fr) auto;align-items:center;gap:.625rem;padding:.625rem .75rem;border:1px solid var(--aeris-message-border-color, var(--_accent));border-radius:var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem));background:var(--aeris-message-background, var(--_surface));color:var(--_text);box-shadow:var(--aeris-shadow-sm, 0 2px 5px rgba(0, 0, 0, .14));font-size:var(--aeris-font-size-lg, .875rem);line-height:1.45;transition:background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}:host(:not([data-visible])){display:none}:host([data-severity=success]){--_accent: var(--aeris-success, #6f8a68)}:host([data-severity=info]){--_accent: var(--aeris-info, #6b8793)}:host([data-severity=warning]){--_accent: var(--aeris-warning, #c38600)}:host([data-severity=danger]){--_accent: var(--aeris-danger, #c81e2a)}:host([data-severity=neutral]),:host([data-severity=secondary]){--_accent: var(--aeris-text-2, #454545)}:host([data-severity=contrast]){--_accent: var(--aeris-text, #111111)}:host([data-variant=outlined]){--_surface: transparent;background:transparent;box-shadow:none}:host([data-variant=simple]){--_surface: transparent;padding-inline:0;border-color:transparent;background:transparent;box-shadow:none}:host([data-size=sm]){gap:.5rem;padding:.45rem .625rem;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));font-size:var(--aeris-font-size-md, .8125rem)}:host([data-size=lg]){gap:.75rem;padding:.8125rem .95rem;font-size:var(--aeris-font-size-xl, .9375rem)}:host([data-size=sm][data-variant=simple]){padding-inline:0}:host([data-size=lg][data-variant=simple]){padding-inline:0}.aeris-message__icon{width:var(--aeris-message-icon-size, 1.15rem);height:var(--aeris-message-icon-size, 1.15rem);display:inline-grid;place-items:center;color:var(--_accent)}:host([data-size=sm]) .aeris-message__icon{--aeris-message-icon-size: 1rem}:host([data-size=lg]) .aeris-message__icon{--aeris-message-icon-size: 1.35rem}.aeris-message__default-icon{position:relative;width:var(--aeris-message-icon-size, 1.15rem);height:var(--aeris-message-icon-size, 1.15rem);display:block;border:2px solid currentColor;border-radius:var(--aeris-radius-pill, 999px)}.aeris-message__default-icon:before,.aeris-message__default-icon:after{position:absolute;content:\"\";background:currentColor}.aeris-message__default-icon:before{width:.125rem;height:.4rem;top:.45rem;left:50%;border-radius:var(--aeris-radius-pill, 999px);transform:translate(-50%)}.aeris-message__default-icon:after{width:.15625rem;height:.15625rem;top:.22rem;left:50%;border-radius:var(--aeris-radius-pill, 999px);transform:translate(-50%)}:host([data-severity=success]) .aeris-message__default-icon{border-color:transparent}:host([data-severity=success]) .aeris-message__default-icon:before{inset:0;width:100%;height:100%;background:currentColor;transform:none;-webkit-mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.25 8.25 6.6 11.6 12.8 4.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center/100% 100% no-repeat;mask:url(\"data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath d='M3.25 8.25 6.6 11.6 12.8 4.8' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E\") center/100% 100% no-repeat}:host([data-severity=success]) .aeris-message__default-icon:after{display:none}:host([data-severity=danger]) .aeris-message__default-icon:before,:host([data-severity=danger]) .aeris-message__default-icon:after{width:.65rem;height:.125rem;top:50%;left:50%;border-radius:var(--aeris-radius-pill, 999px)}:host([data-severity=danger]) .aeris-message__default-icon:before{transform:translate(-50%,-50%) rotate(45deg)}:host([data-severity=danger]) .aeris-message__default-icon:after{transform:translate(-50%,-50%) rotate(-45deg)}.aeris-message__content{min-width:0;color:inherit}.aeris-message__close{width:1.875rem;height:1.875rem;display:inline-grid;place-items:center;margin:-.25rem -.25rem -.25rem 0;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--_muted);cursor:pointer}@media(hover:hover){.aeris-message__close:hover{background:color-mix(in srgb,var(--aeris-text, #111111) 8%,transparent);color:var(--aeris-text, #111111)}}.aeris-message__close:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:var(--aeris-focus-ring-offset, 2px)}.aeris-message__close span{width:.8rem;height:.8rem;display:block;background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}@media(prefers-reduced-motion:reduce){:host{transition:none}}\n"]
|
|
413
|
+
}]
|
|
414
|
+
}],
|
|
415
|
+
ctorParameters: () => [],
|
|
416
|
+
propDecorators: {
|
|
417
|
+
iconTemplate: [{
|
|
418
|
+
type: i0.ContentChild,
|
|
419
|
+
args: [i0.forwardRef(() => AerisMessageIconTemplate), { isSignal: true }]
|
|
420
|
+
}],
|
|
421
|
+
contentTemplate: [{
|
|
422
|
+
type: i0.ContentChild,
|
|
423
|
+
args: [i0.forwardRef(() => AerisMessageContentTemplate), { isSignal: true }]
|
|
424
|
+
}],
|
|
425
|
+
visible: [{
|
|
426
|
+
type: i0.Input,
|
|
427
|
+
args: [{
|
|
428
|
+
isSignal: true,
|
|
429
|
+
alias: "visible",
|
|
430
|
+
required: false
|
|
431
|
+
}]
|
|
432
|
+
}, {
|
|
433
|
+
type: i0.Output,
|
|
434
|
+
args: ["visibleChange"]
|
|
435
|
+
}],
|
|
436
|
+
id: [{
|
|
437
|
+
type: i0.Input,
|
|
438
|
+
args: [{
|
|
439
|
+
isSignal: true,
|
|
440
|
+
alias: "id",
|
|
441
|
+
required: false
|
|
442
|
+
}]
|
|
443
|
+
}],
|
|
444
|
+
severity: [{
|
|
445
|
+
type: i0.Input,
|
|
446
|
+
args: [{
|
|
447
|
+
isSignal: true,
|
|
448
|
+
alias: "severity",
|
|
449
|
+
required: false
|
|
450
|
+
}]
|
|
451
|
+
}],
|
|
452
|
+
variant: [{
|
|
453
|
+
type: i0.Input,
|
|
454
|
+
args: [{
|
|
455
|
+
isSignal: true,
|
|
456
|
+
alias: "variant",
|
|
457
|
+
required: false
|
|
458
|
+
}]
|
|
459
|
+
}],
|
|
460
|
+
size: [{
|
|
461
|
+
type: i0.Input,
|
|
462
|
+
args: [{
|
|
463
|
+
isSignal: true,
|
|
464
|
+
alias: "size",
|
|
465
|
+
required: false
|
|
466
|
+
}]
|
|
467
|
+
}],
|
|
468
|
+
text: [{
|
|
469
|
+
type: i0.Input,
|
|
470
|
+
args: [{
|
|
471
|
+
isSignal: true,
|
|
472
|
+
alias: "text",
|
|
473
|
+
required: false
|
|
474
|
+
}]
|
|
475
|
+
}],
|
|
476
|
+
closable: [{
|
|
477
|
+
type: i0.Input,
|
|
478
|
+
args: [{
|
|
479
|
+
isSignal: true,
|
|
480
|
+
alias: "closable",
|
|
481
|
+
required: false
|
|
482
|
+
}]
|
|
483
|
+
}],
|
|
484
|
+
life: [{
|
|
485
|
+
type: i0.Input,
|
|
486
|
+
args: [{
|
|
487
|
+
isSignal: true,
|
|
488
|
+
alias: "life",
|
|
489
|
+
required: false
|
|
490
|
+
}]
|
|
491
|
+
}],
|
|
492
|
+
showIcon: [{
|
|
493
|
+
type: i0.Input,
|
|
494
|
+
args: [{
|
|
495
|
+
isSignal: true,
|
|
496
|
+
alias: "showIcon",
|
|
497
|
+
required: false
|
|
498
|
+
}]
|
|
499
|
+
}],
|
|
500
|
+
role: [{
|
|
501
|
+
type: i0.Input,
|
|
502
|
+
args: [{
|
|
503
|
+
isSignal: true,
|
|
504
|
+
alias: "role",
|
|
505
|
+
required: false
|
|
506
|
+
}]
|
|
507
|
+
}],
|
|
508
|
+
ariaLive: [{
|
|
509
|
+
type: i0.Input,
|
|
510
|
+
args: [{
|
|
511
|
+
isSignal: true,
|
|
512
|
+
alias: "ariaLive",
|
|
513
|
+
required: false
|
|
514
|
+
}]
|
|
515
|
+
}],
|
|
516
|
+
ariaLabel: [{
|
|
517
|
+
type: i0.Input,
|
|
518
|
+
args: [{
|
|
519
|
+
isSignal: true,
|
|
520
|
+
alias: "ariaLabel",
|
|
521
|
+
required: false
|
|
522
|
+
}]
|
|
523
|
+
}],
|
|
524
|
+
ariaLabelledBy: [{
|
|
525
|
+
type: i0.Input,
|
|
526
|
+
args: [{
|
|
527
|
+
isSignal: true,
|
|
528
|
+
alias: "ariaLabelledBy",
|
|
529
|
+
required: false
|
|
530
|
+
}]
|
|
531
|
+
}],
|
|
532
|
+
closeAriaLabel: [{
|
|
533
|
+
type: i0.Input,
|
|
534
|
+
args: [{
|
|
535
|
+
isSignal: true,
|
|
536
|
+
alias: "closeAriaLabel",
|
|
537
|
+
required: false
|
|
538
|
+
}]
|
|
539
|
+
}],
|
|
540
|
+
closed: [{
|
|
541
|
+
type: i0.Output,
|
|
542
|
+
args: ["closed"]
|
|
543
|
+
}],
|
|
544
|
+
visibilityChanged: [{
|
|
545
|
+
type: i0.Output,
|
|
546
|
+
args: ["visibilityChanged"]
|
|
547
|
+
}]
|
|
548
|
+
}
|
|
549
|
+
});
|
|
214
550
|
const AerisMessageModule = [
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
551
|
+
AerisMessage,
|
|
552
|
+
AerisMessageIconTemplate,
|
|
553
|
+
AerisMessageContentTemplate
|
|
218
554
|
];
|
|
219
|
-
|
|
220
|
-
/**
|
|
221
|
-
* Generated bundle index. Do not edit.
|
|
222
|
-
*/
|
|
223
|
-
|
|
224
555
|
export { AerisMessage, AerisMessageContentTemplate, AerisMessageIconTemplate, AerisMessageModule };
|
|
225
|
-
|
|
556
|
+
|
|
557
|
+
//# sourceMappingURL=aeris-ui-core-message.mjs.map
|