@aeris-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.11
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 +232 -191
- package/THIRD_PARTY_LICENSES.md +48 -0
- package/fesm2022/aeris-ui-core-accordion.mjs +666 -273
- 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 +1301 -450
- 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 +221 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +609 -199
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button-forms.mjs +78 -0
- package/fesm2022/aeris-ui-core-button-forms.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-button-group.mjs +554 -36
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +911 -137
- 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 +835 -369
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +1294 -525
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +594 -262
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +619 -150
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +1109 -121
- 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 +687 -0
- package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs +2436 -1076
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-command-palette.mjs +996 -0
- package/fesm2022/aeris-ui-core-command-palette.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-compare.mjs +870 -338
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1454 -575
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1499 -760
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +975 -449
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs +946 -0
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-date-picker.mjs +2538 -1183
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1187 -368
- 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 +1712 -345
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +418 -254
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +1808 -783
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1529 -536
- 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 +2821 -1143
- 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 +496 -132
- 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 +713 -257
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +1095 -297
- 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 +703 -160
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-kbd.mjs +243 -0
- package/fesm2022/aeris-ui-core-kbd.mjs.map +1 -0
- 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-listbox.mjs +789 -0
- package/fesm2022/aeris-ui-core-listbox.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-mega-menu.mjs +662 -388
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1111 -478
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +1081 -411
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +513 -147
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +641 -230
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1832 -577
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-navbar.mjs +1407 -0
- package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-order-list.mjs +748 -220
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +521 -201
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +671 -127
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +602 -210
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +1046 -269
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +1796 -703
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +1354 -385
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +609 -182
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +428 -133
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +502 -132
- 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 +279 -69
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select-native.mjs +145 -0
- package/fesm2022/aeris-ui-core-select-native.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-select.mjs +1984 -668
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-sidebar.mjs +1293 -0
- package/fesm2022/aeris-ui-core-sidebar.mjs.map +1 -0
- 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 +882 -337
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +972 -268
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +831 -356
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +705 -256
- 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 +2927 -923
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +855 -283
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +919 -221
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1368 -1407
- 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 +966 -447
- 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 +1109 -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 +1340 -131
- 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 +1650 -627
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2442 -994
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1257 -670
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +1601 -312
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +48 -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-color-derivation.js +1 -1
- package/schematics/runtime/theme-builder/aeris-contrast.js +38 -17
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-foundation.js +13 -8
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +33 -23
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +8 -2
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +63 -76
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +15 -5
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +18 -2
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +121 -34
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_choice-card.scss +93 -0
- package/styles/_fallback-colors.scss +10 -0
- package/styles/_icon-artwork.scss +14 -0
- package/styles/_icon-template.scss +42 -0
- package/styles/_mobile.scss +16 -0
- package/styles/_selection-icons.scss +12 -0
- package/styles/_table-pinning.scss +119 -0
- package/styles/_tokens.scss +5 -5
- package/styles/aeris.css +447 -137
- package/styles/controls.css +205 -35
- package/tools/aeris-theme.mjs +4 -4
- package/tools/aeris-theme.schema.json +18 -13
- 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 +339 -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 +48 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
- package/types/aeris-ui-core-button-forms.d.ts +18 -0
- package/types/aeris-ui-core-button-group.d.ts +150 -16
- package/types/aeris-ui-core-button.d.ts +274 -67
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +213 -117
- package/types/aeris-ui-core-cascade-select.d.ts +275 -123
- package/types/aeris-ui-core-chart.d.ts +150 -84
- package/types/aeris-ui-core-checkbox.d.ts +173 -54
- package/types/aeris-ui-core-chip.d.ts +316 -56
- package/types/aeris-ui-core-class-names.d.ts +22 -20
- package/types/aeris-ui-core-code-block.d.ts +201 -0
- package/types/aeris-ui-core-color-picker.d.ts +450 -143
- package/types/aeris-ui-core-command-palette.d.ts +267 -0
- package/types/aeris-ui-core-compare.d.ts +230 -102
- package/types/aeris-ui-core-confirm-dialog.d.ts +450 -245
- package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
- package/types/aeris-ui-core-context-menu.d.ts +270 -146
- package/types/aeris-ui-core-date-picker.d.ts +594 -219
- package/types/aeris-ui-core-dialog.d.ts +301 -117
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +380 -112
- package/types/aeris-ui-core-dynamic-dialog.d.ts +162 -137
- package/types/aeris-ui-core-editor.d.ts +257 -123
- package/types/aeris-ui-core-file-upload.d.ts +385 -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 +636 -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 +129 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -33
- package/types/aeris-ui-core-input-mask.d.ts +201 -69
- package/types/aeris-ui-core-input-number.d.ts +291 -87
- package/types/aeris-ui-core-input-otp.d.ts +191 -81
- package/types/aeris-ui-core-input-text.d.ts +195 -60
- package/types/aeris-ui-core-kbd.d.ts +74 -0
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-listbox.d.ts +222 -0
- package/types/aeris-ui-core-mega-menu.d.ts +181 -121
- package/types/aeris-ui-core-menu.d.ts +283 -168
- package/types/aeris-ui-core-menubar.d.ts +289 -135
- package/types/aeris-ui-core-message.d.ts +138 -60
- package/types/aeris-ui-core-meter-group.d.ts +169 -90
- package/types/aeris-ui-core-multi-select.d.ts +469 -180
- package/types/aeris-ui-core-navbar.d.ts +208 -0
- package/types/aeris-ui-core-order-list.d.ts +168 -66
- package/types/aeris-ui-core-organization-chart.d.ts +139 -77
- package/types/aeris-ui-core-paginator.d.ts +129 -38
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +276 -102
- package/types/aeris-ui-core-pick-list.d.ts +428 -179
- package/types/aeris-ui-core-popover.d.ts +294 -105
- package/types/aeris-ui-core-progress-bar.d.ts +163 -73
- package/types/aeris-ui-core-progress-spinner.d.ts +116 -48
- package/types/aeris-ui-core-radio-button.d.ts +146 -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 +73 -29
- package/types/aeris-ui-core-select-native.d.ts +40 -0
- package/types/aeris-ui-core-select.d.ts +487 -217
- package/types/aeris-ui-core-sidebar.d.ts +220 -0
- 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 +224 -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 +729 -304
- package/types/aeris-ui-core-tabs.d.ts +193 -76
- package/types/aeris-ui-core-textarea.d.ts +271 -78
- package/types/aeris-ui-core-theme-builder.d.ts +220 -463
- package/types/aeris-ui-core-theming.d.ts +42 -45
- package/types/aeris-ui-core-tiered-menu.d.ts +257 -142
- package/types/aeris-ui-core-timeline.d.ts +109 -71
- package/types/aeris-ui-core-toast.d.ts +231 -115
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
- package/types/aeris-ui-core-toolbar.d.ts +314 -47
- package/types/aeris-ui-core-tooltip.d.ts +157 -88
- package/types/aeris-ui-core-tree-select.d.ts +394 -171
- package/types/aeris-ui-core-tree-table.d.ts +629 -288
- package/types/aeris-ui-core-tree.d.ts +294 -165
- package/types/aeris-ui-core.d.ts +338 -74
|
@@ -1,196 +1,567 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
3
|
-
import {
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, Directive, booleanAttribute, computed, forwardRef, inject, input, model, output, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { COMPOSITION_BUFFER_MODE, NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
5
|
+
import { ɵAerisIcon, ɵaerisDisplayInvalid } from "@aeris-ui/core";
|
|
6
|
+
var AerisTextareaDirective = class AerisTextareaDirective {
|
|
7
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
8
|
+
appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
9
|
+
resize = input("vertical", ...ngDevMode ? [{ debugName: "resize" }] : /* istanbul ignore next */ []);
|
|
10
|
+
invalid = input(false, {
|
|
11
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
12
|
+
transform: booleanAttribute
|
|
13
|
+
});
|
|
14
|
+
touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
15
|
+
fluid = input(false, {
|
|
16
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
17
|
+
transform: booleanAttribute
|
|
18
|
+
});
|
|
19
|
+
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
20
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
21
|
+
minVersion: "12.0.0",
|
|
22
|
+
version: "22.2.3",
|
|
23
|
+
ngImport: i0,
|
|
24
|
+
type: AerisTextareaDirective,
|
|
25
|
+
deps: [],
|
|
26
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
27
|
+
});
|
|
28
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
29
|
+
minVersion: "17.1.0",
|
|
30
|
+
version: "22.2.3",
|
|
31
|
+
type: AerisTextareaDirective,
|
|
32
|
+
isStandalone: true,
|
|
33
|
+
selector: "textarea[aerisTextarea]",
|
|
34
|
+
inputs: {
|
|
35
|
+
size: {
|
|
36
|
+
classPropertyName: "size",
|
|
37
|
+
publicName: "size",
|
|
38
|
+
isSignal: true,
|
|
39
|
+
isRequired: false,
|
|
40
|
+
transformFunction: null
|
|
41
|
+
},
|
|
42
|
+
appearance: {
|
|
43
|
+
classPropertyName: "appearance",
|
|
44
|
+
publicName: "appearance",
|
|
45
|
+
isSignal: true,
|
|
46
|
+
isRequired: false,
|
|
47
|
+
transformFunction: null
|
|
48
|
+
},
|
|
49
|
+
resize: {
|
|
50
|
+
classPropertyName: "resize",
|
|
51
|
+
publicName: "resize",
|
|
52
|
+
isSignal: true,
|
|
53
|
+
isRequired: false,
|
|
54
|
+
transformFunction: null
|
|
55
|
+
},
|
|
56
|
+
invalid: {
|
|
57
|
+
classPropertyName: "invalid",
|
|
58
|
+
publicName: "invalid",
|
|
59
|
+
isSignal: true,
|
|
60
|
+
isRequired: false,
|
|
61
|
+
transformFunction: null
|
|
62
|
+
},
|
|
63
|
+
touched: {
|
|
64
|
+
classPropertyName: "touched",
|
|
65
|
+
publicName: "touched",
|
|
66
|
+
isSignal: true,
|
|
67
|
+
isRequired: false,
|
|
68
|
+
transformFunction: null
|
|
69
|
+
},
|
|
70
|
+
fluid: {
|
|
71
|
+
classPropertyName: "fluid",
|
|
72
|
+
publicName: "fluid",
|
|
73
|
+
isSignal: true,
|
|
74
|
+
isRequired: false,
|
|
75
|
+
transformFunction: null
|
|
76
|
+
}
|
|
77
|
+
},
|
|
78
|
+
host: {
|
|
79
|
+
properties: {
|
|
80
|
+
"class.aeris-textarea--xs": "size() === \"xs\"",
|
|
81
|
+
"class.aeris-textarea--sm": "size() === \"sm\"",
|
|
82
|
+
"class.aeris-textarea--md": "size() === \"md\"",
|
|
83
|
+
"class.aeris-textarea--lg": "size() === \"lg\"",
|
|
84
|
+
"class.aeris-textarea--filled": "appearance() === \"filled\"",
|
|
85
|
+
"class.aeris-textarea--invalid": "displayInvalid()",
|
|
86
|
+
"class.aeris-textarea--fluid": "fluid()",
|
|
87
|
+
"attr.data-resize": "resize()",
|
|
88
|
+
"attr.aria-invalid": "displayInvalid() || null"
|
|
89
|
+
},
|
|
90
|
+
classAttribute: "aeris-textarea"
|
|
91
|
+
},
|
|
92
|
+
ngImport: i0
|
|
93
|
+
});
|
|
94
|
+
};
|
|
95
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
96
|
+
minVersion: "12.0.0",
|
|
97
|
+
version: "22.2.3",
|
|
98
|
+
ngImport: i0,
|
|
99
|
+
type: AerisTextareaDirective,
|
|
100
|
+
decorators: [{
|
|
101
|
+
type: Directive,
|
|
102
|
+
args: [{
|
|
103
|
+
selector: "textarea[aerisTextarea]",
|
|
104
|
+
host: {
|
|
105
|
+
class: "aeris-textarea",
|
|
106
|
+
"[class.aeris-textarea--xs]": "size() === \"xs\"",
|
|
107
|
+
"[class.aeris-textarea--sm]": "size() === \"sm\"",
|
|
108
|
+
"[class.aeris-textarea--md]": "size() === \"md\"",
|
|
109
|
+
"[class.aeris-textarea--lg]": "size() === \"lg\"",
|
|
110
|
+
"[class.aeris-textarea--filled]": "appearance() === \"filled\"",
|
|
111
|
+
"[class.aeris-textarea--invalid]": "displayInvalid()",
|
|
112
|
+
"[class.aeris-textarea--fluid]": "fluid()",
|
|
113
|
+
"[attr.data-resize]": "resize()",
|
|
114
|
+
"[attr.aria-invalid]": "displayInvalid() || null"
|
|
115
|
+
}
|
|
116
|
+
}]
|
|
117
|
+
}],
|
|
118
|
+
propDecorators: {
|
|
119
|
+
size: [{
|
|
120
|
+
type: i0.Input,
|
|
121
|
+
args: [{
|
|
122
|
+
isSignal: true,
|
|
123
|
+
alias: "size",
|
|
124
|
+
required: false
|
|
125
|
+
}]
|
|
126
|
+
}],
|
|
127
|
+
appearance: [{
|
|
128
|
+
type: i0.Input,
|
|
129
|
+
args: [{
|
|
130
|
+
isSignal: true,
|
|
131
|
+
alias: "appearance",
|
|
132
|
+
required: false
|
|
133
|
+
}]
|
|
134
|
+
}],
|
|
135
|
+
resize: [{
|
|
136
|
+
type: i0.Input,
|
|
137
|
+
args: [{
|
|
138
|
+
isSignal: true,
|
|
139
|
+
alias: "resize",
|
|
140
|
+
required: false
|
|
141
|
+
}]
|
|
142
|
+
}],
|
|
143
|
+
invalid: [{
|
|
144
|
+
type: i0.Input,
|
|
145
|
+
args: [{
|
|
146
|
+
isSignal: true,
|
|
147
|
+
alias: "invalid",
|
|
148
|
+
required: false
|
|
149
|
+
}]
|
|
150
|
+
}],
|
|
151
|
+
touched: [{
|
|
152
|
+
type: i0.Input,
|
|
153
|
+
args: [{
|
|
154
|
+
isSignal: true,
|
|
155
|
+
alias: "touched",
|
|
156
|
+
required: false
|
|
157
|
+
}]
|
|
158
|
+
}],
|
|
159
|
+
fluid: [{
|
|
160
|
+
type: i0.Input,
|
|
161
|
+
args: [{
|
|
162
|
+
isSignal: true,
|
|
163
|
+
alias: "fluid",
|
|
164
|
+
required: false
|
|
165
|
+
}]
|
|
166
|
+
}]
|
|
167
|
+
}
|
|
168
|
+
});
|
|
35
169
|
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
|
-
|
|
170
|
+
var AerisTextareaComponent = class AerisTextareaComponent {
|
|
171
|
+
bufferComposition = inject(COMPOSITION_BUFFER_MODE, { optional: true }) ?? true;
|
|
172
|
+
composing = false;
|
|
173
|
+
clearIconTemplate = input(...ngDevMode ? [void 0, { debugName: "clearIconTemplate" }] : /* istanbul ignore next */ []);
|
|
174
|
+
value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
175
|
+
inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
|
|
176
|
+
name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
177
|
+
placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
178
|
+
autocomplete = input("off", ...ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []);
|
|
179
|
+
rows = input(3, ...ngDevMode ? [{ debugName: "rows" }] : /* istanbul ignore next */ []);
|
|
180
|
+
cols = input(...ngDevMode ? [void 0, { debugName: "cols" }] : /* istanbul ignore next */ []);
|
|
181
|
+
wrap = input("soft", ...ngDevMode ? [{ debugName: "wrap" }] : /* istanbul ignore next */ []);
|
|
182
|
+
minLength = input(...ngDevMode ? [void 0, { debugName: "minLength" }] : /* istanbul ignore next */ []);
|
|
183
|
+
maxLength = input(...ngDevMode ? [void 0, { debugName: "maxLength" }] : /* istanbul ignore next */ []);
|
|
184
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
185
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
186
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
187
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
188
|
+
appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
189
|
+
resize = input("vertical", ...ngDevMode ? [{ debugName: "resize" }] : /* istanbul ignore next */ []);
|
|
190
|
+
disabled = input(false, {
|
|
191
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
192
|
+
transform: booleanAttribute
|
|
193
|
+
});
|
|
194
|
+
readonly = input(false, {
|
|
195
|
+
...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
|
|
196
|
+
transform: booleanAttribute
|
|
197
|
+
});
|
|
198
|
+
required = input(false, {
|
|
199
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
200
|
+
transform: booleanAttribute
|
|
201
|
+
});
|
|
202
|
+
invalid = input(false, {
|
|
203
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
204
|
+
transform: booleanAttribute
|
|
205
|
+
});
|
|
206
|
+
touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
207
|
+
fluid = input(false, {
|
|
208
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
209
|
+
transform: booleanAttribute
|
|
210
|
+
});
|
|
211
|
+
autoResize = input(false, {
|
|
212
|
+
...ngDevMode ? { debugName: "autoResize" } : /* istanbul ignore next */ {},
|
|
213
|
+
transform: booleanAttribute
|
|
214
|
+
});
|
|
215
|
+
minRows = input(3, ...ngDevMode ? [{ debugName: "minRows" }] : /* istanbul ignore next */ []);
|
|
216
|
+
maxRows = input(...ngDevMode ? [void 0, { debugName: "maxRows" }] : /* istanbul ignore next */ []);
|
|
217
|
+
showCount = input(false, {
|
|
218
|
+
...ngDevMode ? { debugName: "showCount" } : /* istanbul ignore next */ {},
|
|
219
|
+
transform: booleanAttribute
|
|
220
|
+
});
|
|
221
|
+
countLive = input(false, {
|
|
222
|
+
...ngDevMode ? { debugName: "countLive" } : /* istanbul ignore next */ {},
|
|
223
|
+
transform: booleanAttribute
|
|
224
|
+
});
|
|
225
|
+
clearable = input(false, {
|
|
226
|
+
...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
|
|
227
|
+
transform: booleanAttribute
|
|
228
|
+
});
|
|
229
|
+
clearButtonAriaLabel = input("Clear text", ...ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []);
|
|
230
|
+
focused = output();
|
|
231
|
+
blurred = output();
|
|
232
|
+
scrolled = output();
|
|
233
|
+
touch = output();
|
|
234
|
+
cleared = output();
|
|
235
|
+
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
236
|
+
autoHeight = signal(null, ...ngDevMode ? [{ debugName: "autoHeight" }] : /* istanbul ignore next */ []);
|
|
237
|
+
atMaximumHeight = signal(false, ...ngDevMode ? [{ debugName: "atMaximumHeight" }] : /* istanbul ignore next */ []);
|
|
238
|
+
effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
|
|
239
|
+
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
240
|
+
generatedId = `aeris-textarea-${++textareaId}`;
|
|
241
|
+
resolvedInputId = computed(() => this.inputId() || this.generatedId, ...ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []);
|
|
242
|
+
characterCount = computed(() => Array.from(this.value()).length, ...ngDevMode ? [{ debugName: "characterCount" }] : /* istanbul ignore next */ []);
|
|
243
|
+
showClearButton = computed(() => this.clearable() && this.value().length > 0 && !this.effectiveDisabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []);
|
|
244
|
+
textarea = viewChild("textarea", ...ngDevMode ? [{ debugName: "textarea" }] : /* istanbul ignore next */ []);
|
|
245
|
+
onChange = () => void 0;
|
|
246
|
+
onTouched = () => void 0;
|
|
247
|
+
writeValue(value) {
|
|
248
|
+
this.value.set(value == null ? "" : String(value));
|
|
249
|
+
this.scheduleResize();
|
|
250
|
+
}
|
|
251
|
+
registerOnChange(callback) {
|
|
252
|
+
this.onChange = callback;
|
|
253
|
+
}
|
|
254
|
+
registerOnTouched(callback) {
|
|
255
|
+
this.onTouched = callback;
|
|
256
|
+
}
|
|
257
|
+
setDisabledState(disabled) {
|
|
258
|
+
this.formDisabled.set(disabled);
|
|
259
|
+
}
|
|
260
|
+
focus(options) {
|
|
261
|
+
this.textarea()?.nativeElement.focus(options);
|
|
262
|
+
}
|
|
263
|
+
reset() {
|
|
264
|
+
this.setValue("");
|
|
265
|
+
this.scheduleResize();
|
|
266
|
+
}
|
|
267
|
+
clear() {
|
|
268
|
+
if (this.effectiveDisabled() || this.readonly()) return;
|
|
269
|
+
this.setValue("");
|
|
270
|
+
this.cleared.emit();
|
|
271
|
+
this.scheduleResize();
|
|
272
|
+
queueMicrotask(() => this.focus());
|
|
273
|
+
}
|
|
274
|
+
resizeToContent() {
|
|
275
|
+
if (!this.autoResize()) return;
|
|
276
|
+
const element = this.textarea()?.nativeElement;
|
|
277
|
+
if (!element) return;
|
|
278
|
+
const styles = getComputedStyle(element);
|
|
279
|
+
const configuredRowHeight = cssPixelValue(styles, "--aeris-textarea-row-height", 21);
|
|
280
|
+
const rowHeight = Math.max(configuredRowHeight, cssPixelValue(styles, "line-height", configuredRowHeight));
|
|
281
|
+
const verticalPadding = cssPixelValue(styles, "--aeris-textarea-vertical-padding", 20);
|
|
282
|
+
const minimum = Math.max(1, this.minRows()) * rowHeight + verticalPadding;
|
|
283
|
+
const maximumRows = this.maxRows();
|
|
284
|
+
const maximum = maximumRows === void 0 ? Number.POSITIVE_INFINITY : Math.max(this.minRows(), maximumRows) * rowHeight + verticalPadding;
|
|
285
|
+
const height = Math.min(maximum, Math.max(minimum, element.scrollHeight));
|
|
286
|
+
this.autoHeight.set(height);
|
|
287
|
+
this.atMaximumHeight.set(Number.isFinite(maximum) && element.scrollHeight > maximum);
|
|
288
|
+
}
|
|
289
|
+
handleInput(event) {
|
|
290
|
+
if (!this.bufferComposition || !(this.composing || event.isComposing)) this.setValue(event.target.value);
|
|
291
|
+
this.resizeToContent();
|
|
292
|
+
}
|
|
293
|
+
handleCompositionEnd(event) {
|
|
294
|
+
this.composing = false;
|
|
295
|
+
if (this.bufferComposition) this.handleInput(event);
|
|
296
|
+
}
|
|
297
|
+
handleBlur(event) {
|
|
298
|
+
this.onTouched();
|
|
299
|
+
this.touch.emit();
|
|
300
|
+
this.blurred.emit(event);
|
|
301
|
+
}
|
|
302
|
+
setValue(value) {
|
|
303
|
+
if (this.value() === value) return;
|
|
304
|
+
this.value.set(value);
|
|
305
|
+
this.onChange(value);
|
|
306
|
+
}
|
|
307
|
+
scheduleResize() {
|
|
308
|
+
if (this.autoResize()) queueMicrotask(() => this.resizeToContent());
|
|
309
|
+
}
|
|
310
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
311
|
+
minVersion: "12.0.0",
|
|
312
|
+
version: "22.2.3",
|
|
313
|
+
ngImport: i0,
|
|
314
|
+
type: AerisTextareaComponent,
|
|
315
|
+
deps: [],
|
|
316
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
317
|
+
});
|
|
318
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
319
|
+
minVersion: "17.0.0",
|
|
320
|
+
version: "22.2.3",
|
|
321
|
+
type: AerisTextareaComponent,
|
|
322
|
+
isStandalone: true,
|
|
323
|
+
selector: "aeris-textarea",
|
|
324
|
+
inputs: {
|
|
325
|
+
clearIconTemplate: {
|
|
326
|
+
classPropertyName: "clearIconTemplate",
|
|
327
|
+
publicName: "clearIconTemplate",
|
|
328
|
+
isSignal: true,
|
|
329
|
+
isRequired: false,
|
|
330
|
+
transformFunction: null
|
|
331
|
+
},
|
|
332
|
+
value: {
|
|
333
|
+
classPropertyName: "value",
|
|
334
|
+
publicName: "value",
|
|
335
|
+
isSignal: true,
|
|
336
|
+
isRequired: false,
|
|
337
|
+
transformFunction: null
|
|
338
|
+
},
|
|
339
|
+
inputId: {
|
|
340
|
+
classPropertyName: "inputId",
|
|
341
|
+
publicName: "inputId",
|
|
342
|
+
isSignal: true,
|
|
343
|
+
isRequired: false,
|
|
344
|
+
transformFunction: null
|
|
345
|
+
},
|
|
346
|
+
name: {
|
|
347
|
+
classPropertyName: "name",
|
|
348
|
+
publicName: "name",
|
|
349
|
+
isSignal: true,
|
|
350
|
+
isRequired: false,
|
|
351
|
+
transformFunction: null
|
|
352
|
+
},
|
|
353
|
+
placeholder: {
|
|
354
|
+
classPropertyName: "placeholder",
|
|
355
|
+
publicName: "placeholder",
|
|
356
|
+
isSignal: true,
|
|
357
|
+
isRequired: false,
|
|
358
|
+
transformFunction: null
|
|
359
|
+
},
|
|
360
|
+
autocomplete: {
|
|
361
|
+
classPropertyName: "autocomplete",
|
|
362
|
+
publicName: "autocomplete",
|
|
363
|
+
isSignal: true,
|
|
364
|
+
isRequired: false,
|
|
365
|
+
transformFunction: null
|
|
366
|
+
},
|
|
367
|
+
rows: {
|
|
368
|
+
classPropertyName: "rows",
|
|
369
|
+
publicName: "rows",
|
|
370
|
+
isSignal: true,
|
|
371
|
+
isRequired: false,
|
|
372
|
+
transformFunction: null
|
|
373
|
+
},
|
|
374
|
+
cols: {
|
|
375
|
+
classPropertyName: "cols",
|
|
376
|
+
publicName: "cols",
|
|
377
|
+
isSignal: true,
|
|
378
|
+
isRequired: false,
|
|
379
|
+
transformFunction: null
|
|
380
|
+
},
|
|
381
|
+
wrap: {
|
|
382
|
+
classPropertyName: "wrap",
|
|
383
|
+
publicName: "wrap",
|
|
384
|
+
isSignal: true,
|
|
385
|
+
isRequired: false,
|
|
386
|
+
transformFunction: null
|
|
387
|
+
},
|
|
388
|
+
minLength: {
|
|
389
|
+
classPropertyName: "minLength",
|
|
390
|
+
publicName: "minLength",
|
|
391
|
+
isSignal: true,
|
|
392
|
+
isRequired: false,
|
|
393
|
+
transformFunction: null
|
|
394
|
+
},
|
|
395
|
+
maxLength: {
|
|
396
|
+
classPropertyName: "maxLength",
|
|
397
|
+
publicName: "maxLength",
|
|
398
|
+
isSignal: true,
|
|
399
|
+
isRequired: false,
|
|
400
|
+
transformFunction: null
|
|
401
|
+
},
|
|
402
|
+
ariaLabel: {
|
|
403
|
+
classPropertyName: "ariaLabel",
|
|
404
|
+
publicName: "ariaLabel",
|
|
405
|
+
isSignal: true,
|
|
406
|
+
isRequired: false,
|
|
407
|
+
transformFunction: null
|
|
408
|
+
},
|
|
409
|
+
ariaLabelledBy: {
|
|
410
|
+
classPropertyName: "ariaLabelledBy",
|
|
411
|
+
publicName: "ariaLabelledBy",
|
|
412
|
+
isSignal: true,
|
|
413
|
+
isRequired: false,
|
|
414
|
+
transformFunction: null
|
|
415
|
+
},
|
|
416
|
+
ariaDescribedBy: {
|
|
417
|
+
classPropertyName: "ariaDescribedBy",
|
|
418
|
+
publicName: "ariaDescribedBy",
|
|
419
|
+
isSignal: true,
|
|
420
|
+
isRequired: false,
|
|
421
|
+
transformFunction: null
|
|
422
|
+
},
|
|
423
|
+
size: {
|
|
424
|
+
classPropertyName: "size",
|
|
425
|
+
publicName: "size",
|
|
426
|
+
isSignal: true,
|
|
427
|
+
isRequired: false,
|
|
428
|
+
transformFunction: null
|
|
429
|
+
},
|
|
430
|
+
appearance: {
|
|
431
|
+
classPropertyName: "appearance",
|
|
432
|
+
publicName: "appearance",
|
|
433
|
+
isSignal: true,
|
|
434
|
+
isRequired: false,
|
|
435
|
+
transformFunction: null
|
|
436
|
+
},
|
|
437
|
+
resize: {
|
|
438
|
+
classPropertyName: "resize",
|
|
439
|
+
publicName: "resize",
|
|
440
|
+
isSignal: true,
|
|
441
|
+
isRequired: false,
|
|
442
|
+
transformFunction: null
|
|
443
|
+
},
|
|
444
|
+
disabled: {
|
|
445
|
+
classPropertyName: "disabled",
|
|
446
|
+
publicName: "disabled",
|
|
447
|
+
isSignal: true,
|
|
448
|
+
isRequired: false,
|
|
449
|
+
transformFunction: null
|
|
450
|
+
},
|
|
451
|
+
readonly: {
|
|
452
|
+
classPropertyName: "readonly",
|
|
453
|
+
publicName: "readonly",
|
|
454
|
+
isSignal: true,
|
|
455
|
+
isRequired: false,
|
|
456
|
+
transformFunction: null
|
|
457
|
+
},
|
|
458
|
+
required: {
|
|
459
|
+
classPropertyName: "required",
|
|
460
|
+
publicName: "required",
|
|
461
|
+
isSignal: true,
|
|
462
|
+
isRequired: false,
|
|
463
|
+
transformFunction: null
|
|
464
|
+
},
|
|
465
|
+
invalid: {
|
|
466
|
+
classPropertyName: "invalid",
|
|
467
|
+
publicName: "invalid",
|
|
468
|
+
isSignal: true,
|
|
469
|
+
isRequired: false,
|
|
470
|
+
transformFunction: null
|
|
471
|
+
},
|
|
472
|
+
touched: {
|
|
473
|
+
classPropertyName: "touched",
|
|
474
|
+
publicName: "touched",
|
|
475
|
+
isSignal: true,
|
|
476
|
+
isRequired: false,
|
|
477
|
+
transformFunction: null
|
|
478
|
+
},
|
|
479
|
+
fluid: {
|
|
480
|
+
classPropertyName: "fluid",
|
|
481
|
+
publicName: "fluid",
|
|
482
|
+
isSignal: true,
|
|
483
|
+
isRequired: false,
|
|
484
|
+
transformFunction: null
|
|
485
|
+
},
|
|
486
|
+
autoResize: {
|
|
487
|
+
classPropertyName: "autoResize",
|
|
488
|
+
publicName: "autoResize",
|
|
489
|
+
isSignal: true,
|
|
490
|
+
isRequired: false,
|
|
491
|
+
transformFunction: null
|
|
492
|
+
},
|
|
493
|
+
minRows: {
|
|
494
|
+
classPropertyName: "minRows",
|
|
495
|
+
publicName: "minRows",
|
|
496
|
+
isSignal: true,
|
|
497
|
+
isRequired: false,
|
|
498
|
+
transformFunction: null
|
|
499
|
+
},
|
|
500
|
+
maxRows: {
|
|
501
|
+
classPropertyName: "maxRows",
|
|
502
|
+
publicName: "maxRows",
|
|
503
|
+
isSignal: true,
|
|
504
|
+
isRequired: false,
|
|
505
|
+
transformFunction: null
|
|
506
|
+
},
|
|
507
|
+
showCount: {
|
|
508
|
+
classPropertyName: "showCount",
|
|
509
|
+
publicName: "showCount",
|
|
510
|
+
isSignal: true,
|
|
511
|
+
isRequired: false,
|
|
512
|
+
transformFunction: null
|
|
513
|
+
},
|
|
514
|
+
countLive: {
|
|
515
|
+
classPropertyName: "countLive",
|
|
516
|
+
publicName: "countLive",
|
|
517
|
+
isSignal: true,
|
|
518
|
+
isRequired: false,
|
|
519
|
+
transformFunction: null
|
|
520
|
+
},
|
|
521
|
+
clearable: {
|
|
522
|
+
classPropertyName: "clearable",
|
|
523
|
+
publicName: "clearable",
|
|
524
|
+
isSignal: true,
|
|
525
|
+
isRequired: false,
|
|
526
|
+
transformFunction: null
|
|
527
|
+
},
|
|
528
|
+
clearButtonAriaLabel: {
|
|
529
|
+
classPropertyName: "clearButtonAriaLabel",
|
|
530
|
+
publicName: "clearButtonAriaLabel",
|
|
531
|
+
isSignal: true,
|
|
532
|
+
isRequired: false,
|
|
533
|
+
transformFunction: null
|
|
534
|
+
}
|
|
535
|
+
},
|
|
536
|
+
outputs: {
|
|
537
|
+
value: "valueChange",
|
|
538
|
+
focused: "focused",
|
|
539
|
+
blurred: "blurred",
|
|
540
|
+
scrolled: "scrolled",
|
|
541
|
+
touch: "touch",
|
|
542
|
+
cleared: "cleared"
|
|
543
|
+
},
|
|
544
|
+
host: { properties: { "attr.data-fluid": "fluid() || null" } },
|
|
545
|
+
providers: [{
|
|
546
|
+
provide: NG_VALUE_ACCESSOR,
|
|
547
|
+
useExisting: forwardRef(() => AerisTextareaComponent),
|
|
548
|
+
multi: true
|
|
549
|
+
}],
|
|
550
|
+
viewQueries: [{
|
|
551
|
+
propertyName: "textarea",
|
|
552
|
+
first: true,
|
|
553
|
+
predicate: ["textarea"],
|
|
554
|
+
descendants: true,
|
|
555
|
+
isSignal: true
|
|
556
|
+
}],
|
|
557
|
+
ngImport: i0,
|
|
558
|
+
template: `
|
|
188
559
|
<span
|
|
189
560
|
class="aeris-textarea-component"
|
|
190
561
|
[attr.data-size]="size()"
|
|
191
562
|
[attr.data-fluid]="fluid() || null"
|
|
192
563
|
[attr.data-disabled]="effectiveDisabled() || null"
|
|
193
|
-
[attr.data-invalid]="
|
|
564
|
+
[attr.data-invalid]="displayInvalid() || null"
|
|
194
565
|
>
|
|
195
566
|
<span class="aeris-textarea-component__field">
|
|
196
567
|
<textarea
|
|
@@ -208,6 +579,7 @@ class AerisTextareaComponent {
|
|
|
208
579
|
[appearance]="appearance()"
|
|
209
580
|
[resize]="autoResize() ? 'none' : resize()"
|
|
210
581
|
[invalid]="invalid()"
|
|
582
|
+
[touched]="touched()"
|
|
211
583
|
[disabled]="effectiveDisabled()"
|
|
212
584
|
[readOnly]="readonly()"
|
|
213
585
|
[required]="required()"
|
|
@@ -215,12 +587,14 @@ class AerisTextareaComponent {
|
|
|
215
587
|
[attr.minlength]="minLength() ?? null"
|
|
216
588
|
[attr.maxlength]="maxLength() ?? null"
|
|
217
589
|
[attr.aria-label]="ariaLabel() || null"
|
|
218
|
-
[attr.aria-labelledby]="
|
|
219
|
-
[attr.aria-describedby]="
|
|
590
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
591
|
+
[attr.aria-describedby]="ariaDescribedBy() || null"
|
|
220
592
|
[attr.aria-required]="required() || null"
|
|
221
593
|
[style.height.px]="autoResize() ? autoHeight() : null"
|
|
222
594
|
[style.overflow-y]="autoResize() && atMaximumHeight() ? 'auto' : null"
|
|
223
595
|
(input)="handleInput($event)"
|
|
596
|
+
(compositionstart)="composing = true"
|
|
597
|
+
(compositionend)="handleCompositionEnd($event)"
|
|
224
598
|
(focus)="focused.emit($event)"
|
|
225
599
|
(blur)="handleBlur($event)"
|
|
226
600
|
(scroll)="scrolled.emit($event)"
|
|
@@ -233,7 +607,13 @@ class AerisTextareaComponent {
|
|
|
233
607
|
[attr.aria-label]="clearButtonAriaLabel()"
|
|
234
608
|
(click)="clear()"
|
|
235
609
|
>
|
|
236
|
-
|
|
610
|
+
@if (clearIconTemplate(); as customIcon) {
|
|
611
|
+
<span aria-hidden="true" data-aeris-custom-icon
|
|
612
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
613
|
+
/></span>
|
|
614
|
+
} @else {
|
|
615
|
+
<span aerisInternalIcon="close" aria-hidden="true"></span>
|
|
616
|
+
}
|
|
237
617
|
</button>
|
|
238
618
|
}
|
|
239
619
|
</span>
|
|
@@ -251,17 +631,63 @@ class AerisTextareaComponent {
|
|
|
251
631
|
</span>
|
|
252
632
|
}
|
|
253
633
|
</span>
|
|
254
|
-
`,
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
634
|
+
`,
|
|
635
|
+
isInline: true,
|
|
636
|
+
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)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}\n"],
|
|
637
|
+
dependencies: [
|
|
638
|
+
{
|
|
639
|
+
kind: "component",
|
|
640
|
+
type: ɵAerisIcon,
|
|
641
|
+
selector: "span[aerisInternalIcon]",
|
|
642
|
+
inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
|
|
643
|
+
},
|
|
644
|
+
{
|
|
645
|
+
kind: "directive",
|
|
646
|
+
type: NgTemplateOutlet,
|
|
647
|
+
selector: "[ngTemplateOutlet]",
|
|
648
|
+
inputs: [
|
|
649
|
+
"ngTemplateOutletContext",
|
|
650
|
+
"ngTemplateOutlet",
|
|
651
|
+
"ngTemplateOutletInjector"
|
|
652
|
+
]
|
|
653
|
+
},
|
|
654
|
+
{
|
|
655
|
+
kind: "directive",
|
|
656
|
+
type: AerisTextareaDirective,
|
|
657
|
+
selector: "textarea[aerisTextarea]",
|
|
658
|
+
inputs: [
|
|
659
|
+
"size",
|
|
660
|
+
"appearance",
|
|
661
|
+
"resize",
|
|
662
|
+
"invalid",
|
|
663
|
+
"touched",
|
|
664
|
+
"fluid"
|
|
665
|
+
]
|
|
666
|
+
}
|
|
667
|
+
]
|
|
668
|
+
});
|
|
669
|
+
};
|
|
670
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
671
|
+
minVersion: "12.0.0",
|
|
672
|
+
version: "22.2.3",
|
|
673
|
+
ngImport: i0,
|
|
674
|
+
type: AerisTextareaComponent,
|
|
675
|
+
decorators: [{
|
|
676
|
+
type: Component,
|
|
677
|
+
args: [{
|
|
678
|
+
selector: "aeris-textarea",
|
|
679
|
+
imports: [
|
|
680
|
+
ɵAerisIcon,
|
|
681
|
+
NgTemplateOutlet,
|
|
682
|
+
AerisTextareaDirective
|
|
683
|
+
],
|
|
684
|
+
template: `
|
|
259
685
|
<span
|
|
260
686
|
class="aeris-textarea-component"
|
|
261
687
|
[attr.data-size]="size()"
|
|
262
688
|
[attr.data-fluid]="fluid() || null"
|
|
263
689
|
[attr.data-disabled]="effectiveDisabled() || null"
|
|
264
|
-
[attr.data-invalid]="
|
|
690
|
+
[attr.data-invalid]="displayInvalid() || null"
|
|
265
691
|
>
|
|
266
692
|
<span class="aeris-textarea-component__field">
|
|
267
693
|
<textarea
|
|
@@ -279,6 +705,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
279
705
|
[appearance]="appearance()"
|
|
280
706
|
[resize]="autoResize() ? 'none' : resize()"
|
|
281
707
|
[invalid]="invalid()"
|
|
708
|
+
[touched]="touched()"
|
|
282
709
|
[disabled]="effectiveDisabled()"
|
|
283
710
|
[readOnly]="readonly()"
|
|
284
711
|
[required]="required()"
|
|
@@ -286,12 +713,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
286
713
|
[attr.minlength]="minLength() ?? null"
|
|
287
714
|
[attr.maxlength]="maxLength() ?? null"
|
|
288
715
|
[attr.aria-label]="ariaLabel() || null"
|
|
289
|
-
[attr.aria-labelledby]="
|
|
290
|
-
[attr.aria-describedby]="
|
|
716
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
717
|
+
[attr.aria-describedby]="ariaDescribedBy() || null"
|
|
291
718
|
[attr.aria-required]="required() || null"
|
|
292
719
|
[style.height.px]="autoResize() ? autoHeight() : null"
|
|
293
720
|
[style.overflow-y]="autoResize() && atMaximumHeight() ? 'auto' : null"
|
|
294
721
|
(input)="handleInput($event)"
|
|
722
|
+
(compositionstart)="composing = true"
|
|
723
|
+
(compositionend)="handleCompositionEnd($event)"
|
|
295
724
|
(focus)="focused.emit($event)"
|
|
296
725
|
(blur)="handleBlur($event)"
|
|
297
726
|
(scroll)="scrolled.emit($event)"
|
|
@@ -304,7 +733,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
304
733
|
[attr.aria-label]="clearButtonAriaLabel()"
|
|
305
734
|
(click)="clear()"
|
|
306
735
|
>
|
|
307
|
-
|
|
736
|
+
@if (clearIconTemplate(); as customIcon) {
|
|
737
|
+
<span aria-hidden="true" data-aeris-custom-icon
|
|
738
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
739
|
+
/></span>
|
|
740
|
+
} @else {
|
|
741
|
+
<span aerisInternalIcon="close" aria-hidden="true"></span>
|
|
742
|
+
}
|
|
308
743
|
</button>
|
|
309
744
|
}
|
|
310
745
|
</span>
|
|
@@ -322,28 +757,291 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
322
757
|
</span>
|
|
323
758
|
}
|
|
324
759
|
</span>
|
|
325
|
-
`,
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
760
|
+
`,
|
|
761
|
+
providers: [{
|
|
762
|
+
provide: NG_VALUE_ACCESSOR,
|
|
763
|
+
useExisting: forwardRef(() => AerisTextareaComponent),
|
|
764
|
+
multi: true
|
|
765
|
+
}],
|
|
766
|
+
host: { "[attr.data-fluid]": "fluid() || null" },
|
|
767
|
+
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)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}\n"]
|
|
768
|
+
}]
|
|
769
|
+
}],
|
|
770
|
+
propDecorators: {
|
|
771
|
+
clearIconTemplate: [{
|
|
772
|
+
type: i0.Input,
|
|
773
|
+
args: [{
|
|
774
|
+
isSignal: true,
|
|
775
|
+
alias: "clearIconTemplate",
|
|
776
|
+
required: false
|
|
777
|
+
}]
|
|
778
|
+
}],
|
|
779
|
+
value: [{
|
|
780
|
+
type: i0.Input,
|
|
781
|
+
args: [{
|
|
782
|
+
isSignal: true,
|
|
783
|
+
alias: "value",
|
|
784
|
+
required: false
|
|
785
|
+
}]
|
|
786
|
+
}, {
|
|
787
|
+
type: i0.Output,
|
|
788
|
+
args: ["valueChange"]
|
|
789
|
+
}],
|
|
790
|
+
inputId: [{
|
|
791
|
+
type: i0.Input,
|
|
792
|
+
args: [{
|
|
793
|
+
isSignal: true,
|
|
794
|
+
alias: "inputId",
|
|
795
|
+
required: false
|
|
796
|
+
}]
|
|
797
|
+
}],
|
|
798
|
+
name: [{
|
|
799
|
+
type: i0.Input,
|
|
800
|
+
args: [{
|
|
801
|
+
isSignal: true,
|
|
802
|
+
alias: "name",
|
|
803
|
+
required: false
|
|
804
|
+
}]
|
|
805
|
+
}],
|
|
806
|
+
placeholder: [{
|
|
807
|
+
type: i0.Input,
|
|
808
|
+
args: [{
|
|
809
|
+
isSignal: true,
|
|
810
|
+
alias: "placeholder",
|
|
811
|
+
required: false
|
|
812
|
+
}]
|
|
813
|
+
}],
|
|
814
|
+
autocomplete: [{
|
|
815
|
+
type: i0.Input,
|
|
816
|
+
args: [{
|
|
817
|
+
isSignal: true,
|
|
818
|
+
alias: "autocomplete",
|
|
819
|
+
required: false
|
|
820
|
+
}]
|
|
821
|
+
}],
|
|
822
|
+
rows: [{
|
|
823
|
+
type: i0.Input,
|
|
824
|
+
args: [{
|
|
825
|
+
isSignal: true,
|
|
826
|
+
alias: "rows",
|
|
827
|
+
required: false
|
|
828
|
+
}]
|
|
829
|
+
}],
|
|
830
|
+
cols: [{
|
|
831
|
+
type: i0.Input,
|
|
832
|
+
args: [{
|
|
833
|
+
isSignal: true,
|
|
834
|
+
alias: "cols",
|
|
835
|
+
required: false
|
|
836
|
+
}]
|
|
837
|
+
}],
|
|
838
|
+
wrap: [{
|
|
839
|
+
type: i0.Input,
|
|
840
|
+
args: [{
|
|
841
|
+
isSignal: true,
|
|
842
|
+
alias: "wrap",
|
|
843
|
+
required: false
|
|
844
|
+
}]
|
|
845
|
+
}],
|
|
846
|
+
minLength: [{
|
|
847
|
+
type: i0.Input,
|
|
848
|
+
args: [{
|
|
849
|
+
isSignal: true,
|
|
850
|
+
alias: "minLength",
|
|
851
|
+
required: false
|
|
852
|
+
}]
|
|
853
|
+
}],
|
|
854
|
+
maxLength: [{
|
|
855
|
+
type: i0.Input,
|
|
856
|
+
args: [{
|
|
857
|
+
isSignal: true,
|
|
858
|
+
alias: "maxLength",
|
|
859
|
+
required: false
|
|
860
|
+
}]
|
|
861
|
+
}],
|
|
862
|
+
ariaLabel: [{
|
|
863
|
+
type: i0.Input,
|
|
864
|
+
args: [{
|
|
865
|
+
isSignal: true,
|
|
866
|
+
alias: "ariaLabel",
|
|
867
|
+
required: false
|
|
868
|
+
}]
|
|
869
|
+
}],
|
|
870
|
+
ariaLabelledBy: [{
|
|
871
|
+
type: i0.Input,
|
|
872
|
+
args: [{
|
|
873
|
+
isSignal: true,
|
|
874
|
+
alias: "ariaLabelledBy",
|
|
875
|
+
required: false
|
|
876
|
+
}]
|
|
877
|
+
}],
|
|
878
|
+
ariaDescribedBy: [{
|
|
879
|
+
type: i0.Input,
|
|
880
|
+
args: [{
|
|
881
|
+
isSignal: true,
|
|
882
|
+
alias: "ariaDescribedBy",
|
|
883
|
+
required: false
|
|
884
|
+
}]
|
|
885
|
+
}],
|
|
886
|
+
size: [{
|
|
887
|
+
type: i0.Input,
|
|
888
|
+
args: [{
|
|
889
|
+
isSignal: true,
|
|
890
|
+
alias: "size",
|
|
891
|
+
required: false
|
|
892
|
+
}]
|
|
893
|
+
}],
|
|
894
|
+
appearance: [{
|
|
895
|
+
type: i0.Input,
|
|
896
|
+
args: [{
|
|
897
|
+
isSignal: true,
|
|
898
|
+
alias: "appearance",
|
|
899
|
+
required: false
|
|
900
|
+
}]
|
|
901
|
+
}],
|
|
902
|
+
resize: [{
|
|
903
|
+
type: i0.Input,
|
|
904
|
+
args: [{
|
|
905
|
+
isSignal: true,
|
|
906
|
+
alias: "resize",
|
|
907
|
+
required: false
|
|
908
|
+
}]
|
|
909
|
+
}],
|
|
910
|
+
disabled: [{
|
|
911
|
+
type: i0.Input,
|
|
912
|
+
args: [{
|
|
913
|
+
isSignal: true,
|
|
914
|
+
alias: "disabled",
|
|
915
|
+
required: false
|
|
916
|
+
}]
|
|
917
|
+
}],
|
|
918
|
+
readonly: [{
|
|
919
|
+
type: i0.Input,
|
|
920
|
+
args: [{
|
|
921
|
+
isSignal: true,
|
|
922
|
+
alias: "readonly",
|
|
923
|
+
required: false
|
|
924
|
+
}]
|
|
925
|
+
}],
|
|
926
|
+
required: [{
|
|
927
|
+
type: i0.Input,
|
|
928
|
+
args: [{
|
|
929
|
+
isSignal: true,
|
|
930
|
+
alias: "required",
|
|
931
|
+
required: false
|
|
932
|
+
}]
|
|
933
|
+
}],
|
|
934
|
+
invalid: [{
|
|
935
|
+
type: i0.Input,
|
|
936
|
+
args: [{
|
|
937
|
+
isSignal: true,
|
|
938
|
+
alias: "invalid",
|
|
939
|
+
required: false
|
|
940
|
+
}]
|
|
941
|
+
}],
|
|
942
|
+
touched: [{
|
|
943
|
+
type: i0.Input,
|
|
944
|
+
args: [{
|
|
945
|
+
isSignal: true,
|
|
946
|
+
alias: "touched",
|
|
947
|
+
required: false
|
|
948
|
+
}]
|
|
949
|
+
}],
|
|
950
|
+
fluid: [{
|
|
951
|
+
type: i0.Input,
|
|
952
|
+
args: [{
|
|
953
|
+
isSignal: true,
|
|
954
|
+
alias: "fluid",
|
|
955
|
+
required: false
|
|
956
|
+
}]
|
|
957
|
+
}],
|
|
958
|
+
autoResize: [{
|
|
959
|
+
type: i0.Input,
|
|
960
|
+
args: [{
|
|
961
|
+
isSignal: true,
|
|
962
|
+
alias: "autoResize",
|
|
963
|
+
required: false
|
|
964
|
+
}]
|
|
965
|
+
}],
|
|
966
|
+
minRows: [{
|
|
967
|
+
type: i0.Input,
|
|
968
|
+
args: [{
|
|
969
|
+
isSignal: true,
|
|
970
|
+
alias: "minRows",
|
|
971
|
+
required: false
|
|
972
|
+
}]
|
|
973
|
+
}],
|
|
974
|
+
maxRows: [{
|
|
975
|
+
type: i0.Input,
|
|
976
|
+
args: [{
|
|
977
|
+
isSignal: true,
|
|
978
|
+
alias: "maxRows",
|
|
979
|
+
required: false
|
|
980
|
+
}]
|
|
981
|
+
}],
|
|
982
|
+
showCount: [{
|
|
983
|
+
type: i0.Input,
|
|
984
|
+
args: [{
|
|
985
|
+
isSignal: true,
|
|
986
|
+
alias: "showCount",
|
|
987
|
+
required: false
|
|
988
|
+
}]
|
|
989
|
+
}],
|
|
990
|
+
countLive: [{
|
|
991
|
+
type: i0.Input,
|
|
992
|
+
args: [{
|
|
993
|
+
isSignal: true,
|
|
994
|
+
alias: "countLive",
|
|
995
|
+
required: false
|
|
996
|
+
}]
|
|
997
|
+
}],
|
|
998
|
+
clearable: [{
|
|
999
|
+
type: i0.Input,
|
|
1000
|
+
args: [{
|
|
1001
|
+
isSignal: true,
|
|
1002
|
+
alias: "clearable",
|
|
1003
|
+
required: false
|
|
1004
|
+
}]
|
|
1005
|
+
}],
|
|
1006
|
+
clearButtonAriaLabel: [{
|
|
1007
|
+
type: i0.Input,
|
|
1008
|
+
args: [{
|
|
1009
|
+
isSignal: true,
|
|
1010
|
+
alias: "clearButtonAriaLabel",
|
|
1011
|
+
required: false
|
|
1012
|
+
}]
|
|
1013
|
+
}],
|
|
1014
|
+
focused: [{
|
|
1015
|
+
type: i0.Output,
|
|
1016
|
+
args: ["focused"]
|
|
1017
|
+
}],
|
|
1018
|
+
blurred: [{
|
|
1019
|
+
type: i0.Output,
|
|
1020
|
+
args: ["blurred"]
|
|
1021
|
+
}],
|
|
1022
|
+
scrolled: [{
|
|
1023
|
+
type: i0.Output,
|
|
1024
|
+
args: ["scrolled"]
|
|
1025
|
+
}],
|
|
1026
|
+
touch: [{
|
|
1027
|
+
type: i0.Output,
|
|
1028
|
+
args: ["touch"]
|
|
1029
|
+
}],
|
|
1030
|
+
cleared: [{
|
|
1031
|
+
type: i0.Output,
|
|
1032
|
+
args: ["cleared"]
|
|
1033
|
+
}],
|
|
1034
|
+
textarea: [{
|
|
1035
|
+
type: i0.ViewChild,
|
|
1036
|
+
args: ["textarea", { isSignal: true }]
|
|
1037
|
+
}]
|
|
1038
|
+
}
|
|
1039
|
+
});
|
|
1040
|
+
const AerisTextarea = [AerisTextareaDirective, AerisTextareaComponent];
|
|
339
1041
|
function cssPixelValue(styles, property, fallback) {
|
|
340
|
-
|
|
341
|
-
|
|
1042
|
+
const value = Number.parseFloat(styles.getPropertyValue(property));
|
|
1043
|
+
return Number.isFinite(value) ? value : fallback;
|
|
342
1044
|
}
|
|
343
|
-
|
|
344
|
-
/**
|
|
345
|
-
* Generated bundle index. Do not edit.
|
|
346
|
-
*/
|
|
347
|
-
|
|
348
1045
|
export { AerisTextarea, AerisTextareaComponent, AerisTextareaDirective };
|
|
349
|
-
|
|
1046
|
+
|
|
1047
|
+
//# sourceMappingURL=aeris-ui-core-textarea.mjs.map
|