@aeris-ui/core 22.0.0-alpha.1 → 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 +200 -191
- 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,510 +1,1039 @@
|
|
|
1
|
-
import { NgTemplateOutlet } from
|
|
2
|
-
import * as i0 from
|
|
3
|
-
import {
|
|
4
|
-
import { NG_VALUE_ACCESSOR } from
|
|
5
|
-
import { filterSelectOptions, groupSelectOptions, selectVirtualRange,
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, Directive, ElementRef, TemplateRef, booleanAttribute, computed, contentChild, forwardRef, inject, input, model, numberAttribute, output, signal, viewChild } from "@angular/core";
|
|
4
|
+
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
5
|
+
import { boundarySelectValue, filterSelectOptions, groupSelectOptions, nextEnabledSelectValue, selectVirtualRange, ɵAerisAppendTo, ɵaerisDisplayInvalid } from "@aeris-ui/core";
|
|
6
|
+
var AerisMultiSelectOptionTemplate = class AerisMultiSelectOptionTemplate {
|
|
7
|
+
template = inject(TemplateRef);
|
|
8
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
9
|
+
minVersion: "12.0.0",
|
|
10
|
+
version: "22.2.2",
|
|
11
|
+
ngImport: i0,
|
|
12
|
+
type: AerisMultiSelectOptionTemplate,
|
|
13
|
+
deps: [],
|
|
14
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
15
|
+
});
|
|
16
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
17
|
+
minVersion: "14.0.0",
|
|
18
|
+
version: "22.2.2",
|
|
19
|
+
type: AerisMultiSelectOptionTemplate,
|
|
20
|
+
isStandalone: true,
|
|
21
|
+
selector: "ng-template[aerisMultiSelectOption]",
|
|
22
|
+
ngImport: i0
|
|
23
|
+
});
|
|
24
|
+
};
|
|
25
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
26
|
+
minVersion: "12.0.0",
|
|
27
|
+
version: "22.2.2",
|
|
28
|
+
ngImport: i0,
|
|
29
|
+
type: AerisMultiSelectOptionTemplate,
|
|
30
|
+
decorators: [{
|
|
31
|
+
type: Directive,
|
|
32
|
+
args: [{ selector: "ng-template[aerisMultiSelectOption]" }]
|
|
33
|
+
}]
|
|
34
|
+
});
|
|
35
|
+
var AerisMultiSelectChipTemplate = class AerisMultiSelectChipTemplate {
|
|
36
|
+
template = inject(TemplateRef);
|
|
37
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
38
|
+
minVersion: "12.0.0",
|
|
39
|
+
version: "22.2.2",
|
|
40
|
+
ngImport: i0,
|
|
41
|
+
type: AerisMultiSelectChipTemplate,
|
|
42
|
+
deps: [],
|
|
43
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
44
|
+
});
|
|
45
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
46
|
+
minVersion: "14.0.0",
|
|
47
|
+
version: "22.2.2",
|
|
48
|
+
type: AerisMultiSelectChipTemplate,
|
|
49
|
+
isStandalone: true,
|
|
50
|
+
selector: "ng-template[aerisMultiSelectChip]",
|
|
51
|
+
ngImport: i0
|
|
52
|
+
});
|
|
53
|
+
};
|
|
54
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
55
|
+
minVersion: "12.0.0",
|
|
56
|
+
version: "22.2.2",
|
|
57
|
+
ngImport: i0,
|
|
58
|
+
type: AerisMultiSelectChipTemplate,
|
|
59
|
+
decorators: [{
|
|
60
|
+
type: Directive,
|
|
61
|
+
args: [{ selector: "ng-template[aerisMultiSelectChip]" }]
|
|
62
|
+
}]
|
|
63
|
+
});
|
|
64
|
+
var AerisMultiSelectHeaderTemplate = class AerisMultiSelectHeaderTemplate {
|
|
65
|
+
template = inject(TemplateRef);
|
|
66
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
67
|
+
minVersion: "12.0.0",
|
|
68
|
+
version: "22.2.2",
|
|
69
|
+
ngImport: i0,
|
|
70
|
+
type: AerisMultiSelectHeaderTemplate,
|
|
71
|
+
deps: [],
|
|
72
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
73
|
+
});
|
|
74
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
75
|
+
minVersion: "14.0.0",
|
|
76
|
+
version: "22.2.2",
|
|
77
|
+
type: AerisMultiSelectHeaderTemplate,
|
|
78
|
+
isStandalone: true,
|
|
79
|
+
selector: "ng-template[aerisMultiSelectHeader]",
|
|
80
|
+
ngImport: i0
|
|
81
|
+
});
|
|
82
|
+
};
|
|
83
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
84
|
+
minVersion: "12.0.0",
|
|
85
|
+
version: "22.2.2",
|
|
86
|
+
ngImport: i0,
|
|
87
|
+
type: AerisMultiSelectHeaderTemplate,
|
|
88
|
+
decorators: [{
|
|
89
|
+
type: Directive,
|
|
90
|
+
args: [{ selector: "ng-template[aerisMultiSelectHeader]" }]
|
|
91
|
+
}]
|
|
92
|
+
});
|
|
93
|
+
var AerisMultiSelectFooterTemplate = class AerisMultiSelectFooterTemplate {
|
|
94
|
+
template = inject(TemplateRef);
|
|
95
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
96
|
+
minVersion: "12.0.0",
|
|
97
|
+
version: "22.2.2",
|
|
98
|
+
ngImport: i0,
|
|
99
|
+
type: AerisMultiSelectFooterTemplate,
|
|
100
|
+
deps: [],
|
|
101
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
102
|
+
});
|
|
103
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
104
|
+
minVersion: "14.0.0",
|
|
105
|
+
version: "22.2.2",
|
|
106
|
+
type: AerisMultiSelectFooterTemplate,
|
|
107
|
+
isStandalone: true,
|
|
108
|
+
selector: "ng-template[aerisMultiSelectFooter]",
|
|
109
|
+
ngImport: i0
|
|
110
|
+
});
|
|
111
|
+
};
|
|
112
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
113
|
+
minVersion: "12.0.0",
|
|
114
|
+
version: "22.2.2",
|
|
115
|
+
ngImport: i0,
|
|
116
|
+
type: AerisMultiSelectFooterTemplate,
|
|
117
|
+
decorators: [{
|
|
118
|
+
type: Directive,
|
|
119
|
+
args: [{ selector: "ng-template[aerisMultiSelectFooter]" }]
|
|
120
|
+
}]
|
|
121
|
+
});
|
|
122
|
+
var AerisMultiSelectEmptyTemplate = class AerisMultiSelectEmptyTemplate {
|
|
123
|
+
template = inject(TemplateRef);
|
|
124
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
125
|
+
minVersion: "12.0.0",
|
|
126
|
+
version: "22.2.2",
|
|
127
|
+
ngImport: i0,
|
|
128
|
+
type: AerisMultiSelectEmptyTemplate,
|
|
129
|
+
deps: [],
|
|
130
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
131
|
+
});
|
|
132
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
133
|
+
minVersion: "14.0.0",
|
|
134
|
+
version: "22.2.2",
|
|
135
|
+
type: AerisMultiSelectEmptyTemplate,
|
|
136
|
+
isStandalone: true,
|
|
137
|
+
selector: "ng-template[aerisMultiSelectEmpty]",
|
|
138
|
+
ngImport: i0
|
|
139
|
+
});
|
|
140
|
+
};
|
|
141
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
142
|
+
minVersion: "12.0.0",
|
|
143
|
+
version: "22.2.2",
|
|
144
|
+
ngImport: i0,
|
|
145
|
+
type: AerisMultiSelectEmptyTemplate,
|
|
146
|
+
decorators: [{
|
|
147
|
+
type: Directive,
|
|
148
|
+
args: [{ selector: "ng-template[aerisMultiSelectEmpty]" }]
|
|
149
|
+
}]
|
|
150
|
+
});
|
|
52
151
|
let multiSelectId = 0;
|
|
53
|
-
class AerisMultiSelectComponent {
|
|
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
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
|
|
403
|
-
|
|
404
|
-
|
|
405
|
-
|
|
406
|
-
|
|
407
|
-
|
|
408
|
-
|
|
409
|
-
|
|
410
|
-
|
|
411
|
-
|
|
412
|
-
|
|
413
|
-
|
|
414
|
-
|
|
415
|
-
|
|
416
|
-
|
|
417
|
-
|
|
418
|
-
|
|
419
|
-
|
|
420
|
-
|
|
421
|
-
|
|
422
|
-
|
|
423
|
-
|
|
424
|
-
|
|
425
|
-
|
|
426
|
-
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
|
|
431
|
-
|
|
432
|
-
|
|
433
|
-
|
|
434
|
-
|
|
435
|
-
|
|
436
|
-
|
|
437
|
-
|
|
438
|
-
|
|
439
|
-
|
|
440
|
-
|
|
441
|
-
|
|
442
|
-
|
|
443
|
-
|
|
444
|
-
|
|
445
|
-
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
|
|
449
|
-
|
|
450
|
-
|
|
451
|
-
|
|
452
|
-
|
|
453
|
-
|
|
454
|
-
|
|
455
|
-
|
|
456
|
-
|
|
457
|
-
|
|
458
|
-
|
|
459
|
-
|
|
460
|
-
|
|
461
|
-
|
|
462
|
-
|
|
463
|
-
|
|
464
|
-
|
|
465
|
-
|
|
466
|
-
|
|
467
|
-
|
|
468
|
-
|
|
469
|
-
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
|
|
152
|
+
var AerisMultiSelectComponent = class AerisMultiSelectComponent {
|
|
153
|
+
panelPointerInteraction = false;
|
|
154
|
+
dismissOverlay = () => {
|
|
155
|
+
this.closePanel(true);
|
|
156
|
+
return true;
|
|
157
|
+
};
|
|
158
|
+
options = input.required(...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
159
|
+
value = model([], ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
160
|
+
inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
|
|
161
|
+
name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
162
|
+
valueSeparator = input(",", ...ngDevMode ? [{ debugName: "valueSeparator" }] : /* istanbul ignore next */ []);
|
|
163
|
+
placeholder = input("Select options", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
164
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
165
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
166
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
167
|
+
listboxAriaLabel = input("Options", ...ngDevMode ? [{ debugName: "listboxAriaLabel" }] : /* istanbul ignore next */ []);
|
|
168
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
169
|
+
appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
170
|
+
display = input("summary", ...ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []);
|
|
171
|
+
selectedItemsLabel = input("{0} items selected", ...ngDevMode ? [{ debugName: "selectedItemsLabel" }] : /* istanbul ignore next */ []);
|
|
172
|
+
maxSelectedLabels = input(3, {
|
|
173
|
+
...ngDevMode ? { debugName: "maxSelectedLabels" } : /* istanbul ignore next */ {},
|
|
174
|
+
transform: numberAttribute
|
|
175
|
+
});
|
|
176
|
+
selectionLimit = input(void 0, {
|
|
177
|
+
...ngDevMode ? { debugName: "selectionLimit" } : /* istanbul ignore next */ {},
|
|
178
|
+
transform: optionalNumber
|
|
179
|
+
});
|
|
180
|
+
selectionLimitMessage = input("Selection limit reached", ...ngDevMode ? [{ debugName: "selectionLimitMessage" }] : /* istanbul ignore next */ []);
|
|
181
|
+
showSelectAll = input(true, {
|
|
182
|
+
...ngDevMode ? { debugName: "showSelectAll" } : /* istanbul ignore next */ {},
|
|
183
|
+
transform: booleanAttribute
|
|
184
|
+
});
|
|
185
|
+
selectAllLabel = input("Select all", ...ngDevMode ? [{ debugName: "selectAllLabel" }] : /* istanbul ignore next */ []);
|
|
186
|
+
clearable = input(false, {
|
|
187
|
+
...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
|
|
188
|
+
transform: booleanAttribute
|
|
189
|
+
});
|
|
190
|
+
clearButtonAriaLabel = input("Clear selections", ...ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []);
|
|
191
|
+
filter = input(false, {
|
|
192
|
+
...ngDevMode ? { debugName: "filter" } : /* istanbul ignore next */ {},
|
|
193
|
+
transform: booleanAttribute
|
|
194
|
+
});
|
|
195
|
+
filterValue = model("", ...ngDevMode ? [{ debugName: "filterValue" }] : /* istanbul ignore next */ []);
|
|
196
|
+
filterMatchMode = input("contains", ...ngDevMode ? [{ debugName: "filterMatchMode" }] : /* istanbul ignore next */ []);
|
|
197
|
+
filterFields = input(["label"], ...ngDevMode ? [{ debugName: "filterFields" }] : /* istanbul ignore next */ []);
|
|
198
|
+
filterLocale = input(...ngDevMode ? [void 0, { debugName: "filterLocale" }] : /* istanbul ignore next */ []);
|
|
199
|
+
filterPlaceholder = input("Search options", ...ngDevMode ? [{ debugName: "filterPlaceholder" }] : /* istanbul ignore next */ []);
|
|
200
|
+
filterAriaLabel = input("Search options", ...ngDevMode ? [{ debugName: "filterAriaLabel" }] : /* istanbul ignore next */ []);
|
|
201
|
+
filterClearAriaLabel = input("Clear search", ...ngDevMode ? [{ debugName: "filterClearAriaLabel" }] : /* istanbul ignore next */ []);
|
|
202
|
+
resetFilterOnClose = input(true, {
|
|
203
|
+
...ngDevMode ? { debugName: "resetFilterOnClose" } : /* istanbul ignore next */ {},
|
|
204
|
+
transform: booleanAttribute
|
|
205
|
+
});
|
|
206
|
+
autofocusFilter = input(true, {
|
|
207
|
+
...ngDevMode ? { debugName: "autofocusFilter" } : /* istanbul ignore next */ {},
|
|
208
|
+
transform: booleanAttribute
|
|
209
|
+
});
|
|
210
|
+
emptyMessage = input("No options available", ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
|
|
211
|
+
emptyFilterMessage = input("No matching options", ...ngDevMode ? [{ debugName: "emptyFilterMessage" }] : /* istanbul ignore next */ []);
|
|
212
|
+
loading = input(false, {
|
|
213
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
214
|
+
transform: booleanAttribute
|
|
215
|
+
});
|
|
216
|
+
loadingMessage = input("Loading options", ...ngDevMode ? [{ debugName: "loadingMessage" }] : /* istanbul ignore next */ []);
|
|
217
|
+
panelMaxHeight = input("18rem", ...ngDevMode ? [{ debugName: "panelMaxHeight" }] : /* istanbul ignore next */ []);
|
|
218
|
+
appendTo = input(...ngDevMode ? [void 0, { debugName: "appendTo" }] : /* istanbul ignore next */ []);
|
|
219
|
+
viewportMargin = input(8, ...ngDevMode ? [{ debugName: "viewportMargin" }] : /* istanbul ignore next */ []);
|
|
220
|
+
virtualScroll = input(false, {
|
|
221
|
+
...ngDevMode ? { debugName: "virtualScroll" } : /* istanbul ignore next */ {},
|
|
222
|
+
transform: booleanAttribute
|
|
223
|
+
});
|
|
224
|
+
virtualItemSize = input(40, {
|
|
225
|
+
...ngDevMode ? { debugName: "virtualItemSize" } : /* istanbul ignore next */ {},
|
|
226
|
+
transform: numberAttribute
|
|
227
|
+
});
|
|
228
|
+
virtualBuffer = input(4, {
|
|
229
|
+
...ngDevMode ? { debugName: "virtualBuffer" } : /* istanbul ignore next */ {},
|
|
230
|
+
transform: numberAttribute
|
|
231
|
+
});
|
|
232
|
+
lazy = input(false, {
|
|
233
|
+
...ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {},
|
|
234
|
+
transform: booleanAttribute
|
|
235
|
+
});
|
|
236
|
+
closeOnSelect = input(false, {
|
|
237
|
+
...ngDevMode ? { debugName: "closeOnSelect" } : /* istanbul ignore next */ {},
|
|
238
|
+
transform: booleanAttribute
|
|
239
|
+
});
|
|
240
|
+
disabled = input(false, {
|
|
241
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
242
|
+
transform: booleanAttribute
|
|
243
|
+
});
|
|
244
|
+
required = input(false, {
|
|
245
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
246
|
+
transform: booleanAttribute
|
|
247
|
+
});
|
|
248
|
+
invalid = input(false, {
|
|
249
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
250
|
+
transform: booleanAttribute
|
|
251
|
+
});
|
|
252
|
+
touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
253
|
+
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
254
|
+
fluid = input(false, {
|
|
255
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
256
|
+
transform: booleanAttribute
|
|
257
|
+
});
|
|
258
|
+
changed = output();
|
|
259
|
+
filterChanged = output();
|
|
260
|
+
lazyLoad = output();
|
|
261
|
+
opened = output();
|
|
262
|
+
closed = output();
|
|
263
|
+
cleared = output();
|
|
264
|
+
focused = output();
|
|
265
|
+
blurred = output();
|
|
266
|
+
touch = output();
|
|
267
|
+
open = signal(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
268
|
+
activeValue = signal(null, ...ngDevMode ? [{ debugName: "activeValue" }] : /* istanbul ignore next */ []);
|
|
269
|
+
virtualStart = signal(0, ...ngDevMode ? [{ debugName: "virtualStart" }] : /* istanbul ignore next */ []);
|
|
270
|
+
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
271
|
+
effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
|
|
272
|
+
selectedOptions = computed(() => {
|
|
273
|
+
const values = new Set(this.value());
|
|
274
|
+
return this.options().filter((option) => values.has(option.value));
|
|
275
|
+
}, ...ngDevMode ? [{ debugName: "selectedOptions" }] : /* istanbul ignore next */ []);
|
|
276
|
+
visibleSelectedOptions = computed(() => this.selectedOptions().slice(0, Math.max(0, this.maxSelectedLabels())), ...ngDevMode ? [{ debugName: "visibleSelectedOptions" }] : /* istanbul ignore next */ []);
|
|
277
|
+
hiddenSelectedCount = computed(() => Math.max(0, this.selectedOptions().length - this.visibleSelectedOptions().length), ...ngDevMode ? [{ debugName: "hiddenSelectedCount" }] : /* istanbul ignore next */ []);
|
|
278
|
+
selectionSummary = computed(() => {
|
|
279
|
+
const selected = this.selectedOptions();
|
|
280
|
+
if (selected.length <= Math.max(1, this.maxSelectedLabels())) return selected.map((option) => option.label).join(", ");
|
|
281
|
+
return this.selectedItemsLabel().replace("{0}", String(selected.length));
|
|
282
|
+
}, ...ngDevMode ? [{ debugName: "selectionSummary" }] : /* istanbul ignore next */ []);
|
|
283
|
+
filteredOptions = computed(() => filterSelectOptions(this.options(), this.filterValue(), this.filterFields(), this.filterMatchMode(), this.filterLocale()), ...ngDevMode ? [{ debugName: "filteredOptions" }] : /* istanbul ignore next */ []);
|
|
284
|
+
groupedOptions = computed(() => groupSelectOptions(this.filteredOptions()), ...ngDevMode ? [{ debugName: "groupedOptions" }] : /* istanbul ignore next */ []);
|
|
285
|
+
virtualRange = computed(() => selectVirtualRange(this.filteredOptions().length, this.virtualStart(), this.panelMaxHeight(), this.virtualItemSize(), this.virtualBuffer()), ...ngDevMode ? [{ debugName: "virtualRange" }] : /* istanbul ignore next */ []);
|
|
286
|
+
renderedOptions = computed(() => {
|
|
287
|
+
if (!this.virtualScroll()) return this.filteredOptions();
|
|
288
|
+
const range = this.virtualRange();
|
|
289
|
+
return this.filteredOptions().slice(range.start, range.end);
|
|
290
|
+
}, ...ngDevMode ? [{ debugName: "renderedOptions" }] : /* istanbul ignore next */ []);
|
|
291
|
+
renderedGroups = computed(() => this.virtualScroll() ? [{
|
|
292
|
+
label: null,
|
|
293
|
+
options: this.renderedOptions()
|
|
294
|
+
}] : this.groupedOptions(), ...ngDevMode ? [{ debugName: "renderedGroups" }] : /* istanbul ignore next */ []);
|
|
295
|
+
virtualTopPadding = computed(() => this.virtualScroll() ? this.virtualRange().topPadding : 0, ...ngDevMode ? [{ debugName: "virtualTopPadding" }] : /* istanbul ignore next */ []);
|
|
296
|
+
virtualBottomPadding = computed(() => this.virtualScroll() ? this.virtualRange().bottomPadding : 0, ...ngDevMode ? [{ debugName: "virtualBottomPadding" }] : /* istanbul ignore next */ []);
|
|
297
|
+
selectableOptions = computed(() => this.options().filter((option) => !option.disabled), ...ngDevMode ? [{ debugName: "selectableOptions" }] : /* istanbul ignore next */ []);
|
|
298
|
+
filteredSelectableOptions = computed(() => this.filteredOptions().filter((option) => !option.disabled), ...ngDevMode ? [{ debugName: "filteredSelectableOptions" }] : /* istanbul ignore next */ []);
|
|
299
|
+
allFilteredSelected = computed(() => {
|
|
300
|
+
const values = new Set(this.value());
|
|
301
|
+
const options = this.filteredSelectableOptions();
|
|
302
|
+
return options.length > 0 && options.every((option) => values.has(option.value));
|
|
303
|
+
}, ...ngDevMode ? [{ debugName: "allFilteredSelected" }] : /* istanbul ignore next */ []);
|
|
304
|
+
someFilteredSelected = computed(() => {
|
|
305
|
+
const values = new Set(this.value());
|
|
306
|
+
const count = this.filteredSelectableOptions().filter((option) => values.has(option.value)).length;
|
|
307
|
+
return count > 0 && count < this.filteredSelectableOptions().length;
|
|
308
|
+
}, ...ngDevMode ? [{ debugName: "someFilteredSelected" }] : /* istanbul ignore next */ []);
|
|
309
|
+
selectionLimitReached = computed(() => {
|
|
310
|
+
const limit = this.selectionLimit();
|
|
311
|
+
return limit !== void 0 && this.value().length >= limit;
|
|
312
|
+
}, ...ngDevMode ? [{ debugName: "selectionLimitReached" }] : /* istanbul ignore next */ []);
|
|
313
|
+
selectAllDisabled = computed(() => !this.allFilteredSelected() && this.filteredSelectableOptions().every((option) => this.optionUnavailable(option)), ...ngDevMode ? [{ debugName: "selectAllDisabled" }] : /* istanbul ignore next */ []);
|
|
314
|
+
showClearButton = computed(() => this.clearable() && this.value().length > 0 && !this.effectiveDisabled(), ...ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []);
|
|
315
|
+
activeOptionId = computed(() => {
|
|
316
|
+
const option = this.options().find((candidate) => candidate.value === this.activeValue());
|
|
317
|
+
return option ? this.optionId(option) : null;
|
|
318
|
+
}, ...ngDevMode ? [{ debugName: "activeOptionId" }] : /* istanbul ignore next */ []);
|
|
319
|
+
panelId = `aeris-multi-select-panel-${++multiSelectId}`;
|
|
320
|
+
listboxId = `${this.panelId}-listbox`;
|
|
321
|
+
resolvedInputId = computed(() => this.inputId() || `${this.panelId}-trigger`, ...ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []);
|
|
322
|
+
host = inject(ElementRef);
|
|
323
|
+
control = viewChild("control", ...ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []);
|
|
324
|
+
trigger = viewChild("trigger", ...ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []);
|
|
325
|
+
optionsPanel = viewChild("optionsPanel", ...ngDevMode ? [{ debugName: "optionsPanel" }] : /* istanbul ignore next */ []);
|
|
326
|
+
panelPortal = viewChild(ɵAerisAppendTo, ...ngDevMode ? [{ debugName: "panelPortal" }] : /* istanbul ignore next */ []);
|
|
327
|
+
filterInput = viewChild("filterInput", ...ngDevMode ? [{ debugName: "filterInput" }] : /* istanbul ignore next */ []);
|
|
328
|
+
optionTemplate = contentChild(AerisMultiSelectOptionTemplate, ...ngDevMode ? [{ debugName: "optionTemplate" }] : /* istanbul ignore next */ []);
|
|
329
|
+
chipTemplate = contentChild(AerisMultiSelectChipTemplate, ...ngDevMode ? [{ debugName: "chipTemplate" }] : /* istanbul ignore next */ []);
|
|
330
|
+
headerTemplate = contentChild(AerisMultiSelectHeaderTemplate, ...ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []);
|
|
331
|
+
footerTemplate = contentChild(AerisMultiSelectFooterTemplate, ...ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []);
|
|
332
|
+
emptyTemplate = contentChild(AerisMultiSelectEmptyTemplate, ...ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []);
|
|
333
|
+
onChange = () => void 0;
|
|
334
|
+
onTouched = () => void 0;
|
|
335
|
+
writeValue(value) {
|
|
336
|
+
this.value.set(Array.isArray(value) ? [...new Set(value.map(String))] : []);
|
|
337
|
+
}
|
|
338
|
+
registerOnChange(callback) {
|
|
339
|
+
this.onChange = callback;
|
|
340
|
+
}
|
|
341
|
+
registerOnTouched(callback) {
|
|
342
|
+
this.onTouched = callback;
|
|
343
|
+
}
|
|
344
|
+
setDisabledState(disabled) {
|
|
345
|
+
this.formDisabled.set(disabled);
|
|
346
|
+
if (disabled) this.closePanel(false);
|
|
347
|
+
}
|
|
348
|
+
focus(options) {
|
|
349
|
+
this.trigger()?.nativeElement.focus(options);
|
|
350
|
+
}
|
|
351
|
+
openPanel() {
|
|
352
|
+
if (this.effectiveDisabled() || this.open()) return;
|
|
353
|
+
if (this.resetFilterOnClose()) this.filterValue.set("");
|
|
354
|
+
this.activeValue.set(this.initialActiveValue());
|
|
355
|
+
this.open.set(true);
|
|
356
|
+
this.opened.emit();
|
|
357
|
+
this.emitLazyRange();
|
|
358
|
+
if (this.filter() && this.autofocusFilter()) queueMicrotask(() => this.filterInput()?.nativeElement.focus());
|
|
359
|
+
}
|
|
360
|
+
closePanel(restoreFocus = false) {
|
|
361
|
+
this.panelPointerInteraction = false;
|
|
362
|
+
if (!this.open()) return;
|
|
363
|
+
this.panelPortal()?.restore();
|
|
364
|
+
this.open.set(false);
|
|
365
|
+
if (this.resetFilterOnClose()) this.filterValue.set("");
|
|
366
|
+
this.closed.emit();
|
|
367
|
+
if (restoreFocus) queueMicrotask(() => this.focus());
|
|
368
|
+
}
|
|
369
|
+
toggle() {
|
|
370
|
+
this.open() ? this.closePanel(false) : this.openPanel();
|
|
371
|
+
}
|
|
372
|
+
clear() {
|
|
373
|
+
if (!this.value().length || this.effectiveDisabled()) return;
|
|
374
|
+
this.setValue([]);
|
|
375
|
+
this.cleared.emit();
|
|
376
|
+
queueMicrotask(() => this.focus());
|
|
377
|
+
}
|
|
378
|
+
reset() {
|
|
379
|
+
if (this.effectiveDisabled()) return;
|
|
380
|
+
this.setValue([]);
|
|
381
|
+
this.filterValue.set("");
|
|
382
|
+
this.closePanel(false);
|
|
383
|
+
}
|
|
384
|
+
selectAll() {
|
|
385
|
+
if (this.selectAllDisabled()) return;
|
|
386
|
+
const next = new Set(this.value());
|
|
387
|
+
for (const option of this.filteredSelectableOptions()) if (!this.optionUnavailable(option)) next.add(option.value);
|
|
388
|
+
this.setValue([...next]);
|
|
389
|
+
}
|
|
390
|
+
isSelected(option) {
|
|
391
|
+
return this.value().includes(option.value);
|
|
392
|
+
}
|
|
393
|
+
optionUnavailable(option) {
|
|
394
|
+
return Boolean(option.disabled || !this.isSelected(option) && this.selectionLimitReached());
|
|
395
|
+
}
|
|
396
|
+
activate(option) {
|
|
397
|
+
if (!this.optionUnavailable(option)) this.activeValue.set(option.value);
|
|
398
|
+
}
|
|
399
|
+
toggleOption(option, event) {
|
|
400
|
+
if (this.optionUnavailable(option)) return;
|
|
401
|
+
const selected = this.isSelected(option);
|
|
402
|
+
const next = selected ? this.value().filter((value) => value !== option.value) : [...this.value(), option.value];
|
|
403
|
+
this.setValue(next);
|
|
404
|
+
this.changed.emit({
|
|
405
|
+
originalEvent: event,
|
|
406
|
+
value: next,
|
|
407
|
+
option,
|
|
408
|
+
selected: !selected
|
|
409
|
+
});
|
|
410
|
+
if (this.closeOnSelect()) this.closePanel(true);
|
|
411
|
+
}
|
|
412
|
+
preservePointerFocus(event) {
|
|
413
|
+
if (event.pointerType === "mouse") event.preventDefault();
|
|
414
|
+
}
|
|
415
|
+
handlePanelPointerDown(event) {
|
|
416
|
+
this.panelPointerInteraction = event.pointerType !== "mouse";
|
|
417
|
+
}
|
|
418
|
+
endPanelPointerInteraction() {
|
|
419
|
+
this.panelPointerInteraction = false;
|
|
420
|
+
}
|
|
421
|
+
toggleSelectAll(event) {
|
|
422
|
+
if (this.allFilteredSelected()) {
|
|
423
|
+
const filtered = new Set(this.filteredSelectableOptions().map((option) => option.value));
|
|
424
|
+
const next = this.value().filter((value) => !filtered.has(value));
|
|
425
|
+
this.setValue(next);
|
|
426
|
+
this.changed.emit({
|
|
427
|
+
originalEvent: event,
|
|
428
|
+
value: next,
|
|
429
|
+
option: null,
|
|
430
|
+
selected: false
|
|
431
|
+
});
|
|
432
|
+
} else {
|
|
433
|
+
const before = this.value();
|
|
434
|
+
this.selectAll();
|
|
435
|
+
this.changed.emit({
|
|
436
|
+
originalEvent: event,
|
|
437
|
+
value: this.value(),
|
|
438
|
+
option: null,
|
|
439
|
+
selected: this.value().length > before.length
|
|
440
|
+
});
|
|
441
|
+
}
|
|
442
|
+
}
|
|
443
|
+
removeChip(option, event) {
|
|
444
|
+
event.preventDefault();
|
|
445
|
+
event.stopPropagation();
|
|
446
|
+
this.toggleOption(option, event);
|
|
447
|
+
this.focus();
|
|
448
|
+
}
|
|
449
|
+
removeCallback(option) {
|
|
450
|
+
return () => {
|
|
451
|
+
if (this.isSelected(option)) {
|
|
452
|
+
const next = this.value().filter((value) => value !== option.value);
|
|
453
|
+
this.setValue(next);
|
|
454
|
+
}
|
|
455
|
+
};
|
|
456
|
+
}
|
|
457
|
+
handleClearClick(event) {
|
|
458
|
+
event.preventDefault();
|
|
459
|
+
event.stopPropagation();
|
|
460
|
+
this.clear();
|
|
461
|
+
}
|
|
462
|
+
handleTriggerKeydown(event) {
|
|
463
|
+
if ((event.key === "Backspace" || event.key === "Delete") && this.display() === "chips" && this.selectedOptions().length > 0) {
|
|
464
|
+
event.preventDefault();
|
|
465
|
+
const option = this.selectedOptions().at(-1);
|
|
466
|
+
if (option) this.toggleOption(option, event);
|
|
467
|
+
return;
|
|
468
|
+
}
|
|
469
|
+
if (event.key === "Escape") {
|
|
470
|
+
if (this.open()) {
|
|
471
|
+
event.preventDefault();
|
|
472
|
+
this.closePanel(false);
|
|
473
|
+
}
|
|
474
|
+
return;
|
|
475
|
+
}
|
|
476
|
+
if (event.key === "Tab") {
|
|
477
|
+
this.closePanel(false);
|
|
478
|
+
return;
|
|
479
|
+
}
|
|
480
|
+
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
481
|
+
event.preventDefault();
|
|
482
|
+
if (!this.open()) this.openPanel();
|
|
483
|
+
else this.moveActive(event.key === "ArrowDown" ? 1 : -1);
|
|
484
|
+
return;
|
|
485
|
+
}
|
|
486
|
+
if (event.key === "Home" || event.key === "End") {
|
|
487
|
+
if (!this.open()) return;
|
|
488
|
+
event.preventDefault();
|
|
489
|
+
this.activeValue.set(boundarySelectValue(this.availableActiveOptions(), event.key === "Home" ? "start" : "end"));
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
492
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
493
|
+
event.preventDefault();
|
|
494
|
+
if (!this.open()) this.openPanel();
|
|
495
|
+
else this.toggleActive(event);
|
|
496
|
+
}
|
|
497
|
+
}
|
|
498
|
+
handleFilterKeydown(event) {
|
|
499
|
+
if (event.key === "Escape") {
|
|
500
|
+
event.preventDefault();
|
|
501
|
+
this.closePanel(true);
|
|
502
|
+
} else if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
503
|
+
event.preventDefault();
|
|
504
|
+
this.moveActive(event.key === "ArrowDown" ? 1 : -1);
|
|
505
|
+
} else if (event.key === "Home" || event.key === "End") {
|
|
506
|
+
event.preventDefault();
|
|
507
|
+
this.activeValue.set(boundarySelectValue(this.availableActiveOptions(), event.key === "Home" ? "start" : "end"));
|
|
508
|
+
} else if (event.key === "Enter" || event.key === " ") {
|
|
509
|
+
event.preventDefault();
|
|
510
|
+
this.toggleActive(event);
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
handleFilterInput(event) {
|
|
514
|
+
const value = event.target.value;
|
|
515
|
+
this.filterValue.set(value);
|
|
516
|
+
this.virtualStart.set(0);
|
|
517
|
+
this.activeValue.set(this.initialActiveValue());
|
|
518
|
+
this.filterChanged.emit({
|
|
519
|
+
originalEvent: event,
|
|
520
|
+
query: value
|
|
521
|
+
});
|
|
522
|
+
}
|
|
523
|
+
clearFilter() {
|
|
524
|
+
this.filterValue.set("");
|
|
525
|
+
this.virtualStart.set(0);
|
|
526
|
+
this.activeValue.set(this.initialActiveValue());
|
|
527
|
+
queueMicrotask(() => this.filterInput()?.nativeElement.focus());
|
|
528
|
+
}
|
|
529
|
+
handleListScroll(event) {
|
|
530
|
+
if (!this.virtualScroll()) return;
|
|
531
|
+
const list = event.currentTarget;
|
|
532
|
+
const start = Math.max(0, Math.floor(list.scrollTop / Math.max(1, this.virtualItemSize())) - this.virtualBuffer());
|
|
533
|
+
if (start === this.virtualStart()) return;
|
|
534
|
+
this.virtualStart.set(start);
|
|
535
|
+
this.emitLazyRange();
|
|
536
|
+
}
|
|
537
|
+
handleFocusOut(event) {
|
|
538
|
+
const next = event.relatedTarget;
|
|
539
|
+
if (next instanceof Node && (this.host.nativeElement.contains(next) || this.optionsPanel()?.nativeElement.contains(next))) return;
|
|
540
|
+
const panel = this.optionsPanel()?.nativeElement;
|
|
541
|
+
if (this.panelPointerInteraction && next instanceof Node && panel && next.contains(panel)) return;
|
|
542
|
+
if (this.open() && next === null) return;
|
|
543
|
+
this.closePanel(false);
|
|
544
|
+
this.onTouched();
|
|
545
|
+
this.touch.emit();
|
|
546
|
+
this.blurred.emit(event);
|
|
547
|
+
}
|
|
548
|
+
optionId(option) {
|
|
549
|
+
return `${this.listboxId}-option-${this.options().indexOf(option)}`;
|
|
550
|
+
}
|
|
551
|
+
setValue(value) {
|
|
552
|
+
const unique = [...new Set(value)];
|
|
553
|
+
this.value.set(unique);
|
|
554
|
+
this.onChange(unique);
|
|
555
|
+
}
|
|
556
|
+
availableActiveOptions() {
|
|
557
|
+
return this.filteredOptions().map((option) => ({
|
|
558
|
+
...option,
|
|
559
|
+
disabled: this.optionUnavailable(option)
|
|
560
|
+
}));
|
|
561
|
+
}
|
|
562
|
+
initialActiveValue() {
|
|
563
|
+
return this.filteredOptions().find((option) => this.isSelected(option) && !this.optionUnavailable(option))?.value ?? boundarySelectValue(this.availableActiveOptions(), "start");
|
|
564
|
+
}
|
|
565
|
+
moveActive(direction) {
|
|
566
|
+
this.activeValue.set(nextEnabledSelectValue(this.availableActiveOptions(), this.activeValue(), direction));
|
|
567
|
+
}
|
|
568
|
+
toggleActive(event) {
|
|
569
|
+
const option = this.options().find((candidate) => candidate.value === this.activeValue());
|
|
570
|
+
if (option) this.toggleOption(option, event);
|
|
571
|
+
}
|
|
572
|
+
emitLazyRange() {
|
|
573
|
+
if (!this.virtualScroll() || !this.lazy()) return;
|
|
574
|
+
this.lazyLoad.emit({
|
|
575
|
+
first: this.virtualRange().start,
|
|
576
|
+
last: this.virtualRange().end,
|
|
577
|
+
query: this.filterValue()
|
|
578
|
+
});
|
|
579
|
+
}
|
|
580
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
581
|
+
minVersion: "12.0.0",
|
|
582
|
+
version: "22.2.2",
|
|
583
|
+
ngImport: i0,
|
|
584
|
+
type: AerisMultiSelectComponent,
|
|
585
|
+
deps: [],
|
|
586
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
587
|
+
});
|
|
588
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
589
|
+
minVersion: "17.0.0",
|
|
590
|
+
version: "22.2.2",
|
|
591
|
+
type: AerisMultiSelectComponent,
|
|
592
|
+
isStandalone: true,
|
|
593
|
+
selector: "aeris-multi-select",
|
|
594
|
+
inputs: {
|
|
595
|
+
options: {
|
|
596
|
+
classPropertyName: "options",
|
|
597
|
+
publicName: "options",
|
|
598
|
+
isSignal: true,
|
|
599
|
+
isRequired: true,
|
|
600
|
+
transformFunction: null
|
|
601
|
+
},
|
|
602
|
+
value: {
|
|
603
|
+
classPropertyName: "value",
|
|
604
|
+
publicName: "value",
|
|
605
|
+
isSignal: true,
|
|
606
|
+
isRequired: false,
|
|
607
|
+
transformFunction: null
|
|
608
|
+
},
|
|
609
|
+
inputId: {
|
|
610
|
+
classPropertyName: "inputId",
|
|
611
|
+
publicName: "inputId",
|
|
612
|
+
isSignal: true,
|
|
613
|
+
isRequired: false,
|
|
614
|
+
transformFunction: null
|
|
615
|
+
},
|
|
616
|
+
name: {
|
|
617
|
+
classPropertyName: "name",
|
|
618
|
+
publicName: "name",
|
|
619
|
+
isSignal: true,
|
|
620
|
+
isRequired: false,
|
|
621
|
+
transformFunction: null
|
|
622
|
+
},
|
|
623
|
+
valueSeparator: {
|
|
624
|
+
classPropertyName: "valueSeparator",
|
|
625
|
+
publicName: "valueSeparator",
|
|
626
|
+
isSignal: true,
|
|
627
|
+
isRequired: false,
|
|
628
|
+
transformFunction: null
|
|
629
|
+
},
|
|
630
|
+
placeholder: {
|
|
631
|
+
classPropertyName: "placeholder",
|
|
632
|
+
publicName: "placeholder",
|
|
633
|
+
isSignal: true,
|
|
634
|
+
isRequired: false,
|
|
635
|
+
transformFunction: null
|
|
636
|
+
},
|
|
637
|
+
ariaLabel: {
|
|
638
|
+
classPropertyName: "ariaLabel",
|
|
639
|
+
publicName: "ariaLabel",
|
|
640
|
+
isSignal: true,
|
|
641
|
+
isRequired: false,
|
|
642
|
+
transformFunction: null
|
|
643
|
+
},
|
|
644
|
+
ariaLabelledBy: {
|
|
645
|
+
classPropertyName: "ariaLabelledBy",
|
|
646
|
+
publicName: "ariaLabelledBy",
|
|
647
|
+
isSignal: true,
|
|
648
|
+
isRequired: false,
|
|
649
|
+
transformFunction: null
|
|
650
|
+
},
|
|
651
|
+
ariaDescribedBy: {
|
|
652
|
+
classPropertyName: "ariaDescribedBy",
|
|
653
|
+
publicName: "ariaDescribedBy",
|
|
654
|
+
isSignal: true,
|
|
655
|
+
isRequired: false,
|
|
656
|
+
transformFunction: null
|
|
657
|
+
},
|
|
658
|
+
listboxAriaLabel: {
|
|
659
|
+
classPropertyName: "listboxAriaLabel",
|
|
660
|
+
publicName: "listboxAriaLabel",
|
|
661
|
+
isSignal: true,
|
|
662
|
+
isRequired: false,
|
|
663
|
+
transformFunction: null
|
|
664
|
+
},
|
|
665
|
+
size: {
|
|
666
|
+
classPropertyName: "size",
|
|
667
|
+
publicName: "size",
|
|
668
|
+
isSignal: true,
|
|
669
|
+
isRequired: false,
|
|
670
|
+
transformFunction: null
|
|
671
|
+
},
|
|
672
|
+
appearance: {
|
|
673
|
+
classPropertyName: "appearance",
|
|
674
|
+
publicName: "appearance",
|
|
675
|
+
isSignal: true,
|
|
676
|
+
isRequired: false,
|
|
677
|
+
transformFunction: null
|
|
678
|
+
},
|
|
679
|
+
display: {
|
|
680
|
+
classPropertyName: "display",
|
|
681
|
+
publicName: "display",
|
|
682
|
+
isSignal: true,
|
|
683
|
+
isRequired: false,
|
|
684
|
+
transformFunction: null
|
|
685
|
+
},
|
|
686
|
+
selectedItemsLabel: {
|
|
687
|
+
classPropertyName: "selectedItemsLabel",
|
|
688
|
+
publicName: "selectedItemsLabel",
|
|
689
|
+
isSignal: true,
|
|
690
|
+
isRequired: false,
|
|
691
|
+
transformFunction: null
|
|
692
|
+
},
|
|
693
|
+
maxSelectedLabels: {
|
|
694
|
+
classPropertyName: "maxSelectedLabels",
|
|
695
|
+
publicName: "maxSelectedLabels",
|
|
696
|
+
isSignal: true,
|
|
697
|
+
isRequired: false,
|
|
698
|
+
transformFunction: null
|
|
699
|
+
},
|
|
700
|
+
selectionLimit: {
|
|
701
|
+
classPropertyName: "selectionLimit",
|
|
702
|
+
publicName: "selectionLimit",
|
|
703
|
+
isSignal: true,
|
|
704
|
+
isRequired: false,
|
|
705
|
+
transformFunction: null
|
|
706
|
+
},
|
|
707
|
+
selectionLimitMessage: {
|
|
708
|
+
classPropertyName: "selectionLimitMessage",
|
|
709
|
+
publicName: "selectionLimitMessage",
|
|
710
|
+
isSignal: true,
|
|
711
|
+
isRequired: false,
|
|
712
|
+
transformFunction: null
|
|
713
|
+
},
|
|
714
|
+
showSelectAll: {
|
|
715
|
+
classPropertyName: "showSelectAll",
|
|
716
|
+
publicName: "showSelectAll",
|
|
717
|
+
isSignal: true,
|
|
718
|
+
isRequired: false,
|
|
719
|
+
transformFunction: null
|
|
720
|
+
},
|
|
721
|
+
selectAllLabel: {
|
|
722
|
+
classPropertyName: "selectAllLabel",
|
|
723
|
+
publicName: "selectAllLabel",
|
|
724
|
+
isSignal: true,
|
|
725
|
+
isRequired: false,
|
|
726
|
+
transformFunction: null
|
|
727
|
+
},
|
|
728
|
+
clearable: {
|
|
729
|
+
classPropertyName: "clearable",
|
|
730
|
+
publicName: "clearable",
|
|
731
|
+
isSignal: true,
|
|
732
|
+
isRequired: false,
|
|
733
|
+
transformFunction: null
|
|
734
|
+
},
|
|
735
|
+
clearButtonAriaLabel: {
|
|
736
|
+
classPropertyName: "clearButtonAriaLabel",
|
|
737
|
+
publicName: "clearButtonAriaLabel",
|
|
738
|
+
isSignal: true,
|
|
739
|
+
isRequired: false,
|
|
740
|
+
transformFunction: null
|
|
741
|
+
},
|
|
742
|
+
filter: {
|
|
743
|
+
classPropertyName: "filter",
|
|
744
|
+
publicName: "filter",
|
|
745
|
+
isSignal: true,
|
|
746
|
+
isRequired: false,
|
|
747
|
+
transformFunction: null
|
|
748
|
+
},
|
|
749
|
+
filterValue: {
|
|
750
|
+
classPropertyName: "filterValue",
|
|
751
|
+
publicName: "filterValue",
|
|
752
|
+
isSignal: true,
|
|
753
|
+
isRequired: false,
|
|
754
|
+
transformFunction: null
|
|
755
|
+
},
|
|
756
|
+
filterMatchMode: {
|
|
757
|
+
classPropertyName: "filterMatchMode",
|
|
758
|
+
publicName: "filterMatchMode",
|
|
759
|
+
isSignal: true,
|
|
760
|
+
isRequired: false,
|
|
761
|
+
transformFunction: null
|
|
762
|
+
},
|
|
763
|
+
filterFields: {
|
|
764
|
+
classPropertyName: "filterFields",
|
|
765
|
+
publicName: "filterFields",
|
|
766
|
+
isSignal: true,
|
|
767
|
+
isRequired: false,
|
|
768
|
+
transformFunction: null
|
|
769
|
+
},
|
|
770
|
+
filterLocale: {
|
|
771
|
+
classPropertyName: "filterLocale",
|
|
772
|
+
publicName: "filterLocale",
|
|
773
|
+
isSignal: true,
|
|
774
|
+
isRequired: false,
|
|
775
|
+
transformFunction: null
|
|
776
|
+
},
|
|
777
|
+
filterPlaceholder: {
|
|
778
|
+
classPropertyName: "filterPlaceholder",
|
|
779
|
+
publicName: "filterPlaceholder",
|
|
780
|
+
isSignal: true,
|
|
781
|
+
isRequired: false,
|
|
782
|
+
transformFunction: null
|
|
783
|
+
},
|
|
784
|
+
filterAriaLabel: {
|
|
785
|
+
classPropertyName: "filterAriaLabel",
|
|
786
|
+
publicName: "filterAriaLabel",
|
|
787
|
+
isSignal: true,
|
|
788
|
+
isRequired: false,
|
|
789
|
+
transformFunction: null
|
|
790
|
+
},
|
|
791
|
+
filterClearAriaLabel: {
|
|
792
|
+
classPropertyName: "filterClearAriaLabel",
|
|
793
|
+
publicName: "filterClearAriaLabel",
|
|
794
|
+
isSignal: true,
|
|
795
|
+
isRequired: false,
|
|
796
|
+
transformFunction: null
|
|
797
|
+
},
|
|
798
|
+
resetFilterOnClose: {
|
|
799
|
+
classPropertyName: "resetFilterOnClose",
|
|
800
|
+
publicName: "resetFilterOnClose",
|
|
801
|
+
isSignal: true,
|
|
802
|
+
isRequired: false,
|
|
803
|
+
transformFunction: null
|
|
804
|
+
},
|
|
805
|
+
autofocusFilter: {
|
|
806
|
+
classPropertyName: "autofocusFilter",
|
|
807
|
+
publicName: "autofocusFilter",
|
|
808
|
+
isSignal: true,
|
|
809
|
+
isRequired: false,
|
|
810
|
+
transformFunction: null
|
|
811
|
+
},
|
|
812
|
+
emptyMessage: {
|
|
813
|
+
classPropertyName: "emptyMessage",
|
|
814
|
+
publicName: "emptyMessage",
|
|
815
|
+
isSignal: true,
|
|
816
|
+
isRequired: false,
|
|
817
|
+
transformFunction: null
|
|
818
|
+
},
|
|
819
|
+
emptyFilterMessage: {
|
|
820
|
+
classPropertyName: "emptyFilterMessage",
|
|
821
|
+
publicName: "emptyFilterMessage",
|
|
822
|
+
isSignal: true,
|
|
823
|
+
isRequired: false,
|
|
824
|
+
transformFunction: null
|
|
825
|
+
},
|
|
826
|
+
loading: {
|
|
827
|
+
classPropertyName: "loading",
|
|
828
|
+
publicName: "loading",
|
|
829
|
+
isSignal: true,
|
|
830
|
+
isRequired: false,
|
|
831
|
+
transformFunction: null
|
|
832
|
+
},
|
|
833
|
+
loadingMessage: {
|
|
834
|
+
classPropertyName: "loadingMessage",
|
|
835
|
+
publicName: "loadingMessage",
|
|
836
|
+
isSignal: true,
|
|
837
|
+
isRequired: false,
|
|
838
|
+
transformFunction: null
|
|
839
|
+
},
|
|
840
|
+
panelMaxHeight: {
|
|
841
|
+
classPropertyName: "panelMaxHeight",
|
|
842
|
+
publicName: "panelMaxHeight",
|
|
843
|
+
isSignal: true,
|
|
844
|
+
isRequired: false,
|
|
845
|
+
transformFunction: null
|
|
846
|
+
},
|
|
847
|
+
appendTo: {
|
|
848
|
+
classPropertyName: "appendTo",
|
|
849
|
+
publicName: "appendTo",
|
|
850
|
+
isSignal: true,
|
|
851
|
+
isRequired: false,
|
|
852
|
+
transformFunction: null
|
|
853
|
+
},
|
|
854
|
+
viewportMargin: {
|
|
855
|
+
classPropertyName: "viewportMargin",
|
|
856
|
+
publicName: "viewportMargin",
|
|
857
|
+
isSignal: true,
|
|
858
|
+
isRequired: false,
|
|
859
|
+
transformFunction: null
|
|
860
|
+
},
|
|
861
|
+
virtualScroll: {
|
|
862
|
+
classPropertyName: "virtualScroll",
|
|
863
|
+
publicName: "virtualScroll",
|
|
864
|
+
isSignal: true,
|
|
865
|
+
isRequired: false,
|
|
866
|
+
transformFunction: null
|
|
867
|
+
},
|
|
868
|
+
virtualItemSize: {
|
|
869
|
+
classPropertyName: "virtualItemSize",
|
|
870
|
+
publicName: "virtualItemSize",
|
|
871
|
+
isSignal: true,
|
|
872
|
+
isRequired: false,
|
|
873
|
+
transformFunction: null
|
|
874
|
+
},
|
|
875
|
+
virtualBuffer: {
|
|
876
|
+
classPropertyName: "virtualBuffer",
|
|
877
|
+
publicName: "virtualBuffer",
|
|
878
|
+
isSignal: true,
|
|
879
|
+
isRequired: false,
|
|
880
|
+
transformFunction: null
|
|
881
|
+
},
|
|
882
|
+
lazy: {
|
|
883
|
+
classPropertyName: "lazy",
|
|
884
|
+
publicName: "lazy",
|
|
885
|
+
isSignal: true,
|
|
886
|
+
isRequired: false,
|
|
887
|
+
transformFunction: null
|
|
888
|
+
},
|
|
889
|
+
closeOnSelect: {
|
|
890
|
+
classPropertyName: "closeOnSelect",
|
|
891
|
+
publicName: "closeOnSelect",
|
|
892
|
+
isSignal: true,
|
|
893
|
+
isRequired: false,
|
|
894
|
+
transformFunction: null
|
|
895
|
+
},
|
|
896
|
+
disabled: {
|
|
897
|
+
classPropertyName: "disabled",
|
|
898
|
+
publicName: "disabled",
|
|
899
|
+
isSignal: true,
|
|
900
|
+
isRequired: false,
|
|
901
|
+
transformFunction: null
|
|
902
|
+
},
|
|
903
|
+
required: {
|
|
904
|
+
classPropertyName: "required",
|
|
905
|
+
publicName: "required",
|
|
906
|
+
isSignal: true,
|
|
907
|
+
isRequired: false,
|
|
908
|
+
transformFunction: null
|
|
909
|
+
},
|
|
910
|
+
invalid: {
|
|
911
|
+
classPropertyName: "invalid",
|
|
912
|
+
publicName: "invalid",
|
|
913
|
+
isSignal: true,
|
|
914
|
+
isRequired: false,
|
|
915
|
+
transformFunction: null
|
|
916
|
+
},
|
|
917
|
+
touched: {
|
|
918
|
+
classPropertyName: "touched",
|
|
919
|
+
publicName: "touched",
|
|
920
|
+
isSignal: true,
|
|
921
|
+
isRequired: false,
|
|
922
|
+
transformFunction: null
|
|
923
|
+
},
|
|
924
|
+
fluid: {
|
|
925
|
+
classPropertyName: "fluid",
|
|
926
|
+
publicName: "fluid",
|
|
927
|
+
isSignal: true,
|
|
928
|
+
isRequired: false,
|
|
929
|
+
transformFunction: null
|
|
930
|
+
}
|
|
931
|
+
},
|
|
932
|
+
outputs: {
|
|
933
|
+
value: "valueChange",
|
|
934
|
+
filterValue: "filterValueChange",
|
|
935
|
+
changed: "changed",
|
|
936
|
+
filterChanged: "filterChanged",
|
|
937
|
+
lazyLoad: "lazyLoad",
|
|
938
|
+
opened: "opened",
|
|
939
|
+
closed: "closed",
|
|
940
|
+
cleared: "cleared",
|
|
941
|
+
focused: "focused",
|
|
942
|
+
blurred: "blurred",
|
|
943
|
+
touch: "touch"
|
|
944
|
+
},
|
|
945
|
+
host: { properties: {
|
|
946
|
+
"attr.data-open": "open() || null",
|
|
947
|
+
"attr.data-disabled": "effectiveDisabled() || null",
|
|
948
|
+
"attr.data-fluid": "fluid() || null"
|
|
949
|
+
} },
|
|
950
|
+
providers: [{
|
|
951
|
+
provide: NG_VALUE_ACCESSOR,
|
|
952
|
+
useExisting: forwardRef(() => AerisMultiSelectComponent),
|
|
953
|
+
multi: true
|
|
954
|
+
}],
|
|
955
|
+
queries: [
|
|
956
|
+
{
|
|
957
|
+
propertyName: "optionTemplate",
|
|
958
|
+
first: true,
|
|
959
|
+
predicate: AerisMultiSelectOptionTemplate,
|
|
960
|
+
descendants: true,
|
|
961
|
+
isSignal: true
|
|
962
|
+
},
|
|
963
|
+
{
|
|
964
|
+
propertyName: "chipTemplate",
|
|
965
|
+
first: true,
|
|
966
|
+
predicate: AerisMultiSelectChipTemplate,
|
|
967
|
+
descendants: true,
|
|
968
|
+
isSignal: true
|
|
969
|
+
},
|
|
970
|
+
{
|
|
971
|
+
propertyName: "headerTemplate",
|
|
972
|
+
first: true,
|
|
973
|
+
predicate: AerisMultiSelectHeaderTemplate,
|
|
974
|
+
descendants: true,
|
|
975
|
+
isSignal: true
|
|
976
|
+
},
|
|
977
|
+
{
|
|
978
|
+
propertyName: "footerTemplate",
|
|
979
|
+
first: true,
|
|
980
|
+
predicate: AerisMultiSelectFooterTemplate,
|
|
981
|
+
descendants: true,
|
|
982
|
+
isSignal: true
|
|
983
|
+
},
|
|
984
|
+
{
|
|
985
|
+
propertyName: "emptyTemplate",
|
|
986
|
+
first: true,
|
|
987
|
+
predicate: AerisMultiSelectEmptyTemplate,
|
|
988
|
+
descendants: true,
|
|
989
|
+
isSignal: true
|
|
990
|
+
}
|
|
991
|
+
],
|
|
992
|
+
viewQueries: [
|
|
993
|
+
{
|
|
994
|
+
propertyName: "control",
|
|
995
|
+
first: true,
|
|
996
|
+
predicate: ["control"],
|
|
997
|
+
descendants: true,
|
|
998
|
+
isSignal: true
|
|
999
|
+
},
|
|
1000
|
+
{
|
|
1001
|
+
propertyName: "trigger",
|
|
1002
|
+
first: true,
|
|
1003
|
+
predicate: ["trigger"],
|
|
1004
|
+
descendants: true,
|
|
1005
|
+
isSignal: true
|
|
1006
|
+
},
|
|
1007
|
+
{
|
|
1008
|
+
propertyName: "optionsPanel",
|
|
1009
|
+
first: true,
|
|
1010
|
+
predicate: ["optionsPanel"],
|
|
1011
|
+
descendants: true,
|
|
1012
|
+
isSignal: true
|
|
1013
|
+
},
|
|
1014
|
+
{
|
|
1015
|
+
propertyName: "panelPortal",
|
|
1016
|
+
first: true,
|
|
1017
|
+
predicate: ɵAerisAppendTo,
|
|
1018
|
+
descendants: true,
|
|
1019
|
+
isSignal: true
|
|
1020
|
+
},
|
|
1021
|
+
{
|
|
1022
|
+
propertyName: "filterInput",
|
|
1023
|
+
first: true,
|
|
1024
|
+
predicate: ["filterInput"],
|
|
1025
|
+
descendants: true,
|
|
1026
|
+
isSignal: true
|
|
1027
|
+
}
|
|
1028
|
+
],
|
|
1029
|
+
ngImport: i0,
|
|
1030
|
+
template: `
|
|
502
1031
|
<div
|
|
503
1032
|
class="aeris-multi-select"
|
|
504
1033
|
[attr.data-size]="size()"
|
|
505
1034
|
[attr.data-appearance]="appearance()"
|
|
506
1035
|
[attr.data-open]="open() || null"
|
|
507
|
-
[attr.data-invalid]="
|
|
1036
|
+
[attr.data-invalid]="displayInvalid() || null"
|
|
508
1037
|
[attr.data-disabled]="effectiveDisabled() || null"
|
|
509
1038
|
[attr.data-fluid]="fluid() || null"
|
|
510
1039
|
(focusout)="handleFocusOut($event)"
|
|
@@ -513,7 +1042,7 @@ class AerisMultiSelectComponent {
|
|
|
513
1042
|
<input type="hidden" [name]="name()" [value]="value().join(valueSeparator())" />
|
|
514
1043
|
}
|
|
515
1044
|
|
|
516
|
-
<div class="aeris-multi-select__control">
|
|
1045
|
+
<div #control class="aeris-multi-select__control">
|
|
517
1046
|
<div
|
|
518
1047
|
#trigger
|
|
519
1048
|
class="aeris-multi-select__trigger"
|
|
@@ -525,9 +1054,9 @@ class AerisMultiSelectComponent {
|
|
|
525
1054
|
[attr.aria-controls]="panelId"
|
|
526
1055
|
[attr.aria-activedescendant]="open() ? activeOptionId() : null"
|
|
527
1056
|
[attr.aria-label]="ariaLabel() || null"
|
|
528
|
-
[attr.aria-labelledby]="
|
|
529
|
-
[attr.aria-describedby]="
|
|
530
|
-
[attr.aria-invalid]="
|
|
1057
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
1058
|
+
[attr.aria-describedby]="ariaDescribedBy() || null"
|
|
1059
|
+
[attr.aria-invalid]="displayInvalid() || null"
|
|
531
1060
|
[attr.aria-required]="required() || null"
|
|
532
1061
|
[attr.aria-disabled]="effectiveDisabled() || null"
|
|
533
1062
|
(click)="toggle()"
|
|
@@ -588,16 +1117,18 @@ class AerisMultiSelectComponent {
|
|
|
588
1117
|
</div>
|
|
589
1118
|
|
|
590
1119
|
@if (open()) {
|
|
591
|
-
<button
|
|
592
|
-
class="aeris-multi-select__dismiss"
|
|
593
|
-
type="button"
|
|
594
|
-
tabindex="-1"
|
|
595
|
-
aria-label="Close options"
|
|
596
|
-
(click)="closePanel(true)"
|
|
597
|
-
></button>
|
|
598
|
-
|
|
599
1120
|
<div
|
|
1121
|
+
#optionsPanel
|
|
600
1122
|
class="aeris-multi-select__panel"
|
|
1123
|
+
(pointerdown)="handlePanelPointerDown($event)"
|
|
1124
|
+
(pointercancel)="endPanelPointerInteraction()"
|
|
1125
|
+
(click)="endPanelPointerInteraction()"
|
|
1126
|
+
[aerisInternalAppendTo]="appendTo()"
|
|
1127
|
+
[aerisInternalAppendToDismiss]="dismissOverlay"
|
|
1128
|
+
[aerisInternalAppendToAnchor]="this.control()?.nativeElement ?? null"
|
|
1129
|
+
[aerisInternalAppendToMatchWidth]="true"
|
|
1130
|
+
[aerisInternalAppendToCollisionPadding]="viewportMargin()"
|
|
1131
|
+
(aerisInternalAppendToOutside)="closePanel(false)"
|
|
601
1132
|
[id]="panelId"
|
|
602
1133
|
[style.--aeris-multi-select-panel-max-height]="panelMaxHeight()"
|
|
603
1134
|
>
|
|
@@ -699,7 +1230,7 @@ class AerisMultiSelectComponent {
|
|
|
699
1230
|
[attr.data-selected]="isSelected(option) || null"
|
|
700
1231
|
[attr.data-disabled]="optionUnavailable(option) || null"
|
|
701
1232
|
(mouseenter)="activate(option)"
|
|
702
|
-
(
|
|
1233
|
+
(pointerdown)="preservePointerFocus($event)"
|
|
703
1234
|
(click)="toggleOption(option, $event)"
|
|
704
1235
|
>
|
|
705
1236
|
<span
|
|
@@ -746,17 +1277,55 @@ class AerisMultiSelectComponent {
|
|
|
746
1277
|
</div>
|
|
747
1278
|
}
|
|
748
1279
|
</div>
|
|
749
|
-
`,
|
|
750
|
-
|
|
751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisMultiSelectComponent, decorators: [{
|
|
752
|
-
|
|
753
|
-
|
|
1280
|
+
`,
|
|
1281
|
+
isInline: true,
|
|
1282
|
+
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:14rem;max-width:100%;font:inherit;color:var(--aeris-text, #111111)}:host([data-fluid]){width:100%}.aeris-multi-select{--_height: var(--aeris-control-height, 2.625rem);--_font: var(--aeris-font-size-lg, .875rem);--_gap: var(--aeris-density-gap, .5rem);--_padding-x: var(--aeris-control-padding-x, .75rem);position:relative;width:100%}.aeris-multi-select[data-size=xs]{--_height: 1.875rem;--_font: var(--aeris-font-size-sm, .75rem)}.aeris-multi-select[data-size=sm]{--_height: 2.25rem;--_font: var(--aeris-font-size-md, .8125rem)}.aeris-multi-select[data-size=lg]{--_height: 3rem;--_font: var(--aeris-font-size-xl, .9375rem)}.aeris-multi-select__control{position:relative}.aeris-multi-select__trigger{width:100%;min-height:var(--_height);display:flex;align-items:center;padding:calc(var(--aeris-item-padding-y, .5rem) * .6) 3rem calc(var(--aeris-item-padding-y, .5rem) * .6) var(--_padding-x);border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-surface, #fff);color:inherit;font:inherit;font-size:var(--_font);text-align:left;cursor:pointer;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),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-multi-select__control:has(.aeris-multi-select__clear) .aeris-multi-select__trigger{padding-right:4.5rem}.aeris-multi-select[data-appearance=filled] .aeris-multi-select__trigger{border-color:transparent;background:var(--aeris-surface-2, #f3f3f3)}.aeris-multi-select[data-open] .aeris-multi-select__trigger{border-color:var(--aeris-control-hover-border, var(--aeris-primary, #111111))}@media(hover:hover){.aeris-multi-select__trigger:hover{border-color:var(--aeris-control-hover-border, var(--aeris-primary, #111111))}}.aeris-multi-select__trigger:focus-visible{outline:0;border-color: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-multi-select[data-invalid] .aeris-multi-select__trigger{border-color:var(--aeris-control-invalid-border, var(--aeris-danger, #c81e2a))}.aeris-multi-select[data-invalid] .aeris-multi-select__trigger:focus-visible{box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-invalid-focus-ring-color, transparent)}.aeris-multi-select[data-disabled]{opacity:var(--aeris-disabled-opacity, .5)}.aeris-multi-select__placeholder{color:var(--aeris-text-2, #454545)}.aeris-multi-select__summary{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-multi-select__chips{min-width:0;display:flex;flex-wrap:wrap;gap:calc(var(--_gap) * .5)}.aeris-multi-select__chip{display:inline-flex;align-items:center;gap:.3rem;padding:calc(var(--aeris-item-padding-y, .5rem) * .3) calc(var(--aeris-item-padding-x, .75rem) * .45);border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:color-mix(in srgb,var(--aeris-primary, #111111) 14%,transparent);font-size:var(--aeris-font-size-sm, .75rem)}.aeris-multi-select__chip--count{color:var(--aeris-text-2, #454545)}.aeris-multi-select__chip-remove{width:1rem;height:1rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:inherit;cursor:pointer}@media(hover:hover){.aeris-multi-select__chip-remove:hover{background:var(--aeris-surface-2, #f3f3f3)}}.aeris-multi-select__chip-remove span,.aeris-multi-select__clear span,.aeris-multi-select__filter-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-multi-select__clear{position:absolute;z-index:2;top:50%;right:2.1rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #454545);transform:translateY(-50%);cursor:pointer}@media(hover:hover){.aeris-multi-select__clear:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-multi-select__clear:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111);outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-multi-select__chevron{position:absolute;top:50%;right:var(--_padding-x);width:1rem;height:1rem;color:var(--aeris-text-2, #454545);transform:translateY(-50%);pointer-events:none}.aeris-multi-select__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-multi-select[data-open] .aeris-multi-select__chevron:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-multi-select__panel{position:absolute;z-index:90;top:calc(100% + .4375rem);right:0;left:0;min-width:100%;max-width:calc(100vw - 2rem);padding:var(--aeris-overlay-padding, calc(var(--_gap) * .75));border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem));background:var(--aeris-surface, #fff);box-shadow:var(--aeris-overlay-shadow, var(--aeris-shadow-lg, 0 18px 48px rgba(0, 0, 0, .18)))}.aeris-multi-select__header,.aeris-multi-select__footer{padding:var(--aeris-item-padding-x, .75rem);border-color:var(--aeris-border);font-size:var(--aeris-font-size-md, .8125rem)}.aeris-multi-select__header{border-bottom:1px solid}.aeris-multi-select__footer{border-top:1px solid}.aeris-multi-select__select-all{width:100%;min-height:var(--aeris-item-height, 2.5rem);display:flex;align-items:center;gap:var(--_gap);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;text-align:left;cursor:pointer}@media(hover:hover){.aeris-multi-select__select-all:hover{background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3))}}.aeris-multi-select__select-all small{margin-left:auto;color:var(--aeris-text-2, #454545)}.aeris-multi-select__filter-wrap{position:relative;min-height:max(2rem,var(--_height) - .25rem);display:flex;align-items:center;gap:var(--_gap);margin:calc(var(--_gap) * .5) 0;padding:0 2.5rem 0 var(--aeris-item-padding-x, .75rem);border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem))}.aeris-multi-select__filter-wrap:focus-within{border-color: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-multi-select__search-mark{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);flex:0 0 auto;background:var(--aeris-text-2, #454545);-webkit-mask:var(--aeris-icon-search) center/100% 100% no-repeat;mask:var(--aeris-icon-search) center/100% 100% no-repeat}.aeris-multi-select__filter{min-width:0;width:100%;min-height:max(1.75rem,var(--_height) - .375rem);padding:0;border:0;outline:0;background:transparent;color:inherit;font:inherit}.aeris-multi-select__filter::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.aeris-multi-select__filter-clear{position:absolute;top:50%;right:.5rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #454545);transform:translateY(-50%);cursor:pointer}.aeris-multi-select__filter-clear:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}@media(hover:hover){.aeris-multi-select__filter-clear:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-multi-select__filter-clear:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-multi-select__list{max-height:var(--aeris-multi-select-panel-max-height, 18rem);overflow:auto;overscroll-behavior:contain}.aeris-multi-select__group{padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem) calc(var(--aeris-item-padding-y, .5rem) * .6);color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-xs, .6875rem);font-weight:var(--aeris-font-weight-bold, 700);text-transform:uppercase;letter-spacing:.05em}.aeris-multi-select__option{min-height:var(--aeris-item-height, 2.5rem);display:flex;align-items:center;gap:var(--_gap);padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));color:var(--aeris-text-2, #454545);font-size:var(--aeris-item-font-size, .875rem);cursor:pointer}.aeris-multi-select__option[data-active]{background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3));color:var(--aeris-text, #111111)}.aeris-multi-select__option[data-selected]{color:var(--aeris-text, #111111);font-weight:var(--aeris-font-weight-bold, 700)}.aeris-multi-select__option[data-disabled]{opacity:.45;cursor:not-allowed}.aeris-multi-select__checkbox{width:1rem;height:1rem;display:grid;place-items:center;flex:0 0 auto;border:1.5px solid var(--aeris-border, #efefef);border-radius:var(--aeris-checkbox-radius, .3125rem);background:var(--aeris-surface, #fff);color:var(--aeris-on-primary, #ffffff)}.aeris-multi-select__checkbox[data-checked],.aeris-multi-select__checkbox[data-mixed]{border-color:var(--aeris-primary, #111111);background:var(--aeris-primary, #111111)}.aeris-multi-select__checkbox span{position:relative;top:-.05rem;width:52%;height:30%;border-inline-start:2px solid currentColor;border-block-end:2px solid currentColor;transform:rotate(-45deg) scale(.7);opacity:0}.aeris-multi-select__checkbox[data-checked] span{opacity:1;transform:rotate(-45deg) scale(1)}.aeris-multi-select__checkbox[data-mixed] span{top:0;width:56%;height:2px;border:0;border-radius:var(--aeris-radius-pill, 999px);background:currentColor;transform:none;opacity:1}.aeris-multi-select__option-content{min-width:0;display:grid;gap:calc(var(--_gap) * .2)}.aeris-multi-select__option-content small{color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem);font-weight:400}.aeris-multi-select__message,.aeris-multi-select__limit{padding:calc(var(--aeris-item-padding-y, .5rem) * 1.5) var(--aeris-item-padding-x, .75rem);color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-md, .8125rem)}.aeris-multi-select__limit{border-top:1px solid var(--aeris-border)}.aeris-multi-select__spinner{width:1rem;height:1rem;display:inline-block;margin-right:.4rem;border:2px solid var(--aeris-border, #efefef);border-top-color:var(--aeris-primary, #111111);border-radius:50%;animation:aeris-ms-spin .7s linear infinite}@keyframes aeris-ms-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.aeris-multi-select__trigger{transition:none}.aeris-multi-select__spinner{animation:none}}@media(max-width:32rem){:host{min-width:0}.aeris-multi-select__panel{right:auto;width:min(22rem,100vw - 2rem)}}@media(pointer:coarse){input{font-size:var(--aeris-mobile-input-font-size, 1rem)}}\n"],
|
|
1283
|
+
dependencies: [{
|
|
1284
|
+
kind: "directive",
|
|
1285
|
+
type: NgTemplateOutlet,
|
|
1286
|
+
selector: "[ngTemplateOutlet]",
|
|
1287
|
+
inputs: [
|
|
1288
|
+
"ngTemplateOutletContext",
|
|
1289
|
+
"ngTemplateOutlet",
|
|
1290
|
+
"ngTemplateOutletInjector"
|
|
1291
|
+
]
|
|
1292
|
+
}, {
|
|
1293
|
+
kind: "directive",
|
|
1294
|
+
type: ɵAerisAppendTo,
|
|
1295
|
+
selector: "[aerisInternalAppendTo]",
|
|
1296
|
+
inputs: [
|
|
1297
|
+
"aerisInternalAppendTo",
|
|
1298
|
+
"aerisInternalAppendToDefault",
|
|
1299
|
+
"aerisInternalAppendToAnchor",
|
|
1300
|
+
"aerisInternalAppendToOffset",
|
|
1301
|
+
"aerisInternalAppendToMatchWidth",
|
|
1302
|
+
"aerisInternalAppendToPlacement",
|
|
1303
|
+
"aerisInternalAppendToAlignment",
|
|
1304
|
+
"aerisInternalAppendToCollisionPadding",
|
|
1305
|
+
"aerisInternalAppendToPositionSelf",
|
|
1306
|
+
"aerisInternalAppendToDismiss"
|
|
1307
|
+
],
|
|
1308
|
+
outputs: ["aerisInternalAppendToOutside"]
|
|
1309
|
+
}]
|
|
1310
|
+
});
|
|
1311
|
+
};
|
|
1312
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1313
|
+
minVersion: "12.0.0",
|
|
1314
|
+
version: "22.2.2",
|
|
1315
|
+
ngImport: i0,
|
|
1316
|
+
type: AerisMultiSelectComponent,
|
|
1317
|
+
decorators: [{
|
|
1318
|
+
type: Component,
|
|
1319
|
+
args: [{
|
|
1320
|
+
selector: "aeris-multi-select",
|
|
1321
|
+
imports: [NgTemplateOutlet, ɵAerisAppendTo],
|
|
1322
|
+
template: `
|
|
754
1323
|
<div
|
|
755
1324
|
class="aeris-multi-select"
|
|
756
1325
|
[attr.data-size]="size()"
|
|
757
1326
|
[attr.data-appearance]="appearance()"
|
|
758
1327
|
[attr.data-open]="open() || null"
|
|
759
|
-
[attr.data-invalid]="
|
|
1328
|
+
[attr.data-invalid]="displayInvalid() || null"
|
|
760
1329
|
[attr.data-disabled]="effectiveDisabled() || null"
|
|
761
1330
|
[attr.data-fluid]="fluid() || null"
|
|
762
1331
|
(focusout)="handleFocusOut($event)"
|
|
@@ -765,7 +1334,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
765
1334
|
<input type="hidden" [name]="name()" [value]="value().join(valueSeparator())" />
|
|
766
1335
|
}
|
|
767
1336
|
|
|
768
|
-
<div class="aeris-multi-select__control">
|
|
1337
|
+
<div #control class="aeris-multi-select__control">
|
|
769
1338
|
<div
|
|
770
1339
|
#trigger
|
|
771
1340
|
class="aeris-multi-select__trigger"
|
|
@@ -777,9 +1346,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
777
1346
|
[attr.aria-controls]="panelId"
|
|
778
1347
|
[attr.aria-activedescendant]="open() ? activeOptionId() : null"
|
|
779
1348
|
[attr.aria-label]="ariaLabel() || null"
|
|
780
|
-
[attr.aria-labelledby]="
|
|
781
|
-
[attr.aria-describedby]="
|
|
782
|
-
[attr.aria-invalid]="
|
|
1349
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
1350
|
+
[attr.aria-describedby]="ariaDescribedBy() || null"
|
|
1351
|
+
[attr.aria-invalid]="displayInvalid() || null"
|
|
783
1352
|
[attr.aria-required]="required() || null"
|
|
784
1353
|
[attr.aria-disabled]="effectiveDisabled() || null"
|
|
785
1354
|
(click)="toggle()"
|
|
@@ -840,16 +1409,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
840
1409
|
</div>
|
|
841
1410
|
|
|
842
1411
|
@if (open()) {
|
|
843
|
-
<button
|
|
844
|
-
class="aeris-multi-select__dismiss"
|
|
845
|
-
type="button"
|
|
846
|
-
tabindex="-1"
|
|
847
|
-
aria-label="Close options"
|
|
848
|
-
(click)="closePanel(true)"
|
|
849
|
-
></button>
|
|
850
|
-
|
|
851
1412
|
<div
|
|
1413
|
+
#optionsPanel
|
|
852
1414
|
class="aeris-multi-select__panel"
|
|
1415
|
+
(pointerdown)="handlePanelPointerDown($event)"
|
|
1416
|
+
(pointercancel)="endPanelPointerInteraction()"
|
|
1417
|
+
(click)="endPanelPointerInteraction()"
|
|
1418
|
+
[aerisInternalAppendTo]="appendTo()"
|
|
1419
|
+
[aerisInternalAppendToDismiss]="dismissOverlay"
|
|
1420
|
+
[aerisInternalAppendToAnchor]="this.control()?.nativeElement ?? null"
|
|
1421
|
+
[aerisInternalAppendToMatchWidth]="true"
|
|
1422
|
+
[aerisInternalAppendToCollisionPadding]="viewportMargin()"
|
|
1423
|
+
(aerisInternalAppendToOutside)="closePanel(false)"
|
|
853
1424
|
[id]="panelId"
|
|
854
1425
|
[style.--aeris-multi-select-panel-max-height]="panelMaxHeight()"
|
|
855
1426
|
>
|
|
@@ -951,7 +1522,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
951
1522
|
[attr.data-selected]="isSelected(option) || null"
|
|
952
1523
|
[attr.data-disabled]="optionUnavailable(option) || null"
|
|
953
1524
|
(mouseenter)="activate(option)"
|
|
954
|
-
(
|
|
1525
|
+
(pointerdown)="preservePointerFocus($event)"
|
|
955
1526
|
(click)="toggleOption(option, $event)"
|
|
956
1527
|
>
|
|
957
1528
|
<span
|
|
@@ -998,36 +1569,502 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
998
1569
|
</div>
|
|
999
1570
|
}
|
|
1000
1571
|
</div>
|
|
1001
|
-
`,
|
|
1002
|
-
|
|
1003
|
-
|
|
1004
|
-
|
|
1005
|
-
|
|
1006
|
-
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
}], propDecorators: { options: [{ type: i0.Input, args: [{ isSignal: true, alias: "options", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], inputId: [{ type: i0.Input, args: [{ isSignal: true, alias: "inputId", required: false }] }], name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], valueSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueSeparator", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], ariaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabel", required: false }] }], ariaLabelledby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaLabelledby", required: false }] }], ariaDescribedby: [{ type: i0.Input, args: [{ isSignal: true, alias: "ariaDescribedby", required: false }] }], listboxAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "listboxAriaLabel", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], appearance: [{ type: i0.Input, args: [{ isSignal: true, alias: "appearance", required: false }] }], display: [{ type: i0.Input, args: [{ isSignal: true, alias: "display", required: false }] }], selectedItemsLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedItemsLabel", required: false }] }], maxSelectedLabels: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxSelectedLabels", required: false }] }], selectionLimit: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionLimit", required: false }] }], selectionLimitMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionLimitMessage", required: false }] }], showSelectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "showSelectAll", required: false }] }], selectAllLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAllLabel", required: false }] }], clearable: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearable", required: false }] }], clearButtonAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "clearButtonAriaLabel", required: false }] }], filter: [{ type: i0.Input, args: [{ isSignal: true, alias: "filter", required: false }] }], filterValue: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterValue", required: false }] }, { type: i0.Output, args: ["filterValueChange"] }], filterMatchMode: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterMatchMode", required: false }] }], filterFields: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterFields", required: false }] }], filterLocale: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterLocale", required: false }] }], filterPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterPlaceholder", required: false }] }], filterAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterAriaLabel", required: false }] }], filterClearAriaLabel: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterClearAriaLabel", required: false }] }], resetFilterOnClose: [{ type: i0.Input, args: [{ isSignal: true, alias: "resetFilterOnClose", required: false }] }], autofocusFilter: [{ type: i0.Input, args: [{ isSignal: true, alias: "autofocusFilter", required: false }] }], emptyMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyMessage", required: false }] }], emptyFilterMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyFilterMessage", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], loadingMessage: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingMessage", required: false }] }], panelMaxHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "panelMaxHeight", required: false }] }], virtualScroll: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualScroll", required: false }] }], virtualItemSize: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualItemSize", required: false }] }], virtualBuffer: [{ type: i0.Input, args: [{ isSignal: true, alias: "virtualBuffer", required: false }] }], lazy: [{ type: i0.Input, args: [{ isSignal: true, alias: "lazy", required: false }] }], closeOnSelect: [{ type: i0.Input, args: [{ isSignal: true, alias: "closeOnSelect", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], required: [{ type: i0.Input, args: [{ isSignal: true, alias: "required", required: false }] }], invalid: [{ type: i0.Input, args: [{ isSignal: true, alias: "invalid", required: false }] }], fluid: [{ type: i0.Input, args: [{ isSignal: true, alias: "fluid", required: false }] }], valueInput: [{ type: i0.Output, args: ["valueInput"] }], changed: [{ type: i0.Output, args: ["changed"] }], filterChanged: [{ type: i0.Output, args: ["filterChanged"] }], lazyLoad: [{ type: i0.Output, args: ["lazyLoad"] }], opened: [{ type: i0.Output, args: ["opened"] }], closed: [{ type: i0.Output, args: ["closed"] }], cleared: [{ type: i0.Output, args: ["cleared"] }], focused: [{ type: i0.Output, args: ["focused"] }], blurred: [{ type: i0.Output, args: ["blurred"] }], touch: [{ type: i0.Output, args: ["touch"] }], trigger: [{ type: i0.ViewChild, args: ['trigger', { isSignal: true }] }], filterInput: [{ type: i0.ViewChild, args: ['filterInput', { isSignal: true }] }], optionTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisMultiSelectOptionTemplate), { isSignal: true }] }], chipTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisMultiSelectChipTemplate), { isSignal: true }] }], headerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisMultiSelectHeaderTemplate), { isSignal: true }] }], footerTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisMultiSelectFooterTemplate), { isSignal: true }] }], emptyTemplate: [{ type: i0.ContentChild, args: [i0.forwardRef(() => AerisMultiSelectEmptyTemplate), { isSignal: true }] }] } });
|
|
1572
|
+
`,
|
|
1573
|
+
providers: [{
|
|
1574
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1575
|
+
useExisting: forwardRef(() => AerisMultiSelectComponent),
|
|
1576
|
+
multi: true
|
|
1577
|
+
}],
|
|
1578
|
+
host: {
|
|
1579
|
+
"[attr.data-open]": "open() || null",
|
|
1580
|
+
"[attr.data-disabled]": "effectiveDisabled() || null",
|
|
1581
|
+
"[attr.data-fluid]": "fluid() || null"
|
|
1582
|
+
},
|
|
1583
|
+
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:14rem;max-width:100%;font:inherit;color:var(--aeris-text, #111111)}:host([data-fluid]){width:100%}.aeris-multi-select{--_height: var(--aeris-control-height, 2.625rem);--_font: var(--aeris-font-size-lg, .875rem);--_gap: var(--aeris-density-gap, .5rem);--_padding-x: var(--aeris-control-padding-x, .75rem);position:relative;width:100%}.aeris-multi-select[data-size=xs]{--_height: 1.875rem;--_font: var(--aeris-font-size-sm, .75rem)}.aeris-multi-select[data-size=sm]{--_height: 2.25rem;--_font: var(--aeris-font-size-md, .8125rem)}.aeris-multi-select[data-size=lg]{--_height: 3rem;--_font: var(--aeris-font-size-xl, .9375rem)}.aeris-multi-select__control{position:relative}.aeris-multi-select__trigger{width:100%;min-height:var(--_height);display:flex;align-items:center;padding:calc(var(--aeris-item-padding-y, .5rem) * .6) 3rem calc(var(--aeris-item-padding-y, .5rem) * .6) var(--_padding-x);border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-surface, #fff);color:inherit;font:inherit;font-size:var(--_font);text-align:left;cursor:pointer;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),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-multi-select__control:has(.aeris-multi-select__clear) .aeris-multi-select__trigger{padding-right:4.5rem}.aeris-multi-select[data-appearance=filled] .aeris-multi-select__trigger{border-color:transparent;background:var(--aeris-surface-2, #f3f3f3)}.aeris-multi-select[data-open] .aeris-multi-select__trigger{border-color:var(--aeris-control-hover-border, var(--aeris-primary, #111111))}@media(hover:hover){.aeris-multi-select__trigger:hover{border-color:var(--aeris-control-hover-border, var(--aeris-primary, #111111))}}.aeris-multi-select__trigger:focus-visible{outline:0;border-color: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-multi-select[data-invalid] .aeris-multi-select__trigger{border-color:var(--aeris-control-invalid-border, var(--aeris-danger, #c81e2a))}.aeris-multi-select[data-invalid] .aeris-multi-select__trigger:focus-visible{box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-invalid-focus-ring-color, transparent)}.aeris-multi-select[data-disabled]{opacity:var(--aeris-disabled-opacity, .5)}.aeris-multi-select__placeholder{color:var(--aeris-text-2, #454545)}.aeris-multi-select__summary{min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.aeris-multi-select__chips{min-width:0;display:flex;flex-wrap:wrap;gap:calc(var(--_gap) * .5)}.aeris-multi-select__chip{display:inline-flex;align-items:center;gap:.3rem;padding:calc(var(--aeris-item-padding-y, .5rem) * .3) calc(var(--aeris-item-padding-x, .75rem) * .45);border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:color-mix(in srgb,var(--aeris-primary, #111111) 14%,transparent);font-size:var(--aeris-font-size-sm, .75rem)}.aeris-multi-select__chip--count{color:var(--aeris-text-2, #454545)}.aeris-multi-select__chip-remove{width:1rem;height:1rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));background:transparent;color:inherit;cursor:pointer}@media(hover:hover){.aeris-multi-select__chip-remove:hover{background:var(--aeris-surface-2, #f3f3f3)}}.aeris-multi-select__chip-remove span,.aeris-multi-select__clear span,.aeris-multi-select__filter-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-multi-select__clear{position:absolute;z-index:2;top:50%;right:2.1rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #454545);transform:translateY(-50%);cursor:pointer}@media(hover:hover){.aeris-multi-select__clear:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-multi-select__clear:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111);outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-multi-select__chevron{position:absolute;top:50%;right:var(--_padding-x);width:1rem;height:1rem;color:var(--aeris-text-2, #454545);transform:translateY(-50%);pointer-events:none}.aeris-multi-select__chevron:before{position:absolute;top:50%;left:50%;width:1rem;height:1rem;background:currentColor;content:\"\";transform:translate(-50%,-50%);-webkit-mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat;mask:var(--_aeris-chevron-mask) center/100% 100% no-repeat}.aeris-multi-select[data-open] .aeris-multi-select__chevron:before{transform:translate(-50%,-50%) rotate(180deg)}.aeris-multi-select__panel{position:absolute;z-index:90;top:calc(100% + .4375rem);right:0;left:0;min-width:100%;max-width:calc(100vw - 2rem);padding:var(--aeris-overlay-padding, calc(var(--_gap) * .75));border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-overlay, var(--aeris-radius-md, .6875rem));background:var(--aeris-surface, #fff);box-shadow:var(--aeris-overlay-shadow, var(--aeris-shadow-lg, 0 18px 48px rgba(0, 0, 0, .18)))}.aeris-multi-select__header,.aeris-multi-select__footer{padding:var(--aeris-item-padding-x, .75rem);border-color:var(--aeris-border);font-size:var(--aeris-font-size-md, .8125rem)}.aeris-multi-select__header{border-bottom:1px solid}.aeris-multi-select__footer{border-top:1px solid}.aeris-multi-select__select-all{width:100%;min-height:var(--aeris-item-height, 2.5rem);display:flex;align-items:center;gap:var(--_gap);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;text-align:left;cursor:pointer}@media(hover:hover){.aeris-multi-select__select-all:hover{background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3))}}.aeris-multi-select__select-all small{margin-left:auto;color:var(--aeris-text-2, #454545)}.aeris-multi-select__filter-wrap{position:relative;min-height:max(2rem,var(--_height) - .25rem);display:flex;align-items:center;gap:var(--_gap);margin:calc(var(--_gap) * .5) 0;padding:0 2.5rem 0 var(--aeris-item-padding-x, .75rem);border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem))}.aeris-multi-select__filter-wrap:focus-within{border-color: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-multi-select__search-mark{width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);flex:0 0 auto;background:var(--aeris-text-2, #454545);-webkit-mask:var(--aeris-icon-search) center/100% 100% no-repeat;mask:var(--aeris-icon-search) center/100% 100% no-repeat}.aeris-multi-select__filter{min-width:0;width:100%;min-height:max(1.75rem,var(--_height) - .375rem);padding:0;border:0;outline:0;background:transparent;color:inherit;font:inherit}.aeris-multi-select__filter::-webkit-search-cancel-button{-webkit-appearance:none;appearance:none}.aeris-multi-select__filter-clear{position:absolute;top:50%;right:.5rem;width:1.5rem;height:1.5rem;display:grid;place-items:center;padding:0;border:0;border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:transparent;color:var(--aeris-text-2, #454545);transform:translateY(-50%);cursor:pointer}.aeris-multi-select__filter-clear:focus-visible{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}@media(hover:hover){.aeris-multi-select__filter-clear:hover{background:var(--aeris-surface-2, #f3f3f3);color:var(--aeris-text, #111111)}}.aeris-multi-select__filter-clear:focus-visible{outline:var(--aeris-focus-ring-width, 3px) solid var(--aeris-focus, #111111);outline-offset:1px}.aeris-multi-select__list{max-height:var(--aeris-multi-select-panel-max-height, 18rem);overflow:auto;overscroll-behavior:contain}.aeris-multi-select__group{padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem) calc(var(--aeris-item-padding-y, .5rem) * .6);color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-xs, .6875rem);font-weight:var(--aeris-font-weight-bold, 700);text-transform:uppercase;letter-spacing:.05em}.aeris-multi-select__option{min-height:var(--aeris-item-height, 2.5rem);display:flex;align-items:center;gap:var(--_gap);padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);border-radius:var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem));color:var(--aeris-text-2, #454545);font-size:var(--aeris-item-font-size, .875rem);cursor:pointer}.aeris-multi-select__option[data-active]{background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3));color:var(--aeris-text, #111111)}.aeris-multi-select__option[data-selected]{color:var(--aeris-text, #111111);font-weight:var(--aeris-font-weight-bold, 700)}.aeris-multi-select__option[data-disabled]{opacity:.45;cursor:not-allowed}.aeris-multi-select__checkbox{width:1rem;height:1rem;display:grid;place-items:center;flex:0 0 auto;border:1.5px solid var(--aeris-border, #efefef);border-radius:var(--aeris-checkbox-radius, .3125rem);background:var(--aeris-surface, #fff);color:var(--aeris-on-primary, #ffffff)}.aeris-multi-select__checkbox[data-checked],.aeris-multi-select__checkbox[data-mixed]{border-color:var(--aeris-primary, #111111);background:var(--aeris-primary, #111111)}.aeris-multi-select__checkbox span{position:relative;top:-.05rem;width:52%;height:30%;border-inline-start:2px solid currentColor;border-block-end:2px solid currentColor;transform:rotate(-45deg) scale(.7);opacity:0}.aeris-multi-select__checkbox[data-checked] span{opacity:1;transform:rotate(-45deg) scale(1)}.aeris-multi-select__checkbox[data-mixed] span{top:0;width:56%;height:2px;border:0;border-radius:var(--aeris-radius-pill, 999px);background:currentColor;transform:none;opacity:1}.aeris-multi-select__option-content{min-width:0;display:grid;gap:calc(var(--_gap) * .2)}.aeris-multi-select__option-content small{color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-sm, .75rem);font-weight:400}.aeris-multi-select__message,.aeris-multi-select__limit{padding:calc(var(--aeris-item-padding-y, .5rem) * 1.5) var(--aeris-item-padding-x, .75rem);color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-md, .8125rem)}.aeris-multi-select__limit{border-top:1px solid var(--aeris-border)}.aeris-multi-select__spinner{width:1rem;height:1rem;display:inline-block;margin-right:.4rem;border:2px solid var(--aeris-border, #efefef);border-top-color:var(--aeris-primary, #111111);border-radius:50%;animation:aeris-ms-spin .7s linear infinite}@keyframes aeris-ms-spin{to{transform:rotate(360deg)}}@media(prefers-reduced-motion:reduce){.aeris-multi-select__trigger{transition:none}.aeris-multi-select__spinner{animation:none}}@media(max-width:32rem){:host{min-width:0}.aeris-multi-select__panel{right:auto;width:min(22rem,100vw - 2rem)}}@media(pointer:coarse){input{font-size:var(--aeris-mobile-input-font-size, 1rem)}}\n"]
|
|
1584
|
+
}]
|
|
1585
|
+
}],
|
|
1586
|
+
propDecorators: {
|
|
1587
|
+
options: [{
|
|
1588
|
+
type: i0.Input,
|
|
1589
|
+
args: [{
|
|
1590
|
+
isSignal: true,
|
|
1591
|
+
alias: "options",
|
|
1592
|
+
required: true
|
|
1593
|
+
}]
|
|
1594
|
+
}],
|
|
1595
|
+
value: [{
|
|
1596
|
+
type: i0.Input,
|
|
1597
|
+
args: [{
|
|
1598
|
+
isSignal: true,
|
|
1599
|
+
alias: "value",
|
|
1600
|
+
required: false
|
|
1601
|
+
}]
|
|
1602
|
+
}, {
|
|
1603
|
+
type: i0.Output,
|
|
1604
|
+
args: ["valueChange"]
|
|
1605
|
+
}],
|
|
1606
|
+
inputId: [{
|
|
1607
|
+
type: i0.Input,
|
|
1608
|
+
args: [{
|
|
1609
|
+
isSignal: true,
|
|
1610
|
+
alias: "inputId",
|
|
1611
|
+
required: false
|
|
1612
|
+
}]
|
|
1613
|
+
}],
|
|
1614
|
+
name: [{
|
|
1615
|
+
type: i0.Input,
|
|
1616
|
+
args: [{
|
|
1617
|
+
isSignal: true,
|
|
1618
|
+
alias: "name",
|
|
1619
|
+
required: false
|
|
1620
|
+
}]
|
|
1621
|
+
}],
|
|
1622
|
+
valueSeparator: [{
|
|
1623
|
+
type: i0.Input,
|
|
1624
|
+
args: [{
|
|
1625
|
+
isSignal: true,
|
|
1626
|
+
alias: "valueSeparator",
|
|
1627
|
+
required: false
|
|
1628
|
+
}]
|
|
1629
|
+
}],
|
|
1630
|
+
placeholder: [{
|
|
1631
|
+
type: i0.Input,
|
|
1632
|
+
args: [{
|
|
1633
|
+
isSignal: true,
|
|
1634
|
+
alias: "placeholder",
|
|
1635
|
+
required: false
|
|
1636
|
+
}]
|
|
1637
|
+
}],
|
|
1638
|
+
ariaLabel: [{
|
|
1639
|
+
type: i0.Input,
|
|
1640
|
+
args: [{
|
|
1641
|
+
isSignal: true,
|
|
1642
|
+
alias: "ariaLabel",
|
|
1643
|
+
required: false
|
|
1644
|
+
}]
|
|
1645
|
+
}],
|
|
1646
|
+
ariaLabelledBy: [{
|
|
1647
|
+
type: i0.Input,
|
|
1648
|
+
args: [{
|
|
1649
|
+
isSignal: true,
|
|
1650
|
+
alias: "ariaLabelledBy",
|
|
1651
|
+
required: false
|
|
1652
|
+
}]
|
|
1653
|
+
}],
|
|
1654
|
+
ariaDescribedBy: [{
|
|
1655
|
+
type: i0.Input,
|
|
1656
|
+
args: [{
|
|
1657
|
+
isSignal: true,
|
|
1658
|
+
alias: "ariaDescribedBy",
|
|
1659
|
+
required: false
|
|
1660
|
+
}]
|
|
1661
|
+
}],
|
|
1662
|
+
listboxAriaLabel: [{
|
|
1663
|
+
type: i0.Input,
|
|
1664
|
+
args: [{
|
|
1665
|
+
isSignal: true,
|
|
1666
|
+
alias: "listboxAriaLabel",
|
|
1667
|
+
required: false
|
|
1668
|
+
}]
|
|
1669
|
+
}],
|
|
1670
|
+
size: [{
|
|
1671
|
+
type: i0.Input,
|
|
1672
|
+
args: [{
|
|
1673
|
+
isSignal: true,
|
|
1674
|
+
alias: "size",
|
|
1675
|
+
required: false
|
|
1676
|
+
}]
|
|
1677
|
+
}],
|
|
1678
|
+
appearance: [{
|
|
1679
|
+
type: i0.Input,
|
|
1680
|
+
args: [{
|
|
1681
|
+
isSignal: true,
|
|
1682
|
+
alias: "appearance",
|
|
1683
|
+
required: false
|
|
1684
|
+
}]
|
|
1685
|
+
}],
|
|
1686
|
+
display: [{
|
|
1687
|
+
type: i0.Input,
|
|
1688
|
+
args: [{
|
|
1689
|
+
isSignal: true,
|
|
1690
|
+
alias: "display",
|
|
1691
|
+
required: false
|
|
1692
|
+
}]
|
|
1693
|
+
}],
|
|
1694
|
+
selectedItemsLabel: [{
|
|
1695
|
+
type: i0.Input,
|
|
1696
|
+
args: [{
|
|
1697
|
+
isSignal: true,
|
|
1698
|
+
alias: "selectedItemsLabel",
|
|
1699
|
+
required: false
|
|
1700
|
+
}]
|
|
1701
|
+
}],
|
|
1702
|
+
maxSelectedLabels: [{
|
|
1703
|
+
type: i0.Input,
|
|
1704
|
+
args: [{
|
|
1705
|
+
isSignal: true,
|
|
1706
|
+
alias: "maxSelectedLabels",
|
|
1707
|
+
required: false
|
|
1708
|
+
}]
|
|
1709
|
+
}],
|
|
1710
|
+
selectionLimit: [{
|
|
1711
|
+
type: i0.Input,
|
|
1712
|
+
args: [{
|
|
1713
|
+
isSignal: true,
|
|
1714
|
+
alias: "selectionLimit",
|
|
1715
|
+
required: false
|
|
1716
|
+
}]
|
|
1717
|
+
}],
|
|
1718
|
+
selectionLimitMessage: [{
|
|
1719
|
+
type: i0.Input,
|
|
1720
|
+
args: [{
|
|
1721
|
+
isSignal: true,
|
|
1722
|
+
alias: "selectionLimitMessage",
|
|
1723
|
+
required: false
|
|
1724
|
+
}]
|
|
1725
|
+
}],
|
|
1726
|
+
showSelectAll: [{
|
|
1727
|
+
type: i0.Input,
|
|
1728
|
+
args: [{
|
|
1729
|
+
isSignal: true,
|
|
1730
|
+
alias: "showSelectAll",
|
|
1731
|
+
required: false
|
|
1732
|
+
}]
|
|
1733
|
+
}],
|
|
1734
|
+
selectAllLabel: [{
|
|
1735
|
+
type: i0.Input,
|
|
1736
|
+
args: [{
|
|
1737
|
+
isSignal: true,
|
|
1738
|
+
alias: "selectAllLabel",
|
|
1739
|
+
required: false
|
|
1740
|
+
}]
|
|
1741
|
+
}],
|
|
1742
|
+
clearable: [{
|
|
1743
|
+
type: i0.Input,
|
|
1744
|
+
args: [{
|
|
1745
|
+
isSignal: true,
|
|
1746
|
+
alias: "clearable",
|
|
1747
|
+
required: false
|
|
1748
|
+
}]
|
|
1749
|
+
}],
|
|
1750
|
+
clearButtonAriaLabel: [{
|
|
1751
|
+
type: i0.Input,
|
|
1752
|
+
args: [{
|
|
1753
|
+
isSignal: true,
|
|
1754
|
+
alias: "clearButtonAriaLabel",
|
|
1755
|
+
required: false
|
|
1756
|
+
}]
|
|
1757
|
+
}],
|
|
1758
|
+
filter: [{
|
|
1759
|
+
type: i0.Input,
|
|
1760
|
+
args: [{
|
|
1761
|
+
isSignal: true,
|
|
1762
|
+
alias: "filter",
|
|
1763
|
+
required: false
|
|
1764
|
+
}]
|
|
1765
|
+
}],
|
|
1766
|
+
filterValue: [{
|
|
1767
|
+
type: i0.Input,
|
|
1768
|
+
args: [{
|
|
1769
|
+
isSignal: true,
|
|
1770
|
+
alias: "filterValue",
|
|
1771
|
+
required: false
|
|
1772
|
+
}]
|
|
1773
|
+
}, {
|
|
1774
|
+
type: i0.Output,
|
|
1775
|
+
args: ["filterValueChange"]
|
|
1776
|
+
}],
|
|
1777
|
+
filterMatchMode: [{
|
|
1778
|
+
type: i0.Input,
|
|
1779
|
+
args: [{
|
|
1780
|
+
isSignal: true,
|
|
1781
|
+
alias: "filterMatchMode",
|
|
1782
|
+
required: false
|
|
1783
|
+
}]
|
|
1784
|
+
}],
|
|
1785
|
+
filterFields: [{
|
|
1786
|
+
type: i0.Input,
|
|
1787
|
+
args: [{
|
|
1788
|
+
isSignal: true,
|
|
1789
|
+
alias: "filterFields",
|
|
1790
|
+
required: false
|
|
1791
|
+
}]
|
|
1792
|
+
}],
|
|
1793
|
+
filterLocale: [{
|
|
1794
|
+
type: i0.Input,
|
|
1795
|
+
args: [{
|
|
1796
|
+
isSignal: true,
|
|
1797
|
+
alias: "filterLocale",
|
|
1798
|
+
required: false
|
|
1799
|
+
}]
|
|
1800
|
+
}],
|
|
1801
|
+
filterPlaceholder: [{
|
|
1802
|
+
type: i0.Input,
|
|
1803
|
+
args: [{
|
|
1804
|
+
isSignal: true,
|
|
1805
|
+
alias: "filterPlaceholder",
|
|
1806
|
+
required: false
|
|
1807
|
+
}]
|
|
1808
|
+
}],
|
|
1809
|
+
filterAriaLabel: [{
|
|
1810
|
+
type: i0.Input,
|
|
1811
|
+
args: [{
|
|
1812
|
+
isSignal: true,
|
|
1813
|
+
alias: "filterAriaLabel",
|
|
1814
|
+
required: false
|
|
1815
|
+
}]
|
|
1816
|
+
}],
|
|
1817
|
+
filterClearAriaLabel: [{
|
|
1818
|
+
type: i0.Input,
|
|
1819
|
+
args: [{
|
|
1820
|
+
isSignal: true,
|
|
1821
|
+
alias: "filterClearAriaLabel",
|
|
1822
|
+
required: false
|
|
1823
|
+
}]
|
|
1824
|
+
}],
|
|
1825
|
+
resetFilterOnClose: [{
|
|
1826
|
+
type: i0.Input,
|
|
1827
|
+
args: [{
|
|
1828
|
+
isSignal: true,
|
|
1829
|
+
alias: "resetFilterOnClose",
|
|
1830
|
+
required: false
|
|
1831
|
+
}]
|
|
1832
|
+
}],
|
|
1833
|
+
autofocusFilter: [{
|
|
1834
|
+
type: i0.Input,
|
|
1835
|
+
args: [{
|
|
1836
|
+
isSignal: true,
|
|
1837
|
+
alias: "autofocusFilter",
|
|
1838
|
+
required: false
|
|
1839
|
+
}]
|
|
1840
|
+
}],
|
|
1841
|
+
emptyMessage: [{
|
|
1842
|
+
type: i0.Input,
|
|
1843
|
+
args: [{
|
|
1844
|
+
isSignal: true,
|
|
1845
|
+
alias: "emptyMessage",
|
|
1846
|
+
required: false
|
|
1847
|
+
}]
|
|
1848
|
+
}],
|
|
1849
|
+
emptyFilterMessage: [{
|
|
1850
|
+
type: i0.Input,
|
|
1851
|
+
args: [{
|
|
1852
|
+
isSignal: true,
|
|
1853
|
+
alias: "emptyFilterMessage",
|
|
1854
|
+
required: false
|
|
1855
|
+
}]
|
|
1856
|
+
}],
|
|
1857
|
+
loading: [{
|
|
1858
|
+
type: i0.Input,
|
|
1859
|
+
args: [{
|
|
1860
|
+
isSignal: true,
|
|
1861
|
+
alias: "loading",
|
|
1862
|
+
required: false
|
|
1863
|
+
}]
|
|
1864
|
+
}],
|
|
1865
|
+
loadingMessage: [{
|
|
1866
|
+
type: i0.Input,
|
|
1867
|
+
args: [{
|
|
1868
|
+
isSignal: true,
|
|
1869
|
+
alias: "loadingMessage",
|
|
1870
|
+
required: false
|
|
1871
|
+
}]
|
|
1872
|
+
}],
|
|
1873
|
+
panelMaxHeight: [{
|
|
1874
|
+
type: i0.Input,
|
|
1875
|
+
args: [{
|
|
1876
|
+
isSignal: true,
|
|
1877
|
+
alias: "panelMaxHeight",
|
|
1878
|
+
required: false
|
|
1879
|
+
}]
|
|
1880
|
+
}],
|
|
1881
|
+
appendTo: [{
|
|
1882
|
+
type: i0.Input,
|
|
1883
|
+
args: [{
|
|
1884
|
+
isSignal: true,
|
|
1885
|
+
alias: "appendTo",
|
|
1886
|
+
required: false
|
|
1887
|
+
}]
|
|
1888
|
+
}],
|
|
1889
|
+
viewportMargin: [{
|
|
1890
|
+
type: i0.Input,
|
|
1891
|
+
args: [{
|
|
1892
|
+
isSignal: true,
|
|
1893
|
+
alias: "viewportMargin",
|
|
1894
|
+
required: false
|
|
1895
|
+
}]
|
|
1896
|
+
}],
|
|
1897
|
+
virtualScroll: [{
|
|
1898
|
+
type: i0.Input,
|
|
1899
|
+
args: [{
|
|
1900
|
+
isSignal: true,
|
|
1901
|
+
alias: "virtualScroll",
|
|
1902
|
+
required: false
|
|
1903
|
+
}]
|
|
1904
|
+
}],
|
|
1905
|
+
virtualItemSize: [{
|
|
1906
|
+
type: i0.Input,
|
|
1907
|
+
args: [{
|
|
1908
|
+
isSignal: true,
|
|
1909
|
+
alias: "virtualItemSize",
|
|
1910
|
+
required: false
|
|
1911
|
+
}]
|
|
1912
|
+
}],
|
|
1913
|
+
virtualBuffer: [{
|
|
1914
|
+
type: i0.Input,
|
|
1915
|
+
args: [{
|
|
1916
|
+
isSignal: true,
|
|
1917
|
+
alias: "virtualBuffer",
|
|
1918
|
+
required: false
|
|
1919
|
+
}]
|
|
1920
|
+
}],
|
|
1921
|
+
lazy: [{
|
|
1922
|
+
type: i0.Input,
|
|
1923
|
+
args: [{
|
|
1924
|
+
isSignal: true,
|
|
1925
|
+
alias: "lazy",
|
|
1926
|
+
required: false
|
|
1927
|
+
}]
|
|
1928
|
+
}],
|
|
1929
|
+
closeOnSelect: [{
|
|
1930
|
+
type: i0.Input,
|
|
1931
|
+
args: [{
|
|
1932
|
+
isSignal: true,
|
|
1933
|
+
alias: "closeOnSelect",
|
|
1934
|
+
required: false
|
|
1935
|
+
}]
|
|
1936
|
+
}],
|
|
1937
|
+
disabled: [{
|
|
1938
|
+
type: i0.Input,
|
|
1939
|
+
args: [{
|
|
1940
|
+
isSignal: true,
|
|
1941
|
+
alias: "disabled",
|
|
1942
|
+
required: false
|
|
1943
|
+
}]
|
|
1944
|
+
}],
|
|
1945
|
+
required: [{
|
|
1946
|
+
type: i0.Input,
|
|
1947
|
+
args: [{
|
|
1948
|
+
isSignal: true,
|
|
1949
|
+
alias: "required",
|
|
1950
|
+
required: false
|
|
1951
|
+
}]
|
|
1952
|
+
}],
|
|
1953
|
+
invalid: [{
|
|
1954
|
+
type: i0.Input,
|
|
1955
|
+
args: [{
|
|
1956
|
+
isSignal: true,
|
|
1957
|
+
alias: "invalid",
|
|
1958
|
+
required: false
|
|
1959
|
+
}]
|
|
1960
|
+
}],
|
|
1961
|
+
touched: [{
|
|
1962
|
+
type: i0.Input,
|
|
1963
|
+
args: [{
|
|
1964
|
+
isSignal: true,
|
|
1965
|
+
alias: "touched",
|
|
1966
|
+
required: false
|
|
1967
|
+
}]
|
|
1968
|
+
}],
|
|
1969
|
+
fluid: [{
|
|
1970
|
+
type: i0.Input,
|
|
1971
|
+
args: [{
|
|
1972
|
+
isSignal: true,
|
|
1973
|
+
alias: "fluid",
|
|
1974
|
+
required: false
|
|
1975
|
+
}]
|
|
1976
|
+
}],
|
|
1977
|
+
changed: [{
|
|
1978
|
+
type: i0.Output,
|
|
1979
|
+
args: ["changed"]
|
|
1980
|
+
}],
|
|
1981
|
+
filterChanged: [{
|
|
1982
|
+
type: i0.Output,
|
|
1983
|
+
args: ["filterChanged"]
|
|
1984
|
+
}],
|
|
1985
|
+
lazyLoad: [{
|
|
1986
|
+
type: i0.Output,
|
|
1987
|
+
args: ["lazyLoad"]
|
|
1988
|
+
}],
|
|
1989
|
+
opened: [{
|
|
1990
|
+
type: i0.Output,
|
|
1991
|
+
args: ["opened"]
|
|
1992
|
+
}],
|
|
1993
|
+
closed: [{
|
|
1994
|
+
type: i0.Output,
|
|
1995
|
+
args: ["closed"]
|
|
1996
|
+
}],
|
|
1997
|
+
cleared: [{
|
|
1998
|
+
type: i0.Output,
|
|
1999
|
+
args: ["cleared"]
|
|
2000
|
+
}],
|
|
2001
|
+
focused: [{
|
|
2002
|
+
type: i0.Output,
|
|
2003
|
+
args: ["focused"]
|
|
2004
|
+
}],
|
|
2005
|
+
blurred: [{
|
|
2006
|
+
type: i0.Output,
|
|
2007
|
+
args: ["blurred"]
|
|
2008
|
+
}],
|
|
2009
|
+
touch: [{
|
|
2010
|
+
type: i0.Output,
|
|
2011
|
+
args: ["touch"]
|
|
2012
|
+
}],
|
|
2013
|
+
control: [{
|
|
2014
|
+
type: i0.ViewChild,
|
|
2015
|
+
args: ["control", { isSignal: true }]
|
|
2016
|
+
}],
|
|
2017
|
+
trigger: [{
|
|
2018
|
+
type: i0.ViewChild,
|
|
2019
|
+
args: ["trigger", { isSignal: true }]
|
|
2020
|
+
}],
|
|
2021
|
+
optionsPanel: [{
|
|
2022
|
+
type: i0.ViewChild,
|
|
2023
|
+
args: ["optionsPanel", { isSignal: true }]
|
|
2024
|
+
}],
|
|
2025
|
+
panelPortal: [{
|
|
2026
|
+
type: i0.ViewChild,
|
|
2027
|
+
args: [i0.forwardRef(() => ɵAerisAppendTo), { isSignal: true }]
|
|
2028
|
+
}],
|
|
2029
|
+
filterInput: [{
|
|
2030
|
+
type: i0.ViewChild,
|
|
2031
|
+
args: ["filterInput", { isSignal: true }]
|
|
2032
|
+
}],
|
|
2033
|
+
optionTemplate: [{
|
|
2034
|
+
type: i0.ContentChild,
|
|
2035
|
+
args: [i0.forwardRef(() => AerisMultiSelectOptionTemplate), { isSignal: true }]
|
|
2036
|
+
}],
|
|
2037
|
+
chipTemplate: [{
|
|
2038
|
+
type: i0.ContentChild,
|
|
2039
|
+
args: [i0.forwardRef(() => AerisMultiSelectChipTemplate), { isSignal: true }]
|
|
2040
|
+
}],
|
|
2041
|
+
headerTemplate: [{
|
|
2042
|
+
type: i0.ContentChild,
|
|
2043
|
+
args: [i0.forwardRef(() => AerisMultiSelectHeaderTemplate), { isSignal: true }]
|
|
2044
|
+
}],
|
|
2045
|
+
footerTemplate: [{
|
|
2046
|
+
type: i0.ContentChild,
|
|
2047
|
+
args: [i0.forwardRef(() => AerisMultiSelectFooterTemplate), { isSignal: true }]
|
|
2048
|
+
}],
|
|
2049
|
+
emptyTemplate: [{
|
|
2050
|
+
type: i0.ContentChild,
|
|
2051
|
+
args: [i0.forwardRef(() => AerisMultiSelectEmptyTemplate), { isSignal: true }]
|
|
2052
|
+
}]
|
|
2053
|
+
}
|
|
2054
|
+
});
|
|
1013
2055
|
const AerisMultiSelect = [
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
2056
|
+
AerisMultiSelectComponent,
|
|
2057
|
+
AerisMultiSelectOptionTemplate,
|
|
2058
|
+
AerisMultiSelectChipTemplate,
|
|
2059
|
+
AerisMultiSelectHeaderTemplate,
|
|
2060
|
+
AerisMultiSelectFooterTemplate,
|
|
2061
|
+
AerisMultiSelectEmptyTemplate
|
|
1020
2062
|
];
|
|
1021
2063
|
function optionalNumber(value) {
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
return Number.isFinite(number) ? Math.max(0, Math.trunc(number)) : undefined;
|
|
2064
|
+
if (value === void 0 || value === null || value === "") return void 0;
|
|
2065
|
+
const number = Number(value);
|
|
2066
|
+
return Number.isFinite(number) ? Math.max(0, Math.trunc(number)) : void 0;
|
|
1026
2067
|
}
|
|
1027
|
-
|
|
1028
|
-
/**
|
|
1029
|
-
* Generated bundle index. Do not edit.
|
|
1030
|
-
*/
|
|
1031
|
-
|
|
1032
2068
|
export { AerisMultiSelect, AerisMultiSelectChipTemplate, AerisMultiSelectComponent, AerisMultiSelectEmptyTemplate, AerisMultiSelectFooterTemplate, AerisMultiSelectHeaderTemplate, AerisMultiSelectOptionTemplate };
|
|
1033
|
-
|
|
2069
|
+
|
|
2070
|
+
//# sourceMappingURL=aeris-ui-core-multi-select.mjs.map
|