@aeris-ui/core 22.0.0-alpha.1 → 22.0.0-alpha.11
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +232 -191
- package/THIRD_PARTY_LICENSES.md +48 -0
- package/fesm2022/aeris-ui-core-accordion.mjs +666 -273
- package/fesm2022/aeris-ui-core-accordion.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs +284 -103
- package/fesm2022/aeris-ui-core-animate-on-scroll.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-complete.mjs +1301 -450
- package/fesm2022/aeris-ui-core-auto-complete.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-auto-focus.mjs +111 -61
- package/fesm2022/aeris-ui-core-auto-focus.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-avatar.mjs +383 -101
- package/fesm2022/aeris-ui-core-avatar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-badge.mjs +562 -115
- package/fesm2022/aeris-ui-core-badge.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-block-ui.mjs +221 -101
- package/fesm2022/aeris-ui-core-block-ui.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-breadcrumb.mjs +609 -199
- package/fesm2022/aeris-ui-core-breadcrumb.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button-forms.mjs +78 -0
- package/fesm2022/aeris-ui-core-button-forms.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-button-group.mjs +554 -36
- package/fesm2022/aeris-ui-core-button-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-button.mjs +911 -137
- package/fesm2022/aeris-ui-core-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-card.mjs +371 -101
- package/fesm2022/aeris-ui-core-card.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-carousel.mjs +835 -369
- package/fesm2022/aeris-ui-core-carousel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-cascade-select.mjs +1294 -525
- package/fesm2022/aeris-ui-core-cascade-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chart.mjs +594 -262
- package/fesm2022/aeris-ui-core-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-checkbox.mjs +619 -150
- package/fesm2022/aeris-ui-core-checkbox.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-chip.mjs +1109 -121
- package/fesm2022/aeris-ui-core-chip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-class-names.mjs +87 -65
- package/fesm2022/aeris-ui-core-class-names.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-code-block.mjs +687 -0
- package/fesm2022/aeris-ui-core-code-block.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-color-picker.mjs +2436 -1076
- package/fesm2022/aeris-ui-core-color-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-command-palette.mjs +996 -0
- package/fesm2022/aeris-ui-core-command-palette.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-compare.mjs +870 -338
- package/fesm2022/aeris-ui-core-compare.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs +1454 -575
- package/fesm2022/aeris-ui-core-confirm-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-confirm-popup.mjs +1499 -760
- package/fesm2022/aeris-ui-core-confirm-popup.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-context-menu.mjs +975 -449
- package/fesm2022/aeris-ui-core-context-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs +946 -0
- package/fesm2022/aeris-ui-core-date-picker-aeris-date-picker-input-jAhzMzLQ.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-date-picker.mjs +2538 -1183
- package/fesm2022/aeris-ui-core-date-picker.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dialog.mjs +1187 -368
- package/fesm2022/aeris-ui-core-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-divider.mjs +204 -43
- package/fesm2022/aeris-ui-core-divider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-drawer.mjs +1712 -345
- package/fesm2022/aeris-ui-core-drawer.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs +418 -254
- package/fesm2022/aeris-ui-core-dynamic-dialog.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-editor.mjs +1808 -783
- package/fesm2022/aeris-ui-core-editor.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-file-upload.mjs +1529 -536
- package/fesm2022/aeris-ui-core-file-upload.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-filter-service.mjs +258 -301
- package/fesm2022/aeris-ui-core-filter-service.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-fluid.mjs +68 -21
- package/fesm2022/aeris-ui-core-fluid.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-focus-trap.mjs +206 -182
- package/fesm2022/aeris-ui-core-focus-trap.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-form-field.mjs +688 -0
- package/fesm2022/aeris-ui-core-form-field.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-galleria.mjs +2821 -1143
- package/fesm2022/aeris-ui-core-galleria.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-glass.mjs +110 -33
- package/fesm2022/aeris-ui-core-glass.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-icon-field.mjs +426 -98
- package/fesm2022/aeris-ui-core-icon-field.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-inplace.mjs +496 -132
- package/fesm2022/aeris-ui-core-inplace.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-group.mjs +413 -107
- package/fesm2022/aeris-ui-core-input-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-mask.mjs +713 -257
- package/fesm2022/aeris-ui-core-input-mask.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-number.mjs +1095 -297
- package/fesm2022/aeris-ui-core-input-number.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-otp.mjs +678 -264
- package/fesm2022/aeris-ui-core-input-otp.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-input-text.mjs +703 -160
- package/fesm2022/aeris-ui-core-input-text.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-kbd.mjs +243 -0
- package/fesm2022/aeris-ui-core-kbd.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-key-filter.mjs +263 -201
- package/fesm2022/aeris-ui-core-key-filter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-listbox.mjs +789 -0
- package/fesm2022/aeris-ui-core-listbox.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-mega-menu.mjs +662 -388
- package/fesm2022/aeris-ui-core-mega-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menu.mjs +1111 -478
- package/fesm2022/aeris-ui-core-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-menubar.mjs +1081 -411
- package/fesm2022/aeris-ui-core-menubar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-message.mjs +513 -147
- package/fesm2022/aeris-ui-core-message.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-meter-group.mjs +641 -230
- package/fesm2022/aeris-ui-core-meter-group.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-multi-select.mjs +1832 -577
- package/fesm2022/aeris-ui-core-multi-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-navbar.mjs +1407 -0
- package/fesm2022/aeris-ui-core-navbar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-order-list.mjs +748 -220
- package/fesm2022/aeris-ui-core-order-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-organization-chart.mjs +521 -201
- package/fesm2022/aeris-ui-core-organization-chart.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-paginator.mjs +671 -127
- package/fesm2022/aeris-ui-core-paginator.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-panel.mjs +602 -210
- package/fesm2022/aeris-ui-core-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-password.mjs +1046 -269
- package/fesm2022/aeris-ui-core-password.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-pick-list.mjs +1796 -703
- package/fesm2022/aeris-ui-core-pick-list.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-popover.mjs +1354 -385
- package/fesm2022/aeris-ui-core-popover.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-bar.mjs +609 -182
- package/fesm2022/aeris-ui-core-progress-bar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-progress-spinner.mjs +428 -133
- package/fesm2022/aeris-ui-core-progress-spinner.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-radio-button.mjs +502 -132
- package/fesm2022/aeris-ui-core-radio-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-rating.mjs +506 -231
- package/fesm2022/aeris-ui-core-rating.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-panel.mjs +457 -154
- package/fesm2022/aeris-ui-core-scroll-panel.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-scroll-top.mjs +279 -69
- package/fesm2022/aeris-ui-core-scroll-top.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-select-native.mjs +145 -0
- package/fesm2022/aeris-ui-core-select-native.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-select.mjs +1984 -668
- package/fesm2022/aeris-ui-core-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-sidebar.mjs +1293 -0
- package/fesm2022/aeris-ui-core-sidebar.mjs.map +1 -0
- package/fesm2022/aeris-ui-core-skeleton.mjs +149 -45
- package/fesm2022/aeris-ui-core-skeleton.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-slider.mjs +884 -430
- package/fesm2022/aeris-ui-core-slider.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-speed-dial.mjs +882 -337
- package/fesm2022/aeris-ui-core-speed-dial.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-split-button.mjs +972 -268
- package/fesm2022/aeris-ui-core-split-button.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-splitter.mjs +831 -356
- package/fesm2022/aeris-ui-core-splitter.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-stepper.mjs +705 -256
- package/fesm2022/aeris-ui-core-stepper.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-style-class.mjs +587 -342
- package/fesm2022/aeris-ui-core-style-class.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-table.mjs +2927 -923
- package/fesm2022/aeris-ui-core-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tabs.mjs +855 -283
- package/fesm2022/aeris-ui-core-tabs.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-textarea.mjs +919 -221
- package/fesm2022/aeris-ui-core-textarea.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theme-builder.mjs +1368 -1407
- package/fesm2022/aeris-ui-core-theme-builder.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-theming.mjs +132 -144
- package/fesm2022/aeris-ui-core-theming.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tiered-menu.mjs +966 -447
- package/fesm2022/aeris-ui-core-tiered-menu.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-timeline.mjs +407 -131
- package/fesm2022/aeris-ui-core-timeline.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toast.mjs +1109 -384
- package/fesm2022/aeris-ui-core-toast.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toggle-switch.mjs +398 -132
- package/fesm2022/aeris-ui-core-toggle-switch.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-toolbar.mjs +1340 -131
- package/fesm2022/aeris-ui-core-toolbar.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tooltip.mjs +625 -330
- package/fesm2022/aeris-ui-core-tooltip.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-select.mjs +1650 -627
- package/fesm2022/aeris-ui-core-tree-select.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree-table.mjs +2442 -994
- package/fesm2022/aeris-ui-core-tree-table.mjs.map +1 -1
- package/fesm2022/aeris-ui-core-tree.mjs +1257 -670
- package/fesm2022/aeris-ui-core-tree.mjs.map +1 -1
- package/fesm2022/aeris-ui-core.mjs +1601 -312
- package/fesm2022/aeris-ui-core.mjs.map +1 -1
- package/package.json +48 -8
- package/schematics/ng-add/schema.json +1 -1
- package/schematics/runtime/schematics/ng-add/options.js +4 -4
- package/schematics/runtime/schematics/ng-add/options.js.map +1 -1
- package/schematics/runtime/schematics/ng-add/workspace.js +1 -1
- package/schematics/runtime/schematics/ng-add/workspace.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-color-derivation.js +1 -1
- package/schematics/runtime/theme-builder/aeris-contrast.js +38 -17
- package/schematics/runtime/theme-builder/aeris-contrast.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-foundation.js +13 -8
- package/schematics/runtime/theme-builder/aeris-foundation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js +33 -23
- package/schematics/runtime/theme-builder/aeris-semantic-tones.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-generator.js +8 -2
- package/schematics/runtime/theme-builder/aeris-theme-generator.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js +63 -76
- package/schematics/runtime/theme-builder/aeris-theme-resolver.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js +15 -5
- package/schematics/runtime/theme-builder/aeris-theme-tokens.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme-validation.js +18 -2
- package/schematics/runtime/theme-builder/aeris-theme-validation.js.map +1 -1
- package/schematics/runtime/theme-builder/aeris-theme.js +121 -34
- package/schematics/runtime/theme-builder/aeris-theme.js.map +1 -1
- package/styles/_choice-card.scss +93 -0
- package/styles/_fallback-colors.scss +10 -0
- package/styles/_icon-artwork.scss +14 -0
- package/styles/_icon-template.scss +42 -0
- package/styles/_mobile.scss +16 -0
- package/styles/_selection-icons.scss +12 -0
- package/styles/_table-pinning.scss +119 -0
- package/styles/_tokens.scss +5 -5
- package/styles/aeris.css +447 -137
- package/styles/controls.css +205 -35
- package/tools/aeris-theme.mjs +4 -4
- package/tools/aeris-theme.schema.json +18 -13
- package/types/aeris-ui-core-accordion.d.ts +167 -93
- package/types/aeris-ui-core-animate-on-scroll.d.ts +72 -31
- package/types/aeris-ui-core-auto-complete.d.ts +339 -140
- package/types/aeris-ui-core-auto-focus.d.ts +24 -16
- package/types/aeris-ui-core-avatar.d.ts +112 -42
- package/types/aeris-ui-core-badge.d.ts +160 -46
- package/types/aeris-ui-core-block-ui.d.ts +48 -27
- package/types/aeris-ui-core-breadcrumb.d.ts +163 -92
- package/types/aeris-ui-core-button-forms.d.ts +18 -0
- package/types/aeris-ui-core-button-group.d.ts +150 -16
- package/types/aeris-ui-core-button.d.ts +274 -67
- package/types/aeris-ui-core-card.d.ts +74 -37
- package/types/aeris-ui-core-carousel.d.ts +213 -117
- package/types/aeris-ui-core-cascade-select.d.ts +275 -123
- package/types/aeris-ui-core-chart.d.ts +150 -84
- package/types/aeris-ui-core-checkbox.d.ts +173 -54
- package/types/aeris-ui-core-chip.d.ts +316 -56
- package/types/aeris-ui-core-class-names.d.ts +22 -20
- package/types/aeris-ui-core-code-block.d.ts +201 -0
- package/types/aeris-ui-core-color-picker.d.ts +450 -143
- package/types/aeris-ui-core-command-palette.d.ts +267 -0
- package/types/aeris-ui-core-compare.d.ts +230 -102
- package/types/aeris-ui-core-confirm-dialog.d.ts +450 -245
- package/types/aeris-ui-core-confirm-popup.d.ts +442 -263
- package/types/aeris-ui-core-context-menu.d.ts +270 -146
- package/types/aeris-ui-core-date-picker.d.ts +594 -219
- package/types/aeris-ui-core-dialog.d.ts +301 -117
- package/types/aeris-ui-core-divider.d.ts +58 -20
- package/types/aeris-ui-core-drawer.d.ts +380 -112
- package/types/aeris-ui-core-dynamic-dialog.d.ts +162 -137
- package/types/aeris-ui-core-editor.d.ts +257 -123
- package/types/aeris-ui-core-file-upload.d.ts +385 -197
- package/types/aeris-ui-core-filter-service.d.ts +48 -52
- package/types/aeris-ui-core-fluid.d.ts +12 -9
- package/types/aeris-ui-core-focus-trap.d.ts +39 -31
- package/types/aeris-ui-core-form-field.d.ts +163 -0
- package/types/aeris-ui-core-galleria.d.ts +636 -256
- package/types/aeris-ui-core-glass.d.ts +24 -11
- package/types/aeris-ui-core-icon-field.d.ts +94 -32
- package/types/aeris-ui-core-inplace.d.ts +129 -62
- package/types/aeris-ui-core-input-group.d.ts +84 -33
- package/types/aeris-ui-core-input-mask.d.ts +201 -69
- package/types/aeris-ui-core-input-number.d.ts +291 -87
- package/types/aeris-ui-core-input-otp.d.ts +191 -81
- package/types/aeris-ui-core-input-text.d.ts +195 -60
- package/types/aeris-ui-core-kbd.d.ts +74 -0
- package/types/aeris-ui-core-key-filter.d.ts +53 -39
- package/types/aeris-ui-core-listbox.d.ts +222 -0
- package/types/aeris-ui-core-mega-menu.d.ts +181 -121
- package/types/aeris-ui-core-menu.d.ts +283 -168
- package/types/aeris-ui-core-menubar.d.ts +289 -135
- package/types/aeris-ui-core-message.d.ts +138 -60
- package/types/aeris-ui-core-meter-group.d.ts +169 -90
- package/types/aeris-ui-core-multi-select.d.ts +469 -180
- package/types/aeris-ui-core-navbar.d.ts +208 -0
- package/types/aeris-ui-core-order-list.d.ts +168 -66
- package/types/aeris-ui-core-organization-chart.d.ts +139 -77
- package/types/aeris-ui-core-paginator.d.ts +129 -38
- package/types/aeris-ui-core-panel.d.ts +149 -78
- package/types/aeris-ui-core-password.d.ts +276 -102
- package/types/aeris-ui-core-pick-list.d.ts +428 -179
- package/types/aeris-ui-core-popover.d.ts +294 -105
- package/types/aeris-ui-core-progress-bar.d.ts +163 -73
- package/types/aeris-ui-core-progress-spinner.d.ts +116 -48
- package/types/aeris-ui-core-radio-button.d.ts +146 -50
- package/types/aeris-ui-core-rating.d.ts +149 -76
- package/types/aeris-ui-core-scroll-panel.d.ts +142 -64
- package/types/aeris-ui-core-scroll-top.d.ts +73 -29
- package/types/aeris-ui-core-select-native.d.ts +40 -0
- package/types/aeris-ui-core-select.d.ts +487 -217
- package/types/aeris-ui-core-sidebar.d.ts +220 -0
- package/types/aeris-ui-core-skeleton.d.ts +39 -17
- package/types/aeris-ui-core-slider.d.ts +270 -115
- package/types/aeris-ui-core-speed-dial.d.ts +241 -111
- package/types/aeris-ui-core-split-button.d.ts +267 -113
- package/types/aeris-ui-core-splitter.d.ts +224 -106
- package/types/aeris-ui-core-stepper.d.ts +184 -91
- package/types/aeris-ui-core-style-class.d.ts +141 -71
- package/types/aeris-ui-core-table.d.ts +729 -304
- package/types/aeris-ui-core-tabs.d.ts +193 -76
- package/types/aeris-ui-core-textarea.d.ts +271 -78
- package/types/aeris-ui-core-theme-builder.d.ts +220 -463
- package/types/aeris-ui-core-theming.d.ts +42 -45
- package/types/aeris-ui-core-tiered-menu.d.ts +257 -142
- package/types/aeris-ui-core-timeline.d.ts +109 -71
- package/types/aeris-ui-core-toast.d.ts +231 -115
- package/types/aeris-ui-core-toggle-switch.d.ts +125 -51
- package/types/aeris-ui-core-toolbar.d.ts +314 -47
- package/types/aeris-ui-core-tooltip.d.ts +157 -88
- package/types/aeris-ui-core-tree-select.d.ts +394 -171
- package/types/aeris-ui-core-tree-table.d.ts +629 -288
- package/types/aeris-ui-core-tree.d.ts +294 -165
- package/types/aeris-ui-core.d.ts +338 -74
|
@@ -1,510 +1,1080 @@
|
|
|
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, ɵAerisIcon, ɵ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.3",
|
|
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.3",
|
|
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.3",
|
|
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.3",
|
|
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.3",
|
|
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.3",
|
|
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.3",
|
|
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.3",
|
|
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.3",
|
|
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.3",
|
|
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.3",
|
|
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.3",
|
|
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.3",
|
|
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.3",
|
|
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.3",
|
|
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
|
+
clearIconTemplate = input(...ngDevMode ? [void 0, { debugName: "clearIconTemplate" }] : /* istanbul ignore next */ []);
|
|
154
|
+
removeIconTemplate = input(...ngDevMode ? [void 0, { debugName: "removeIconTemplate" }] : /* istanbul ignore next */ []);
|
|
155
|
+
dropdownIconTemplate = input(...ngDevMode ? [void 0, { debugName: "dropdownIconTemplate" }] : /* istanbul ignore next */ []);
|
|
156
|
+
filterIconTemplate = input(...ngDevMode ? [void 0, { debugName: "filterIconTemplate" }] : /* istanbul ignore next */ []);
|
|
157
|
+
loadingIconTemplate = input(...ngDevMode ? [void 0, { debugName: "loadingIconTemplate" }] : /* istanbul ignore next */ []);
|
|
158
|
+
panelPointerInteraction = false;
|
|
159
|
+
dismissOverlay = () => {
|
|
160
|
+
this.closePanel(true);
|
|
161
|
+
return true;
|
|
162
|
+
};
|
|
163
|
+
options = input.required(...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
164
|
+
value = model([], ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
165
|
+
inputId = input("", ...ngDevMode ? [{ debugName: "inputId" }] : /* istanbul ignore next */ []);
|
|
166
|
+
name = input("", ...ngDevMode ? [{ debugName: "name" }] : /* istanbul ignore next */ []);
|
|
167
|
+
valueSeparator = input(",", ...ngDevMode ? [{ debugName: "valueSeparator" }] : /* istanbul ignore next */ []);
|
|
168
|
+
placeholder = input("Select options", ...ngDevMode ? [{ debugName: "placeholder" }] : /* istanbul ignore next */ []);
|
|
169
|
+
ariaLabel = input("", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
170
|
+
ariaLabelledBy = input("", ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
171
|
+
ariaDescribedBy = input("", ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
172
|
+
listboxAriaLabel = input("Options", ...ngDevMode ? [{ debugName: "listboxAriaLabel" }] : /* istanbul ignore next */ []);
|
|
173
|
+
size = input("md", ...ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []);
|
|
174
|
+
appearance = input("outline", ...ngDevMode ? [{ debugName: "appearance" }] : /* istanbul ignore next */ []);
|
|
175
|
+
display = input("summary", ...ngDevMode ? [{ debugName: "display" }] : /* istanbul ignore next */ []);
|
|
176
|
+
selectedItemsLabel = input("{0} items selected", ...ngDevMode ? [{ debugName: "selectedItemsLabel" }] : /* istanbul ignore next */ []);
|
|
177
|
+
maxSelectedLabels = input(3, {
|
|
178
|
+
...ngDevMode ? { debugName: "maxSelectedLabels" } : /* istanbul ignore next */ {},
|
|
179
|
+
transform: numberAttribute
|
|
180
|
+
});
|
|
181
|
+
selectionLimit = input(void 0, {
|
|
182
|
+
...ngDevMode ? { debugName: "selectionLimit" } : /* istanbul ignore next */ {},
|
|
183
|
+
transform: optionalNumber
|
|
184
|
+
});
|
|
185
|
+
selectionLimitMessage = input("Selection limit reached", ...ngDevMode ? [{ debugName: "selectionLimitMessage" }] : /* istanbul ignore next */ []);
|
|
186
|
+
showSelectAll = input(true, {
|
|
187
|
+
...ngDevMode ? { debugName: "showSelectAll" } : /* istanbul ignore next */ {},
|
|
188
|
+
transform: booleanAttribute
|
|
189
|
+
});
|
|
190
|
+
selectAllLabel = input("Select all", ...ngDevMode ? [{ debugName: "selectAllLabel" }] : /* istanbul ignore next */ []);
|
|
191
|
+
clearable = input(false, {
|
|
192
|
+
...ngDevMode ? { debugName: "clearable" } : /* istanbul ignore next */ {},
|
|
193
|
+
transform: booleanAttribute
|
|
194
|
+
});
|
|
195
|
+
clearButtonAriaLabel = input("Clear selections", ...ngDevMode ? [{ debugName: "clearButtonAriaLabel" }] : /* istanbul ignore next */ []);
|
|
196
|
+
filter = input(false, {
|
|
197
|
+
...ngDevMode ? { debugName: "filter" } : /* istanbul ignore next */ {},
|
|
198
|
+
transform: booleanAttribute
|
|
199
|
+
});
|
|
200
|
+
filterValue = model("", ...ngDevMode ? [{ debugName: "filterValue" }] : /* istanbul ignore next */ []);
|
|
201
|
+
filterMatchMode = input("contains", ...ngDevMode ? [{ debugName: "filterMatchMode" }] : /* istanbul ignore next */ []);
|
|
202
|
+
filterFields = input(["label"], ...ngDevMode ? [{ debugName: "filterFields" }] : /* istanbul ignore next */ []);
|
|
203
|
+
filterLocale = input(...ngDevMode ? [void 0, { debugName: "filterLocale" }] : /* istanbul ignore next */ []);
|
|
204
|
+
filterPlaceholder = input("Search options", ...ngDevMode ? [{ debugName: "filterPlaceholder" }] : /* istanbul ignore next */ []);
|
|
205
|
+
filterAriaLabel = input("Search options", ...ngDevMode ? [{ debugName: "filterAriaLabel" }] : /* istanbul ignore next */ []);
|
|
206
|
+
filterClearAriaLabel = input("Clear search", ...ngDevMode ? [{ debugName: "filterClearAriaLabel" }] : /* istanbul ignore next */ []);
|
|
207
|
+
resetFilterOnClose = input(true, {
|
|
208
|
+
...ngDevMode ? { debugName: "resetFilterOnClose" } : /* istanbul ignore next */ {},
|
|
209
|
+
transform: booleanAttribute
|
|
210
|
+
});
|
|
211
|
+
autofocusFilter = input(true, {
|
|
212
|
+
...ngDevMode ? { debugName: "autofocusFilter" } : /* istanbul ignore next */ {},
|
|
213
|
+
transform: booleanAttribute
|
|
214
|
+
});
|
|
215
|
+
emptyMessage = input("No options available", ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
|
|
216
|
+
emptyFilterMessage = input("No matching options", ...ngDevMode ? [{ debugName: "emptyFilterMessage" }] : /* istanbul ignore next */ []);
|
|
217
|
+
loading = input(false, {
|
|
218
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
219
|
+
transform: booleanAttribute
|
|
220
|
+
});
|
|
221
|
+
loadingMessage = input("Loading options", ...ngDevMode ? [{ debugName: "loadingMessage" }] : /* istanbul ignore next */ []);
|
|
222
|
+
panelMaxHeight = input("18rem", ...ngDevMode ? [{ debugName: "panelMaxHeight" }] : /* istanbul ignore next */ []);
|
|
223
|
+
appendTo = input(...ngDevMode ? [void 0, { debugName: "appendTo" }] : /* istanbul ignore next */ []);
|
|
224
|
+
viewportMargin = input(8, ...ngDevMode ? [{ debugName: "viewportMargin" }] : /* istanbul ignore next */ []);
|
|
225
|
+
virtualScroll = input(false, {
|
|
226
|
+
...ngDevMode ? { debugName: "virtualScroll" } : /* istanbul ignore next */ {},
|
|
227
|
+
transform: booleanAttribute
|
|
228
|
+
});
|
|
229
|
+
virtualItemSize = input(40, {
|
|
230
|
+
...ngDevMode ? { debugName: "virtualItemSize" } : /* istanbul ignore next */ {},
|
|
231
|
+
transform: numberAttribute
|
|
232
|
+
});
|
|
233
|
+
virtualBuffer = input(4, {
|
|
234
|
+
...ngDevMode ? { debugName: "virtualBuffer" } : /* istanbul ignore next */ {},
|
|
235
|
+
transform: numberAttribute
|
|
236
|
+
});
|
|
237
|
+
lazy = input(false, {
|
|
238
|
+
...ngDevMode ? { debugName: "lazy" } : /* istanbul ignore next */ {},
|
|
239
|
+
transform: booleanAttribute
|
|
240
|
+
});
|
|
241
|
+
closeOnSelect = input(false, {
|
|
242
|
+
...ngDevMode ? { debugName: "closeOnSelect" } : /* istanbul ignore next */ {},
|
|
243
|
+
transform: booleanAttribute
|
|
244
|
+
});
|
|
245
|
+
disabled = input(false, {
|
|
246
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
247
|
+
transform: booleanAttribute
|
|
248
|
+
});
|
|
249
|
+
required = input(false, {
|
|
250
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
251
|
+
transform: booleanAttribute
|
|
252
|
+
});
|
|
253
|
+
invalid = input(false, {
|
|
254
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
255
|
+
transform: booleanAttribute
|
|
256
|
+
});
|
|
257
|
+
touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
258
|
+
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
259
|
+
fluid = input(false, {
|
|
260
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
261
|
+
transform: booleanAttribute
|
|
262
|
+
});
|
|
263
|
+
changed = output();
|
|
264
|
+
filterChanged = output();
|
|
265
|
+
lazyLoad = output();
|
|
266
|
+
opened = output();
|
|
267
|
+
closed = output();
|
|
268
|
+
cleared = output();
|
|
269
|
+
focused = output();
|
|
270
|
+
blurred = output();
|
|
271
|
+
touch = output();
|
|
272
|
+
open = signal(false, ...ngDevMode ? [{ debugName: "open" }] : /* istanbul ignore next */ []);
|
|
273
|
+
activeValue = signal(null, ...ngDevMode ? [{ debugName: "activeValue" }] : /* istanbul ignore next */ []);
|
|
274
|
+
virtualStart = signal(0, ...ngDevMode ? [{ debugName: "virtualStart" }] : /* istanbul ignore next */ []);
|
|
275
|
+
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
276
|
+
effectiveDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "effectiveDisabled" }] : /* istanbul ignore next */ []);
|
|
277
|
+
selectedOptions = computed(() => {
|
|
278
|
+
const values = new Set(this.value());
|
|
279
|
+
return this.options().filter((option) => values.has(option.value));
|
|
280
|
+
}, ...ngDevMode ? [{ debugName: "selectedOptions" }] : /* istanbul ignore next */ []);
|
|
281
|
+
visibleSelectedOptions = computed(() => this.selectedOptions().slice(0, Math.max(0, this.maxSelectedLabels())), ...ngDevMode ? [{ debugName: "visibleSelectedOptions" }] : /* istanbul ignore next */ []);
|
|
282
|
+
hiddenSelectedCount = computed(() => Math.max(0, this.selectedOptions().length - this.visibleSelectedOptions().length), ...ngDevMode ? [{ debugName: "hiddenSelectedCount" }] : /* istanbul ignore next */ []);
|
|
283
|
+
selectionSummary = computed(() => {
|
|
284
|
+
const selected = this.selectedOptions();
|
|
285
|
+
if (selected.length <= Math.max(1, this.maxSelectedLabels())) return selected.map((option) => option.label).join(", ");
|
|
286
|
+
return this.selectedItemsLabel().replace("{0}", String(selected.length));
|
|
287
|
+
}, ...ngDevMode ? [{ debugName: "selectionSummary" }] : /* istanbul ignore next */ []);
|
|
288
|
+
filteredOptions = computed(() => filterSelectOptions(this.options(), this.filterValue(), this.filterFields(), this.filterMatchMode(), this.filterLocale()), ...ngDevMode ? [{ debugName: "filteredOptions" }] : /* istanbul ignore next */ []);
|
|
289
|
+
groupedOptions = computed(() => groupSelectOptions(this.filteredOptions()), ...ngDevMode ? [{ debugName: "groupedOptions" }] : /* istanbul ignore next */ []);
|
|
290
|
+
virtualRange = computed(() => selectVirtualRange(this.filteredOptions().length, this.virtualStart(), this.panelMaxHeight(), this.virtualItemSize(), this.virtualBuffer()), ...ngDevMode ? [{ debugName: "virtualRange" }] : /* istanbul ignore next */ []);
|
|
291
|
+
renderedOptions = computed(() => {
|
|
292
|
+
if (!this.virtualScroll()) return this.filteredOptions();
|
|
293
|
+
const range = this.virtualRange();
|
|
294
|
+
return this.filteredOptions().slice(range.start, range.end);
|
|
295
|
+
}, ...ngDevMode ? [{ debugName: "renderedOptions" }] : /* istanbul ignore next */ []);
|
|
296
|
+
renderedGroups = computed(() => this.virtualScroll() ? [{
|
|
297
|
+
label: null,
|
|
298
|
+
options: this.renderedOptions()
|
|
299
|
+
}] : this.groupedOptions(), ...ngDevMode ? [{ debugName: "renderedGroups" }] : /* istanbul ignore next */ []);
|
|
300
|
+
virtualTopPadding = computed(() => this.virtualScroll() ? this.virtualRange().topPadding : 0, ...ngDevMode ? [{ debugName: "virtualTopPadding" }] : /* istanbul ignore next */ []);
|
|
301
|
+
virtualBottomPadding = computed(() => this.virtualScroll() ? this.virtualRange().bottomPadding : 0, ...ngDevMode ? [{ debugName: "virtualBottomPadding" }] : /* istanbul ignore next */ []);
|
|
302
|
+
selectableOptions = computed(() => this.options().filter((option) => !option.disabled), ...ngDevMode ? [{ debugName: "selectableOptions" }] : /* istanbul ignore next */ []);
|
|
303
|
+
filteredSelectableOptions = computed(() => this.filteredOptions().filter((option) => !option.disabled), ...ngDevMode ? [{ debugName: "filteredSelectableOptions" }] : /* istanbul ignore next */ []);
|
|
304
|
+
allFilteredSelected = computed(() => {
|
|
305
|
+
const values = new Set(this.value());
|
|
306
|
+
const options = this.filteredSelectableOptions();
|
|
307
|
+
return options.length > 0 && options.every((option) => values.has(option.value));
|
|
308
|
+
}, ...ngDevMode ? [{ debugName: "allFilteredSelected" }] : /* istanbul ignore next */ []);
|
|
309
|
+
someFilteredSelected = computed(() => {
|
|
310
|
+
const values = new Set(this.value());
|
|
311
|
+
const count = this.filteredSelectableOptions().filter((option) => values.has(option.value)).length;
|
|
312
|
+
return count > 0 && count < this.filteredSelectableOptions().length;
|
|
313
|
+
}, ...ngDevMode ? [{ debugName: "someFilteredSelected" }] : /* istanbul ignore next */ []);
|
|
314
|
+
selectionLimitReached = computed(() => {
|
|
315
|
+
const limit = this.selectionLimit();
|
|
316
|
+
return limit !== void 0 && this.value().length >= limit;
|
|
317
|
+
}, ...ngDevMode ? [{ debugName: "selectionLimitReached" }] : /* istanbul ignore next */ []);
|
|
318
|
+
selectAllDisabled = computed(() => !this.allFilteredSelected() && this.filteredSelectableOptions().every((option) => this.optionUnavailable(option)), ...ngDevMode ? [{ debugName: "selectAllDisabled" }] : /* istanbul ignore next */ []);
|
|
319
|
+
showClearButton = computed(() => this.clearable() && this.value().length > 0 && !this.effectiveDisabled(), ...ngDevMode ? [{ debugName: "showClearButton" }] : /* istanbul ignore next */ []);
|
|
320
|
+
activeOptionId = computed(() => {
|
|
321
|
+
const option = this.options().find((candidate) => candidate.value === this.activeValue());
|
|
322
|
+
return option ? this.optionId(option) : null;
|
|
323
|
+
}, ...ngDevMode ? [{ debugName: "activeOptionId" }] : /* istanbul ignore next */ []);
|
|
324
|
+
panelId = `aeris-multi-select-panel-${++multiSelectId}`;
|
|
325
|
+
listboxId = `${this.panelId}-listbox`;
|
|
326
|
+
resolvedInputId = computed(() => this.inputId() || `${this.panelId}-trigger`, ...ngDevMode ? [{ debugName: "resolvedInputId" }] : /* istanbul ignore next */ []);
|
|
327
|
+
host = inject(ElementRef);
|
|
328
|
+
control = viewChild("control", ...ngDevMode ? [{ debugName: "control" }] : /* istanbul ignore next */ []);
|
|
329
|
+
trigger = viewChild("trigger", ...ngDevMode ? [{ debugName: "trigger" }] : /* istanbul ignore next */ []);
|
|
330
|
+
optionsPanel = viewChild("optionsPanel", ...ngDevMode ? [{ debugName: "optionsPanel" }] : /* istanbul ignore next */ []);
|
|
331
|
+
panelPortal = viewChild(ɵAerisAppendTo, ...ngDevMode ? [{ debugName: "panelPortal" }] : /* istanbul ignore next */ []);
|
|
332
|
+
filterInput = viewChild("filterInput", ...ngDevMode ? [{ debugName: "filterInput" }] : /* istanbul ignore next */ []);
|
|
333
|
+
optionTemplate = contentChild(AerisMultiSelectOptionTemplate, ...ngDevMode ? [{ debugName: "optionTemplate" }] : /* istanbul ignore next */ []);
|
|
334
|
+
chipTemplate = contentChild(AerisMultiSelectChipTemplate, ...ngDevMode ? [{ debugName: "chipTemplate" }] : /* istanbul ignore next */ []);
|
|
335
|
+
headerTemplate = contentChild(AerisMultiSelectHeaderTemplate, ...ngDevMode ? [{ debugName: "headerTemplate" }] : /* istanbul ignore next */ []);
|
|
336
|
+
footerTemplate = contentChild(AerisMultiSelectFooterTemplate, ...ngDevMode ? [{ debugName: "footerTemplate" }] : /* istanbul ignore next */ []);
|
|
337
|
+
emptyTemplate = contentChild(AerisMultiSelectEmptyTemplate, ...ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []);
|
|
338
|
+
onChange = () => void 0;
|
|
339
|
+
onTouched = () => void 0;
|
|
340
|
+
writeValue(value) {
|
|
341
|
+
this.value.set(Array.isArray(value) ? [...new Set(value.map(String))] : []);
|
|
342
|
+
}
|
|
343
|
+
registerOnChange(callback) {
|
|
344
|
+
this.onChange = callback;
|
|
345
|
+
}
|
|
346
|
+
registerOnTouched(callback) {
|
|
347
|
+
this.onTouched = callback;
|
|
348
|
+
}
|
|
349
|
+
setDisabledState(disabled) {
|
|
350
|
+
this.formDisabled.set(disabled);
|
|
351
|
+
if (disabled) this.closePanel(false);
|
|
352
|
+
}
|
|
353
|
+
focus(options) {
|
|
354
|
+
this.trigger()?.nativeElement.focus(options);
|
|
355
|
+
}
|
|
356
|
+
openPanel() {
|
|
357
|
+
if (this.effectiveDisabled() || this.open()) return;
|
|
358
|
+
if (this.resetFilterOnClose()) this.filterValue.set("");
|
|
359
|
+
this.activeValue.set(this.initialActiveValue());
|
|
360
|
+
this.open.set(true);
|
|
361
|
+
this.opened.emit();
|
|
362
|
+
this.emitLazyRange();
|
|
363
|
+
if (this.filter() && this.autofocusFilter()) queueMicrotask(() => this.filterInput()?.nativeElement.focus());
|
|
364
|
+
}
|
|
365
|
+
closePanel(restoreFocus = false) {
|
|
366
|
+
this.panelPointerInteraction = false;
|
|
367
|
+
if (!this.open()) return;
|
|
368
|
+
this.panelPortal()?.restore();
|
|
369
|
+
this.open.set(false);
|
|
370
|
+
if (this.resetFilterOnClose()) this.filterValue.set("");
|
|
371
|
+
this.closed.emit();
|
|
372
|
+
if (restoreFocus) queueMicrotask(() => this.focus());
|
|
373
|
+
}
|
|
374
|
+
toggle() {
|
|
375
|
+
this.open() ? this.closePanel(false) : this.openPanel();
|
|
376
|
+
}
|
|
377
|
+
clear() {
|
|
378
|
+
if (!this.value().length || this.effectiveDisabled()) return;
|
|
379
|
+
this.setValue([]);
|
|
380
|
+
this.cleared.emit();
|
|
381
|
+
queueMicrotask(() => this.focus());
|
|
382
|
+
}
|
|
383
|
+
reset() {
|
|
384
|
+
if (this.effectiveDisabled()) return;
|
|
385
|
+
this.setValue([]);
|
|
386
|
+
this.filterValue.set("");
|
|
387
|
+
this.closePanel(false);
|
|
388
|
+
}
|
|
389
|
+
selectAll() {
|
|
390
|
+
if (this.selectAllDisabled()) return;
|
|
391
|
+
const next = new Set(this.value());
|
|
392
|
+
for (const option of this.filteredSelectableOptions()) if (!this.optionUnavailable(option)) next.add(option.value);
|
|
393
|
+
this.setValue([...next]);
|
|
394
|
+
}
|
|
395
|
+
isSelected(option) {
|
|
396
|
+
return this.value().includes(option.value);
|
|
397
|
+
}
|
|
398
|
+
optionUnavailable(option) {
|
|
399
|
+
return Boolean(option.disabled || !this.isSelected(option) && this.selectionLimitReached());
|
|
400
|
+
}
|
|
401
|
+
activate(option) {
|
|
402
|
+
if (!this.optionUnavailable(option)) this.activeValue.set(option.value);
|
|
403
|
+
}
|
|
404
|
+
toggleOption(option, event) {
|
|
405
|
+
if (this.optionUnavailable(option)) return;
|
|
406
|
+
const selected = this.isSelected(option);
|
|
407
|
+
const next = selected ? this.value().filter((value) => value !== option.value) : [...this.value(), option.value];
|
|
408
|
+
this.setValue(next);
|
|
409
|
+
this.changed.emit({
|
|
410
|
+
originalEvent: event,
|
|
411
|
+
value: next,
|
|
412
|
+
option,
|
|
413
|
+
selected: !selected
|
|
414
|
+
});
|
|
415
|
+
if (this.closeOnSelect()) this.closePanel(true);
|
|
416
|
+
}
|
|
417
|
+
preservePointerFocus(event) {
|
|
418
|
+
if (event.pointerType === "mouse") event.preventDefault();
|
|
419
|
+
}
|
|
420
|
+
handlePanelPointerDown(event) {
|
|
421
|
+
this.panelPointerInteraction = event.pointerType !== "mouse";
|
|
422
|
+
}
|
|
423
|
+
endPanelPointerInteraction() {
|
|
424
|
+
this.panelPointerInteraction = false;
|
|
425
|
+
}
|
|
426
|
+
toggleSelectAll(event) {
|
|
427
|
+
if (this.allFilteredSelected()) {
|
|
428
|
+
const filtered = new Set(this.filteredSelectableOptions().map((option) => option.value));
|
|
429
|
+
const next = this.value().filter((value) => !filtered.has(value));
|
|
430
|
+
this.setValue(next);
|
|
431
|
+
this.changed.emit({
|
|
432
|
+
originalEvent: event,
|
|
433
|
+
value: next,
|
|
434
|
+
option: null,
|
|
435
|
+
selected: false
|
|
436
|
+
});
|
|
437
|
+
} else {
|
|
438
|
+
const before = this.value();
|
|
439
|
+
this.selectAll();
|
|
440
|
+
this.changed.emit({
|
|
441
|
+
originalEvent: event,
|
|
442
|
+
value: this.value(),
|
|
443
|
+
option: null,
|
|
444
|
+
selected: this.value().length > before.length
|
|
445
|
+
});
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
removeChip(option, event) {
|
|
449
|
+
event.preventDefault();
|
|
450
|
+
event.stopPropagation();
|
|
451
|
+
this.toggleOption(option, event);
|
|
452
|
+
this.focus();
|
|
453
|
+
}
|
|
454
|
+
removeCallback(option) {
|
|
455
|
+
return () => {
|
|
456
|
+
if (this.effectiveDisabled() || option.disabled) return;
|
|
457
|
+
if (this.isSelected(option)) {
|
|
458
|
+
const next = this.value().filter((value) => value !== option.value);
|
|
459
|
+
this.setValue(next);
|
|
460
|
+
}
|
|
461
|
+
};
|
|
462
|
+
}
|
|
463
|
+
handleClearClick(event) {
|
|
464
|
+
event.preventDefault();
|
|
465
|
+
event.stopPropagation();
|
|
466
|
+
this.clear();
|
|
467
|
+
}
|
|
468
|
+
handleTriggerKeydown(event) {
|
|
469
|
+
if ((event.key === "Backspace" || event.key === "Delete") && this.display() === "chips" && this.selectedOptions().length > 0) {
|
|
470
|
+
event.preventDefault();
|
|
471
|
+
const option = this.selectedOptions().at(-1);
|
|
472
|
+
if (option) this.toggleOption(option, event);
|
|
473
|
+
return;
|
|
474
|
+
}
|
|
475
|
+
if (event.key === "Escape") {
|
|
476
|
+
if (this.open()) {
|
|
477
|
+
event.preventDefault();
|
|
478
|
+
this.closePanel(false);
|
|
479
|
+
}
|
|
480
|
+
return;
|
|
481
|
+
}
|
|
482
|
+
if (event.key === "Tab") {
|
|
483
|
+
this.closePanel(false);
|
|
484
|
+
return;
|
|
485
|
+
}
|
|
486
|
+
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
487
|
+
event.preventDefault();
|
|
488
|
+
if (!this.open()) this.openPanel();
|
|
489
|
+
else this.moveActive(event.key === "ArrowDown" ? 1 : -1);
|
|
490
|
+
return;
|
|
491
|
+
}
|
|
492
|
+
if (event.key === "Home" || event.key === "End") {
|
|
493
|
+
if (!this.open()) return;
|
|
494
|
+
event.preventDefault();
|
|
495
|
+
this.activeValue.set(boundarySelectValue(this.availableActiveOptions(), event.key === "Home" ? "start" : "end"));
|
|
496
|
+
return;
|
|
497
|
+
}
|
|
498
|
+
if (event.key === "Enter" || event.key === " ") {
|
|
499
|
+
event.preventDefault();
|
|
500
|
+
if (!this.open()) this.openPanel();
|
|
501
|
+
else this.toggleActive(event);
|
|
502
|
+
}
|
|
503
|
+
}
|
|
504
|
+
handleFilterKeydown(event) {
|
|
505
|
+
if (event.key === "Escape") {
|
|
506
|
+
event.preventDefault();
|
|
507
|
+
this.closePanel(true);
|
|
508
|
+
} else if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
509
|
+
event.preventDefault();
|
|
510
|
+
this.moveActive(event.key === "ArrowDown" ? 1 : -1);
|
|
511
|
+
} else if (event.key === "Home" || event.key === "End") {
|
|
512
|
+
event.preventDefault();
|
|
513
|
+
this.activeValue.set(boundarySelectValue(this.availableActiveOptions(), event.key === "Home" ? "start" : "end"));
|
|
514
|
+
} else if (event.key === "Enter" || event.key === " ") {
|
|
515
|
+
event.preventDefault();
|
|
516
|
+
this.toggleActive(event);
|
|
517
|
+
}
|
|
518
|
+
}
|
|
519
|
+
handleFilterInput(event) {
|
|
520
|
+
const value = event.target.value;
|
|
521
|
+
this.filterValue.set(value);
|
|
522
|
+
this.virtualStart.set(0);
|
|
523
|
+
this.activeValue.set(this.initialActiveValue());
|
|
524
|
+
this.filterChanged.emit({
|
|
525
|
+
originalEvent: event,
|
|
526
|
+
query: value
|
|
527
|
+
});
|
|
528
|
+
}
|
|
529
|
+
clearFilter() {
|
|
530
|
+
this.filterValue.set("");
|
|
531
|
+
this.virtualStart.set(0);
|
|
532
|
+
this.activeValue.set(this.initialActiveValue());
|
|
533
|
+
queueMicrotask(() => this.filterInput()?.nativeElement.focus());
|
|
534
|
+
}
|
|
535
|
+
handleListScroll(event) {
|
|
536
|
+
if (!this.virtualScroll()) return;
|
|
537
|
+
const list = event.currentTarget;
|
|
538
|
+
const start = Math.max(0, Math.floor(list.scrollTop / Math.max(1, this.virtualItemSize())) - this.virtualBuffer());
|
|
539
|
+
if (start === this.virtualStart()) return;
|
|
540
|
+
this.virtualStart.set(start);
|
|
541
|
+
this.emitLazyRange();
|
|
542
|
+
}
|
|
543
|
+
handleFocusOut(event) {
|
|
544
|
+
const next = event.relatedTarget;
|
|
545
|
+
if (next instanceof Node && (this.host.nativeElement.contains(next) || this.optionsPanel()?.nativeElement.contains(next))) return;
|
|
546
|
+
const panel = this.optionsPanel()?.nativeElement;
|
|
547
|
+
if (this.panelPointerInteraction && next instanceof Node && panel && next.contains(panel)) return;
|
|
548
|
+
if (this.open() && next === null) return;
|
|
549
|
+
this.closePanel(false);
|
|
550
|
+
this.onTouched();
|
|
551
|
+
this.touch.emit();
|
|
552
|
+
this.blurred.emit(event);
|
|
553
|
+
}
|
|
554
|
+
optionId(option) {
|
|
555
|
+
return `${this.listboxId}-option-${this.options().indexOf(option)}`;
|
|
556
|
+
}
|
|
557
|
+
setValue(value) {
|
|
558
|
+
const unique = [...new Set(value)];
|
|
559
|
+
this.value.set(unique);
|
|
560
|
+
this.onChange(unique);
|
|
561
|
+
}
|
|
562
|
+
availableActiveOptions() {
|
|
563
|
+
return this.filteredOptions().map((option) => ({
|
|
564
|
+
...option,
|
|
565
|
+
disabled: this.optionUnavailable(option)
|
|
566
|
+
}));
|
|
567
|
+
}
|
|
568
|
+
initialActiveValue() {
|
|
569
|
+
return this.filteredOptions().find((option) => this.isSelected(option) && !this.optionUnavailable(option))?.value ?? boundarySelectValue(this.availableActiveOptions(), "start");
|
|
570
|
+
}
|
|
571
|
+
moveActive(direction) {
|
|
572
|
+
this.activeValue.set(nextEnabledSelectValue(this.availableActiveOptions(), this.activeValue(), direction));
|
|
573
|
+
}
|
|
574
|
+
toggleActive(event) {
|
|
575
|
+
const option = this.options().find((candidate) => candidate.value === this.activeValue());
|
|
576
|
+
if (option) this.toggleOption(option, event);
|
|
577
|
+
}
|
|
578
|
+
emitLazyRange() {
|
|
579
|
+
if (!this.virtualScroll() || !this.lazy()) return;
|
|
580
|
+
this.lazyLoad.emit({
|
|
581
|
+
first: this.virtualRange().start,
|
|
582
|
+
last: this.virtualRange().end,
|
|
583
|
+
query: this.filterValue()
|
|
584
|
+
});
|
|
585
|
+
}
|
|
586
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
587
|
+
minVersion: "12.0.0",
|
|
588
|
+
version: "22.2.3",
|
|
589
|
+
ngImport: i0,
|
|
590
|
+
type: AerisMultiSelectComponent,
|
|
591
|
+
deps: [],
|
|
592
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
593
|
+
});
|
|
594
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
595
|
+
minVersion: "17.0.0",
|
|
596
|
+
version: "22.2.3",
|
|
597
|
+
type: AerisMultiSelectComponent,
|
|
598
|
+
isStandalone: true,
|
|
599
|
+
selector: "aeris-multi-select",
|
|
600
|
+
inputs: {
|
|
601
|
+
clearIconTemplate: {
|
|
602
|
+
classPropertyName: "clearIconTemplate",
|
|
603
|
+
publicName: "clearIconTemplate",
|
|
604
|
+
isSignal: true,
|
|
605
|
+
isRequired: false,
|
|
606
|
+
transformFunction: null
|
|
607
|
+
},
|
|
608
|
+
removeIconTemplate: {
|
|
609
|
+
classPropertyName: "removeIconTemplate",
|
|
610
|
+
publicName: "removeIconTemplate",
|
|
611
|
+
isSignal: true,
|
|
612
|
+
isRequired: false,
|
|
613
|
+
transformFunction: null
|
|
614
|
+
},
|
|
615
|
+
dropdownIconTemplate: {
|
|
616
|
+
classPropertyName: "dropdownIconTemplate",
|
|
617
|
+
publicName: "dropdownIconTemplate",
|
|
618
|
+
isSignal: true,
|
|
619
|
+
isRequired: false,
|
|
620
|
+
transformFunction: null
|
|
621
|
+
},
|
|
622
|
+
filterIconTemplate: {
|
|
623
|
+
classPropertyName: "filterIconTemplate",
|
|
624
|
+
publicName: "filterIconTemplate",
|
|
625
|
+
isSignal: true,
|
|
626
|
+
isRequired: false,
|
|
627
|
+
transformFunction: null
|
|
628
|
+
},
|
|
629
|
+
loadingIconTemplate: {
|
|
630
|
+
classPropertyName: "loadingIconTemplate",
|
|
631
|
+
publicName: "loadingIconTemplate",
|
|
632
|
+
isSignal: true,
|
|
633
|
+
isRequired: false,
|
|
634
|
+
transformFunction: null
|
|
635
|
+
},
|
|
636
|
+
options: {
|
|
637
|
+
classPropertyName: "options",
|
|
638
|
+
publicName: "options",
|
|
639
|
+
isSignal: true,
|
|
640
|
+
isRequired: true,
|
|
641
|
+
transformFunction: null
|
|
642
|
+
},
|
|
643
|
+
value: {
|
|
644
|
+
classPropertyName: "value",
|
|
645
|
+
publicName: "value",
|
|
646
|
+
isSignal: true,
|
|
647
|
+
isRequired: false,
|
|
648
|
+
transformFunction: null
|
|
649
|
+
},
|
|
650
|
+
inputId: {
|
|
651
|
+
classPropertyName: "inputId",
|
|
652
|
+
publicName: "inputId",
|
|
653
|
+
isSignal: true,
|
|
654
|
+
isRequired: false,
|
|
655
|
+
transformFunction: null
|
|
656
|
+
},
|
|
657
|
+
name: {
|
|
658
|
+
classPropertyName: "name",
|
|
659
|
+
publicName: "name",
|
|
660
|
+
isSignal: true,
|
|
661
|
+
isRequired: false,
|
|
662
|
+
transformFunction: null
|
|
663
|
+
},
|
|
664
|
+
valueSeparator: {
|
|
665
|
+
classPropertyName: "valueSeparator",
|
|
666
|
+
publicName: "valueSeparator",
|
|
667
|
+
isSignal: true,
|
|
668
|
+
isRequired: false,
|
|
669
|
+
transformFunction: null
|
|
670
|
+
},
|
|
671
|
+
placeholder: {
|
|
672
|
+
classPropertyName: "placeholder",
|
|
673
|
+
publicName: "placeholder",
|
|
674
|
+
isSignal: true,
|
|
675
|
+
isRequired: false,
|
|
676
|
+
transformFunction: null
|
|
677
|
+
},
|
|
678
|
+
ariaLabel: {
|
|
679
|
+
classPropertyName: "ariaLabel",
|
|
680
|
+
publicName: "ariaLabel",
|
|
681
|
+
isSignal: true,
|
|
682
|
+
isRequired: false,
|
|
683
|
+
transformFunction: null
|
|
684
|
+
},
|
|
685
|
+
ariaLabelledBy: {
|
|
686
|
+
classPropertyName: "ariaLabelledBy",
|
|
687
|
+
publicName: "ariaLabelledBy",
|
|
688
|
+
isSignal: true,
|
|
689
|
+
isRequired: false,
|
|
690
|
+
transformFunction: null
|
|
691
|
+
},
|
|
692
|
+
ariaDescribedBy: {
|
|
693
|
+
classPropertyName: "ariaDescribedBy",
|
|
694
|
+
publicName: "ariaDescribedBy",
|
|
695
|
+
isSignal: true,
|
|
696
|
+
isRequired: false,
|
|
697
|
+
transformFunction: null
|
|
698
|
+
},
|
|
699
|
+
listboxAriaLabel: {
|
|
700
|
+
classPropertyName: "listboxAriaLabel",
|
|
701
|
+
publicName: "listboxAriaLabel",
|
|
702
|
+
isSignal: true,
|
|
703
|
+
isRequired: false,
|
|
704
|
+
transformFunction: null
|
|
705
|
+
},
|
|
706
|
+
size: {
|
|
707
|
+
classPropertyName: "size",
|
|
708
|
+
publicName: "size",
|
|
709
|
+
isSignal: true,
|
|
710
|
+
isRequired: false,
|
|
711
|
+
transformFunction: null
|
|
712
|
+
},
|
|
713
|
+
appearance: {
|
|
714
|
+
classPropertyName: "appearance",
|
|
715
|
+
publicName: "appearance",
|
|
716
|
+
isSignal: true,
|
|
717
|
+
isRequired: false,
|
|
718
|
+
transformFunction: null
|
|
719
|
+
},
|
|
720
|
+
display: {
|
|
721
|
+
classPropertyName: "display",
|
|
722
|
+
publicName: "display",
|
|
723
|
+
isSignal: true,
|
|
724
|
+
isRequired: false,
|
|
725
|
+
transformFunction: null
|
|
726
|
+
},
|
|
727
|
+
selectedItemsLabel: {
|
|
728
|
+
classPropertyName: "selectedItemsLabel",
|
|
729
|
+
publicName: "selectedItemsLabel",
|
|
730
|
+
isSignal: true,
|
|
731
|
+
isRequired: false,
|
|
732
|
+
transformFunction: null
|
|
733
|
+
},
|
|
734
|
+
maxSelectedLabels: {
|
|
735
|
+
classPropertyName: "maxSelectedLabels",
|
|
736
|
+
publicName: "maxSelectedLabels",
|
|
737
|
+
isSignal: true,
|
|
738
|
+
isRequired: false,
|
|
739
|
+
transformFunction: null
|
|
740
|
+
},
|
|
741
|
+
selectionLimit: {
|
|
742
|
+
classPropertyName: "selectionLimit",
|
|
743
|
+
publicName: "selectionLimit",
|
|
744
|
+
isSignal: true,
|
|
745
|
+
isRequired: false,
|
|
746
|
+
transformFunction: null
|
|
747
|
+
},
|
|
748
|
+
selectionLimitMessage: {
|
|
749
|
+
classPropertyName: "selectionLimitMessage",
|
|
750
|
+
publicName: "selectionLimitMessage",
|
|
751
|
+
isSignal: true,
|
|
752
|
+
isRequired: false,
|
|
753
|
+
transformFunction: null
|
|
754
|
+
},
|
|
755
|
+
showSelectAll: {
|
|
756
|
+
classPropertyName: "showSelectAll",
|
|
757
|
+
publicName: "showSelectAll",
|
|
758
|
+
isSignal: true,
|
|
759
|
+
isRequired: false,
|
|
760
|
+
transformFunction: null
|
|
761
|
+
},
|
|
762
|
+
selectAllLabel: {
|
|
763
|
+
classPropertyName: "selectAllLabel",
|
|
764
|
+
publicName: "selectAllLabel",
|
|
765
|
+
isSignal: true,
|
|
766
|
+
isRequired: false,
|
|
767
|
+
transformFunction: null
|
|
768
|
+
},
|
|
769
|
+
clearable: {
|
|
770
|
+
classPropertyName: "clearable",
|
|
771
|
+
publicName: "clearable",
|
|
772
|
+
isSignal: true,
|
|
773
|
+
isRequired: false,
|
|
774
|
+
transformFunction: null
|
|
775
|
+
},
|
|
776
|
+
clearButtonAriaLabel: {
|
|
777
|
+
classPropertyName: "clearButtonAriaLabel",
|
|
778
|
+
publicName: "clearButtonAriaLabel",
|
|
779
|
+
isSignal: true,
|
|
780
|
+
isRequired: false,
|
|
781
|
+
transformFunction: null
|
|
782
|
+
},
|
|
783
|
+
filter: {
|
|
784
|
+
classPropertyName: "filter",
|
|
785
|
+
publicName: "filter",
|
|
786
|
+
isSignal: true,
|
|
787
|
+
isRequired: false,
|
|
788
|
+
transformFunction: null
|
|
789
|
+
},
|
|
790
|
+
filterValue: {
|
|
791
|
+
classPropertyName: "filterValue",
|
|
792
|
+
publicName: "filterValue",
|
|
793
|
+
isSignal: true,
|
|
794
|
+
isRequired: false,
|
|
795
|
+
transformFunction: null
|
|
796
|
+
},
|
|
797
|
+
filterMatchMode: {
|
|
798
|
+
classPropertyName: "filterMatchMode",
|
|
799
|
+
publicName: "filterMatchMode",
|
|
800
|
+
isSignal: true,
|
|
801
|
+
isRequired: false,
|
|
802
|
+
transformFunction: null
|
|
803
|
+
},
|
|
804
|
+
filterFields: {
|
|
805
|
+
classPropertyName: "filterFields",
|
|
806
|
+
publicName: "filterFields",
|
|
807
|
+
isSignal: true,
|
|
808
|
+
isRequired: false,
|
|
809
|
+
transformFunction: null
|
|
810
|
+
},
|
|
811
|
+
filterLocale: {
|
|
812
|
+
classPropertyName: "filterLocale",
|
|
813
|
+
publicName: "filterLocale",
|
|
814
|
+
isSignal: true,
|
|
815
|
+
isRequired: false,
|
|
816
|
+
transformFunction: null
|
|
817
|
+
},
|
|
818
|
+
filterPlaceholder: {
|
|
819
|
+
classPropertyName: "filterPlaceholder",
|
|
820
|
+
publicName: "filterPlaceholder",
|
|
821
|
+
isSignal: true,
|
|
822
|
+
isRequired: false,
|
|
823
|
+
transformFunction: null
|
|
824
|
+
},
|
|
825
|
+
filterAriaLabel: {
|
|
826
|
+
classPropertyName: "filterAriaLabel",
|
|
827
|
+
publicName: "filterAriaLabel",
|
|
828
|
+
isSignal: true,
|
|
829
|
+
isRequired: false,
|
|
830
|
+
transformFunction: null
|
|
831
|
+
},
|
|
832
|
+
filterClearAriaLabel: {
|
|
833
|
+
classPropertyName: "filterClearAriaLabel",
|
|
834
|
+
publicName: "filterClearAriaLabel",
|
|
835
|
+
isSignal: true,
|
|
836
|
+
isRequired: false,
|
|
837
|
+
transformFunction: null
|
|
838
|
+
},
|
|
839
|
+
resetFilterOnClose: {
|
|
840
|
+
classPropertyName: "resetFilterOnClose",
|
|
841
|
+
publicName: "resetFilterOnClose",
|
|
842
|
+
isSignal: true,
|
|
843
|
+
isRequired: false,
|
|
844
|
+
transformFunction: null
|
|
845
|
+
},
|
|
846
|
+
autofocusFilter: {
|
|
847
|
+
classPropertyName: "autofocusFilter",
|
|
848
|
+
publicName: "autofocusFilter",
|
|
849
|
+
isSignal: true,
|
|
850
|
+
isRequired: false,
|
|
851
|
+
transformFunction: null
|
|
852
|
+
},
|
|
853
|
+
emptyMessage: {
|
|
854
|
+
classPropertyName: "emptyMessage",
|
|
855
|
+
publicName: "emptyMessage",
|
|
856
|
+
isSignal: true,
|
|
857
|
+
isRequired: false,
|
|
858
|
+
transformFunction: null
|
|
859
|
+
},
|
|
860
|
+
emptyFilterMessage: {
|
|
861
|
+
classPropertyName: "emptyFilterMessage",
|
|
862
|
+
publicName: "emptyFilterMessage",
|
|
863
|
+
isSignal: true,
|
|
864
|
+
isRequired: false,
|
|
865
|
+
transformFunction: null
|
|
866
|
+
},
|
|
867
|
+
loading: {
|
|
868
|
+
classPropertyName: "loading",
|
|
869
|
+
publicName: "loading",
|
|
870
|
+
isSignal: true,
|
|
871
|
+
isRequired: false,
|
|
872
|
+
transformFunction: null
|
|
873
|
+
},
|
|
874
|
+
loadingMessage: {
|
|
875
|
+
classPropertyName: "loadingMessage",
|
|
876
|
+
publicName: "loadingMessage",
|
|
877
|
+
isSignal: true,
|
|
878
|
+
isRequired: false,
|
|
879
|
+
transformFunction: null
|
|
880
|
+
},
|
|
881
|
+
panelMaxHeight: {
|
|
882
|
+
classPropertyName: "panelMaxHeight",
|
|
883
|
+
publicName: "panelMaxHeight",
|
|
884
|
+
isSignal: true,
|
|
885
|
+
isRequired: false,
|
|
886
|
+
transformFunction: null
|
|
887
|
+
},
|
|
888
|
+
appendTo: {
|
|
889
|
+
classPropertyName: "appendTo",
|
|
890
|
+
publicName: "appendTo",
|
|
891
|
+
isSignal: true,
|
|
892
|
+
isRequired: false,
|
|
893
|
+
transformFunction: null
|
|
894
|
+
},
|
|
895
|
+
viewportMargin: {
|
|
896
|
+
classPropertyName: "viewportMargin",
|
|
897
|
+
publicName: "viewportMargin",
|
|
898
|
+
isSignal: true,
|
|
899
|
+
isRequired: false,
|
|
900
|
+
transformFunction: null
|
|
901
|
+
},
|
|
902
|
+
virtualScroll: {
|
|
903
|
+
classPropertyName: "virtualScroll",
|
|
904
|
+
publicName: "virtualScroll",
|
|
905
|
+
isSignal: true,
|
|
906
|
+
isRequired: false,
|
|
907
|
+
transformFunction: null
|
|
908
|
+
},
|
|
909
|
+
virtualItemSize: {
|
|
910
|
+
classPropertyName: "virtualItemSize",
|
|
911
|
+
publicName: "virtualItemSize",
|
|
912
|
+
isSignal: true,
|
|
913
|
+
isRequired: false,
|
|
914
|
+
transformFunction: null
|
|
915
|
+
},
|
|
916
|
+
virtualBuffer: {
|
|
917
|
+
classPropertyName: "virtualBuffer",
|
|
918
|
+
publicName: "virtualBuffer",
|
|
919
|
+
isSignal: true,
|
|
920
|
+
isRequired: false,
|
|
921
|
+
transformFunction: null
|
|
922
|
+
},
|
|
923
|
+
lazy: {
|
|
924
|
+
classPropertyName: "lazy",
|
|
925
|
+
publicName: "lazy",
|
|
926
|
+
isSignal: true,
|
|
927
|
+
isRequired: false,
|
|
928
|
+
transformFunction: null
|
|
929
|
+
},
|
|
930
|
+
closeOnSelect: {
|
|
931
|
+
classPropertyName: "closeOnSelect",
|
|
932
|
+
publicName: "closeOnSelect",
|
|
933
|
+
isSignal: true,
|
|
934
|
+
isRequired: false,
|
|
935
|
+
transformFunction: null
|
|
936
|
+
},
|
|
937
|
+
disabled: {
|
|
938
|
+
classPropertyName: "disabled",
|
|
939
|
+
publicName: "disabled",
|
|
940
|
+
isSignal: true,
|
|
941
|
+
isRequired: false,
|
|
942
|
+
transformFunction: null
|
|
943
|
+
},
|
|
944
|
+
required: {
|
|
945
|
+
classPropertyName: "required",
|
|
946
|
+
publicName: "required",
|
|
947
|
+
isSignal: true,
|
|
948
|
+
isRequired: false,
|
|
949
|
+
transformFunction: null
|
|
950
|
+
},
|
|
951
|
+
invalid: {
|
|
952
|
+
classPropertyName: "invalid",
|
|
953
|
+
publicName: "invalid",
|
|
954
|
+
isSignal: true,
|
|
955
|
+
isRequired: false,
|
|
956
|
+
transformFunction: null
|
|
957
|
+
},
|
|
958
|
+
touched: {
|
|
959
|
+
classPropertyName: "touched",
|
|
960
|
+
publicName: "touched",
|
|
961
|
+
isSignal: true,
|
|
962
|
+
isRequired: false,
|
|
963
|
+
transformFunction: null
|
|
964
|
+
},
|
|
965
|
+
fluid: {
|
|
966
|
+
classPropertyName: "fluid",
|
|
967
|
+
publicName: "fluid",
|
|
968
|
+
isSignal: true,
|
|
969
|
+
isRequired: false,
|
|
970
|
+
transformFunction: null
|
|
971
|
+
}
|
|
972
|
+
},
|
|
973
|
+
outputs: {
|
|
974
|
+
value: "valueChange",
|
|
975
|
+
filterValue: "filterValueChange",
|
|
976
|
+
changed: "changed",
|
|
977
|
+
filterChanged: "filterChanged",
|
|
978
|
+
lazyLoad: "lazyLoad",
|
|
979
|
+
opened: "opened",
|
|
980
|
+
closed: "closed",
|
|
981
|
+
cleared: "cleared",
|
|
982
|
+
focused: "focused",
|
|
983
|
+
blurred: "blurred",
|
|
984
|
+
touch: "touch"
|
|
985
|
+
},
|
|
986
|
+
host: { properties: {
|
|
987
|
+
"attr.data-open": "open() || null",
|
|
988
|
+
"attr.data-disabled": "effectiveDisabled() || null",
|
|
989
|
+
"attr.data-fluid": "fluid() || null"
|
|
990
|
+
} },
|
|
991
|
+
providers: [{
|
|
992
|
+
provide: NG_VALUE_ACCESSOR,
|
|
993
|
+
useExisting: forwardRef(() => AerisMultiSelectComponent),
|
|
994
|
+
multi: true
|
|
995
|
+
}],
|
|
996
|
+
queries: [
|
|
997
|
+
{
|
|
998
|
+
propertyName: "optionTemplate",
|
|
999
|
+
first: true,
|
|
1000
|
+
predicate: AerisMultiSelectOptionTemplate,
|
|
1001
|
+
descendants: true,
|
|
1002
|
+
isSignal: true
|
|
1003
|
+
},
|
|
1004
|
+
{
|
|
1005
|
+
propertyName: "chipTemplate",
|
|
1006
|
+
first: true,
|
|
1007
|
+
predicate: AerisMultiSelectChipTemplate,
|
|
1008
|
+
descendants: true,
|
|
1009
|
+
isSignal: true
|
|
1010
|
+
},
|
|
1011
|
+
{
|
|
1012
|
+
propertyName: "headerTemplate",
|
|
1013
|
+
first: true,
|
|
1014
|
+
predicate: AerisMultiSelectHeaderTemplate,
|
|
1015
|
+
descendants: true,
|
|
1016
|
+
isSignal: true
|
|
1017
|
+
},
|
|
1018
|
+
{
|
|
1019
|
+
propertyName: "footerTemplate",
|
|
1020
|
+
first: true,
|
|
1021
|
+
predicate: AerisMultiSelectFooterTemplate,
|
|
1022
|
+
descendants: true,
|
|
1023
|
+
isSignal: true
|
|
1024
|
+
},
|
|
1025
|
+
{
|
|
1026
|
+
propertyName: "emptyTemplate",
|
|
1027
|
+
first: true,
|
|
1028
|
+
predicate: AerisMultiSelectEmptyTemplate,
|
|
1029
|
+
descendants: true,
|
|
1030
|
+
isSignal: true
|
|
1031
|
+
}
|
|
1032
|
+
],
|
|
1033
|
+
viewQueries: [
|
|
1034
|
+
{
|
|
1035
|
+
propertyName: "control",
|
|
1036
|
+
first: true,
|
|
1037
|
+
predicate: ["control"],
|
|
1038
|
+
descendants: true,
|
|
1039
|
+
isSignal: true
|
|
1040
|
+
},
|
|
1041
|
+
{
|
|
1042
|
+
propertyName: "trigger",
|
|
1043
|
+
first: true,
|
|
1044
|
+
predicate: ["trigger"],
|
|
1045
|
+
descendants: true,
|
|
1046
|
+
isSignal: true
|
|
1047
|
+
},
|
|
1048
|
+
{
|
|
1049
|
+
propertyName: "optionsPanel",
|
|
1050
|
+
first: true,
|
|
1051
|
+
predicate: ["optionsPanel"],
|
|
1052
|
+
descendants: true,
|
|
1053
|
+
isSignal: true
|
|
1054
|
+
},
|
|
1055
|
+
{
|
|
1056
|
+
propertyName: "panelPortal",
|
|
1057
|
+
first: true,
|
|
1058
|
+
predicate: ɵAerisAppendTo,
|
|
1059
|
+
descendants: true,
|
|
1060
|
+
isSignal: true
|
|
1061
|
+
},
|
|
1062
|
+
{
|
|
1063
|
+
propertyName: "filterInput",
|
|
1064
|
+
first: true,
|
|
1065
|
+
predicate: ["filterInput"],
|
|
1066
|
+
descendants: true,
|
|
1067
|
+
isSignal: true
|
|
1068
|
+
}
|
|
1069
|
+
],
|
|
1070
|
+
ngImport: i0,
|
|
1071
|
+
template: `
|
|
502
1072
|
<div
|
|
503
1073
|
class="aeris-multi-select"
|
|
504
1074
|
[attr.data-size]="size()"
|
|
505
1075
|
[attr.data-appearance]="appearance()"
|
|
506
1076
|
[attr.data-open]="open() || null"
|
|
507
|
-
[attr.data-invalid]="
|
|
1077
|
+
[attr.data-invalid]="displayInvalid() || null"
|
|
508
1078
|
[attr.data-disabled]="effectiveDisabled() || null"
|
|
509
1079
|
[attr.data-fluid]="fluid() || null"
|
|
510
1080
|
(focusout)="handleFocusOut($event)"
|
|
@@ -513,7 +1083,7 @@ class AerisMultiSelectComponent {
|
|
|
513
1083
|
<input type="hidden" [name]="name()" [value]="value().join(valueSeparator())" />
|
|
514
1084
|
}
|
|
515
1085
|
|
|
516
|
-
<div class="aeris-multi-select__control">
|
|
1086
|
+
<div #control class="aeris-multi-select__control">
|
|
517
1087
|
<div
|
|
518
1088
|
#trigger
|
|
519
1089
|
class="aeris-multi-select__trigger"
|
|
@@ -525,9 +1095,9 @@ class AerisMultiSelectComponent {
|
|
|
525
1095
|
[attr.aria-controls]="panelId"
|
|
526
1096
|
[attr.aria-activedescendant]="open() ? activeOptionId() : null"
|
|
527
1097
|
[attr.aria-label]="ariaLabel() || null"
|
|
528
|
-
[attr.aria-labelledby]="
|
|
529
|
-
[attr.aria-describedby]="
|
|
530
|
-
[attr.aria-invalid]="
|
|
1098
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
1099
|
+
[attr.aria-describedby]="ariaDescribedBy() || null"
|
|
1100
|
+
[attr.aria-invalid]="displayInvalid() || null"
|
|
531
1101
|
[attr.aria-required]="required() || null"
|
|
532
1102
|
[attr.aria-disabled]="effectiveDisabled() || null"
|
|
533
1103
|
(click)="toggle()"
|
|
@@ -559,7 +1129,13 @@ class AerisMultiSelectComponent {
|
|
|
559
1129
|
[disabled]="effectiveDisabled()"
|
|
560
1130
|
(click)="removeChip(option, $event)"
|
|
561
1131
|
>
|
|
562
|
-
|
|
1132
|
+
@if (removeIconTemplate(); as customIcon) {
|
|
1133
|
+
<span aria-hidden="true" data-aeris-custom-icon
|
|
1134
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1135
|
+
/></span>
|
|
1136
|
+
} @else {
|
|
1137
|
+
<span aria-hidden="true"></span>
|
|
1138
|
+
}
|
|
563
1139
|
</button>
|
|
564
1140
|
</span>
|
|
565
1141
|
}
|
|
@@ -581,23 +1157,41 @@ class AerisMultiSelectComponent {
|
|
|
581
1157
|
[attr.aria-label]="clearButtonAriaLabel()"
|
|
582
1158
|
(click)="handleClearClick($event)"
|
|
583
1159
|
>
|
|
584
|
-
|
|
1160
|
+
@if (clearIconTemplate(); as customIcon) {
|
|
1161
|
+
<span aria-hidden="true" data-aeris-custom-icon
|
|
1162
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1163
|
+
/></span>
|
|
1164
|
+
} @else {
|
|
1165
|
+
<span aerisInternalIcon="close" aria-hidden="true"></span>
|
|
1166
|
+
}
|
|
585
1167
|
</button>
|
|
586
1168
|
}
|
|
587
|
-
|
|
1169
|
+
@if (dropdownIconTemplate(); as customIcon) {
|
|
1170
|
+
<span class="aeris-multi-select__chevron" aria-hidden="true" data-aeris-custom-icon
|
|
1171
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1172
|
+
/></span>
|
|
1173
|
+
} @else {
|
|
1174
|
+
<span
|
|
1175
|
+
aerisInternalIcon="chevron"
|
|
1176
|
+
class="aeris-multi-select__chevron"
|
|
1177
|
+
aria-hidden="true"
|
|
1178
|
+
></span>
|
|
1179
|
+
}
|
|
588
1180
|
</div>
|
|
589
1181
|
|
|
590
1182
|
@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
1183
|
<div
|
|
1184
|
+
#optionsPanel
|
|
600
1185
|
class="aeris-multi-select__panel"
|
|
1186
|
+
(pointerdown)="handlePanelPointerDown($event)"
|
|
1187
|
+
(pointercancel)="endPanelPointerInteraction()"
|
|
1188
|
+
(click)="endPanelPointerInteraction()"
|
|
1189
|
+
[aerisInternalAppendTo]="appendTo()"
|
|
1190
|
+
[aerisInternalAppendToDismiss]="dismissOverlay"
|
|
1191
|
+
[aerisInternalAppendToAnchor]="this.control()?.nativeElement ?? null"
|
|
1192
|
+
[aerisInternalAppendToMatchWidth]="true"
|
|
1193
|
+
[aerisInternalAppendToCollisionPadding]="viewportMargin()"
|
|
1194
|
+
(aerisInternalAppendToOutside)="closePanel(false)"
|
|
601
1195
|
[id]="panelId"
|
|
602
1196
|
[style.--aeris-multi-select-panel-max-height]="panelMaxHeight()"
|
|
603
1197
|
>
|
|
@@ -620,7 +1214,15 @@ class AerisMultiSelectComponent {
|
|
|
620
1214
|
[attr.data-checked]="allFilteredSelected() || null"
|
|
621
1215
|
[attr.data-mixed]="someFilteredSelected() || null"
|
|
622
1216
|
aria-hidden="true"
|
|
623
|
-
><span
|
|
1217
|
+
><span
|
|
1218
|
+
[aerisInternalIcon]="
|
|
1219
|
+
someFilteredSelected() || null
|
|
1220
|
+
? 'minus'
|
|
1221
|
+
: allFilteredSelected() || null
|
|
1222
|
+
? 'check'
|
|
1223
|
+
: null
|
|
1224
|
+
"
|
|
1225
|
+
></span
|
|
624
1226
|
></span>
|
|
625
1227
|
<span>{{ selectAllLabel() }}</span>
|
|
626
1228
|
<small>{{ selectedOptions().length }}/{{ selectableOptions().length }}</small>
|
|
@@ -629,7 +1231,20 @@ class AerisMultiSelectComponent {
|
|
|
629
1231
|
|
|
630
1232
|
@if (filter()) {
|
|
631
1233
|
<div class="aeris-multi-select__filter-wrap">
|
|
632
|
-
|
|
1234
|
+
@if (filterIconTemplate(); as customIcon) {
|
|
1235
|
+
<span
|
|
1236
|
+
class="aeris-multi-select__search-mark"
|
|
1237
|
+
aria-hidden="true"
|
|
1238
|
+
data-aeris-custom-icon
|
|
1239
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1240
|
+
/></span>
|
|
1241
|
+
} @else {
|
|
1242
|
+
<span
|
|
1243
|
+
aerisInternalIcon="search"
|
|
1244
|
+
class="aeris-multi-select__search-mark"
|
|
1245
|
+
aria-hidden="true"
|
|
1246
|
+
></span>
|
|
1247
|
+
}
|
|
633
1248
|
<input
|
|
634
1249
|
#filterInput
|
|
635
1250
|
class="aeris-multi-select__filter"
|
|
@@ -651,7 +1266,13 @@ class AerisMultiSelectComponent {
|
|
|
651
1266
|
[attr.aria-label]="filterClearAriaLabel()"
|
|
652
1267
|
(click)="clearFilter()"
|
|
653
1268
|
>
|
|
654
|
-
|
|
1269
|
+
@if (clearIconTemplate(); as customIcon) {
|
|
1270
|
+
<span aria-hidden="true" data-aeris-custom-icon
|
|
1271
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1272
|
+
/></span>
|
|
1273
|
+
} @else {
|
|
1274
|
+
<span aerisInternalIcon="close" aria-hidden="true"></span>
|
|
1275
|
+
}
|
|
655
1276
|
</button>
|
|
656
1277
|
}
|
|
657
1278
|
</div>
|
|
@@ -668,7 +1289,16 @@ class AerisMultiSelectComponent {
|
|
|
668
1289
|
>
|
|
669
1290
|
@if (loading()) {
|
|
670
1291
|
<div class="aeris-multi-select__message" role="status">
|
|
671
|
-
|
|
1292
|
+
@if (loadingIconTemplate(); as customIcon) {
|
|
1293
|
+
<span
|
|
1294
|
+
class="aeris-multi-select__spinner"
|
|
1295
|
+
aria-hidden="true"
|
|
1296
|
+
data-aeris-custom-icon
|
|
1297
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1298
|
+
/></span>
|
|
1299
|
+
} @else {
|
|
1300
|
+
<span class="aeris-multi-select__spinner" aria-hidden="true"></span>
|
|
1301
|
+
}
|
|
672
1302
|
{{ loadingMessage() }}
|
|
673
1303
|
</div>
|
|
674
1304
|
} @else if (!filteredOptions().length) {
|
|
@@ -699,14 +1329,18 @@ class AerisMultiSelectComponent {
|
|
|
699
1329
|
[attr.data-selected]="isSelected(option) || null"
|
|
700
1330
|
[attr.data-disabled]="optionUnavailable(option) || null"
|
|
701
1331
|
(mouseenter)="activate(option)"
|
|
702
|
-
(
|
|
1332
|
+
(pointerdown)="preservePointerFocus($event)"
|
|
703
1333
|
(click)="toggleOption(option, $event)"
|
|
704
1334
|
>
|
|
705
1335
|
<span
|
|
706
1336
|
class="aeris-multi-select__checkbox"
|
|
707
1337
|
[attr.data-checked]="isSelected(option) || null"
|
|
708
1338
|
aria-hidden="true"
|
|
709
|
-
><span
|
|
1339
|
+
><span
|
|
1340
|
+
[aerisInternalIcon]="
|
|
1341
|
+
false ? 'minus' : isSelected(option) || null ? 'check' : null
|
|
1342
|
+
"
|
|
1343
|
+
></span
|
|
710
1344
|
></span>
|
|
711
1345
|
<span class="aeris-multi-select__option-content">
|
|
712
1346
|
@if (optionTemplate(); as customOption) {
|
|
@@ -746,17 +1380,68 @@ class AerisMultiSelectComponent {
|
|
|
746
1380
|
</div>
|
|
747
1381
|
}
|
|
748
1382
|
</div>
|
|
749
|
-
`,
|
|
750
|
-
|
|
751
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImport: i0, type: AerisMultiSelectComponent, decorators: [{
|
|
752
|
-
|
|
753
|
-
|
|
1383
|
+
`,
|
|
1384
|
+
isInline: true,
|
|
1385
|
+
styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m6 9 6 6 6-6\"/%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{transform:scale(.7);opacity:0}.aeris-multi-select__checkbox[data-checked] span{opacity:1;transform:scale(1)}.aeris-multi-select__checkbox[data-mixed] span{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;color:var(--aeris-primary, #111111);background:currentColor;-webkit-mask:var(--aeris-icon-loader, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"M21 12a9 9 0 1 1-6.219-8.56\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-loader, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"M21 12a9 9 0 1 1-6.219-8.56\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;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)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}.aeris-multi-select__chevron[data-aeris-custom-icon]{transition:rotate var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-multi-select[data-open] .aeris-multi-select__chevron[data-aeris-custom-icon]{rotate:180deg}@media(prefers-reduced-motion:reduce){.aeris-multi-select__chevron[data-aeris-custom-icon]{transition:none}}.aeris-multi-select__checkbox[data-checked] span:not([data-aeris-custom-icon]){top:0;width:min(var(--aeris-icon-size, 1rem),100%);height:min(var(--aeris-icon-size, 1rem),100%);border:0;background:currentColor;-webkit-mask:var(--aeris-icon-check) center/100% 100% no-repeat;mask:var(--aeris-icon-check) center/100% 100% no-repeat}.aeris-multi-select__checkbox[data-mixed] span:not([data-aeris-custom-icon]){top:0;width:min(var(--aeris-icon-size, 1rem),100%);height:min(var(--aeris-icon-size, 1rem),100%);border:0;background:currentColor;-webkit-mask:var(--aeris-icon-minus) center/100% 100% no-repeat;mask:var(--aeris-icon-minus) center/100% 100% no-repeat}\n"],
|
|
1386
|
+
dependencies: [
|
|
1387
|
+
{
|
|
1388
|
+
kind: "component",
|
|
1389
|
+
type: ɵAerisIcon,
|
|
1390
|
+
selector: "span[aerisInternalIcon]",
|
|
1391
|
+
inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
|
|
1392
|
+
},
|
|
1393
|
+
{
|
|
1394
|
+
kind: "directive",
|
|
1395
|
+
type: NgTemplateOutlet,
|
|
1396
|
+
selector: "[ngTemplateOutlet]",
|
|
1397
|
+
inputs: [
|
|
1398
|
+
"ngTemplateOutletContext",
|
|
1399
|
+
"ngTemplateOutlet",
|
|
1400
|
+
"ngTemplateOutletInjector"
|
|
1401
|
+
]
|
|
1402
|
+
},
|
|
1403
|
+
{
|
|
1404
|
+
kind: "directive",
|
|
1405
|
+
type: ɵAerisAppendTo,
|
|
1406
|
+
selector: "[aerisInternalAppendTo]",
|
|
1407
|
+
inputs: [
|
|
1408
|
+
"aerisInternalAppendTo",
|
|
1409
|
+
"aerisInternalAppendToDefault",
|
|
1410
|
+
"aerisInternalAppendToAnchor",
|
|
1411
|
+
"aerisInternalAppendToOffset",
|
|
1412
|
+
"aerisInternalAppendToMatchWidth",
|
|
1413
|
+
"aerisInternalAppendToPlacement",
|
|
1414
|
+
"aerisInternalAppendToAlignment",
|
|
1415
|
+
"aerisInternalAppendToCollisionPadding",
|
|
1416
|
+
"aerisInternalAppendToPositionSelf",
|
|
1417
|
+
"aerisInternalAppendToDismiss"
|
|
1418
|
+
],
|
|
1419
|
+
outputs: ["aerisInternalAppendToOutside"]
|
|
1420
|
+
}
|
|
1421
|
+
]
|
|
1422
|
+
});
|
|
1423
|
+
};
|
|
1424
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1425
|
+
minVersion: "12.0.0",
|
|
1426
|
+
version: "22.2.3",
|
|
1427
|
+
ngImport: i0,
|
|
1428
|
+
type: AerisMultiSelectComponent,
|
|
1429
|
+
decorators: [{
|
|
1430
|
+
type: Component,
|
|
1431
|
+
args: [{
|
|
1432
|
+
selector: "aeris-multi-select",
|
|
1433
|
+
imports: [
|
|
1434
|
+
ɵAerisIcon,
|
|
1435
|
+
NgTemplateOutlet,
|
|
1436
|
+
ɵAerisAppendTo
|
|
1437
|
+
],
|
|
1438
|
+
template: `
|
|
754
1439
|
<div
|
|
755
1440
|
class="aeris-multi-select"
|
|
756
1441
|
[attr.data-size]="size()"
|
|
757
1442
|
[attr.data-appearance]="appearance()"
|
|
758
1443
|
[attr.data-open]="open() || null"
|
|
759
|
-
[attr.data-invalid]="
|
|
1444
|
+
[attr.data-invalid]="displayInvalid() || null"
|
|
760
1445
|
[attr.data-disabled]="effectiveDisabled() || null"
|
|
761
1446
|
[attr.data-fluid]="fluid() || null"
|
|
762
1447
|
(focusout)="handleFocusOut($event)"
|
|
@@ -765,7 +1450,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
765
1450
|
<input type="hidden" [name]="name()" [value]="value().join(valueSeparator())" />
|
|
766
1451
|
}
|
|
767
1452
|
|
|
768
|
-
<div class="aeris-multi-select__control">
|
|
1453
|
+
<div #control class="aeris-multi-select__control">
|
|
769
1454
|
<div
|
|
770
1455
|
#trigger
|
|
771
1456
|
class="aeris-multi-select__trigger"
|
|
@@ -777,9 +1462,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
777
1462
|
[attr.aria-controls]="panelId"
|
|
778
1463
|
[attr.aria-activedescendant]="open() ? activeOptionId() : null"
|
|
779
1464
|
[attr.aria-label]="ariaLabel() || null"
|
|
780
|
-
[attr.aria-labelledby]="
|
|
781
|
-
[attr.aria-describedby]="
|
|
782
|
-
[attr.aria-invalid]="
|
|
1465
|
+
[attr.aria-labelledby]="ariaLabelledBy() || null"
|
|
1466
|
+
[attr.aria-describedby]="ariaDescribedBy() || null"
|
|
1467
|
+
[attr.aria-invalid]="displayInvalid() || null"
|
|
783
1468
|
[attr.aria-required]="required() || null"
|
|
784
1469
|
[attr.aria-disabled]="effectiveDisabled() || null"
|
|
785
1470
|
(click)="toggle()"
|
|
@@ -811,7 +1496,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
811
1496
|
[disabled]="effectiveDisabled()"
|
|
812
1497
|
(click)="removeChip(option, $event)"
|
|
813
1498
|
>
|
|
814
|
-
|
|
1499
|
+
@if (removeIconTemplate(); as customIcon) {
|
|
1500
|
+
<span aria-hidden="true" data-aeris-custom-icon
|
|
1501
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1502
|
+
/></span>
|
|
1503
|
+
} @else {
|
|
1504
|
+
<span aria-hidden="true"></span>
|
|
1505
|
+
}
|
|
815
1506
|
</button>
|
|
816
1507
|
</span>
|
|
817
1508
|
}
|
|
@@ -833,23 +1524,41 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
833
1524
|
[attr.aria-label]="clearButtonAriaLabel()"
|
|
834
1525
|
(click)="handleClearClick($event)"
|
|
835
1526
|
>
|
|
836
|
-
|
|
1527
|
+
@if (clearIconTemplate(); as customIcon) {
|
|
1528
|
+
<span aria-hidden="true" data-aeris-custom-icon
|
|
1529
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1530
|
+
/></span>
|
|
1531
|
+
} @else {
|
|
1532
|
+
<span aerisInternalIcon="close" aria-hidden="true"></span>
|
|
1533
|
+
}
|
|
837
1534
|
</button>
|
|
838
1535
|
}
|
|
839
|
-
|
|
1536
|
+
@if (dropdownIconTemplate(); as customIcon) {
|
|
1537
|
+
<span class="aeris-multi-select__chevron" aria-hidden="true" data-aeris-custom-icon
|
|
1538
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1539
|
+
/></span>
|
|
1540
|
+
} @else {
|
|
1541
|
+
<span
|
|
1542
|
+
aerisInternalIcon="chevron"
|
|
1543
|
+
class="aeris-multi-select__chevron"
|
|
1544
|
+
aria-hidden="true"
|
|
1545
|
+
></span>
|
|
1546
|
+
}
|
|
840
1547
|
</div>
|
|
841
1548
|
|
|
842
1549
|
@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
1550
|
<div
|
|
1551
|
+
#optionsPanel
|
|
852
1552
|
class="aeris-multi-select__panel"
|
|
1553
|
+
(pointerdown)="handlePanelPointerDown($event)"
|
|
1554
|
+
(pointercancel)="endPanelPointerInteraction()"
|
|
1555
|
+
(click)="endPanelPointerInteraction()"
|
|
1556
|
+
[aerisInternalAppendTo]="appendTo()"
|
|
1557
|
+
[aerisInternalAppendToDismiss]="dismissOverlay"
|
|
1558
|
+
[aerisInternalAppendToAnchor]="this.control()?.nativeElement ?? null"
|
|
1559
|
+
[aerisInternalAppendToMatchWidth]="true"
|
|
1560
|
+
[aerisInternalAppendToCollisionPadding]="viewportMargin()"
|
|
1561
|
+
(aerisInternalAppendToOutside)="closePanel(false)"
|
|
853
1562
|
[id]="panelId"
|
|
854
1563
|
[style.--aeris-multi-select-panel-max-height]="panelMaxHeight()"
|
|
855
1564
|
>
|
|
@@ -872,7 +1581,15 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
872
1581
|
[attr.data-checked]="allFilteredSelected() || null"
|
|
873
1582
|
[attr.data-mixed]="someFilteredSelected() || null"
|
|
874
1583
|
aria-hidden="true"
|
|
875
|
-
><span
|
|
1584
|
+
><span
|
|
1585
|
+
[aerisInternalIcon]="
|
|
1586
|
+
someFilteredSelected() || null
|
|
1587
|
+
? 'minus'
|
|
1588
|
+
: allFilteredSelected() || null
|
|
1589
|
+
? 'check'
|
|
1590
|
+
: null
|
|
1591
|
+
"
|
|
1592
|
+
></span
|
|
876
1593
|
></span>
|
|
877
1594
|
<span>{{ selectAllLabel() }}</span>
|
|
878
1595
|
<small>{{ selectedOptions().length }}/{{ selectableOptions().length }}</small>
|
|
@@ -881,7 +1598,20 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
881
1598
|
|
|
882
1599
|
@if (filter()) {
|
|
883
1600
|
<div class="aeris-multi-select__filter-wrap">
|
|
884
|
-
|
|
1601
|
+
@if (filterIconTemplate(); as customIcon) {
|
|
1602
|
+
<span
|
|
1603
|
+
class="aeris-multi-select__search-mark"
|
|
1604
|
+
aria-hidden="true"
|
|
1605
|
+
data-aeris-custom-icon
|
|
1606
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1607
|
+
/></span>
|
|
1608
|
+
} @else {
|
|
1609
|
+
<span
|
|
1610
|
+
aerisInternalIcon="search"
|
|
1611
|
+
class="aeris-multi-select__search-mark"
|
|
1612
|
+
aria-hidden="true"
|
|
1613
|
+
></span>
|
|
1614
|
+
}
|
|
885
1615
|
<input
|
|
886
1616
|
#filterInput
|
|
887
1617
|
class="aeris-multi-select__filter"
|
|
@@ -903,7 +1633,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
903
1633
|
[attr.aria-label]="filterClearAriaLabel()"
|
|
904
1634
|
(click)="clearFilter()"
|
|
905
1635
|
>
|
|
906
|
-
|
|
1636
|
+
@if (clearIconTemplate(); as customIcon) {
|
|
1637
|
+
<span aria-hidden="true" data-aeris-custom-icon
|
|
1638
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1639
|
+
/></span>
|
|
1640
|
+
} @else {
|
|
1641
|
+
<span aerisInternalIcon="close" aria-hidden="true"></span>
|
|
1642
|
+
}
|
|
907
1643
|
</button>
|
|
908
1644
|
}
|
|
909
1645
|
</div>
|
|
@@ -920,7 +1656,16 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
920
1656
|
>
|
|
921
1657
|
@if (loading()) {
|
|
922
1658
|
<div class="aeris-multi-select__message" role="status">
|
|
923
|
-
|
|
1659
|
+
@if (loadingIconTemplate(); as customIcon) {
|
|
1660
|
+
<span
|
|
1661
|
+
class="aeris-multi-select__spinner"
|
|
1662
|
+
aria-hidden="true"
|
|
1663
|
+
data-aeris-custom-icon
|
|
1664
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1665
|
+
/></span>
|
|
1666
|
+
} @else {
|
|
1667
|
+
<span class="aeris-multi-select__spinner" aria-hidden="true"></span>
|
|
1668
|
+
}
|
|
924
1669
|
{{ loadingMessage() }}
|
|
925
1670
|
</div>
|
|
926
1671
|
} @else if (!filteredOptions().length) {
|
|
@@ -951,14 +1696,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
951
1696
|
[attr.data-selected]="isSelected(option) || null"
|
|
952
1697
|
[attr.data-disabled]="optionUnavailable(option) || null"
|
|
953
1698
|
(mouseenter)="activate(option)"
|
|
954
|
-
(
|
|
1699
|
+
(pointerdown)="preservePointerFocus($event)"
|
|
955
1700
|
(click)="toggleOption(option, $event)"
|
|
956
1701
|
>
|
|
957
1702
|
<span
|
|
958
1703
|
class="aeris-multi-select__checkbox"
|
|
959
1704
|
[attr.data-checked]="isSelected(option) || null"
|
|
960
1705
|
aria-hidden="true"
|
|
961
|
-
><span
|
|
1706
|
+
><span
|
|
1707
|
+
[aerisInternalIcon]="
|
|
1708
|
+
false ? 'minus' : isSelected(option) || null ? 'check' : null
|
|
1709
|
+
"
|
|
1710
|
+
></span
|
|
962
1711
|
></span>
|
|
963
1712
|
<span class="aeris-multi-select__option-content">
|
|
964
1713
|
@if (optionTemplate(); as customOption) {
|
|
@@ -998,36 +1747,542 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
998
1747
|
</div>
|
|
999
1748
|
}
|
|
1000
1749
|
</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 }] }] } });
|
|
1750
|
+
`,
|
|
1751
|
+
providers: [{
|
|
1752
|
+
provide: NG_VALUE_ACCESSOR,
|
|
1753
|
+
useExisting: forwardRef(() => AerisMultiSelectComponent),
|
|
1754
|
+
multi: true
|
|
1755
|
+
}],
|
|
1756
|
+
host: {
|
|
1757
|
+
"[attr.data-open]": "open() || null",
|
|
1758
|
+
"[attr.data-disabled]": "effectiveDisabled() || null",
|
|
1759
|
+
"[attr.data-fluid]": "fluid() || null"
|
|
1760
|
+
},
|
|
1761
|
+
styles: [":host{--_aeris-chevron-mask: var( --aeris-icon-chevron, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"m6 9 6 6 6-6\"/%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{transform:scale(.7);opacity:0}.aeris-multi-select__checkbox[data-checked] span{opacity:1;transform:scale(1)}.aeris-multi-select__checkbox[data-mixed] span{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;color:var(--aeris-primary, #111111);background:currentColor;-webkit-mask:var(--aeris-icon-loader, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"M21 12a9 9 0 1 1-6.219-8.56\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;mask:var(--aeris-icon-loader, url('data:image/svg+xml,%3Csvg xmlns=\"http://www.w3.org/2000/svg\" viewBox=\"0 0 24 24\" fill=\"none\" stroke=\"black\" stroke-width=\"2\" stroke-linecap=\"round\" stroke-linejoin=\"round\"%3E%3Cpath d=\"M21 12a9 9 0 1 1-6.219-8.56\"/%3E%3C/svg%3E')) center/100% 100% no-repeat;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)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}.aeris-multi-select__chevron[data-aeris-custom-icon]{transition:rotate var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease)}.aeris-multi-select[data-open] .aeris-multi-select__chevron[data-aeris-custom-icon]{rotate:180deg}@media(prefers-reduced-motion:reduce){.aeris-multi-select__chevron[data-aeris-custom-icon]{transition:none}}.aeris-multi-select__checkbox[data-checked] span:not([data-aeris-custom-icon]){top:0;width:min(var(--aeris-icon-size, 1rem),100%);height:min(var(--aeris-icon-size, 1rem),100%);border:0;background:currentColor;-webkit-mask:var(--aeris-icon-check) center/100% 100% no-repeat;mask:var(--aeris-icon-check) center/100% 100% no-repeat}.aeris-multi-select__checkbox[data-mixed] span:not([data-aeris-custom-icon]){top:0;width:min(var(--aeris-icon-size, 1rem),100%);height:min(var(--aeris-icon-size, 1rem),100%);border:0;background:currentColor;-webkit-mask:var(--aeris-icon-minus) center/100% 100% no-repeat;mask:var(--aeris-icon-minus) center/100% 100% no-repeat}\n"]
|
|
1762
|
+
}]
|
|
1763
|
+
}],
|
|
1764
|
+
propDecorators: {
|
|
1765
|
+
clearIconTemplate: [{
|
|
1766
|
+
type: i0.Input,
|
|
1767
|
+
args: [{
|
|
1768
|
+
isSignal: true,
|
|
1769
|
+
alias: "clearIconTemplate",
|
|
1770
|
+
required: false
|
|
1771
|
+
}]
|
|
1772
|
+
}],
|
|
1773
|
+
removeIconTemplate: [{
|
|
1774
|
+
type: i0.Input,
|
|
1775
|
+
args: [{
|
|
1776
|
+
isSignal: true,
|
|
1777
|
+
alias: "removeIconTemplate",
|
|
1778
|
+
required: false
|
|
1779
|
+
}]
|
|
1780
|
+
}],
|
|
1781
|
+
dropdownIconTemplate: [{
|
|
1782
|
+
type: i0.Input,
|
|
1783
|
+
args: [{
|
|
1784
|
+
isSignal: true,
|
|
1785
|
+
alias: "dropdownIconTemplate",
|
|
1786
|
+
required: false
|
|
1787
|
+
}]
|
|
1788
|
+
}],
|
|
1789
|
+
filterIconTemplate: [{
|
|
1790
|
+
type: i0.Input,
|
|
1791
|
+
args: [{
|
|
1792
|
+
isSignal: true,
|
|
1793
|
+
alias: "filterIconTemplate",
|
|
1794
|
+
required: false
|
|
1795
|
+
}]
|
|
1796
|
+
}],
|
|
1797
|
+
loadingIconTemplate: [{
|
|
1798
|
+
type: i0.Input,
|
|
1799
|
+
args: [{
|
|
1800
|
+
isSignal: true,
|
|
1801
|
+
alias: "loadingIconTemplate",
|
|
1802
|
+
required: false
|
|
1803
|
+
}]
|
|
1804
|
+
}],
|
|
1805
|
+
options: [{
|
|
1806
|
+
type: i0.Input,
|
|
1807
|
+
args: [{
|
|
1808
|
+
isSignal: true,
|
|
1809
|
+
alias: "options",
|
|
1810
|
+
required: true
|
|
1811
|
+
}]
|
|
1812
|
+
}],
|
|
1813
|
+
value: [{
|
|
1814
|
+
type: i0.Input,
|
|
1815
|
+
args: [{
|
|
1816
|
+
isSignal: true,
|
|
1817
|
+
alias: "value",
|
|
1818
|
+
required: false
|
|
1819
|
+
}]
|
|
1820
|
+
}, {
|
|
1821
|
+
type: i0.Output,
|
|
1822
|
+
args: ["valueChange"]
|
|
1823
|
+
}],
|
|
1824
|
+
inputId: [{
|
|
1825
|
+
type: i0.Input,
|
|
1826
|
+
args: [{
|
|
1827
|
+
isSignal: true,
|
|
1828
|
+
alias: "inputId",
|
|
1829
|
+
required: false
|
|
1830
|
+
}]
|
|
1831
|
+
}],
|
|
1832
|
+
name: [{
|
|
1833
|
+
type: i0.Input,
|
|
1834
|
+
args: [{
|
|
1835
|
+
isSignal: true,
|
|
1836
|
+
alias: "name",
|
|
1837
|
+
required: false
|
|
1838
|
+
}]
|
|
1839
|
+
}],
|
|
1840
|
+
valueSeparator: [{
|
|
1841
|
+
type: i0.Input,
|
|
1842
|
+
args: [{
|
|
1843
|
+
isSignal: true,
|
|
1844
|
+
alias: "valueSeparator",
|
|
1845
|
+
required: false
|
|
1846
|
+
}]
|
|
1847
|
+
}],
|
|
1848
|
+
placeholder: [{
|
|
1849
|
+
type: i0.Input,
|
|
1850
|
+
args: [{
|
|
1851
|
+
isSignal: true,
|
|
1852
|
+
alias: "placeholder",
|
|
1853
|
+
required: false
|
|
1854
|
+
}]
|
|
1855
|
+
}],
|
|
1856
|
+
ariaLabel: [{
|
|
1857
|
+
type: i0.Input,
|
|
1858
|
+
args: [{
|
|
1859
|
+
isSignal: true,
|
|
1860
|
+
alias: "ariaLabel",
|
|
1861
|
+
required: false
|
|
1862
|
+
}]
|
|
1863
|
+
}],
|
|
1864
|
+
ariaLabelledBy: [{
|
|
1865
|
+
type: i0.Input,
|
|
1866
|
+
args: [{
|
|
1867
|
+
isSignal: true,
|
|
1868
|
+
alias: "ariaLabelledBy",
|
|
1869
|
+
required: false
|
|
1870
|
+
}]
|
|
1871
|
+
}],
|
|
1872
|
+
ariaDescribedBy: [{
|
|
1873
|
+
type: i0.Input,
|
|
1874
|
+
args: [{
|
|
1875
|
+
isSignal: true,
|
|
1876
|
+
alias: "ariaDescribedBy",
|
|
1877
|
+
required: false
|
|
1878
|
+
}]
|
|
1879
|
+
}],
|
|
1880
|
+
listboxAriaLabel: [{
|
|
1881
|
+
type: i0.Input,
|
|
1882
|
+
args: [{
|
|
1883
|
+
isSignal: true,
|
|
1884
|
+
alias: "listboxAriaLabel",
|
|
1885
|
+
required: false
|
|
1886
|
+
}]
|
|
1887
|
+
}],
|
|
1888
|
+
size: [{
|
|
1889
|
+
type: i0.Input,
|
|
1890
|
+
args: [{
|
|
1891
|
+
isSignal: true,
|
|
1892
|
+
alias: "size",
|
|
1893
|
+
required: false
|
|
1894
|
+
}]
|
|
1895
|
+
}],
|
|
1896
|
+
appearance: [{
|
|
1897
|
+
type: i0.Input,
|
|
1898
|
+
args: [{
|
|
1899
|
+
isSignal: true,
|
|
1900
|
+
alias: "appearance",
|
|
1901
|
+
required: false
|
|
1902
|
+
}]
|
|
1903
|
+
}],
|
|
1904
|
+
display: [{
|
|
1905
|
+
type: i0.Input,
|
|
1906
|
+
args: [{
|
|
1907
|
+
isSignal: true,
|
|
1908
|
+
alias: "display",
|
|
1909
|
+
required: false
|
|
1910
|
+
}]
|
|
1911
|
+
}],
|
|
1912
|
+
selectedItemsLabel: [{
|
|
1913
|
+
type: i0.Input,
|
|
1914
|
+
args: [{
|
|
1915
|
+
isSignal: true,
|
|
1916
|
+
alias: "selectedItemsLabel",
|
|
1917
|
+
required: false
|
|
1918
|
+
}]
|
|
1919
|
+
}],
|
|
1920
|
+
maxSelectedLabels: [{
|
|
1921
|
+
type: i0.Input,
|
|
1922
|
+
args: [{
|
|
1923
|
+
isSignal: true,
|
|
1924
|
+
alias: "maxSelectedLabels",
|
|
1925
|
+
required: false
|
|
1926
|
+
}]
|
|
1927
|
+
}],
|
|
1928
|
+
selectionLimit: [{
|
|
1929
|
+
type: i0.Input,
|
|
1930
|
+
args: [{
|
|
1931
|
+
isSignal: true,
|
|
1932
|
+
alias: "selectionLimit",
|
|
1933
|
+
required: false
|
|
1934
|
+
}]
|
|
1935
|
+
}],
|
|
1936
|
+
selectionLimitMessage: [{
|
|
1937
|
+
type: i0.Input,
|
|
1938
|
+
args: [{
|
|
1939
|
+
isSignal: true,
|
|
1940
|
+
alias: "selectionLimitMessage",
|
|
1941
|
+
required: false
|
|
1942
|
+
}]
|
|
1943
|
+
}],
|
|
1944
|
+
showSelectAll: [{
|
|
1945
|
+
type: i0.Input,
|
|
1946
|
+
args: [{
|
|
1947
|
+
isSignal: true,
|
|
1948
|
+
alias: "showSelectAll",
|
|
1949
|
+
required: false
|
|
1950
|
+
}]
|
|
1951
|
+
}],
|
|
1952
|
+
selectAllLabel: [{
|
|
1953
|
+
type: i0.Input,
|
|
1954
|
+
args: [{
|
|
1955
|
+
isSignal: true,
|
|
1956
|
+
alias: "selectAllLabel",
|
|
1957
|
+
required: false
|
|
1958
|
+
}]
|
|
1959
|
+
}],
|
|
1960
|
+
clearable: [{
|
|
1961
|
+
type: i0.Input,
|
|
1962
|
+
args: [{
|
|
1963
|
+
isSignal: true,
|
|
1964
|
+
alias: "clearable",
|
|
1965
|
+
required: false
|
|
1966
|
+
}]
|
|
1967
|
+
}],
|
|
1968
|
+
clearButtonAriaLabel: [{
|
|
1969
|
+
type: i0.Input,
|
|
1970
|
+
args: [{
|
|
1971
|
+
isSignal: true,
|
|
1972
|
+
alias: "clearButtonAriaLabel",
|
|
1973
|
+
required: false
|
|
1974
|
+
}]
|
|
1975
|
+
}],
|
|
1976
|
+
filter: [{
|
|
1977
|
+
type: i0.Input,
|
|
1978
|
+
args: [{
|
|
1979
|
+
isSignal: true,
|
|
1980
|
+
alias: "filter",
|
|
1981
|
+
required: false
|
|
1982
|
+
}]
|
|
1983
|
+
}],
|
|
1984
|
+
filterValue: [{
|
|
1985
|
+
type: i0.Input,
|
|
1986
|
+
args: [{
|
|
1987
|
+
isSignal: true,
|
|
1988
|
+
alias: "filterValue",
|
|
1989
|
+
required: false
|
|
1990
|
+
}]
|
|
1991
|
+
}, {
|
|
1992
|
+
type: i0.Output,
|
|
1993
|
+
args: ["filterValueChange"]
|
|
1994
|
+
}],
|
|
1995
|
+
filterMatchMode: [{
|
|
1996
|
+
type: i0.Input,
|
|
1997
|
+
args: [{
|
|
1998
|
+
isSignal: true,
|
|
1999
|
+
alias: "filterMatchMode",
|
|
2000
|
+
required: false
|
|
2001
|
+
}]
|
|
2002
|
+
}],
|
|
2003
|
+
filterFields: [{
|
|
2004
|
+
type: i0.Input,
|
|
2005
|
+
args: [{
|
|
2006
|
+
isSignal: true,
|
|
2007
|
+
alias: "filterFields",
|
|
2008
|
+
required: false
|
|
2009
|
+
}]
|
|
2010
|
+
}],
|
|
2011
|
+
filterLocale: [{
|
|
2012
|
+
type: i0.Input,
|
|
2013
|
+
args: [{
|
|
2014
|
+
isSignal: true,
|
|
2015
|
+
alias: "filterLocale",
|
|
2016
|
+
required: false
|
|
2017
|
+
}]
|
|
2018
|
+
}],
|
|
2019
|
+
filterPlaceholder: [{
|
|
2020
|
+
type: i0.Input,
|
|
2021
|
+
args: [{
|
|
2022
|
+
isSignal: true,
|
|
2023
|
+
alias: "filterPlaceholder",
|
|
2024
|
+
required: false
|
|
2025
|
+
}]
|
|
2026
|
+
}],
|
|
2027
|
+
filterAriaLabel: [{
|
|
2028
|
+
type: i0.Input,
|
|
2029
|
+
args: [{
|
|
2030
|
+
isSignal: true,
|
|
2031
|
+
alias: "filterAriaLabel",
|
|
2032
|
+
required: false
|
|
2033
|
+
}]
|
|
2034
|
+
}],
|
|
2035
|
+
filterClearAriaLabel: [{
|
|
2036
|
+
type: i0.Input,
|
|
2037
|
+
args: [{
|
|
2038
|
+
isSignal: true,
|
|
2039
|
+
alias: "filterClearAriaLabel",
|
|
2040
|
+
required: false
|
|
2041
|
+
}]
|
|
2042
|
+
}],
|
|
2043
|
+
resetFilterOnClose: [{
|
|
2044
|
+
type: i0.Input,
|
|
2045
|
+
args: [{
|
|
2046
|
+
isSignal: true,
|
|
2047
|
+
alias: "resetFilterOnClose",
|
|
2048
|
+
required: false
|
|
2049
|
+
}]
|
|
2050
|
+
}],
|
|
2051
|
+
autofocusFilter: [{
|
|
2052
|
+
type: i0.Input,
|
|
2053
|
+
args: [{
|
|
2054
|
+
isSignal: true,
|
|
2055
|
+
alias: "autofocusFilter",
|
|
2056
|
+
required: false
|
|
2057
|
+
}]
|
|
2058
|
+
}],
|
|
2059
|
+
emptyMessage: [{
|
|
2060
|
+
type: i0.Input,
|
|
2061
|
+
args: [{
|
|
2062
|
+
isSignal: true,
|
|
2063
|
+
alias: "emptyMessage",
|
|
2064
|
+
required: false
|
|
2065
|
+
}]
|
|
2066
|
+
}],
|
|
2067
|
+
emptyFilterMessage: [{
|
|
2068
|
+
type: i0.Input,
|
|
2069
|
+
args: [{
|
|
2070
|
+
isSignal: true,
|
|
2071
|
+
alias: "emptyFilterMessage",
|
|
2072
|
+
required: false
|
|
2073
|
+
}]
|
|
2074
|
+
}],
|
|
2075
|
+
loading: [{
|
|
2076
|
+
type: i0.Input,
|
|
2077
|
+
args: [{
|
|
2078
|
+
isSignal: true,
|
|
2079
|
+
alias: "loading",
|
|
2080
|
+
required: false
|
|
2081
|
+
}]
|
|
2082
|
+
}],
|
|
2083
|
+
loadingMessage: [{
|
|
2084
|
+
type: i0.Input,
|
|
2085
|
+
args: [{
|
|
2086
|
+
isSignal: true,
|
|
2087
|
+
alias: "loadingMessage",
|
|
2088
|
+
required: false
|
|
2089
|
+
}]
|
|
2090
|
+
}],
|
|
2091
|
+
panelMaxHeight: [{
|
|
2092
|
+
type: i0.Input,
|
|
2093
|
+
args: [{
|
|
2094
|
+
isSignal: true,
|
|
2095
|
+
alias: "panelMaxHeight",
|
|
2096
|
+
required: false
|
|
2097
|
+
}]
|
|
2098
|
+
}],
|
|
2099
|
+
appendTo: [{
|
|
2100
|
+
type: i0.Input,
|
|
2101
|
+
args: [{
|
|
2102
|
+
isSignal: true,
|
|
2103
|
+
alias: "appendTo",
|
|
2104
|
+
required: false
|
|
2105
|
+
}]
|
|
2106
|
+
}],
|
|
2107
|
+
viewportMargin: [{
|
|
2108
|
+
type: i0.Input,
|
|
2109
|
+
args: [{
|
|
2110
|
+
isSignal: true,
|
|
2111
|
+
alias: "viewportMargin",
|
|
2112
|
+
required: false
|
|
2113
|
+
}]
|
|
2114
|
+
}],
|
|
2115
|
+
virtualScroll: [{
|
|
2116
|
+
type: i0.Input,
|
|
2117
|
+
args: [{
|
|
2118
|
+
isSignal: true,
|
|
2119
|
+
alias: "virtualScroll",
|
|
2120
|
+
required: false
|
|
2121
|
+
}]
|
|
2122
|
+
}],
|
|
2123
|
+
virtualItemSize: [{
|
|
2124
|
+
type: i0.Input,
|
|
2125
|
+
args: [{
|
|
2126
|
+
isSignal: true,
|
|
2127
|
+
alias: "virtualItemSize",
|
|
2128
|
+
required: false
|
|
2129
|
+
}]
|
|
2130
|
+
}],
|
|
2131
|
+
virtualBuffer: [{
|
|
2132
|
+
type: i0.Input,
|
|
2133
|
+
args: [{
|
|
2134
|
+
isSignal: true,
|
|
2135
|
+
alias: "virtualBuffer",
|
|
2136
|
+
required: false
|
|
2137
|
+
}]
|
|
2138
|
+
}],
|
|
2139
|
+
lazy: [{
|
|
2140
|
+
type: i0.Input,
|
|
2141
|
+
args: [{
|
|
2142
|
+
isSignal: true,
|
|
2143
|
+
alias: "lazy",
|
|
2144
|
+
required: false
|
|
2145
|
+
}]
|
|
2146
|
+
}],
|
|
2147
|
+
closeOnSelect: [{
|
|
2148
|
+
type: i0.Input,
|
|
2149
|
+
args: [{
|
|
2150
|
+
isSignal: true,
|
|
2151
|
+
alias: "closeOnSelect",
|
|
2152
|
+
required: false
|
|
2153
|
+
}]
|
|
2154
|
+
}],
|
|
2155
|
+
disabled: [{
|
|
2156
|
+
type: i0.Input,
|
|
2157
|
+
args: [{
|
|
2158
|
+
isSignal: true,
|
|
2159
|
+
alias: "disabled",
|
|
2160
|
+
required: false
|
|
2161
|
+
}]
|
|
2162
|
+
}],
|
|
2163
|
+
required: [{
|
|
2164
|
+
type: i0.Input,
|
|
2165
|
+
args: [{
|
|
2166
|
+
isSignal: true,
|
|
2167
|
+
alias: "required",
|
|
2168
|
+
required: false
|
|
2169
|
+
}]
|
|
2170
|
+
}],
|
|
2171
|
+
invalid: [{
|
|
2172
|
+
type: i0.Input,
|
|
2173
|
+
args: [{
|
|
2174
|
+
isSignal: true,
|
|
2175
|
+
alias: "invalid",
|
|
2176
|
+
required: false
|
|
2177
|
+
}]
|
|
2178
|
+
}],
|
|
2179
|
+
touched: [{
|
|
2180
|
+
type: i0.Input,
|
|
2181
|
+
args: [{
|
|
2182
|
+
isSignal: true,
|
|
2183
|
+
alias: "touched",
|
|
2184
|
+
required: false
|
|
2185
|
+
}]
|
|
2186
|
+
}],
|
|
2187
|
+
fluid: [{
|
|
2188
|
+
type: i0.Input,
|
|
2189
|
+
args: [{
|
|
2190
|
+
isSignal: true,
|
|
2191
|
+
alias: "fluid",
|
|
2192
|
+
required: false
|
|
2193
|
+
}]
|
|
2194
|
+
}],
|
|
2195
|
+
changed: [{
|
|
2196
|
+
type: i0.Output,
|
|
2197
|
+
args: ["changed"]
|
|
2198
|
+
}],
|
|
2199
|
+
filterChanged: [{
|
|
2200
|
+
type: i0.Output,
|
|
2201
|
+
args: ["filterChanged"]
|
|
2202
|
+
}],
|
|
2203
|
+
lazyLoad: [{
|
|
2204
|
+
type: i0.Output,
|
|
2205
|
+
args: ["lazyLoad"]
|
|
2206
|
+
}],
|
|
2207
|
+
opened: [{
|
|
2208
|
+
type: i0.Output,
|
|
2209
|
+
args: ["opened"]
|
|
2210
|
+
}],
|
|
2211
|
+
closed: [{
|
|
2212
|
+
type: i0.Output,
|
|
2213
|
+
args: ["closed"]
|
|
2214
|
+
}],
|
|
2215
|
+
cleared: [{
|
|
2216
|
+
type: i0.Output,
|
|
2217
|
+
args: ["cleared"]
|
|
2218
|
+
}],
|
|
2219
|
+
focused: [{
|
|
2220
|
+
type: i0.Output,
|
|
2221
|
+
args: ["focused"]
|
|
2222
|
+
}],
|
|
2223
|
+
blurred: [{
|
|
2224
|
+
type: i0.Output,
|
|
2225
|
+
args: ["blurred"]
|
|
2226
|
+
}],
|
|
2227
|
+
touch: [{
|
|
2228
|
+
type: i0.Output,
|
|
2229
|
+
args: ["touch"]
|
|
2230
|
+
}],
|
|
2231
|
+
control: [{
|
|
2232
|
+
type: i0.ViewChild,
|
|
2233
|
+
args: ["control", { isSignal: true }]
|
|
2234
|
+
}],
|
|
2235
|
+
trigger: [{
|
|
2236
|
+
type: i0.ViewChild,
|
|
2237
|
+
args: ["trigger", { isSignal: true }]
|
|
2238
|
+
}],
|
|
2239
|
+
optionsPanel: [{
|
|
2240
|
+
type: i0.ViewChild,
|
|
2241
|
+
args: ["optionsPanel", { isSignal: true }]
|
|
2242
|
+
}],
|
|
2243
|
+
panelPortal: [{
|
|
2244
|
+
type: i0.ViewChild,
|
|
2245
|
+
args: [i0.forwardRef(() => ɵAerisAppendTo), { isSignal: true }]
|
|
2246
|
+
}],
|
|
2247
|
+
filterInput: [{
|
|
2248
|
+
type: i0.ViewChild,
|
|
2249
|
+
args: ["filterInput", { isSignal: true }]
|
|
2250
|
+
}],
|
|
2251
|
+
optionTemplate: [{
|
|
2252
|
+
type: i0.ContentChild,
|
|
2253
|
+
args: [i0.forwardRef(() => AerisMultiSelectOptionTemplate), { isSignal: true }]
|
|
2254
|
+
}],
|
|
2255
|
+
chipTemplate: [{
|
|
2256
|
+
type: i0.ContentChild,
|
|
2257
|
+
args: [i0.forwardRef(() => AerisMultiSelectChipTemplate), { isSignal: true }]
|
|
2258
|
+
}],
|
|
2259
|
+
headerTemplate: [{
|
|
2260
|
+
type: i0.ContentChild,
|
|
2261
|
+
args: [i0.forwardRef(() => AerisMultiSelectHeaderTemplate), { isSignal: true }]
|
|
2262
|
+
}],
|
|
2263
|
+
footerTemplate: [{
|
|
2264
|
+
type: i0.ContentChild,
|
|
2265
|
+
args: [i0.forwardRef(() => AerisMultiSelectFooterTemplate), { isSignal: true }]
|
|
2266
|
+
}],
|
|
2267
|
+
emptyTemplate: [{
|
|
2268
|
+
type: i0.ContentChild,
|
|
2269
|
+
args: [i0.forwardRef(() => AerisMultiSelectEmptyTemplate), { isSignal: true }]
|
|
2270
|
+
}]
|
|
2271
|
+
}
|
|
2272
|
+
});
|
|
1013
2273
|
const AerisMultiSelect = [
|
|
1014
|
-
|
|
1015
|
-
|
|
1016
|
-
|
|
1017
|
-
|
|
1018
|
-
|
|
1019
|
-
|
|
2274
|
+
AerisMultiSelectComponent,
|
|
2275
|
+
AerisMultiSelectOptionTemplate,
|
|
2276
|
+
AerisMultiSelectChipTemplate,
|
|
2277
|
+
AerisMultiSelectHeaderTemplate,
|
|
2278
|
+
AerisMultiSelectFooterTemplate,
|
|
2279
|
+
AerisMultiSelectEmptyTemplate
|
|
1020
2280
|
];
|
|
1021
2281
|
function optionalNumber(value) {
|
|
1022
|
-
|
|
1023
|
-
|
|
1024
|
-
|
|
1025
|
-
return Number.isFinite(number) ? Math.max(0, Math.trunc(number)) : undefined;
|
|
2282
|
+
if (value === void 0 || value === null || value === "") return void 0;
|
|
2283
|
+
const number = Number(value);
|
|
2284
|
+
return Number.isFinite(number) ? Math.max(0, Math.trunc(number)) : void 0;
|
|
1026
2285
|
}
|
|
1027
|
-
|
|
1028
|
-
/**
|
|
1029
|
-
* Generated bundle index. Do not edit.
|
|
1030
|
-
*/
|
|
1031
|
-
|
|
1032
2286
|
export { AerisMultiSelect, AerisMultiSelectChipTemplate, AerisMultiSelectComponent, AerisMultiSelectEmptyTemplate, AerisMultiSelectFooterTemplate, AerisMultiSelectHeaderTemplate, AerisMultiSelectOptionTemplate };
|
|
1033
|
-
|
|
2287
|
+
|
|
2288
|
+
//# sourceMappingURL=aeris-ui-core-multi-select.mjs.map
|