@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,196 +1,552 @@
|
|
|
1
|
-
import * as i0 from
|
|
2
|
-
import {
|
|
3
|
-
import { NG_VALUE_ACCESSOR } from
|
|
4
|
-
|
|
5
|
-
class AerisTextareaDirective {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
import * as i0 from "@angular/core";
|
|
2
|
+
import { Component, Directive, booleanAttribute, computed, forwardRef, input, model, output, signal, viewChild } from "@angular/core";
|
|
3
|
+
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
4
|
+
import { ɵaerisDisplayInvalid } from "@aeris-ui/core";
|
|
5
|
+
var AerisTextareaDirective = class AerisTextareaDirective {
|
|
6
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
7
|
+
appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
8
|
+
resize = input("vertical", ...ngDevMode ? [{ debugName: "resize" }] : /* istanbul ignore next */ []);
|
|
9
|
+
invalid = input(false, {
|
|
10
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
11
|
+
transform: booleanAttribute
|
|
12
|
+
});
|
|
13
|
+
touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
14
|
+
fluid = input(false, {
|
|
15
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
16
|
+
transform: booleanAttribute
|
|
17
|
+
});
|
|
18
|
+
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
19
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
20
|
+
minVersion: "12.0.0",
|
|
21
|
+
version: "22.2.2",
|
|
22
|
+
ngImport: i0,
|
|
23
|
+
type: AerisTextareaDirective,
|
|
24
|
+
deps: [],
|
|
25
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
26
|
+
});
|
|
27
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
28
|
+
minVersion: "17.1.0",
|
|
29
|
+
version: "22.2.2",
|
|
30
|
+
type: AerisTextareaDirective,
|
|
31
|
+
isStandalone: true,
|
|
32
|
+
selector: "textarea[aerisTextarea]",
|
|
33
|
+
inputs: {
|
|
34
|
+
size: {
|
|
35
|
+
classPropertyName: "size",
|
|
36
|
+
publicName: "size",
|
|
37
|
+
isSignal: true,
|
|
38
|
+
isRequired: false,
|
|
39
|
+
transformFunction: null
|
|
40
|
+
},
|
|
41
|
+
appearance: {
|
|
42
|
+
classPropertyName: "appearance",
|
|
43
|
+
publicName: "appearance",
|
|
44
|
+
isSignal: true,
|
|
45
|
+
isRequired: false,
|
|
46
|
+
transformFunction: null
|
|
47
|
+
},
|
|
48
|
+
resize: {
|
|
49
|
+
classPropertyName: "resize",
|
|
50
|
+
publicName: "resize",
|
|
51
|
+
isSignal: true,
|
|
52
|
+
isRequired: false,
|
|
53
|
+
transformFunction: null
|
|
54
|
+
},
|
|
55
|
+
invalid: {
|
|
56
|
+
classPropertyName: "invalid",
|
|
57
|
+
publicName: "invalid",
|
|
58
|
+
isSignal: true,
|
|
59
|
+
isRequired: false,
|
|
60
|
+
transformFunction: null
|
|
61
|
+
},
|
|
62
|
+
touched: {
|
|
63
|
+
classPropertyName: "touched",
|
|
64
|
+
publicName: "touched",
|
|
65
|
+
isSignal: true,
|
|
66
|
+
isRequired: false,
|
|
67
|
+
transformFunction: null
|
|
68
|
+
},
|
|
69
|
+
fluid: {
|
|
70
|
+
classPropertyName: "fluid",
|
|
71
|
+
publicName: "fluid",
|
|
72
|
+
isSignal: true,
|
|
73
|
+
isRequired: false,
|
|
74
|
+
transformFunction: null
|
|
75
|
+
}
|
|
76
|
+
},
|
|
77
|
+
host: {
|
|
78
|
+
properties: {
|
|
79
|
+
"class.aeris-textarea--xs": "size() === \"xs\"",
|
|
80
|
+
"class.aeris-textarea--sm": "size() === \"sm\"",
|
|
81
|
+
"class.aeris-textarea--md": "size() === \"md\"",
|
|
82
|
+
"class.aeris-textarea--lg": "size() === \"lg\"",
|
|
83
|
+
"class.aeris-textarea--filled": "appearance() === \"filled\"",
|
|
84
|
+
"class.aeris-textarea--invalid": "displayInvalid()",
|
|
85
|
+
"class.aeris-textarea--fluid": "fluid()",
|
|
86
|
+
"attr.data-resize": "resize()",
|
|
87
|
+
"attr.aria-invalid": "displayInvalid() || null"
|
|
88
|
+
},
|
|
89
|
+
classAttribute: "aeris-textarea"
|
|
90
|
+
},
|
|
91
|
+
ngImport: i0
|
|
92
|
+
});
|
|
93
|
+
};
|
|
94
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
95
|
+
minVersion: "12.0.0",
|
|
96
|
+
version: "22.2.2",
|
|
97
|
+
ngImport: i0,
|
|
98
|
+
type: AerisTextareaDirective,
|
|
99
|
+
decorators: [{
|
|
100
|
+
type: Directive,
|
|
101
|
+
args: [{
|
|
102
|
+
selector: "textarea[aerisTextarea]",
|
|
103
|
+
host: {
|
|
104
|
+
class: "aeris-textarea",
|
|
105
|
+
"[class.aeris-textarea--xs]": "size() === \"xs\"",
|
|
106
|
+
"[class.aeris-textarea--sm]": "size() === \"sm\"",
|
|
107
|
+
"[class.aeris-textarea--md]": "size() === \"md\"",
|
|
108
|
+
"[class.aeris-textarea--lg]": "size() === \"lg\"",
|
|
109
|
+
"[class.aeris-textarea--filled]": "appearance() === \"filled\"",
|
|
110
|
+
"[class.aeris-textarea--invalid]": "displayInvalid()",
|
|
111
|
+
"[class.aeris-textarea--fluid]": "fluid()",
|
|
112
|
+
"[attr.data-resize]": "resize()",
|
|
113
|
+
"[attr.aria-invalid]": "displayInvalid() || null"
|
|
114
|
+
}
|
|
115
|
+
}]
|
|
116
|
+
}],
|
|
117
|
+
propDecorators: {
|
|
118
|
+
size: [{
|
|
119
|
+
type: i0.Input,
|
|
120
|
+
args: [{
|
|
121
|
+
isSignal: true,
|
|
122
|
+
alias: "size",
|
|
123
|
+
required: false
|
|
124
|
+
}]
|
|
125
|
+
}],
|
|
126
|
+
appearance: [{
|
|
127
|
+
type: i0.Input,
|
|
128
|
+
args: [{
|
|
129
|
+
isSignal: true,
|
|
130
|
+
alias: "appearance",
|
|
131
|
+
required: false
|
|
132
|
+
}]
|
|
133
|
+
}],
|
|
134
|
+
resize: [{
|
|
135
|
+
type: i0.Input,
|
|
136
|
+
args: [{
|
|
137
|
+
isSignal: true,
|
|
138
|
+
alias: "resize",
|
|
139
|
+
required: false
|
|
140
|
+
}]
|
|
141
|
+
}],
|
|
142
|
+
invalid: [{
|
|
143
|
+
type: i0.Input,
|
|
144
|
+
args: [{
|
|
145
|
+
isSignal: true,
|
|
146
|
+
alias: "invalid",
|
|
147
|
+
required: false
|
|
148
|
+
}]
|
|
149
|
+
}],
|
|
150
|
+
touched: [{
|
|
151
|
+
type: i0.Input,
|
|
152
|
+
args: [{
|
|
153
|
+
isSignal: true,
|
|
154
|
+
alias: "touched",
|
|
155
|
+
required: false
|
|
156
|
+
}]
|
|
157
|
+
}],
|
|
158
|
+
fluid: [{
|
|
159
|
+
type: i0.Input,
|
|
160
|
+
args: [{
|
|
161
|
+
isSignal: true,
|
|
162
|
+
alias: "fluid",
|
|
163
|
+
required: false
|
|
164
|
+
}]
|
|
165
|
+
}]
|
|
166
|
+
}
|
|
167
|
+
});
|
|
35
168
|
let textareaId = 0;
|
|
36
|
-
class AerisTextareaComponent {
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
169
|
+
var AerisTextareaComponent = class AerisTextareaComponent {
|
|
170
|
+
value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
171
|
+
inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
|
|
172
|
+
name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
173
|
+
placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
174
|
+
autocomplete = input("off", ...ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []);
|
|
175
|
+
rows = input(3, ...ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []);
|
|
176
|
+
cols = input(...ngDevMode ? [void 0, { debugName: "cols" }] : /* istanbul ignore next */ []);
|
|
177
|
+
wrap = input("soft", ...ngDevMode ? [{ debugName: "wrap" }] : /* istanbul ignore next */ []);
|
|
178
|
+
minLength = input(...ngDevMode ? [void 0, { debugName: "minLength" }] : /* istanbul ignore next */ []);
|
|
179
|
+
maxLength = input(...ngDevMode ? [void 0, { debugName: "maxLength" }] : /* istanbul ignore next */ []);
|
|
180
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
181
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
182
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
183
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
184
|
+
appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
185
|
+
resize = input("vertical", ...ngDevMode ? [{ debugName: "resize" }] : /* istanbul ignore next */ []);
|
|
186
|
+
disabled = input(false, {
|
|
187
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
188
|
+
transform: booleanAttribute
|
|
189
|
+
});
|
|
190
|
+
readonly = input(false, {
|
|
191
|
+
...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
|
|
192
|
+
transform: booleanAttribute
|
|
193
|
+
});
|
|
194
|
+
required = input(false, {
|
|
195
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
196
|
+
transform: booleanAttribute
|
|
197
|
+
});
|
|
198
|
+
invalid = input(false, {
|
|
199
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
200
|
+
transform: booleanAttribute
|
|
201
|
+
});
|
|
202
|
+
touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
203
|
+
fluid = input(false, {
|
|
204
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
205
|
+
transform: booleanAttribute
|
|
206
|
+
});
|
|
207
|
+
autoResize = input(false, {
|
|
208
|
+
...ngDevMode ? { debugName: "autoResize" } : /* istanbul ignore next */ {},
|
|
209
|
+
transform: booleanAttribute
|
|
210
|
+
});
|
|
211
|
+
minRows = input(3, ...ngDevMode ? [{ debugName: "minRows" }] : /* istanbul ignore next */ []);
|
|
212
|
+
maxRows = input(...ngDevMode ? [void 0, { debugName: "maxRows" }] : /* istanbul ignore next */ []);
|
|
213
|
+
showCount = input(false, {
|
|
214
|
+
...ngDevMode ? { debugName: "showCount" } : /* istanbul ignore next */ {},
|
|
215
|
+
transform: booleanAttribute
|
|
216
|
+
});
|
|
217
|
+
countLive = input(false, {
|
|
218
|
+
...ngDevMode ? { debugName: "countLive" } : /* istanbul ignore next */ {},
|
|
219
|
+
transform: booleanAttribute
|
|
220
|
+
});
|
|
221
|
+
clearable = input(false, {
|
|
222
|
+
...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
|
|
223
|
+
transform: booleanAttribute
|
|
224
|
+
});
|
|
225
|
+
clearButtonAriaLabel = input("Clear text", ...ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []);
|
|
226
|
+
focused = output();
|
|
227
|
+
blurred = output();
|
|
228
|
+
scrolled = output();
|
|
229
|
+
touch = output();
|
|
230
|
+
cleared = output();
|
|
231
|
+
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
232
|
+
autoHeight = signal(null, ...ngDevMode ? [{ debugName: "autoHeight" }] : /* istanbul ignore next */ []);
|
|
233
|
+
atMaximumHeight = signal(false, ...ngDevMode ? [{ debugName: "atMaximumHeight" }] : /* istanbul ignore next */ []);
|
|
234
|
+
effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
|
|
235
|
+
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
236
|
+
generatedId = `aeris-textarea-${++textareaId}`;
|
|
237
|
+
resolvedInputId = computed(() => this.inputId() || this.generatedId, ...ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []);
|
|
238
|
+
characterCount = computed(() => Array.from(this.value()).length, ...ngDevMode ? [{ debugName: "characterCount" }] : /* istanbul ignore next */ []);
|
|
239
|
+
showClearButton = computed(() => this.clearable() && this.value().length > 0 && !this.effectiveDisabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []);
|
|
240
|
+
textarea = viewChild("textarea", ...ngDevMode ? [{ debugName: "textarea" }] : /* istanbul ignore next */ []);
|
|
241
|
+
onChange = () => void 0;
|
|
242
|
+
onTouched = () => void 0;
|
|
243
|
+
writeValue(value) {
|
|
244
|
+
this.value.set(value == null ? "" : String(value));
|
|
245
|
+
this.scheduleResize();
|
|
246
|
+
}
|
|
247
|
+
registerOnChange(callback) {
|
|
248
|
+
this.onChange = callback;
|
|
249
|
+
}
|
|
250
|
+
registerOnTouched(callback) {
|
|
251
|
+
this.onTouched = callback;
|
|
252
|
+
}
|
|
253
|
+
setDisabledState(disabled) {
|
|
254
|
+
this.formDisabled.set(disabled);
|
|
255
|
+
}
|
|
256
|
+
focus(options) {
|
|
257
|
+
this.textarea()?.nativeElement.focus(options);
|
|
258
|
+
}
|
|
259
|
+
reset() {
|
|
260
|
+
this.setValue("");
|
|
261
|
+
this.scheduleResize();
|
|
262
|
+
}
|
|
263
|
+
clear() {
|
|
264
|
+
if (this.effectiveDisabled() || this.readonly()) return;
|
|
265
|
+
this.setValue("");
|
|
266
|
+
this.cleared.emit();
|
|
267
|
+
this.scheduleResize();
|
|
268
|
+
queueMicrotask(() => this.focus());
|
|
269
|
+
}
|
|
270
|
+
resizeToContent() {
|
|
271
|
+
if (!this.autoResize()) return;
|
|
272
|
+
const element = this.textarea()?.nativeElement;
|
|
273
|
+
if (!element) return;
|
|
274
|
+
const styles = getComputedStyle(element);
|
|
275
|
+
const configuredRowHeight = cssPixelValue(styles, "--aeris-textarea-row-height", 21);
|
|
276
|
+
const rowHeight = Math.max(configuredRowHeight, cssPixelValue(styles, "line-height", configuredRowHeight));
|
|
277
|
+
const verticalPadding = cssPixelValue(styles, "--aeris-textarea-vertical-padding", 20);
|
|
278
|
+
const minimum = Math.max(1, this.minRows()) * rowHeight + verticalPadding;
|
|
279
|
+
const maximumRows = this.maxRows();
|
|
280
|
+
const maximum = maximumRows === void 0 ? Number.POSITIVE_INFINITY : Math.max(this.minRows(), maximumRows) * rowHeight + verticalPadding;
|
|
281
|
+
const height = Math.min(maximum, Math.max(minimum, element.scrollHeight));
|
|
282
|
+
this.autoHeight.set(height);
|
|
283
|
+
this.atMaximumHeight.set(Number.isFinite(maximum) && element.scrollHeight > maximum);
|
|
284
|
+
}
|
|
285
|
+
handleInput(event) {
|
|
286
|
+
this.setValue(event.target.value);
|
|
287
|
+
this.resizeToContent();
|
|
288
|
+
}
|
|
289
|
+
handleBlur(event) {
|
|
290
|
+
this.onTouched();
|
|
291
|
+
this.touch.emit();
|
|
292
|
+
this.blurred.emit(event);
|
|
293
|
+
}
|
|
294
|
+
setValue(value) {
|
|
295
|
+
if (this.value() === value) return;
|
|
296
|
+
this.value.set(value);
|
|
297
|
+
this.onChange(value);
|
|
298
|
+
}
|
|
299
|
+
scheduleResize() {
|
|
300
|
+
if (this.autoResize()) queueMicrotask(() => this.resizeToContent());
|
|
301
|
+
}
|
|
302
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
303
|
+
minVersion: "12.0.0",
|
|
304
|
+
version: "22.2.2",
|
|
305
|
+
ngImport: i0,
|
|
306
|
+
type: AerisTextareaComponent,
|
|
307
|
+
deps: [],
|
|
308
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
309
|
+
});
|
|
310
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
311
|
+
minVersion: "17.0.0",
|
|
312
|
+
version: "22.2.2",
|
|
313
|
+
type: AerisTextareaComponent,
|
|
314
|
+
isStandalone: true,
|
|
315
|
+
selector: "aeris-textarea",
|
|
316
|
+
inputs: {
|
|
317
|
+
value: {
|
|
318
|
+
classPropertyName: "value",
|
|
319
|
+
publicName: "value",
|
|
320
|
+
isSignal: true,
|
|
321
|
+
isRequired: false,
|
|
322
|
+
transformFunction: null
|
|
323
|
+
},
|
|
324
|
+
inputId: {
|
|
325
|
+
classPropertyName: "inputId",
|
|
326
|
+
publicName: "inputId",
|
|
327
|
+
isSignal: true,
|
|
328
|
+
isRequired: false,
|
|
329
|
+
transformFunction: null
|
|
330
|
+
},
|
|
331
|
+
name: {
|
|
332
|
+
classPropertyName: "name",
|
|
333
|
+
publicName: "name",
|
|
334
|
+
isSignal: true,
|
|
335
|
+
isRequired: false,
|
|
336
|
+
transformFunction: null
|
|
337
|
+
},
|
|
338
|
+
placeholder: {
|
|
339
|
+
classPropertyName: "placeholder",
|
|
340
|
+
publicName: "placeholder",
|
|
341
|
+
isSignal: true,
|
|
342
|
+
isRequired: false,
|
|
343
|
+
transformFunction: null
|
|
344
|
+
},
|
|
345
|
+
autocomplete: {
|
|
346
|
+
classPropertyName: "autocomplete",
|
|
347
|
+
publicName: "autocomplete",
|
|
348
|
+
isSignal: true,
|
|
349
|
+
isRequired: false,
|
|
350
|
+
transformFunction: null
|
|
351
|
+
},
|
|
352
|
+
rows: {
|
|
353
|
+
classPropertyName: "rows",
|
|
354
|
+
publicName: "rows",
|
|
355
|
+
isSignal: true,
|
|
356
|
+
isRequired: false,
|
|
357
|
+
transformFunction: null
|
|
358
|
+
},
|
|
359
|
+
cols: {
|
|
360
|
+
classPropertyName: "cols",
|
|
361
|
+
publicName: "cols",
|
|
362
|
+
isSignal: true,
|
|
363
|
+
isRequired: false,
|
|
364
|
+
transformFunction: null
|
|
365
|
+
},
|
|
366
|
+
wrap: {
|
|
367
|
+
classPropertyName: "wrap",
|
|
368
|
+
publicName: "wrap",
|
|
369
|
+
isSignal: true,
|
|
370
|
+
isRequired: false,
|
|
371
|
+
transformFunction: null
|
|
372
|
+
},
|
|
373
|
+
minLength: {
|
|
374
|
+
classPropertyName: "minLength",
|
|
375
|
+
publicName: "minLength",
|
|
376
|
+
isSignal: true,
|
|
377
|
+
isRequired: false,
|
|
378
|
+
transformFunction: null
|
|
379
|
+
},
|
|
380
|
+
maxLength: {
|
|
381
|
+
classPropertyName: "maxLength",
|
|
382
|
+
publicName: "maxLength",
|
|
383
|
+
isSignal: true,
|
|
384
|
+
isRequired: false,
|
|
385
|
+
transformFunction: null
|
|
386
|
+
},
|
|
387
|
+
ariaLabel: {
|
|
388
|
+
classPropertyName: "ariaLabel",
|
|
389
|
+
publicName: "ariaLabel",
|
|
390
|
+
isSignal: true,
|
|
391
|
+
isRequired: false,
|
|
392
|
+
transformFunction: null
|
|
393
|
+
},
|
|
394
|
+
ariaLabelledBy: {
|
|
395
|
+
classPropertyName: "ariaLabelledBy",
|
|
396
|
+
publicName: "ariaLabelledBy",
|
|
397
|
+
isSignal: true,
|
|
398
|
+
isRequired: false,
|
|
399
|
+
transformFunction: null
|
|
400
|
+
},
|
|
401
|
+
ariaDescribedBy: {
|
|
402
|
+
classPropertyName: "ariaDescribedBy",
|
|
403
|
+
publicName: "ariaDescribedBy",
|
|
404
|
+
isSignal: true,
|
|
405
|
+
isRequired: false,
|
|
406
|
+
transformFunction: null
|
|
407
|
+
},
|
|
408
|
+
size: {
|
|
409
|
+
classPropertyName: "size",
|
|
410
|
+
publicName: "size",
|
|
411
|
+
isSignal: true,
|
|
412
|
+
isRequired: false,
|
|
413
|
+
transformFunction: null
|
|
414
|
+
},
|
|
415
|
+
appearance: {
|
|
416
|
+
classPropertyName: "appearance",
|
|
417
|
+
publicName: "appearance",
|
|
418
|
+
isSignal: true,
|
|
419
|
+
isRequired: false,
|
|
420
|
+
transformFunction: null
|
|
421
|
+
},
|
|
422
|
+
resize: {
|
|
423
|
+
classPropertyName: "resize",
|
|
424
|
+
publicName: "resize",
|
|
425
|
+
isSignal: true,
|
|
426
|
+
isRequired: false,
|
|
427
|
+
transformFunction: null
|
|
428
|
+
},
|
|
429
|
+
disabled: {
|
|
430
|
+
classPropertyName: "disabled",
|
|
431
|
+
publicName: "disabled",
|
|
432
|
+
isSignal: true,
|
|
433
|
+
isRequired: false,
|
|
434
|
+
transformFunction: null
|
|
435
|
+
},
|
|
436
|
+
readonly: {
|
|
437
|
+
classPropertyName: "readonly",
|
|
438
|
+
publicName: "readonly",
|
|
439
|
+
isSignal: true,
|
|
440
|
+
isRequired: false,
|
|
441
|
+
transformFunction: null
|
|
442
|
+
},
|
|
443
|
+
required: {
|
|
444
|
+
classPropertyName: "required",
|
|
445
|
+
publicName: "required",
|
|
446
|
+
isSignal: true,
|
|
447
|
+
isRequired: false,
|
|
448
|
+
transformFunction: null
|
|
449
|
+
},
|
|
450
|
+
invalid: {
|
|
451
|
+
classPropertyName: "invalid",
|
|
452
|
+
publicName: "invalid",
|
|
453
|
+
isSignal: true,
|
|
454
|
+
isRequired: false,
|
|
455
|
+
transformFunction: null
|
|
456
|
+
},
|
|
457
|
+
touched: {
|
|
458
|
+
classPropertyName: "touched",
|
|
459
|
+
publicName: "touched",
|
|
460
|
+
isSignal: true,
|
|
461
|
+
isRequired: false,
|
|
462
|
+
transformFunction: null
|
|
463
|
+
},
|
|
464
|
+
fluid: {
|
|
465
|
+
classPropertyName: "fluid",
|
|
466
|
+
publicName: "fluid",
|
|
467
|
+
isSignal: true,
|
|
468
|
+
isRequired: false,
|
|
469
|
+
transformFunction: null
|
|
470
|
+
},
|
|
471
|
+
autoResize: {
|
|
472
|
+
classPropertyName: "autoResize",
|
|
473
|
+
publicName: "autoResize",
|
|
474
|
+
isSignal: true,
|
|
475
|
+
isRequired: false,
|
|
476
|
+
transformFunction: null
|
|
477
|
+
},
|
|
478
|
+
minRows: {
|
|
479
|
+
classPropertyName: "minRows",
|
|
480
|
+
publicName: "minRows",
|
|
481
|
+
isSignal: true,
|
|
482
|
+
isRequired: false,
|
|
483
|
+
transformFunction: null
|
|
484
|
+
},
|
|
485
|
+
maxRows: {
|
|
486
|
+
classPropertyName: "maxRows",
|
|
487
|
+
publicName: "maxRows",
|
|
488
|
+
isSignal: true,
|
|
489
|
+
isRequired: false,
|
|
490
|
+
transformFunction: null
|
|
491
|
+
},
|
|
492
|
+
showCount: {
|
|
493
|
+
classPropertyName: "showCount",
|
|
494
|
+
publicName: "showCount",
|
|
495
|
+
isSignal: true,
|
|
496
|
+
isRequired: false,
|
|
497
|
+
transformFunction: null
|
|
498
|
+
},
|
|
499
|
+
countLive: {
|
|
500
|
+
classPropertyName: "countLive",
|
|
501
|
+
publicName: "countLive",
|
|
502
|
+
isSignal: true,
|
|
503
|
+
isRequired: false,
|
|
504
|
+
transformFunction: null
|
|
505
|
+
},
|
|
506
|
+
clearable: {
|
|
507
|
+
classPropertyName: "clearable",
|
|
508
|
+
publicName: "clearable",
|
|
509
|
+
isSignal: true,
|
|
510
|
+
isRequired: false,
|
|
511
|
+
transformFunction: null
|
|
512
|
+
},
|
|
513
|
+
clearButtonAriaLabel: {
|
|
514
|
+
classPropertyName: "clearButtonAriaLabel",
|
|
515
|
+
publicName: "clearButtonAriaLabel",
|
|
516
|
+
isSignal: true,
|
|
517
|
+
isRequired: false,
|
|
518
|
+
transformFunction: null
|
|
519
|
+
}
|
|
520
|
+
},
|
|
521
|
+
outputs: {
|
|
522
|
+
value: "valueChange",
|
|
523
|
+
focused: "focused",
|
|
524
|
+
blurred: "blurred",
|
|
525
|
+
scrolled: "scrolled",
|
|
526
|
+
touch: "touch",
|
|
527
|
+
cleared: "cleared"
|
|
528
|
+
},
|
|
529
|
+
host: { properties: { "attr.data-fluid": "fluid() || null" } },
|
|
530
|
+
providers: [{
|
|
531
|
+
provide: NG_VALUE_ACCESSOR,
|
|
532
|
+
useExisting: forwardRef(() => AerisTextareaComponent),
|
|
533
|
+
multi: true
|
|
534
|
+
}],
|
|
535
|
+
viewQueries: [{
|
|
536
|
+
propertyName: "textarea",
|
|
537
|
+
first: true,
|
|
538
|
+
predicate: ["textarea"],
|
|
539
|
+
descendants: true,
|
|
540
|
+
isSignal: true
|
|
541
|
+
}],
|
|
542
|
+
ngImport: i0,
|
|
543
|
+
template: `
|
|
188
544
|
<span
|
|
189
545
|
class="aeris-textarea-component"
|
|
190
546
|
[attr.data-size]="size()"
|
|
191
547
|
[attr.data-fluid]="fluid() || null"
|
|
192
548
|
[attr.data-disabled]="effectiveDisabled() || null"
|
|
193
|
-
[attr.data-invalid]="
|
|
549
|
+
[attr.data-invalid]="displayInvalid() || null"
|
|
194
550
|
>
|
|
195
551
|
<span class="aeris-textarea-component__field">
|
|
196
552
|
<textarea
|
|
@@ -208,6 +564,7 @@ class AerisTextareaComponent {
|
|
|
208
564
|
[appearance]="appearance()"
|
|
209
565
|
[resize]="autoResize() ? 'none' : resize()"
|
|
210
566
|
[invalid]="invalid()"
|
|
567
|
+
[touched]="touched()"
|
|
211
568
|
[disabled]="effectiveDisabled()"
|
|
212
569
|
[readOnly]="readonly()"
|
|
213
570
|
[required]="required()"
|
|
@@ -215,8 +572,8 @@ class AerisTextareaComponent {
|
|
|
215
572
|
[attr.minlength]="minLength() ?? null"
|
|
216
573
|
[attr.maxlength]="maxLength() ?? null"
|
|
217
574
|
[attr.aria-label]="ariaLabel() || null"
|
|
218
|
-
[attr.aria-labelledby]="
|
|
219
|
-
[attr.aria-describedby]="
|
|
575
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
576
|
+
[attr.aria-describedby]="ariaDescribedBy() || null"
|
|
220
577
|
[attr.aria-required]="required() || null"
|
|
221
578
|
[style.height.px]="autoResize() ? autoHeight() : null"
|
|
222
579
|
[style.overflow-y]="autoResize() && atMaximumHeight() ? 'auto' : null"
|
|
@@ -251,17 +608,41 @@ class AerisTextareaComponent {
|
|
|
251
608
|
</span>
|
|
252
609
|
}
|
|
253
610
|
</span>
|
|
254
|
-
`,
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
611
|
+
`,
|
|
612
|
+
isInline: true,
|
|
613
|
+
styles: [":host{display:inline-block;max-width:100%;font:inherit}:host([data-fluid]){width:100%}.aeris-textarea-component{display:inline-grid;max-width:100%;gap:.375rem}.aeris-textarea-component[data-fluid]{width:100%}.aeris-textarea-component__field{position:relative;display:block}.aeris-textarea-component__field textarea{display:block}.aeris-textarea-component__field:has(.aeris-textarea-component__clear) textarea{padding-right:2.75rem}.aeris-textarea-component__clear{position:absolute;top:.5rem;right:.5rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #454545);cursor:pointer}.aeris-textarea-component__clear:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}@media(hover:hover){.aeris-textarea-component__clear:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-textarea-component__clear:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-textarea-component__clear span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-textarea-component__count{justify-self:end;color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem);line-height:1.4}.aeris-textarea-component[data-disabled]{cursor:not-allowed}@media(pointer:coarse){textarea{font-size:var(--aeris-mobile-input-font-size, 1rem)}}\n"],
|
|
614
|
+
dependencies: [{
|
|
615
|
+
kind: "directive",
|
|
616
|
+
type: AerisTextareaDirective,
|
|
617
|
+
selector: "textarea[aerisTextarea]",
|
|
618
|
+
inputs: [
|
|
619
|
+
"size",
|
|
620
|
+
"appearance",
|
|
621
|
+
"resize",
|
|
622
|
+
"invalid",
|
|
623
|
+
"touched",
|
|
624
|
+
"fluid"
|
|
625
|
+
]
|
|
626
|
+
}]
|
|
627
|
+
});
|
|
628
|
+
};
|
|
629
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
630
|
+
minVersion: "12.0.0",
|
|
631
|
+
version: "22.2.2",
|
|
632
|
+
ngImport: i0,
|
|
633
|
+
type: AerisTextareaComponent,
|
|
634
|
+
decorators: [{
|
|
635
|
+
type: Component,
|
|
636
|
+
args: [{
|
|
637
|
+
selector: "aeris-textarea",
|
|
638
|
+
imports: [AerisTextareaDirective],
|
|
639
|
+
template: `
|
|
259
640
|
<span
|
|
260
641
|
class="aeris-textarea-component"
|
|
261
642
|
[attr.data-size]="size()"
|
|
262
643
|
[attr.data-fluid]="fluid() || null"
|
|
263
644
|
[attr.data-disabled]="effectiveDisabled() || null"
|
|
264
|
-
[attr.data-invalid]="
|
|
645
|
+
[attr.data-invalid]="displayInvalid() || null"
|
|
265
646
|
>
|
|
266
647
|
<span class="aeris-textarea-component__field">
|
|
267
648
|
<textarea
|
|
@@ -279,6 +660,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
279
660
|
[appearance]="appearance()"
|
|
280
661
|
[resize]="autoResize() ? 'none' : resize()"
|
|
281
662
|
[invalid]="invalid()"
|
|
663
|
+
[touched]="touched()"
|
|
282
664
|
[disabled]="effectiveDisabled()"
|
|
283
665
|
[readOnly]="readonly()"
|
|
284
666
|
[required]="required()"
|
|
@@ -286,8 +668,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
286
668
|
[attr.minlength]="minLength() ?? null"
|
|
287
669
|
[attr.maxlength]="maxLength() ?? null"
|
|
288
670
|
[attr.aria-label]="ariaLabel() || null"
|
|
289
|
-
[attr.aria-labelledby]="
|
|
290
|
-
[attr.aria-describedby]="
|
|
671
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
672
|
+
[attr.aria-describedby]="ariaDescribedBy() || null"
|
|
291
673
|
[attr.aria-required]="required() || null"
|
|
292
674
|
[style.height.px]="autoResize() ? autoHeight() : null"
|
|
293
675
|
[style.overflow-y]="autoResize() && atMaximumHeight() ? 'auto' : null"
|
|
@@ -322,28 +704,283 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
322
704
|
</span>
|
|
323
705
|
}
|
|
324
706
|
</span>
|
|
325
|
-
`,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
707
|
+
`,
|
|
708
|
+
providers: [{
|
|
709
|
+
provide: NG_VALUE_ACCESSOR,
|
|
710
|
+
useExisting: forwardRef(() => AerisTextareaComponent),
|
|
711
|
+
multi: true
|
|
712
|
+
}],
|
|
713
|
+
host: { "[attr.data-fluid]": "fluid() || null" },
|
|
714
|
+
styles: [":host{display:inline-block;max-width:100%;font:inherit}:host([data-fluid]){width:100%}.aeris-textarea-component{display:inline-grid;max-width:100%;gap:.375rem}.aeris-textarea-component[data-fluid]{width:100%}.aeris-textarea-component__field{position:relative;display:block}.aeris-textarea-component__field textarea{display:block}.aeris-textarea-component__field:has(.aeris-textarea-component__clear) textarea{padding-right:2.75rem}.aeris-textarea-component__clear{position:absolute;top:.5rem;right:.5rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #454545);cursor:pointer}.aeris-textarea-component__clear:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}@media(hover:hover){.aeris-textarea-component__clear:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-textarea-component__clear:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-textarea-component__clear span{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:currentColor;-webkit-mask:var(--aeris-icon-close) center/100% 100% no-repeat;mask:var(--aeris-icon-close) center/100% 100% no-repeat}.aeris-textarea-component__count{justify-self:end;color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem);line-height:1.4}.aeris-textarea-component[data-disabled]{cursor:not-allowed}@media(pointer:coarse){textarea{font-size:var(--aeris-mobile-input-font-size, 1rem)}}\n"]
|
|
715
|
+
}]
|
|
716
|
+
}],
|
|
717
|
+
propDecorators: {
|
|
718
|
+
value: [{
|
|
719
|
+
type: i0.Input,
|
|
720
|
+
args: [{
|
|
721
|
+
isSignal: true,
|
|
722
|
+
alias: "value",
|
|
723
|
+
required: false
|
|
724
|
+
}]
|
|
725
|
+
}, {
|
|
726
|
+
type: i0.Output,
|
|
727
|
+
args: ["valueChange"]
|
|
728
|
+
}],
|
|
729
|
+
inputId: [{
|
|
730
|
+
type: i0.Input,
|
|
731
|
+
args: [{
|
|
732
|
+
isSignal: true,
|
|
733
|
+
alias: "inputId",
|
|
734
|
+
required: false
|
|
735
|
+
}]
|
|
736
|
+
}],
|
|
737
|
+
name: [{
|
|
738
|
+
type: i0.Input,
|
|
739
|
+
args: [{
|
|
740
|
+
isSignal: true,
|
|
741
|
+
alias: "name",
|
|
742
|
+
required: false
|
|
743
|
+
}]
|
|
744
|
+
}],
|
|
745
|
+
placeholder: [{
|
|
746
|
+
type: i0.Input,
|
|
747
|
+
args: [{
|
|
748
|
+
isSignal: true,
|
|
749
|
+
alias: "placeholder",
|
|
750
|
+
required: false
|
|
751
|
+
}]
|
|
752
|
+
}],
|
|
753
|
+
autocomplete: [{
|
|
754
|
+
type: i0.Input,
|
|
755
|
+
args: [{
|
|
756
|
+
isSignal: true,
|
|
757
|
+
alias: "autocomplete",
|
|
758
|
+
required: false
|
|
759
|
+
}]
|
|
760
|
+
}],
|
|
761
|
+
rows: [{
|
|
762
|
+
type: i0.Input,
|
|
763
|
+
args: [{
|
|
764
|
+
isSignal: true,
|
|
765
|
+
alias: "rows",
|
|
766
|
+
required: false
|
|
767
|
+
}]
|
|
768
|
+
}],
|
|
769
|
+
cols: [{
|
|
770
|
+
type: i0.Input,
|
|
771
|
+
args: [{
|
|
772
|
+
isSignal: true,
|
|
773
|
+
alias: "cols",
|
|
774
|
+
required: false
|
|
775
|
+
}]
|
|
776
|
+
}],
|
|
777
|
+
wrap: [{
|
|
778
|
+
type: i0.Input,
|
|
779
|
+
args: [{
|
|
780
|
+
isSignal: true,
|
|
781
|
+
alias: "wrap",
|
|
782
|
+
required: false
|
|
783
|
+
}]
|
|
784
|
+
}],
|
|
785
|
+
minLength: [{
|
|
786
|
+
type: i0.Input,
|
|
787
|
+
args: [{
|
|
788
|
+
isSignal: true,
|
|
789
|
+
alias: "minLength",
|
|
790
|
+
required: false
|
|
791
|
+
}]
|
|
792
|
+
}],
|
|
793
|
+
maxLength: [{
|
|
794
|
+
type: i0.Input,
|
|
795
|
+
args: [{
|
|
796
|
+
isSignal: true,
|
|
797
|
+
alias: "maxLength",
|
|
798
|
+
required: false
|
|
799
|
+
}]
|
|
800
|
+
}],
|
|
801
|
+
ariaLabel: [{
|
|
802
|
+
type: i0.Input,
|
|
803
|
+
args: [{
|
|
804
|
+
isSignal: true,
|
|
805
|
+
alias: "ariaLabel",
|
|
806
|
+
required: false
|
|
807
|
+
}]
|
|
808
|
+
}],
|
|
809
|
+
ariaLabelledBy: [{
|
|
810
|
+
type: i0.Input,
|
|
811
|
+
args: [{
|
|
812
|
+
isSignal: true,
|
|
813
|
+
alias: "ariaLabelledBy",
|
|
814
|
+
required: false
|
|
815
|
+
}]
|
|
816
|
+
}],
|
|
817
|
+
ariaDescribedBy: [{
|
|
818
|
+
type: i0.Input,
|
|
819
|
+
args: [{
|
|
820
|
+
isSignal: true,
|
|
821
|
+
alias: "ariaDescribedBy",
|
|
822
|
+
required: false
|
|
823
|
+
}]
|
|
824
|
+
}],
|
|
825
|
+
size: [{
|
|
826
|
+
type: i0.Input,
|
|
827
|
+
args: [{
|
|
828
|
+
isSignal: true,
|
|
829
|
+
alias: "size",
|
|
830
|
+
required: false
|
|
831
|
+
}]
|
|
832
|
+
}],
|
|
833
|
+
appearance: [{
|
|
834
|
+
type: i0.Input,
|
|
835
|
+
args: [{
|
|
836
|
+
isSignal: true,
|
|
837
|
+
alias: "appearance",
|
|
838
|
+
required: false
|
|
839
|
+
}]
|
|
840
|
+
}],
|
|
841
|
+
resize: [{
|
|
842
|
+
type: i0.Input,
|
|
843
|
+
args: [{
|
|
844
|
+
isSignal: true,
|
|
845
|
+
alias: "resize",
|
|
846
|
+
required: false
|
|
847
|
+
}]
|
|
848
|
+
}],
|
|
849
|
+
disabled: [{
|
|
850
|
+
type: i0.Input,
|
|
851
|
+
args: [{
|
|
852
|
+
isSignal: true,
|
|
853
|
+
alias: "disabled",
|
|
854
|
+
required: false
|
|
855
|
+
}]
|
|
856
|
+
}],
|
|
857
|
+
readonly: [{
|
|
858
|
+
type: i0.Input,
|
|
859
|
+
args: [{
|
|
860
|
+
isSignal: true,
|
|
861
|
+
alias: "readonly",
|
|
862
|
+
required: false
|
|
863
|
+
}]
|
|
864
|
+
}],
|
|
865
|
+
required: [{
|
|
866
|
+
type: i0.Input,
|
|
867
|
+
args: [{
|
|
868
|
+
isSignal: true,
|
|
869
|
+
alias: "required",
|
|
870
|
+
required: false
|
|
871
|
+
}]
|
|
872
|
+
}],
|
|
873
|
+
invalid: [{
|
|
874
|
+
type: i0.Input,
|
|
875
|
+
args: [{
|
|
876
|
+
isSignal: true,
|
|
877
|
+
alias: "invalid",
|
|
878
|
+
required: false
|
|
879
|
+
}]
|
|
880
|
+
}],
|
|
881
|
+
touched: [{
|
|
882
|
+
type: i0.Input,
|
|
883
|
+
args: [{
|
|
884
|
+
isSignal: true,
|
|
885
|
+
alias: "touched",
|
|
886
|
+
required: false
|
|
887
|
+
}]
|
|
888
|
+
}],
|
|
889
|
+
fluid: [{
|
|
890
|
+
type: i0.Input,
|
|
891
|
+
args: [{
|
|
892
|
+
isSignal: true,
|
|
893
|
+
alias: "fluid",
|
|
894
|
+
required: false
|
|
895
|
+
}]
|
|
896
|
+
}],
|
|
897
|
+
autoResize: [{
|
|
898
|
+
type: i0.Input,
|
|
899
|
+
args: [{
|
|
900
|
+
isSignal: true,
|
|
901
|
+
alias: "autoResize",
|
|
902
|
+
required: false
|
|
903
|
+
}]
|
|
904
|
+
}],
|
|
905
|
+
minRows: [{
|
|
906
|
+
type: i0.Input,
|
|
907
|
+
args: [{
|
|
908
|
+
isSignal: true,
|
|
909
|
+
alias: "minRows",
|
|
910
|
+
required: false
|
|
911
|
+
}]
|
|
912
|
+
}],
|
|
913
|
+
maxRows: [{
|
|
914
|
+
type: i0.Input,
|
|
915
|
+
args: [{
|
|
916
|
+
isSignal: true,
|
|
917
|
+
alias: "maxRows",
|
|
918
|
+
required: false
|
|
919
|
+
}]
|
|
920
|
+
}],
|
|
921
|
+
showCount: [{
|
|
922
|
+
type: i0.Input,
|
|
923
|
+
args: [{
|
|
924
|
+
isSignal: true,
|
|
925
|
+
alias: "showCount",
|
|
926
|
+
required: false
|
|
927
|
+
}]
|
|
928
|
+
}],
|
|
929
|
+
countLive: [{
|
|
930
|
+
type: i0.Input,
|
|
931
|
+
args: [{
|
|
932
|
+
isSignal: true,
|
|
933
|
+
alias: "countLive",
|
|
934
|
+
required: false
|
|
935
|
+
}]
|
|
936
|
+
}],
|
|
937
|
+
clearable: [{
|
|
938
|
+
type: i0.Input,
|
|
939
|
+
args: [{
|
|
940
|
+
isSignal: true,
|
|
941
|
+
alias: "clearable",
|
|
942
|
+
required: false
|
|
943
|
+
}]
|
|
944
|
+
}],
|
|
945
|
+
clearButtonAriaLabel: [{
|
|
946
|
+
type: i0.Input,
|
|
947
|
+
args: [{
|
|
948
|
+
isSignal: true,
|
|
949
|
+
alias: "clearButtonAriaLabel",
|
|
950
|
+
required: false
|
|
951
|
+
}]
|
|
952
|
+
}],
|
|
953
|
+
focused: [{
|
|
954
|
+
type: i0.Output,
|
|
955
|
+
args: ["focused"]
|
|
956
|
+
}],
|
|
957
|
+
blurred: [{
|
|
958
|
+
type: i0.Output,
|
|
959
|
+
args: ["blurred"]
|
|
960
|
+
}],
|
|
961
|
+
scrolled: [{
|
|
962
|
+
type: i0.Output,
|
|
963
|
+
args: ["scrolled"]
|
|
964
|
+
}],
|
|
965
|
+
touch: [{
|
|
966
|
+
type: i0.Output,
|
|
967
|
+
args: ["touch"]
|
|
968
|
+
}],
|
|
969
|
+
cleared: [{
|
|
970
|
+
type: i0.Output,
|
|
971
|
+
args: ["cleared"]
|
|
972
|
+
}],
|
|
973
|
+
textarea: [{
|
|
974
|
+
type: i0.ViewChild,
|
|
975
|
+
args: ["textarea", { isSignal: true }]
|
|
976
|
+
}]
|
|
977
|
+
}
|
|
978
|
+
});
|
|
979
|
+
const AerisTextarea = [AerisTextareaDirective, AerisTextareaComponent];
|
|
339
980
|
function cssPixelValue(styles, property, fallback) {
|
|
340
|
-
|
|
341
|
-
|
|
981
|
+
const value = Number.parseFloat(styles.getPropertyValue(property));
|
|
982
|
+
return Number.isFinite(value) ? value : fallback;
|
|
342
983
|
}
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* Generated bundle index. Do not edit.
|
|
346
|
-
*/
|
|
347
|
-
|
|
348
984
|
export { AerisTextarea, AerisTextareaComponent, AerisTextareaDirective };
|
|
349
|
-
|
|
985
|
+
|
|
986
|
+
//# sourceMappingURL=aeris-ui-core-textarea.mjs.map
|