@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,401 +1,789 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { NG_VALUE_ACCESSOR } from
|
|
5
|
-
|
|
6
|
-
class AerisAutoCompleteOptionTemplate {
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, Directive, TemplateRef, booleanAttribute, computed, contentChild, forwardRef, inject, input, model, output, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
5
|
+
import { ɵAerisAppendTo, ɵaerisDisplayInvalid } from "@aeris-ui/core";
|
|
6
|
+
var AerisAutoCompleteOptionTemplate = class AerisAutoCompleteOptionTemplate {
|
|
7
|
+
template = inject(TemplateRef);
|
|
8
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
12
|
+
minVersion: "12.0.0",
|
|
13
|
+
version: "22.2.2",
|
|
14
|
+
ngImport: i0,
|
|
15
|
+
type: AerisAutoCompleteOptionTemplate,
|
|
16
|
+
deps: [],
|
|
17
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
18
|
+
});
|
|
19
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
20
|
+
minVersion: "14.0.0",
|
|
21
|
+
version: "22.2.2",
|
|
22
|
+
type: AerisAutoCompleteOptionTemplate,
|
|
23
|
+
isStandalone: true,
|
|
24
|
+
selector: "ng-template[aerisAutoCompleteOption]",
|
|
25
|
+
ngImport: i0
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
29
|
+
minVersion: "12.0.0",
|
|
30
|
+
version: "22.2.2",
|
|
31
|
+
ngImport: i0,
|
|
32
|
+
type: AerisAutoCompleteOptionTemplate,
|
|
33
|
+
decorators: [{
|
|
34
|
+
type: Directive,
|
|
35
|
+
args: [{ selector: "ng-template[aerisAutoCompleteOption]" }]
|
|
36
|
+
}]
|
|
37
|
+
});
|
|
38
|
+
var AerisAutoCompleteGroupTemplate = class AerisAutoCompleteGroupTemplate {
|
|
39
|
+
template = inject(TemplateRef);
|
|
40
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
44
|
+
minVersion: "12.0.0",
|
|
45
|
+
version: "22.2.2",
|
|
46
|
+
ngImport: i0,
|
|
47
|
+
type: AerisAutoCompleteGroupTemplate,
|
|
48
|
+
deps: [],
|
|
49
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
50
|
+
});
|
|
51
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
52
|
+
minVersion: "14.0.0",
|
|
53
|
+
version: "22.2.2",
|
|
54
|
+
type: AerisAutoCompleteGroupTemplate,
|
|
55
|
+
isStandalone: true,
|
|
56
|
+
selector: "ng-template[aerisAutoCompleteGroup]",
|
|
57
|
+
ngImport: i0
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
61
|
+
minVersion: "12.0.0",
|
|
62
|
+
version: "22.2.2",
|
|
63
|
+
ngImport: i0,
|
|
64
|
+
type: AerisAutoCompleteGroupTemplate,
|
|
65
|
+
decorators: [{
|
|
66
|
+
type: Directive,
|
|
67
|
+
args: [{ selector: "ng-template[aerisAutoCompleteGroup]" }]
|
|
68
|
+
}]
|
|
69
|
+
});
|
|
70
|
+
var AerisAutoCompleteEmptyTemplate = class AerisAutoCompleteEmptyTemplate {
|
|
71
|
+
template = inject(TemplateRef);
|
|
72
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
73
|
+
minVersion: "12.0.0",
|
|
74
|
+
version: "22.2.2",
|
|
75
|
+
ngImport: i0,
|
|
76
|
+
type: AerisAutoCompleteEmptyTemplate,
|
|
77
|
+
deps: [],
|
|
78
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
79
|
+
});
|
|
80
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
81
|
+
minVersion: "14.0.0",
|
|
82
|
+
version: "22.2.2",
|
|
83
|
+
type: AerisAutoCompleteEmptyTemplate,
|
|
84
|
+
isStandalone: true,
|
|
85
|
+
selector: "ng-template[aerisAutoCompleteEmpty]",
|
|
86
|
+
ngImport: i0
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
90
|
+
minVersion: "12.0.0",
|
|
91
|
+
version: "22.2.2",
|
|
92
|
+
ngImport: i0,
|
|
93
|
+
type: AerisAutoCompleteEmptyTemplate,
|
|
94
|
+
decorators: [{
|
|
95
|
+
type: Directive,
|
|
96
|
+
args: [{ selector: "ng-template[aerisAutoCompleteEmpty]" }]
|
|
97
|
+
}]
|
|
98
|
+
});
|
|
99
|
+
var AerisAutoCompleteLoadingTemplate = class AerisAutoCompleteLoadingTemplate {
|
|
100
|
+
template = inject(TemplateRef);
|
|
101
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
102
|
+
minVersion: "12.0.0",
|
|
103
|
+
version: "22.2.2",
|
|
104
|
+
ngImport: i0,
|
|
105
|
+
type: AerisAutoCompleteLoadingTemplate,
|
|
106
|
+
deps: [],
|
|
107
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
108
|
+
});
|
|
109
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
110
|
+
minVersion: "14.0.0",
|
|
111
|
+
version: "22.2.2",
|
|
112
|
+
type: AerisAutoCompleteLoadingTemplate,
|
|
113
|
+
isStandalone: true,
|
|
114
|
+
selector: "ng-template[aerisAutoCompleteLoading]",
|
|
115
|
+
ngImport: i0
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
119
|
+
minVersion: "12.0.0",
|
|
120
|
+
version: "22.2.2",
|
|
121
|
+
ngImport: i0,
|
|
122
|
+
type: AerisAutoCompleteLoadingTemplate,
|
|
123
|
+
decorators: [{
|
|
124
|
+
type: Directive,
|
|
125
|
+
args: [{ selector: "ng-template[aerisAutoCompleteLoading]" }]
|
|
126
|
+
}]
|
|
127
|
+
});
|
|
48
128
|
let nextAutoCompleteId = 0;
|
|
49
|
-
class AerisAutoComplete {
|
|
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
|
-
|
|
188
|
-
|
|
189
|
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
267
|
-
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
|
|
271
|
-
|
|
272
|
-
|
|
273
|
-
|
|
274
|
-
|
|
275
|
-
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
282
|
-
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
337
|
-
|
|
338
|
-
|
|
339
|
-
|
|
340
|
-
|
|
341
|
-
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
|
|
348
|
-
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
359
|
-
|
|
360
|
-
|
|
361
|
-
|
|
362
|
-
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
|
|
366
|
-
|
|
367
|
-
|
|
368
|
-
|
|
369
|
-
|
|
370
|
-
|
|
371
|
-
|
|
372
|
-
|
|
373
|
-
|
|
374
|
-
|
|
375
|
-
|
|
376
|
-
|
|
377
|
-
|
|
378
|
-
|
|
379
|
-
|
|
380
|
-
|
|
381
|
-
|
|
382
|
-
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
|
|
386
|
-
|
|
387
|
-
|
|
388
|
-
|
|
389
|
-
|
|
390
|
-
|
|
391
|
-
|
|
392
|
-
|
|
129
|
+
var AerisAutoComplete = class AerisAutoComplete {
|
|
130
|
+
dismissOverlay = () => {
|
|
131
|
+
this.closePanel();
|
|
132
|
+
return true;
|
|
133
|
+
};
|
|
134
|
+
controlElement = viewChild("control", ...ngDevMode ? [{ debugName: "controlElement" }] : /* istanbul ignore next */ []);
|
|
135
|
+
inputElement = viewChild("textInput", ...ngDevMode ? [{ debugName: "inputElement" }] : /* istanbul ignore next */ []);
|
|
136
|
+
suggestionsPanel = viewChild("suggestionsPanel", ...ngDevMode ? [{ debugName: "suggestionsPanel" }] : /* istanbul ignore next */ []);
|
|
137
|
+
panelPortal = viewChild(ɵAerisAppendTo, ...ngDevMode ? [{ debugName: "panelPortal" }] : /* istanbul ignore next */ []);
|
|
138
|
+
generatedId = `aeris-auto-complete-${++nextAutoCompleteId}`;
|
|
139
|
+
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
140
|
+
activeValue = signal(null, ...ngDevMode ? [{ debugName: "activeValue" }] : /* istanbul ignore next */ []);
|
|
141
|
+
panelOpen = signal(false, ...ngDevMode ? [{ debugName: "panelOpen" }] : /* istanbul ignore next */ []);
|
|
142
|
+
suppressNextFocusOpen = false;
|
|
143
|
+
onChange = () => void 0;
|
|
144
|
+
onTouched = () => void 0;
|
|
145
|
+
value = model("", ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
146
|
+
suggestions = input([], ...ngDevMode ? [{ debugName: "suggestions" }] : /* istanbul ignore next */ []);
|
|
147
|
+
inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
|
|
148
|
+
name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
149
|
+
placeholder = input("", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
150
|
+
autocomplete = input("off", ...ngDevMode ? [{ debugName: "autocomplete" }] : /* istanbul ignore next */ []);
|
|
151
|
+
ariaLabel = input(...ngDevMode ? [void 0, { debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
152
|
+
ariaLabelledBy = input(...ngDevMode ? [void 0, { debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
153
|
+
ariaDescribedBy = input(...ngDevMode ? [void 0, { debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
154
|
+
listboxAriaLabel = input("Suggestions", ...ngDevMode ? [{ debugName: "listboxAriaLabel" }] : /* istanbul ignore next */ []);
|
|
155
|
+
dropdownAriaLabel = input("Show suggestions", ...ngDevMode ? [{ debugName: "dropdownAriaLabel" }] : /* istanbul ignore next */ []);
|
|
156
|
+
clearButtonAriaLabel = input("Clear value", ...ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []);
|
|
157
|
+
emptyMessage = input("No suggestions found", ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
|
|
158
|
+
loadingMessage = input("Loading suggestions", ...ngDevMode ? [{ debugName: "loadingMessage" }] : /* istanbul ignore next */ []);
|
|
159
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
160
|
+
appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
161
|
+
filterMatchMode = input("contains", ...ngDevMode ? [{ debugName: "filterMatchMode" }] : /* istanbul ignore next */ []);
|
|
162
|
+
minLength = input(1, ...ngDevMode ? [{ debugName: "minLength" }] : /* istanbul ignore next */ []);
|
|
163
|
+
panelMaxHeight = input("16rem", ...ngDevMode ? [{ debugName: "panelMaxHeight" }] : /* istanbul ignore next */ []);
|
|
164
|
+
appendTo = input(...ngDevMode ? [void 0, { debugName: "appendTo" }] : /* istanbul ignore next */ []);
|
|
165
|
+
viewportMargin = input(8, ...ngDevMode ? [{ debugName: "viewportMargin" }] : /* istanbul ignore next */ []);
|
|
166
|
+
invalid = input(false, {
|
|
167
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
168
|
+
transform: booleanAttribute
|
|
169
|
+
});
|
|
170
|
+
touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
171
|
+
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
172
|
+
disabled = input(false, {
|
|
173
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
174
|
+
transform: booleanAttribute
|
|
175
|
+
});
|
|
176
|
+
readonly = input(false, {
|
|
177
|
+
...ngDevMode ? { debugName: "readonly" } : /* istanbul ignore next */ {},
|
|
178
|
+
transform: booleanAttribute
|
|
179
|
+
});
|
|
180
|
+
required = input(false, {
|
|
181
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
182
|
+
transform: booleanAttribute
|
|
183
|
+
});
|
|
184
|
+
fluid = input(false, {
|
|
185
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
186
|
+
transform: booleanAttribute
|
|
187
|
+
});
|
|
188
|
+
clearable = input(false, {
|
|
189
|
+
...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
|
|
190
|
+
transform: booleanAttribute
|
|
191
|
+
});
|
|
192
|
+
dropdown = input(false, {
|
|
193
|
+
...ngDevMode ? { debugName: "dropdown" } : /* istanbul ignore next */ {},
|
|
194
|
+
transform: booleanAttribute
|
|
195
|
+
});
|
|
196
|
+
completeOnFocus = input(false, {
|
|
197
|
+
...ngDevMode ? { debugName: "completeOnFocus" } : /* istanbul ignore next */ {},
|
|
198
|
+
transform: booleanAttribute
|
|
199
|
+
});
|
|
200
|
+
forceSelection = input(false, {
|
|
201
|
+
...ngDevMode ? { debugName: "forceSelection" } : /* istanbul ignore next */ {},
|
|
202
|
+
transform: booleanAttribute
|
|
203
|
+
});
|
|
204
|
+
autoHighlight = input(true, {
|
|
205
|
+
...ngDevMode ? { debugName: "autoHighlight" } : /* istanbul ignore next */ {},
|
|
206
|
+
transform: booleanAttribute
|
|
207
|
+
});
|
|
208
|
+
grouped = input(false, {
|
|
209
|
+
...ngDevMode ? { debugName: "grouped" } : /* istanbul ignore next */ {},
|
|
210
|
+
transform: booleanAttribute
|
|
211
|
+
});
|
|
212
|
+
loading = input(false, {
|
|
213
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
214
|
+
transform: booleanAttribute
|
|
215
|
+
});
|
|
216
|
+
completed = output();
|
|
217
|
+
selected = output();
|
|
218
|
+
cleared = output();
|
|
219
|
+
opened = output();
|
|
220
|
+
closed = output();
|
|
221
|
+
focused = output();
|
|
222
|
+
blurred = output();
|
|
223
|
+
touch = output();
|
|
224
|
+
optionTemplate = contentChild(AerisAutoCompleteOptionTemplate, ...ngDevMode ? [{ debugName: "optionTemplate" }] : /* istanbul ignore next */ []);
|
|
225
|
+
groupTemplate = contentChild(AerisAutoCompleteGroupTemplate, ...ngDevMode ? [{ debugName: "groupTemplate" }] : /* istanbul ignore next */ []);
|
|
226
|
+
emptyTemplate = contentChild(AerisAutoCompleteEmptyTemplate, ...ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []);
|
|
227
|
+
loadingTemplate = contentChild(AerisAutoCompleteLoadingTemplate, ...ngDevMode ? [{ debugName: "loadingTemplate" }] : /* istanbul ignore next */ []);
|
|
228
|
+
panelId = `${this.generatedId}-panel`;
|
|
229
|
+
resolvedInputId = computed(() => this.inputId() || this.generatedId, ...ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []);
|
|
230
|
+
open = computed(() => this.panelOpen(), ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
231
|
+
effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
|
|
232
|
+
showClearButton = computed(() => this.clearable() && this.value().length > 0 && !this.effectiveDisabled() && !this.readonly(), ...ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []);
|
|
233
|
+
filteredOptions = computed(() => {
|
|
234
|
+
const query = this.value().trim();
|
|
235
|
+
if (!this.panelOpen() || !this.completeOnFocus() && query.length < this.minLength()) return [];
|
|
236
|
+
return this.suggestions().filter((option) => this.matchesOption(option, query));
|
|
237
|
+
}, ...ngDevMode ? [{ debugName: "filteredOptions" }] : /* istanbul ignore next */ []);
|
|
238
|
+
optionGroups = computed(() => {
|
|
239
|
+
const groups = /* @__PURE__ */ new Map();
|
|
240
|
+
for (const option of this.filteredOptions()) {
|
|
241
|
+
const group = option.group || "Options";
|
|
242
|
+
groups.set(group, [...groups.get(group) ?? [], option]);
|
|
243
|
+
}
|
|
244
|
+
return [...groups.entries()].map(([label, options]) => ({
|
|
245
|
+
label,
|
|
246
|
+
options
|
|
247
|
+
}));
|
|
248
|
+
}, ...ngDevMode ? [{ debugName: "optionGroups" }] : /* istanbul ignore next */ []);
|
|
249
|
+
activeOptionId = computed(() => {
|
|
250
|
+
const active = this.activeValue();
|
|
251
|
+
return active ? this.optionId(active) : null;
|
|
252
|
+
}, ...ngDevMode ? [{ debugName: "activeOptionId" }] : /* istanbul ignore next */ []);
|
|
253
|
+
writeValue(value) {
|
|
254
|
+
this.value.set(typeof value === "string" ? value : value == null ? "" : String(value));
|
|
255
|
+
}
|
|
256
|
+
registerOnChange(callback) {
|
|
257
|
+
this.onChange = callback;
|
|
258
|
+
}
|
|
259
|
+
registerOnTouched(callback) {
|
|
260
|
+
this.onTouched = callback;
|
|
261
|
+
}
|
|
262
|
+
setDisabledState(disabled) {
|
|
263
|
+
this.formDisabled.set(disabled);
|
|
264
|
+
}
|
|
265
|
+
focus(options) {
|
|
266
|
+
this.inputElement()?.nativeElement.focus(options);
|
|
267
|
+
}
|
|
268
|
+
openPanel(event) {
|
|
269
|
+
if (this.effectiveDisabled() || this.readonly()) return;
|
|
270
|
+
if (!this.panelOpen()) {
|
|
271
|
+
this.panelOpen.set(true);
|
|
272
|
+
this.opened.emit();
|
|
273
|
+
}
|
|
274
|
+
this.completed.emit({
|
|
275
|
+
originalEvent: event ?? new Event("complete"),
|
|
276
|
+
query: this.value()
|
|
277
|
+
});
|
|
278
|
+
this.setInitialActiveOption();
|
|
279
|
+
}
|
|
280
|
+
closePanel() {
|
|
281
|
+
if (!this.panelOpen()) return;
|
|
282
|
+
this.panelPortal()?.restore();
|
|
283
|
+
this.panelOpen.set(false);
|
|
284
|
+
this.activeValue.set(null);
|
|
285
|
+
this.closed.emit();
|
|
286
|
+
}
|
|
287
|
+
togglePanel(event) {
|
|
288
|
+
event.preventDefault();
|
|
289
|
+
this.focus();
|
|
290
|
+
if (this.panelOpen()) this.closePanel();
|
|
291
|
+
else this.openPanel(event);
|
|
292
|
+
}
|
|
293
|
+
clear() {
|
|
294
|
+
if (this.effectiveDisabled() || this.readonly()) return;
|
|
295
|
+
this.setValue("");
|
|
296
|
+
this.activeValue.set(null);
|
|
297
|
+
this.cleared.emit();
|
|
298
|
+
this.closePanel();
|
|
299
|
+
this.focus();
|
|
300
|
+
}
|
|
301
|
+
reset() {
|
|
302
|
+
this.setValue("");
|
|
303
|
+
this.closePanel();
|
|
304
|
+
}
|
|
305
|
+
handleInput(event) {
|
|
306
|
+
const query = event.target.value;
|
|
307
|
+
this.setValue(query);
|
|
308
|
+
this.openPanel(event);
|
|
309
|
+
}
|
|
310
|
+
handleInputClick() {
|
|
311
|
+
if (this.completeOnFocus() || this.dropdown()) this.openPanel();
|
|
312
|
+
}
|
|
313
|
+
handleFocus(event) {
|
|
314
|
+
this.focused.emit(event);
|
|
315
|
+
if (this.suppressNextFocusOpen) {
|
|
316
|
+
this.suppressNextFocusOpen = false;
|
|
317
|
+
return;
|
|
318
|
+
}
|
|
319
|
+
if (this.completeOnFocus()) this.openPanel(event);
|
|
320
|
+
}
|
|
321
|
+
handleBlur(event) {
|
|
322
|
+
this.applyForceSelection();
|
|
323
|
+
this.touch.emit();
|
|
324
|
+
this.onTouched();
|
|
325
|
+
this.blurred.emit(event);
|
|
326
|
+
}
|
|
327
|
+
handleFocusOut(event) {
|
|
328
|
+
const nextTarget = event.relatedTarget;
|
|
329
|
+
const currentTarget = event.currentTarget;
|
|
330
|
+
if (!nextTarget || !currentTarget.contains(nextTarget) && !this.suggestionsPanel()?.nativeElement.contains(nextTarget)) this.closePanel();
|
|
331
|
+
}
|
|
332
|
+
handleInputKeydown(event) {
|
|
333
|
+
switch (event.key) {
|
|
334
|
+
case "ArrowDown":
|
|
335
|
+
event.preventDefault();
|
|
336
|
+
this.openPanel(event);
|
|
337
|
+
this.moveActive(1);
|
|
338
|
+
break;
|
|
339
|
+
case "ArrowUp":
|
|
340
|
+
event.preventDefault();
|
|
341
|
+
this.openPanel(event);
|
|
342
|
+
this.moveActive(-1);
|
|
343
|
+
break;
|
|
344
|
+
case "Home":
|
|
345
|
+
if (this.panelOpen()) {
|
|
346
|
+
event.preventDefault();
|
|
347
|
+
this.setBoundaryActive("first");
|
|
348
|
+
}
|
|
349
|
+
break;
|
|
350
|
+
case "End":
|
|
351
|
+
if (this.panelOpen()) {
|
|
352
|
+
event.preventDefault();
|
|
353
|
+
this.setBoundaryActive("last");
|
|
354
|
+
}
|
|
355
|
+
break;
|
|
356
|
+
case "Enter":
|
|
357
|
+
if (this.panelOpen() && this.activeValue()) {
|
|
358
|
+
event.preventDefault();
|
|
359
|
+
const active = this.enabledOptions().find((option) => option.value === this.activeValue());
|
|
360
|
+
if (active) this.selectOption(active, event);
|
|
361
|
+
}
|
|
362
|
+
break;
|
|
363
|
+
case "Escape": if (this.panelOpen()) {
|
|
364
|
+
event.preventDefault();
|
|
365
|
+
this.closePanel();
|
|
366
|
+
}
|
|
367
|
+
}
|
|
368
|
+
}
|
|
369
|
+
selectOption(option, originalEvent) {
|
|
370
|
+
if (option.disabled || this.effectiveDisabled() || this.readonly()) return;
|
|
371
|
+
this.setValue(option.value);
|
|
372
|
+
this.selected.emit({
|
|
373
|
+
originalEvent,
|
|
374
|
+
value: option.value,
|
|
375
|
+
option
|
|
376
|
+
});
|
|
377
|
+
this.closePanel();
|
|
378
|
+
this.suppressNextFocusOpen = true;
|
|
379
|
+
this.focus();
|
|
380
|
+
}
|
|
381
|
+
optionId(value) {
|
|
382
|
+
return `${this.panelId}-${this.sanitizeId(value)}`;
|
|
383
|
+
}
|
|
384
|
+
isSelected(option) {
|
|
385
|
+
return this.value() === option.value;
|
|
386
|
+
}
|
|
387
|
+
isActive(option) {
|
|
388
|
+
return this.activeValue() === option.value;
|
|
389
|
+
}
|
|
390
|
+
setValue(value) {
|
|
391
|
+
if (this.value() === value) return;
|
|
392
|
+
this.value.set(value);
|
|
393
|
+
this.onChange(value);
|
|
394
|
+
}
|
|
395
|
+
enabledOptions() {
|
|
396
|
+
return this.filteredOptions().filter((option) => !option.disabled);
|
|
397
|
+
}
|
|
398
|
+
setInitialActiveOption() {
|
|
399
|
+
const options = this.enabledOptions();
|
|
400
|
+
if (!this.autoHighlight() || options.length === 0) {
|
|
401
|
+
this.activeValue.set(null);
|
|
402
|
+
return;
|
|
403
|
+
}
|
|
404
|
+
const selected = options.find((option) => option.value === this.value());
|
|
405
|
+
this.activeValue.set((selected ?? options[0]).value);
|
|
406
|
+
}
|
|
407
|
+
moveActive(direction) {
|
|
408
|
+
const options = this.enabledOptions();
|
|
409
|
+
if (options.length === 0) {
|
|
410
|
+
this.activeValue.set(null);
|
|
411
|
+
return;
|
|
412
|
+
}
|
|
413
|
+
const currentIndex = options.findIndex((option) => option.value === this.activeValue());
|
|
414
|
+
const nextIndex = currentIndex < 0 ? direction > 0 ? 0 : options.length - 1 : (currentIndex + direction + options.length) % options.length;
|
|
415
|
+
this.activeValue.set(options[nextIndex]?.value ?? null);
|
|
416
|
+
}
|
|
417
|
+
setBoundaryActive(boundary) {
|
|
418
|
+
const options = this.enabledOptions();
|
|
419
|
+
this.activeValue.set(boundary === "first" ? options[0]?.value ?? null : options.at(-1)?.value ?? null);
|
|
420
|
+
}
|
|
421
|
+
matchesOption(option, query) {
|
|
422
|
+
if (query.length === 0) return true;
|
|
423
|
+
const candidate = `${option.label} ${option.value} ${option.description ?? ""} ${option.group ?? ""}`.trim().toLocaleLowerCase();
|
|
424
|
+
const normalizedQuery = query.toLocaleLowerCase();
|
|
425
|
+
switch (this.filterMatchMode()) {
|
|
426
|
+
case "startsWith": return candidate.startsWith(normalizedQuery);
|
|
427
|
+
case "endsWith": return candidate.endsWith(normalizedQuery);
|
|
428
|
+
case "equals": return candidate === normalizedQuery;
|
|
429
|
+
case "contains": return candidate.includes(normalizedQuery);
|
|
430
|
+
default: return false;
|
|
431
|
+
}
|
|
432
|
+
}
|
|
433
|
+
applyForceSelection() {
|
|
434
|
+
if (!this.forceSelection() || this.value().trim().length === 0) return;
|
|
435
|
+
const normalizedValue = this.value().trim().toLocaleLowerCase();
|
|
436
|
+
const match = this.suggestions().find((option) => option.value.toLocaleLowerCase() === normalizedValue || option.label.toLocaleLowerCase() === normalizedValue);
|
|
437
|
+
if (!match) this.setValue("");
|
|
438
|
+
else if (match.value !== this.value()) this.setValue(match.value);
|
|
439
|
+
}
|
|
440
|
+
sanitizeId(value) {
|
|
441
|
+
const readable = value.toLowerCase().replace(/[^a-z0-9_-]+/g, "-");
|
|
442
|
+
const exact = Array.from(value, (character) => (character.codePointAt(0) ?? 0).toString(16)).join("-");
|
|
443
|
+
return `${readable || "option"}--${exact || "empty"}`;
|
|
444
|
+
}
|
|
445
|
+
preservePointerFocus(event) {
|
|
446
|
+
if (event.pointerType === "mouse") event.preventDefault();
|
|
447
|
+
}
|
|
448
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
449
|
+
minVersion: "12.0.0",
|
|
450
|
+
version: "22.2.2",
|
|
451
|
+
ngImport: i0,
|
|
452
|
+
type: AerisAutoComplete,
|
|
453
|
+
deps: [],
|
|
454
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
455
|
+
});
|
|
456
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
457
|
+
minVersion: "17.0.0",
|
|
458
|
+
version: "22.2.2",
|
|
459
|
+
type: AerisAutoComplete,
|
|
460
|
+
isStandalone: true,
|
|
461
|
+
selector: "aeris-auto-complete",
|
|
462
|
+
inputs: {
|
|
463
|
+
value: {
|
|
464
|
+
classPropertyName: "value",
|
|
465
|
+
publicName: "value",
|
|
466
|
+
isSignal: true,
|
|
467
|
+
isRequired: false,
|
|
468
|
+
transformFunction: null
|
|
469
|
+
},
|
|
470
|
+
suggestions: {
|
|
471
|
+
classPropertyName: "suggestions",
|
|
472
|
+
publicName: "suggestions",
|
|
473
|
+
isSignal: true,
|
|
474
|
+
isRequired: false,
|
|
475
|
+
transformFunction: null
|
|
476
|
+
},
|
|
477
|
+
inputId: {
|
|
478
|
+
classPropertyName: "inputId",
|
|
479
|
+
publicName: "inputId",
|
|
480
|
+
isSignal: true,
|
|
481
|
+
isRequired: false,
|
|
482
|
+
transformFunction: null
|
|
483
|
+
},
|
|
484
|
+
name: {
|
|
485
|
+
classPropertyName: "name",
|
|
486
|
+
publicName: "name",
|
|
487
|
+
isSignal: true,
|
|
488
|
+
isRequired: false,
|
|
489
|
+
transformFunction: null
|
|
490
|
+
},
|
|
491
|
+
placeholder: {
|
|
492
|
+
classPropertyName: "placeholder",
|
|
493
|
+
publicName: "placeholder",
|
|
494
|
+
isSignal: true,
|
|
495
|
+
isRequired: false,
|
|
496
|
+
transformFunction: null
|
|
497
|
+
},
|
|
498
|
+
autocomplete: {
|
|
499
|
+
classPropertyName: "autocomplete",
|
|
500
|
+
publicName: "autocomplete",
|
|
501
|
+
isSignal: true,
|
|
502
|
+
isRequired: false,
|
|
503
|
+
transformFunction: null
|
|
504
|
+
},
|
|
505
|
+
ariaLabel: {
|
|
506
|
+
classPropertyName: "ariaLabel",
|
|
507
|
+
publicName: "ariaLabel",
|
|
508
|
+
isSignal: true,
|
|
509
|
+
isRequired: false,
|
|
510
|
+
transformFunction: null
|
|
511
|
+
},
|
|
512
|
+
ariaLabelledBy: {
|
|
513
|
+
classPropertyName: "ariaLabelledBy",
|
|
514
|
+
publicName: "ariaLabelledBy",
|
|
515
|
+
isSignal: true,
|
|
516
|
+
isRequired: false,
|
|
517
|
+
transformFunction: null
|
|
518
|
+
},
|
|
519
|
+
ariaDescribedBy: {
|
|
520
|
+
classPropertyName: "ariaDescribedBy",
|
|
521
|
+
publicName: "ariaDescribedBy",
|
|
522
|
+
isSignal: true,
|
|
523
|
+
isRequired: false,
|
|
524
|
+
transformFunction: null
|
|
525
|
+
},
|
|
526
|
+
listboxAriaLabel: {
|
|
527
|
+
classPropertyName: "listboxAriaLabel",
|
|
528
|
+
publicName: "listboxAriaLabel",
|
|
529
|
+
isSignal: true,
|
|
530
|
+
isRequired: false,
|
|
531
|
+
transformFunction: null
|
|
532
|
+
},
|
|
533
|
+
dropdownAriaLabel: {
|
|
534
|
+
classPropertyName: "dropdownAriaLabel",
|
|
535
|
+
publicName: "dropdownAriaLabel",
|
|
536
|
+
isSignal: true,
|
|
537
|
+
isRequired: false,
|
|
538
|
+
transformFunction: null
|
|
539
|
+
},
|
|
540
|
+
clearButtonAriaLabel: {
|
|
541
|
+
classPropertyName: "clearButtonAriaLabel",
|
|
542
|
+
publicName: "clearButtonAriaLabel",
|
|
543
|
+
isSignal: true,
|
|
544
|
+
isRequired: false,
|
|
545
|
+
transformFunction: null
|
|
546
|
+
},
|
|
547
|
+
emptyMessage: {
|
|
548
|
+
classPropertyName: "emptyMessage",
|
|
549
|
+
publicName: "emptyMessage",
|
|
550
|
+
isSignal: true,
|
|
551
|
+
isRequired: false,
|
|
552
|
+
transformFunction: null
|
|
553
|
+
},
|
|
554
|
+
loadingMessage: {
|
|
555
|
+
classPropertyName: "loadingMessage",
|
|
556
|
+
publicName: "loadingMessage",
|
|
557
|
+
isSignal: true,
|
|
558
|
+
isRequired: false,
|
|
559
|
+
transformFunction: null
|
|
560
|
+
},
|
|
561
|
+
size: {
|
|
562
|
+
classPropertyName: "size",
|
|
563
|
+
publicName: "size",
|
|
564
|
+
isSignal: true,
|
|
565
|
+
isRequired: false,
|
|
566
|
+
transformFunction: null
|
|
567
|
+
},
|
|
568
|
+
appearance: {
|
|
569
|
+
classPropertyName: "appearance",
|
|
570
|
+
publicName: "appearance",
|
|
571
|
+
isSignal: true,
|
|
572
|
+
isRequired: false,
|
|
573
|
+
transformFunction: null
|
|
574
|
+
},
|
|
575
|
+
filterMatchMode: {
|
|
576
|
+
classPropertyName: "filterMatchMode",
|
|
577
|
+
publicName: "filterMatchMode",
|
|
578
|
+
isSignal: true,
|
|
579
|
+
isRequired: false,
|
|
580
|
+
transformFunction: null
|
|
581
|
+
},
|
|
582
|
+
minLength: {
|
|
583
|
+
classPropertyName: "minLength",
|
|
584
|
+
publicName: "minLength",
|
|
585
|
+
isSignal: true,
|
|
586
|
+
isRequired: false,
|
|
587
|
+
transformFunction: null
|
|
588
|
+
},
|
|
589
|
+
panelMaxHeight: {
|
|
590
|
+
classPropertyName: "panelMaxHeight",
|
|
591
|
+
publicName: "panelMaxHeight",
|
|
592
|
+
isSignal: true,
|
|
593
|
+
isRequired: false,
|
|
594
|
+
transformFunction: null
|
|
595
|
+
},
|
|
596
|
+
appendTo: {
|
|
597
|
+
classPropertyName: "appendTo",
|
|
598
|
+
publicName: "appendTo",
|
|
599
|
+
isSignal: true,
|
|
600
|
+
isRequired: false,
|
|
601
|
+
transformFunction: null
|
|
602
|
+
},
|
|
603
|
+
viewportMargin: {
|
|
604
|
+
classPropertyName: "viewportMargin",
|
|
605
|
+
publicName: "viewportMargin",
|
|
606
|
+
isSignal: true,
|
|
607
|
+
isRequired: false,
|
|
608
|
+
transformFunction: null
|
|
609
|
+
},
|
|
610
|
+
invalid: {
|
|
611
|
+
classPropertyName: "invalid",
|
|
612
|
+
publicName: "invalid",
|
|
613
|
+
isSignal: true,
|
|
614
|
+
isRequired: false,
|
|
615
|
+
transformFunction: null
|
|
616
|
+
},
|
|
617
|
+
touched: {
|
|
618
|
+
classPropertyName: "touched",
|
|
619
|
+
publicName: "touched",
|
|
620
|
+
isSignal: true,
|
|
621
|
+
isRequired: false,
|
|
622
|
+
transformFunction: null
|
|
623
|
+
},
|
|
624
|
+
disabled: {
|
|
625
|
+
classPropertyName: "disabled",
|
|
626
|
+
publicName: "disabled",
|
|
627
|
+
isSignal: true,
|
|
628
|
+
isRequired: false,
|
|
629
|
+
transformFunction: null
|
|
630
|
+
},
|
|
631
|
+
readonly: {
|
|
632
|
+
classPropertyName: "readonly",
|
|
633
|
+
publicName: "readonly",
|
|
634
|
+
isSignal: true,
|
|
635
|
+
isRequired: false,
|
|
636
|
+
transformFunction: null
|
|
637
|
+
},
|
|
638
|
+
required: {
|
|
639
|
+
classPropertyName: "required",
|
|
640
|
+
publicName: "required",
|
|
641
|
+
isSignal: true,
|
|
642
|
+
isRequired: false,
|
|
643
|
+
transformFunction: null
|
|
644
|
+
},
|
|
645
|
+
fluid: {
|
|
646
|
+
classPropertyName: "fluid",
|
|
647
|
+
publicName: "fluid",
|
|
648
|
+
isSignal: true,
|
|
649
|
+
isRequired: false,
|
|
650
|
+
transformFunction: null
|
|
651
|
+
},
|
|
652
|
+
clearable: {
|
|
653
|
+
classPropertyName: "clearable",
|
|
654
|
+
publicName: "clearable",
|
|
655
|
+
isSignal: true,
|
|
656
|
+
isRequired: false,
|
|
657
|
+
transformFunction: null
|
|
658
|
+
},
|
|
659
|
+
dropdown: {
|
|
660
|
+
classPropertyName: "dropdown",
|
|
661
|
+
publicName: "dropdown",
|
|
662
|
+
isSignal: true,
|
|
663
|
+
isRequired: false,
|
|
664
|
+
transformFunction: null
|
|
665
|
+
},
|
|
666
|
+
completeOnFocus: {
|
|
667
|
+
classPropertyName: "completeOnFocus",
|
|
668
|
+
publicName: "completeOnFocus",
|
|
669
|
+
isSignal: true,
|
|
670
|
+
isRequired: false,
|
|
671
|
+
transformFunction: null
|
|
672
|
+
},
|
|
673
|
+
forceSelection: {
|
|
674
|
+
classPropertyName: "forceSelection",
|
|
675
|
+
publicName: "forceSelection",
|
|
676
|
+
isSignal: true,
|
|
677
|
+
isRequired: false,
|
|
678
|
+
transformFunction: null
|
|
679
|
+
},
|
|
680
|
+
autoHighlight: {
|
|
681
|
+
classPropertyName: "autoHighlight",
|
|
682
|
+
publicName: "autoHighlight",
|
|
683
|
+
isSignal: true,
|
|
684
|
+
isRequired: false,
|
|
685
|
+
transformFunction: null
|
|
686
|
+
},
|
|
687
|
+
grouped: {
|
|
688
|
+
classPropertyName: "grouped",
|
|
689
|
+
publicName: "grouped",
|
|
690
|
+
isSignal: true,
|
|
691
|
+
isRequired: false,
|
|
692
|
+
transformFunction: null
|
|
693
|
+
},
|
|
694
|
+
loading: {
|
|
695
|
+
classPropertyName: "loading",
|
|
696
|
+
publicName: "loading",
|
|
697
|
+
isSignal: true,
|
|
698
|
+
isRequired: false,
|
|
699
|
+
transformFunction: null
|
|
700
|
+
}
|
|
701
|
+
},
|
|
702
|
+
outputs: {
|
|
703
|
+
value: "valueChange",
|
|
704
|
+
completed: "completed",
|
|
705
|
+
selected: "selected",
|
|
706
|
+
cleared: "cleared",
|
|
707
|
+
opened: "opened",
|
|
708
|
+
closed: "closed",
|
|
709
|
+
focused: "focused",
|
|
710
|
+
blurred: "blurred",
|
|
711
|
+
touch: "touch"
|
|
712
|
+
},
|
|
713
|
+
host: { properties: { "attr.data-fluid": "fluid() || null" } },
|
|
714
|
+
providers: [{
|
|
715
|
+
provide: NG_VALUE_ACCESSOR,
|
|
716
|
+
useExisting: forwardRef(() => AerisAutoComplete),
|
|
717
|
+
multi: true
|
|
718
|
+
}],
|
|
719
|
+
queries: [
|
|
720
|
+
{
|
|
721
|
+
propertyName: "optionTemplate",
|
|
722
|
+
first: true,
|
|
723
|
+
predicate: AerisAutoCompleteOptionTemplate,
|
|
724
|
+
descendants: true,
|
|
725
|
+
isSignal: true
|
|
726
|
+
},
|
|
727
|
+
{
|
|
728
|
+
propertyName: "groupTemplate",
|
|
729
|
+
first: true,
|
|
730
|
+
predicate: AerisAutoCompleteGroupTemplate,
|
|
731
|
+
descendants: true,
|
|
732
|
+
isSignal: true
|
|
733
|
+
},
|
|
734
|
+
{
|
|
735
|
+
propertyName: "emptyTemplate",
|
|
736
|
+
first: true,
|
|
737
|
+
predicate: AerisAutoCompleteEmptyTemplate,
|
|
738
|
+
descendants: true,
|
|
739
|
+
isSignal: true
|
|
740
|
+
},
|
|
741
|
+
{
|
|
742
|
+
propertyName: "loadingTemplate",
|
|
743
|
+
first: true,
|
|
744
|
+
predicate: AerisAutoCompleteLoadingTemplate,
|
|
745
|
+
descendants: true,
|
|
746
|
+
isSignal: true
|
|
747
|
+
}
|
|
748
|
+
],
|
|
749
|
+
viewQueries: [
|
|
750
|
+
{
|
|
751
|
+
propertyName: "controlElement",
|
|
752
|
+
first: true,
|
|
753
|
+
predicate: ["control"],
|
|
754
|
+
descendants: true,
|
|
755
|
+
isSignal: true
|
|
756
|
+
},
|
|
757
|
+
{
|
|
758
|
+
propertyName: "inputElement",
|
|
759
|
+
first: true,
|
|
760
|
+
predicate: ["textInput"],
|
|
761
|
+
descendants: true,
|
|
762
|
+
isSignal: true
|
|
763
|
+
},
|
|
764
|
+
{
|
|
765
|
+
propertyName: "suggestionsPanel",
|
|
766
|
+
first: true,
|
|
767
|
+
predicate: ["suggestionsPanel"],
|
|
768
|
+
descendants: true,
|
|
769
|
+
isSignal: true
|
|
770
|
+
},
|
|
771
|
+
{
|
|
772
|
+
propertyName: "panelPortal",
|
|
773
|
+
first: true,
|
|
774
|
+
predicate: ɵAerisAppendTo,
|
|
775
|
+
descendants: true,
|
|
776
|
+
isSignal: true
|
|
777
|
+
}
|
|
778
|
+
],
|
|
779
|
+
ngImport: i0,
|
|
780
|
+
template: `
|
|
393
781
|
<div
|
|
394
782
|
class="aeris-auto-complete"
|
|
395
783
|
[attr.data-size]="size()"
|
|
396
784
|
[attr.data-appearance]="appearance()"
|
|
397
785
|
[attr.data-open]="open() || null"
|
|
398
|
-
[attr.data-invalid]="
|
|
786
|
+
[attr.data-invalid]="displayInvalid() || null"
|
|
399
787
|
[attr.data-disabled]="effectiveDisabled() || null"
|
|
400
788
|
[attr.data-fluid]="fluid() || null"
|
|
401
789
|
(focusout)="handleFocusOut($event)"
|
|
@@ -404,7 +792,7 @@ class AerisAutoComplete {
|
|
|
404
792
|
<input type="hidden" [name]="name()" [value]="value()" />
|
|
405
793
|
}
|
|
406
794
|
|
|
407
|
-
<div class="aeris-auto-complete__control">
|
|
795
|
+
<div #control class="aeris-auto-complete__control">
|
|
408
796
|
<input
|
|
409
797
|
#textInput
|
|
410
798
|
class="aeris-auto-complete__input"
|
|
@@ -423,9 +811,9 @@ class AerisAutoComplete {
|
|
|
423
811
|
[attr.aria-controls]="panelId"
|
|
424
812
|
[attr.aria-activedescendant]="open() ? activeOptionId() : null"
|
|
425
813
|
[attr.aria-label]="ariaLabel() || null"
|
|
426
|
-
[attr.aria-labelledby]="
|
|
427
|
-
[attr.aria-describedby]="
|
|
428
|
-
[attr.aria-invalid]="
|
|
814
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
815
|
+
[attr.aria-describedby]="ariaDescribedBy() || null"
|
|
816
|
+
[attr.aria-invalid]="displayInvalid() || null"
|
|
429
817
|
[attr.aria-required]="required() || null"
|
|
430
818
|
(click)="handleInputClick()"
|
|
431
819
|
(input)="handleInput($event)"
|
|
@@ -461,16 +849,15 @@ class AerisAutoComplete {
|
|
|
461
849
|
</div>
|
|
462
850
|
|
|
463
851
|
@if (open()) {
|
|
464
|
-
<button
|
|
465
|
-
type="button"
|
|
466
|
-
class="aeris-auto-complete__dismiss"
|
|
467
|
-
tabindex="-1"
|
|
468
|
-
aria-hidden="true"
|
|
469
|
-
(click)="closePanel()"
|
|
470
|
-
></button>
|
|
471
|
-
|
|
472
852
|
<div
|
|
853
|
+
#suggestionsPanel
|
|
473
854
|
class="aeris-auto-complete__panel"
|
|
855
|
+
[aerisInternalAppendTo]="appendTo()"
|
|
856
|
+
[aerisInternalAppendToAnchor]="controlElement()?.nativeElement ?? null"
|
|
857
|
+
[aerisInternalAppendToMatchWidth]="true"
|
|
858
|
+
[aerisInternalAppendToCollisionPadding]="viewportMargin()"
|
|
859
|
+
(aerisInternalAppendToOutside)="closePanel()"
|
|
860
|
+
[aerisInternalAppendToDismiss]="dismissOverlay"
|
|
474
861
|
[id]="panelId"
|
|
475
862
|
role="listbox"
|
|
476
863
|
[attr.aria-label]="listboxAriaLabel()"
|
|
@@ -513,12 +900,17 @@ class AerisAutoComplete {
|
|
|
513
900
|
[disabled]="option.disabled"
|
|
514
901
|
[attr.aria-selected]="isSelected(option)"
|
|
515
902
|
[attr.data-active]="isActive(option) || null"
|
|
516
|
-
(
|
|
903
|
+
(pointerdown)="preservePointerFocus($event)"
|
|
517
904
|
(click)="selectOption(option, $event)"
|
|
518
905
|
>
|
|
519
906
|
<ng-container
|
|
520
907
|
[ngTemplateOutlet]="optionContent"
|
|
521
|
-
[ngTemplateOutletContext]="{
|
|
908
|
+
[ngTemplateOutletContext]="{
|
|
909
|
+
$implicit: option,
|
|
910
|
+
option,
|
|
911
|
+
selected: isSelected(option),
|
|
912
|
+
active: isActive(option),
|
|
913
|
+
}"
|
|
522
914
|
/>
|
|
523
915
|
</button>
|
|
524
916
|
}
|
|
@@ -533,12 +925,17 @@ class AerisAutoComplete {
|
|
|
533
925
|
[disabled]="option.disabled"
|
|
534
926
|
[attr.aria-selected]="isSelected(option)"
|
|
535
927
|
[attr.data-active]="isActive(option) || null"
|
|
536
|
-
(
|
|
928
|
+
(pointerdown)="preservePointerFocus($event)"
|
|
537
929
|
(click)="selectOption(option, $event)"
|
|
538
930
|
>
|
|
539
931
|
<ng-container
|
|
540
932
|
[ngTemplateOutlet]="optionContent"
|
|
541
|
-
[ngTemplateOutletContext]="{
|
|
933
|
+
[ngTemplateOutletContext]="{
|
|
934
|
+
$implicit: option,
|
|
935
|
+
option,
|
|
936
|
+
selected: isSelected(option),
|
|
937
|
+
active: isActive(option),
|
|
938
|
+
}"
|
|
542
939
|
/>
|
|
543
940
|
</button>
|
|
544
941
|
}
|
|
@@ -560,17 +957,55 @@ class AerisAutoComplete {
|
|
|
560
957
|
}
|
|
561
958
|
}
|
|
562
959
|
</ng-template>
|
|
563
|
-
`,
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
960
|
+
`,
|
|
961
|
+
isInline: true,
|
|
962
|
+
styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:inline-block;min-width:12rem;max-width:100%;color:var(--aeris-auto-complete-text, var(--aeris-text, #111111));font:inherit}:host([data-fluid]){width:100%}.aeris-auto-complete{--aeris-auto-complete-height: var(--aeris-control-height, 2.625rem);--aeris-auto-complete-font-size: var(--aeris-font-size-lg, .875rem);--aeris-auto-complete-padding: var(--aeris-control-padding-x, .75rem);--aeris-auto-complete-density-gap: var(--aeris-density-gap, .5rem);position:relative;width:100%}.aeris-auto-complete[data-size=xs]{--aeris-auto-complete-height: calc(var(--aeris-control-height, 2.625rem) - .875rem);--aeris-auto-complete-font-size: var(--aeris-font-size-sm, .75rem);--aeris-auto-complete-padding: calc(var(--aeris-control-padding-x, .75rem) * .75)}.aeris-auto-complete[data-size=sm]{--aeris-auto-complete-height: calc(var(--aeris-control-height, 2.625rem) - .5rem);--aeris-auto-complete-font-size: var(--aeris-font-size-md, .8125rem);--aeris-auto-complete-padding: calc(var(--aeris-control-padding-x, .75rem) * .85)}.aeris-auto-complete[data-size=lg]{--aeris-auto-complete-height: calc(var(--aeris-control-height, 2.625rem) + .5rem);--aeris-auto-complete-font-size: var(--aeris-font-size-xl, .9375rem);--aeris-auto-complete-padding: calc(var(--aeris-control-padding-x, .75rem) * 1.15)}.aeris-auto-complete__control{position:relative}.aeris-auto-complete__input{width:100%;min-height:var(--aeris-auto-complete-height);padding:0 var(--aeris-auto-complete-padding);border:1px solid var(--aeris-auto-complete-border, var(--aeris-border, #efefef));border-radius:var(--aeris-auto-complete-radius, var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem)));background:var(--aeris-auto-complete-background, var(--aeris-surface, #fff));color:inherit;font:inherit;font-size:var(--aeris-auto-complete-font-size);line-height:1.35;outline:0;box-shadow:none;transition:border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-auto-complete__input::placeholder{color:var(--aeris-auto-complete-placeholder, var(--aeris-text-2, #454545))}.aeris-auto-complete__control:has(.aeris-auto-complete__clear) .aeris-auto-complete__input{padding-right:3.25rem}.aeris-auto-complete__control:has(.aeris-auto-complete__dropdown) .aeris-auto-complete__input{padding-right:3rem}.aeris-auto-complete__control:has(.aeris-auto-complete__clear):has(.aeris-auto-complete__dropdown) .aeris-auto-complete__input{padding-right:5rem}.aeris-auto-complete[data-appearance=filled] .aeris-auto-complete__input{border-color:transparent;background:var(--aeris-auto-complete-filled-background, var(--aeris-surface-2, #f3f3f3))}.aeris-auto-complete[data-open] .aeris-auto-complete__input{border-color:var(--aeris-auto-complete-hover-border, var(--aeris-control-hover-border, var(--aeris-primary, #111111)))}@media(hover:hover){.aeris-auto-complete__input:hover{border-color:var(--aeris-auto-complete-hover-border, var(--aeris-control-hover-border, var(--aeris-primary, #111111)))}}.aeris-auto-complete__input:focus-visible{border-color:var(--aeris-auto-complete-focus, var(--aeris-control-focus-border, var(--aeris-focus, #111111)));box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-focus-ring-color, var(--aeris-focus-ring-color, transparent))}.aeris-auto-complete[data-invalid] .aeris-auto-complete__input,.aeris-auto-complete__input:user-invalid{border-color:var(--aeris-control-invalid-border, var(--aeris-danger, #c81e2a))}.aeris-auto-complete[data-invalid] .aeris-auto-complete__input:focus-visible,.aeris-auto-complete__input:user-invalid:focus-visible{box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-invalid-focus-ring-color, transparent)}.aeris-auto-complete[data-disabled] .aeris-auto-complete__input{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-auto-complete__clear,.aeris-auto-complete__dropdown{position:absolute;top:50%;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-auto-complete-icon, var(--aeris-text-2, #454545));transform:translateY(-50%);cursor:pointer}.aeris-auto-complete__clear{right:2.25rem}.aeris-auto-complete__dropdown{right:var(--aeris-auto-complete-padding)}.aeris-auto-complete__control:not(:has(.aeris-auto-complete__dropdown)) .aeris-auto-complete__clear{right:var(--aeris-auto-complete-padding)}.aeris-auto-complete__clear:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}@media(hover:hover){.aeris-auto-complete__clear:hover,.aeris-auto-complete__dropdown:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-auto-complete__clear:focus-visible,.aeris-auto-complete__dropdown:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-auto-complete__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-auto-complete__dropdown>span{position:relative;width:1rem;height:1rem}.aeris-auto-complete__dropdown>span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-auto-complete[data-open] .aeris-auto-complete__dropdown>span:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-auto-complete__panel{position:absolute;z-index:90;top:calc(100% + .4375rem);right:0;left:0;min-width:100%;max-width:calc(100vw - 2rem);overflow:auto;scrollbar-color:var(--aeris-border, #efefef) transparent;scrollbar-width:thin;padding:var(--aeris-overlay-padding, calc(var(--aeris-auto-complete-density-gap) * .75));border:1px solid var(--aeris-auto-complete-panel-border, var(--aeris-border));border-radius:var(--aeris-auto-complete-panel-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-auto-complete-panel-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-auto-complete-panel-shadow, var(--aeris-overlay-shadow, var(--aeris-shadow-lg, 0 18px 48px rgba(0, 0, 0, .18))))}.aeris-auto-complete__panel::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-auto-complete__panel::-webkit-scrollbar-track,.aeris-auto-complete__panel::-webkit-scrollbar-corner{background:transparent}.aeris-auto-complete__panel::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border, #efefef);background-clip:content-box}.aeris-auto-complete__group{padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem) calc(var(--aeris-item-padding-y, .5rem) * .75);color:var(--aeris-text-3, #707070);font-size:var(--aeris-font-size-xs, .6875rem);font-weight:var(--aeris-font-weight-bold, 700);letter-spacing:.08em;text-transform:uppercase}.aeris-auto-complete__option{width:100%;min-height:var(--aeris-item-height, 2.5rem);display:grid;gap:calc(var(--aeris-auto-complete-density-gap) * .25);padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:inherit;font:inherit;font-size:var(--aeris-item-font-size, .875rem);line-height:1.35;text-align:left;cursor:pointer}.aeris-auto-complete__option[data-active]{background:var(--aeris-auto-complete-option-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)))}@media(hover:hover){.aeris-auto-complete__option:hover{background:var(--aeris-auto-complete-option-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)))}}.aeris-auto-complete__option[aria-selected=true]{background:var(--aeris-auto-complete-option-selected, var(--aeris-primary-soft, #e7eddc));color:var(--aeris-auto-complete-option-selected-text, var(--aeris-text, #111111));font-weight:var(--aeris-font-weight-bold, 700)}.aeris-auto-complete__option:disabled{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-auto-complete__option-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-auto-complete__option-description{color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem)}.aeris-auto-complete__state{padding:calc(var(--aeris-item-padding-y, .5rem) * 1.75) calc(var(--aeris-item-padding-x, .75rem) * 1.15);color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-lg, .875rem)}@media(prefers-reduced-motion:reduce){.aeris-auto-complete__input,.aeris-auto-complete__dropdown>span:before{transition:none}}@media(pointer:coarse){input{font-size:var(--aeris-mobile-input-font-size, 1rem)}}\n"],
|
|
963
|
+
dependencies: [{
|
|
964
|
+
kind: "directive",
|
|
965
|
+
type: NgTemplateOutlet,
|
|
966
|
+
selector: "[ngTemplateOutlet]",
|
|
967
|
+
inputs: [
|
|
968
|
+
"ngTemplateOutletContext",
|
|
969
|
+
"ngTemplateOutlet",
|
|
970
|
+
"ngTemplateOutletInjector"
|
|
971
|
+
]
|
|
972
|
+
}, {
|
|
973
|
+
kind: "directive",
|
|
974
|
+
type: ɵAerisAppendTo,
|
|
975
|
+
selector: "[aerisInternalAppendTo]",
|
|
976
|
+
inputs: [
|
|
977
|
+
"aerisInternalAppendTo",
|
|
978
|
+
"aerisInternalAppendToDefault",
|
|
979
|
+
"aerisInternalAppendToAnchor",
|
|
980
|
+
"aerisInternalAppendToOffset",
|
|
981
|
+
"aerisInternalAppendToMatchWidth",
|
|
982
|
+
"aerisInternalAppendToPlacement",
|
|
983
|
+
"aerisInternalAppendToAlignment",
|
|
984
|
+
"aerisInternalAppendToCollisionPadding",
|
|
985
|
+
"aerisInternalAppendToPositionSelf",
|
|
986
|
+
"aerisInternalAppendToDismiss"
|
|
987
|
+
],
|
|
988
|
+
outputs: ["aerisInternalAppendToOutside"]
|
|
989
|
+
}]
|
|
990
|
+
});
|
|
991
|
+
};
|
|
992
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
993
|
+
minVersion: "12.0.0",
|
|
994
|
+
version: "22.2.2",
|
|
995
|
+
ngImport: i0,
|
|
996
|
+
type: AerisAutoComplete,
|
|
997
|
+
decorators: [{
|
|
998
|
+
type: Component,
|
|
999
|
+
args: [{
|
|
1000
|
+
selector: "aeris-auto-complete",
|
|
1001
|
+
imports: [NgTemplateOutlet, ɵAerisAppendTo],
|
|
1002
|
+
template: `
|
|
568
1003
|
<div
|
|
569
1004
|
class="aeris-auto-complete"
|
|
570
1005
|
[attr.data-size]="size()"
|
|
571
1006
|
[attr.data-appearance]="appearance()"
|
|
572
1007
|
[attr.data-open]="open() || null"
|
|
573
|
-
[attr.data-invalid]="
|
|
1008
|
+
[attr.data-invalid]="displayInvalid() || null"
|
|
574
1009
|
[attr.data-disabled]="effectiveDisabled() || null"
|
|
575
1010
|
[attr.data-fluid]="fluid() || null"
|
|
576
1011
|
(focusout)="handleFocusOut($event)"
|
|
@@ -579,7 +1014,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
579
1014
|
<input type="hidden" [name]="name()" [value]="value()" />
|
|
580
1015
|
}
|
|
581
1016
|
|
|
582
|
-
<div class="aeris-auto-complete__control">
|
|
1017
|
+
<div #control class="aeris-auto-complete__control">
|
|
583
1018
|
<input
|
|
584
1019
|
#textInput
|
|
585
1020
|
class="aeris-auto-complete__input"
|
|
@@ -598,9 +1033,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
598
1033
|
[attr.aria-controls]="panelId"
|
|
599
1034
|
[attr.aria-activedescendant]="open() ? activeOptionId() : null"
|
|
600
1035
|
[attr.aria-label]="ariaLabel() || null"
|
|
601
|
-
[attr.aria-labelledby]="
|
|
602
|
-
[attr.aria-describedby]="
|
|
603
|
-
[attr.aria-invalid]="
|
|
1036
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
1037
|
+
[attr.aria-describedby]="ariaDescribedBy() || null"
|
|
1038
|
+
[attr.aria-invalid]="displayInvalid() || null"
|
|
604
1039
|
[attr.aria-required]="required() || null"
|
|
605
1040
|
(click)="handleInputClick()"
|
|
606
1041
|
(input)="handleInput($event)"
|
|
@@ -636,16 +1071,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
636
1071
|
</div>
|
|
637
1072
|
|
|
638
1073
|
@if (open()) {
|
|
639
|
-
<button
|
|
640
|
-
type="button"
|
|
641
|
-
class="aeris-auto-complete__dismiss"
|
|
642
|
-
tabindex="-1"
|
|
643
|
-
aria-hidden="true"
|
|
644
|
-
(click)="closePanel()"
|
|
645
|
-
></button>
|
|
646
|
-
|
|
647
1074
|
<div
|
|
1075
|
+
#suggestionsPanel
|
|
648
1076
|
class="aeris-auto-complete__panel"
|
|
1077
|
+
[aerisInternalAppendTo]="appendTo()"
|
|
1078
|
+
[aerisInternalAppendToAnchor]="controlElement()?.nativeElement ?? null"
|
|
1079
|
+
[aerisInternalAppendToMatchWidth]="true"
|
|
1080
|
+
[aerisInternalAppendToCollisionPadding]="viewportMargin()"
|
|
1081
|
+
(aerisInternalAppendToOutside)="closePanel()"
|
|
1082
|
+
[aerisInternalAppendToDismiss]="dismissOverlay"
|
|
649
1083
|
[id]="panelId"
|
|
650
1084
|
role="listbox"
|
|
651
1085
|
[attr.aria-label]="listboxAriaLabel()"
|
|
@@ -688,12 +1122,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
688
1122
|
[disabled]="option.disabled"
|
|
689
1123
|
[attr.aria-selected]="isSelected(option)"
|
|
690
1124
|
[attr.data-active]="isActive(option) || null"
|
|
691
|
-
(
|
|
1125
|
+
(pointerdown)="preservePointerFocus($event)"
|
|
692
1126
|
(click)="selectOption(option, $event)"
|
|
693
1127
|
>
|
|
694
1128
|
<ng-container
|
|
695
1129
|
[ngTemplateOutlet]="optionContent"
|
|
696
|
-
[ngTemplateOutletContext]="{
|
|
1130
|
+
[ngTemplateOutletContext]="{
|
|
1131
|
+
$implicit: option,
|
|
1132
|
+
option,
|
|
1133
|
+
selected: isSelected(option),
|
|
1134
|
+
active: isActive(option),
|
|
1135
|
+
}"
|
|
697
1136
|
/>
|
|
698
1137
|
</button>
|
|
699
1138
|
}
|
|
@@ -708,12 +1147,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
708
1147
|
[disabled]="option.disabled"
|
|
709
1148
|
[attr.aria-selected]="isSelected(option)"
|
|
710
1149
|
[attr.data-active]="isActive(option) || null"
|
|
711
|
-
(
|
|
1150
|
+
(pointerdown)="preservePointerFocus($event)"
|
|
712
1151
|
(click)="selectOption(option, $event)"
|
|
713
1152
|
>
|
|
714
1153
|
<ng-container
|
|
715
1154
|
[ngTemplateOutlet]="optionContent"
|
|
716
|
-
[ngTemplateOutletContext]="{
|
|
1155
|
+
[ngTemplateOutletContext]="{
|
|
1156
|
+
$implicit: option,
|
|
1157
|
+
option,
|
|
1158
|
+
selected: isSelected(option),
|
|
1159
|
+
active: isActive(option),
|
|
1160
|
+
}"
|
|
717
1161
|
/>
|
|
718
1162
|
</button>
|
|
719
1163
|
}
|
|
@@ -735,20 +1179,358 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
735
1179
|
}
|
|
736
1180
|
}
|
|
737
1181
|
</ng-template>
|
|
738
|
-
`,
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
746
|
-
|
|
747
|
-
|
|
748
|
-
|
|
749
|
-
|
|
750
|
-
|
|
751
|
-
|
|
752
|
-
|
|
1182
|
+
`,
|
|
1183
|
+
providers: [{
|
|
1184
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1185
|
+
useExisting: forwardRef(() => AerisAutoComplete),
|
|
1186
|
+
multi: true
|
|
1187
|
+
}],
|
|
1188
|
+
host: { "[attr.data-fluid]": "fluid() || null" },
|
|
1189
|
+
styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url(data:image/svg+xml,%3Csvg%20xmlns=%27http://www.w3.org/2000/svg%27%20viewBox=%270%200%2024%2024%27%3E%3Cpath%20d=%27M7%209.5%2012%2014.5%2017%209.5%27%20fill=%27none%27%20stroke=%27black%27%20stroke-width=%272.4%27%20stroke-linecap=%27round%27%20stroke-linejoin=%27round%27/%3E%3C/svg%3E) );display:inline-block;min-width:12rem;max-width:100%;color:var(--aeris-auto-complete-text, var(--aeris-text, #111111));font:inherit}:host([data-fluid]){width:100%}.aeris-auto-complete{--aeris-auto-complete-height: var(--aeris-control-height, 2.625rem);--aeris-auto-complete-font-size: var(--aeris-font-size-lg, .875rem);--aeris-auto-complete-padding: var(--aeris-control-padding-x, .75rem);--aeris-auto-complete-density-gap: var(--aeris-density-gap, .5rem);position:relative;width:100%}.aeris-auto-complete[data-size=xs]{--aeris-auto-complete-height: calc(var(--aeris-control-height, 2.625rem) - .875rem);--aeris-auto-complete-font-size: var(--aeris-font-size-sm, .75rem);--aeris-auto-complete-padding: calc(var(--aeris-control-padding-x, .75rem) * .75)}.aeris-auto-complete[data-size=sm]{--aeris-auto-complete-height: calc(var(--aeris-control-height, 2.625rem) - .5rem);--aeris-auto-complete-font-size: var(--aeris-font-size-md, .8125rem);--aeris-auto-complete-padding: calc(var(--aeris-control-padding-x, .75rem) * .85)}.aeris-auto-complete[data-size=lg]{--aeris-auto-complete-height: calc(var(--aeris-control-height, 2.625rem) + .5rem);--aeris-auto-complete-font-size: var(--aeris-font-size-xl, .9375rem);--aeris-auto-complete-padding: calc(var(--aeris-control-padding-x, .75rem) * 1.15)}.aeris-auto-complete__control{position:relative}.aeris-auto-complete__input{width:100%;min-height:var(--aeris-auto-complete-height);padding:0 var(--aeris-auto-complete-padding);border:1px solid var(--aeris-auto-complete-border, var(--aeris-border, #efefef));border-radius:var(--aeris-auto-complete-radius, var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem)));background:var(--aeris-auto-complete-background, var(--aeris-surface, #fff));color:inherit;font:inherit;font-size:var(--aeris-auto-complete-font-size);line-height:1.35;outline:0;box-shadow:none;transition:border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-auto-complete__input::placeholder{color:var(--aeris-auto-complete-placeholder, var(--aeris-text-2, #454545))}.aeris-auto-complete__control:has(.aeris-auto-complete__clear) .aeris-auto-complete__input{padding-right:3.25rem}.aeris-auto-complete__control:has(.aeris-auto-complete__dropdown) .aeris-auto-complete__input{padding-right:3rem}.aeris-auto-complete__control:has(.aeris-auto-complete__clear):has(.aeris-auto-complete__dropdown) .aeris-auto-complete__input{padding-right:5rem}.aeris-auto-complete[data-appearance=filled] .aeris-auto-complete__input{border-color:transparent;background:var(--aeris-auto-complete-filled-background, var(--aeris-surface-2, #f3f3f3))}.aeris-auto-complete[data-open] .aeris-auto-complete__input{border-color:var(--aeris-auto-complete-hover-border, var(--aeris-control-hover-border, var(--aeris-primary, #111111)))}@media(hover:hover){.aeris-auto-complete__input:hover{border-color:var(--aeris-auto-complete-hover-border, var(--aeris-control-hover-border, var(--aeris-primary, #111111)))}}.aeris-auto-complete__input:focus-visible{border-color:var(--aeris-auto-complete-focus, var(--aeris-control-focus-border, var(--aeris-focus, #111111)));box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-focus-ring-color, var(--aeris-focus-ring-color, transparent))}.aeris-auto-complete[data-invalid] .aeris-auto-complete__input,.aeris-auto-complete__input:user-invalid{border-color:var(--aeris-control-invalid-border, var(--aeris-danger, #c81e2a))}.aeris-auto-complete[data-invalid] .aeris-auto-complete__input:focus-visible,.aeris-auto-complete__input:user-invalid:focus-visible{box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-invalid-focus-ring-color, transparent)}.aeris-auto-complete[data-disabled] .aeris-auto-complete__input{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-auto-complete__clear,.aeris-auto-complete__dropdown{position:absolute;top:50%;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-auto-complete-icon, var(--aeris-text-2, #454545));transform:translateY(-50%);cursor:pointer}.aeris-auto-complete__clear{right:2.25rem}.aeris-auto-complete__dropdown{right:var(--aeris-auto-complete-padding)}.aeris-auto-complete__control:not(:has(.aeris-auto-complete__dropdown)) .aeris-auto-complete__clear{right:var(--aeris-auto-complete-padding)}.aeris-auto-complete__clear:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}@media(hover:hover){.aeris-auto-complete__clear:hover,.aeris-auto-complete__dropdown:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-auto-complete__clear:focus-visible,.aeris-auto-complete__dropdown:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-auto-complete__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-auto-complete__dropdown>span{position:relative;width:1rem;height:1rem}.aeris-auto-complete__dropdown>span:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);transition:transform var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-auto-complete[data-open] .aeris-auto-complete__dropdown>span:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-auto-complete__panel{position:absolute;z-index:90;top:calc(100% + .4375rem);right:0;left:0;min-width:100%;max-width:calc(100vw - 2rem);overflow:auto;scrollbar-color:var(--aeris-border, #efefef) transparent;scrollbar-width:thin;padding:var(--aeris-overlay-padding, calc(var(--aeris-auto-complete-density-gap) * .75));border:1px solid var(--aeris-auto-complete-panel-border, var(--aeris-border));border-radius:var(--aeris-auto-complete-panel-radius, var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem)));background:var(--aeris-auto-complete-panel-background, var(--aeris-surface, #fff));box-shadow:var(--aeris-auto-complete-panel-shadow, var(--aeris-overlay-shadow, var(--aeris-shadow-lg, 0 18px 48px rgba(0, 0, 0, .18))))}.aeris-auto-complete__panel::-webkit-scrollbar{width:.75rem;height:.75rem}.aeris-auto-complete__panel::-webkit-scrollbar-track,.aeris-auto-complete__panel::-webkit-scrollbar-corner{background:transparent}.aeris-auto-complete__panel::-webkit-scrollbar-thumb{border:3px solid transparent;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-border, #efefef);background-clip:content-box}.aeris-auto-complete__group{padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem) calc(var(--aeris-item-padding-y, .5rem) * .75);color:var(--aeris-text-3, #707070);font-size:var(--aeris-font-size-xs, .6875rem);font-weight:var(--aeris-font-weight-bold, 700);letter-spacing:.08em;text-transform:uppercase}.aeris-auto-complete__option{width:100%;min-height:var(--aeris-item-height, 2.5rem);display:grid;gap:calc(var(--aeris-auto-complete-density-gap) * .25);padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:inherit;font:inherit;font-size:var(--aeris-item-font-size, .875rem);line-height:1.35;text-align:left;cursor:pointer}.aeris-auto-complete__option[data-active]{background:var(--aeris-auto-complete-option-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)))}@media(hover:hover){.aeris-auto-complete__option:hover{background:var(--aeris-auto-complete-option-hover, var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3)))}}.aeris-auto-complete__option[aria-selected=true]{background:var(--aeris-auto-complete-option-selected, var(--aeris-primary-soft, #e7eddc));color:var(--aeris-auto-complete-option-selected-text, var(--aeris-text, #111111));font-weight:var(--aeris-font-weight-bold, 700)}.aeris-auto-complete__option:disabled{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-auto-complete__option-label{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-auto-complete__option-description{color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem)}.aeris-auto-complete__state{padding:calc(var(--aeris-item-padding-y, .5rem) * 1.75) calc(var(--aeris-item-padding-x, .75rem) * 1.15);color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-lg, .875rem)}@media(prefers-reduced-motion:reduce){.aeris-auto-complete__input,.aeris-auto-complete__dropdown>span:before{transition:none}}@media(pointer:coarse){input{font-size:var(--aeris-mobile-input-font-size, 1rem)}}\n"]
|
|
1190
|
+
}]
|
|
1191
|
+
}],
|
|
1192
|
+
propDecorators: {
|
|
1193
|
+
controlElement: [{
|
|
1194
|
+
type: i0.ViewChild,
|
|
1195
|
+
args: ["control", { isSignal: true }]
|
|
1196
|
+
}],
|
|
1197
|
+
inputElement: [{
|
|
1198
|
+
type: i0.ViewChild,
|
|
1199
|
+
args: ["textInput", { isSignal: true }]
|
|
1200
|
+
}],
|
|
1201
|
+
suggestionsPanel: [{
|
|
1202
|
+
type: i0.ViewChild,
|
|
1203
|
+
args: ["suggestionsPanel", { isSignal: true }]
|
|
1204
|
+
}],
|
|
1205
|
+
panelPortal: [{
|
|
1206
|
+
type: i0.ViewChild,
|
|
1207
|
+
args: [i0.forwardRef(() => ɵAerisAppendTo), { isSignal: true }]
|
|
1208
|
+
}],
|
|
1209
|
+
value: [{
|
|
1210
|
+
type: i0.Input,
|
|
1211
|
+
args: [{
|
|
1212
|
+
isSignal: true,
|
|
1213
|
+
alias: "value",
|
|
1214
|
+
required: false
|
|
1215
|
+
}]
|
|
1216
|
+
}, {
|
|
1217
|
+
type: i0.Output,
|
|
1218
|
+
args: ["valueChange"]
|
|
1219
|
+
}],
|
|
1220
|
+
suggestions: [{
|
|
1221
|
+
type: i0.Input,
|
|
1222
|
+
args: [{
|
|
1223
|
+
isSignal: true,
|
|
1224
|
+
alias: "suggestions",
|
|
1225
|
+
required: false
|
|
1226
|
+
}]
|
|
1227
|
+
}],
|
|
1228
|
+
inputId: [{
|
|
1229
|
+
type: i0.Input,
|
|
1230
|
+
args: [{
|
|
1231
|
+
isSignal: true,
|
|
1232
|
+
alias: "inputId",
|
|
1233
|
+
required: false
|
|
1234
|
+
}]
|
|
1235
|
+
}],
|
|
1236
|
+
name: [{
|
|
1237
|
+
type: i0.Input,
|
|
1238
|
+
args: [{
|
|
1239
|
+
isSignal: true,
|
|
1240
|
+
alias: "name",
|
|
1241
|
+
required: false
|
|
1242
|
+
}]
|
|
1243
|
+
}],
|
|
1244
|
+
placeholder: [{
|
|
1245
|
+
type: i0.Input,
|
|
1246
|
+
args: [{
|
|
1247
|
+
isSignal: true,
|
|
1248
|
+
alias: "placeholder",
|
|
1249
|
+
required: false
|
|
1250
|
+
}]
|
|
1251
|
+
}],
|
|
1252
|
+
autocomplete: [{
|
|
1253
|
+
type: i0.Input,
|
|
1254
|
+
args: [{
|
|
1255
|
+
isSignal: true,
|
|
1256
|
+
alias: "autocomplete",
|
|
1257
|
+
required: false
|
|
1258
|
+
}]
|
|
1259
|
+
}],
|
|
1260
|
+
ariaLabel: [{
|
|
1261
|
+
type: i0.Input,
|
|
1262
|
+
args: [{
|
|
1263
|
+
isSignal: true,
|
|
1264
|
+
alias: "ariaLabel",
|
|
1265
|
+
required: false
|
|
1266
|
+
}]
|
|
1267
|
+
}],
|
|
1268
|
+
ariaLabelledBy: [{
|
|
1269
|
+
type: i0.Input,
|
|
1270
|
+
args: [{
|
|
1271
|
+
isSignal: true,
|
|
1272
|
+
alias: "ariaLabelledBy",
|
|
1273
|
+
required: false
|
|
1274
|
+
}]
|
|
1275
|
+
}],
|
|
1276
|
+
ariaDescribedBy: [{
|
|
1277
|
+
type: i0.Input,
|
|
1278
|
+
args: [{
|
|
1279
|
+
isSignal: true,
|
|
1280
|
+
alias: "ariaDescribedBy",
|
|
1281
|
+
required: false
|
|
1282
|
+
}]
|
|
1283
|
+
}],
|
|
1284
|
+
listboxAriaLabel: [{
|
|
1285
|
+
type: i0.Input,
|
|
1286
|
+
args: [{
|
|
1287
|
+
isSignal: true,
|
|
1288
|
+
alias: "listboxAriaLabel",
|
|
1289
|
+
required: false
|
|
1290
|
+
}]
|
|
1291
|
+
}],
|
|
1292
|
+
dropdownAriaLabel: [{
|
|
1293
|
+
type: i0.Input,
|
|
1294
|
+
args: [{
|
|
1295
|
+
isSignal: true,
|
|
1296
|
+
alias: "dropdownAriaLabel",
|
|
1297
|
+
required: false
|
|
1298
|
+
}]
|
|
1299
|
+
}],
|
|
1300
|
+
clearButtonAriaLabel: [{
|
|
1301
|
+
type: i0.Input,
|
|
1302
|
+
args: [{
|
|
1303
|
+
isSignal: true,
|
|
1304
|
+
alias: "clearButtonAriaLabel",
|
|
1305
|
+
required: false
|
|
1306
|
+
}]
|
|
1307
|
+
}],
|
|
1308
|
+
emptyMessage: [{
|
|
1309
|
+
type: i0.Input,
|
|
1310
|
+
args: [{
|
|
1311
|
+
isSignal: true,
|
|
1312
|
+
alias: "emptyMessage",
|
|
1313
|
+
required: false
|
|
1314
|
+
}]
|
|
1315
|
+
}],
|
|
1316
|
+
loadingMessage: [{
|
|
1317
|
+
type: i0.Input,
|
|
1318
|
+
args: [{
|
|
1319
|
+
isSignal: true,
|
|
1320
|
+
alias: "loadingMessage",
|
|
1321
|
+
required: false
|
|
1322
|
+
}]
|
|
1323
|
+
}],
|
|
1324
|
+
size: [{
|
|
1325
|
+
type: i0.Input,
|
|
1326
|
+
args: [{
|
|
1327
|
+
isSignal: true,
|
|
1328
|
+
alias: "size",
|
|
1329
|
+
required: false
|
|
1330
|
+
}]
|
|
1331
|
+
}],
|
|
1332
|
+
appearance: [{
|
|
1333
|
+
type: i0.Input,
|
|
1334
|
+
args: [{
|
|
1335
|
+
isSignal: true,
|
|
1336
|
+
alias: "appearance",
|
|
1337
|
+
required: false
|
|
1338
|
+
}]
|
|
1339
|
+
}],
|
|
1340
|
+
filterMatchMode: [{
|
|
1341
|
+
type: i0.Input,
|
|
1342
|
+
args: [{
|
|
1343
|
+
isSignal: true,
|
|
1344
|
+
alias: "filterMatchMode",
|
|
1345
|
+
required: false
|
|
1346
|
+
}]
|
|
1347
|
+
}],
|
|
1348
|
+
minLength: [{
|
|
1349
|
+
type: i0.Input,
|
|
1350
|
+
args: [{
|
|
1351
|
+
isSignal: true,
|
|
1352
|
+
alias: "minLength",
|
|
1353
|
+
required: false
|
|
1354
|
+
}]
|
|
1355
|
+
}],
|
|
1356
|
+
panelMaxHeight: [{
|
|
1357
|
+
type: i0.Input,
|
|
1358
|
+
args: [{
|
|
1359
|
+
isSignal: true,
|
|
1360
|
+
alias: "panelMaxHeight",
|
|
1361
|
+
required: false
|
|
1362
|
+
}]
|
|
1363
|
+
}],
|
|
1364
|
+
appendTo: [{
|
|
1365
|
+
type: i0.Input,
|
|
1366
|
+
args: [{
|
|
1367
|
+
isSignal: true,
|
|
1368
|
+
alias: "appendTo",
|
|
1369
|
+
required: false
|
|
1370
|
+
}]
|
|
1371
|
+
}],
|
|
1372
|
+
viewportMargin: [{
|
|
1373
|
+
type: i0.Input,
|
|
1374
|
+
args: [{
|
|
1375
|
+
isSignal: true,
|
|
1376
|
+
alias: "viewportMargin",
|
|
1377
|
+
required: false
|
|
1378
|
+
}]
|
|
1379
|
+
}],
|
|
1380
|
+
invalid: [{
|
|
1381
|
+
type: i0.Input,
|
|
1382
|
+
args: [{
|
|
1383
|
+
isSignal: true,
|
|
1384
|
+
alias: "invalid",
|
|
1385
|
+
required: false
|
|
1386
|
+
}]
|
|
1387
|
+
}],
|
|
1388
|
+
touched: [{
|
|
1389
|
+
type: i0.Input,
|
|
1390
|
+
args: [{
|
|
1391
|
+
isSignal: true,
|
|
1392
|
+
alias: "touched",
|
|
1393
|
+
required: false
|
|
1394
|
+
}]
|
|
1395
|
+
}],
|
|
1396
|
+
disabled: [{
|
|
1397
|
+
type: i0.Input,
|
|
1398
|
+
args: [{
|
|
1399
|
+
isSignal: true,
|
|
1400
|
+
alias: "disabled",
|
|
1401
|
+
required: false
|
|
1402
|
+
}]
|
|
1403
|
+
}],
|
|
1404
|
+
readonly: [{
|
|
1405
|
+
type: i0.Input,
|
|
1406
|
+
args: [{
|
|
1407
|
+
isSignal: true,
|
|
1408
|
+
alias: "readonly",
|
|
1409
|
+
required: false
|
|
1410
|
+
}]
|
|
1411
|
+
}],
|
|
1412
|
+
required: [{
|
|
1413
|
+
type: i0.Input,
|
|
1414
|
+
args: [{
|
|
1415
|
+
isSignal: true,
|
|
1416
|
+
alias: "required",
|
|
1417
|
+
required: false
|
|
1418
|
+
}]
|
|
1419
|
+
}],
|
|
1420
|
+
fluid: [{
|
|
1421
|
+
type: i0.Input,
|
|
1422
|
+
args: [{
|
|
1423
|
+
isSignal: true,
|
|
1424
|
+
alias: "fluid",
|
|
1425
|
+
required: false
|
|
1426
|
+
}]
|
|
1427
|
+
}],
|
|
1428
|
+
clearable: [{
|
|
1429
|
+
type: i0.Input,
|
|
1430
|
+
args: [{
|
|
1431
|
+
isSignal: true,
|
|
1432
|
+
alias: "clearable",
|
|
1433
|
+
required: false
|
|
1434
|
+
}]
|
|
1435
|
+
}],
|
|
1436
|
+
dropdown: [{
|
|
1437
|
+
type: i0.Input,
|
|
1438
|
+
args: [{
|
|
1439
|
+
isSignal: true,
|
|
1440
|
+
alias: "dropdown",
|
|
1441
|
+
required: false
|
|
1442
|
+
}]
|
|
1443
|
+
}],
|
|
1444
|
+
completeOnFocus: [{
|
|
1445
|
+
type: i0.Input,
|
|
1446
|
+
args: [{
|
|
1447
|
+
isSignal: true,
|
|
1448
|
+
alias: "completeOnFocus",
|
|
1449
|
+
required: false
|
|
1450
|
+
}]
|
|
1451
|
+
}],
|
|
1452
|
+
forceSelection: [{
|
|
1453
|
+
type: i0.Input,
|
|
1454
|
+
args: [{
|
|
1455
|
+
isSignal: true,
|
|
1456
|
+
alias: "forceSelection",
|
|
1457
|
+
required: false
|
|
1458
|
+
}]
|
|
1459
|
+
}],
|
|
1460
|
+
autoHighlight: [{
|
|
1461
|
+
type: i0.Input,
|
|
1462
|
+
args: [{
|
|
1463
|
+
isSignal: true,
|
|
1464
|
+
alias: "autoHighlight",
|
|
1465
|
+
required: false
|
|
1466
|
+
}]
|
|
1467
|
+
}],
|
|
1468
|
+
grouped: [{
|
|
1469
|
+
type: i0.Input,
|
|
1470
|
+
args: [{
|
|
1471
|
+
isSignal: true,
|
|
1472
|
+
alias: "grouped",
|
|
1473
|
+
required: false
|
|
1474
|
+
}]
|
|
1475
|
+
}],
|
|
1476
|
+
loading: [{
|
|
1477
|
+
type: i0.Input,
|
|
1478
|
+
args: [{
|
|
1479
|
+
isSignal: true,
|
|
1480
|
+
alias: "loading",
|
|
1481
|
+
required: false
|
|
1482
|
+
}]
|
|
1483
|
+
}],
|
|
1484
|
+
completed: [{
|
|
1485
|
+
type: i0.Output,
|
|
1486
|
+
args: ["completed"]
|
|
1487
|
+
}],
|
|
1488
|
+
selected: [{
|
|
1489
|
+
type: i0.Output,
|
|
1490
|
+
args: ["selected"]
|
|
1491
|
+
}],
|
|
1492
|
+
cleared: [{
|
|
1493
|
+
type: i0.Output,
|
|
1494
|
+
args: ["cleared"]
|
|
1495
|
+
}],
|
|
1496
|
+
opened: [{
|
|
1497
|
+
type: i0.Output,
|
|
1498
|
+
args: ["opened"]
|
|
1499
|
+
}],
|
|
1500
|
+
closed: [{
|
|
1501
|
+
type: i0.Output,
|
|
1502
|
+
args: ["closed"]
|
|
1503
|
+
}],
|
|
1504
|
+
focused: [{
|
|
1505
|
+
type: i0.Output,
|
|
1506
|
+
args: ["focused"]
|
|
1507
|
+
}],
|
|
1508
|
+
blurred: [{
|
|
1509
|
+
type: i0.Output,
|
|
1510
|
+
args: ["blurred"]
|
|
1511
|
+
}],
|
|
1512
|
+
touch: [{
|
|
1513
|
+
type: i0.Output,
|
|
1514
|
+
args: ["touch"]
|
|
1515
|
+
}],
|
|
1516
|
+
optionTemplate: [{
|
|
1517
|
+
type: i0.ContentChild,
|
|
1518
|
+
args: [i0.forwardRef(() => AerisAutoCompleteOptionTemplate), { isSignal: true }]
|
|
1519
|
+
}],
|
|
1520
|
+
groupTemplate: [{
|
|
1521
|
+
type: i0.ContentChild,
|
|
1522
|
+
args: [i0.forwardRef(() => AerisAutoCompleteGroupTemplate), { isSignal: true }]
|
|
1523
|
+
}],
|
|
1524
|
+
emptyTemplate: [{
|
|
1525
|
+
type: i0.ContentChild,
|
|
1526
|
+
args: [i0.forwardRef(() => AerisAutoCompleteEmptyTemplate), { isSignal: true }]
|
|
1527
|
+
}],
|
|
1528
|
+
loadingTemplate: [{
|
|
1529
|
+
type: i0.ContentChild,
|
|
1530
|
+
args: [i0.forwardRef(() => AerisAutoCompleteLoadingTemplate), { isSignal: true }]
|
|
1531
|
+
}]
|
|
1532
|
+
}
|
|
1533
|
+
});
|
|
753
1534
|
export { AerisAutoComplete, AerisAutoCompleteEmptyTemplate, AerisAutoCompleteGroupTemplate, AerisAutoCompleteLoadingTemplate, AerisAutoCompleteOptionTemplate };
|
|
754
|
-
|
|
1535
|
+
|
|
1536
|
+
//# sourceMappingURL=aeris-ui-core-auto-complete.mjs.map
|