@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,647 +1,965 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
class AerisPickListItemTemplate {
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
1
|
+
import { ɵAerisIcon } from "@aeris-ui/core";
|
|
2
|
+
import { NgTemplateOutlet } from "@angular/common";
|
|
3
|
+
import * as i0 from "@angular/core";
|
|
4
|
+
import { Component, Directive, TemplateRef, booleanAttribute, computed, contentChild, inject, input, model, output, signal } from "@angular/core";
|
|
5
|
+
var AerisPickListItemTemplate = class AerisPickListItemTemplate {
|
|
6
|
+
template = inject(TemplateRef);
|
|
7
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
8
|
+
return true;
|
|
9
|
+
}
|
|
10
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
11
|
+
minVersion: "12.0.0",
|
|
12
|
+
version: "22.2.3",
|
|
13
|
+
ngImport: i0,
|
|
14
|
+
type: AerisPickListItemTemplate,
|
|
15
|
+
deps: [],
|
|
16
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
17
|
+
});
|
|
18
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
19
|
+
minVersion: "14.0.0",
|
|
20
|
+
version: "22.2.3",
|
|
21
|
+
type: AerisPickListItemTemplate,
|
|
22
|
+
isStandalone: true,
|
|
23
|
+
selector: "ng-template[aerisPickListItem]",
|
|
24
|
+
ngImport: i0
|
|
25
|
+
});
|
|
26
|
+
};
|
|
27
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
28
|
+
minVersion: "12.0.0",
|
|
29
|
+
version: "22.2.3",
|
|
30
|
+
ngImport: i0,
|
|
31
|
+
type: AerisPickListItemTemplate,
|
|
32
|
+
decorators: [{
|
|
33
|
+
type: Directive,
|
|
34
|
+
args: [{ selector: "ng-template[aerisPickListItem]" }]
|
|
35
|
+
}]
|
|
36
|
+
});
|
|
37
|
+
var AerisPickListEmptyTemplate = class AerisPickListEmptyTemplate {
|
|
38
|
+
template = inject(TemplateRef);
|
|
39
|
+
static ngTemplateContextGuard(_directive, context) {
|
|
40
|
+
return true;
|
|
41
|
+
}
|
|
42
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
43
|
+
minVersion: "12.0.0",
|
|
44
|
+
version: "22.2.3",
|
|
45
|
+
ngImport: i0,
|
|
46
|
+
type: AerisPickListEmptyTemplate,
|
|
47
|
+
deps: [],
|
|
48
|
+
target: i0.ɵɵFactoryTarget.Directive
|
|
49
|
+
});
|
|
50
|
+
static ɵdir = i0.ɵɵngDeclareDirective({
|
|
51
|
+
minVersion: "14.0.0",
|
|
52
|
+
version: "22.2.3",
|
|
53
|
+
type: AerisPickListEmptyTemplate,
|
|
54
|
+
isStandalone: true,
|
|
55
|
+
selector: "ng-template[aerisPickListEmpty]",
|
|
56
|
+
ngImport: i0
|
|
57
|
+
});
|
|
58
|
+
};
|
|
59
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
60
|
+
minVersion: "12.0.0",
|
|
61
|
+
version: "22.2.3",
|
|
62
|
+
ngImport: i0,
|
|
63
|
+
type: AerisPickListEmptyTemplate,
|
|
64
|
+
decorators: [{
|
|
65
|
+
type: Directive,
|
|
66
|
+
args: [{ selector: "ng-template[aerisPickListEmpty]" }]
|
|
67
|
+
}]
|
|
68
|
+
});
|
|
29
69
|
let nextPickListId = 0;
|
|
30
|
-
class AerisPickList {
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
|
|
141
|
-
|
|
142
|
-
|
|
143
|
-
|
|
144
|
-
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
|
|
157
|
-
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
184
|
-
|
|
185
|
-
|
|
186
|
-
|
|
187
|
-
|
|
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
|
-
|
|
502
|
-
|
|
503
|
-
|
|
504
|
-
|
|
505
|
-
|
|
506
|
-
|
|
507
|
-
|
|
508
|
-
|
|
509
|
-
|
|
510
|
-
|
|
511
|
-
|
|
512
|
-
|
|
513
|
-
|
|
514
|
-
|
|
515
|
-
|
|
516
|
-
|
|
517
|
-
|
|
518
|
-
|
|
519
|
-
|
|
520
|
-
|
|
521
|
-
|
|
522
|
-
|
|
523
|
-
|
|
524
|
-
|
|
525
|
-
|
|
526
|
-
|
|
527
|
-
|
|
528
|
-
|
|
529
|
-
|
|
530
|
-
|
|
531
|
-
|
|
532
|
-
|
|
533
|
-
|
|
534
|
-
|
|
535
|
-
|
|
536
|
-
|
|
537
|
-
|
|
538
|
-
|
|
539
|
-
|
|
540
|
-
|
|
541
|
-
|
|
542
|
-
|
|
543
|
-
|
|
544
|
-
|
|
545
|
-
|
|
546
|
-
|
|
547
|
-
|
|
548
|
-
|
|
549
|
-
|
|
550
|
-
|
|
551
|
-
|
|
552
|
-
|
|
553
|
-
|
|
554
|
-
|
|
555
|
-
|
|
556
|
-
|
|
557
|
-
|
|
558
|
-
|
|
559
|
-
|
|
560
|
-
|
|
561
|
-
|
|
562
|
-
|
|
563
|
-
|
|
564
|
-
|
|
565
|
-
|
|
566
|
-
|
|
567
|
-
|
|
568
|
-
|
|
569
|
-
|
|
570
|
-
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
|
|
576
|
-
|
|
577
|
-
|
|
578
|
-
|
|
579
|
-
|
|
580
|
-
|
|
581
|
-
|
|
582
|
-
|
|
583
|
-
|
|
584
|
-
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
|
|
588
|
-
|
|
589
|
-
|
|
590
|
-
|
|
591
|
-
|
|
592
|
-
|
|
593
|
-
|
|
594
|
-
|
|
595
|
-
|
|
596
|
-
|
|
597
|
-
|
|
598
|
-
|
|
599
|
-
|
|
600
|
-
|
|
601
|
-
|
|
602
|
-
|
|
603
|
-
|
|
604
|
-
|
|
605
|
-
|
|
606
|
-
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
637
|
-
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
|
|
641
|
-
|
|
642
|
-
|
|
643
|
-
|
|
644
|
-
|
|
70
|
+
var AerisPickList = class AerisPickList {
|
|
71
|
+
moveTopIconTemplate = input(...ngDevMode ? [void 0, { debugName: "moveTopIconTemplate" }] : /* istanbul ignore next */ []);
|
|
72
|
+
moveUpIconTemplate = input(...ngDevMode ? [void 0, { debugName: "moveUpIconTemplate" }] : /* istanbul ignore next */ []);
|
|
73
|
+
moveDownIconTemplate = input(...ngDevMode ? [void 0, { debugName: "moveDownIconTemplate" }] : /* istanbul ignore next */ []);
|
|
74
|
+
moveBottomIconTemplate = input(...ngDevMode ? [void 0, { debugName: "moveBottomIconTemplate" }] : /* istanbul ignore next */ []);
|
|
75
|
+
moveToTargetIconTemplate = input(...ngDevMode ? [void 0, { debugName: "moveToTargetIconTemplate" }] : /* istanbul ignore next */ []);
|
|
76
|
+
moveAllToTargetIconTemplate = input(...ngDevMode ? [void 0, { debugName: "moveAllToTargetIconTemplate" }] : /* istanbul ignore next */ []);
|
|
77
|
+
moveToSourceIconTemplate = input(...ngDevMode ? [void 0, { debugName: "moveToSourceIconTemplate" }] : /* istanbul ignore next */ []);
|
|
78
|
+
moveAllToSourceIconTemplate = input(...ngDevMode ? [void 0, { debugName: "moveAllToSourceIconTemplate" }] : /* istanbul ignore next */ []);
|
|
79
|
+
filterIconTemplate = input(...ngDevMode ? [void 0, { debugName: "filterIconTemplate" }] : /* istanbul ignore next */ []);
|
|
80
|
+
componentId = `aeris-pick-list-${++nextPickListId}`;
|
|
81
|
+
activeSourceKey = signal(null, ...ngDevMode ? [{ debugName: "activeSourceKey" }] : /* istanbul ignore next */ []);
|
|
82
|
+
activeTargetKey = signal(null, ...ngDevMode ? [{ debugName: "activeTargetKey" }] : /* istanbul ignore next */ []);
|
|
83
|
+
sourceSelectionAnchor = signal(null, ...ngDevMode ? [{ debugName: "sourceSelectionAnchor" }] : /* istanbul ignore next */ []);
|
|
84
|
+
targetSelectionAnchor = signal(null, ...ngDevMode ? [{ debugName: "targetSelectionAnchor" }] : /* istanbul ignore next */ []);
|
|
85
|
+
dragState = signal(null, ...ngDevMode ? [{ debugName: "dragState" }] : /* istanbul ignore next */ []);
|
|
86
|
+
dropTarget = signal(null, ...ngDevMode ? [{ debugName: "dropTarget" }] : /* istanbul ignore next */ []);
|
|
87
|
+
source = model([], ...ngDevMode ? [{ debugName: "source" }] : /* istanbul ignore next */ []);
|
|
88
|
+
target = model([], ...ngDevMode ? [{ debugName: "target" }] : /* istanbul ignore next */ []);
|
|
89
|
+
sourceSelectedKeys = model([], ...ngDevMode ? [{ debugName: "sourceSelectedKeys" }] : /* istanbul ignore next */ []);
|
|
90
|
+
targetSelectedKeys = model([], ...ngDevMode ? [{ debugName: "targetSelectedKeys" }] : /* istanbul ignore next */ []);
|
|
91
|
+
sourceFilter = model("", ...ngDevMode ? [{ debugName: "sourceFilter" }] : /* istanbul ignore next */ []);
|
|
92
|
+
targetFilter = model("", ...ngDevMode ? [{ debugName: "targetFilter" }] : /* istanbul ignore next */ []);
|
|
93
|
+
optionLabel = input("label", ...ngDevMode ? [{ debugName: "optionLabel" }] : /* istanbul ignore next */ []);
|
|
94
|
+
dataKey = input("id", ...ngDevMode ? [{ debugName: "dataKey" }] : /* istanbul ignore next */ []);
|
|
95
|
+
filterBy = input("label", ...ngDevMode ? [{ debugName: "filterBy" }] : /* istanbul ignore next */ []);
|
|
96
|
+
filterMatchMode = input("contains", ...ngDevMode ? [{ debugName: "filterMatchMode" }] : /* istanbul ignore next */ []);
|
|
97
|
+
sourceHeader = input("Available", ...ngDevMode ? [{ debugName: "sourceHeader" }] : /* istanbul ignore next */ []);
|
|
98
|
+
targetHeader = input("Selected", ...ngDevMode ? [{ debugName: "targetHeader" }] : /* istanbul ignore next */ []);
|
|
99
|
+
sourceAriaLabel = input("Available items", ...ngDevMode ? [{ debugName: "sourceAriaLabel" }] : /* istanbul ignore next */ []);
|
|
100
|
+
targetAriaLabel = input("Selected items", ...ngDevMode ? [{ debugName: "targetAriaLabel" }] : /* istanbul ignore next */ []);
|
|
101
|
+
ariaLabel = input("Item transfer", ...ngDevMode ? [{ debugName: "ariaLabel" }] : /* istanbul ignore next */ []);
|
|
102
|
+
sourceFilterPlaceholder = input("Filter available items", ...ngDevMode ? [{ debugName: "sourceFilterPlaceholder" }] : /* istanbul ignore next */ []);
|
|
103
|
+
targetFilterPlaceholder = input("Filter selected items", ...ngDevMode ? [{ debugName: "targetFilterPlaceholder" }] : /* istanbul ignore next */ []);
|
|
104
|
+
sourceFilterAriaLabel = input("Filter available items", ...ngDevMode ? [{ debugName: "sourceFilterAriaLabel" }] : /* istanbul ignore next */ []);
|
|
105
|
+
targetFilterAriaLabel = input("Filter selected items", ...ngDevMode ? [{ debugName: "targetFilterAriaLabel" }] : /* istanbul ignore next */ []);
|
|
106
|
+
sourceEmptyMessage = input("No available items", ...ngDevMode ? [{ debugName: "sourceEmptyMessage" }] : /* istanbul ignore next */ []);
|
|
107
|
+
targetEmptyMessage = input("No selected items", ...ngDevMode ? [{ debugName: "targetEmptyMessage" }] : /* istanbul ignore next */ []);
|
|
108
|
+
sourceFilterEmptyMessage = input("No available items match the filter", ...ngDevMode ? [{ debugName: "sourceFilterEmptyMessage" }] : /* istanbul ignore next */ []);
|
|
109
|
+
targetFilterEmptyMessage = input("No selected items match the filter", ...ngDevMode ? [{ debugName: "targetFilterEmptyMessage" }] : /* istanbul ignore next */ []);
|
|
110
|
+
showFilter = input(false, {
|
|
111
|
+
...ngDevMode ? { debugName: "showFilter" } : /* istanbul ignore next */ {},
|
|
112
|
+
transform: booleanAttribute
|
|
113
|
+
});
|
|
114
|
+
showSourceControls = input(true, {
|
|
115
|
+
...ngDevMode ? { debugName: "showSourceControls" } : /* istanbul ignore next */ {},
|
|
116
|
+
transform: booleanAttribute
|
|
117
|
+
});
|
|
118
|
+
showTargetControls = input(true, {
|
|
119
|
+
...ngDevMode ? { debugName: "showTargetControls" } : /* istanbul ignore next */ {},
|
|
120
|
+
transform: booleanAttribute
|
|
121
|
+
});
|
|
122
|
+
showTransferControls = input(true, {
|
|
123
|
+
...ngDevMode ? { debugName: "showTransferControls" } : /* istanbul ignore next */ {},
|
|
124
|
+
transform: booleanAttribute
|
|
125
|
+
});
|
|
126
|
+
transferOnDoubleClick = input(false, {
|
|
127
|
+
...ngDevMode ? { debugName: "transferOnDoubleClick" } : /* istanbul ignore next */ {},
|
|
128
|
+
transform: booleanAttribute
|
|
129
|
+
});
|
|
130
|
+
dragDrop = input(true, {
|
|
131
|
+
...ngDevMode ? { debugName: "dragDrop" } : /* istanbul ignore next */ {},
|
|
132
|
+
transform: booleanAttribute
|
|
133
|
+
});
|
|
134
|
+
disabled = input(false, {
|
|
135
|
+
...ngDevMode ? { debugName: "disabled" } : /* istanbul ignore next */ {},
|
|
136
|
+
transform: booleanAttribute
|
|
137
|
+
});
|
|
138
|
+
fluid = input(true, {
|
|
139
|
+
...ngDevMode ? { debugName: "fluid" } : /* istanbul ignore next */ {},
|
|
140
|
+
transform: booleanAttribute
|
|
141
|
+
});
|
|
142
|
+
targetLimit = input(null, ...ngDevMode ? [{ debugName: "targetLimit" }] : /* istanbul ignore next */ []);
|
|
143
|
+
moveToTargetAriaLabel = input("Move selected items to selected list", ...ngDevMode ? [{ debugName: "moveToTargetAriaLabel" }] : /* istanbul ignore next */ []);
|
|
144
|
+
moveAllToTargetAriaLabel = input("Move all items to selected list", ...ngDevMode ? [{ debugName: "moveAllToTargetAriaLabel" }] : /* istanbul ignore next */ []);
|
|
145
|
+
moveToSourceAriaLabel = input("Move selected items to available list", ...ngDevMode ? [{ debugName: "moveToSourceAriaLabel" }] : /* istanbul ignore next */ []);
|
|
146
|
+
moveAllToSourceAriaLabel = input("Move all items to available list", ...ngDevMode ? [{ debugName: "moveAllToSourceAriaLabel" }] : /* istanbul ignore next */ []);
|
|
147
|
+
selectionChanged = output();
|
|
148
|
+
transferred = output();
|
|
149
|
+
movedToTarget = output();
|
|
150
|
+
movedToSource = output();
|
|
151
|
+
reordered = output();
|
|
152
|
+
sourceReordered = output();
|
|
153
|
+
targetReordered = output();
|
|
154
|
+
filterChanged = output();
|
|
155
|
+
dragStarted = output();
|
|
156
|
+
dragEnded = output();
|
|
157
|
+
itemTemplate = contentChild(AerisPickListItemTemplate, ...ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []);
|
|
158
|
+
emptyTemplate = contentChild(AerisPickListEmptyTemplate, ...ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []);
|
|
159
|
+
announcement = signal("", ...ngDevMode ? [{ debugName: "announcement" }] : /* istanbul ignore next */ []);
|
|
160
|
+
filterProperties = computed(() => this.filterBy().split(",").map((property) => property.trim()).filter(Boolean), ...ngDevMode ? [{ debugName: "filterProperties" }] : /* istanbul ignore next */ []);
|
|
161
|
+
sourceEntries = computed(() => this.createEntries("source", this.source()), ...ngDevMode ? [{ debugName: "sourceEntries" }] : /* istanbul ignore next */ []);
|
|
162
|
+
targetEntries = computed(() => this.createEntries("target", this.target()), ...ngDevMode ? [{ debugName: "targetEntries" }] : /* istanbul ignore next */ []);
|
|
163
|
+
filteredSourceEntries = computed(() => this.filterEntries(this.sourceEntries(), this.sourceFilter()), ...ngDevMode ? [{ debugName: "filteredSourceEntries" }] : /* istanbul ignore next */ []);
|
|
164
|
+
filteredTargetEntries = computed(() => this.filterEntries(this.targetEntries(), this.targetFilter()), ...ngDevMode ? [{ debugName: "filteredTargetEntries" }] : /* istanbul ignore next */ []);
|
|
165
|
+
collection(side) {
|
|
166
|
+
return side === "source" ? this.source() : this.target();
|
|
167
|
+
}
|
|
168
|
+
filteredEntries(side) {
|
|
169
|
+
return side === "source" ? this.filteredSourceEntries() : this.filteredTargetEntries();
|
|
170
|
+
}
|
|
171
|
+
paneHeader(side) {
|
|
172
|
+
return side === "source" ? this.sourceHeader() : this.targetHeader();
|
|
173
|
+
}
|
|
174
|
+
paneAriaLabel(side) {
|
|
175
|
+
return side === "source" ? this.sourceAriaLabel() : this.targetAriaLabel();
|
|
176
|
+
}
|
|
177
|
+
filterPlaceholder(side) {
|
|
178
|
+
return side === "source" ? this.sourceFilterPlaceholder() : this.targetFilterPlaceholder();
|
|
179
|
+
}
|
|
180
|
+
filterAriaLabel(side) {
|
|
181
|
+
return side === "source" ? this.sourceFilterAriaLabel() : this.targetFilterAriaLabel();
|
|
182
|
+
}
|
|
183
|
+
filterValue(side) {
|
|
184
|
+
return side === "source" ? this.sourceFilter() : this.targetFilter();
|
|
185
|
+
}
|
|
186
|
+
isFiltering(side) {
|
|
187
|
+
return Boolean(this.filterValue(side));
|
|
188
|
+
}
|
|
189
|
+
showReorderControls(side) {
|
|
190
|
+
return side === "source" ? this.showSourceControls() : this.showTargetControls();
|
|
191
|
+
}
|
|
192
|
+
itemLabel(item) {
|
|
193
|
+
const value = this.propertyValue(item, this.optionLabel());
|
|
194
|
+
return value == null ? "" : String(value);
|
|
195
|
+
}
|
|
196
|
+
isSelected(side, key) {
|
|
197
|
+
return this.selection(side).includes(key);
|
|
198
|
+
}
|
|
199
|
+
isActive(side, key) {
|
|
200
|
+
return this.activeKey(side)() === key;
|
|
201
|
+
}
|
|
202
|
+
isDragging(side, key) {
|
|
203
|
+
const state = this.dragState();
|
|
204
|
+
return state?.side === side && state.keys.includes(key);
|
|
205
|
+
}
|
|
206
|
+
isDropTarget(side, key) {
|
|
207
|
+
const target = this.dropTarget();
|
|
208
|
+
return target?.side === side && target.beforeKey === key;
|
|
209
|
+
}
|
|
210
|
+
activeDescendant(side) {
|
|
211
|
+
const entries = this.filteredEntries(side);
|
|
212
|
+
const activeKey = this.activeKey(side)();
|
|
213
|
+
return entries.find((entry) => entry.key === activeKey)?.optionId ?? entries[0]?.optionId ?? null;
|
|
214
|
+
}
|
|
215
|
+
emptyText(side) {
|
|
216
|
+
const filtering = Boolean(this.filterValue(side));
|
|
217
|
+
if (side === "source") return filtering ? this.sourceFilterEmptyMessage() : this.sourceEmptyMessage();
|
|
218
|
+
return filtering ? this.targetFilterEmptyMessage() : this.targetEmptyMessage();
|
|
219
|
+
}
|
|
220
|
+
updateFilter(side, originalEvent) {
|
|
221
|
+
const value = originalEvent.target.value;
|
|
222
|
+
this.filterModel(side).set(value);
|
|
223
|
+
this.activeKey(side).set(null);
|
|
224
|
+
this.filterChanged.emit({
|
|
225
|
+
originalEvent,
|
|
226
|
+
side,
|
|
227
|
+
value
|
|
228
|
+
});
|
|
229
|
+
}
|
|
230
|
+
toggleItem(side, entry, originalEvent) {
|
|
231
|
+
if (this.disabled()) return;
|
|
232
|
+
this.activeKey(side).set(entry.key);
|
|
233
|
+
const current = this.selection(side);
|
|
234
|
+
if (originalEvent.shiftKey && this.selectionAnchor(side)()) {
|
|
235
|
+
const entries = this.filteredEntries(side);
|
|
236
|
+
const anchorIndex = entries.findIndex((item) => item.key === this.selectionAnchor(side)());
|
|
237
|
+
const entryIndex = entries.findIndex((item) => item.key === entry.key);
|
|
238
|
+
if (anchorIndex >= 0 && entryIndex >= 0) {
|
|
239
|
+
const start = Math.min(anchorIndex, entryIndex);
|
|
240
|
+
const end = Math.max(anchorIndex, entryIndex);
|
|
241
|
+
this.selectionModel(side).set([.../* @__PURE__ */ new Set([...current, ...entries.slice(start, end + 1).map((item) => item.key)])]);
|
|
242
|
+
}
|
|
243
|
+
} else {
|
|
244
|
+
this.selectionAnchor(side).set(entry.key);
|
|
245
|
+
this.selectionModel(side).set(current.includes(entry.key) ? current.filter((key) => key !== entry.key) : [...current, entry.key]);
|
|
246
|
+
}
|
|
247
|
+
this.emitSelection(side, originalEvent);
|
|
248
|
+
}
|
|
249
|
+
handleItemDoubleClick(side, entry, originalEvent) {
|
|
250
|
+
if (!this.transferOnDoubleClick() || this.disabled()) return;
|
|
251
|
+
this.transferKeys(side === "source" ? "to-target" : "to-source", [entry.key], originalEvent);
|
|
252
|
+
}
|
|
253
|
+
handleDragStart(side, entry, originalEvent) {
|
|
254
|
+
if (!this.dragDrop() || this.disabled()) {
|
|
255
|
+
originalEvent.preventDefault();
|
|
256
|
+
return;
|
|
257
|
+
}
|
|
258
|
+
let keys = this.selection(side);
|
|
259
|
+
if (!keys.includes(entry.key)) {
|
|
260
|
+
keys = [entry.key];
|
|
261
|
+
this.selectionModel(side).set(keys);
|
|
262
|
+
this.emitSelection(side, originalEvent);
|
|
263
|
+
}
|
|
264
|
+
this.activeKey(side).set(entry.key);
|
|
265
|
+
this.dragState.set({
|
|
266
|
+
side,
|
|
267
|
+
item: entry.item,
|
|
268
|
+
key: entry.key,
|
|
269
|
+
keys
|
|
270
|
+
});
|
|
271
|
+
originalEvent.dataTransfer?.setData("text/plain", entry.key);
|
|
272
|
+
if (originalEvent.dataTransfer) originalEvent.dataTransfer.effectAllowed = "move";
|
|
273
|
+
this.dragStarted.emit({
|
|
274
|
+
originalEvent,
|
|
275
|
+
side,
|
|
276
|
+
item: entry.item,
|
|
277
|
+
key: entry.key,
|
|
278
|
+
selectedKeys: keys
|
|
279
|
+
});
|
|
280
|
+
}
|
|
281
|
+
handleItemDragOver(side, beforeKey, originalEvent) {
|
|
282
|
+
if (!this.dragState() || this.disabled()) return;
|
|
283
|
+
originalEvent.preventDefault();
|
|
284
|
+
originalEvent.stopPropagation();
|
|
285
|
+
if (originalEvent.dataTransfer) originalEvent.dataTransfer.dropEffect = "move";
|
|
286
|
+
this.dropTarget.set({
|
|
287
|
+
side,
|
|
288
|
+
beforeKey
|
|
289
|
+
});
|
|
290
|
+
}
|
|
291
|
+
handleViewportDragOver(side, originalEvent) {
|
|
292
|
+
if (!this.dragState() || this.disabled()) return;
|
|
293
|
+
originalEvent.preventDefault();
|
|
294
|
+
if (originalEvent.dataTransfer) originalEvent.dataTransfer.dropEffect = "move";
|
|
295
|
+
this.dropTarget.set({
|
|
296
|
+
side,
|
|
297
|
+
beforeKey: null
|
|
298
|
+
});
|
|
299
|
+
}
|
|
300
|
+
handleDrop(side, beforeKey, originalEvent) {
|
|
301
|
+
const state = this.dragState();
|
|
302
|
+
if (!state || this.disabled()) return;
|
|
303
|
+
originalEvent.preventDefault();
|
|
304
|
+
originalEvent.stopPropagation();
|
|
305
|
+
if (state.side === side) {
|
|
306
|
+
if (!beforeKey || !state.keys.includes(beforeKey)) this.reorderKeysBefore(side, state.keys, beforeKey, originalEvent);
|
|
307
|
+
} else this.transferKeys(state.side === "source" ? "to-target" : "to-source", state.keys, originalEvent, beforeKey);
|
|
308
|
+
this.dropTarget.set(null);
|
|
309
|
+
}
|
|
310
|
+
handleDragEnd(originalEvent) {
|
|
311
|
+
const state = this.dragState();
|
|
312
|
+
if (state) this.dragEnded.emit({
|
|
313
|
+
originalEvent,
|
|
314
|
+
side: state.side,
|
|
315
|
+
item: state.item,
|
|
316
|
+
key: state.key,
|
|
317
|
+
selectedKeys: state.keys
|
|
318
|
+
});
|
|
319
|
+
this.dragState.set(null);
|
|
320
|
+
this.dropTarget.set(null);
|
|
321
|
+
}
|
|
322
|
+
handleListKeydown(side, event) {
|
|
323
|
+
if (this.disabled()) return;
|
|
324
|
+
if (event.altKey) {
|
|
325
|
+
if (event.key === "ArrowRight" && side === "source") {
|
|
326
|
+
event.preventDefault();
|
|
327
|
+
this.moveSelectedToTarget(event);
|
|
328
|
+
} else if (event.key === "ArrowLeft" && side === "target") {
|
|
329
|
+
event.preventDefault();
|
|
330
|
+
this.moveSelectedToSource(event);
|
|
331
|
+
} else if (event.key === "ArrowUp") {
|
|
332
|
+
event.preventDefault();
|
|
333
|
+
this.moveSelectedUp(side, event);
|
|
334
|
+
} else if (event.key === "ArrowDown") {
|
|
335
|
+
event.preventDefault();
|
|
336
|
+
this.moveSelectedDown(side, event);
|
|
337
|
+
} else if (event.key === "Home") {
|
|
338
|
+
event.preventDefault();
|
|
339
|
+
this.moveSelectedToTop(side, event);
|
|
340
|
+
} else if (event.key === "End") {
|
|
341
|
+
event.preventDefault();
|
|
342
|
+
this.moveSelectedToBottom(side, event);
|
|
343
|
+
}
|
|
344
|
+
return;
|
|
345
|
+
}
|
|
346
|
+
if ((event.ctrlKey || event.metaKey) && event.key.toLowerCase() === "a") {
|
|
347
|
+
event.preventDefault();
|
|
348
|
+
const keys = this.filteredEntries(side).map((entry) => entry.key);
|
|
349
|
+
this.selectionModel(side).set([.../* @__PURE__ */ new Set([...this.selection(side), ...keys])]);
|
|
350
|
+
this.emitSelection(side, event);
|
|
351
|
+
return;
|
|
352
|
+
}
|
|
353
|
+
if (event.key === "ArrowDown" || event.key === "ArrowUp") {
|
|
354
|
+
event.preventDefault();
|
|
355
|
+
this.moveActive(side, event.key === "ArrowDown" ? 1 : -1);
|
|
356
|
+
} else if (event.key === "Home" || event.key === "End") {
|
|
357
|
+
event.preventDefault();
|
|
358
|
+
this.moveActiveToEdge(side, event.key === "Home" ? "start" : "end");
|
|
359
|
+
} else if (event.key === "Enter" || event.key === " ") {
|
|
360
|
+
event.preventDefault();
|
|
361
|
+
this.toggleActive(side, event);
|
|
362
|
+
}
|
|
363
|
+
}
|
|
364
|
+
canTransfer(direction, all) {
|
|
365
|
+
if (this.disabled()) return false;
|
|
366
|
+
const side = direction === "to-target" ? "source" : "target";
|
|
367
|
+
if (!(all ? this.collection(side).length : this.selection(side).length)) return false;
|
|
368
|
+
return direction !== "to-target" || this.availableTargetSlots() > 0;
|
|
369
|
+
}
|
|
370
|
+
canReorder(side, position) {
|
|
371
|
+
if (this.disabled()) return false;
|
|
372
|
+
const indexes = this.selectedIndexes(side);
|
|
373
|
+
if (!indexes.length) return false;
|
|
374
|
+
return position === "top" || position === "up" ? Math.min(...indexes) > 0 : Math.max(...indexes) < this.collection(side).length - 1;
|
|
375
|
+
}
|
|
376
|
+
moveSelectedToTarget(originalEvent = null) {
|
|
377
|
+
this.transfer("to-target", false, originalEvent);
|
|
378
|
+
}
|
|
379
|
+
moveAllToTarget(originalEvent = null) {
|
|
380
|
+
this.transfer("to-target", true, originalEvent);
|
|
381
|
+
}
|
|
382
|
+
moveSelectedToSource(originalEvent = null) {
|
|
383
|
+
this.transfer("to-source", false, originalEvent);
|
|
384
|
+
}
|
|
385
|
+
moveAllToSource(originalEvent = null) {
|
|
386
|
+
this.transfer("to-source", true, originalEvent);
|
|
387
|
+
}
|
|
388
|
+
moveSelectedUp(side, originalEvent = null) {
|
|
389
|
+
if (!this.canReorder(side, "up")) return;
|
|
390
|
+
this.reorderByStep(side, -1, originalEvent);
|
|
391
|
+
}
|
|
392
|
+
moveSelectedDown(side, originalEvent = null) {
|
|
393
|
+
if (!this.canReorder(side, "down")) return;
|
|
394
|
+
this.reorderByStep(side, 1, originalEvent);
|
|
395
|
+
}
|
|
396
|
+
moveSelectedToTop(side, originalEvent = null) {
|
|
397
|
+
if (!this.canReorder(side, "top")) return;
|
|
398
|
+
this.reorderToEdge(side, "top", originalEvent);
|
|
399
|
+
}
|
|
400
|
+
moveSelectedToBottom(side, originalEvent = null) {
|
|
401
|
+
if (!this.canReorder(side, "bottom")) return;
|
|
402
|
+
this.reorderToEdge(side, "bottom", originalEvent);
|
|
403
|
+
}
|
|
404
|
+
clearFilters() {
|
|
405
|
+
this.sourceFilter.set("");
|
|
406
|
+
this.targetFilter.set("");
|
|
407
|
+
}
|
|
408
|
+
createEntries(side, items) {
|
|
409
|
+
return items.map((item, index) => ({
|
|
410
|
+
item,
|
|
411
|
+
key: this.itemKey(item, index),
|
|
412
|
+
index,
|
|
413
|
+
optionId: `${this.componentId}-${side}-option-${index}`
|
|
414
|
+
}));
|
|
415
|
+
}
|
|
416
|
+
filterEntries(entries, filter) {
|
|
417
|
+
const query = filter.trim().toLocaleLowerCase();
|
|
418
|
+
if (!query) return entries;
|
|
419
|
+
return entries.filter((entry) => this.filterProperties().some((property) => {
|
|
420
|
+
const value = this.propertyValue(entry.item, property);
|
|
421
|
+
if (value == null) return false;
|
|
422
|
+
const candidate = String(value).toLocaleLowerCase();
|
|
423
|
+
return this.filterMatchMode() === "startsWith" ? candidate.startsWith(query) : candidate.includes(query);
|
|
424
|
+
}));
|
|
425
|
+
}
|
|
426
|
+
itemKey(item, index) {
|
|
427
|
+
const value = this.propertyValue(item, this.dataKey());
|
|
428
|
+
return value == null ? String(index) : String(value);
|
|
429
|
+
}
|
|
430
|
+
selection(side) {
|
|
431
|
+
return side === "source" ? this.sourceSelectedKeys() : this.targetSelectedKeys();
|
|
432
|
+
}
|
|
433
|
+
selectionModel(side) {
|
|
434
|
+
return side === "source" ? this.sourceSelectedKeys : this.targetSelectedKeys;
|
|
435
|
+
}
|
|
436
|
+
filterModel(side) {
|
|
437
|
+
return side === "source" ? this.sourceFilter : this.targetFilter;
|
|
438
|
+
}
|
|
439
|
+
activeKey(side) {
|
|
440
|
+
return side === "source" ? this.activeSourceKey : this.activeTargetKey;
|
|
441
|
+
}
|
|
442
|
+
selectionAnchor(side) {
|
|
443
|
+
return side === "source" ? this.sourceSelectionAnchor : this.targetSelectionAnchor;
|
|
444
|
+
}
|
|
445
|
+
moveActive(side, direction) {
|
|
446
|
+
const entries = this.filteredEntries(side);
|
|
447
|
+
if (!entries.length) return;
|
|
448
|
+
const currentIndex = entries.findIndex((entry) => entry.key === this.activeKey(side)());
|
|
449
|
+
const nextIndex = currentIndex < 0 ? direction === 1 ? 0 : entries.length - 1 : Math.max(0, Math.min(entries.length - 1, currentIndex + direction));
|
|
450
|
+
this.activeKey(side).set(entries[nextIndex]?.key ?? null);
|
|
451
|
+
}
|
|
452
|
+
moveActiveToEdge(side, edge) {
|
|
453
|
+
const entries = this.filteredEntries(side);
|
|
454
|
+
const entry = edge === "start" ? entries[0] : entries[entries.length - 1];
|
|
455
|
+
this.activeKey(side).set(entry?.key ?? null);
|
|
456
|
+
}
|
|
457
|
+
toggleActive(side, originalEvent) {
|
|
458
|
+
const entries = this.filteredEntries(side);
|
|
459
|
+
const activeKey = this.activeKey(side)() ?? entries[0]?.key;
|
|
460
|
+
if (!activeKey) return;
|
|
461
|
+
this.activeKey(side).set(activeKey);
|
|
462
|
+
const selected = this.selection(side);
|
|
463
|
+
this.selectionModel(side).set(selected.includes(activeKey) ? selected.filter((key) => key !== activeKey) : [...selected, activeKey]);
|
|
464
|
+
this.selectionAnchor(side).set(activeKey);
|
|
465
|
+
this.emitSelection(side, originalEvent);
|
|
466
|
+
}
|
|
467
|
+
transfer(direction, all, originalEvent) {
|
|
468
|
+
if (!this.canTransfer(direction, all)) return;
|
|
469
|
+
const fromSide = direction === "to-target" ? "source" : "target";
|
|
470
|
+
const entries = all ? this.collection(fromSide).map((item, index) => ({
|
|
471
|
+
item,
|
|
472
|
+
key: this.itemKey(item, index)
|
|
473
|
+
})) : this.collection(fromSide).map((item, index) => ({
|
|
474
|
+
item,
|
|
475
|
+
key: this.itemKey(item, index)
|
|
476
|
+
})).filter((entry) => this.selection(fromSide).includes(entry.key));
|
|
477
|
+
const allowedEntries = direction === "to-target" ? entries.slice(0, this.availableTargetSlots()) : entries;
|
|
478
|
+
this.transferKeys(direction, allowedEntries.map((entry) => entry.key), originalEvent);
|
|
479
|
+
}
|
|
480
|
+
transferKeys(direction, keys, originalEvent, beforeKey = null) {
|
|
481
|
+
if (this.disabled() || !keys.length) return;
|
|
482
|
+
const fromSide = direction === "to-target" ? "source" : "target";
|
|
483
|
+
const keySet = new Set(keys);
|
|
484
|
+
const fromEntries = this.collection(fromSide).map((item, index) => ({
|
|
485
|
+
item,
|
|
486
|
+
key: this.itemKey(item, index)
|
|
487
|
+
}));
|
|
488
|
+
let movedEntries = fromEntries.filter((entry) => keySet.has(entry.key));
|
|
489
|
+
if (direction === "to-target") movedEntries = movedEntries.slice(0, this.availableTargetSlots());
|
|
490
|
+
if (!movedEntries.length) return;
|
|
491
|
+
const movedKeys = new Set(movedEntries.map((entry) => entry.key));
|
|
492
|
+
const moved = movedEntries.map((entry) => entry.item);
|
|
493
|
+
const remaining = fromEntries.filter((entry) => !movedKeys.has(entry.key)).map((entry) => entry.item);
|
|
494
|
+
const destination = direction === "to-target" ? this.target() : this.source();
|
|
495
|
+
const destinationEntries = destination.map((item, index) => ({
|
|
496
|
+
item,
|
|
497
|
+
key: this.itemKey(item, index)
|
|
498
|
+
}));
|
|
499
|
+
const requestedIndex = beforeKey == null ? destinationEntries.length : destinationEntries.findIndex((entry) => entry.key === beforeKey);
|
|
500
|
+
const insertionIndex = requestedIndex < 0 ? destinationEntries.length : requestedIndex;
|
|
501
|
+
const nextDestination = [
|
|
502
|
+
...destination.slice(0, insertionIndex),
|
|
503
|
+
...moved,
|
|
504
|
+
...destination.slice(insertionIndex)
|
|
505
|
+
];
|
|
506
|
+
if (direction === "to-target") {
|
|
507
|
+
this.source.set(remaining);
|
|
508
|
+
this.target.set(nextDestination);
|
|
509
|
+
this.sourceSelectedKeys.set(this.sourceSelectedKeys().filter((key) => !movedKeys.has(key)));
|
|
510
|
+
this.activeSourceKey.set(null);
|
|
511
|
+
} else {
|
|
512
|
+
this.target.set(remaining);
|
|
513
|
+
this.source.set(nextDestination);
|
|
514
|
+
this.targetSelectedKeys.set(this.targetSelectedKeys().filter((key) => !movedKeys.has(key)));
|
|
515
|
+
this.activeTargetKey.set(null);
|
|
516
|
+
}
|
|
517
|
+
const event = {
|
|
518
|
+
originalEvent,
|
|
519
|
+
direction,
|
|
520
|
+
items: moved,
|
|
521
|
+
source: this.source(),
|
|
522
|
+
target: this.target()
|
|
523
|
+
};
|
|
524
|
+
this.transferred.emit(event);
|
|
525
|
+
if (direction === "to-target") this.movedToTarget.emit(event);
|
|
526
|
+
else this.movedToSource.emit(event);
|
|
527
|
+
this.announcement.set(`${moved.length} item${moved.length === 1 ? "" : "s"} moved to ${direction === "to-target" ? this.targetHeader() : this.sourceHeader()}.`);
|
|
528
|
+
}
|
|
529
|
+
availableTargetSlots() {
|
|
530
|
+
const limit = this.targetLimit();
|
|
531
|
+
return limit == null ? Number.MAX_SAFE_INTEGER : Math.max(0, limit - this.target().length);
|
|
532
|
+
}
|
|
533
|
+
selectedIndexes(side) {
|
|
534
|
+
const selected = new Set(this.selection(side));
|
|
535
|
+
return this.collection(side).map((item, index) => selected.has(this.itemKey(item, index)) ? index : -1).filter((index) => index >= 0);
|
|
536
|
+
}
|
|
537
|
+
reorderKeysBefore(side, keys, beforeKey, originalEvent) {
|
|
538
|
+
const keySet = new Set(keys);
|
|
539
|
+
const entries = this.collection(side).map((item, index) => ({
|
|
540
|
+
item,
|
|
541
|
+
key: this.itemKey(item, index)
|
|
542
|
+
}));
|
|
543
|
+
const moving = entries.filter((entry) => keySet.has(entry.key));
|
|
544
|
+
if (!moving.length) return;
|
|
545
|
+
const remaining = entries.filter((entry) => !keySet.has(entry.key));
|
|
546
|
+
const requestedIndex = beforeKey == null ? remaining.length : remaining.findIndex((entry) => entry.key === beforeKey);
|
|
547
|
+
const insertionIndex = requestedIndex < 0 ? remaining.length : requestedIndex;
|
|
548
|
+
const next = [
|
|
549
|
+
...remaining.slice(0, insertionIndex),
|
|
550
|
+
...moving,
|
|
551
|
+
...remaining.slice(insertionIndex)
|
|
552
|
+
].map((entry) => entry.item);
|
|
553
|
+
this.setReordered(side, next, originalEvent);
|
|
554
|
+
}
|
|
555
|
+
reorderByStep(side, direction, originalEvent) {
|
|
556
|
+
const selected = new Set(this.selection(side));
|
|
557
|
+
const next = [...this.collection(side)];
|
|
558
|
+
const indexes = direction === -1 ? this.selectedIndexes(side) : [...this.selectedIndexes(side)].sort((left, right) => right - left);
|
|
559
|
+
for (const index of indexes) {
|
|
560
|
+
const targetIndex = index + direction;
|
|
561
|
+
if (targetIndex < 0 || targetIndex >= next.length) continue;
|
|
562
|
+
if (selected.has(this.itemKey(next[targetIndex], targetIndex))) continue;
|
|
563
|
+
[next[index], next[targetIndex]] = [next[targetIndex], next[index]];
|
|
564
|
+
}
|
|
565
|
+
this.setReordered(side, next, originalEvent);
|
|
566
|
+
}
|
|
567
|
+
reorderToEdge(side, edge, originalEvent) {
|
|
568
|
+
const selected = new Set(this.selection(side));
|
|
569
|
+
const chosen = this.collection(side).filter((item, index) => selected.has(this.itemKey(item, index)));
|
|
570
|
+
const remaining = this.collection(side).filter((item, index) => !selected.has(this.itemKey(item, index)));
|
|
571
|
+
this.setReordered(side, edge === "top" ? [...chosen, ...remaining] : [...remaining, ...chosen], originalEvent);
|
|
572
|
+
}
|
|
573
|
+
setReordered(side, items, originalEvent) {
|
|
574
|
+
if (side === "source") this.source.set(items);
|
|
575
|
+
else this.target.set(items);
|
|
576
|
+
const event = {
|
|
577
|
+
originalEvent,
|
|
578
|
+
side,
|
|
579
|
+
items,
|
|
580
|
+
selectedKeys: this.selection(side)
|
|
581
|
+
};
|
|
582
|
+
this.reordered.emit(event);
|
|
583
|
+
if (side === "source") this.sourceReordered.emit(event);
|
|
584
|
+
else this.targetReordered.emit(event);
|
|
585
|
+
this.announcement.set(`Selected ${this.paneHeader(side)} items reordered.`);
|
|
586
|
+
}
|
|
587
|
+
emitSelection(side, originalEvent) {
|
|
588
|
+
const selected = new Set(this.selection(side));
|
|
589
|
+
this.selectionChanged.emit({
|
|
590
|
+
originalEvent,
|
|
591
|
+
side,
|
|
592
|
+
selectedKeys: this.selection(side),
|
|
593
|
+
selectedItems: this.collection(side).filter((item, index) => selected.has(this.itemKey(item, index)))
|
|
594
|
+
});
|
|
595
|
+
}
|
|
596
|
+
propertyValue(item, property) {
|
|
597
|
+
return Object.prototype.hasOwnProperty.call(item, property) ? item[property] : void 0;
|
|
598
|
+
}
|
|
599
|
+
static ɵfac = i0.ɵɵngDeclareFactory({
|
|
600
|
+
minVersion: "12.0.0",
|
|
601
|
+
version: "22.2.3",
|
|
602
|
+
ngImport: i0,
|
|
603
|
+
type: AerisPickList,
|
|
604
|
+
deps: [],
|
|
605
|
+
target: i0.ɵɵFactoryTarget.Component
|
|
606
|
+
});
|
|
607
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({
|
|
608
|
+
minVersion: "17.0.0",
|
|
609
|
+
version: "22.2.3",
|
|
610
|
+
type: AerisPickList,
|
|
611
|
+
isStandalone: true,
|
|
612
|
+
selector: "aeris-pick-list",
|
|
613
|
+
inputs: {
|
|
614
|
+
moveTopIconTemplate: {
|
|
615
|
+
classPropertyName: "moveTopIconTemplate",
|
|
616
|
+
publicName: "moveTopIconTemplate",
|
|
617
|
+
isSignal: true,
|
|
618
|
+
isRequired: false,
|
|
619
|
+
transformFunction: null
|
|
620
|
+
},
|
|
621
|
+
moveUpIconTemplate: {
|
|
622
|
+
classPropertyName: "moveUpIconTemplate",
|
|
623
|
+
publicName: "moveUpIconTemplate",
|
|
624
|
+
isSignal: true,
|
|
625
|
+
isRequired: false,
|
|
626
|
+
transformFunction: null
|
|
627
|
+
},
|
|
628
|
+
moveDownIconTemplate: {
|
|
629
|
+
classPropertyName: "moveDownIconTemplate",
|
|
630
|
+
publicName: "moveDownIconTemplate",
|
|
631
|
+
isSignal: true,
|
|
632
|
+
isRequired: false,
|
|
633
|
+
transformFunction: null
|
|
634
|
+
},
|
|
635
|
+
moveBottomIconTemplate: {
|
|
636
|
+
classPropertyName: "moveBottomIconTemplate",
|
|
637
|
+
publicName: "moveBottomIconTemplate",
|
|
638
|
+
isSignal: true,
|
|
639
|
+
isRequired: false,
|
|
640
|
+
transformFunction: null
|
|
641
|
+
},
|
|
642
|
+
moveToTargetIconTemplate: {
|
|
643
|
+
classPropertyName: "moveToTargetIconTemplate",
|
|
644
|
+
publicName: "moveToTargetIconTemplate",
|
|
645
|
+
isSignal: true,
|
|
646
|
+
isRequired: false,
|
|
647
|
+
transformFunction: null
|
|
648
|
+
},
|
|
649
|
+
moveAllToTargetIconTemplate: {
|
|
650
|
+
classPropertyName: "moveAllToTargetIconTemplate",
|
|
651
|
+
publicName: "moveAllToTargetIconTemplate",
|
|
652
|
+
isSignal: true,
|
|
653
|
+
isRequired: false,
|
|
654
|
+
transformFunction: null
|
|
655
|
+
},
|
|
656
|
+
moveToSourceIconTemplate: {
|
|
657
|
+
classPropertyName: "moveToSourceIconTemplate",
|
|
658
|
+
publicName: "moveToSourceIconTemplate",
|
|
659
|
+
isSignal: true,
|
|
660
|
+
isRequired: false,
|
|
661
|
+
transformFunction: null
|
|
662
|
+
},
|
|
663
|
+
moveAllToSourceIconTemplate: {
|
|
664
|
+
classPropertyName: "moveAllToSourceIconTemplate",
|
|
665
|
+
publicName: "moveAllToSourceIconTemplate",
|
|
666
|
+
isSignal: true,
|
|
667
|
+
isRequired: false,
|
|
668
|
+
transformFunction: null
|
|
669
|
+
},
|
|
670
|
+
filterIconTemplate: {
|
|
671
|
+
classPropertyName: "filterIconTemplate",
|
|
672
|
+
publicName: "filterIconTemplate",
|
|
673
|
+
isSignal: true,
|
|
674
|
+
isRequired: false,
|
|
675
|
+
transformFunction: null
|
|
676
|
+
},
|
|
677
|
+
source: {
|
|
678
|
+
classPropertyName: "source",
|
|
679
|
+
publicName: "source",
|
|
680
|
+
isSignal: true,
|
|
681
|
+
isRequired: false,
|
|
682
|
+
transformFunction: null
|
|
683
|
+
},
|
|
684
|
+
target: {
|
|
685
|
+
classPropertyName: "target",
|
|
686
|
+
publicName: "target",
|
|
687
|
+
isSignal: true,
|
|
688
|
+
isRequired: false,
|
|
689
|
+
transformFunction: null
|
|
690
|
+
},
|
|
691
|
+
sourceSelectedKeys: {
|
|
692
|
+
classPropertyName: "sourceSelectedKeys",
|
|
693
|
+
publicName: "sourceSelectedKeys",
|
|
694
|
+
isSignal: true,
|
|
695
|
+
isRequired: false,
|
|
696
|
+
transformFunction: null
|
|
697
|
+
},
|
|
698
|
+
targetSelectedKeys: {
|
|
699
|
+
classPropertyName: "targetSelectedKeys",
|
|
700
|
+
publicName: "targetSelectedKeys",
|
|
701
|
+
isSignal: true,
|
|
702
|
+
isRequired: false,
|
|
703
|
+
transformFunction: null
|
|
704
|
+
},
|
|
705
|
+
sourceFilter: {
|
|
706
|
+
classPropertyName: "sourceFilter",
|
|
707
|
+
publicName: "sourceFilter",
|
|
708
|
+
isSignal: true,
|
|
709
|
+
isRequired: false,
|
|
710
|
+
transformFunction: null
|
|
711
|
+
},
|
|
712
|
+
targetFilter: {
|
|
713
|
+
classPropertyName: "targetFilter",
|
|
714
|
+
publicName: "targetFilter",
|
|
715
|
+
isSignal: true,
|
|
716
|
+
isRequired: false,
|
|
717
|
+
transformFunction: null
|
|
718
|
+
},
|
|
719
|
+
optionLabel: {
|
|
720
|
+
classPropertyName: "optionLabel",
|
|
721
|
+
publicName: "optionLabel",
|
|
722
|
+
isSignal: true,
|
|
723
|
+
isRequired: false,
|
|
724
|
+
transformFunction: null
|
|
725
|
+
},
|
|
726
|
+
dataKey: {
|
|
727
|
+
classPropertyName: "dataKey",
|
|
728
|
+
publicName: "dataKey",
|
|
729
|
+
isSignal: true,
|
|
730
|
+
isRequired: false,
|
|
731
|
+
transformFunction: null
|
|
732
|
+
},
|
|
733
|
+
filterBy: {
|
|
734
|
+
classPropertyName: "filterBy",
|
|
735
|
+
publicName: "filterBy",
|
|
736
|
+
isSignal: true,
|
|
737
|
+
isRequired: false,
|
|
738
|
+
transformFunction: null
|
|
739
|
+
},
|
|
740
|
+
filterMatchMode: {
|
|
741
|
+
classPropertyName: "filterMatchMode",
|
|
742
|
+
publicName: "filterMatchMode",
|
|
743
|
+
isSignal: true,
|
|
744
|
+
isRequired: false,
|
|
745
|
+
transformFunction: null
|
|
746
|
+
},
|
|
747
|
+
sourceHeader: {
|
|
748
|
+
classPropertyName: "sourceHeader",
|
|
749
|
+
publicName: "sourceHeader",
|
|
750
|
+
isSignal: true,
|
|
751
|
+
isRequired: false,
|
|
752
|
+
transformFunction: null
|
|
753
|
+
},
|
|
754
|
+
targetHeader: {
|
|
755
|
+
classPropertyName: "targetHeader",
|
|
756
|
+
publicName: "targetHeader",
|
|
757
|
+
isSignal: true,
|
|
758
|
+
isRequired: false,
|
|
759
|
+
transformFunction: null
|
|
760
|
+
},
|
|
761
|
+
sourceAriaLabel: {
|
|
762
|
+
classPropertyName: "sourceAriaLabel",
|
|
763
|
+
publicName: "sourceAriaLabel",
|
|
764
|
+
isSignal: true,
|
|
765
|
+
isRequired: false,
|
|
766
|
+
transformFunction: null
|
|
767
|
+
},
|
|
768
|
+
targetAriaLabel: {
|
|
769
|
+
classPropertyName: "targetAriaLabel",
|
|
770
|
+
publicName: "targetAriaLabel",
|
|
771
|
+
isSignal: true,
|
|
772
|
+
isRequired: false,
|
|
773
|
+
transformFunction: null
|
|
774
|
+
},
|
|
775
|
+
ariaLabel: {
|
|
776
|
+
classPropertyName: "ariaLabel",
|
|
777
|
+
publicName: "ariaLabel",
|
|
778
|
+
isSignal: true,
|
|
779
|
+
isRequired: false,
|
|
780
|
+
transformFunction: null
|
|
781
|
+
},
|
|
782
|
+
sourceFilterPlaceholder: {
|
|
783
|
+
classPropertyName: "sourceFilterPlaceholder",
|
|
784
|
+
publicName: "sourceFilterPlaceholder",
|
|
785
|
+
isSignal: true,
|
|
786
|
+
isRequired: false,
|
|
787
|
+
transformFunction: null
|
|
788
|
+
},
|
|
789
|
+
targetFilterPlaceholder: {
|
|
790
|
+
classPropertyName: "targetFilterPlaceholder",
|
|
791
|
+
publicName: "targetFilterPlaceholder",
|
|
792
|
+
isSignal: true,
|
|
793
|
+
isRequired: false,
|
|
794
|
+
transformFunction: null
|
|
795
|
+
},
|
|
796
|
+
sourceFilterAriaLabel: {
|
|
797
|
+
classPropertyName: "sourceFilterAriaLabel",
|
|
798
|
+
publicName: "sourceFilterAriaLabel",
|
|
799
|
+
isSignal: true,
|
|
800
|
+
isRequired: false,
|
|
801
|
+
transformFunction: null
|
|
802
|
+
},
|
|
803
|
+
targetFilterAriaLabel: {
|
|
804
|
+
classPropertyName: "targetFilterAriaLabel",
|
|
805
|
+
publicName: "targetFilterAriaLabel",
|
|
806
|
+
isSignal: true,
|
|
807
|
+
isRequired: false,
|
|
808
|
+
transformFunction: null
|
|
809
|
+
},
|
|
810
|
+
sourceEmptyMessage: {
|
|
811
|
+
classPropertyName: "sourceEmptyMessage",
|
|
812
|
+
publicName: "sourceEmptyMessage",
|
|
813
|
+
isSignal: true,
|
|
814
|
+
isRequired: false,
|
|
815
|
+
transformFunction: null
|
|
816
|
+
},
|
|
817
|
+
targetEmptyMessage: {
|
|
818
|
+
classPropertyName: "targetEmptyMessage",
|
|
819
|
+
publicName: "targetEmptyMessage",
|
|
820
|
+
isSignal: true,
|
|
821
|
+
isRequired: false,
|
|
822
|
+
transformFunction: null
|
|
823
|
+
},
|
|
824
|
+
sourceFilterEmptyMessage: {
|
|
825
|
+
classPropertyName: "sourceFilterEmptyMessage",
|
|
826
|
+
publicName: "sourceFilterEmptyMessage",
|
|
827
|
+
isSignal: true,
|
|
828
|
+
isRequired: false,
|
|
829
|
+
transformFunction: null
|
|
830
|
+
},
|
|
831
|
+
targetFilterEmptyMessage: {
|
|
832
|
+
classPropertyName: "targetFilterEmptyMessage",
|
|
833
|
+
publicName: "targetFilterEmptyMessage",
|
|
834
|
+
isSignal: true,
|
|
835
|
+
isRequired: false,
|
|
836
|
+
transformFunction: null
|
|
837
|
+
},
|
|
838
|
+
showFilter: {
|
|
839
|
+
classPropertyName: "showFilter",
|
|
840
|
+
publicName: "showFilter",
|
|
841
|
+
isSignal: true,
|
|
842
|
+
isRequired: false,
|
|
843
|
+
transformFunction: null
|
|
844
|
+
},
|
|
845
|
+
showSourceControls: {
|
|
846
|
+
classPropertyName: "showSourceControls",
|
|
847
|
+
publicName: "showSourceControls",
|
|
848
|
+
isSignal: true,
|
|
849
|
+
isRequired: false,
|
|
850
|
+
transformFunction: null
|
|
851
|
+
},
|
|
852
|
+
showTargetControls: {
|
|
853
|
+
classPropertyName: "showTargetControls",
|
|
854
|
+
publicName: "showTargetControls",
|
|
855
|
+
isSignal: true,
|
|
856
|
+
isRequired: false,
|
|
857
|
+
transformFunction: null
|
|
858
|
+
},
|
|
859
|
+
showTransferControls: {
|
|
860
|
+
classPropertyName: "showTransferControls",
|
|
861
|
+
publicName: "showTransferControls",
|
|
862
|
+
isSignal: true,
|
|
863
|
+
isRequired: false,
|
|
864
|
+
transformFunction: null
|
|
865
|
+
},
|
|
866
|
+
transferOnDoubleClick: {
|
|
867
|
+
classPropertyName: "transferOnDoubleClick",
|
|
868
|
+
publicName: "transferOnDoubleClick",
|
|
869
|
+
isSignal: true,
|
|
870
|
+
isRequired: false,
|
|
871
|
+
transformFunction: null
|
|
872
|
+
},
|
|
873
|
+
dragDrop: {
|
|
874
|
+
classPropertyName: "dragDrop",
|
|
875
|
+
publicName: "dragDrop",
|
|
876
|
+
isSignal: true,
|
|
877
|
+
isRequired: false,
|
|
878
|
+
transformFunction: null
|
|
879
|
+
},
|
|
880
|
+
disabled: {
|
|
881
|
+
classPropertyName: "disabled",
|
|
882
|
+
publicName: "disabled",
|
|
883
|
+
isSignal: true,
|
|
884
|
+
isRequired: false,
|
|
885
|
+
transformFunction: null
|
|
886
|
+
},
|
|
887
|
+
fluid: {
|
|
888
|
+
classPropertyName: "fluid",
|
|
889
|
+
publicName: "fluid",
|
|
890
|
+
isSignal: true,
|
|
891
|
+
isRequired: false,
|
|
892
|
+
transformFunction: null
|
|
893
|
+
},
|
|
894
|
+
targetLimit: {
|
|
895
|
+
classPropertyName: "targetLimit",
|
|
896
|
+
publicName: "targetLimit",
|
|
897
|
+
isSignal: true,
|
|
898
|
+
isRequired: false,
|
|
899
|
+
transformFunction: null
|
|
900
|
+
},
|
|
901
|
+
moveToTargetAriaLabel: {
|
|
902
|
+
classPropertyName: "moveToTargetAriaLabel",
|
|
903
|
+
publicName: "moveToTargetAriaLabel",
|
|
904
|
+
isSignal: true,
|
|
905
|
+
isRequired: false,
|
|
906
|
+
transformFunction: null
|
|
907
|
+
},
|
|
908
|
+
moveAllToTargetAriaLabel: {
|
|
909
|
+
classPropertyName: "moveAllToTargetAriaLabel",
|
|
910
|
+
publicName: "moveAllToTargetAriaLabel",
|
|
911
|
+
isSignal: true,
|
|
912
|
+
isRequired: false,
|
|
913
|
+
transformFunction: null
|
|
914
|
+
},
|
|
915
|
+
moveToSourceAriaLabel: {
|
|
916
|
+
classPropertyName: "moveToSourceAriaLabel",
|
|
917
|
+
publicName: "moveToSourceAriaLabel",
|
|
918
|
+
isSignal: true,
|
|
919
|
+
isRequired: false,
|
|
920
|
+
transformFunction: null
|
|
921
|
+
},
|
|
922
|
+
moveAllToSourceAriaLabel: {
|
|
923
|
+
classPropertyName: "moveAllToSourceAriaLabel",
|
|
924
|
+
publicName: "moveAllToSourceAriaLabel",
|
|
925
|
+
isSignal: true,
|
|
926
|
+
isRequired: false,
|
|
927
|
+
transformFunction: null
|
|
928
|
+
}
|
|
929
|
+
},
|
|
930
|
+
outputs: {
|
|
931
|
+
source: "sourceChange",
|
|
932
|
+
target: "targetChange",
|
|
933
|
+
sourceSelectedKeys: "sourceSelectedKeysChange",
|
|
934
|
+
targetSelectedKeys: "targetSelectedKeysChange",
|
|
935
|
+
sourceFilter: "sourceFilterChange",
|
|
936
|
+
targetFilter: "targetFilterChange",
|
|
937
|
+
selectionChanged: "selectionChanged",
|
|
938
|
+
transferred: "transferred",
|
|
939
|
+
movedToTarget: "movedToTarget",
|
|
940
|
+
movedToSource: "movedToSource",
|
|
941
|
+
reordered: "reordered",
|
|
942
|
+
sourceReordered: "sourceReordered",
|
|
943
|
+
targetReordered: "targetReordered",
|
|
944
|
+
filterChanged: "filterChanged",
|
|
945
|
+
dragStarted: "dragStarted",
|
|
946
|
+
dragEnded: "dragEnded"
|
|
947
|
+
},
|
|
948
|
+
queries: [{
|
|
949
|
+
propertyName: "itemTemplate",
|
|
950
|
+
first: true,
|
|
951
|
+
predicate: AerisPickListItemTemplate,
|
|
952
|
+
descendants: true,
|
|
953
|
+
isSignal: true
|
|
954
|
+
}, {
|
|
955
|
+
propertyName: "emptyTemplate",
|
|
956
|
+
first: true,
|
|
957
|
+
predicate: AerisPickListEmptyTemplate,
|
|
958
|
+
descendants: true,
|
|
959
|
+
isSignal: true
|
|
960
|
+
}],
|
|
961
|
+
ngImport: i0,
|
|
962
|
+
template: `
|
|
645
963
|
<div
|
|
646
964
|
class="aeris-pick-list"
|
|
647
965
|
role="group"
|
|
@@ -650,18 +968,91 @@ class AerisPickList {
|
|
|
650
968
|
[attr.data-fluid]="fluid() || null"
|
|
651
969
|
>
|
|
652
970
|
<ng-template #reorderControls let-controlSide>
|
|
653
|
-
<div
|
|
654
|
-
|
|
655
|
-
|
|
971
|
+
<div
|
|
972
|
+
class="aeris-pick-list__reorder-controls"
|
|
973
|
+
[attr.aria-label]="paneHeader(controlSide) + ' reorder controls'"
|
|
974
|
+
>
|
|
975
|
+
<button
|
|
976
|
+
type="button"
|
|
977
|
+
[disabled]="!canReorder(controlSide, 'top')"
|
|
978
|
+
[attr.aria-label]="'Move selected ' + paneHeader(controlSide) + ' items to top'"
|
|
979
|
+
(click)="moveSelectedToTop(controlSide, $event)"
|
|
980
|
+
>
|
|
981
|
+
@if (moveTopIconTemplate(); as customIcon) {
|
|
982
|
+
<span
|
|
983
|
+
class="aeris-custom-icon"
|
|
984
|
+
aria-hidden="true"
|
|
985
|
+
focusable="false"
|
|
986
|
+
data-aeris-custom-icon
|
|
987
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
988
|
+
/></span>
|
|
989
|
+
} @else {
|
|
990
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
991
|
+
<path d="m17 11-5-5-5 5" />
|
|
992
|
+
<path d="m17 18-5-5-5 5" />
|
|
993
|
+
</svg>
|
|
994
|
+
}
|
|
656
995
|
</button>
|
|
657
|
-
<button
|
|
658
|
-
|
|
996
|
+
<button
|
|
997
|
+
type="button"
|
|
998
|
+
[disabled]="!canReorder(controlSide, 'up')"
|
|
999
|
+
[attr.aria-label]="'Move selected ' + paneHeader(controlSide) + ' items up'"
|
|
1000
|
+
(click)="moveSelectedUp(controlSide, $event)"
|
|
1001
|
+
>
|
|
1002
|
+
@if (moveUpIconTemplate(); as customIcon) {
|
|
1003
|
+
<span
|
|
1004
|
+
class="aeris-custom-icon"
|
|
1005
|
+
aria-hidden="true"
|
|
1006
|
+
focusable="false"
|
|
1007
|
+
data-aeris-custom-icon
|
|
1008
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1009
|
+
/></span>
|
|
1010
|
+
} @else {
|
|
1011
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1012
|
+
<path d="m18 15-6-6-6 6" />
|
|
1013
|
+
</svg>
|
|
1014
|
+
}
|
|
659
1015
|
</button>
|
|
660
|
-
<button
|
|
661
|
-
|
|
1016
|
+
<button
|
|
1017
|
+
type="button"
|
|
1018
|
+
[disabled]="!canReorder(controlSide, 'down')"
|
|
1019
|
+
[attr.aria-label]="'Move selected ' + paneHeader(controlSide) + ' items down'"
|
|
1020
|
+
(click)="moveSelectedDown(controlSide, $event)"
|
|
1021
|
+
>
|
|
1022
|
+
@if (moveDownIconTemplate(); as customIcon) {
|
|
1023
|
+
<span
|
|
1024
|
+
class="aeris-custom-icon"
|
|
1025
|
+
aria-hidden="true"
|
|
1026
|
+
focusable="false"
|
|
1027
|
+
data-aeris-custom-icon
|
|
1028
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1029
|
+
/></span>
|
|
1030
|
+
} @else {
|
|
1031
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1032
|
+
<path d="m6 9 6 6 6-6" />
|
|
1033
|
+
</svg>
|
|
1034
|
+
}
|
|
662
1035
|
</button>
|
|
663
|
-
<button
|
|
664
|
-
|
|
1036
|
+
<button
|
|
1037
|
+
type="button"
|
|
1038
|
+
[disabled]="!canReorder(controlSide, 'bottom')"
|
|
1039
|
+
[attr.aria-label]="'Move selected ' + paneHeader(controlSide) + ' items to bottom'"
|
|
1040
|
+
(click)="moveSelectedToBottom(controlSide, $event)"
|
|
1041
|
+
>
|
|
1042
|
+
@if (moveBottomIconTemplate(); as customIcon) {
|
|
1043
|
+
<span
|
|
1044
|
+
class="aeris-custom-icon"
|
|
1045
|
+
aria-hidden="true"
|
|
1046
|
+
focusable="false"
|
|
1047
|
+
data-aeris-custom-icon
|
|
1048
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1049
|
+
/></span>
|
|
1050
|
+
} @else {
|
|
1051
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1052
|
+
<path d="m7 6 5 5 5-5" />
|
|
1053
|
+
<path d="m7 13 5 5 5-5" />
|
|
1054
|
+
</svg>
|
|
1055
|
+
}
|
|
665
1056
|
</button>
|
|
666
1057
|
</div>
|
|
667
1058
|
</ng-template>
|
|
@@ -676,7 +1067,17 @@ class AerisPickList {
|
|
|
676
1067
|
@if (showFilter()) {
|
|
677
1068
|
<label class="aeris-pick-list__filter">
|
|
678
1069
|
<span class="aeris-pick-list__visually-hidden">{{ filterAriaLabel(side) }}</span>
|
|
679
|
-
|
|
1070
|
+
@if (filterIconTemplate(); as customIcon) {
|
|
1071
|
+
<span class="aeris-pick-list__search-icon" aria-hidden="true" data-aeris-custom-icon
|
|
1072
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1073
|
+
/></span>
|
|
1074
|
+
} @else {
|
|
1075
|
+
<span
|
|
1076
|
+
aerisInternalIcon="search"
|
|
1077
|
+
class="aeris-pick-list__search-icon"
|
|
1078
|
+
aria-hidden="true"
|
|
1079
|
+
></span>
|
|
1080
|
+
}
|
|
680
1081
|
<input
|
|
681
1082
|
type="search"
|
|
682
1083
|
autocomplete="off"
|
|
@@ -690,7 +1091,10 @@ class AerisPickList {
|
|
|
690
1091
|
|
|
691
1092
|
<div class="aeris-pick-list__pane-body" [attr.data-side]="side">
|
|
692
1093
|
@if (side === 'source' && showReorderControls(side)) {
|
|
693
|
-
<ng-container
|
|
1094
|
+
<ng-container
|
|
1095
|
+
[ngTemplateOutlet]="reorderControls"
|
|
1096
|
+
[ngTemplateOutletContext]="{ $implicit: side }"
|
|
1097
|
+
/>
|
|
694
1098
|
}
|
|
695
1099
|
|
|
696
1100
|
<div
|
|
@@ -730,7 +1134,7 @@ class AerisPickList {
|
|
|
730
1134
|
item: entry.item,
|
|
731
1135
|
side,
|
|
732
1136
|
selected: isSelected(side, entry.key),
|
|
733
|
-
index: entry.index
|
|
1137
|
+
index: entry.index,
|
|
734
1138
|
}"
|
|
735
1139
|
/>
|
|
736
1140
|
} @else {
|
|
@@ -752,7 +1156,10 @@ class AerisPickList {
|
|
|
752
1156
|
</div>
|
|
753
1157
|
|
|
754
1158
|
@if (side === 'target' && showReorderControls(side)) {
|
|
755
|
-
<ng-container
|
|
1159
|
+
<ng-container
|
|
1160
|
+
[ngTemplateOutlet]="reorderControls"
|
|
1161
|
+
[ngTemplateOutletContext]="{ $implicit: side }"
|
|
1162
|
+
/>
|
|
756
1163
|
}
|
|
757
1164
|
</div>
|
|
758
1165
|
</section>
|
|
@@ -762,29 +1169,127 @@ class AerisPickList {
|
|
|
762
1169
|
|
|
763
1170
|
@if (showTransferControls()) {
|
|
764
1171
|
<div class="aeris-pick-list__transfer-controls" aria-label="Transfer controls">
|
|
765
|
-
<button
|
|
766
|
-
|
|
1172
|
+
<button
|
|
1173
|
+
type="button"
|
|
1174
|
+
[disabled]="!canTransfer('to-target', false)"
|
|
1175
|
+
[attr.aria-label]="moveToTargetAriaLabel()"
|
|
1176
|
+
(click)="moveSelectedToTarget($event)"
|
|
1177
|
+
>
|
|
1178
|
+
@if (moveToTargetIconTemplate(); as customIcon) {
|
|
1179
|
+
<span
|
|
1180
|
+
class="aeris-custom-icon"
|
|
1181
|
+
aria-hidden="true"
|
|
1182
|
+
focusable="false"
|
|
1183
|
+
data-aeris-custom-icon
|
|
1184
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1185
|
+
/></span>
|
|
1186
|
+
} @else {
|
|
1187
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1188
|
+
<path d="m9 18 6-6-6-6" />
|
|
1189
|
+
</svg>
|
|
1190
|
+
}
|
|
767
1191
|
</button>
|
|
768
|
-
<button
|
|
769
|
-
|
|
1192
|
+
<button
|
|
1193
|
+
type="button"
|
|
1194
|
+
[disabled]="!canTransfer('to-target', true)"
|
|
1195
|
+
[attr.aria-label]="moveAllToTargetAriaLabel()"
|
|
1196
|
+
(click)="moveAllToTarget($event)"
|
|
1197
|
+
>
|
|
1198
|
+
@if (moveAllToTargetIconTemplate(); as customIcon) {
|
|
1199
|
+
<span
|
|
1200
|
+
class="aeris-custom-icon"
|
|
1201
|
+
aria-hidden="true"
|
|
1202
|
+
focusable="false"
|
|
1203
|
+
data-aeris-custom-icon
|
|
1204
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1205
|
+
/></span>
|
|
1206
|
+
} @else {
|
|
1207
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1208
|
+
<path d="m6 17 5-5-5-5" />
|
|
1209
|
+
<path d="m13 17 5-5-5-5" />
|
|
1210
|
+
</svg>
|
|
1211
|
+
}
|
|
770
1212
|
</button>
|
|
771
|
-
<button
|
|
772
|
-
|
|
1213
|
+
<button
|
|
1214
|
+
type="button"
|
|
1215
|
+
[disabled]="!canTransfer('to-source', false)"
|
|
1216
|
+
[attr.aria-label]="moveToSourceAriaLabel()"
|
|
1217
|
+
(click)="moveSelectedToSource($event)"
|
|
1218
|
+
>
|
|
1219
|
+
@if (moveToSourceIconTemplate(); as customIcon) {
|
|
1220
|
+
<span
|
|
1221
|
+
class="aeris-custom-icon"
|
|
1222
|
+
aria-hidden="true"
|
|
1223
|
+
focusable="false"
|
|
1224
|
+
data-aeris-custom-icon
|
|
1225
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1226
|
+
/></span>
|
|
1227
|
+
} @else {
|
|
1228
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1229
|
+
<path d="m15 18-6-6 6-6" />
|
|
1230
|
+
</svg>
|
|
1231
|
+
}
|
|
773
1232
|
</button>
|
|
774
|
-
<button
|
|
775
|
-
|
|
1233
|
+
<button
|
|
1234
|
+
type="button"
|
|
1235
|
+
[disabled]="!canTransfer('to-source', true)"
|
|
1236
|
+
[attr.aria-label]="moveAllToSourceAriaLabel()"
|
|
1237
|
+
(click)="moveAllToSource($event)"
|
|
1238
|
+
>
|
|
1239
|
+
@if (moveAllToSourceIconTemplate(); as customIcon) {
|
|
1240
|
+
<span
|
|
1241
|
+
class="aeris-custom-icon"
|
|
1242
|
+
aria-hidden="true"
|
|
1243
|
+
focusable="false"
|
|
1244
|
+
data-aeris-custom-icon
|
|
1245
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1246
|
+
/></span>
|
|
1247
|
+
} @else {
|
|
1248
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1249
|
+
<path d="m11 17-5-5 5-5" />
|
|
1250
|
+
<path d="m18 17-5-5 5-5" />
|
|
1251
|
+
</svg>
|
|
1252
|
+
}
|
|
776
1253
|
</button>
|
|
777
1254
|
</div>
|
|
778
1255
|
}
|
|
779
1256
|
|
|
780
1257
|
<ng-container [ngTemplateOutlet]="pane" [ngTemplateOutletContext]="{ $implicit: 'target' }" />
|
|
781
|
-
<span class="aeris-pick-list__visually-hidden" role="status" aria-live="polite">{{
|
|
1258
|
+
<span class="aeris-pick-list__visually-hidden" role="status" aria-live="polite">{{
|
|
1259
|
+
announcement()
|
|
1260
|
+
}}</span>
|
|
782
1261
|
</div>
|
|
783
|
-
`,
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
1262
|
+
`,
|
|
1263
|
+
isInline: true,
|
|
1264
|
+
styles: [":host{display:block;min-width:0}.aeris-pick-list{width:max-content;max-width:100%;display:grid;grid-template-columns:minmax(15rem,1fr) auto minmax(15rem,1fr);gap:var(--aeris-pick-list-gap, calc(var(--aeris-density-gap, .5rem) + .375rem));align-items:stretch;color:var(--aeris-text, #111111)}.aeris-pick-list[data-fluid=true]{width:100%}.aeris-pick-list__pane{min-width:0;display:flex;flex-direction:column;border:1px solid var(--aeris-pick-list-border, var(--aeris-border));border-radius:var(--aeris-pick-list-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-pick-list-background, var(--aeris-surface, #fff));overflow:hidden}.aeris-pick-list__header{min-height:calc(var(--aeris-item-height, 2.5rem) + .5rem);display:flex;align-items:center;justify-content:space-between;gap:calc(var(--aeris-density-gap, .5rem) * 2);padding:var(--aeris-pick-list-header-padding, var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem));border-bottom:1px solid var(--aeris-border);background:var(--aeris-surface-2, #f3f3f3)}.aeris-pick-list__header strong{font-size:var(--aeris-font-size-lg, .875rem)}.aeris-pick-list__header span{min-width:1.5rem;min-height:1.5rem;display:inline-grid;place-items:center;padding-inline:.375rem;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-xs, .6875rem);font-weight:var(--aeris-font-weight-bold, 700)}.aeris-pick-list__filter{position:relative;display:block;padding:var(--aeris-item-padding-y, .5rem);border-bottom:1px solid var(--aeris-border)}.aeris-pick-list__filter input{width:100%;height:var(--aeris-pick-list-filter-height, var(--aeris-control-height, 2.625rem));padding:0 var(--aeris-control-padding-x, .75rem) 0 calc(var(--aeris-control-padding-x, .75rem) + 1.375rem);border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #111111);font:inherit;font-size:var(--aeris-font-size-md, .8125rem)}.aeris-pick-list__filter input::placeholder{color:var(--aeris-text-2, #454545);opacity:.75}.aeris-pick-list__filter input:focus{border-color:var(--aeris-control-focus-border, var(--aeris-focus, #111111));outline:0;box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-focus-ring-color, var(--aeris-focus-ring-color, transparent))}.aeris-pick-list__search-icon{position:absolute;z-index:1;top:50%;left:1.375rem;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:var(--aeris-text-2, #454545);transform:translateY(-50%);pointer-events:none;-webkit-mask:var(--aeris-icon-search) center/100% 100% no-repeat;mask:var(--aeris-icon-search) center/100% 100% no-repeat}.aeris-pick-list__pane-body{width:100%;min-height:var(--aeris-pick-list-min-height, 16rem);max-height:var(--aeris-pick-list-max-height, 22rem);display:grid;flex:1 1 auto;grid-template-columns:auto minmax(0,1fr);align-items:stretch;overflow:hidden}.aeris-pick-list__pane-body[data-side=target]{grid-template-columns:minmax(0,1fr) auto}.aeris-pick-list__viewport{min-width:0;min-height:0;padding:var(--aeris-overlay-padding, calc(var(--aeris-density-gap, .5rem) * .75));overflow:auto}.aeris-pick-list__viewport:only-child{grid-column:1/-1}.aeris-pick-list__viewport:focus-visible{outline:0;box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--aeris-focus, #111111) 22%,transparent)}.aeris-pick-list__item{position:relative;width:100%;min-height:var(--aeris-pick-list-item-min-height, var(--aeris-item-height, 2.5rem));display:flex;align-items:center;gap:calc(var(--aeris-density-gap, .5rem) + .25rem);padding:var(--aeris-pick-list-item-padding, var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem));border:1px solid transparent;border-radius:var(--aeris-pick-list-item-radius, var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem)));background:transparent;color:var(--aeris-text, #111111);font-size:var(--aeris-item-font-size, .875rem);cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-enter, ease-out)}.aeris-pick-list__item[draggable=true]{cursor:grab}.aeris-pick-list__item[draggable=true]:active{cursor:grabbing}@media(hover:hover){.aeris-pick-list__item:hover{background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3))}}.aeris-pick-list__item[data-selected=true]{border-color:color-mix(in srgb,var(--aeris-primary, #111111) 44%,var(--aeris-border, #efefef));background:var(--aeris-primary-soft, #eef2e6);color:var(--aeris-text, #111111)}.aeris-pick-list__item[data-active=true]{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--aeris-focus, #111111) 44%,transparent)}.aeris-pick-list__item[data-dragging=true]{opacity:.48;transform:scale(.985)}.aeris-pick-list__item[data-drop-target=true]:before{position:absolute;z-index:1;top:-.2rem;right:.25rem;left:.25rem;height:2px;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-primary, #111111);content:\"\"}.aeris-pick-list__empty{min-height:10rem;display:grid;place-items:center;padding:calc(var(--aeris-item-padding-y, .5rem) * 2) calc(var(--aeris-item-padding-x, .75rem) * 1.35);color:var(--aeris-text-muted, #6d7068);font-size:var(--aeris-font-size-md, .8125rem);text-align:center}.aeris-pick-list__reorder-controls,.aeris-pick-list__transfer-controls{display:grid;align-content:center;gap:calc(var(--aeris-density-gap, .5rem) * .75)}.aeris-pick-list__reorder-controls{align-self:stretch;padding:var(--aeris-pick-list-controls-padding, var(--aeris-item-padding-y, .5rem));border-right:1px solid var(--aeris-border);background:color-mix(in srgb,var(--aeris-surface-2, #f3f3f3) 54%,transparent)}.aeris-pick-list__pane-body[data-side=target] .aeris-pick-list__reorder-controls{border-right:0;border-left:1px solid var(--aeris-border)}.aeris-pick-list__transfer-controls{align-self:stretch;justify-items:center}.aeris-pick-list__reorder-controls button,.aeris-pick-list__transfer-controls button{width:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);height:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);display:grid;place-items:center;padding:0;border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #111111);cursor:pointer}@media(hover:hover){.aeris-pick-list__reorder-controls button:not(:disabled):hover,.aeris-pick-list__transfer-controls button:not(:disabled):hover{border-color:var(--aeris-focus, #111111);background:var(--aeris-surface-2, #f3f3f3)}}.aeris-pick-list__reorder-controls button:focus-visible,.aeris-pick-list__transfer-controls button:focus-visible{outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #111111) 24%,transparent)}.aeris-pick-list__reorder-controls button:disabled,.aeris-pick-list__transfer-controls button:disabled{opacity:.42;cursor:not-allowed}.aeris-pick-list__reorder-controls svg,.aeris-pick-list__transfer-controls svg{width:1rem;height:1rem;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.aeris-pick-list[data-disabled=true]{opacity:var(--aeris-disabled-opacity, .52)}.aeris-pick-list__visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:52rem){.aeris-pick-list{grid-template-columns:minmax(0,1fr)}.aeris-pick-list__transfer-controls{grid-template-columns:repeat(4,auto);justify-content:center}.aeris-pick-list__transfer-controls>button>:is(svg,[data-aeris-custom-icon]){transform:rotate(90deg)}}@media(max-width:34rem){.aeris-pick-list__pane-body,.aeris-pick-list__pane-body[data-side=target]{min-height:0;max-height:none;grid-template-columns:minmax(0,1fr);overflow:visible}.aeris-pick-list__viewport{min-height:var(--aeris-pick-list-min-height, 16rem);max-height:var(--aeris-pick-list-max-height, 22rem)}.aeris-pick-list__reorder-controls,.aeris-pick-list__pane-body[data-side=target] .aeris-pick-list__reorder-controls{grid-row:1;grid-template-columns:repeat(4,auto);justify-content:start;border-right:0;border-left:0;border-bottom:1px solid var(--aeris-border)}}@media(prefers-reduced-motion:reduce){.aeris-pick-list__item{scroll-behavior:auto;transition:none}.aeris-pick-list__item[data-dragging=true]{transform:none}}@media(pointer:coarse){input:not([type=checkbox]):not([type=radio]),textarea{font-size:var(--aeris-mobile-input-font-size, 1rem)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}\n"],
|
|
1265
|
+
dependencies: [{
|
|
1266
|
+
kind: "component",
|
|
1267
|
+
type: ɵAerisIcon,
|
|
1268
|
+
selector: "span[aerisInternalIcon]",
|
|
1269
|
+
inputs: ["aerisInternalIcon", "aerisInternalIconFallback"]
|
|
1270
|
+
}, {
|
|
1271
|
+
kind: "directive",
|
|
1272
|
+
type: NgTemplateOutlet,
|
|
1273
|
+
selector: "[ngTemplateOutlet]",
|
|
1274
|
+
inputs: [
|
|
1275
|
+
"ngTemplateOutletContext",
|
|
1276
|
+
"ngTemplateOutlet",
|
|
1277
|
+
"ngTemplateOutletInjector"
|
|
1278
|
+
]
|
|
1279
|
+
}]
|
|
1280
|
+
});
|
|
1281
|
+
};
|
|
1282
|
+
i0.ɵɵngDeclareClassMetadata({
|
|
1283
|
+
minVersion: "12.0.0",
|
|
1284
|
+
version: "22.2.3",
|
|
1285
|
+
ngImport: i0,
|
|
1286
|
+
type: AerisPickList,
|
|
1287
|
+
decorators: [{
|
|
1288
|
+
type: Component,
|
|
1289
|
+
args: [{
|
|
1290
|
+
selector: "aeris-pick-list",
|
|
1291
|
+
imports: [ɵAerisIcon, NgTemplateOutlet],
|
|
1292
|
+
template: `
|
|
788
1293
|
<div
|
|
789
1294
|
class="aeris-pick-list"
|
|
790
1295
|
role="group"
|
|
@@ -793,18 +1298,91 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
793
1298
|
[attr.data-fluid]="fluid() || null"
|
|
794
1299
|
>
|
|
795
1300
|
<ng-template #reorderControls let-controlSide>
|
|
796
|
-
<div
|
|
797
|
-
|
|
798
|
-
|
|
1301
|
+
<div
|
|
1302
|
+
class="aeris-pick-list__reorder-controls"
|
|
1303
|
+
[attr.aria-label]="paneHeader(controlSide) + ' reorder controls'"
|
|
1304
|
+
>
|
|
1305
|
+
<button
|
|
1306
|
+
type="button"
|
|
1307
|
+
[disabled]="!canReorder(controlSide, 'top')"
|
|
1308
|
+
[attr.aria-label]="'Move selected ' + paneHeader(controlSide) + ' items to top'"
|
|
1309
|
+
(click)="moveSelectedToTop(controlSide, $event)"
|
|
1310
|
+
>
|
|
1311
|
+
@if (moveTopIconTemplate(); as customIcon) {
|
|
1312
|
+
<span
|
|
1313
|
+
class="aeris-custom-icon"
|
|
1314
|
+
aria-hidden="true"
|
|
1315
|
+
focusable="false"
|
|
1316
|
+
data-aeris-custom-icon
|
|
1317
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1318
|
+
/></span>
|
|
1319
|
+
} @else {
|
|
1320
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1321
|
+
<path d="m17 11-5-5-5 5" />
|
|
1322
|
+
<path d="m17 18-5-5-5 5" />
|
|
1323
|
+
</svg>
|
|
1324
|
+
}
|
|
799
1325
|
</button>
|
|
800
|
-
<button
|
|
801
|
-
|
|
1326
|
+
<button
|
|
1327
|
+
type="button"
|
|
1328
|
+
[disabled]="!canReorder(controlSide, 'up')"
|
|
1329
|
+
[attr.aria-label]="'Move selected ' + paneHeader(controlSide) + ' items up'"
|
|
1330
|
+
(click)="moveSelectedUp(controlSide, $event)"
|
|
1331
|
+
>
|
|
1332
|
+
@if (moveUpIconTemplate(); as customIcon) {
|
|
1333
|
+
<span
|
|
1334
|
+
class="aeris-custom-icon"
|
|
1335
|
+
aria-hidden="true"
|
|
1336
|
+
focusable="false"
|
|
1337
|
+
data-aeris-custom-icon
|
|
1338
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1339
|
+
/></span>
|
|
1340
|
+
} @else {
|
|
1341
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1342
|
+
<path d="m18 15-6-6-6 6" />
|
|
1343
|
+
</svg>
|
|
1344
|
+
}
|
|
802
1345
|
</button>
|
|
803
|
-
<button
|
|
804
|
-
|
|
1346
|
+
<button
|
|
1347
|
+
type="button"
|
|
1348
|
+
[disabled]="!canReorder(controlSide, 'down')"
|
|
1349
|
+
[attr.aria-label]="'Move selected ' + paneHeader(controlSide) + ' items down'"
|
|
1350
|
+
(click)="moveSelectedDown(controlSide, $event)"
|
|
1351
|
+
>
|
|
1352
|
+
@if (moveDownIconTemplate(); as customIcon) {
|
|
1353
|
+
<span
|
|
1354
|
+
class="aeris-custom-icon"
|
|
1355
|
+
aria-hidden="true"
|
|
1356
|
+
focusable="false"
|
|
1357
|
+
data-aeris-custom-icon
|
|
1358
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1359
|
+
/></span>
|
|
1360
|
+
} @else {
|
|
1361
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1362
|
+
<path d="m6 9 6 6 6-6" />
|
|
1363
|
+
</svg>
|
|
1364
|
+
}
|
|
805
1365
|
</button>
|
|
806
|
-
<button
|
|
807
|
-
|
|
1366
|
+
<button
|
|
1367
|
+
type="button"
|
|
1368
|
+
[disabled]="!canReorder(controlSide, 'bottom')"
|
|
1369
|
+
[attr.aria-label]="'Move selected ' + paneHeader(controlSide) + ' items to bottom'"
|
|
1370
|
+
(click)="moveSelectedToBottom(controlSide, $event)"
|
|
1371
|
+
>
|
|
1372
|
+
@if (moveBottomIconTemplate(); as customIcon) {
|
|
1373
|
+
<span
|
|
1374
|
+
class="aeris-custom-icon"
|
|
1375
|
+
aria-hidden="true"
|
|
1376
|
+
focusable="false"
|
|
1377
|
+
data-aeris-custom-icon
|
|
1378
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1379
|
+
/></span>
|
|
1380
|
+
} @else {
|
|
1381
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1382
|
+
<path d="m7 6 5 5 5-5" />
|
|
1383
|
+
<path d="m7 13 5 5 5-5" />
|
|
1384
|
+
</svg>
|
|
1385
|
+
}
|
|
808
1386
|
</button>
|
|
809
1387
|
</div>
|
|
810
1388
|
</ng-template>
|
|
@@ -819,7 +1397,17 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
819
1397
|
@if (showFilter()) {
|
|
820
1398
|
<label class="aeris-pick-list__filter">
|
|
821
1399
|
<span class="aeris-pick-list__visually-hidden">{{ filterAriaLabel(side) }}</span>
|
|
822
|
-
|
|
1400
|
+
@if (filterIconTemplate(); as customIcon) {
|
|
1401
|
+
<span class="aeris-pick-list__search-icon" aria-hidden="true" data-aeris-custom-icon
|
|
1402
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1403
|
+
/></span>
|
|
1404
|
+
} @else {
|
|
1405
|
+
<span
|
|
1406
|
+
aerisInternalIcon="search"
|
|
1407
|
+
class="aeris-pick-list__search-icon"
|
|
1408
|
+
aria-hidden="true"
|
|
1409
|
+
></span>
|
|
1410
|
+
}
|
|
823
1411
|
<input
|
|
824
1412
|
type="search"
|
|
825
1413
|
autocomplete="off"
|
|
@@ -833,7 +1421,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
833
1421
|
|
|
834
1422
|
<div class="aeris-pick-list__pane-body" [attr.data-side]="side">
|
|
835
1423
|
@if (side === 'source' && showReorderControls(side)) {
|
|
836
|
-
<ng-container
|
|
1424
|
+
<ng-container
|
|
1425
|
+
[ngTemplateOutlet]="reorderControls"
|
|
1426
|
+
[ngTemplateOutletContext]="{ $implicit: side }"
|
|
1427
|
+
/>
|
|
837
1428
|
}
|
|
838
1429
|
|
|
839
1430
|
<div
|
|
@@ -873,7 +1464,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
873
1464
|
item: entry.item,
|
|
874
1465
|
side,
|
|
875
1466
|
selected: isSelected(side, entry.key),
|
|
876
|
-
index: entry.index
|
|
1467
|
+
index: entry.index,
|
|
877
1468
|
}"
|
|
878
1469
|
/>
|
|
879
1470
|
} @else {
|
|
@@ -895,7 +1486,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
895
1486
|
</div>
|
|
896
1487
|
|
|
897
1488
|
@if (side === 'target' && showReorderControls(side)) {
|
|
898
|
-
<ng-container
|
|
1489
|
+
<ng-container
|
|
1490
|
+
[ngTemplateOutlet]="reorderControls"
|
|
1491
|
+
[ngTemplateOutletContext]="{ $implicit: side }"
|
|
1492
|
+
/>
|
|
899
1493
|
}
|
|
900
1494
|
</div>
|
|
901
1495
|
</section>
|
|
@@ -905,35 +1499,534 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.6", ngImpor
|
|
|
905
1499
|
|
|
906
1500
|
@if (showTransferControls()) {
|
|
907
1501
|
<div class="aeris-pick-list__transfer-controls" aria-label="Transfer controls">
|
|
908
|
-
<button
|
|
909
|
-
|
|
1502
|
+
<button
|
|
1503
|
+
type="button"
|
|
1504
|
+
[disabled]="!canTransfer('to-target', false)"
|
|
1505
|
+
[attr.aria-label]="moveToTargetAriaLabel()"
|
|
1506
|
+
(click)="moveSelectedToTarget($event)"
|
|
1507
|
+
>
|
|
1508
|
+
@if (moveToTargetIconTemplate(); as customIcon) {
|
|
1509
|
+
<span
|
|
1510
|
+
class="aeris-custom-icon"
|
|
1511
|
+
aria-hidden="true"
|
|
1512
|
+
focusable="false"
|
|
1513
|
+
data-aeris-custom-icon
|
|
1514
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1515
|
+
/></span>
|
|
1516
|
+
} @else {
|
|
1517
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1518
|
+
<path d="m9 18 6-6-6-6" />
|
|
1519
|
+
</svg>
|
|
1520
|
+
}
|
|
910
1521
|
</button>
|
|
911
|
-
<button
|
|
912
|
-
|
|
1522
|
+
<button
|
|
1523
|
+
type="button"
|
|
1524
|
+
[disabled]="!canTransfer('to-target', true)"
|
|
1525
|
+
[attr.aria-label]="moveAllToTargetAriaLabel()"
|
|
1526
|
+
(click)="moveAllToTarget($event)"
|
|
1527
|
+
>
|
|
1528
|
+
@if (moveAllToTargetIconTemplate(); as customIcon) {
|
|
1529
|
+
<span
|
|
1530
|
+
class="aeris-custom-icon"
|
|
1531
|
+
aria-hidden="true"
|
|
1532
|
+
focusable="false"
|
|
1533
|
+
data-aeris-custom-icon
|
|
1534
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1535
|
+
/></span>
|
|
1536
|
+
} @else {
|
|
1537
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1538
|
+
<path d="m6 17 5-5-5-5" />
|
|
1539
|
+
<path d="m13 17 5-5-5-5" />
|
|
1540
|
+
</svg>
|
|
1541
|
+
}
|
|
913
1542
|
</button>
|
|
914
|
-
<button
|
|
915
|
-
|
|
1543
|
+
<button
|
|
1544
|
+
type="button"
|
|
1545
|
+
[disabled]="!canTransfer('to-source', false)"
|
|
1546
|
+
[attr.aria-label]="moveToSourceAriaLabel()"
|
|
1547
|
+
(click)="moveSelectedToSource($event)"
|
|
1548
|
+
>
|
|
1549
|
+
@if (moveToSourceIconTemplate(); as customIcon) {
|
|
1550
|
+
<span
|
|
1551
|
+
class="aeris-custom-icon"
|
|
1552
|
+
aria-hidden="true"
|
|
1553
|
+
focusable="false"
|
|
1554
|
+
data-aeris-custom-icon
|
|
1555
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1556
|
+
/></span>
|
|
1557
|
+
} @else {
|
|
1558
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1559
|
+
<path d="m15 18-6-6 6-6" />
|
|
1560
|
+
</svg>
|
|
1561
|
+
}
|
|
916
1562
|
</button>
|
|
917
|
-
<button
|
|
918
|
-
|
|
1563
|
+
<button
|
|
1564
|
+
type="button"
|
|
1565
|
+
[disabled]="!canTransfer('to-source', true)"
|
|
1566
|
+
[attr.aria-label]="moveAllToSourceAriaLabel()"
|
|
1567
|
+
(click)="moveAllToSource($event)"
|
|
1568
|
+
>
|
|
1569
|
+
@if (moveAllToSourceIconTemplate(); as customIcon) {
|
|
1570
|
+
<span
|
|
1571
|
+
class="aeris-custom-icon"
|
|
1572
|
+
aria-hidden="true"
|
|
1573
|
+
focusable="false"
|
|
1574
|
+
data-aeris-custom-icon
|
|
1575
|
+
><ng-container [ngTemplateOutlet]="customIcon"
|
|
1576
|
+
/></span>
|
|
1577
|
+
} @else {
|
|
1578
|
+
<svg aria-hidden="true" focusable="false" viewBox="0 0 24 24">
|
|
1579
|
+
<path d="m11 17-5-5 5-5" />
|
|
1580
|
+
<path d="m18 17-5-5 5-5" />
|
|
1581
|
+
</svg>
|
|
1582
|
+
}
|
|
919
1583
|
</button>
|
|
920
1584
|
</div>
|
|
921
1585
|
}
|
|
922
1586
|
|
|
923
1587
|
<ng-container [ngTemplateOutlet]="pane" [ngTemplateOutletContext]="{ $implicit: 'target' }" />
|
|
924
|
-
<span class="aeris-pick-list__visually-hidden" role="status" aria-live="polite">{{
|
|
1588
|
+
<span class="aeris-pick-list__visually-hidden" role="status" aria-live="polite">{{
|
|
1589
|
+
announcement()
|
|
1590
|
+
}}</span>
|
|
925
1591
|
</div>
|
|
926
|
-
`,
|
|
927
|
-
|
|
1592
|
+
`,
|
|
1593
|
+
styles: [":host{display:block;min-width:0}.aeris-pick-list{width:max-content;max-width:100%;display:grid;grid-template-columns:minmax(15rem,1fr) auto minmax(15rem,1fr);gap:var(--aeris-pick-list-gap, calc(var(--aeris-density-gap, .5rem) + .375rem));align-items:stretch;color:var(--aeris-text, #111111)}.aeris-pick-list[data-fluid=true]{width:100%}.aeris-pick-list__pane{min-width:0;display:flex;flex-direction:column;border:1px solid var(--aeris-pick-list-border, var(--aeris-border));border-radius:var(--aeris-pick-list-radius, var(--aeris-radius-surface, var(--aeris-radius-lg, .75rem)));background:var(--aeris-pick-list-background, var(--aeris-surface, #fff));overflow:hidden}.aeris-pick-list__header{min-height:calc(var(--aeris-item-height, 2.5rem) + .5rem);display:flex;align-items:center;justify-content:space-between;gap:calc(var(--aeris-density-gap, .5rem) * 2);padding:var(--aeris-pick-list-header-padding, var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem));border-bottom:1px solid var(--aeris-border);background:var(--aeris-surface-2, #f3f3f3)}.aeris-pick-list__header strong{font-size:var(--aeris-font-size-lg, .875rem)}.aeris-pick-list__header span{min-width:1.5rem;min-height:1.5rem;display:inline-grid;place-items:center;padding-inline:.375rem;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-surface, #fff);color:var(--aeris-text-2, #454545);font-size:var(--aeris-font-size-xs, .6875rem);font-weight:var(--aeris-font-weight-bold, 700)}.aeris-pick-list__filter{position:relative;display:block;padding:var(--aeris-item-padding-y, .5rem);border-bottom:1px solid var(--aeris-border)}.aeris-pick-list__filter input{width:100%;height:var(--aeris-pick-list-filter-height, var(--aeris-control-height, 2.625rem));padding:0 var(--aeris-control-padding-x, .75rem) 0 calc(var(--aeris-control-padding-x, .75rem) + 1.375rem);border:1px solid var(--aeris-border, #efefef);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #111111);font:inherit;font-size:var(--aeris-font-size-md, .8125rem)}.aeris-pick-list__filter input::placeholder{color:var(--aeris-text-2, #454545);opacity:.75}.aeris-pick-list__filter input:focus{border-color:var(--aeris-control-focus-border, var(--aeris-focus, #111111));outline:0;box-shadow:0 0 0 var(--aeris-focus-ring-width, 3px) var(--aeris-control-focus-ring-color, var(--aeris-focus-ring-color, transparent))}.aeris-pick-list__search-icon{position:absolute;z-index:1;top:50%;left:1.375rem;width:var(--aeris-icon-size, 1rem);height:var(--aeris-icon-size, 1rem);background:var(--aeris-text-2, #454545);transform:translateY(-50%);pointer-events:none;-webkit-mask:var(--aeris-icon-search) center/100% 100% no-repeat;mask:var(--aeris-icon-search) center/100% 100% no-repeat}.aeris-pick-list__pane-body{width:100%;min-height:var(--aeris-pick-list-min-height, 16rem);max-height:var(--aeris-pick-list-max-height, 22rem);display:grid;flex:1 1 auto;grid-template-columns:auto minmax(0,1fr);align-items:stretch;overflow:hidden}.aeris-pick-list__pane-body[data-side=target]{grid-template-columns:minmax(0,1fr) auto}.aeris-pick-list__viewport{min-width:0;min-height:0;padding:var(--aeris-overlay-padding, calc(var(--aeris-density-gap, .5rem) * .75));overflow:auto}.aeris-pick-list__viewport:only-child{grid-column:1/-1}.aeris-pick-list__viewport:focus-visible{outline:0;box-shadow:inset 0 0 0 3px color-mix(in srgb,var(--aeris-focus, #111111) 22%,transparent)}.aeris-pick-list__item{position:relative;width:100%;min-height:var(--aeris-pick-list-item-min-height, var(--aeris-item-height, 2.5rem));display:flex;align-items:center;gap:calc(var(--aeris-density-gap, .5rem) + .25rem);padding:var(--aeris-pick-list-item-padding, var(--aeris-item-padding-y, .5rem) var(--aeris-item-padding-x, .75rem));border:1px solid transparent;border-radius:var(--aeris-pick-list-item-radius, var(--aeris-radius-item, var(--aeris-radius-sm, .4375rem)));background:transparent;color:var(--aeris-text, #111111);font-size:var(--aeris-item-font-size, .875rem);cursor:pointer;-webkit-user-select:none;user-select:none;transition:border-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),background-color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),box-shadow var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),color var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),opacity var(--aeris-motion-normal, .15s) var(--aeris-ease-standard, ease),transform var(--aeris-motion-normal, .15s) var(--aeris-ease-enter, ease-out)}.aeris-pick-list__item[draggable=true]{cursor:grab}.aeris-pick-list__item[draggable=true]:active{cursor:grabbing}@media(hover:hover){.aeris-pick-list__item:hover{background:var(--aeris-interactive-hover, var(--aeris-surface-2, #f3f3f3))}}.aeris-pick-list__item[data-selected=true]{border-color:color-mix(in srgb,var(--aeris-primary, #111111) 44%,var(--aeris-border, #efefef));background:var(--aeris-primary-soft, #eef2e6);color:var(--aeris-text, #111111)}.aeris-pick-list__item[data-active=true]{box-shadow:inset 0 0 0 2px color-mix(in srgb,var(--aeris-focus, #111111) 44%,transparent)}.aeris-pick-list__item[data-dragging=true]{opacity:.48;transform:scale(.985)}.aeris-pick-list__item[data-drop-target=true]:before{position:absolute;z-index:1;top:-.2rem;right:.25rem;left:.25rem;height:2px;border-radius:var(--aeris-radius-pill, 999px);background:var(--aeris-primary, #111111);content:\"\"}.aeris-pick-list__empty{min-height:10rem;display:grid;place-items:center;padding:calc(var(--aeris-item-padding-y, .5rem) * 2) calc(var(--aeris-item-padding-x, .75rem) * 1.35);color:var(--aeris-text-muted, #6d7068);font-size:var(--aeris-font-size-md, .8125rem);text-align:center}.aeris-pick-list__reorder-controls,.aeris-pick-list__transfer-controls{display:grid;align-content:center;gap:calc(var(--aeris-density-gap, .5rem) * .75)}.aeris-pick-list__reorder-controls{align-self:stretch;padding:var(--aeris-pick-list-controls-padding, var(--aeris-item-padding-y, .5rem));border-right:1px solid var(--aeris-border);background:color-mix(in srgb,var(--aeris-surface-2, #f3f3f3) 54%,transparent)}.aeris-pick-list__pane-body[data-side=target] .aeris-pick-list__reorder-controls{border-right:0;border-left:1px solid var(--aeris-border)}.aeris-pick-list__transfer-controls{align-self:stretch;justify-items:center}.aeris-pick-list__reorder-controls button,.aeris-pick-list__transfer-controls button{width:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);height:max(2rem,var(--aeris-control-height, 2.625rem) - .5rem);display:grid;place-items:center;padding:0;border:1px solid var(--aeris-border);border-radius:var(--aeris-radius-control, var(--aeris-radius-sm, .4375rem));background:var(--aeris-surface, #fff);color:var(--aeris-text, #111111);cursor:pointer}@media(hover:hover){.aeris-pick-list__reorder-controls button:not(:disabled):hover,.aeris-pick-list__transfer-controls button:not(:disabled):hover{border-color:var(--aeris-focus, #111111);background:var(--aeris-surface-2, #f3f3f3)}}.aeris-pick-list__reorder-controls button:focus-visible,.aeris-pick-list__transfer-controls button:focus-visible{outline:0;box-shadow:0 0 0 3px color-mix(in srgb,var(--aeris-focus, #111111) 24%,transparent)}.aeris-pick-list__reorder-controls button:disabled,.aeris-pick-list__transfer-controls button:disabled{opacity:.42;cursor:not-allowed}.aeris-pick-list__reorder-controls svg,.aeris-pick-list__transfer-controls svg{width:1rem;height:1rem;display:block;fill:none;stroke:currentColor;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.aeris-pick-list[data-disabled=true]{opacity:var(--aeris-disabled-opacity, .52)}.aeris-pick-list__visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}@media(max-width:52rem){.aeris-pick-list{grid-template-columns:minmax(0,1fr)}.aeris-pick-list__transfer-controls{grid-template-columns:repeat(4,auto);justify-content:center}.aeris-pick-list__transfer-controls>button>:is(svg,[data-aeris-custom-icon]){transform:rotate(90deg)}}@media(max-width:34rem){.aeris-pick-list__pane-body,.aeris-pick-list__pane-body[data-side=target]{min-height:0;max-height:none;grid-template-columns:minmax(0,1fr);overflow:visible}.aeris-pick-list__viewport{min-height:var(--aeris-pick-list-min-height, 16rem);max-height:var(--aeris-pick-list-max-height, 22rem)}.aeris-pick-list__reorder-controls,.aeris-pick-list__pane-body[data-side=target] .aeris-pick-list__reorder-controls{grid-row:1;grid-template-columns:repeat(4,auto);justify-content:start;border-right:0;border-left:0;border-bottom:1px solid var(--aeris-border)}}@media(prefers-reduced-motion:reduce){.aeris-pick-list__item{scroll-behavior:auto;transition:none}.aeris-pick-list__item[data-dragging=true]{transform:none}}@media(pointer:coarse){input:not([type=checkbox]):not([type=radio]),textarea{font-size:var(--aeris-mobile-input-font-size, 1rem)}}:host [data-aeris-custom-icon]:not([data-aeris-global-icon]){display:inline-flex;align-items:center;justify-content:center;inline-size:var(--aeris-icon-size, 1rem);block-size:var(--aeris-icon-size, 1rem);background:transparent;border:0;box-shadow:none;-webkit-mask:none;mask:none;line-height:1}:host [data-aeris-custom-icon]:before,:host [data-aeris-custom-icon]:after{display:none}\n"]
|
|
1594
|
+
}]
|
|
1595
|
+
}],
|
|
1596
|
+
propDecorators: {
|
|
1597
|
+
moveTopIconTemplate: [{
|
|
1598
|
+
type: i0.Input,
|
|
1599
|
+
args: [{
|
|
1600
|
+
isSignal: true,
|
|
1601
|
+
alias: "moveTopIconTemplate",
|
|
1602
|
+
required: false
|
|
1603
|
+
}]
|
|
1604
|
+
}],
|
|
1605
|
+
moveUpIconTemplate: [{
|
|
1606
|
+
type: i0.Input,
|
|
1607
|
+
args: [{
|
|
1608
|
+
isSignal: true,
|
|
1609
|
+
alias: "moveUpIconTemplate",
|
|
1610
|
+
required: false
|
|
1611
|
+
}]
|
|
1612
|
+
}],
|
|
1613
|
+
moveDownIconTemplate: [{
|
|
1614
|
+
type: i0.Input,
|
|
1615
|
+
args: [{
|
|
1616
|
+
isSignal: true,
|
|
1617
|
+
alias: "moveDownIconTemplate",
|
|
1618
|
+
required: false
|
|
1619
|
+
}]
|
|
1620
|
+
}],
|
|
1621
|
+
moveBottomIconTemplate: [{
|
|
1622
|
+
type: i0.Input,
|
|
1623
|
+
args: [{
|
|
1624
|
+
isSignal: true,
|
|
1625
|
+
alias: "moveBottomIconTemplate",
|
|
1626
|
+
required: false
|
|
1627
|
+
}]
|
|
1628
|
+
}],
|
|
1629
|
+
moveToTargetIconTemplate: [{
|
|
1630
|
+
type: i0.Input,
|
|
1631
|
+
args: [{
|
|
1632
|
+
isSignal: true,
|
|
1633
|
+
alias: "moveToTargetIconTemplate",
|
|
1634
|
+
required: false
|
|
1635
|
+
}]
|
|
1636
|
+
}],
|
|
1637
|
+
moveAllToTargetIconTemplate: [{
|
|
1638
|
+
type: i0.Input,
|
|
1639
|
+
args: [{
|
|
1640
|
+
isSignal: true,
|
|
1641
|
+
alias: "moveAllToTargetIconTemplate",
|
|
1642
|
+
required: false
|
|
1643
|
+
}]
|
|
1644
|
+
}],
|
|
1645
|
+
moveToSourceIconTemplate: [{
|
|
1646
|
+
type: i0.Input,
|
|
1647
|
+
args: [{
|
|
1648
|
+
isSignal: true,
|
|
1649
|
+
alias: "moveToSourceIconTemplate",
|
|
1650
|
+
required: false
|
|
1651
|
+
}]
|
|
1652
|
+
}],
|
|
1653
|
+
moveAllToSourceIconTemplate: [{
|
|
1654
|
+
type: i0.Input,
|
|
1655
|
+
args: [{
|
|
1656
|
+
isSignal: true,
|
|
1657
|
+
alias: "moveAllToSourceIconTemplate",
|
|
1658
|
+
required: false
|
|
1659
|
+
}]
|
|
1660
|
+
}],
|
|
1661
|
+
filterIconTemplate: [{
|
|
1662
|
+
type: i0.Input,
|
|
1663
|
+
args: [{
|
|
1664
|
+
isSignal: true,
|
|
1665
|
+
alias: "filterIconTemplate",
|
|
1666
|
+
required: false
|
|
1667
|
+
}]
|
|
1668
|
+
}],
|
|
1669
|
+
source: [{
|
|
1670
|
+
type: i0.Input,
|
|
1671
|
+
args: [{
|
|
1672
|
+
isSignal: true,
|
|
1673
|
+
alias: "source",
|
|
1674
|
+
required: false
|
|
1675
|
+
}]
|
|
1676
|
+
}, {
|
|
1677
|
+
type: i0.Output,
|
|
1678
|
+
args: ["sourceChange"]
|
|
1679
|
+
}],
|
|
1680
|
+
target: [{
|
|
1681
|
+
type: i0.Input,
|
|
1682
|
+
args: [{
|
|
1683
|
+
isSignal: true,
|
|
1684
|
+
alias: "target",
|
|
1685
|
+
required: false
|
|
1686
|
+
}]
|
|
1687
|
+
}, {
|
|
1688
|
+
type: i0.Output,
|
|
1689
|
+
args: ["targetChange"]
|
|
1690
|
+
}],
|
|
1691
|
+
sourceSelectedKeys: [{
|
|
1692
|
+
type: i0.Input,
|
|
1693
|
+
args: [{
|
|
1694
|
+
isSignal: true,
|
|
1695
|
+
alias: "sourceSelectedKeys",
|
|
1696
|
+
required: false
|
|
1697
|
+
}]
|
|
1698
|
+
}, {
|
|
1699
|
+
type: i0.Output,
|
|
1700
|
+
args: ["sourceSelectedKeysChange"]
|
|
1701
|
+
}],
|
|
1702
|
+
targetSelectedKeys: [{
|
|
1703
|
+
type: i0.Input,
|
|
1704
|
+
args: [{
|
|
1705
|
+
isSignal: true,
|
|
1706
|
+
alias: "targetSelectedKeys",
|
|
1707
|
+
required: false
|
|
1708
|
+
}]
|
|
1709
|
+
}, {
|
|
1710
|
+
type: i0.Output,
|
|
1711
|
+
args: ["targetSelectedKeysChange"]
|
|
1712
|
+
}],
|
|
1713
|
+
sourceFilter: [{
|
|
1714
|
+
type: i0.Input,
|
|
1715
|
+
args: [{
|
|
1716
|
+
isSignal: true,
|
|
1717
|
+
alias: "sourceFilter",
|
|
1718
|
+
required: false
|
|
1719
|
+
}]
|
|
1720
|
+
}, {
|
|
1721
|
+
type: i0.Output,
|
|
1722
|
+
args: ["sourceFilterChange"]
|
|
1723
|
+
}],
|
|
1724
|
+
targetFilter: [{
|
|
1725
|
+
type: i0.Input,
|
|
1726
|
+
args: [{
|
|
1727
|
+
isSignal: true,
|
|
1728
|
+
alias: "targetFilter",
|
|
1729
|
+
required: false
|
|
1730
|
+
}]
|
|
1731
|
+
}, {
|
|
1732
|
+
type: i0.Output,
|
|
1733
|
+
args: ["targetFilterChange"]
|
|
1734
|
+
}],
|
|
1735
|
+
optionLabel: [{
|
|
1736
|
+
type: i0.Input,
|
|
1737
|
+
args: [{
|
|
1738
|
+
isSignal: true,
|
|
1739
|
+
alias: "optionLabel",
|
|
1740
|
+
required: false
|
|
1741
|
+
}]
|
|
1742
|
+
}],
|
|
1743
|
+
dataKey: [{
|
|
1744
|
+
type: i0.Input,
|
|
1745
|
+
args: [{
|
|
1746
|
+
isSignal: true,
|
|
1747
|
+
alias: "dataKey",
|
|
1748
|
+
required: false
|
|
1749
|
+
}]
|
|
1750
|
+
}],
|
|
1751
|
+
filterBy: [{
|
|
1752
|
+
type: i0.Input,
|
|
1753
|
+
args: [{
|
|
1754
|
+
isSignal: true,
|
|
1755
|
+
alias: "filterBy",
|
|
1756
|
+
required: false
|
|
1757
|
+
}]
|
|
1758
|
+
}],
|
|
1759
|
+
filterMatchMode: [{
|
|
1760
|
+
type: i0.Input,
|
|
1761
|
+
args: [{
|
|
1762
|
+
isSignal: true,
|
|
1763
|
+
alias: "filterMatchMode",
|
|
1764
|
+
required: false
|
|
1765
|
+
}]
|
|
1766
|
+
}],
|
|
1767
|
+
sourceHeader: [{
|
|
1768
|
+
type: i0.Input,
|
|
1769
|
+
args: [{
|
|
1770
|
+
isSignal: true,
|
|
1771
|
+
alias: "sourceHeader",
|
|
1772
|
+
required: false
|
|
1773
|
+
}]
|
|
1774
|
+
}],
|
|
1775
|
+
targetHeader: [{
|
|
1776
|
+
type: i0.Input,
|
|
1777
|
+
args: [{
|
|
1778
|
+
isSignal: true,
|
|
1779
|
+
alias: "targetHeader",
|
|
1780
|
+
required: false
|
|
1781
|
+
}]
|
|
1782
|
+
}],
|
|
1783
|
+
sourceAriaLabel: [{
|
|
1784
|
+
type: i0.Input,
|
|
1785
|
+
args: [{
|
|
1786
|
+
isSignal: true,
|
|
1787
|
+
alias: "sourceAriaLabel",
|
|
1788
|
+
required: false
|
|
1789
|
+
}]
|
|
1790
|
+
}],
|
|
1791
|
+
targetAriaLabel: [{
|
|
1792
|
+
type: i0.Input,
|
|
1793
|
+
args: [{
|
|
1794
|
+
isSignal: true,
|
|
1795
|
+
alias: "targetAriaLabel",
|
|
1796
|
+
required: false
|
|
1797
|
+
}]
|
|
1798
|
+
}],
|
|
1799
|
+
ariaLabel: [{
|
|
1800
|
+
type: i0.Input,
|
|
1801
|
+
args: [{
|
|
1802
|
+
isSignal: true,
|
|
1803
|
+
alias: "ariaLabel",
|
|
1804
|
+
required: false
|
|
1805
|
+
}]
|
|
1806
|
+
}],
|
|
1807
|
+
sourceFilterPlaceholder: [{
|
|
1808
|
+
type: i0.Input,
|
|
1809
|
+
args: [{
|
|
1810
|
+
isSignal: true,
|
|
1811
|
+
alias: "sourceFilterPlaceholder",
|
|
1812
|
+
required: false
|
|
1813
|
+
}]
|
|
1814
|
+
}],
|
|
1815
|
+
targetFilterPlaceholder: [{
|
|
1816
|
+
type: i0.Input,
|
|
1817
|
+
args: [{
|
|
1818
|
+
isSignal: true,
|
|
1819
|
+
alias: "targetFilterPlaceholder",
|
|
1820
|
+
required: false
|
|
1821
|
+
}]
|
|
1822
|
+
}],
|
|
1823
|
+
sourceFilterAriaLabel: [{
|
|
1824
|
+
type: i0.Input,
|
|
1825
|
+
args: [{
|
|
1826
|
+
isSignal: true,
|
|
1827
|
+
alias: "sourceFilterAriaLabel",
|
|
1828
|
+
required: false
|
|
1829
|
+
}]
|
|
1830
|
+
}],
|
|
1831
|
+
targetFilterAriaLabel: [{
|
|
1832
|
+
type: i0.Input,
|
|
1833
|
+
args: [{
|
|
1834
|
+
isSignal: true,
|
|
1835
|
+
alias: "targetFilterAriaLabel",
|
|
1836
|
+
required: false
|
|
1837
|
+
}]
|
|
1838
|
+
}],
|
|
1839
|
+
sourceEmptyMessage: [{
|
|
1840
|
+
type: i0.Input,
|
|
1841
|
+
args: [{
|
|
1842
|
+
isSignal: true,
|
|
1843
|
+
alias: "sourceEmptyMessage",
|
|
1844
|
+
required: false
|
|
1845
|
+
}]
|
|
1846
|
+
}],
|
|
1847
|
+
targetEmptyMessage: [{
|
|
1848
|
+
type: i0.Input,
|
|
1849
|
+
args: [{
|
|
1850
|
+
isSignal: true,
|
|
1851
|
+
alias: "targetEmptyMessage",
|
|
1852
|
+
required: false
|
|
1853
|
+
}]
|
|
1854
|
+
}],
|
|
1855
|
+
sourceFilterEmptyMessage: [{
|
|
1856
|
+
type: i0.Input,
|
|
1857
|
+
args: [{
|
|
1858
|
+
isSignal: true,
|
|
1859
|
+
alias: "sourceFilterEmptyMessage",
|
|
1860
|
+
required: false
|
|
1861
|
+
}]
|
|
1862
|
+
}],
|
|
1863
|
+
targetFilterEmptyMessage: [{
|
|
1864
|
+
type: i0.Input,
|
|
1865
|
+
args: [{
|
|
1866
|
+
isSignal: true,
|
|
1867
|
+
alias: "targetFilterEmptyMessage",
|
|
1868
|
+
required: false
|
|
1869
|
+
}]
|
|
1870
|
+
}],
|
|
1871
|
+
showFilter: [{
|
|
1872
|
+
type: i0.Input,
|
|
1873
|
+
args: [{
|
|
1874
|
+
isSignal: true,
|
|
1875
|
+
alias: "showFilter",
|
|
1876
|
+
required: false
|
|
1877
|
+
}]
|
|
1878
|
+
}],
|
|
1879
|
+
showSourceControls: [{
|
|
1880
|
+
type: i0.Input,
|
|
1881
|
+
args: [{
|
|
1882
|
+
isSignal: true,
|
|
1883
|
+
alias: "showSourceControls",
|
|
1884
|
+
required: false
|
|
1885
|
+
}]
|
|
1886
|
+
}],
|
|
1887
|
+
showTargetControls: [{
|
|
1888
|
+
type: i0.Input,
|
|
1889
|
+
args: [{
|
|
1890
|
+
isSignal: true,
|
|
1891
|
+
alias: "showTargetControls",
|
|
1892
|
+
required: false
|
|
1893
|
+
}]
|
|
1894
|
+
}],
|
|
1895
|
+
showTransferControls: [{
|
|
1896
|
+
type: i0.Input,
|
|
1897
|
+
args: [{
|
|
1898
|
+
isSignal: true,
|
|
1899
|
+
alias: "showTransferControls",
|
|
1900
|
+
required: false
|
|
1901
|
+
}]
|
|
1902
|
+
}],
|
|
1903
|
+
transferOnDoubleClick: [{
|
|
1904
|
+
type: i0.Input,
|
|
1905
|
+
args: [{
|
|
1906
|
+
isSignal: true,
|
|
1907
|
+
alias: "transferOnDoubleClick",
|
|
1908
|
+
required: false
|
|
1909
|
+
}]
|
|
1910
|
+
}],
|
|
1911
|
+
dragDrop: [{
|
|
1912
|
+
type: i0.Input,
|
|
1913
|
+
args: [{
|
|
1914
|
+
isSignal: true,
|
|
1915
|
+
alias: "dragDrop",
|
|
1916
|
+
required: false
|
|
1917
|
+
}]
|
|
1918
|
+
}],
|
|
1919
|
+
disabled: [{
|
|
1920
|
+
type: i0.Input,
|
|
1921
|
+
args: [{
|
|
1922
|
+
isSignal: true,
|
|
1923
|
+
alias: "disabled",
|
|
1924
|
+
required: false
|
|
1925
|
+
}]
|
|
1926
|
+
}],
|
|
1927
|
+
fluid: [{
|
|
1928
|
+
type: i0.Input,
|
|
1929
|
+
args: [{
|
|
1930
|
+
isSignal: true,
|
|
1931
|
+
alias: "fluid",
|
|
1932
|
+
required: false
|
|
1933
|
+
}]
|
|
1934
|
+
}],
|
|
1935
|
+
targetLimit: [{
|
|
1936
|
+
type: i0.Input,
|
|
1937
|
+
args: [{
|
|
1938
|
+
isSignal: true,
|
|
1939
|
+
alias: "targetLimit",
|
|
1940
|
+
required: false
|
|
1941
|
+
}]
|
|
1942
|
+
}],
|
|
1943
|
+
moveToTargetAriaLabel: [{
|
|
1944
|
+
type: i0.Input,
|
|
1945
|
+
args: [{
|
|
1946
|
+
isSignal: true,
|
|
1947
|
+
alias: "moveToTargetAriaLabel",
|
|
1948
|
+
required: false
|
|
1949
|
+
}]
|
|
1950
|
+
}],
|
|
1951
|
+
moveAllToTargetAriaLabel: [{
|
|
1952
|
+
type: i0.Input,
|
|
1953
|
+
args: [{
|
|
1954
|
+
isSignal: true,
|
|
1955
|
+
alias: "moveAllToTargetAriaLabel",
|
|
1956
|
+
required: false
|
|
1957
|
+
}]
|
|
1958
|
+
}],
|
|
1959
|
+
moveToSourceAriaLabel: [{
|
|
1960
|
+
type: i0.Input,
|
|
1961
|
+
args: [{
|
|
1962
|
+
isSignal: true,
|
|
1963
|
+
alias: "moveToSourceAriaLabel",
|
|
1964
|
+
required: false
|
|
1965
|
+
}]
|
|
1966
|
+
}],
|
|
1967
|
+
moveAllToSourceAriaLabel: [{
|
|
1968
|
+
type: i0.Input,
|
|
1969
|
+
args: [{
|
|
1970
|
+
isSignal: true,
|
|
1971
|
+
alias: "moveAllToSourceAriaLabel",
|
|
1972
|
+
required: false
|
|
1973
|
+
}]
|
|
1974
|
+
}],
|
|
1975
|
+
selectionChanged: [{
|
|
1976
|
+
type: i0.Output,
|
|
1977
|
+
args: ["selectionChanged"]
|
|
1978
|
+
}],
|
|
1979
|
+
transferred: [{
|
|
1980
|
+
type: i0.Output,
|
|
1981
|
+
args: ["transferred"]
|
|
1982
|
+
}],
|
|
1983
|
+
movedToTarget: [{
|
|
1984
|
+
type: i0.Output,
|
|
1985
|
+
args: ["movedToTarget"]
|
|
1986
|
+
}],
|
|
1987
|
+
movedToSource: [{
|
|
1988
|
+
type: i0.Output,
|
|
1989
|
+
args: ["movedToSource"]
|
|
1990
|
+
}],
|
|
1991
|
+
reordered: [{
|
|
1992
|
+
type: i0.Output,
|
|
1993
|
+
args: ["reordered"]
|
|
1994
|
+
}],
|
|
1995
|
+
sourceReordered: [{
|
|
1996
|
+
type: i0.Output,
|
|
1997
|
+
args: ["sourceReordered"]
|
|
1998
|
+
}],
|
|
1999
|
+
targetReordered: [{
|
|
2000
|
+
type: i0.Output,
|
|
2001
|
+
args: ["targetReordered"]
|
|
2002
|
+
}],
|
|
2003
|
+
filterChanged: [{
|
|
2004
|
+
type: i0.Output,
|
|
2005
|
+
args: ["filterChanged"]
|
|
2006
|
+
}],
|
|
2007
|
+
dragStarted: [{
|
|
2008
|
+
type: i0.Output,
|
|
2009
|
+
args: ["dragStarted"]
|
|
2010
|
+
}],
|
|
2011
|
+
dragEnded: [{
|
|
2012
|
+
type: i0.Output,
|
|
2013
|
+
args: ["dragEnded"]
|
|
2014
|
+
}],
|
|
2015
|
+
itemTemplate: [{
|
|
2016
|
+
type: i0.ContentChild,
|
|
2017
|
+
args: [i0.forwardRef(() => AerisPickListItemTemplate), { isSignal: true }]
|
|
2018
|
+
}],
|
|
2019
|
+
emptyTemplate: [{
|
|
2020
|
+
type: i0.ContentChild,
|
|
2021
|
+
args: [i0.forwardRef(() => AerisPickListEmptyTemplate), { isSignal: true }]
|
|
2022
|
+
}]
|
|
2023
|
+
}
|
|
2024
|
+
});
|
|
928
2025
|
const AerisPickListModule = [
|
|
929
|
-
|
|
930
|
-
|
|
931
|
-
|
|
2026
|
+
AerisPickList,
|
|
2027
|
+
AerisPickListItemTemplate,
|
|
2028
|
+
AerisPickListEmptyTemplate
|
|
932
2029
|
];
|
|
933
|
-
|
|
934
|
-
/**
|
|
935
|
-
* Generated bundle index. Do not edit.
|
|
936
|
-
*/
|
|
937
|
-
|
|
938
2030
|
export { AerisPickList, AerisPickListEmptyTemplate, AerisPickListItemTemplate, AerisPickListModule };
|
|
939
|
-
|
|
2031
|
+
|
|
2032
|
+
//# sourceMappingURL=aeris-ui-core-pick-list.mjs.map
|