@aeris-ui/core 22.0.0-alpha.7 → 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 +1339 -514
- 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 -103
- 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 -112
- 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 +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 +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 +918 -257
- 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 +1258 -1413
- 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/schematics/runtime/theme-builder/aeris-theme.js +28 -16
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_fallback-colors.scss +3 -3
- package/styles/_tokens.scss +5 -5
- package/styles/aeris.css +12 -16
- package/styles/controls.css +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 -73
- 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 +265 -115
- 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 +466 -451
- 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,186 +1,688 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { ɵaerisDisplayInvalid
|
|
4
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, Directive, ViewEncapsulation, booleanAttribute, computed, contentChild, inject, input } from "@angular/core";
|
|
3
|
+
import { ɵaerisDisplayInvalid } from "@aeris-ui/core";
|
|
5
4
|
let nextFormFieldId = 0;
|
|
6
|
-
class AerisFormFieldComponent {
|
|
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
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
5
|
+
var AerisFormFieldComponent = class AerisFormFieldComponent {
|
|
6
|
+
generatedControlId = `aeris-form-field-${++nextFormFieldId}-control`;
|
|
7
|
+
label = contentChild(AerisFormLabelDirective, ...ngDevMode ? [{ debugName: "label" }] : /* istanbul ignore next */ []);
|
|
8
|
+
hint = contentChild(AerisFormHintDirective, ...ngDevMode ? [{ debugName: "hint" }] : /* istanbul ignore next */ []);
|
|
9
|
+
error = contentChild(AerisFormErrorDirective, ...ngDevMode ? [{ debugName: "error" }] : /* istanbul ignore next */ []);
|
|
10
|
+
controlId = input(this.generatedControlId, ...ngDevMode ? [{ debugName: "controlId" }] : /* istanbul ignore next */ []);
|
|
11
|
+
invalid = input(false, {
|
|
12
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
13
|
+
transform: booleanAttribute
|
|
14
|
+
});
|
|
15
|
+
touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
16
|
+
disabled = input(false, {
|
|
17
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
18
|
+
transform: booleanAttribute
|
|
19
|
+
});
|
|
20
|
+
required = input(false, {
|
|
21
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
22
|
+
transform: booleanAttribute
|
|
23
|
+
});
|
|
24
|
+
optional = input(false, {
|
|
25
|
+
...ngDevMode ? { debugName: "optional" } : /* istanbul ignore next */ {},
|
|
26
|
+
transform: booleanAttribute
|
|
27
|
+
});
|
|
28
|
+
optionalText = input("Optional", ...ngDevMode ? [{ debugName: "optionalText" }] : /* istanbul ignore next */ []);
|
|
29
|
+
fluid = input(false, {
|
|
30
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
31
|
+
transform: booleanAttribute
|
|
32
|
+
});
|
|
33
|
+
reserveMessageSpace = input(false, {
|
|
34
|
+
...ngDevMode ? { debugName: "reserveMessageSpace" } : /* istanbul ignore next */ {},
|
|
35
|
+
transform: booleanAttribute
|
|
36
|
+
});
|
|
37
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
38
|
+
errorLive = input("polite", ...ngDevMode ? [{ debugName: "errorLive" }] : /* istanbul ignore next */ []);
|
|
39
|
+
labelId = computed(() => `${this.controlId()}-label`, ...ngDevMode ? [{ debugName: "labelId" }] : /* istanbul ignore next */ []);
|
|
40
|
+
hintId = computed(() => `${this.controlId()}-hint`, ...ngDevMode ? [{ debugName: "hintId" }] : /* istanbul ignore next */ []);
|
|
41
|
+
errorId = computed(() => `${this.controlId()}-error`, ...ngDevMode ? [{ debugName: "errorId" }] : /* istanbul ignore next */ []);
|
|
42
|
+
showOptionalIndicator = computed(() => this.optional() && !this.required(), ...ngDevMode ? [{ debugName: "showOptionalIndicator" }] : /* istanbul ignore next */ []);
|
|
43
|
+
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
44
|
+
describedBy = computed(() => uniqueIds([
|
|
45
|
+
this.ariaDescribedBy(),
|
|
46
|
+
this.hint()?.resolvedId() ?? "",
|
|
47
|
+
this.displayInvalid() ? this.error()?.resolvedId() ?? "" : ""
|
|
48
|
+
]), ...ngDevMode ? [{ debugName: "describedBy" }] : /* istanbul ignore next */ []);
|
|
49
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
50
|
+
minVersion: "12.0.0",
|
|
51
|
+
version: "22.2.1",
|
|
52
|
+
ngImport: i0,
|
|
53
|
+
type: AerisFormFieldComponent,
|
|
54
|
+
deps: [],
|
|
55
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
56
|
+
});
|
|
57
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
58
|
+
minVersion: "17.2.0",
|
|
59
|
+
version: "22.2.1",
|
|
60
|
+
type: AerisFormFieldComponent,
|
|
61
|
+
isStandalone: true,
|
|
62
|
+
selector: "aeris-form-field",
|
|
63
|
+
inputs: {
|
|
64
|
+
controlId: {
|
|
65
|
+
classPropertyName: "controlId",
|
|
66
|
+
publicName: "controlId",
|
|
67
|
+
isSignal: true,
|
|
68
|
+
isRequired: false,
|
|
69
|
+
transformFunction: null
|
|
70
|
+
},
|
|
71
|
+
invalid: {
|
|
72
|
+
classPropertyName: "invalid",
|
|
73
|
+
publicName: "invalid",
|
|
74
|
+
isSignal: true,
|
|
75
|
+
isRequired: false,
|
|
76
|
+
transformFunction: null
|
|
77
|
+
},
|
|
78
|
+
touched: {
|
|
79
|
+
classPropertyName: "touched",
|
|
80
|
+
publicName: "touched",
|
|
81
|
+
isSignal: true,
|
|
82
|
+
isRequired: false,
|
|
83
|
+
transformFunction: null
|
|
84
|
+
},
|
|
85
|
+
disabled: {
|
|
86
|
+
classPropertyName: "disabled",
|
|
87
|
+
publicName: "disabled",
|
|
88
|
+
isSignal: true,
|
|
89
|
+
isRequired: false,
|
|
90
|
+
transformFunction: null
|
|
91
|
+
},
|
|
92
|
+
required: {
|
|
93
|
+
classPropertyName: "required",
|
|
94
|
+
publicName: "required",
|
|
95
|
+
isSignal: true,
|
|
96
|
+
isRequired: false,
|
|
97
|
+
transformFunction: null
|
|
98
|
+
},
|
|
99
|
+
optional: {
|
|
100
|
+
classPropertyName: "optional",
|
|
101
|
+
publicName: "optional",
|
|
102
|
+
isSignal: true,
|
|
103
|
+
isRequired: false,
|
|
104
|
+
transformFunction: null
|
|
105
|
+
},
|
|
106
|
+
optionalText: {
|
|
107
|
+
classPropertyName: "optionalText",
|
|
108
|
+
publicName: "optionalText",
|
|
109
|
+
isSignal: true,
|
|
110
|
+
isRequired: false,
|
|
111
|
+
transformFunction: null
|
|
112
|
+
},
|
|
113
|
+
fluid: {
|
|
114
|
+
classPropertyName: "fluid",
|
|
115
|
+
publicName: "fluid",
|
|
116
|
+
isSignal: true,
|
|
117
|
+
isRequired: false,
|
|
118
|
+
transformFunction: null
|
|
119
|
+
},
|
|
120
|
+
reserveMessageSpace: {
|
|
121
|
+
classPropertyName: "reserveMessageSpace",
|
|
122
|
+
publicName: "reserveMessageSpace",
|
|
123
|
+
isSignal: true,
|
|
124
|
+
isRequired: false,
|
|
125
|
+
transformFunction: null
|
|
126
|
+
},
|
|
127
|
+
ariaDescribedBy: {
|
|
128
|
+
classPropertyName: "ariaDescribedBy",
|
|
129
|
+
publicName: "ariaDescribedBy",
|
|
130
|
+
isSignal: true,
|
|
131
|
+
isRequired: false,
|
|
132
|
+
transformFunction: null
|
|
133
|
+
},
|
|
134
|
+
errorLive: {
|
|
135
|
+
classPropertyName: "errorLive",
|
|
136
|
+
publicName: "errorLive",
|
|
137
|
+
isSignal: true,
|
|
138
|
+
isRequired: false,
|
|
139
|
+
transformFunction: null
|
|
140
|
+
}
|
|
141
|
+
},
|
|
142
|
+
host: {
|
|
143
|
+
properties: {
|
|
144
|
+
"attr.data-invalid": "displayInvalid() || null",
|
|
145
|
+
"attr.data-disabled": "disabled() || null",
|
|
146
|
+
"attr.data-required": "required() || null",
|
|
147
|
+
"attr.data-optional": "showOptionalIndicator() || null",
|
|
148
|
+
"attr.data-fluid": "fluid() || null",
|
|
149
|
+
"attr.data-reserve-message-space": "reserveMessageSpace() || null"
|
|
150
|
+
},
|
|
151
|
+
classAttribute: "aeris-form-field"
|
|
152
|
+
},
|
|
153
|
+
queries: [
|
|
154
|
+
{
|
|
155
|
+
propertyName: "label",
|
|
156
|
+
first: true,
|
|
157
|
+
predicate: AerisFormLabelDirective,
|
|
158
|
+
descendants: true,
|
|
159
|
+
isSignal: true
|
|
160
|
+
},
|
|
161
|
+
{
|
|
162
|
+
propertyName: "hint",
|
|
163
|
+
first: true,
|
|
164
|
+
predicate: AerisFormHintDirective,
|
|
165
|
+
descendants: true,
|
|
166
|
+
isSignal: true
|
|
167
|
+
},
|
|
168
|
+
{
|
|
169
|
+
propertyName: "error",
|
|
170
|
+
first: true,
|
|
171
|
+
predicate: AerisFormErrorDirective,
|
|
172
|
+
descendants: true,
|
|
173
|
+
isSignal: true
|
|
174
|
+
}
|
|
175
|
+
],
|
|
176
|
+
ngImport: i0,
|
|
177
|
+
template: `
|
|
48
178
|
<ng-content select="[aerisFormLabel]" />
|
|
49
179
|
<div class="aeris-form-field__control"><ng-content /></div>
|
|
50
180
|
<div class="aeris-form-field__support">
|
|
51
181
|
<ng-content select="[aerisFormHint], [aerisFormError]" />
|
|
52
182
|
</div>
|
|
53
|
-
`,
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
183
|
+
`,
|
|
184
|
+
isInline: true,
|
|
185
|
+
styles: [".aeris-form-field{min-inline-size:0;display:grid;align-content:start;grid-auto-rows:max-content;gap:var(--aeris-form-field-gap, .45rem);color:var(--aeris-form-field-color, var(--aeris-text, #222222))}.aeris-form-field[data-fluid]{inline-size:100%}.aeris-form-field__label{inline-size:max-content;max-inline-size:100%;display:inline-flex;align-items:baseline;gap:var(--aeris-form-field-indicator-gap, .25rem);color:var(--aeris-form-field-label-color, var(--aeris-text, #222222));font-size:var(--aeris-form-field-label-font-size, .875rem);font-weight:var(--aeris-form-field-label-font-weight, 700);line-height:1.35}.aeris-form-field__label[data-required]:after{color:var(--aeris-form-field-required-color, var(--aeris-danger, #c81e2a));content:\"*\"}.aeris-form-field__label[data-optional]:after{color:var(--aeris-form-field-optional-color, var(--aeris-text-2, #555555));content:\"(\" attr(data-optional-text) \")\";font-size:.75rem;font-weight:600}.aeris-form-field__control,.aeris-form-field__support{min-inline-size:0}.aeris-form-field__control{display:block}.aeris-form-field__native-control[data-fluid]{inline-size:100%}.aeris-form-field__support{display:grid;align-content:start;grid-auto-rows:max-content;gap:var(--aeris-form-field-message-gap, .25rem)}.aeris-form-field__support:empty{display:none}.aeris-form-field[data-reserve-message-space] .aeris-form-field__support{min-block-size:var(--aeris-form-field-message-space, 1.2rem)}.aeris-form-field__hint,.aeris-form-field__error{margin:0;font-size:var(--aeris-form-field-message-font-size, .8125rem);line-height:1.45}.aeris-form-field__hint{color:var(--aeris-form-field-hint-color, var(--aeris-text-2, #555555))}.aeris-form-field__error{color:var(--aeris-form-field-error-color, var(--aeris-danger-text, #a31722));font-weight:650}.aeris-form-field__error[hidden]{display:none}.aeris-form-field[data-disabled] :is(.aeris-form-field__label,.aeris-form-field__hint){opacity:var(--aeris-form-field-disabled-opacity, .52)}\n"],
|
|
186
|
+
encapsulation: i0.ViewEncapsulation.None
|
|
187
|
+
});
|
|
188
|
+
};
|
|
189
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
190
|
+
minVersion: "12.0.0",
|
|
191
|
+
version: "22.2.1",
|
|
192
|
+
ngImport: i0,
|
|
193
|
+
type: AerisFormFieldComponent,
|
|
194
|
+
decorators: [{
|
|
195
|
+
type: Component,
|
|
196
|
+
args: [{
|
|
197
|
+
selector: "aeris-form-field",
|
|
198
|
+
template: `
|
|
58
199
|
<ng-content select="[aerisFormLabel]" />
|
|
59
200
|
<div class="aeris-form-field__control"><ng-content /></div>
|
|
60
201
|
<div class="aeris-form-field__support">
|
|
61
202
|
<ng-content select="[aerisFormHint], [aerisFormError]" />
|
|
62
203
|
</div>
|
|
63
|
-
`,
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
204
|
+
`,
|
|
205
|
+
encapsulation: ViewEncapsulation.None,
|
|
206
|
+
host: {
|
|
207
|
+
class: "aeris-form-field",
|
|
208
|
+
"[attr.data-invalid]": "displayInvalid() || null",
|
|
209
|
+
"[attr.data-disabled]": "disabled() || null",
|
|
210
|
+
"[attr.data-required]": "required() || null",
|
|
211
|
+
"[attr.data-optional]": "showOptionalIndicator() || null",
|
|
212
|
+
"[attr.data-fluid]": "fluid() || null",
|
|
213
|
+
"[attr.data-reserve-message-space]": "reserveMessageSpace() || null"
|
|
214
|
+
},
|
|
215
|
+
styles: [".aeris-form-field{min-inline-size:0;display:grid;align-content:start;grid-auto-rows:max-content;gap:var(--aeris-form-field-gap, .45rem);color:var(--aeris-form-field-color, var(--aeris-text, #222222))}.aeris-form-field[data-fluid]{inline-size:100%}.aeris-form-field__label{inline-size:max-content;max-inline-size:100%;display:inline-flex;align-items:baseline;gap:var(--aeris-form-field-indicator-gap, .25rem);color:var(--aeris-form-field-label-color, var(--aeris-text, #222222));font-size:var(--aeris-form-field-label-font-size, .875rem);font-weight:var(--aeris-form-field-label-font-weight, 700);line-height:1.35}.aeris-form-field__label[data-required]:after{color:var(--aeris-form-field-required-color, var(--aeris-danger, #c81e2a));content:\"*\"}.aeris-form-field__label[data-optional]:after{color:var(--aeris-form-field-optional-color, var(--aeris-text-2, #555555));content:\"(\" attr(data-optional-text) \")\";font-size:.75rem;font-weight:600}.aeris-form-field__control,.aeris-form-field__support{min-inline-size:0}.aeris-form-field__control{display:block}.aeris-form-field__native-control[data-fluid]{inline-size:100%}.aeris-form-field__support{display:grid;align-content:start;grid-auto-rows:max-content;gap:var(--aeris-form-field-message-gap, .25rem)}.aeris-form-field__support:empty{display:none}.aeris-form-field[data-reserve-message-space] .aeris-form-field__support{min-block-size:var(--aeris-form-field-message-space, 1.2rem)}.aeris-form-field__hint,.aeris-form-field__error{margin:0;font-size:var(--aeris-form-field-message-font-size, .8125rem);line-height:1.45}.aeris-form-field__hint{color:var(--aeris-form-field-hint-color, var(--aeris-text-2, #555555))}.aeris-form-field__error{color:var(--aeris-form-field-error-color, var(--aeris-danger-text, #a31722));font-weight:650}.aeris-form-field__error[hidden]{display:none}.aeris-form-field[data-disabled] :is(.aeris-form-field__label,.aeris-form-field__hint){opacity:var(--aeris-form-field-disabled-opacity, .52)}\n"]
|
|
216
|
+
}]
|
|
217
|
+
}],
|
|
218
|
+
propDecorators: {
|
|
219
|
+
label: [{
|
|
220
|
+
type: i0.ContentChild,
|
|
221
|
+
args: [i0.forwardRef(() => AerisFormLabelDirective), { isSignal: true }]
|
|
222
|
+
}],
|
|
223
|
+
hint: [{
|
|
224
|
+
type: i0.ContentChild,
|
|
225
|
+
args: [i0.forwardRef(() => AerisFormHintDirective), { isSignal: true }]
|
|
226
|
+
}],
|
|
227
|
+
error: [{
|
|
228
|
+
type: i0.ContentChild,
|
|
229
|
+
args: [i0.forwardRef(() => AerisFormErrorDirective), { isSignal: true }]
|
|
230
|
+
}],
|
|
231
|
+
controlId: [{
|
|
232
|
+
type: i0.Input,
|
|
233
|
+
args: [{
|
|
234
|
+
isSignal: true,
|
|
235
|
+
alias: "controlId",
|
|
236
|
+
required: false
|
|
237
|
+
}]
|
|
238
|
+
}],
|
|
239
|
+
invalid: [{
|
|
240
|
+
type: i0.Input,
|
|
241
|
+
args: [{
|
|
242
|
+
isSignal: true,
|
|
243
|
+
alias: "invalid",
|
|
244
|
+
required: false
|
|
245
|
+
}]
|
|
246
|
+
}],
|
|
247
|
+
touched: [{
|
|
248
|
+
type: i0.Input,
|
|
249
|
+
args: [{
|
|
250
|
+
isSignal: true,
|
|
251
|
+
alias: "touched",
|
|
252
|
+
required: false
|
|
253
|
+
}]
|
|
254
|
+
}],
|
|
255
|
+
disabled: [{
|
|
256
|
+
type: i0.Input,
|
|
257
|
+
args: [{
|
|
258
|
+
isSignal: true,
|
|
259
|
+
alias: "disabled",
|
|
260
|
+
required: false
|
|
261
|
+
}]
|
|
262
|
+
}],
|
|
263
|
+
required: [{
|
|
264
|
+
type: i0.Input,
|
|
265
|
+
args: [{
|
|
266
|
+
isSignal: true,
|
|
267
|
+
alias: "required",
|
|
268
|
+
required: false
|
|
269
|
+
}]
|
|
270
|
+
}],
|
|
271
|
+
optional: [{
|
|
272
|
+
type: i0.Input,
|
|
273
|
+
args: [{
|
|
274
|
+
isSignal: true,
|
|
275
|
+
alias: "optional",
|
|
276
|
+
required: false
|
|
277
|
+
}]
|
|
278
|
+
}],
|
|
279
|
+
optionalText: [{
|
|
280
|
+
type: i0.Input,
|
|
281
|
+
args: [{
|
|
282
|
+
isSignal: true,
|
|
283
|
+
alias: "optionalText",
|
|
284
|
+
required: false
|
|
285
|
+
}]
|
|
286
|
+
}],
|
|
287
|
+
fluid: [{
|
|
288
|
+
type: i0.Input,
|
|
289
|
+
args: [{
|
|
290
|
+
isSignal: true,
|
|
291
|
+
alias: "fluid",
|
|
292
|
+
required: false
|
|
293
|
+
}]
|
|
294
|
+
}],
|
|
295
|
+
reserveMessageSpace: [{
|
|
296
|
+
type: i0.Input,
|
|
297
|
+
args: [{
|
|
298
|
+
isSignal: true,
|
|
299
|
+
alias: "reserveMessageSpace",
|
|
300
|
+
required: false
|
|
301
|
+
}]
|
|
302
|
+
}],
|
|
303
|
+
ariaDescribedBy: [{
|
|
304
|
+
type: i0.Input,
|
|
305
|
+
args: [{
|
|
306
|
+
isSignal: true,
|
|
307
|
+
alias: "ariaDescribedBy",
|
|
308
|
+
required: false
|
|
309
|
+
}]
|
|
310
|
+
}],
|
|
311
|
+
errorLive: [{
|
|
312
|
+
type: i0.Input,
|
|
313
|
+
args: [{
|
|
314
|
+
isSignal: true,
|
|
315
|
+
alias: "errorLive",
|
|
316
|
+
required: false
|
|
317
|
+
}]
|
|
318
|
+
}]
|
|
319
|
+
}
|
|
320
|
+
});
|
|
321
|
+
var AerisFormLabelDirective = class AerisFormLabelDirective {
|
|
322
|
+
field = inject(AerisFormFieldComponent, { host: true });
|
|
323
|
+
id = input("", {
|
|
324
|
+
...ngDevMode ? { debugName: "id" } : /* istanbul ignore next */ {},
|
|
325
|
+
alias: "id"
|
|
326
|
+
});
|
|
327
|
+
forId = input("", {
|
|
328
|
+
...ngDevMode ? { debugName: "forId" } : /* istanbul ignore next */ {},
|
|
329
|
+
alias: "for"
|
|
330
|
+
});
|
|
331
|
+
resolvedId = computed(() => this.id() || this.field.labelId(), ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
|
|
332
|
+
resolvedFor = computed(() => this.forId() || this.field.controlId(), ...ngDevMode ? [{ debugName: "resolvedFor" }] : /* istanbul ignore next */ []);
|
|
333
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
334
|
+
minVersion: "12.0.0",
|
|
335
|
+
version: "22.2.1",
|
|
336
|
+
ngImport: i0,
|
|
337
|
+
type: AerisFormLabelDirective,
|
|
338
|
+
deps: [],
|
|
339
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
340
|
+
});
|
|
341
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
342
|
+
minVersion: "17.1.0",
|
|
343
|
+
version: "22.2.1",
|
|
344
|
+
type: AerisFormLabelDirective,
|
|
345
|
+
isStandalone: true,
|
|
346
|
+
selector: "[aerisFormLabel]",
|
|
347
|
+
inputs: {
|
|
348
|
+
id: {
|
|
349
|
+
classPropertyName: "id",
|
|
350
|
+
publicName: "id",
|
|
351
|
+
isSignal: true,
|
|
352
|
+
isRequired: false,
|
|
353
|
+
transformFunction: null
|
|
354
|
+
},
|
|
355
|
+
forId: {
|
|
356
|
+
classPropertyName: "forId",
|
|
357
|
+
publicName: "for",
|
|
358
|
+
isSignal: true,
|
|
359
|
+
isRequired: false,
|
|
360
|
+
transformFunction: null
|
|
361
|
+
}
|
|
362
|
+
},
|
|
363
|
+
host: {
|
|
364
|
+
properties: {
|
|
365
|
+
"attr.id": "resolvedId()",
|
|
366
|
+
"attr.for": "resolvedFor()",
|
|
367
|
+
"attr.data-required": "field.required() || null",
|
|
368
|
+
"attr.data-optional": "field.showOptionalIndicator() || null",
|
|
369
|
+
"attr.data-optional-text": "field.showOptionalIndicator() ? field.optionalText() : null"
|
|
370
|
+
},
|
|
371
|
+
classAttribute: "aeris-form-field__label"
|
|
372
|
+
},
|
|
373
|
+
ngImport: i0
|
|
374
|
+
});
|
|
375
|
+
};
|
|
376
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
377
|
+
minVersion: "12.0.0",
|
|
378
|
+
version: "22.2.1",
|
|
379
|
+
ngImport: i0,
|
|
380
|
+
type: AerisFormLabelDirective,
|
|
381
|
+
decorators: [{
|
|
382
|
+
type: Directive,
|
|
383
|
+
args: [{
|
|
384
|
+
selector: "[aerisFormLabel]",
|
|
385
|
+
host: {
|
|
386
|
+
class: "aeris-form-field__label",
|
|
387
|
+
"[attr.id]": "resolvedId()",
|
|
388
|
+
"[attr.for]": "resolvedFor()",
|
|
389
|
+
"[attr.data-required]": "field.required() || null",
|
|
390
|
+
"[attr.data-optional]": "field.showOptionalIndicator() || null",
|
|
391
|
+
"[attr.data-optional-text]": "field.showOptionalIndicator() ? field.optionalText() : null"
|
|
392
|
+
}
|
|
393
|
+
}]
|
|
394
|
+
}],
|
|
395
|
+
propDecorators: {
|
|
396
|
+
id: [{
|
|
397
|
+
type: i0.Input,
|
|
398
|
+
args: [{
|
|
399
|
+
isSignal: true,
|
|
400
|
+
alias: "id",
|
|
401
|
+
required: false
|
|
402
|
+
}]
|
|
403
|
+
}],
|
|
404
|
+
forId: [{
|
|
405
|
+
type: i0.Input,
|
|
406
|
+
args: [{
|
|
407
|
+
isSignal: true,
|
|
408
|
+
alias: "for",
|
|
409
|
+
required: false
|
|
410
|
+
}]
|
|
411
|
+
}]
|
|
412
|
+
}
|
|
413
|
+
});
|
|
414
|
+
var AerisFormControlDirective = class AerisFormControlDirective {
|
|
415
|
+
field = inject(AerisFormFieldComponent, { host: true });
|
|
416
|
+
id = input("", {
|
|
417
|
+
...ngDevMode ? { debugName: "id" } : /* istanbul ignore next */ {},
|
|
418
|
+
alias: "id"
|
|
419
|
+
});
|
|
420
|
+
ariaDescribedBy = input("", {
|
|
421
|
+
...ngDevMode ? { debugName: "ariaDescribedBy" } : /* istanbul ignore next */ {},
|
|
422
|
+
alias: "aria-describedby"
|
|
423
|
+
});
|
|
424
|
+
resolvedId = computed(() => this.id() || this.field.controlId(), ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
|
|
425
|
+
resolvedDescribedBy = computed(() => uniqueIds([this.ariaDescribedBy(), this.field.describedBy()]), ...ngDevMode ? [{ debugName: "resolvedDescribedBy" }] : /* istanbul ignore next */ []);
|
|
426
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
427
|
+
minVersion: "12.0.0",
|
|
428
|
+
version: "22.2.1",
|
|
429
|
+
ngImport: i0,
|
|
430
|
+
type: AerisFormControlDirective,
|
|
431
|
+
deps: [],
|
|
432
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
433
|
+
});
|
|
434
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
435
|
+
minVersion: "17.1.0",
|
|
436
|
+
version: "22.2.1",
|
|
437
|
+
type: AerisFormControlDirective,
|
|
438
|
+
isStandalone: true,
|
|
439
|
+
selector: "[aerisFormControl]",
|
|
440
|
+
inputs: {
|
|
441
|
+
id: {
|
|
442
|
+
classPropertyName: "id",
|
|
443
|
+
publicName: "id",
|
|
444
|
+
isSignal: true,
|
|
445
|
+
isRequired: false,
|
|
446
|
+
transformFunction: null
|
|
447
|
+
},
|
|
448
|
+
ariaDescribedBy: {
|
|
449
|
+
classPropertyName: "ariaDescribedBy",
|
|
450
|
+
publicName: "aria-describedby",
|
|
451
|
+
isSignal: true,
|
|
452
|
+
isRequired: false,
|
|
453
|
+
transformFunction: null
|
|
454
|
+
}
|
|
455
|
+
},
|
|
456
|
+
host: {
|
|
457
|
+
properties: {
|
|
458
|
+
"attr.id": "resolvedId()",
|
|
459
|
+
"attr.aria-describedby": "resolvedDescribedBy() || null",
|
|
460
|
+
"attr.aria-invalid": "field.displayInvalid() || null",
|
|
461
|
+
"attr.aria-required": "field.required() || null",
|
|
462
|
+
"attr.data-fluid": "field.fluid() || null"
|
|
463
|
+
},
|
|
464
|
+
classAttribute: "aeris-form-field__native-control"
|
|
465
|
+
},
|
|
466
|
+
ngImport: i0
|
|
467
|
+
});
|
|
468
|
+
};
|
|
469
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
470
|
+
minVersion: "12.0.0",
|
|
471
|
+
version: "22.2.1",
|
|
472
|
+
ngImport: i0,
|
|
473
|
+
type: AerisFormControlDirective,
|
|
474
|
+
decorators: [{
|
|
475
|
+
type: Directive,
|
|
476
|
+
args: [{
|
|
477
|
+
selector: "[aerisFormControl]",
|
|
478
|
+
host: {
|
|
479
|
+
class: "aeris-form-field__native-control",
|
|
480
|
+
"[attr.id]": "resolvedId()",
|
|
481
|
+
"[attr.aria-describedby]": "resolvedDescribedBy() || null",
|
|
482
|
+
"[attr.aria-invalid]": "field.displayInvalid() || null",
|
|
483
|
+
"[attr.aria-required]": "field.required() || null",
|
|
484
|
+
"[attr.data-fluid]": "field.fluid() || null"
|
|
485
|
+
}
|
|
486
|
+
}]
|
|
487
|
+
}],
|
|
488
|
+
propDecorators: {
|
|
489
|
+
id: [{
|
|
490
|
+
type: i0.Input,
|
|
491
|
+
args: [{
|
|
492
|
+
isSignal: true,
|
|
493
|
+
alias: "id",
|
|
494
|
+
required: false
|
|
495
|
+
}]
|
|
496
|
+
}],
|
|
497
|
+
ariaDescribedBy: [{
|
|
498
|
+
type: i0.Input,
|
|
499
|
+
args: [{
|
|
500
|
+
isSignal: true,
|
|
501
|
+
alias: "aria-describedby",
|
|
502
|
+
required: false
|
|
503
|
+
}]
|
|
504
|
+
}]
|
|
505
|
+
}
|
|
506
|
+
});
|
|
507
|
+
var AerisFormHintDirective = class AerisFormHintDirective {
|
|
508
|
+
field = inject(AerisFormFieldComponent, { host: true });
|
|
509
|
+
id = input("", {
|
|
510
|
+
...ngDevMode ? { debugName: "id" } : /* istanbul ignore next */ {},
|
|
511
|
+
alias: "id"
|
|
512
|
+
});
|
|
513
|
+
resolvedId = computed(() => this.id() || this.field.hintId(), ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
|
|
514
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
515
|
+
minVersion: "12.0.0",
|
|
516
|
+
version: "22.2.1",
|
|
517
|
+
ngImport: i0,
|
|
518
|
+
type: AerisFormHintDirective,
|
|
519
|
+
deps: [],
|
|
520
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
521
|
+
});
|
|
522
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
523
|
+
minVersion: "17.1.0",
|
|
524
|
+
version: "22.2.1",
|
|
525
|
+
type: AerisFormHintDirective,
|
|
526
|
+
isStandalone: true,
|
|
527
|
+
selector: "[aerisFormHint]",
|
|
528
|
+
inputs: { id: {
|
|
529
|
+
classPropertyName: "id",
|
|
530
|
+
publicName: "id",
|
|
531
|
+
isSignal: true,
|
|
532
|
+
isRequired: false,
|
|
533
|
+
transformFunction: null
|
|
534
|
+
} },
|
|
535
|
+
host: {
|
|
536
|
+
properties: { "attr.id": "resolvedId()" },
|
|
537
|
+
classAttribute: "aeris-form-field__hint"
|
|
538
|
+
},
|
|
539
|
+
ngImport: i0
|
|
540
|
+
});
|
|
541
|
+
};
|
|
542
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
543
|
+
minVersion: "12.0.0",
|
|
544
|
+
version: "22.2.1",
|
|
545
|
+
ngImport: i0,
|
|
546
|
+
type: AerisFormHintDirective,
|
|
547
|
+
decorators: [{
|
|
548
|
+
type: Directive,
|
|
549
|
+
args: [{
|
|
550
|
+
selector: "[aerisFormHint]",
|
|
551
|
+
host: {
|
|
552
|
+
class: "aeris-form-field__hint",
|
|
553
|
+
"[attr.id]": "resolvedId()"
|
|
554
|
+
}
|
|
555
|
+
}]
|
|
556
|
+
}],
|
|
557
|
+
propDecorators: { id: [{
|
|
558
|
+
type: i0.Input,
|
|
559
|
+
args: [{
|
|
560
|
+
isSignal: true,
|
|
561
|
+
alias: "id",
|
|
562
|
+
required: false
|
|
563
|
+
}]
|
|
564
|
+
}] }
|
|
565
|
+
});
|
|
566
|
+
var AerisFormErrorDirective = class AerisFormErrorDirective {
|
|
567
|
+
field = inject(AerisFormFieldComponent, { host: true });
|
|
568
|
+
id = input("", {
|
|
569
|
+
...ngDevMode ? { debugName: "id" } : /* istanbul ignore next */ {},
|
|
570
|
+
alias: "id"
|
|
571
|
+
});
|
|
572
|
+
hideWhenValid = input(true, {
|
|
573
|
+
...ngDevMode ? { debugName: "hideWhenValid" } : /* istanbul ignore next */ {},
|
|
574
|
+
transform: booleanAttribute
|
|
575
|
+
});
|
|
576
|
+
live = input(void 0, ...ngDevMode ? [{ debugName: "live" }] : /* istanbul ignore next */ []);
|
|
577
|
+
resolvedId = computed(() => this.id() || this.field.errorId(), ...ngDevMode ? [{ debugName: "resolvedId" }] : /* istanbul ignore next */ []);
|
|
578
|
+
resolvedLive = computed(() => {
|
|
579
|
+
const live = this.live() ?? this.field.errorLive();
|
|
580
|
+
return live === "off" ? null : live;
|
|
581
|
+
}, ...ngDevMode ? [{ debugName: "resolvedLive" }] : /* istanbul ignore next */ []);
|
|
582
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
583
|
+
minVersion: "12.0.0",
|
|
584
|
+
version: "22.2.1",
|
|
585
|
+
ngImport: i0,
|
|
586
|
+
type: AerisFormErrorDirective,
|
|
587
|
+
deps: [],
|
|
588
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
589
|
+
});
|
|
590
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
591
|
+
minVersion: "17.1.0",
|
|
592
|
+
version: "22.2.1",
|
|
593
|
+
type: AerisFormErrorDirective,
|
|
594
|
+
isStandalone: true,
|
|
595
|
+
selector: "[aerisFormError]",
|
|
596
|
+
inputs: {
|
|
597
|
+
id: {
|
|
598
|
+
classPropertyName: "id",
|
|
599
|
+
publicName: "id",
|
|
600
|
+
isSignal: true,
|
|
601
|
+
isRequired: false,
|
|
602
|
+
transformFunction: null
|
|
603
|
+
},
|
|
604
|
+
hideWhenValid: {
|
|
605
|
+
classPropertyName: "hideWhenValid",
|
|
606
|
+
publicName: "hideWhenValid",
|
|
607
|
+
isSignal: true,
|
|
608
|
+
isRequired: false,
|
|
609
|
+
transformFunction: null
|
|
610
|
+
},
|
|
611
|
+
live: {
|
|
612
|
+
classPropertyName: "live",
|
|
613
|
+
publicName: "live",
|
|
614
|
+
isSignal: true,
|
|
615
|
+
isRequired: false,
|
|
616
|
+
transformFunction: null
|
|
617
|
+
}
|
|
618
|
+
},
|
|
619
|
+
host: {
|
|
620
|
+
properties: {
|
|
621
|
+
"attr.id": "resolvedId()",
|
|
622
|
+
"hidden": "hideWhenValid() && !field.displayInvalid()",
|
|
623
|
+
"attr.aria-live": "resolvedLive()",
|
|
624
|
+
"attr.aria-atomic": "resolvedLive() ? \"true\" : null"
|
|
625
|
+
},
|
|
626
|
+
classAttribute: "aeris-form-field__error"
|
|
627
|
+
},
|
|
628
|
+
ngImport: i0
|
|
629
|
+
});
|
|
630
|
+
};
|
|
631
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
632
|
+
minVersion: "12.0.0",
|
|
633
|
+
version: "22.2.1",
|
|
634
|
+
ngImport: i0,
|
|
635
|
+
type: AerisFormErrorDirective,
|
|
636
|
+
decorators: [{
|
|
637
|
+
type: Directive,
|
|
638
|
+
args: [{
|
|
639
|
+
selector: "[aerisFormError]",
|
|
640
|
+
host: {
|
|
641
|
+
class: "aeris-form-field__error",
|
|
642
|
+
"[attr.id]": "resolvedId()",
|
|
643
|
+
"[hidden]": "hideWhenValid() && !field.displayInvalid()",
|
|
644
|
+
"[attr.aria-live]": "resolvedLive()",
|
|
645
|
+
"[attr.aria-atomic]": "resolvedLive() ? \"true\" : null"
|
|
646
|
+
}
|
|
647
|
+
}]
|
|
648
|
+
}],
|
|
649
|
+
propDecorators: {
|
|
650
|
+
id: [{
|
|
651
|
+
type: i0.Input,
|
|
652
|
+
args: [{
|
|
653
|
+
isSignal: true,
|
|
654
|
+
alias: "id",
|
|
655
|
+
required: false
|
|
656
|
+
}]
|
|
657
|
+
}],
|
|
658
|
+
hideWhenValid: [{
|
|
659
|
+
type: i0.Input,
|
|
660
|
+
args: [{
|
|
661
|
+
isSignal: true,
|
|
662
|
+
alias: "hideWhenValid",
|
|
663
|
+
required: false
|
|
664
|
+
}]
|
|
665
|
+
}],
|
|
666
|
+
live: [{
|
|
667
|
+
type: i0.Input,
|
|
668
|
+
args: [{
|
|
669
|
+
isSignal: true,
|
|
670
|
+
alias: "live",
|
|
671
|
+
required: false
|
|
672
|
+
}]
|
|
673
|
+
}]
|
|
674
|
+
}
|
|
675
|
+
});
|
|
170
676
|
const AerisFormField = [
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
677
|
+
AerisFormFieldComponent,
|
|
678
|
+
AerisFormLabelDirective,
|
|
679
|
+
AerisFormControlDirective,
|
|
680
|
+
AerisFormHintDirective,
|
|
681
|
+
AerisFormErrorDirective
|
|
176
682
|
];
|
|
177
683
|
function uniqueIds(values) {
|
|
178
|
-
|
|
684
|
+
return [...new Set(values.flatMap((value) => value.trim().split(/\s+/)).filter(Boolean))].join(" ");
|
|
179
685
|
}
|
|
180
|
-
|
|
181
|
-
/**
|
|
182
|
-
* Generated bundle index. Do not edit.
|
|
183
|
-
*/
|
|
184
|
-
|
|
185
686
|
export { AerisFormControlDirective, AerisFormErrorDirective, AerisFormField, AerisFormFieldComponent, AerisFormHintDirective, AerisFormLabelDirective };
|
|
186
|
-
|
|
687
|
+
|
|
688
|
+
//# sourceMappingURL=aeris-ui-core-form-field.mjs.map
|