@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
|
@@ -0,0 +1,789 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
2
|
+
import * as i0 from "@angular/core";
|
|
3
|
+
import { Component, DestroyRef, Directive, ElementRef, TemplateRef, afterRenderEffect, booleanAttribute, computed, contentChild, forwardRef, inject, input, linkedSignal, model, output, signal, viewChild, viewChildren } from "@angular/core";
|
|
4
|
+
import { NG_VALUE_ACCESSOR } from "@angular/forms";
|
|
5
|
+
import { boundarySelectValue, filterSelectOptions, groupSelectOptions, nextEnabledSelectValue, ɵaerisDisplayInvalid } from "@aeris-ui/core";
|
|
6
|
+
var AerisListboxOptionTemplate = class AerisListboxOptionTemplate {
|
|
7
|
+
template = inject(TemplateRef);
|
|
8
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
9
|
+
return true;
|
|
10
|
+
}
|
|
11
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
12
|
+
minVersion: "12.0.0",
|
|
13
|
+
version: "22.2.3",
|
|
14
|
+
ngImport: i0,
|
|
15
|
+
type: AerisListboxOptionTemplate,
|
|
16
|
+
deps: [],
|
|
17
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
18
|
+
});
|
|
19
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
20
|
+
minVersion: "14.0.0",
|
|
21
|
+
version: "22.2.3",
|
|
22
|
+
type: AerisListboxOptionTemplate,
|
|
23
|
+
isStandalone: true,
|
|
24
|
+
selector: "ng-template[aerisListboxOption]",
|
|
25
|
+
ngImport: i0
|
|
26
|
+
});
|
|
27
|
+
};
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
29
|
+
minVersion: "12.0.0",
|
|
30
|
+
version: "22.2.3",
|
|
31
|
+
ngImport: i0,
|
|
32
|
+
type: AerisListboxOptionTemplate,
|
|
33
|
+
decorators: [{
|
|
34
|
+
type: Directive,
|
|
35
|
+
args: [{ selector: "ng-template[aerisListboxOption]" }]
|
|
36
|
+
}]
|
|
37
|
+
});
|
|
38
|
+
var AerisListboxGroupTemplate = class AerisListboxGroupTemplate {
|
|
39
|
+
template = inject(TemplateRef);
|
|
40
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
41
|
+
return true;
|
|
42
|
+
}
|
|
43
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
44
|
+
minVersion: "12.0.0",
|
|
45
|
+
version: "22.2.3",
|
|
46
|
+
ngImport: i0,
|
|
47
|
+
type: AerisListboxGroupTemplate,
|
|
48
|
+
deps: [],
|
|
49
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
50
|
+
});
|
|
51
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
52
|
+
minVersion: "14.0.0",
|
|
53
|
+
version: "22.2.3",
|
|
54
|
+
type: AerisListboxGroupTemplate,
|
|
55
|
+
isStandalone: true,
|
|
56
|
+
selector: "ng-template[aerisListboxGroup]",
|
|
57
|
+
ngImport: i0
|
|
58
|
+
});
|
|
59
|
+
};
|
|
60
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
61
|
+
minVersion: "12.0.0",
|
|
62
|
+
version: "22.2.3",
|
|
63
|
+
ngImport: i0,
|
|
64
|
+
type: AerisListboxGroupTemplate,
|
|
65
|
+
decorators: [{
|
|
66
|
+
type: Directive,
|
|
67
|
+
args: [{ selector: "ng-template[aerisListboxGroup]" }]
|
|
68
|
+
}]
|
|
69
|
+
});
|
|
70
|
+
var AerisListboxEmptyTemplate = class AerisListboxEmptyTemplate {
|
|
71
|
+
template = inject(TemplateRef);
|
|
72
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
73
|
+
minVersion: "12.0.0",
|
|
74
|
+
version: "22.2.3",
|
|
75
|
+
ngImport: i0,
|
|
76
|
+
type: AerisListboxEmptyTemplate,
|
|
77
|
+
deps: [],
|
|
78
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
79
|
+
});
|
|
80
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
81
|
+
minVersion: "14.0.0",
|
|
82
|
+
version: "22.2.3",
|
|
83
|
+
type: AerisListboxEmptyTemplate,
|
|
84
|
+
isStandalone: true,
|
|
85
|
+
selector: "ng-template[aerisListboxEmpty]",
|
|
86
|
+
ngImport: i0
|
|
87
|
+
});
|
|
88
|
+
};
|
|
89
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
90
|
+
minVersion: "12.0.0",
|
|
91
|
+
version: "22.2.3",
|
|
92
|
+
ngImport: i0,
|
|
93
|
+
type: AerisListboxEmptyTemplate,
|
|
94
|
+
decorators: [{
|
|
95
|
+
type: Directive,
|
|
96
|
+
args: [{ selector: "ng-template[aerisListboxEmpty]" }]
|
|
97
|
+
}]
|
|
98
|
+
});
|
|
99
|
+
var AerisListboxLoadingTemplate = class AerisListboxLoadingTemplate {
|
|
100
|
+
template = inject(TemplateRef);
|
|
101
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
102
|
+
minVersion: "12.0.0",
|
|
103
|
+
version: "22.2.3",
|
|
104
|
+
ngImport: i0,
|
|
105
|
+
type: AerisListboxLoadingTemplate,
|
|
106
|
+
deps: [],
|
|
107
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
108
|
+
});
|
|
109
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
110
|
+
minVersion: "14.0.0",
|
|
111
|
+
version: "22.2.3",
|
|
112
|
+
type: AerisListboxLoadingTemplate,
|
|
113
|
+
isStandalone: true,
|
|
114
|
+
selector: "ng-template[aerisListboxLoading]",
|
|
115
|
+
ngImport: i0
|
|
116
|
+
});
|
|
117
|
+
};
|
|
118
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
119
|
+
minVersion: "12.0.0",
|
|
120
|
+
version: "22.2.3",
|
|
121
|
+
ngImport: i0,
|
|
122
|
+
type: AerisListboxLoadingTemplate,
|
|
123
|
+
decorators: [{
|
|
124
|
+
type: Directive,
|
|
125
|
+
args: [{ selector: "ng-template[aerisListboxLoading]" }]
|
|
126
|
+
}]
|
|
127
|
+
});
|
|
128
|
+
let nextListboxId = 0;
|
|
129
|
+
var AerisListboxComponent = class AerisListboxComponent {
|
|
130
|
+
options = input([], ...ngDevMode ? [{ debugName: "options" }] : /* istanbul ignore next */ []);
|
|
131
|
+
selectionMode = input("single", ...ngDevMode ? [{ debugName: "selectionMode" }] : /* istanbul ignore next */ []);
|
|
132
|
+
value = model(null, ...ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []);
|
|
133
|
+
filter = input(false, {
|
|
134
|
+
...ngDevMode ? { debugName: "filter" } : /* istanbul ignore next */ {},
|
|
135
|
+
transform: booleanAttribute
|
|
136
|
+
});
|
|
137
|
+
query = model("", ...ngDevMode ? [{ debugName: "query" }] : /* istanbul ignore next */ []);
|
|
138
|
+
filterPlaceholder = input("Search options", ...ngDevMode ? [{ debugName: "filterPlaceholder" }] : /* istanbul ignore next */ []);
|
|
139
|
+
filterAriaLabel = input("Filter options", ...ngDevMode ? [{ debugName: "filterAriaLabel" }] : /* istanbul ignore next */ []);
|
|
140
|
+
emptyMessage = input("No options available", ...ngDevMode ? [{ debugName: "emptyMessage" }] : /* istanbul ignore next */ []);
|
|
141
|
+
loadingMessage = input("Loading options", ...ngDevMode ? [{ debugName: "loadingMessage" }] : /* istanbul ignore next */ []);
|
|
142
|
+
loading = input(false, {
|
|
143
|
+
...ngDevMode ? { debugName: "loading" } : /* istanbul ignore next */ {},
|
|
144
|
+
transform: booleanAttribute
|
|
145
|
+
});
|
|
146
|
+
disabled = input(false, {
|
|
147
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
148
|
+
transform: booleanAttribute
|
|
149
|
+
});
|
|
150
|
+
required = input(false, {
|
|
151
|
+
...ngDevMode ? { debugName: "required" } : /* istanbul ignore next */ {},
|
|
152
|
+
transform: booleanAttribute
|
|
153
|
+
});
|
|
154
|
+
invalid = input(false, {
|
|
155
|
+
...ngDevMode ? { debugName: "invalid" } : /* istanbul ignore next */ {},
|
|
156
|
+
transform: booleanAttribute
|
|
157
|
+
});
|
|
158
|
+
touched = input(null, ...ngDevMode ? [{ debugName: "touched" }] : /* istanbul ignore next */ []);
|
|
159
|
+
ariaLabel = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
160
|
+
ariaLabelledBy = input(void 0, ...ngDevMode ? [{ debugName: "ariaLabelledBy" }] : /* istanbul ignore next */ []);
|
|
161
|
+
ariaDescribedBy = input(void 0, ...ngDevMode ? [{ debugName: "ariaDescribedBy" }] : /* istanbul ignore next */ []);
|
|
162
|
+
scrollHeight = input("16rem", ...ngDevMode ? [{ debugName: "scrollHeight" }] : /* istanbul ignore next */ []);
|
|
163
|
+
changed = output();
|
|
164
|
+
touch = output();
|
|
165
|
+
host = inject(ElementRef);
|
|
166
|
+
destroyRef = inject(DestroyRef);
|
|
167
|
+
formDisabled = signal(false, ...ngDevMode ? [{ debugName: "formDisabled" }] : /* istanbul ignore next */ []);
|
|
168
|
+
list = viewChild("list", ...ngDevMode ? [{ debugName: "list" }] : /* istanbul ignore next */ []);
|
|
169
|
+
optionElements = viewChildren("optionElement", ...ngDevMode ? [{ debugName: "optionElements" }] : /* istanbul ignore next */ []);
|
|
170
|
+
optionTemplate = contentChild(AerisListboxOptionTemplate, ...ngDevMode ? [{ debugName: "optionTemplate" }] : /* istanbul ignore next */ []);
|
|
171
|
+
groupTemplate = contentChild(AerisListboxGroupTemplate, ...ngDevMode ? [{ debugName: "groupTemplate" }] : /* istanbul ignore next */ []);
|
|
172
|
+
emptyTemplate = contentChild(AerisListboxEmptyTemplate, ...ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []);
|
|
173
|
+
loadingTemplate = contentChild(AerisListboxLoadingTemplate, ...ngDevMode ? [{ debugName: "loadingTemplate" }] : /* istanbul ignore next */ []);
|
|
174
|
+
id = `aeris-listbox-${nextListboxId++}`;
|
|
175
|
+
isDisabled = computed(() => this.disabled() || this.formDisabled(), ...ngDevMode ? [{ debugName: "isDisabled" }] : /* istanbul ignore next */ []);
|
|
176
|
+
displayInvalid = computed(() => ɵaerisDisplayInvalid(this.invalid(), this.touched()), ...ngDevMode ? [{ debugName: "displayInvalid" }] : /* istanbul ignore next */ []);
|
|
177
|
+
filteredOptions = computed(() => filterSelectOptions(this.options(), this.filter() ? this.query() : "", [
|
|
178
|
+
"label",
|
|
179
|
+
"description",
|
|
180
|
+
"group"
|
|
181
|
+
], "contains"), ...ngDevMode ? [{ debugName: "filteredOptions" }] : /* istanbul ignore next */ []);
|
|
182
|
+
orderedOptions = computed(() => groupSelectOptions(this.filteredOptions()).flatMap((group) => group.options), ...ngDevMode ? [{ debugName: "orderedOptions" }] : /* istanbul ignore next */ []);
|
|
183
|
+
selectedKeys = computed(() => {
|
|
184
|
+
const value = this.value();
|
|
185
|
+
return new Set(typeof value === "string" ? [value] : value ?? []);
|
|
186
|
+
}, ...ngDevMode ? [{ debugName: "selectedKeys" }] : /* istanbul ignore next */ []);
|
|
187
|
+
activeValue = linkedSignal(() => {
|
|
188
|
+
const options = this.orderedOptions();
|
|
189
|
+
return options.find((option) => !option.disabled && this.selectedKeys().has(option.value))?.value ?? boundarySelectValue(options, "start");
|
|
190
|
+
}, ...ngDevMode ? [{ debugName: "activeValue" }] : /* istanbul ignore next */ []);
|
|
191
|
+
groups = computed(() => {
|
|
192
|
+
const selected = this.selectedKeys();
|
|
193
|
+
const active = this.activeValue();
|
|
194
|
+
let index = 0;
|
|
195
|
+
return groupSelectOptions(this.filteredOptions()).map((group, groupIndex) => ({
|
|
196
|
+
...group,
|
|
197
|
+
id: `${this.id}-group-${groupIndex}`,
|
|
198
|
+
context: {
|
|
199
|
+
$implicit: group.label ?? "",
|
|
200
|
+
group: group.label ?? ""
|
|
201
|
+
},
|
|
202
|
+
items: group.options.map((option) => ({
|
|
203
|
+
option,
|
|
204
|
+
id: `${this.id}-option-${index++}`,
|
|
205
|
+
selected: selected.has(option.value),
|
|
206
|
+
active: active === option.value,
|
|
207
|
+
context: {
|
|
208
|
+
$implicit: option,
|
|
209
|
+
option,
|
|
210
|
+
selected: selected.has(option.value),
|
|
211
|
+
active: active === option.value
|
|
212
|
+
}
|
|
213
|
+
}))
|
|
214
|
+
}));
|
|
215
|
+
}, ...ngDevMode ? [{ debugName: "groups" }] : /* istanbul ignore next */ []);
|
|
216
|
+
activeId = computed(() => this.groups().flatMap((group) => group.items).find((item) => item.active)?.id ?? null, ...ngDevMode ? [{ debugName: "activeId" }] : /* istanbul ignore next */ []);
|
|
217
|
+
typeahead = "";
|
|
218
|
+
typeaheadTimer;
|
|
219
|
+
rangeAnchor = null;
|
|
220
|
+
onChange = () => {};
|
|
221
|
+
onTouched = () => {};
|
|
222
|
+
constructor() {
|
|
223
|
+
afterRenderEffect(() => this.revealActive());
|
|
224
|
+
this.destroyRef.onDestroy(() => clearTimeout(this.typeaheadTimer));
|
|
225
|
+
}
|
|
226
|
+
revealActive() {
|
|
227
|
+
const activeId = this.activeId();
|
|
228
|
+
const list = this.list()?.nativeElement;
|
|
229
|
+
const option = this.optionElements().find((element) => element.nativeElement.id === activeId)?.nativeElement;
|
|
230
|
+
if (!list || !option || list.ownerDocument.activeElement !== list) return;
|
|
231
|
+
if (option.offsetTop < list.scrollTop) list.scrollTop = option.offsetTop;
|
|
232
|
+
else if (option.offsetTop + option.offsetHeight > list.scrollTop + list.clientHeight) list.scrollTop = option.offsetTop + option.offsetHeight - list.clientHeight;
|
|
233
|
+
}
|
|
234
|
+
focus(options) {
|
|
235
|
+
if (!this.isDisabled()) this.list()?.nativeElement.focus(options);
|
|
236
|
+
}
|
|
237
|
+
writeValue(value) {
|
|
238
|
+
this.value.set(typeof value === "string" ? value : Array.isArray(value) ? value.filter((item) => typeof item === "string") : null);
|
|
239
|
+
}
|
|
240
|
+
registerOnChange(callback) {
|
|
241
|
+
this.onChange = callback;
|
|
242
|
+
}
|
|
243
|
+
registerOnTouched(callback) {
|
|
244
|
+
this.onTouched = callback;
|
|
245
|
+
}
|
|
246
|
+
setDisabledState(disabled) {
|
|
247
|
+
this.formDisabled.set(disabled);
|
|
248
|
+
}
|
|
249
|
+
onFocusOut(event) {
|
|
250
|
+
if (event.relatedTarget instanceof Node && this.host.nativeElement.contains(event.relatedTarget)) return;
|
|
251
|
+
this.onTouched();
|
|
252
|
+
this.touch.emit();
|
|
253
|
+
}
|
|
254
|
+
onFilter(event) {
|
|
255
|
+
this.query.set(event.target.value);
|
|
256
|
+
}
|
|
257
|
+
onFilterKeydown(event) {
|
|
258
|
+
if (event.key === "ArrowDown" && !event.isComposing) {
|
|
259
|
+
event.preventDefault();
|
|
260
|
+
this.focus();
|
|
261
|
+
}
|
|
262
|
+
}
|
|
263
|
+
choose(event, option) {
|
|
264
|
+
if (this.isDisabled() || this.loading() || option.disabled) return;
|
|
265
|
+
this.focus({ preventScroll: true });
|
|
266
|
+
this.activeValue.set(option.value);
|
|
267
|
+
if (this.selectionMode() === "multiple") {
|
|
268
|
+
if (event instanceof MouseEvent && event.shiftKey) {
|
|
269
|
+
this.selectRange(event, option.value);
|
|
270
|
+
return;
|
|
271
|
+
}
|
|
272
|
+
const values = new Set(this.selectedKeys());
|
|
273
|
+
if (values.has(option.value)) values.delete(option.value);
|
|
274
|
+
else values.add(option.value);
|
|
275
|
+
this.commit(event, [...values]);
|
|
276
|
+
} else this.commit(event, option.value);
|
|
277
|
+
this.rangeAnchor = option.value;
|
|
278
|
+
}
|
|
279
|
+
onKeydown(event) {
|
|
280
|
+
if (this.isDisabled() || this.loading() || event.isComposing || event.altKey) return;
|
|
281
|
+
const options = this.orderedOptions();
|
|
282
|
+
let next;
|
|
283
|
+
switch (event.key) {
|
|
284
|
+
case "ArrowDown":
|
|
285
|
+
next = nextEnabledSelectValue(options, this.activeValue(), 1);
|
|
286
|
+
break;
|
|
287
|
+
case "ArrowUp":
|
|
288
|
+
next = nextEnabledSelectValue(options, this.activeValue(), -1);
|
|
289
|
+
break;
|
|
290
|
+
case "Home":
|
|
291
|
+
next = boundarySelectValue(options, "start");
|
|
292
|
+
break;
|
|
293
|
+
case "End":
|
|
294
|
+
next = boundarySelectValue(options, "end");
|
|
295
|
+
break;
|
|
296
|
+
case " ":
|
|
297
|
+
case "Enter": {
|
|
298
|
+
event.preventDefault();
|
|
299
|
+
const option = options.find((option) => option.value === this.activeValue());
|
|
300
|
+
if (option) this.choose(event, option);
|
|
301
|
+
return;
|
|
302
|
+
}
|
|
303
|
+
default: if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === "a" && this.selectionMode() === "multiple") {
|
|
304
|
+
event.preventDefault();
|
|
305
|
+
const values = new Set(this.selectedKeys());
|
|
306
|
+
const enabled = options.filter((option) => !option.disabled);
|
|
307
|
+
const allSelected = enabled.every((option) => values.has(option.value));
|
|
308
|
+
for (const option of enabled) if (allSelected) values.delete(option.value);
|
|
309
|
+
else values.add(option.value);
|
|
310
|
+
this.commit(event, [...values]);
|
|
311
|
+
} else if (!event.ctrlKey && !event.metaKey && event.key.length === 1) {
|
|
312
|
+
event.preventDefault();
|
|
313
|
+
clearTimeout(this.typeaheadTimer);
|
|
314
|
+
this.typeahead += event.key.toLocaleLowerCase();
|
|
315
|
+
this.typeaheadTimer = setTimeout(() => {
|
|
316
|
+
this.typeahead = "";
|
|
317
|
+
}, 500);
|
|
318
|
+
const query = [...this.typeahead].every((character) => character === this.typeahead[0]) ? event.key.toLocaleLowerCase() : this.typeahead;
|
|
319
|
+
const start = options.findIndex((option) => option.value === this.activeValue());
|
|
320
|
+
next = [...options.slice(start + 1), ...options.slice(0, start + 1)].find((option) => !option.disabled && option.label.toLocaleLowerCase().startsWith(query))?.value;
|
|
321
|
+
}
|
|
322
|
+
}
|
|
323
|
+
if (next !== null && next !== void 0) {
|
|
324
|
+
event.preventDefault();
|
|
325
|
+
const previous = this.activeValue();
|
|
326
|
+
this.activeValue.set(next);
|
|
327
|
+
if (event.shiftKey && this.selectionMode() === "multiple") {
|
|
328
|
+
this.rangeAnchor ??= previous;
|
|
329
|
+
this.selectRange(event, next);
|
|
330
|
+
}
|
|
331
|
+
}
|
|
332
|
+
}
|
|
333
|
+
selectRange(event, end) {
|
|
334
|
+
const options = this.orderedOptions();
|
|
335
|
+
const startIndex = options.findIndex((option) => option.value === (this.rangeAnchor ?? end));
|
|
336
|
+
const endIndex = options.findIndex((option) => option.value === end);
|
|
337
|
+
const start = startIndex < 0 ? endIndex : startIndex;
|
|
338
|
+
const enabled = new Set(options.filter((option) => !option.disabled).map((option) => option.value));
|
|
339
|
+
const retained = [...this.selectedKeys()].filter((value) => !enabled.has(value));
|
|
340
|
+
this.commit(event, [...retained, ...options.slice(Math.min(start, endIndex), Math.max(start, endIndex) + 1).filter((option) => !option.disabled).map((option) => option.value)]);
|
|
341
|
+
}
|
|
342
|
+
commit(originalEvent, value) {
|
|
343
|
+
const active = this.activeValue();
|
|
344
|
+
this.value.set(value);
|
|
345
|
+
this.activeValue.set(active);
|
|
346
|
+
this.onChange(value);
|
|
347
|
+
this.changed.emit({
|
|
348
|
+
originalEvent,
|
|
349
|
+
value,
|
|
350
|
+
options: this.options().filter((option) => this.selectedKeys().has(option.value))
|
|
351
|
+
});
|
|
352
|
+
}
|
|
353
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
354
|
+
minVersion: "12.0.0",
|
|
355
|
+
version: "22.2.3",
|
|
356
|
+
ngImport: i0,
|
|
357
|
+
type: AerisListboxComponent,
|
|
358
|
+
deps: [],
|
|
359
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
360
|
+
});
|
|
361
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
362
|
+
minVersion: "17.0.0",
|
|
363
|
+
version: "22.2.3",
|
|
364
|
+
type: AerisListboxComponent,
|
|
365
|
+
isStandalone: true,
|
|
366
|
+
selector: "aeris-listbox",
|
|
367
|
+
inputs: {
|
|
368
|
+
options: {
|
|
369
|
+
classPropertyName: "options",
|
|
370
|
+
publicName: "options",
|
|
371
|
+
isSignal: true,
|
|
372
|
+
isRequired: false,
|
|
373
|
+
transformFunction: null
|
|
374
|
+
},
|
|
375
|
+
selectionMode: {
|
|
376
|
+
classPropertyName: "selectionMode",
|
|
377
|
+
publicName: "selectionMode",
|
|
378
|
+
isSignal: true,
|
|
379
|
+
isRequired: false,
|
|
380
|
+
transformFunction: null
|
|
381
|
+
},
|
|
382
|
+
value: {
|
|
383
|
+
classPropertyName: "value",
|
|
384
|
+
publicName: "value",
|
|
385
|
+
isSignal: true,
|
|
386
|
+
isRequired: false,
|
|
387
|
+
transformFunction: null
|
|
388
|
+
},
|
|
389
|
+
filter: {
|
|
390
|
+
classPropertyName: "filter",
|
|
391
|
+
publicName: "filter",
|
|
392
|
+
isSignal: true,
|
|
393
|
+
isRequired: false,
|
|
394
|
+
transformFunction: null
|
|
395
|
+
},
|
|
396
|
+
query: {
|
|
397
|
+
classPropertyName: "query",
|
|
398
|
+
publicName: "query",
|
|
399
|
+
isSignal: true,
|
|
400
|
+
isRequired: false,
|
|
401
|
+
transformFunction: null
|
|
402
|
+
},
|
|
403
|
+
filterPlaceholder: {
|
|
404
|
+
classPropertyName: "filterPlaceholder",
|
|
405
|
+
publicName: "filterPlaceholder",
|
|
406
|
+
isSignal: true,
|
|
407
|
+
isRequired: false,
|
|
408
|
+
transformFunction: null
|
|
409
|
+
},
|
|
410
|
+
filterAriaLabel: {
|
|
411
|
+
classPropertyName: "filterAriaLabel",
|
|
412
|
+
publicName: "filterAriaLabel",
|
|
413
|
+
isSignal: true,
|
|
414
|
+
isRequired: false,
|
|
415
|
+
transformFunction: null
|
|
416
|
+
},
|
|
417
|
+
emptyMessage: {
|
|
418
|
+
classPropertyName: "emptyMessage",
|
|
419
|
+
publicName: "emptyMessage",
|
|
420
|
+
isSignal: true,
|
|
421
|
+
isRequired: false,
|
|
422
|
+
transformFunction: null
|
|
423
|
+
},
|
|
424
|
+
loadingMessage: {
|
|
425
|
+
classPropertyName: "loadingMessage",
|
|
426
|
+
publicName: "loadingMessage",
|
|
427
|
+
isSignal: true,
|
|
428
|
+
isRequired: false,
|
|
429
|
+
transformFunction: null
|
|
430
|
+
},
|
|
431
|
+
loading: {
|
|
432
|
+
classPropertyName: "loading",
|
|
433
|
+
publicName: "loading",
|
|
434
|
+
isSignal: true,
|
|
435
|
+
isRequired: false,
|
|
436
|
+
transformFunction: null
|
|
437
|
+
},
|
|
438
|
+
disabled: {
|
|
439
|
+
classPropertyName: "disabled",
|
|
440
|
+
publicName: "disabled",
|
|
441
|
+
isSignal: true,
|
|
442
|
+
isRequired: false,
|
|
443
|
+
transformFunction: null
|
|
444
|
+
},
|
|
445
|
+
required: {
|
|
446
|
+
classPropertyName: "required",
|
|
447
|
+
publicName: "required",
|
|
448
|
+
isSignal: true,
|
|
449
|
+
isRequired: false,
|
|
450
|
+
transformFunction: null
|
|
451
|
+
},
|
|
452
|
+
invalid: {
|
|
453
|
+
classPropertyName: "invalid",
|
|
454
|
+
publicName: "invalid",
|
|
455
|
+
isSignal: true,
|
|
456
|
+
isRequired: false,
|
|
457
|
+
transformFunction: null
|
|
458
|
+
},
|
|
459
|
+
touched: {
|
|
460
|
+
classPropertyName: "touched",
|
|
461
|
+
publicName: "touched",
|
|
462
|
+
isSignal: true,
|
|
463
|
+
isRequired: false,
|
|
464
|
+
transformFunction: null
|
|
465
|
+
},
|
|
466
|
+
ariaLabel: {
|
|
467
|
+
classPropertyName: "ariaLabel",
|
|
468
|
+
publicName: "ariaLabel",
|
|
469
|
+
isSignal: true,
|
|
470
|
+
isRequired: false,
|
|
471
|
+
transformFunction: null
|
|
472
|
+
},
|
|
473
|
+
ariaLabelledBy: {
|
|
474
|
+
classPropertyName: "ariaLabelledBy",
|
|
475
|
+
publicName: "ariaLabelledBy",
|
|
476
|
+
isSignal: true,
|
|
477
|
+
isRequired: false,
|
|
478
|
+
transformFunction: null
|
|
479
|
+
},
|
|
480
|
+
ariaDescribedBy: {
|
|
481
|
+
classPropertyName: "ariaDescribedBy",
|
|
482
|
+
publicName: "ariaDescribedBy",
|
|
483
|
+
isSignal: true,
|
|
484
|
+
isRequired: false,
|
|
485
|
+
transformFunction: null
|
|
486
|
+
},
|
|
487
|
+
scrollHeight: {
|
|
488
|
+
classPropertyName: "scrollHeight",
|
|
489
|
+
publicName: "scrollHeight",
|
|
490
|
+
isSignal: true,
|
|
491
|
+
isRequired: false,
|
|
492
|
+
transformFunction: null
|
|
493
|
+
}
|
|
494
|
+
},
|
|
495
|
+
outputs: {
|
|
496
|
+
value: "valueChange",
|
|
497
|
+
query: "queryChange",
|
|
498
|
+
changed: "changed",
|
|
499
|
+
touch: "touch"
|
|
500
|
+
},
|
|
501
|
+
host: {
|
|
502
|
+
listeners: { "focusout": "onFocusOut($event)" },
|
|
503
|
+
properties: {
|
|
504
|
+
"attr.data-disabled": "isDisabled() || null",
|
|
505
|
+
"attr.data-invalid": "displayInvalid() || null"
|
|
506
|
+
}
|
|
507
|
+
},
|
|
508
|
+
providers: [{
|
|
509
|
+
provide: NG_VALUE_ACCESSOR,
|
|
510
|
+
useExisting: forwardRef(() => AerisListboxComponent),
|
|
511
|
+
multi: true
|
|
512
|
+
}],
|
|
513
|
+
queries: [
|
|
514
|
+
{
|
|
515
|
+
propertyName: "optionTemplate",
|
|
516
|
+
first: true,
|
|
517
|
+
predicate: AerisListboxOptionTemplate,
|
|
518
|
+
descendants: true,
|
|
519
|
+
isSignal: true
|
|
520
|
+
},
|
|
521
|
+
{
|
|
522
|
+
propertyName: "groupTemplate",
|
|
523
|
+
first: true,
|
|
524
|
+
predicate: AerisListboxGroupTemplate,
|
|
525
|
+
descendants: true,
|
|
526
|
+
isSignal: true
|
|
527
|
+
},
|
|
528
|
+
{
|
|
529
|
+
propertyName: "emptyTemplate",
|
|
530
|
+
first: true,
|
|
531
|
+
predicate: AerisListboxEmptyTemplate,
|
|
532
|
+
descendants: true,
|
|
533
|
+
isSignal: true
|
|
534
|
+
},
|
|
535
|
+
{
|
|
536
|
+
propertyName: "loadingTemplate",
|
|
537
|
+
first: true,
|
|
538
|
+
predicate: AerisListboxLoadingTemplate,
|
|
539
|
+
descendants: true,
|
|
540
|
+
isSignal: true
|
|
541
|
+
}
|
|
542
|
+
],
|
|
543
|
+
viewQueries: [{
|
|
544
|
+
propertyName: "list",
|
|
545
|
+
first: true,
|
|
546
|
+
predicate: ["list"],
|
|
547
|
+
descendants: true,
|
|
548
|
+
isSignal: true
|
|
549
|
+
}, {
|
|
550
|
+
propertyName: "optionElements",
|
|
551
|
+
predicate: ["optionElement"],
|
|
552
|
+
descendants: true,
|
|
553
|
+
isSignal: true
|
|
554
|
+
}],
|
|
555
|
+
ngImport: i0,
|
|
556
|
+
template: "@if (filter()) {\n <div class=\"aeris-listbox__filter\">\n <input\n type=\"search\"\n [value]=\"query()\"\n [placeholder]=\"filterPlaceholder()\"\n [attr.aria-label]=\"filterAriaLabel()\"\n [attr.aria-controls]=\"id\"\n [disabled]=\"isDisabled()\"\n (input)=\"onFilter($event)\"\n (keydown)=\"onFilterKeydown($event)\"\n />\n </div>\n}\n<div\n #list\n class=\"aeris-listbox__list\"\n role=\"listbox\"\n [id]=\"id\"\n [tabindex]=\"isDisabled() ? -1 : 0\"\n [style.max-height]=\"scrollHeight()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-multiselectable]=\"selectionMode() === 'multiple' ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() || null\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n [attr.aria-busy]=\"loading() || null\"\n [attr.aria-activedescendant]=\"activeId()\"\n (focus)=\"revealActive()\"\n (keydown)=\"onKeydown($event)\"\n>\n @for (group of groups(); track group.label) {\n <div\n [attr.role]=\"group.label ? 'group' : 'presentation'\"\n [attr.aria-labelledby]=\"group.label ? group.id : null\"\n >\n @if (group.label) {\n <div class=\"aeris-listbox__group\" [id]=\"group.id\">\n @if (groupTemplate(); as custom) {\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"group.context\"\n />\n } @else {\n {{ group.label }}\n }\n </div>\n }\n @for (item of group.items; track item.option.value) {\n <div\n #optionElement\n class=\"aeris-listbox__option\"\n role=\"option\"\n [id]=\"item.id\"\n [attr.aria-label]=\"item.option.label\"\n [attr.aria-selected]=\"item.selected\"\n [attr.aria-disabled]=\"item.option.disabled || null\"\n [attr.aria-describedby]=\"item.option.description ? item.id + '-description' : null\"\n [attr.data-active]=\"item.active || null\"\n [attr.data-selected]=\"item.selected || null\"\n [attr.data-disabled]=\"item.option.disabled || null\"\n (click)=\"choose($event, item.option)\"\n >\n @if (optionTemplate(); as custom) {\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"item.context\"\n />\n @if (item.option.description) {\n <span class=\"aeris-listbox__sr-only\" [id]=\"item.id + '-description'\">{{\n item.option.description\n }}</span>\n }\n } @else {\n <span class=\"aeris-listbox__label\">{{ item.option.label }}</span>\n @if (item.option.description) {\n <span class=\"aeris-listbox__description\" [id]=\"item.id + '-description'\">{{\n item.option.description\n }}</span>\n }\n }\n </div>\n }\n </div>\n }\n</div>\n@if (loading()) {\n <div class=\"aeris-listbox__status\" role=\"status\">\n @if (loadingTemplate(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" />\n } @else {\n {{ loadingMessage() }}\n }\n </div>\n} @else if (!filteredOptions().length) {\n <div class=\"aeris-listbox__status\" role=\"status\">\n @if (emptyTemplate(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" />\n } @else {\n {{ emptyMessage() }}\n }\n </div>\n}\n",
|
|
557
|
+
styles: [":host{display:block;min-inline-size:0;max-inline-size:100%;box-sizing:border-box;border:1px solid var(--aeris-listbox-border, var(--aeris-border, #efefef));border-radius:var(--aeris-listbox-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-listbox-background, var(--aeris-surface, #fff));color:var(--aeris-text, #111);font:inherit;font-size:var(--aeris-item-font-size, .875rem)}:host([data-disabled]){opacity:var(--aeris-disabled-opacity, .5)}:host([data-disabled]) .aeris-listbox__list{overflow:clip}:host([data-invalid]){border-color:var(--aeris-control-invalid-border, var(--aeris-danger, #c81e2a))}.aeris-listbox__list{position:relative;box-sizing:border-box;overflow:auto;min-block-size:var(--aeris-item-height, 2.5rem);padding:var(--aeris-listbox-padding, .35rem);border-radius:inherit;scrollbar-width:thin;scroll-padding-block:.25rem;outline:none}.aeris-listbox__list:focus-visible{box-shadow:inset 0 0 0 2px var(--aeris-control-focus-border, var(--aeris-focus, #777))}.aeris-listbox__option{display:grid;align-content:center;gap:.125rem;box-sizing:border-box;min-block-size:var(--aeris-listbox-option-height, var(--aeris-item-height, 2.5rem));padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);border-radius:var(--aeris-radius-item, .4375rem);overflow-wrap:anywhere;cursor:pointer;transition:background-color var(--aeris-motion-fast, .1s),color var(--aeris-motion-fast, .1s)}@media(hover:hover){.aeris-listbox__option:not([data-disabled]):not([data-selected]):hover{background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3))}}.aeris-listbox__option[data-selected]{font-weight:var(--aeris-font-weight-semibold, 600);background:var(--aeris-listbox-selected-background, var(--aeris-primary-soft, #e9e9e9));color:var(--aeris-listbox-selected-color, var(--aeris-on-primary-soft, var(--aeris-text, #111)))}.aeris-listbox__list:focus-visible .aeris-listbox__option[data-active]{outline:2px solid var(--aeris-control-focus-border, var(--aeris-focus, #777));outline-offset:-2px}.aeris-listbox__option[data-disabled]{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-listbox__description{color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-md, .8125rem)}.aeris-listbox__group{padding:.625rem var(--aeris-item-padding-x, .75rem) .375rem;font-size:var(--aeris-font-size-sm, .75rem);font-weight:var(--aeris-font-weight-bold, 700);line-height:1.5;letter-spacing:.055em;text-transform:uppercase;color:var(--aeris-text-2, #454545);overflow-wrap:anywhere;cursor:default}.aeris-listbox__list>[role=group]+[role=group]{margin-block-start:var(--aeris-item-padding-y, .5rem)}[role=group]>.aeris-listbox__option{padding-inline-start:calc(var(--aeris-item-padding-x, .75rem) + .5rem)}.aeris-listbox__status{padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);color:var(--aeris-text-2, #454545);overflow-wrap:anywhere}.aeris-listbox__filter{padding:.5rem}.aeris-listbox__filter input{display:block;box-sizing:border-box;inline-size:100%;min-inline-size:0;min-block-size:var(--aeris-control-height, 2.625rem);padding-inline:var(--aeris-control-padding-x, .75rem);border:1px solid var(--aeris-control-border, var(--aeris-border, #efefef));border-radius:var(--aeris-radius-control, .4375rem);background:var(--aeris-surface, #fff);color:inherit;font:inherit}.aeris-listbox__filter input:focus-visible{outline:0;border-color:var(--aeris-control-focus-border, var(--aeris-focus, #777));box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-focus-ring-color, transparent)}.aeris-listbox__sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.aeris-listbox__option{transition:none}}\n"],
|
|
558
|
+
dependencies: [{
|
|
559
|
+
kind: "directive",
|
|
560
|
+
type: NgTemplateOutlet,
|
|
561
|
+
selector: "[ngTemplateOutlet]",
|
|
562
|
+
inputs: [
|
|
563
|
+
"ngTemplateOutletContext",
|
|
564
|
+
"ngTemplateOutlet",
|
|
565
|
+
"ngTemplateOutletInjector"
|
|
566
|
+
]
|
|
567
|
+
}]
|
|
568
|
+
});
|
|
569
|
+
};
|
|
570
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
571
|
+
minVersion: "12.0.0",
|
|
572
|
+
version: "22.2.3",
|
|
573
|
+
ngImport: i0,
|
|
574
|
+
type: AerisListboxComponent,
|
|
575
|
+
decorators: [{
|
|
576
|
+
type: Component,
|
|
577
|
+
args: [{
|
|
578
|
+
selector: "aeris-listbox",
|
|
579
|
+
imports: [NgTemplateOutlet],
|
|
580
|
+
providers: [{
|
|
581
|
+
provide: NG_VALUE_ACCESSOR,
|
|
582
|
+
useExisting: forwardRef(() => AerisListboxComponent),
|
|
583
|
+
multi: true
|
|
584
|
+
}],
|
|
585
|
+
host: {
|
|
586
|
+
"[attr.data-disabled]": "isDisabled() || null",
|
|
587
|
+
"[attr.data-invalid]": "displayInvalid() || null",
|
|
588
|
+
"(focusout)": "onFocusOut($event)"
|
|
589
|
+
},
|
|
590
|
+
template: "@if (filter()) {\n <div class=\"aeris-listbox__filter\">\n <input\n type=\"search\"\n [value]=\"query()\"\n [placeholder]=\"filterPlaceholder()\"\n [attr.aria-label]=\"filterAriaLabel()\"\n [attr.aria-controls]=\"id\"\n [disabled]=\"isDisabled()\"\n (input)=\"onFilter($event)\"\n (keydown)=\"onFilterKeydown($event)\"\n />\n </div>\n}\n<div\n #list\n class=\"aeris-listbox__list\"\n role=\"listbox\"\n [id]=\"id\"\n [tabindex]=\"isDisabled() ? -1 : 0\"\n [style.max-height]=\"scrollHeight()\"\n [attr.aria-label]=\"ariaLabel()\"\n [attr.aria-labelledby]=\"ariaLabelledBy()\"\n [attr.aria-describedby]=\"ariaDescribedBy()\"\n [attr.aria-multiselectable]=\"selectionMode() === 'multiple' ? 'true' : null\"\n [attr.aria-disabled]=\"isDisabled() || null\"\n [attr.aria-required]=\"required() || null\"\n [attr.aria-invalid]=\"displayInvalid() || null\"\n [attr.aria-busy]=\"loading() || null\"\n [attr.aria-activedescendant]=\"activeId()\"\n (focus)=\"revealActive()\"\n (keydown)=\"onKeydown($event)\"\n>\n @for (group of groups(); track group.label) {\n <div\n [attr.role]=\"group.label ? 'group' : 'presentation'\"\n [attr.aria-labelledby]=\"group.label ? group.id : null\"\n >\n @if (group.label) {\n <div class=\"aeris-listbox__group\" [id]=\"group.id\">\n @if (groupTemplate(); as custom) {\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"group.context\"\n />\n } @else {\n {{ group.label }}\n }\n </div>\n }\n @for (item of group.items; track item.option.value) {\n <div\n #optionElement\n class=\"aeris-listbox__option\"\n role=\"option\"\n [id]=\"item.id\"\n [attr.aria-label]=\"item.option.label\"\n [attr.aria-selected]=\"item.selected\"\n [attr.aria-disabled]=\"item.option.disabled || null\"\n [attr.aria-describedby]=\"item.option.description ? item.id + '-description' : null\"\n [attr.data-active]=\"item.active || null\"\n [attr.data-selected]=\"item.selected || null\"\n [attr.data-disabled]=\"item.option.disabled || null\"\n (click)=\"choose($event, item.option)\"\n >\n @if (optionTemplate(); as custom) {\n <ng-container\n [ngTemplateOutlet]=\"custom.template\"\n [ngTemplateOutletContext]=\"item.context\"\n />\n @if (item.option.description) {\n <span class=\"aeris-listbox__sr-only\" [id]=\"item.id + '-description'\">{{\n item.option.description\n }}</span>\n }\n } @else {\n <span class=\"aeris-listbox__label\">{{ item.option.label }}</span>\n @if (item.option.description) {\n <span class=\"aeris-listbox__description\" [id]=\"item.id + '-description'\">{{\n item.option.description\n }}</span>\n }\n }\n </div>\n }\n </div>\n }\n</div>\n@if (loading()) {\n <div class=\"aeris-listbox__status\" role=\"status\">\n @if (loadingTemplate(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" />\n } @else {\n {{ loadingMessage() }}\n }\n </div>\n} @else if (!filteredOptions().length) {\n <div class=\"aeris-listbox__status\" role=\"status\">\n @if (emptyTemplate(); as custom) {\n <ng-container [ngTemplateOutlet]=\"custom.template\" />\n } @else {\n {{ emptyMessage() }}\n }\n </div>\n}\n",
|
|
591
|
+
styles: [":host{display:block;min-inline-size:0;max-inline-size:100%;box-sizing:border-box;border:1px solid var(--aeris-listbox-border, var(--aeris-border, #efefef));border-radius:var(--aeris-listbox-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-listbox-background, var(--aeris-surface, #fff));color:var(--aeris-text, #111);font:inherit;font-size:var(--aeris-item-font-size, .875rem)}:host([data-disabled]){opacity:var(--aeris-disabled-opacity, .5)}:host([data-disabled]) .aeris-listbox__list{overflow:clip}:host([data-invalid]){border-color:var(--aeris-control-invalid-border, var(--aeris-danger, #c81e2a))}.aeris-listbox__list{position:relative;box-sizing:border-box;overflow:auto;min-block-size:var(--aeris-item-height, 2.5rem);padding:var(--aeris-listbox-padding, .35rem);border-radius:inherit;scrollbar-width:thin;scroll-padding-block:.25rem;outline:none}.aeris-listbox__list:focus-visible{box-shadow:inset 0 0 0 2px var(--aeris-control-focus-border, var(--aeris-focus, #777))}.aeris-listbox__option{display:grid;align-content:center;gap:.125rem;box-sizing:border-box;min-block-size:var(--aeris-listbox-option-height, var(--aeris-item-height, 2.5rem));padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);border-radius:var(--aeris-radius-item, .4375rem);overflow-wrap:anywhere;cursor:pointer;transition:background-color var(--aeris-motion-fast, .1s),color var(--aeris-motion-fast, .1s)}@media(hover:hover){.aeris-listbox__option:not([data-disabled]):not([data-selected]):hover{background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3))}}.aeris-listbox__option[data-selected]{font-weight:var(--aeris-font-weight-semibold, 600);background:var(--aeris-listbox-selected-background, var(--aeris-primary-soft, #e9e9e9));color:var(--aeris-listbox-selected-color, var(--aeris-on-primary-soft, var(--aeris-text, #111)))}.aeris-listbox__list:focus-visible .aeris-listbox__option[data-active]{outline:2px solid var(--aeris-control-focus-border, var(--aeris-focus, #777));outline-offset:-2px}.aeris-listbox__option[data-disabled]{opacity:var(--aeris-disabled-opacity, .5);cursor:not-allowed}.aeris-listbox__description{color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-md, .8125rem)}.aeris-listbox__group{padding:.625rem var(--aeris-item-padding-x, .75rem) .375rem;font-size:var(--aeris-font-size-sm, .75rem);font-weight:var(--aeris-font-weight-bold, 700);line-height:1.5;letter-spacing:.055em;text-transform:uppercase;color:var(--aeris-text-2, #454545);overflow-wrap:anywhere;cursor:default}.aeris-listbox__list>[role=group]+[role=group]{margin-block-start:var(--aeris-item-padding-y, .5rem)}[role=group]>.aeris-listbox__option{padding-inline-start:calc(var(--aeris-item-padding-x, .75rem) + .5rem)}.aeris-listbox__status{padding:var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem);color:var(--aeris-text-2, #454545);overflow-wrap:anywhere}.aeris-listbox__filter{padding:.5rem}.aeris-listbox__filter input{display:block;box-sizing:border-box;inline-size:100%;min-inline-size:0;min-block-size:var(--aeris-control-height, 2.625rem);padding-inline:var(--aeris-control-padding-x, .75rem);border:1px solid var(--aeris-control-border, var(--aeris-border, #efefef));border-radius:var(--aeris-radius-control, .4375rem);background:var(--aeris-surface, #fff);color:inherit;font:inherit}.aeris-listbox__filter input:focus-visible{outline:0;border-color:var(--aeris-control-focus-border, var(--aeris-focus, #777));box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-focus-ring-color, transparent)}.aeris-listbox__sr-only{position:absolute;inline-size:1px;block-size:1px;padding:0;margin:-1px;overflow:hidden;clip-path:inset(50%);white-space:nowrap;border:0}@media(prefers-reduced-motion:reduce){.aeris-listbox__option{transition:none}}\n"]
|
|
592
|
+
}]
|
|
593
|
+
}],
|
|
594
|
+
ctorParameters: () => [],
|
|
595
|
+
propDecorators: {
|
|
596
|
+
options: [{
|
|
597
|
+
type: i0.Input,
|
|
598
|
+
args: [{
|
|
599
|
+
isSignal: true,
|
|
600
|
+
alias: "options",
|
|
601
|
+
required: false
|
|
602
|
+
}]
|
|
603
|
+
}],
|
|
604
|
+
selectionMode: [{
|
|
605
|
+
type: i0.Input,
|
|
606
|
+
args: [{
|
|
607
|
+
isSignal: true,
|
|
608
|
+
alias: "selectionMode",
|
|
609
|
+
required: false
|
|
610
|
+
}]
|
|
611
|
+
}],
|
|
612
|
+
value: [{
|
|
613
|
+
type: i0.Input,
|
|
614
|
+
args: [{
|
|
615
|
+
isSignal: true,
|
|
616
|
+
alias: "value",
|
|
617
|
+
required: false
|
|
618
|
+
}]
|
|
619
|
+
}, {
|
|
620
|
+
type: i0.Output,
|
|
621
|
+
args: ["valueChange"]
|
|
622
|
+
}],
|
|
623
|
+
filter: [{
|
|
624
|
+
type: i0.Input,
|
|
625
|
+
args: [{
|
|
626
|
+
isSignal: true,
|
|
627
|
+
alias: "filter",
|
|
628
|
+
required: false
|
|
629
|
+
}]
|
|
630
|
+
}],
|
|
631
|
+
query: [{
|
|
632
|
+
type: i0.Input,
|
|
633
|
+
args: [{
|
|
634
|
+
isSignal: true,
|
|
635
|
+
alias: "query",
|
|
636
|
+
required: false
|
|
637
|
+
}]
|
|
638
|
+
}, {
|
|
639
|
+
type: i0.Output,
|
|
640
|
+
args: ["queryChange"]
|
|
641
|
+
}],
|
|
642
|
+
filterPlaceholder: [{
|
|
643
|
+
type: i0.Input,
|
|
644
|
+
args: [{
|
|
645
|
+
isSignal: true,
|
|
646
|
+
alias: "filterPlaceholder",
|
|
647
|
+
required: false
|
|
648
|
+
}]
|
|
649
|
+
}],
|
|
650
|
+
filterAriaLabel: [{
|
|
651
|
+
type: i0.Input,
|
|
652
|
+
args: [{
|
|
653
|
+
isSignal: true,
|
|
654
|
+
alias: "filterAriaLabel",
|
|
655
|
+
required: false
|
|
656
|
+
}]
|
|
657
|
+
}],
|
|
658
|
+
emptyMessage: [{
|
|
659
|
+
type: i0.Input,
|
|
660
|
+
args: [{
|
|
661
|
+
isSignal: true,
|
|
662
|
+
alias: "emptyMessage",
|
|
663
|
+
required: false
|
|
664
|
+
}]
|
|
665
|
+
}],
|
|
666
|
+
loadingMessage: [{
|
|
667
|
+
type: i0.Input,
|
|
668
|
+
args: [{
|
|
669
|
+
isSignal: true,
|
|
670
|
+
alias: "loadingMessage",
|
|
671
|
+
required: false
|
|
672
|
+
}]
|
|
673
|
+
}],
|
|
674
|
+
loading: [{
|
|
675
|
+
type: i0.Input,
|
|
676
|
+
args: [{
|
|
677
|
+
isSignal: true,
|
|
678
|
+
alias: "loading",
|
|
679
|
+
required: false
|
|
680
|
+
}]
|
|
681
|
+
}],
|
|
682
|
+
disabled: [{
|
|
683
|
+
type: i0.Input,
|
|
684
|
+
args: [{
|
|
685
|
+
isSignal: true,
|
|
686
|
+
alias: "disabled",
|
|
687
|
+
required: false
|
|
688
|
+
}]
|
|
689
|
+
}],
|
|
690
|
+
required: [{
|
|
691
|
+
type: i0.Input,
|
|
692
|
+
args: [{
|
|
693
|
+
isSignal: true,
|
|
694
|
+
alias: "required",
|
|
695
|
+
required: false
|
|
696
|
+
}]
|
|
697
|
+
}],
|
|
698
|
+
invalid: [{
|
|
699
|
+
type: i0.Input,
|
|
700
|
+
args: [{
|
|
701
|
+
isSignal: true,
|
|
702
|
+
alias: "invalid",
|
|
703
|
+
required: false
|
|
704
|
+
}]
|
|
705
|
+
}],
|
|
706
|
+
touched: [{
|
|
707
|
+
type: i0.Input,
|
|
708
|
+
args: [{
|
|
709
|
+
isSignal: true,
|
|
710
|
+
alias: "touched",
|
|
711
|
+
required: false
|
|
712
|
+
}]
|
|
713
|
+
}],
|
|
714
|
+
ariaLabel: [{
|
|
715
|
+
type: i0.Input,
|
|
716
|
+
args: [{
|
|
717
|
+
isSignal: true,
|
|
718
|
+
alias: "ariaLabel",
|
|
719
|
+
required: false
|
|
720
|
+
}]
|
|
721
|
+
}],
|
|
722
|
+
ariaLabelledBy: [{
|
|
723
|
+
type: i0.Input,
|
|
724
|
+
args: [{
|
|
725
|
+
isSignal: true,
|
|
726
|
+
alias: "ariaLabelledBy",
|
|
727
|
+
required: false
|
|
728
|
+
}]
|
|
729
|
+
}],
|
|
730
|
+
ariaDescribedBy: [{
|
|
731
|
+
type: i0.Input,
|
|
732
|
+
args: [{
|
|
733
|
+
isSignal: true,
|
|
734
|
+
alias: "ariaDescribedBy",
|
|
735
|
+
required: false
|
|
736
|
+
}]
|
|
737
|
+
}],
|
|
738
|
+
scrollHeight: [{
|
|
739
|
+
type: i0.Input,
|
|
740
|
+
args: [{
|
|
741
|
+
isSignal: true,
|
|
742
|
+
alias: "scrollHeight",
|
|
743
|
+
required: false
|
|
744
|
+
}]
|
|
745
|
+
}],
|
|
746
|
+
changed: [{
|
|
747
|
+
type: i0.Output,
|
|
748
|
+
args: ["changed"]
|
|
749
|
+
}],
|
|
750
|
+
touch: [{
|
|
751
|
+
type: i0.Output,
|
|
752
|
+
args: ["touch"]
|
|
753
|
+
}],
|
|
754
|
+
list: [{
|
|
755
|
+
type: i0.ViewChild,
|
|
756
|
+
args: ["list", { isSignal: true }]
|
|
757
|
+
}],
|
|
758
|
+
optionElements: [{
|
|
759
|
+
type: i0.ViewChildren,
|
|
760
|
+
args: ["optionElement", { isSignal: true }]
|
|
761
|
+
}],
|
|
762
|
+
optionTemplate: [{
|
|
763
|
+
type: i0.ContentChild,
|
|
764
|
+
args: [i0.forwardRef(() => AerisListboxOptionTemplate), { isSignal: true }]
|
|
765
|
+
}],
|
|
766
|
+
groupTemplate: [{
|
|
767
|
+
type: i0.ContentChild,
|
|
768
|
+
args: [i0.forwardRef(() => AerisListboxGroupTemplate), { isSignal: true }]
|
|
769
|
+
}],
|
|
770
|
+
emptyTemplate: [{
|
|
771
|
+
type: i0.ContentChild,
|
|
772
|
+
args: [i0.forwardRef(() => AerisListboxEmptyTemplate), { isSignal: true }]
|
|
773
|
+
}],
|
|
774
|
+
loadingTemplate: [{
|
|
775
|
+
type: i0.ContentChild,
|
|
776
|
+
args: [i0.forwardRef(() => AerisListboxLoadingTemplate), { isSignal: true }]
|
|
777
|
+
}]
|
|
778
|
+
}
|
|
779
|
+
});
|
|
780
|
+
const AerisListbox = [
|
|
781
|
+
AerisListboxComponent,
|
|
782
|
+
AerisListboxOptionTemplate,
|
|
783
|
+
AerisListboxGroupTemplate,
|
|
784
|
+
AerisListboxEmptyTemplate,
|
|
785
|
+
AerisListboxLoadingTemplate
|
|
786
|
+
];
|
|
787
|
+
export { AerisListbox, AerisListboxComponent, AerisListboxEmptyTemplate, AerisListboxGroupTemplate, AerisListboxLoadingTemplate, AerisListboxOptionTemplate };
|
|
788
|
+
|
|
789
|
+
//# sourceMappingURL=aeris-ui-core-listbox.mjs.map
|