@acorex/components 22.1.8 → 22.2.0-next.1
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/comment/README.md +467 -2
- package/emoji/README.md +3 -0
- package/emojipicker/README.md +3 -0
- package/fesm2022/acorex-components-accordion.mjs +10 -10
- package/fesm2022/acorex-components-accordion.mjs.map +1 -1
- package/fesm2022/acorex-components-action-sheet.mjs +17 -16
- package/fesm2022/acorex-components-action-sheet.mjs.map +1 -1
- package/fesm2022/acorex-components-alert.mjs +9 -9
- package/fesm2022/acorex-components-alert.mjs.map +1 -1
- package/fesm2022/acorex-components-aspect-ratio.mjs +3 -3
- package/fesm2022/acorex-components-aspect-ratio.mjs.map +1 -1
- package/fesm2022/acorex-components-audio-wave.mjs +32 -11
- package/fesm2022/acorex-components-audio-wave.mjs.map +1 -1
- package/fesm2022/acorex-components-autocomplete.mjs +9 -8
- package/fesm2022/acorex-components-autocomplete.mjs.map +1 -1
- package/fesm2022/acorex-components-avatar.mjs +11 -11
- package/fesm2022/acorex-components-avatar.mjs.map +1 -1
- package/fesm2022/acorex-components-badge.mjs +7 -7
- package/fesm2022/acorex-components-badge.mjs.map +1 -1
- package/fesm2022/acorex-components-bottom-navigation.mjs +10 -10
- package/fesm2022/acorex-components-bottom-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-breadcrumbs.mjs +10 -10
- package/fesm2022/acorex-components-breadcrumbs.mjs.map +1 -1
- package/fesm2022/acorex-components-bubble.mjs +71 -0
- package/fesm2022/acorex-components-bubble.mjs.map +1 -0
- package/fesm2022/acorex-components-button-group.mjs +10 -10
- package/fesm2022/acorex-components-button-group.mjs.map +1 -1
- package/fesm2022/acorex-components-button.mjs +365 -55
- package/fesm2022/acorex-components-button.mjs.map +1 -1
- package/fesm2022/acorex-components-calendar.mjs +51 -50
- package/fesm2022/acorex-components-calendar.mjs.map +1 -1
- package/fesm2022/acorex-components-check-box.mjs +9 -9
- package/fesm2022/acorex-components-check-box.mjs.map +1 -1
- package/fesm2022/acorex-components-chips.mjs +7 -7
- package/fesm2022/acorex-components-chips.mjs.map +1 -1
- package/fesm2022/acorex-components-circular-progress.mjs +7 -7
- package/fesm2022/acorex-components-circular-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-code-editor.mjs +44 -19
- package/fesm2022/acorex-components-code-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-color-box.mjs +9 -9
- package/fesm2022/acorex-components-color-box.mjs.map +1 -1
- package/fesm2022/acorex-components-color-palette.mjs +28 -28
- package/fesm2022/acorex-components-color-palette.mjs.map +1 -1
- package/fesm2022/acorex-components-combo-box.mjs +200 -31
- package/fesm2022/acorex-components-combo-box.mjs.map +1 -1
- package/fesm2022/acorex-components-command.mjs +13 -9
- package/fesm2022/acorex-components-command.mjs.map +1 -1
- package/fesm2022/acorex-components-comment.mjs +919 -83
- package/fesm2022/acorex-components-comment.mjs.map +1 -1
- package/fesm2022/{acorex-components-conversation-acorex-components-conversation-Cl_dlCTX.mjs → acorex-components-conversation-acorex-components-conversation-pR9sXIuW.mjs} +2889 -1016
- package/fesm2022/acorex-components-conversation-acorex-components-conversation-pR9sXIuW.mjs.map +1 -0
- package/fesm2022/{acorex-components-conversation-composer-action-choice-dialog.component-COUB9zrM.mjs → acorex-components-conversation-composer-action-choice-dialog.component-F5fLD_SK.mjs} +4 -4
- package/fesm2022/{acorex-components-conversation-composer-action-choice-dialog.component-COUB9zrM.mjs.map → acorex-components-conversation-composer-action-choice-dialog.component-F5fLD_SK.mjs.map} +1 -1
- package/fesm2022/acorex-components-conversation-emoji-categories-C7Gm95V0.mjs.map +1 -1
- package/fesm2022/acorex-components-conversation-image-picker-editor-dialog.component-Bk3ixvt2.mjs +87 -0
- package/fesm2022/acorex-components-conversation-image-picker-editor-dialog.component-Bk3ixvt2.mjs.map +1 -0
- package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-_F-fv3Ti.mjs → acorex-components-conversation-picker-rename-file-dialog.component-DWIRLLMb.mjs} +5 -5
- package/fesm2022/{acorex-components-conversation-picker-rename-file-dialog.component-_F-fv3Ti.mjs.map → acorex-components-conversation-picker-rename-file-dialog.component-DWIRLLMb.mjs.map} +1 -1
- package/fesm2022/acorex-components-conversation.mjs +1 -1
- package/fesm2022/acorex-components-data-list.mjs +3 -3
- package/fesm2022/acorex-components-data-list.mjs.map +1 -1
- package/fesm2022/acorex-components-data-pager.mjs +181 -183
- package/fesm2022/acorex-components-data-pager.mjs.map +1 -1
- package/fesm2022/acorex-components-data-table.mjs +1230 -234
- package/fesm2022/acorex-components-data-table.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-box.mjs +9 -9
- package/fesm2022/acorex-components-datetime-box.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-input.mjs +7 -7
- package/fesm2022/acorex-components-datetime-input.mjs.map +1 -1
- package/fesm2022/acorex-components-datetime-picker.mjs +9 -9
- package/fesm2022/acorex-components-datetime-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-decorators.mjs +61 -119
- package/fesm2022/acorex-components-decorators.mjs.map +1 -1
- package/fesm2022/acorex-components-dialog.mjs +10 -10
- package/fesm2022/acorex-components-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-drawer.mjs +27 -16
- package/fesm2022/acorex-components-drawer.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown-button.mjs +24 -18
- package/fesm2022/acorex-components-dropdown-button.mjs.map +1 -1
- package/fesm2022/acorex-components-dropdown.mjs +19 -14
- package/fesm2022/acorex-components-dropdown.mjs.map +1 -1
- package/fesm2022/acorex-components-emoji.mjs +74 -0
- package/fesm2022/acorex-components-emoji.mjs.map +1 -0
- package/fesm2022/acorex-components-emojipicker.mjs +425 -0
- package/fesm2022/acorex-components-emojipicker.mjs.map +1 -0
- package/fesm2022/acorex-components-fab.mjs +6 -6
- package/fesm2022/acorex-components-fab.mjs.map +1 -1
- package/fesm2022/acorex-components-file-viewer.mjs +230 -127
- package/fesm2022/acorex-components-file-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-form.mjs +16 -16
- package/fesm2022/acorex-components-form.mjs.map +1 -1
- package/fesm2022/acorex-components-grid-layout-builder.mjs +10 -10
- package/fesm2022/acorex-components-grid-layout-builder.mjs.map +1 -1
- package/fesm2022/acorex-components-highlight.mjs +80 -0
- package/fesm2022/acorex-components-highlight.mjs.map +1 -0
- package/fesm2022/acorex-components-image-editor.mjs +217 -79
- package/fesm2022/acorex-components-image-editor.mjs.map +1 -1
- package/fesm2022/acorex-components-image.mjs +7 -7
- package/fesm2022/acorex-components-image.mjs.map +1 -1
- package/fesm2022/acorex-components-inline-reaction.mjs +111 -0
- package/fesm2022/acorex-components-inline-reaction.mjs.map +1 -0
- package/fesm2022/acorex-components-json-viewer.mjs +7 -7
- package/fesm2022/acorex-components-json-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-kanban.mjs +110 -7
- package/fesm2022/acorex-components-kanban.mjs.map +1 -1
- package/fesm2022/acorex-components-kbd.mjs +6 -6
- package/fesm2022/acorex-components-kbd.mjs.map +1 -1
- package/fesm2022/acorex-components-label.mjs +7 -7
- package/fesm2022/acorex-components-label.mjs.map +1 -1
- package/fesm2022/acorex-components-list.mjs +33 -15
- package/fesm2022/acorex-components-list.mjs.map +1 -1
- package/fesm2022/acorex-components-loading-dialog.mjs +10 -10
- package/fesm2022/acorex-components-loading-dialog.mjs.map +1 -1
- package/fesm2022/acorex-components-loading.mjs +18 -18
- package/fesm2022/acorex-components-loading.mjs.map +1 -1
- package/fesm2022/acorex-components-lookup.mjs +913 -153
- package/fesm2022/acorex-components-lookup.mjs.map +1 -1
- package/fesm2022/acorex-components-map.mjs +47 -22
- package/fesm2022/acorex-components-map.mjs.map +1 -1
- package/fesm2022/acorex-components-media-viewer.mjs +215 -218
- package/fesm2022/acorex-components-media-viewer.mjs.map +1 -1
- package/fesm2022/acorex-components-menu.mjs +172 -49
- package/fesm2022/acorex-components-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-message-status.mjs +71 -0
- package/fesm2022/acorex-components-message-status.mjs.map +1 -0
- package/fesm2022/acorex-components-message-time.mjs +36 -0
- package/fesm2022/acorex-components-message-time.mjs.map +1 -0
- package/fesm2022/acorex-components-message.mjs +120 -0
- package/fesm2022/acorex-components-message.mjs.map +1 -0
- package/fesm2022/acorex-components-navbar.mjs +7 -7
- package/fesm2022/acorex-components-navbar.mjs.map +1 -1
- package/fesm2022/acorex-components-notification.mjs +13 -14
- package/fesm2022/acorex-components-notification.mjs.map +1 -1
- package/fesm2022/acorex-components-number-box.mjs +17 -10
- package/fesm2022/acorex-components-number-box.mjs.map +1 -1
- package/fesm2022/acorex-components-otp.mjs +7 -7
- package/fesm2022/acorex-components-otp.mjs.map +1 -1
- package/fesm2022/acorex-components-page.mjs +10 -10
- package/fesm2022/acorex-components-page.mjs.map +1 -1
- package/fesm2022/acorex-components-paint.mjs +25 -25
- package/fesm2022/acorex-components-paint.mjs.map +1 -1
- package/fesm2022/acorex-components-password-box.mjs +10 -10
- package/fesm2022/acorex-components-password-box.mjs.map +1 -1
- package/fesm2022/acorex-components-pdf-reader.mjs +7 -7
- package/fesm2022/acorex-components-pdf-reader.mjs.map +1 -1
- package/fesm2022/acorex-components-phone-box.mjs +7 -7
- package/fesm2022/acorex-components-phone-box.mjs.map +1 -1
- package/fesm2022/acorex-components-picker.mjs +13 -13
- package/fesm2022/acorex-components-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-popover.mjs +74 -13
- package/fesm2022/acorex-components-popover.mjs.map +1 -1
- package/fesm2022/acorex-components-popup.mjs +631 -167
- package/fesm2022/acorex-components-popup.mjs.map +1 -1
- package/fesm2022/acorex-components-progress-bar.mjs +7 -7
- package/fesm2022/acorex-components-progress-bar.mjs.map +1 -1
- package/fesm2022/acorex-components-qrcode.mjs +7 -7
- package/fesm2022/acorex-components-qrcode.mjs.map +1 -1
- package/fesm2022/acorex-components-radio.mjs +7 -7
- package/fesm2022/acorex-components-radio.mjs.map +1 -1
- package/fesm2022/acorex-components-rail-navigation.mjs +13 -13
- package/fesm2022/acorex-components-rail-navigation.mjs.map +1 -1
- package/fesm2022/acorex-components-range-slider.mjs +7 -7
- package/fesm2022/acorex-components-range-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-rate-picker.mjs +7 -7
- package/fesm2022/acorex-components-rate-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-reaction.mjs +144 -0
- package/fesm2022/acorex-components-reaction.mjs.map +1 -0
- package/fesm2022/acorex-components-rest-api-generator.mjs +23 -23
- package/fesm2022/acorex-components-rest-api-generator.mjs.map +1 -1
- package/fesm2022/acorex-components-result.mjs +7 -7
- package/fesm2022/acorex-components-result.mjs.map +1 -1
- package/fesm2022/acorex-components-routing-progress.mjs +7 -7
- package/fesm2022/acorex-components-routing-progress.mjs.map +1 -1
- package/fesm2022/acorex-components-rrule.mjs +9 -9
- package/fesm2022/acorex-components-rrule.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler-picker.mjs +54 -54
- package/fesm2022/acorex-components-scheduler-picker.mjs.map +1 -1
- package/fesm2022/acorex-components-scheduler.mjs +35 -35
- package/fesm2022/acorex-components-scheduler.mjs.map +1 -1
- package/fesm2022/acorex-components-search-box.mjs +7 -7
- package/fesm2022/acorex-components-search-box.mjs.map +1 -1
- package/fesm2022/acorex-components-select-box.mjs +9 -8
- package/fesm2022/acorex-components-select-box.mjs.map +1 -1
- package/fesm2022/acorex-components-selection-list.mjs +7 -7
- package/fesm2022/acorex-components-selection-list.mjs.map +1 -1
- package/fesm2022/acorex-components-side-menu.mjs +55 -42
- package/fesm2022/acorex-components-side-menu.mjs.map +1 -1
- package/fesm2022/acorex-components-sidebar.mjs +28 -28
- package/fesm2022/acorex-components-sidebar.mjs.map +1 -1
- package/fesm2022/acorex-components-skeleton.mjs +7 -7
- package/fesm2022/acorex-components-skeleton.mjs.map +1 -1
- package/fesm2022/acorex-components-slider.mjs +7 -7
- package/fesm2022/acorex-components-slider.mjs.map +1 -1
- package/fesm2022/acorex-components-sliding-item.mjs +13 -13
- package/fesm2022/acorex-components-sliding-item.mjs.map +1 -1
- package/fesm2022/acorex-components-step-wizard.mjs +16 -18
- package/fesm2022/acorex-components-step-wizard.mjs.map +1 -1
- package/fesm2022/acorex-components-switch.mjs +10 -10
- package/fesm2022/acorex-components-switch.mjs.map +1 -1
- package/fesm2022/acorex-components-tabs.mjs +369 -72
- package/fesm2022/acorex-components-tabs.mjs.map +1 -1
- package/fesm2022/acorex-components-tag-box.mjs +9 -9
- package/fesm2022/acorex-components-tag-box.mjs.map +1 -1
- package/fesm2022/acorex-components-tag.mjs +7 -7
- package/fesm2022/acorex-components-tag.mjs.map +1 -1
- package/fesm2022/acorex-components-text-area.mjs +7 -7
- package/fesm2022/acorex-components-text-area.mjs.map +1 -1
- package/fesm2022/acorex-components-text-box.mjs +7 -7
- package/fesm2022/acorex-components-text-box.mjs.map +1 -1
- package/fesm2022/acorex-components-text-editor.mjs +1950 -0
- package/fesm2022/acorex-components-text-editor.mjs.map +1 -0
- package/fesm2022/acorex-components-time-duration.mjs +65 -25
- package/fesm2022/acorex-components-time-duration.mjs.map +1 -1
- package/fesm2022/acorex-components-time-line.mjs +10 -10
- package/fesm2022/acorex-components-time-line.mjs.map +1 -1
- package/fesm2022/acorex-components-toast.mjs +14 -14
- package/fesm2022/acorex-components-toast.mjs.map +1 -1
- package/fesm2022/acorex-components-toolbar.mjs +7 -7
- package/fesm2022/acorex-components-toolbar.mjs.map +1 -1
- package/fesm2022/acorex-components-tooltip.mjs +58 -13
- package/fesm2022/acorex-components-tooltip.mjs.map +1 -1
- package/fesm2022/acorex-components-tree-view.mjs +54 -14
- package/fesm2022/acorex-components-tree-view.mjs.map +1 -1
- package/fesm2022/acorex-components-uploader.mjs +13 -13
- package/fesm2022/acorex-components-uploader.mjs.map +1 -1
- package/fesm2022/acorex-components-video-player.mjs +7 -7
- package/fesm2022/acorex-components-video-player.mjs.map +1 -1
- package/fesm2022/acorex-components-wysiwyg.mjs +698 -295
- package/fesm2022/acorex-components-wysiwyg.mjs.map +1 -1
- package/fesm2022/acorex-components.mjs.map +1 -1
- package/highlight/README.md +13 -0
- package/inline-reaction/README.md +3 -0
- package/lookup/README.md +1 -1
- package/message/README.md +3 -0
- package/message-status/README.md +3 -0
- package/message-time/README.md +3 -0
- package/package.json +53 -29
- package/reaction/README.md +3 -0
- package/text-editor/README.md +7 -0
- package/types/acorex-components-action-sheet.d.ts +1 -1
- package/types/acorex-components-audio-wave.d.ts +8 -0
- package/types/acorex-components-bubble.d.ts +31 -0
- package/types/acorex-components-button.d.ts +74 -9
- package/types/acorex-components-calendar.d.ts +13 -4
- package/types/acorex-components-check-box.d.ts +1 -1
- package/types/acorex-components-code-editor.d.ts +4 -1
- package/types/acorex-components-color-box.d.ts +1 -1
- package/types/acorex-components-color-palette.d.ts +2 -2
- package/types/acorex-components-combo-box.d.ts +13 -2
- package/types/acorex-components-command.d.ts +3 -1
- package/types/acorex-components-comment.d.ts +352 -33
- package/types/acorex-components-conversation.d.ts +418 -119
- package/types/acorex-components-data-pager.d.ts +27 -9
- package/types/acorex-components-data-table.d.ts +338 -31
- package/types/acorex-components-datetime-box.d.ts +1 -1
- package/types/acorex-components-datetime-picker.d.ts +1 -1
- package/types/acorex-components-decorators.d.ts +15 -33
- package/types/acorex-components-dialog.d.ts +1 -1
- package/types/acorex-components-drawer.d.ts +2 -2
- package/types/acorex-components-dropdown-button.d.ts +9 -3
- package/types/acorex-components-dropdown.d.ts +6 -1
- package/types/acorex-components-emoji.d.ts +42 -0
- package/types/acorex-components-emojipicker.d.ts +146 -0
- package/types/acorex-components-file-viewer.d.ts +16 -2
- package/types/acorex-components-highlight.d.ts +31 -0
- package/types/acorex-components-image-editor.d.ts +19 -2
- package/types/acorex-components-inline-reaction.d.ts +52 -0
- package/types/acorex-components-list.d.ts +12 -0
- package/types/acorex-components-loading-dialog.d.ts +1 -1
- package/types/acorex-components-loading.d.ts +1 -1
- package/types/acorex-components-lookup.d.ts +244 -80
- package/types/acorex-components-map.d.ts +14 -2
- package/types/acorex-components-media-viewer.d.ts +4 -3
- package/types/acorex-components-menu.d.ts +22 -5
- package/types/acorex-components-message-status.d.ts +23 -0
- package/types/acorex-components-message-time.d.ts +19 -0
- package/types/acorex-components-message.d.ts +59 -0
- package/types/acorex-components-notification.d.ts +1 -1
- package/types/acorex-components-number-box.d.ts +2 -1
- package/types/acorex-components-otp.d.ts +1 -1
- package/types/acorex-components-page.d.ts +2 -2
- package/types/acorex-components-paint.d.ts +2 -2
- package/types/acorex-components-password-box.d.ts +1 -1
- package/types/acorex-components-phone-box.d.ts +1 -1
- package/types/acorex-components-popover.d.ts +17 -1
- package/types/acorex-components-popup.d.ts +183 -50
- package/types/acorex-components-rail-navigation.d.ts +1 -1
- package/types/acorex-components-range-slider.d.ts +1 -1
- package/types/acorex-components-reaction.d.ts +85 -0
- package/types/acorex-components-rest-api-generator.d.ts +1 -1
- package/types/acorex-components-rrule.d.ts +1 -1
- package/types/acorex-components-scheduler-picker.d.ts +1 -1
- package/types/acorex-components-scheduler.d.ts +1 -1
- package/types/acorex-components-search-box.d.ts +1 -1
- package/types/acorex-components-side-menu.d.ts +6 -8
- package/types/acorex-components-slider.d.ts +1 -1
- package/types/acorex-components-step-wizard.d.ts +4 -4
- package/types/acorex-components-switch.d.ts +1 -1
- package/types/acorex-components-tabs.d.ts +106 -19
- package/types/acorex-components-tag-box.d.ts +2 -2
- package/types/acorex-components-text-area.d.ts +1 -1
- package/types/acorex-components-text-box.d.ts +1 -1
- package/types/acorex-components-text-editor.d.ts +1256 -0
- package/types/acorex-components-time-duration.d.ts +18 -4
- package/types/acorex-components-toast.d.ts +1 -1
- package/types/acorex-components-tooltip.d.ts +11 -1
- package/types/acorex-components-tree-view.d.ts +23 -1
- package/types/acorex-components-wysiwyg.d.ts +431 -77
- package/cron-job/README.md +0 -3
- package/editor/README.md +0 -3
- package/fesm2022/acorex-components-conversation-acorex-components-conversation-Cl_dlCTX.mjs.map +0 -1
- package/fesm2022/acorex-components-conversation-image-picker-editor-dialog.component-AO1evM19.mjs +0 -85
- package/fesm2022/acorex-components-conversation-image-picker-editor-dialog.component-AO1evM19.mjs.map +0 -1
- package/fesm2022/acorex-components-cron-job.mjs +0 -1309
- package/fesm2022/acorex-components-cron-job.mjs.map +0 -1
- package/fesm2022/acorex-components-editor.mjs +0 -198
- package/fesm2022/acorex-components-editor.mjs.map +0 -1
- package/fesm2022/acorex-components-flow-chart.mjs +0 -735
- package/fesm2022/acorex-components-flow-chart.mjs.map +0 -1
- package/fesm2022/acorex-components-query-builder.mjs +0 -267
- package/fesm2022/acorex-components-query-builder.mjs.map +0 -1
- package/flow-chart/README.md +0 -3
- package/query-builder/README.md +0 -3
- package/types/acorex-components-cron-job.d.ts +0 -330
- package/types/acorex-components-editor.d.ts +0 -79
- package/types/acorex-components-flow-chart.d.ts +0 -187
- package/types/acorex-components-query-builder.d.ts +0 -52
|
@@ -1,25 +1,102 @@
|
|
|
1
|
-
import { AXDataSource, AXListDataSource, NXValueComponent, AXComponent, AXClearableComponent, AXClosableComponent, AXValuableComponent } from '@acorex/cdk/common';
|
|
2
|
-
import { AXButtonComponent } from '@acorex/components/button';
|
|
1
|
+
import { AXDataSource, retryFrames, scrollNearestIntoView, AXListDataSource, NXValueComponent, AXComponent, AXClearableComponent, AXClosableComponent, AXValuableComponent } from '@acorex/cdk/common';
|
|
2
|
+
import { AXButtonComponent, AXDecoratorCloseButtonComponent } from '@acorex/components/button';
|
|
3
|
+
import { AXCheckBoxComponent } from '@acorex/components/check-box';
|
|
3
4
|
import { AXChipsComponent } from '@acorex/components/chips';
|
|
4
5
|
import * as i1$1 from '@acorex/components/decorators';
|
|
5
6
|
import { AXDecoratorModule } from '@acorex/components/decorators';
|
|
6
7
|
import { AXPopoverComponent } from '@acorex/components/popover';
|
|
7
8
|
import { AXSearchBoxComponent } from '@acorex/components/search-box';
|
|
9
|
+
import { AXTooltipDirective } from '@acorex/components/tooltip';
|
|
8
10
|
import { AXPlatform } from '@acorex/core/platform';
|
|
9
11
|
import { AXTranslatorPipe, AXTranslationService, toTranslatedSignal } from '@acorex/core/translation';
|
|
10
|
-
import { NgTemplateOutlet, AsyncPipe, DOCUMENT } from '@angular/common';
|
|
12
|
+
import { NgTemplateOutlet, AsyncPipe, DOCUMENT, isPlatformBrowser } from '@angular/common';
|
|
11
13
|
import * as i0 from '@angular/core';
|
|
12
|
-
import { input, output, signal, computed, viewChild, viewChildren, inject, NgZone, effect, untracked, Directive, ViewEncapsulation, ChangeDetectionStrategy, Component, ElementRef, DestroyRef, model, booleanAttribute, linkedSignal,
|
|
14
|
+
import { InjectionToken, input, output, signal, computed, viewChild, viewChildren, inject, NgZone, effect, untracked, Directive, ViewEncapsulation, ChangeDetectionStrategy, Component, ElementRef, afterRenderEffect, DestroyRef, model, booleanAttribute, contentChild, linkedSignal, PLATFORM_ID, NgModule } from '@angular/core';
|
|
13
15
|
import { takeUntilDestroyed } from '@angular/core/rxjs-interop';
|
|
14
16
|
import * as i2 from '@acorex/cdk/list-navigation';
|
|
15
17
|
import { AXListNavigationDirective, AXListNavigationItemDirective, AXListNavigationModule } from '@acorex/cdk/list-navigation';
|
|
16
|
-
import { AXHighlightTextComponent } from '@acorex/
|
|
18
|
+
import { AXHighlightTextComponent } from '@acorex/components/highlight';
|
|
17
19
|
import * as i1 from '@angular/cdk/scrolling';
|
|
18
20
|
import { CdkVirtualScrollViewport, ScrollingModule } from '@angular/cdk/scrolling';
|
|
19
21
|
import { AXTreeViewComponent } from '@acorex/components/tree-view';
|
|
20
22
|
import { AXDataTableComponent, AXDataTableTextColumnComponent } from '@acorex/components/data-table';
|
|
21
23
|
import { fromEvent, auditTime } from 'rxjs';
|
|
22
|
-
|
|
24
|
+
|
|
25
|
+
/** Whether a tree node may have descendants (embedded children or lazy metadata). */
|
|
26
|
+
function lookupTreeNodeMayHaveChildren(node) {
|
|
27
|
+
const raw = node['children'];
|
|
28
|
+
if (Array.isArray(raw) && raw.length > 0) {
|
|
29
|
+
return true;
|
|
30
|
+
}
|
|
31
|
+
const count = node['childrenCount'];
|
|
32
|
+
if (typeof count === 'number' && count > 0) {
|
|
33
|
+
return true;
|
|
34
|
+
}
|
|
35
|
+
return node['hasChild'] === true || node['hasChildren'] === true;
|
|
36
|
+
}
|
|
37
|
+
async function mapWithConcurrency(items, concurrency, fn, isCancelled) {
|
|
38
|
+
if (!items.length) {
|
|
39
|
+
return [];
|
|
40
|
+
}
|
|
41
|
+
const results = new Array(items.length);
|
|
42
|
+
let nextIndex = 0;
|
|
43
|
+
const worker = async () => {
|
|
44
|
+
while (nextIndex < items.length) {
|
|
45
|
+
if (isCancelled?.()) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const index = nextIndex++;
|
|
49
|
+
if (index >= items.length) {
|
|
50
|
+
break;
|
|
51
|
+
}
|
|
52
|
+
results[index] = await fn(items[index]);
|
|
53
|
+
}
|
|
54
|
+
};
|
|
55
|
+
const workers = Math.min(concurrency, items.length);
|
|
56
|
+
await Promise.all(Array.from({ length: workers }, () => worker()));
|
|
57
|
+
return results;
|
|
58
|
+
}
|
|
59
|
+
/**
|
|
60
|
+
* Loads a lazy tree into a nested in-memory snapshot using bounded-concurrency BFS.
|
|
61
|
+
* Returns new node objects and never mutates the input nodes.
|
|
62
|
+
*/
|
|
63
|
+
async function hydrateLookupTree(roots, loadChildren, options) {
|
|
64
|
+
const { valueField, maxConcurrent = 6, maxNodes = 5000, isCancelled } = options;
|
|
65
|
+
const visited = new Set();
|
|
66
|
+
let nodeCount = 0;
|
|
67
|
+
const hydrateLevel = async (nodes) => {
|
|
68
|
+
if (!nodes.length || isCancelled?.()) {
|
|
69
|
+
return nodes.map((node) => ({ ...node }));
|
|
70
|
+
}
|
|
71
|
+
const hydrateNode = async (node) => {
|
|
72
|
+
if (isCancelled?.()) {
|
|
73
|
+
return { ...node };
|
|
74
|
+
}
|
|
75
|
+
const raw = node['children'];
|
|
76
|
+
if (Array.isArray(raw) && raw.length > 0) {
|
|
77
|
+
const children = await hydrateLevel(raw);
|
|
78
|
+
return { ...node, children };
|
|
79
|
+
}
|
|
80
|
+
const id = String(node[valueField] ?? '');
|
|
81
|
+
if (!id || visited.has(id) || !lookupTreeNodeMayHaveChildren(node)) {
|
|
82
|
+
return { ...node };
|
|
83
|
+
}
|
|
84
|
+
visited.add(id);
|
|
85
|
+
nodeCount++;
|
|
86
|
+
if (nodeCount > maxNodes) {
|
|
87
|
+
return { ...node };
|
|
88
|
+
}
|
|
89
|
+
const loaded = await loadChildren(id);
|
|
90
|
+
if (isCancelled?.() || !loaded.length) {
|
|
91
|
+
return { ...node };
|
|
92
|
+
}
|
|
93
|
+
const children = await hydrateLevel(loaded);
|
|
94
|
+
return children.length > 0 ? { ...node, children } : { ...node };
|
|
95
|
+
};
|
|
96
|
+
return mapWithConcurrency(nodes, maxConcurrent, hydrateNode, isCancelled);
|
|
97
|
+
};
|
|
98
|
+
return hydrateLevel(roots);
|
|
99
|
+
}
|
|
23
100
|
|
|
24
101
|
/** Whether an item label matches a search query (raw or translated). */
|
|
25
102
|
function matchesLookupText(text, query, translateText) {
|
|
@@ -31,8 +108,9 @@ function matchesLookupText(text, query, translateText) {
|
|
|
31
108
|
if (raw.includes(needle)) {
|
|
32
109
|
return true;
|
|
33
110
|
}
|
|
34
|
-
|
|
35
|
-
|
|
111
|
+
const value = String(text ?? '');
|
|
112
|
+
if (translateText && value.startsWith('@')) {
|
|
113
|
+
return translateText(value).toLowerCase().includes(needle);
|
|
36
114
|
}
|
|
37
115
|
return false;
|
|
38
116
|
}
|
|
@@ -91,7 +169,7 @@ function createLookupTreeTableDataSource(source, options) {
|
|
|
91
169
|
pageSize: 8,
|
|
92
170
|
key: options.valueField,
|
|
93
171
|
load: (query) => loadTreeTableRows(source, options, query, isCallback),
|
|
94
|
-
byKey: (key) => findTreeTableItem(source, options.valueField, key),
|
|
172
|
+
byKey: (key) => findTreeTableItem(source, options.valueField, key) ?? {},
|
|
95
173
|
});
|
|
96
174
|
}
|
|
97
175
|
async function loadTreeTableRows(source, options, query, isCallback) {
|
|
@@ -101,8 +179,13 @@ async function loadTreeTableRows(source, options, query, isCallback) {
|
|
|
101
179
|
const children = await loadChildren(source, options, parentFilter.value, isCallback);
|
|
102
180
|
return { items: children, total: children.length };
|
|
103
181
|
}
|
|
104
|
-
const
|
|
105
|
-
|
|
182
|
+
const rootNodes = textFilter && options.loadSearchRoots
|
|
183
|
+
? await options.loadSearchRoots()
|
|
184
|
+
: await loadRoots(source, isCallback);
|
|
185
|
+
const roots = mapTreeNodes(rootNodes, options);
|
|
186
|
+
const items = textFilter
|
|
187
|
+
? prepareFilteredTreeTableRows(filterTreeNodes(roots, options.searchFields?.length ? options.searchFields : options.textField, String(textFilter.value ?? '')))
|
|
188
|
+
: roots;
|
|
106
189
|
return { items, total: items.length };
|
|
107
190
|
}
|
|
108
191
|
async function loadRoots(source, isCallback) {
|
|
@@ -126,11 +209,7 @@ function mapTreeNodes(nodes, options) {
|
|
|
126
209
|
function mapTreeNode(node, options) {
|
|
127
210
|
const rawChildren = node['children'];
|
|
128
211
|
const children = Array.isArray(rawChildren) ? mapTreeNodes(rawChildren, options) : undefined;
|
|
129
|
-
const
|
|
130
|
-
const hasChildren = (children?.length ?? 0) > 0 ||
|
|
131
|
-
(typeof childrenCount === 'number' && childrenCount > 0) ||
|
|
132
|
-
node['hasChild'] === true ||
|
|
133
|
-
node['hasChildren'] === true;
|
|
212
|
+
const hasChildren = lookupTreeNodeMayHaveChildren(node) || (children?.length ?? 0) > 0;
|
|
134
213
|
return {
|
|
135
214
|
...node,
|
|
136
215
|
[options.hasChildrenField]: hasChildren,
|
|
@@ -143,24 +222,48 @@ function mapTreeNode(node, options) {
|
|
|
143
222
|
* all children. Every kept ancestor is a new object with `expanded: true` so
|
|
144
223
|
* nested hits are visible without mutating the original tree.
|
|
145
224
|
*/
|
|
225
|
+
/** Reads a possibly dotted field path off a node. */
|
|
226
|
+
function readNodeField(node, field) {
|
|
227
|
+
if (!field.includes('.')) {
|
|
228
|
+
return node[field];
|
|
229
|
+
}
|
|
230
|
+
return field.split('.').reduce((current, segment) => {
|
|
231
|
+
if (current == null || typeof current !== 'object') {
|
|
232
|
+
return undefined;
|
|
233
|
+
}
|
|
234
|
+
return current[segment];
|
|
235
|
+
}, node);
|
|
236
|
+
}
|
|
237
|
+
/** Whether any of `fields` on the node matches the query. */
|
|
238
|
+
function matchesLookupNode(node, fields, needle, translateText) {
|
|
239
|
+
return fields.some((field) => {
|
|
240
|
+
const value = readNodeField(node, field);
|
|
241
|
+
if (value == null) {
|
|
242
|
+
return false;
|
|
243
|
+
}
|
|
244
|
+
return matchesLookupText(String(value), needle, translateText);
|
|
245
|
+
});
|
|
246
|
+
}
|
|
146
247
|
function filterTreeNodes(nodes, textField, query, translateText) {
|
|
147
248
|
const needle = query.trim().toLowerCase();
|
|
148
249
|
if (!needle) {
|
|
149
250
|
return nodes;
|
|
150
251
|
}
|
|
252
|
+
const fields = (Array.isArray(textField) ? textField : [textField]).filter((field) => !!field);
|
|
151
253
|
const result = [];
|
|
152
254
|
for (const node of nodes) {
|
|
153
255
|
const rawChildren = node['children'];
|
|
154
256
|
const nested = Array.isArray(rawChildren) ? rawChildren : undefined;
|
|
155
|
-
const
|
|
156
|
-
const selfMatch = matchesLookupText(String(node[textField] ?? ''), needle, translateText);
|
|
257
|
+
const selfMatch = matchesLookupNode(node, fields, needle, translateText);
|
|
157
258
|
if (selfMatch) {
|
|
158
259
|
result.push({
|
|
159
260
|
...node,
|
|
160
261
|
...(nested && nested.length > 0 ? { children: cloneTreeNodes(nested), expanded: true } : {}),
|
|
161
262
|
});
|
|
263
|
+
continue;
|
|
162
264
|
}
|
|
163
|
-
|
|
265
|
+
const children = nested ? filterTreeNodes(nested, fields, needle, translateText) : undefined;
|
|
266
|
+
if (children && children.length > 0) {
|
|
164
267
|
result.push({
|
|
165
268
|
...node,
|
|
166
269
|
children,
|
|
@@ -170,6 +273,30 @@ function filterTreeNodes(nodes, textField, query, translateText) {
|
|
|
170
273
|
}
|
|
171
274
|
return result;
|
|
172
275
|
}
|
|
276
|
+
/**
|
|
277
|
+
* Maps `filterTreeNodes` output to data-table row metadata so matching branches
|
|
278
|
+
* are expanded and nested rows are visible for search highlighting.
|
|
279
|
+
*/
|
|
280
|
+
function prepareFilteredTreeTableRows(nodes) {
|
|
281
|
+
return nodes.map((node) => prepareFilteredTreeTableNode(node, 0));
|
|
282
|
+
}
|
|
283
|
+
function prepareFilteredTreeTableNode(node, level) {
|
|
284
|
+
const rawChildren = node['children'];
|
|
285
|
+
const nested = Array.isArray(rawChildren) ? rawChildren : undefined;
|
|
286
|
+
const children = nested?.map((child) => prepareFilteredTreeTableNode(child, level + 1));
|
|
287
|
+
const hasChildren = (children?.length ?? 0) > 0;
|
|
288
|
+
const priorMeta = node['__meta__'];
|
|
289
|
+
const shouldExpand = hasChildren || node['expanded'] === true;
|
|
290
|
+
return {
|
|
291
|
+
...node,
|
|
292
|
+
...(children ? { children } : {}),
|
|
293
|
+
__meta__: {
|
|
294
|
+
...(typeof priorMeta === 'object' && priorMeta != null ? priorMeta : {}),
|
|
295
|
+
level,
|
|
296
|
+
expanded: shouldExpand,
|
|
297
|
+
},
|
|
298
|
+
};
|
|
299
|
+
}
|
|
173
300
|
function cloneTreeNodes(nodes) {
|
|
174
301
|
return nodes.map((node) => {
|
|
175
302
|
const raw = node['children'];
|
|
@@ -215,6 +342,144 @@ function findTreeNode(nodes, valueField, key) {
|
|
|
215
342
|
return null;
|
|
216
343
|
}
|
|
217
344
|
|
|
345
|
+
/**
|
|
346
|
+
* Multi-select value when the user chooses “select all” instead of an explicit key list.
|
|
347
|
+
*/
|
|
348
|
+
function isLookupSelectAllValue(value) {
|
|
349
|
+
return (value != null &&
|
|
350
|
+
typeof value === 'object' &&
|
|
351
|
+
!Array.isArray(value) &&
|
|
352
|
+
value.selectAll === true);
|
|
353
|
+
}
|
|
354
|
+
/** Excluded value keys when `selectAll` is active (empty when not in select-all mode). */
|
|
355
|
+
function lookupExcludedValues(value) {
|
|
356
|
+
if (!isLookupSelectAllValue(value)) {
|
|
357
|
+
return [];
|
|
358
|
+
}
|
|
359
|
+
const excluded = value.excluded;
|
|
360
|
+
return Array.isArray(excluded) ? excluded : [];
|
|
361
|
+
}
|
|
362
|
+
/** Whether the bound multi value is in select-all mode. */
|
|
363
|
+
function lookupSelectAllActive(value) {
|
|
364
|
+
return isLookupSelectAllValue(value);
|
|
365
|
+
}
|
|
366
|
+
/** Whether the bound value represents no selection (matches clear-button semantics). */
|
|
367
|
+
function lookupBoundValueIsEmpty(value) {
|
|
368
|
+
if (value == null || value === '') {
|
|
369
|
+
return true;
|
|
370
|
+
}
|
|
371
|
+
if (Array.isArray(value)) {
|
|
372
|
+
return value.length === 0;
|
|
373
|
+
}
|
|
374
|
+
return false;
|
|
375
|
+
}
|
|
376
|
+
/** Normalized explicit key list for array-mode multi values. */
|
|
377
|
+
function lookupArrayValues(value) {
|
|
378
|
+
if (value == null) {
|
|
379
|
+
return [];
|
|
380
|
+
}
|
|
381
|
+
if (isLookupSelectAllValue(value)) {
|
|
382
|
+
return [];
|
|
383
|
+
}
|
|
384
|
+
const keys = Array.isArray(value) ? value : [value];
|
|
385
|
+
return keys.filter((key) => key != null && key !== '');
|
|
386
|
+
}
|
|
387
|
+
function createLookupSelectAllValue(excluded) {
|
|
388
|
+
if (!excluded?.length) {
|
|
389
|
+
return { selectAll: true };
|
|
390
|
+
}
|
|
391
|
+
return { selectAll: true, excluded: [...excluded] };
|
|
392
|
+
}
|
|
393
|
+
function excludedSetsEqual(a, b) {
|
|
394
|
+
if (a.length !== b.length) {
|
|
395
|
+
return false;
|
|
396
|
+
}
|
|
397
|
+
const setB = new Set(b.map((v) => String(v)));
|
|
398
|
+
return a.every((v) => setB.has(String(v)));
|
|
399
|
+
}
|
|
400
|
+
/** Deep equality for lookup multi values (arrays and select-all objects). */
|
|
401
|
+
function lookupMultiValuesEqual(a, b) {
|
|
402
|
+
if (a === b) {
|
|
403
|
+
return true;
|
|
404
|
+
}
|
|
405
|
+
if (a == null || b == null) {
|
|
406
|
+
return a == b;
|
|
407
|
+
}
|
|
408
|
+
if (isLookupSelectAllValue(a) && isLookupSelectAllValue(b)) {
|
|
409
|
+
return excludedSetsEqual(lookupExcludedValues(a), lookupExcludedValues(b));
|
|
410
|
+
}
|
|
411
|
+
if (Array.isArray(a) && Array.isArray(b)) {
|
|
412
|
+
return a.length === b.length && a.every((item, index) => item == b[index]);
|
|
413
|
+
}
|
|
414
|
+
return false;
|
|
415
|
+
}
|
|
416
|
+
|
|
417
|
+
const AXLookupDefaultConfig = {
|
|
418
|
+
allowSelectAll: true,
|
|
419
|
+
};
|
|
420
|
+
const AX_LOOKUP_CONFIG = new InjectionToken('AX_LOOKUP_CONFIG', {
|
|
421
|
+
providedIn: 'root',
|
|
422
|
+
factory: () => AXLookupDefaultConfig,
|
|
423
|
+
});
|
|
424
|
+
function lookupConfig(config = {}) {
|
|
425
|
+
return {
|
|
426
|
+
...AXLookupDefaultConfig,
|
|
427
|
+
...config,
|
|
428
|
+
};
|
|
429
|
+
}
|
|
430
|
+
|
|
431
|
+
/**
|
|
432
|
+
* Scrolls a CDK virtual viewport so the row at `index` is visible using nearest-edge behavior.
|
|
433
|
+
* Uses offset math because the row may not be rendered in the DOM yet.
|
|
434
|
+
*/
|
|
435
|
+
function scrollNearestByOffset(viewport, index, itemHeight, totalCount) {
|
|
436
|
+
const viewportSize = viewport.getViewportSize();
|
|
437
|
+
const maxOffset = Math.max(0, totalCount * itemHeight - viewportSize);
|
|
438
|
+
const itemTop = index * itemHeight;
|
|
439
|
+
const itemBottom = itemTop + itemHeight;
|
|
440
|
+
const currentOffset = viewport.measureScrollOffset();
|
|
441
|
+
if (itemTop < currentOffset) {
|
|
442
|
+
viewport.scrollToOffset(itemTop);
|
|
443
|
+
}
|
|
444
|
+
else if (itemBottom > currentOffset + viewportSize) {
|
|
445
|
+
viewport.scrollToOffset(Math.min(maxOffset, itemBottom - viewportSize));
|
|
446
|
+
}
|
|
447
|
+
}
|
|
448
|
+
/**
|
|
449
|
+
* Scrolls a data-table body so the selected row is visible, accounting for a sticky header.
|
|
450
|
+
*/
|
|
451
|
+
function scrollTableToSelectedRow(host, attempts = 5) {
|
|
452
|
+
retryFrames(() => {
|
|
453
|
+
const wrapper = host.querySelector('.ax-data-table-wrapper');
|
|
454
|
+
const row = wrapper?.querySelector('tr.ax-state-selected');
|
|
455
|
+
if (!wrapper || !row) {
|
|
456
|
+
return false;
|
|
457
|
+
}
|
|
458
|
+
const thead = wrapper.querySelector('thead');
|
|
459
|
+
const topInset = thead?.offsetHeight ?? 0;
|
|
460
|
+
scrollNearestIntoView(wrapper, row, topInset);
|
|
461
|
+
return true;
|
|
462
|
+
}, attempts);
|
|
463
|
+
}
|
|
464
|
+
/**
|
|
465
|
+
* Scrolls a lookup tree container so the node with `selectedId` is visible.
|
|
466
|
+
* Nodes inside collapsed branches are not in the DOM and are skipped.
|
|
467
|
+
*/
|
|
468
|
+
function scrollTreeToSelectedNode(host, selectedId, attempts = 5) {
|
|
469
|
+
if (!selectedId) {
|
|
470
|
+
return;
|
|
471
|
+
}
|
|
472
|
+
retryFrames(() => {
|
|
473
|
+
const container = host.querySelector('.ax-lookup-tree');
|
|
474
|
+
const node = container?.querySelector(`[data-tree-node-id="${CSS.escape(selectedId)}"]`);
|
|
475
|
+
if (!container || !node) {
|
|
476
|
+
return false;
|
|
477
|
+
}
|
|
478
|
+
scrollNearestIntoView(container, node);
|
|
479
|
+
return true;
|
|
480
|
+
}, attempts);
|
|
481
|
+
}
|
|
482
|
+
|
|
218
483
|
/**
|
|
219
484
|
* Shared `AXDataSource` + CDK virtual scroll plumbing for the list-based lookup views
|
|
220
485
|
* (`ax-lookup-drop-down-list`, `ax-lookup-multi-select`).
|
|
@@ -229,6 +494,8 @@ class AXLookupListViewBase {
|
|
|
229
494
|
return this.totalCount();
|
|
230
495
|
}
|
|
231
496
|
#ngZone;
|
|
497
|
+
/** When true, scroll the selected row into view once after open or after a refreshed result set. */
|
|
498
|
+
#pendingSelectedScroll;
|
|
232
499
|
/**
|
|
233
500
|
* Before the first page loads, `totalCount` is 0 but `cachedItems` is pre-sized to `pageSize`.
|
|
234
501
|
* After a completed load with no rows, `cachedItems` is an empty array.
|
|
@@ -265,6 +532,16 @@ class AXLookupListViewBase {
|
|
|
265
532
|
*/
|
|
266
533
|
this.selectedValues = input([], /* @ts-ignore */
|
|
267
534
|
...(ngDevMode ? [{ debugName: "selectedValues" }] : /* istanbul ignore next */ []));
|
|
535
|
+
/**
|
|
536
|
+
* When `true`, every non-disabled row is selected except keys listed in `excludedValues`.
|
|
537
|
+
*/
|
|
538
|
+
this.selectAllActive = input(false, /* @ts-ignore */
|
|
539
|
+
...(ngDevMode ? [{ debugName: "selectAllActive" }] : /* istanbul ignore next */ []));
|
|
540
|
+
/**
|
|
541
|
+
* Value keys excluded from selection while `selectAllActive` is true.
|
|
542
|
+
*/
|
|
543
|
+
this.excludedValues = input([], /* @ts-ignore */
|
|
544
|
+
...(ngDevMode ? [{ debugName: "excludedValues" }] : /* istanbul ignore next */ []));
|
|
268
545
|
/**
|
|
269
546
|
* The fixed row height in pixels used by the virtual scroll viewport.
|
|
270
547
|
*/
|
|
@@ -333,6 +610,8 @@ class AXLookupListViewBase {
|
|
|
333
610
|
this.navItems = viewChildren(AXListNavigationItemDirective, /* @ts-ignore */
|
|
334
611
|
...(ngDevMode ? [{ debugName: "navItems" }] : /* istanbul ignore next */ []));
|
|
335
612
|
this.#ngZone = inject(NgZone);
|
|
613
|
+
/** When true, scroll the selected row into view once after open or after a refreshed result set. */
|
|
614
|
+
this.#pendingSelectedScroll = true;
|
|
336
615
|
this.trackByIndex = (index) => index;
|
|
337
616
|
// CDK measures the viewport size only once, when it initializes. Inside the popover the
|
|
338
617
|
// panel is still animating/positioning at that moment (and the height also changes when
|
|
@@ -357,10 +636,14 @@ class AXLookupListViewBase {
|
|
|
357
636
|
this.totalCount.set(source.totalCount);
|
|
358
637
|
this.#syncLoadingState(source, source.isLoading);
|
|
359
638
|
this.listDataSource.set(list);
|
|
639
|
+
this.#pendingSelectedScroll = true;
|
|
360
640
|
});
|
|
361
641
|
const loadingSub = source.onLoadingChanged.subscribe((value) => this.#syncLoadingState(source, value));
|
|
362
642
|
const changedSub = source.onChanged.subscribe((e) => {
|
|
363
643
|
this.totalCount.set(e.totalCount);
|
|
644
|
+
if (e.page === 0) {
|
|
645
|
+
this.#pendingSelectedScroll = true;
|
|
646
|
+
}
|
|
364
647
|
if (!source.isLoading) {
|
|
365
648
|
this.#syncLoadingState(source, false);
|
|
366
649
|
}
|
|
@@ -370,10 +653,68 @@ class AXLookupListViewBase {
|
|
|
370
653
|
changedSub.unsubscribe();
|
|
371
654
|
});
|
|
372
655
|
});
|
|
656
|
+
// Scroll the selected row into view once per open / refreshed result set (not on every page load).
|
|
657
|
+
effect(() => {
|
|
658
|
+
const viewport = this.viewportRef();
|
|
659
|
+
const loading = this.isLoading();
|
|
660
|
+
const count = this.totalCount();
|
|
661
|
+
const values = this.selectedValues();
|
|
662
|
+
const field = this.valueField();
|
|
663
|
+
const height = this.itemHeight();
|
|
664
|
+
const source = this.dataSource();
|
|
665
|
+
if (!viewport || loading || count === 0) {
|
|
666
|
+
return;
|
|
667
|
+
}
|
|
668
|
+
if (!this.#pendingSelectedScroll) {
|
|
669
|
+
return;
|
|
670
|
+
}
|
|
671
|
+
this.#pendingSelectedScroll = false;
|
|
672
|
+
if (values.length === 0) {
|
|
673
|
+
return;
|
|
674
|
+
}
|
|
675
|
+
untracked(() => {
|
|
676
|
+
requestAnimationFrame(() => {
|
|
677
|
+
viewport.checkViewportSize();
|
|
678
|
+
const index = this.#resolveSelectedIndex(source, values, field);
|
|
679
|
+
if (index >= 0) {
|
|
680
|
+
scrollNearestByOffset(viewport, index, height, count);
|
|
681
|
+
}
|
|
682
|
+
});
|
|
683
|
+
});
|
|
684
|
+
});
|
|
373
685
|
}
|
|
374
|
-
|
|
686
|
+
#resolveSelectedIndex(source, values, valueField) {
|
|
687
|
+
const selectedValue = values[0];
|
|
688
|
+
if (selectedValue == null) {
|
|
689
|
+
return -1;
|
|
690
|
+
}
|
|
691
|
+
const items = source.cachedItems;
|
|
692
|
+
for (let index = 0; index < items.length; index++) {
|
|
693
|
+
const item = items[index];
|
|
694
|
+
if (item != null && item[valueField] == selectedValue) {
|
|
695
|
+
return index;
|
|
696
|
+
}
|
|
697
|
+
}
|
|
698
|
+
return -1;
|
|
699
|
+
}
|
|
700
|
+
/** Moves keyboard focus to the selected list option, or the first option when none is selected. */
|
|
375
701
|
focusFirst() {
|
|
376
|
-
this.listNavigation()
|
|
702
|
+
const nav = this.listNavigation();
|
|
703
|
+
if (!nav) {
|
|
704
|
+
return;
|
|
705
|
+
}
|
|
706
|
+
const viewport = this.viewportRef();
|
|
707
|
+
const selectedHost = viewport?.elementRef.nativeElement.querySelector('.ax-lookup-option-host.ax-state-selected');
|
|
708
|
+
if (selectedHost) {
|
|
709
|
+
const items = this.navItems();
|
|
710
|
+
const index = items.findIndex((item) => item.itemElem.nativeElement === selectedHost);
|
|
711
|
+
if (index >= 0) {
|
|
712
|
+
nav.activeIndex.set(index);
|
|
713
|
+
nav.navigateTo(items[index]);
|
|
714
|
+
return;
|
|
715
|
+
}
|
|
716
|
+
}
|
|
717
|
+
nav.focusOnIndex(0);
|
|
377
718
|
}
|
|
378
719
|
getValue(item) {
|
|
379
720
|
return item?.[this.valueField()];
|
|
@@ -382,7 +723,13 @@ class AXLookupListViewBase {
|
|
|
382
723
|
return String(item?.[this.textField()] ?? '');
|
|
383
724
|
}
|
|
384
725
|
isSelected(item) {
|
|
726
|
+
if (this.isDisabled(item)) {
|
|
727
|
+
return false;
|
|
728
|
+
}
|
|
385
729
|
const value = this.getValue(item);
|
|
730
|
+
if (this.selectAllActive()) {
|
|
731
|
+
return !this.excludedValues().some((v) => v == value);
|
|
732
|
+
}
|
|
386
733
|
return this.selectedValues().some((v) => v == value);
|
|
387
734
|
}
|
|
388
735
|
isDisabled(item) {
|
|
@@ -451,14 +798,14 @@ class AXLookupListViewBase {
|
|
|
451
798
|
this.navigateOut.emit('typeahead');
|
|
452
799
|
}
|
|
453
800
|
activateNavItem(nav, item) {
|
|
454
|
-
nav?.
|
|
801
|
+
nav?.highlightItem(item);
|
|
455
802
|
}
|
|
456
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
457
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.
|
|
803
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupListViewBase, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
804
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.1.6", type: AXLookupListViewBase, isStandalone: true, inputs: { dataSource: { classPropertyName: "dataSource", publicName: "dataSource", isSignal: true, isRequired: true, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: true, isRequired: false, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: true, isRequired: false, transformFunction: null }, disabledField: { classPropertyName: "disabledField", publicName: "disabledField", isSignal: true, isRequired: false, transformFunction: null }, selectedValues: { classPropertyName: "selectedValues", publicName: "selectedValues", isSignal: true, isRequired: false, transformFunction: null }, selectAllActive: { classPropertyName: "selectAllActive", publicName: "selectAllActive", isSignal: true, isRequired: false, transformFunction: null }, excludedValues: { classPropertyName: "excludedValues", publicName: "excludedValues", isSignal: true, isRequired: false, transformFunction: null }, itemHeight: { classPropertyName: "itemHeight", publicName: "itemHeight", isSignal: true, isRequired: false, transformFunction: null }, maxVisibleItems: { classPropertyName: "maxVisibleItems", publicName: "maxVisibleItems", isSignal: true, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null }, emptyTemplate: { classPropertyName: "emptyTemplate", publicName: "emptyTemplate", isSignal: true, isRequired: false, transformFunction: null }, loadingTemplate: { classPropertyName: "loadingTemplate", publicName: "loadingTemplate", isSignal: true, isRequired: false, transformFunction: null }, alternate: { classPropertyName: "alternate", publicName: "alternate", isSignal: true, isRequired: false, transformFunction: null }, highlightText: { classPropertyName: "highlightText", publicName: "highlightText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick", navigateOut: "navigateOut" }, viewQueries: [{ propertyName: "viewportRef", first: true, predicate: CdkVirtualScrollViewport, descendants: true, isSignal: true }, { propertyName: "listNavigation", first: true, predicate: AXListNavigationDirective, descendants: true, isSignal: true }, { propertyName: "navItems", predicate: AXListNavigationItemDirective, descendants: true, isSignal: true }], ngImport: i0 }); }
|
|
458
805
|
}
|
|
459
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
806
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupListViewBase, decorators: [{
|
|
460
807
|
type: Directive
|
|
461
|
-
}], ctorParameters: () => [], propDecorators: { dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: true }] }], valueField: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueField", required: false }] }], textField: [{ type: i0.Input, args: [{ isSignal: true, alias: "textField", required: false }] }], disabledField: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledField", required: false }] }], selectedValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedValues", required: false }] }], itemHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemHeight", required: false }] }], maxVisibleItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisibleItems", required: false }] }], itemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], emptyTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyTemplate", required: false }] }], loadingTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingTemplate", required: false }] }], alternate: [{ type: i0.Input, args: [{ isSignal: true, alias: "alternate", required: false }] }], highlightText: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightText", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], navigateOut: [{ type: i0.Output, args: ["navigateOut"] }], viewportRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkVirtualScrollViewport), { isSignal: true }] }], listNavigation: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXListNavigationDirective), { isSignal: true }] }], navItems: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => AXListNavigationItemDirective), { isSignal: true }] }] } });
|
|
808
|
+
}], ctorParameters: () => [], propDecorators: { dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: true }] }], valueField: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueField", required: false }] }], textField: [{ type: i0.Input, args: [{ isSignal: true, alias: "textField", required: false }] }], disabledField: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledField", required: false }] }], selectedValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedValues", required: false }] }], selectAllActive: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectAllActive", required: false }] }], excludedValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "excludedValues", required: false }] }], itemHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemHeight", required: false }] }], maxVisibleItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisibleItems", required: false }] }], itemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], emptyTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyTemplate", required: false }] }], loadingTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingTemplate", required: false }] }], alternate: [{ type: i0.Input, args: [{ isSignal: true, alias: "alternate", required: false }] }], highlightText: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightText", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }], navigateOut: [{ type: i0.Output, args: ["navigateOut"] }], viewportRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => CdkVirtualScrollViewport), { isSignal: true }] }], listNavigation: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXListNavigationDirective), { isSignal: true }] }], navItems: [{ type: i0.ViewChildren, args: [i0.forwardRef(() => AXListNavigationItemDirective), { isSignal: true }] }] } });
|
|
462
809
|
|
|
463
810
|
/**
|
|
464
811
|
* Internal mini component for the `drop-down-list` lookup mode:
|
|
@@ -467,8 +814,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
467
814
|
* @category Components
|
|
468
815
|
*/
|
|
469
816
|
class AXLookupDropDownListComponent extends AXLookupListViewBase {
|
|
470
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
471
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
817
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupDropDownListComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
818
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AXLookupDropDownListComponent, isStandalone: true, selector: "ax-lookup-drop-down-list", providers: [{ provide: AXLookupListViewBase, useExisting: AXLookupDropDownListComponent }], usesInheritance: true, ngImport: i0, template: `
|
|
472
819
|
@if (isEmpty()) {
|
|
473
820
|
@if (emptyTemplate()) {
|
|
474
821
|
<ng-container [ngTemplateOutlet]="emptyTemplate()!" />
|
|
@@ -534,7 +881,7 @@ class AXLookupDropDownListComponent extends AXLookupListViewBase {
|
|
|
534
881
|
</ng-template>
|
|
535
882
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i1.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: AXListNavigationModule }, { kind: "directive", type: i2.AXListNavigationDirective, selector: "[axListNavigation]", inputs: ["orientation"], outputs: ["onNavigationChanged", "onKeypress"], exportAs: ["axListNavigation"] }, { kind: "directive", type: i2.AXListNavigationItemDirective, selector: "[axListNavigationItem]", outputs: ["onKeypress"], exportAs: ["axListNavigationItem"] }, { kind: "component", type: AXHighlightTextComponent, selector: "ax-highlight-text", inputs: ["text", "query", "highlightDisabled", "highlightOptions"] }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
536
883
|
}
|
|
537
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
884
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupDropDownListComponent, decorators: [{
|
|
538
885
|
type: Component,
|
|
539
886
|
args: [{
|
|
540
887
|
selector: 'ax-lookup-drop-down-list',
|
|
@@ -617,7 +964,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
617
964
|
* @category Components
|
|
618
965
|
*/
|
|
619
966
|
class AXLookupDropDownTreeComponent {
|
|
967
|
+
#host;
|
|
620
968
|
constructor() {
|
|
969
|
+
this.#host = inject((ElementRef));
|
|
621
970
|
/**
|
|
622
971
|
* The tree datasource: an array of nodes or a lazy children callback.
|
|
623
972
|
*/
|
|
@@ -653,6 +1002,16 @@ class AXLookupDropDownTreeComponent {
|
|
|
653
1002
|
*/
|
|
654
1003
|
this.emptyTemplate = input(undefined, /* @ts-ignore */
|
|
655
1004
|
...(ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []));
|
|
1005
|
+
/**
|
|
1006
|
+
* Custom template rendered while the tree is hydrating for search.
|
|
1007
|
+
*/
|
|
1008
|
+
this.loadingTemplate = input(undefined, /* @ts-ignore */
|
|
1009
|
+
...(ngDevMode ? [{ debugName: "loadingTemplate" }] : /* istanbul ignore next */ []));
|
|
1010
|
+
/**
|
|
1011
|
+
* When `true`, a loading placeholder is shown while lazy tree data is hydrated for search.
|
|
1012
|
+
*/
|
|
1013
|
+
this.loading = input(false, /* @ts-ignore */
|
|
1014
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
656
1015
|
/**
|
|
657
1016
|
* When `true`, visible tree nodes use alternating background colors.
|
|
658
1017
|
*/
|
|
@@ -681,6 +1040,13 @@ class AXLookupDropDownTreeComponent {
|
|
|
681
1040
|
...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
682
1041
|
this.treeInstances = computed(() => [{ id: this.filterKey(), source: this.dataSource() }], /* @ts-ignore */
|
|
683
1042
|
...(ngDevMode ? [{ debugName: "treeInstances" }] : /* istanbul ignore next */ []));
|
|
1043
|
+
afterRenderEffect(() => {
|
|
1044
|
+
const selectedId = this.selectedIds()[0];
|
|
1045
|
+
if (!selectedId || this.isEmpty()) {
|
|
1046
|
+
return;
|
|
1047
|
+
}
|
|
1048
|
+
scrollTreeToSelectedNode(this.#host.nativeElement, selectedId);
|
|
1049
|
+
});
|
|
684
1050
|
}
|
|
685
1051
|
/** Whether the filtered tree currently has no nodes. */
|
|
686
1052
|
hasNoMatches() {
|
|
@@ -696,9 +1062,17 @@ class AXLookupDropDownTreeComponent {
|
|
|
696
1062
|
}
|
|
697
1063
|
this.itemClick.emit({ item: node, value: node[this.valueField()] });
|
|
698
1064
|
}
|
|
699
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
700
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
701
|
-
@if (
|
|
1065
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupDropDownTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1066
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AXLookupDropDownTreeComponent, isStandalone: true, selector: "ax-lookup-drop-down-tree", inputs: { dataSource: { classPropertyName: "dataSource", publicName: "dataSource", isSignal: true, isRequired: true, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: true, isRequired: false, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: true, isRequired: false, transformFunction: null }, disabledField: { classPropertyName: "disabledField", publicName: "disabledField", isSignal: true, isRequired: false, transformFunction: null }, selectedValues: { classPropertyName: "selectedValues", publicName: "selectedValues", isSignal: true, isRequired: false, transformFunction: null }, nodeTemplate: { classPropertyName: "nodeTemplate", publicName: "nodeTemplate", isSignal: true, isRequired: false, transformFunction: null }, emptyTemplate: { classPropertyName: "emptyTemplate", publicName: "emptyTemplate", isSignal: true, isRequired: false, transformFunction: null }, loadingTemplate: { classPropertyName: "loadingTemplate", publicName: "loadingTemplate", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, alternate: { classPropertyName: "alternate", publicName: "alternate", isSignal: true, isRequired: false, transformFunction: null }, filterKey: { classPropertyName: "filterKey", publicName: "filterKey", isSignal: true, isRequired: false, transformFunction: null }, highlightText: { classPropertyName: "highlightText", publicName: "highlightText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, ngImport: i0, template: `
|
|
1067
|
+
@if (loading()) {
|
|
1068
|
+
@if (loadingTemplate()) {
|
|
1069
|
+
<ng-container [ngTemplateOutlet]="loadingTemplate()!" />
|
|
1070
|
+
} @else {
|
|
1071
|
+
<div class="ax-lookup-empty">
|
|
1072
|
+
{{ '@acorex:common.status.loading' | translate | async }}
|
|
1073
|
+
</div>
|
|
1074
|
+
}
|
|
1075
|
+
} @else if (isEmpty()) {
|
|
702
1076
|
@if (emptyTemplate()) {
|
|
703
1077
|
<ng-container [ngTemplateOutlet]="emptyTemplate()!" />
|
|
704
1078
|
} @else {
|
|
@@ -727,20 +1101,30 @@ class AXLookupDropDownTreeComponent {
|
|
|
727
1101
|
</div>
|
|
728
1102
|
}
|
|
729
1103
|
|
|
730
|
-
<ng-template #defaultNodeTemplate let-
|
|
731
|
-
<span class="ax-lookup-tree-node-label">
|
|
1104
|
+
<ng-template #defaultNodeTemplate let-node>
|
|
1105
|
+
<span class="ax-lookup-tree-node-label">
|
|
1106
|
+
<ax-highlight-text [text]="node?.[textField()] | translate | async" [query]="highlightText()" />
|
|
1107
|
+
</span>
|
|
732
1108
|
</ng-template>
|
|
733
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AXTreeViewComponent, selector: "ax-tree-view", inputs: ["datasource", "selectMode", "selectionBehavior", "dragArea", "dragBehavior", "showIcons", "showChildrenBadge", "expandedIcon", "collapsedIcon", "indentSize", "look", "alternate", "nodeTemplate", "idField", "titleField", "highlightText", "tooltipField", "iconField", "expandedField", "selectedField", "indeterminateField", "disabledField", "hiddenField", "childrenField", "childrenCountField", "dataField", "inheritDisabled", "expandOnDoubleClick", "doubleClickDuration", "tooltipDelay", "controlledSelection", "selectedIds"], outputs: ["datasourceChange", "selectedIdsChange", "onBeforeDrop", "onNodeToggle", "onNodeSelect", "onNodeDoubleClick", "onNodeClick", "onSelectionChange", "onOrderChange", "onMoveChange", "onItemsChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1109
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AXTreeViewComponent, selector: "ax-tree-view", inputs: ["datasource", "selectMode", "selectionBehavior", "dragArea", "dragBehavior", "showIcons", "showChildrenBadge", "expandedIcon", "collapsedIcon", "indentSize", "look", "alternate", "nodeTemplate", "idField", "titleField", "highlightText", "tooltipField", "iconField", "expandedField", "selectedField", "indeterminateField", "disabledField", "hiddenField", "childrenField", "childrenCountField", "dataField", "inheritDisabled", "expandOnDoubleClick", "doubleClickDuration", "tooltipDelay", "controlledSelection", "selectedIds"], outputs: ["datasourceChange", "selectedIdsChange", "onBeforeDrop", "onNodeToggle", "onNodeSelect", "onNodeDoubleClick", "onNodeClick", "onSelectionChange", "onOrderChange", "onMoveChange", "onItemsChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AXHighlightTextComponent, selector: "ax-highlight-text", inputs: ["text", "query", "highlightDisabled", "highlightOptions"] }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
734
1110
|
}
|
|
735
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1111
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupDropDownTreeComponent, decorators: [{
|
|
736
1112
|
type: Component,
|
|
737
1113
|
args: [{
|
|
738
1114
|
selector: 'ax-lookup-drop-down-tree',
|
|
739
1115
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
740
1116
|
encapsulation: ViewEncapsulation.None,
|
|
741
|
-
imports: [AXTreeViewComponent, NgTemplateOutlet, AXTranslatorPipe, AsyncPipe],
|
|
1117
|
+
imports: [AXTreeViewComponent, NgTemplateOutlet, AXTranslatorPipe, AsyncPipe, AXHighlightTextComponent],
|
|
742
1118
|
template: `
|
|
743
|
-
@if (
|
|
1119
|
+
@if (loading()) {
|
|
1120
|
+
@if (loadingTemplate()) {
|
|
1121
|
+
<ng-container [ngTemplateOutlet]="loadingTemplate()!" />
|
|
1122
|
+
} @else {
|
|
1123
|
+
<div class="ax-lookup-empty">
|
|
1124
|
+
{{ '@acorex:common.status.loading' | translate | async }}
|
|
1125
|
+
</div>
|
|
1126
|
+
}
|
|
1127
|
+
} @else if (isEmpty()) {
|
|
744
1128
|
@if (emptyTemplate()) {
|
|
745
1129
|
<ng-container [ngTemplateOutlet]="emptyTemplate()!" />
|
|
746
1130
|
} @else {
|
|
@@ -769,12 +1153,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
769
1153
|
</div>
|
|
770
1154
|
}
|
|
771
1155
|
|
|
772
|
-
<ng-template #defaultNodeTemplate let-
|
|
773
|
-
<span class="ax-lookup-tree-node-label">
|
|
1156
|
+
<ng-template #defaultNodeTemplate let-node>
|
|
1157
|
+
<span class="ax-lookup-tree-node-label">
|
|
1158
|
+
<ax-highlight-text [text]="node?.[textField()] | translate | async" [query]="highlightText()" />
|
|
1159
|
+
</span>
|
|
774
1160
|
</ng-template>
|
|
775
1161
|
`,
|
|
776
1162
|
}]
|
|
777
|
-
}], propDecorators: { dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: true }] }], valueField: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueField", required: false }] }], textField: [{ type: i0.Input, args: [{ isSignal: true, alias: "textField", required: false }] }], disabledField: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledField", required: false }] }], selectedValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedValues", required: false }] }], nodeTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeTemplate", required: false }] }], emptyTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyTemplate", required: false }] }], alternate: [{ type: i0.Input, args: [{ isSignal: true, alias: "alternate", required: false }] }], filterKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterKey", required: false }] }], highlightText: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightText", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }] } });
|
|
1163
|
+
}], ctorParameters: () => [], propDecorators: { dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: true }] }], valueField: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueField", required: false }] }], textField: [{ type: i0.Input, args: [{ isSignal: true, alias: "textField", required: false }] }], disabledField: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledField", required: false }] }], selectedValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedValues", required: false }] }], nodeTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeTemplate", required: false }] }], emptyTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyTemplate", required: false }] }], loadingTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingTemplate", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], alternate: [{ type: i0.Input, args: [{ isSignal: true, alias: "alternate", required: false }] }], filterKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterKey", required: false }] }], highlightText: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightText", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }] } });
|
|
778
1164
|
|
|
779
1165
|
/**
|
|
780
1166
|
* Internal mini component for the `multi-column-tree` lookup mode:
|
|
@@ -784,7 +1170,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
784
1170
|
* @category Components
|
|
785
1171
|
*/
|
|
786
1172
|
class AXLookupMultiColumnTreeComponent {
|
|
1173
|
+
#host;
|
|
787
1174
|
constructor() {
|
|
1175
|
+
this.#host = inject((ElementRef));
|
|
788
1176
|
/**
|
|
789
1177
|
* The datasource providing hierarchical rows (roots on load, children via `parentField`).
|
|
790
1178
|
*/
|
|
@@ -891,6 +1279,12 @@ class AXLookupMultiColumnTreeComponent {
|
|
|
891
1279
|
}
|
|
892
1280
|
return classes.join(' ');
|
|
893
1281
|
};
|
|
1282
|
+
afterRenderEffect(() => {
|
|
1283
|
+
if (this.selectedValues().length === 0) {
|
|
1284
|
+
return;
|
|
1285
|
+
}
|
|
1286
|
+
scrollTableToSelectedRow(this.#host.nativeElement);
|
|
1287
|
+
});
|
|
894
1288
|
}
|
|
895
1289
|
/** Stable unique key for `@for` — avoids NG0955 when `field` is missing or duplicated. */
|
|
896
1290
|
trackColumnKey(index, column) {
|
|
@@ -937,8 +1331,8 @@ class AXLookupMultiColumnTreeComponent {
|
|
|
937
1331
|
getValue(item) {
|
|
938
1332
|
return item?.[this.valueField()];
|
|
939
1333
|
}
|
|
940
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
941
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
1334
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupMultiColumnTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1335
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AXLookupMultiColumnTreeComponent, isStandalone: true, selector: "ax-lookup-multi-column-tree", inputs: { dataSource: { classPropertyName: "dataSource", publicName: "dataSource", isSignal: true, isRequired: true, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: true, isRequired: false, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: true, isRequired: false, transformFunction: null }, disabledField: { classPropertyName: "disabledField", publicName: "disabledField", isSignal: true, isRequired: false, transformFunction: null }, parentField: { classPropertyName: "parentField", publicName: "parentField", isSignal: true, isRequired: false, transformFunction: null }, hasChildrenField: { classPropertyName: "hasChildrenField", publicName: "hasChildrenField", isSignal: true, isRequired: false, transformFunction: null }, selectedValues: { classPropertyName: "selectedValues", publicName: "selectedValues", isSignal: true, isRequired: false, transformFunction: null }, itemHeight: { classPropertyName: "itemHeight", publicName: "itemHeight", isSignal: true, isRequired: false, transformFunction: null }, maxVisibleItems: { classPropertyName: "maxVisibleItems", publicName: "maxVisibleItems", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null }, emptyTemplate: { classPropertyName: "emptyTemplate", publicName: "emptyTemplate", isSignal: true, isRequired: false, transformFunction: null }, loadingTemplate: { classPropertyName: "loadingTemplate", publicName: "loadingTemplate", isSignal: true, isRequired: false, transformFunction: null }, alternate: { classPropertyName: "alternate", publicName: "alternate", isSignal: true, isRequired: false, transformFunction: null }, highlightText: { classPropertyName: "highlightText", publicName: "highlightText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { properties: { "style.height.px": "tableHeight()" }, classAttribute: "ax-lookup-multi-column ax-lookup-multi-column-tree" }, ngImport: i0, template: `
|
|
942
1336
|
<ax-data-table
|
|
943
1337
|
class="ax-lookup-multi-column-table"
|
|
944
1338
|
look="minimal"
|
|
@@ -992,7 +1386,7 @@ class AXLookupMultiColumnTreeComponent {
|
|
|
992
1386
|
</ng-template>
|
|
993
1387
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AXDataTableComponent, selector: "ax-data-table", inputs: ["dataSource", "selectedRows", "parentField", "hasChildrenField", "rowDetailsTemplate", "rowCssClass", "cellCssClass", "highlightText", "look", "rowTemplate", "emptyTemplate", "noDataTemplate", "alternative", "showHeader", "fixedHeader", "showFooter", "fixedFooter", "itemHeight", "allowReordering", "paging", "fetchDataMode", "loading", "focusedRow"], outputs: ["selectedRowsChange", "focusedRowChange", "onRowClick", "onRowDbClick", "onColumnsOrderChanged", "onColumnSizeChanged", "onPageChanged"] }, { kind: "component", type: AXDataTableTextColumnComponent, selector: "ax-text-column", inputs: ["width", "caption", "allowSorting", "allowResizing", "fixed", "hasTitle", "customExpandIcon", "customCollapseIcon", "dataField", "expandHandler", "wrapText", "translate", "cellTemplate", "footerTemplate", "headerTemplate", "format", "formatOptions"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
994
1388
|
}
|
|
995
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1389
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupMultiColumnTreeComponent, decorators: [{
|
|
996
1390
|
type: Component,
|
|
997
1391
|
args: [{
|
|
998
1392
|
selector: 'ax-lookup-multi-column-tree',
|
|
@@ -1057,7 +1451,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
1057
1451
|
</ng-template>
|
|
1058
1452
|
`,
|
|
1059
1453
|
}]
|
|
1060
|
-
}], propDecorators: { dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: true }] }], valueField: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueField", required: false }] }], textField: [{ type: i0.Input, args: [{ isSignal: true, alias: "textField", required: false }] }], disabledField: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledField", required: false }] }], parentField: [{ type: i0.Input, args: [{ isSignal: true, alias: "parentField", required: false }] }], hasChildrenField: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasChildrenField", required: false }] }], selectedValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedValues", required: false }] }], itemHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemHeight", required: false }] }], maxVisibleItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisibleItems", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], itemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], emptyTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyTemplate", required: false }] }], loadingTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingTemplate", required: false }] }], alternate: [{ type: i0.Input, args: [{ isSignal: true, alias: "alternate", required: false }] }], highlightText: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightText", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }] } });
|
|
1454
|
+
}], ctorParameters: () => [], propDecorators: { dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: true }] }], valueField: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueField", required: false }] }], textField: [{ type: i0.Input, args: [{ isSignal: true, alias: "textField", required: false }] }], disabledField: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledField", required: false }] }], parentField: [{ type: i0.Input, args: [{ isSignal: true, alias: "parentField", required: false }] }], hasChildrenField: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasChildrenField", required: false }] }], selectedValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedValues", required: false }] }], itemHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemHeight", required: false }] }], maxVisibleItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisibleItems", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], itemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], emptyTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyTemplate", required: false }] }], loadingTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingTemplate", required: false }] }], alternate: [{ type: i0.Input, args: [{ isSignal: true, alias: "alternate", required: false }] }], highlightText: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightText", required: false }] }], itemClick: [{ type: i0.Output, args: ["itemClick"] }] } });
|
|
1061
1455
|
|
|
1062
1456
|
/**
|
|
1063
1457
|
* Internal mini component for the `multi-column` lookup mode:
|
|
@@ -1197,6 +1591,12 @@ class AXLookupMultiColumnComponent {
|
|
|
1197
1591
|
}
|
|
1198
1592
|
return classes.join(' ');
|
|
1199
1593
|
};
|
|
1594
|
+
afterRenderEffect(() => {
|
|
1595
|
+
if (this.selectedValues().length === 0 || this.#totalCount() === 0) {
|
|
1596
|
+
return;
|
|
1597
|
+
}
|
|
1598
|
+
scrollTableToSelectedRow(this.#host.nativeElement);
|
|
1599
|
+
});
|
|
1200
1600
|
effect((onCleanup) => {
|
|
1201
1601
|
const source = this.dataSource();
|
|
1202
1602
|
this.tableDataSource.config.key = source.config.key || this.valueField();
|
|
@@ -1296,8 +1696,8 @@ class AXLookupMultiColumnComponent {
|
|
|
1296
1696
|
getValue(item) {
|
|
1297
1697
|
return item?.[this.valueField()];
|
|
1298
1698
|
}
|
|
1299
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1300
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
1699
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupMultiColumnComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1700
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AXLookupMultiColumnComponent, isStandalone: true, selector: "ax-lookup-multi-column", inputs: { dataSource: { classPropertyName: "dataSource", publicName: "dataSource", isSignal: true, isRequired: true, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: true, isRequired: false, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: true, isRequired: false, transformFunction: null }, disabledField: { classPropertyName: "disabledField", publicName: "disabledField", isSignal: true, isRequired: false, transformFunction: null }, selectedValues: { classPropertyName: "selectedValues", publicName: "selectedValues", isSignal: true, isRequired: false, transformFunction: null }, itemHeight: { classPropertyName: "itemHeight", publicName: "itemHeight", isSignal: true, isRequired: false, transformFunction: null }, maxVisibleItems: { classPropertyName: "maxVisibleItems", publicName: "maxVisibleItems", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null }, emptyTemplate: { classPropertyName: "emptyTemplate", publicName: "emptyTemplate", isSignal: true, isRequired: false, transformFunction: null }, loadingTemplate: { classPropertyName: "loadingTemplate", publicName: "loadingTemplate", isSignal: true, isRequired: false, transformFunction: null }, alternate: { classPropertyName: "alternate", publicName: "alternate", isSignal: true, isRequired: false, transformFunction: null }, highlightText: { classPropertyName: "highlightText", publicName: "highlightText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemClick: "itemClick" }, host: { properties: { "style.height.px": "tableHeight()" }, classAttribute: "ax-lookup-multi-column" }, viewQueries: [{ propertyName: "tableRef", first: true, predicate: AXDataTableComponent, descendants: true, isSignal: true }], ngImport: i0, template: `
|
|
1301
1701
|
<ax-data-table
|
|
1302
1702
|
class="ax-lookup-multi-column-table"
|
|
1303
1703
|
look="minimal"
|
|
@@ -1348,7 +1748,7 @@ class AXLookupMultiColumnComponent {
|
|
|
1348
1748
|
</ng-template>
|
|
1349
1749
|
`, isInline: true, dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AXDataTableComponent, selector: "ax-data-table", inputs: ["dataSource", "selectedRows", "parentField", "hasChildrenField", "rowDetailsTemplate", "rowCssClass", "cellCssClass", "highlightText", "look", "rowTemplate", "emptyTemplate", "noDataTemplate", "alternative", "showHeader", "fixedHeader", "showFooter", "fixedFooter", "itemHeight", "allowReordering", "paging", "fetchDataMode", "loading", "focusedRow"], outputs: ["selectedRowsChange", "focusedRowChange", "onRowClick", "onRowDbClick", "onColumnsOrderChanged", "onColumnSizeChanged", "onPageChanged"] }, { kind: "component", type: AXDataTableTextColumnComponent, selector: "ax-text-column", inputs: ["width", "caption", "allowSorting", "allowResizing", "fixed", "hasTitle", "customExpandIcon", "customCollapseIcon", "dataField", "expandHandler", "wrapText", "translate", "cellTemplate", "footerTemplate", "headerTemplate", "format", "formatOptions"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1350
1750
|
}
|
|
1351
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1751
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupMultiColumnComponent, decorators: [{
|
|
1352
1752
|
type: Component,
|
|
1353
1753
|
args: [{
|
|
1354
1754
|
selector: 'ax-lookup-multi-column',
|
|
@@ -1419,7 +1819,9 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
1419
1819
|
* @category Components
|
|
1420
1820
|
*/
|
|
1421
1821
|
class AXLookupMultiSelectTreeComponent {
|
|
1822
|
+
#host;
|
|
1422
1823
|
constructor() {
|
|
1824
|
+
this.#host = inject((ElementRef));
|
|
1423
1825
|
/**
|
|
1424
1826
|
* The tree datasource: an array of nodes or a lazy children callback.
|
|
1425
1827
|
*/
|
|
@@ -1460,6 +1862,16 @@ class AXLookupMultiSelectTreeComponent {
|
|
|
1460
1862
|
*/
|
|
1461
1863
|
this.emptyTemplate = input(undefined, /* @ts-ignore */
|
|
1462
1864
|
...(ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []));
|
|
1865
|
+
/**
|
|
1866
|
+
* Custom template rendered while the tree is hydrating for search.
|
|
1867
|
+
*/
|
|
1868
|
+
this.loadingTemplate = input(undefined, /* @ts-ignore */
|
|
1869
|
+
...(ngDevMode ? [{ debugName: "loadingTemplate" }] : /* istanbul ignore next */ []));
|
|
1870
|
+
/**
|
|
1871
|
+
* When `true`, a loading placeholder is shown while lazy tree data is hydrated for search.
|
|
1872
|
+
*/
|
|
1873
|
+
this.loading = input(false, /* @ts-ignore */
|
|
1874
|
+
...(ngDevMode ? [{ debugName: "loading" }] : /* istanbul ignore next */ []));
|
|
1463
1875
|
/**
|
|
1464
1876
|
* When `true`, visible tree nodes use alternating background colors.
|
|
1465
1877
|
*/
|
|
@@ -1488,6 +1900,13 @@ class AXLookupMultiSelectTreeComponent {
|
|
|
1488
1900
|
...(ngDevMode ? [{ debugName: "isEmpty" }] : /* istanbul ignore next */ []));
|
|
1489
1901
|
this.treeInstances = computed(() => [{ id: this.filterKey(), source: this.dataSource() }], /* @ts-ignore */
|
|
1490
1902
|
...(ngDevMode ? [{ debugName: "treeInstances" }] : /* istanbul ignore next */ []));
|
|
1903
|
+
afterRenderEffect(() => {
|
|
1904
|
+
const selectedId = this.selectedIds()[0];
|
|
1905
|
+
if (!selectedId || this.isEmpty()) {
|
|
1906
|
+
return;
|
|
1907
|
+
}
|
|
1908
|
+
scrollTreeToSelectedNode(this.#host.nativeElement, selectedId);
|
|
1909
|
+
});
|
|
1491
1910
|
}
|
|
1492
1911
|
/** Whether the filtered tree currently has no nodes. */
|
|
1493
1912
|
hasNoMatches() {
|
|
@@ -1499,9 +1918,17 @@ class AXLookupMultiSelectTreeComponent {
|
|
|
1499
1918
|
}
|
|
1500
1919
|
this.selectionChange.emit({ ids: e.selectedIds, nodes: e.selectedNodes });
|
|
1501
1920
|
}
|
|
1502
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1503
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
1504
|
-
@if (
|
|
1921
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupMultiSelectTreeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
1922
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AXLookupMultiSelectTreeComponent, isStandalone: true, selector: "ax-lookup-multi-select-tree", inputs: { dataSource: { classPropertyName: "dataSource", publicName: "dataSource", isSignal: true, isRequired: true, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: true, isRequired: false, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: true, isRequired: false, transformFunction: null }, disabledField: { classPropertyName: "disabledField", publicName: "disabledField", isSignal: true, isRequired: false, transformFunction: null }, selectedValues: { classPropertyName: "selectedValues", publicName: "selectedValues", isSignal: true, isRequired: false, transformFunction: null }, selectionBehavior: { classPropertyName: "selectionBehavior", publicName: "selectionBehavior", isSignal: true, isRequired: false, transformFunction: null }, nodeTemplate: { classPropertyName: "nodeTemplate", publicName: "nodeTemplate", isSignal: true, isRequired: false, transformFunction: null }, emptyTemplate: { classPropertyName: "emptyTemplate", publicName: "emptyTemplate", isSignal: true, isRequired: false, transformFunction: null }, loadingTemplate: { classPropertyName: "loadingTemplate", publicName: "loadingTemplate", isSignal: true, isRequired: false, transformFunction: null }, loading: { classPropertyName: "loading", publicName: "loading", isSignal: true, isRequired: false, transformFunction: null }, alternate: { classPropertyName: "alternate", publicName: "alternate", isSignal: true, isRequired: false, transformFunction: null }, filterKey: { classPropertyName: "filterKey", publicName: "filterKey", isSignal: true, isRequired: false, transformFunction: null }, highlightText: { classPropertyName: "highlightText", publicName: "highlightText", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { selectionChange: "selectionChange" }, ngImport: i0, template: `
|
|
1923
|
+
@if (loading()) {
|
|
1924
|
+
@if (loadingTemplate()) {
|
|
1925
|
+
<ng-container [ngTemplateOutlet]="loadingTemplate()!" />
|
|
1926
|
+
} @else {
|
|
1927
|
+
<div class="ax-lookup-empty">
|
|
1928
|
+
{{ '@acorex:common.status.loading' | translate | async }}
|
|
1929
|
+
</div>
|
|
1930
|
+
}
|
|
1931
|
+
} @else if (isEmpty()) {
|
|
1505
1932
|
@if (emptyTemplate()) {
|
|
1506
1933
|
<ng-container [ngTemplateOutlet]="emptyTemplate()!" />
|
|
1507
1934
|
} @else {
|
|
@@ -1530,20 +1957,30 @@ class AXLookupMultiSelectTreeComponent {
|
|
|
1530
1957
|
</div>
|
|
1531
1958
|
}
|
|
1532
1959
|
|
|
1533
|
-
<ng-template #defaultNodeTemplate let-
|
|
1534
|
-
<span class="ax-lookup-tree-node-label">
|
|
1960
|
+
<ng-template #defaultNodeTemplate let-node>
|
|
1961
|
+
<span class="ax-lookup-tree-node-label">
|
|
1962
|
+
<ax-highlight-text [text]="node?.[textField()] | translate | async" [query]="highlightText()" />
|
|
1963
|
+
</span>
|
|
1535
1964
|
</ng-template>
|
|
1536
|
-
`, isInline: true, dependencies: [{ kind: "component", type: AXTreeViewComponent, selector: "ax-tree-view", inputs: ["datasource", "selectMode", "selectionBehavior", "dragArea", "dragBehavior", "showIcons", "showChildrenBadge", "expandedIcon", "collapsedIcon", "indentSize", "look", "alternate", "nodeTemplate", "idField", "titleField", "highlightText", "tooltipField", "iconField", "expandedField", "selectedField", "indeterminateField", "disabledField", "hiddenField", "childrenField", "childrenCountField", "dataField", "inheritDisabled", "expandOnDoubleClick", "doubleClickDuration", "tooltipDelay", "controlledSelection", "selectedIds"], outputs: ["datasourceChange", "selectedIdsChange", "onBeforeDrop", "onNodeToggle", "onNodeSelect", "onNodeDoubleClick", "onNodeClick", "onSelectionChange", "onOrderChange", "onMoveChange", "onItemsChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1965
|
+
`, isInline: true, dependencies: [{ kind: "component", type: AXTreeViewComponent, selector: "ax-tree-view", inputs: ["datasource", "selectMode", "selectionBehavior", "dragArea", "dragBehavior", "showIcons", "showChildrenBadge", "expandedIcon", "collapsedIcon", "indentSize", "look", "alternate", "nodeTemplate", "idField", "titleField", "highlightText", "tooltipField", "iconField", "expandedField", "selectedField", "indeterminateField", "disabledField", "hiddenField", "childrenField", "childrenCountField", "dataField", "inheritDisabled", "expandOnDoubleClick", "doubleClickDuration", "tooltipDelay", "controlledSelection", "selectedIds"], outputs: ["datasourceChange", "selectedIdsChange", "onBeforeDrop", "onNodeToggle", "onNodeSelect", "onNodeDoubleClick", "onNodeClick", "onSelectionChange", "onOrderChange", "onMoveChange", "onItemsChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AXHighlightTextComponent, selector: "ax-highlight-text", inputs: ["text", "query", "highlightDisabled", "highlightOptions"] }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1537
1966
|
}
|
|
1538
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
1967
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupMultiSelectTreeComponent, decorators: [{
|
|
1539
1968
|
type: Component,
|
|
1540
1969
|
args: [{
|
|
1541
1970
|
selector: 'ax-lookup-multi-select-tree',
|
|
1542
1971
|
changeDetection: ChangeDetectionStrategy.OnPush,
|
|
1543
1972
|
encapsulation: ViewEncapsulation.None,
|
|
1544
|
-
imports: [AXTreeViewComponent, NgTemplateOutlet, AXTranslatorPipe, AsyncPipe],
|
|
1973
|
+
imports: [AXTreeViewComponent, NgTemplateOutlet, AXTranslatorPipe, AsyncPipe, AXHighlightTextComponent],
|
|
1545
1974
|
template: `
|
|
1546
|
-
@if (
|
|
1975
|
+
@if (loading()) {
|
|
1976
|
+
@if (loadingTemplate()) {
|
|
1977
|
+
<ng-container [ngTemplateOutlet]="loadingTemplate()!" />
|
|
1978
|
+
} @else {
|
|
1979
|
+
<div class="ax-lookup-empty">
|
|
1980
|
+
{{ '@acorex:common.status.loading' | translate | async }}
|
|
1981
|
+
</div>
|
|
1982
|
+
}
|
|
1983
|
+
} @else if (isEmpty()) {
|
|
1547
1984
|
@if (emptyTemplate()) {
|
|
1548
1985
|
<ng-container [ngTemplateOutlet]="emptyTemplate()!" />
|
|
1549
1986
|
} @else {
|
|
@@ -1572,12 +2009,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
1572
2009
|
</div>
|
|
1573
2010
|
}
|
|
1574
2011
|
|
|
1575
|
-
<ng-template #defaultNodeTemplate let-
|
|
1576
|
-
<span class="ax-lookup-tree-node-label">
|
|
2012
|
+
<ng-template #defaultNodeTemplate let-node>
|
|
2013
|
+
<span class="ax-lookup-tree-node-label">
|
|
2014
|
+
<ax-highlight-text [text]="node?.[textField()] | translate | async" [query]="highlightText()" />
|
|
2015
|
+
</span>
|
|
1577
2016
|
</ng-template>
|
|
1578
2017
|
`,
|
|
1579
2018
|
}]
|
|
1580
|
-
}], propDecorators: { dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: true }] }], valueField: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueField", required: false }] }], textField: [{ type: i0.Input, args: [{ isSignal: true, alias: "textField", required: false }] }], disabledField: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledField", required: false }] }], selectedValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedValues", required: false }] }], selectionBehavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionBehavior", required: false }] }], nodeTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeTemplate", required: false }] }], emptyTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyTemplate", required: false }] }], alternate: [{ type: i0.Input, args: [{ isSignal: true, alias: "alternate", required: false }] }], filterKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterKey", required: false }] }], highlightText: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightText", required: false }] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }] } });
|
|
2019
|
+
}], ctorParameters: () => [], propDecorators: { dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: true }] }], valueField: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueField", required: false }] }], textField: [{ type: i0.Input, args: [{ isSignal: true, alias: "textField", required: false }] }], disabledField: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledField", required: false }] }], selectedValues: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedValues", required: false }] }], selectionBehavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectionBehavior", required: false }] }], nodeTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "nodeTemplate", required: false }] }], emptyTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyTemplate", required: false }] }], loadingTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingTemplate", required: false }] }], loading: [{ type: i0.Input, args: [{ isSignal: true, alias: "loading", required: false }] }], alternate: [{ type: i0.Input, args: [{ isSignal: true, alias: "alternate", required: false }] }], filterKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "filterKey", required: false }] }], highlightText: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightText", required: false }] }], selectionChange: [{ type: i0.Output, args: ["selectionChange"] }] } });
|
|
1581
2020
|
|
|
1582
2021
|
/**
|
|
1583
2022
|
* Internal mini component for the `multi-select` lookup mode:
|
|
@@ -1586,8 +2025,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
1586
2025
|
* @category Components
|
|
1587
2026
|
*/
|
|
1588
2027
|
class AXLookupMultiSelectComponent extends AXLookupListViewBase {
|
|
1589
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
1590
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.
|
|
2028
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupMultiSelectComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
2029
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AXLookupMultiSelectComponent, isStandalone: true, selector: "ax-lookup-multi-select", providers: [{ provide: AXLookupListViewBase, useExisting: AXLookupMultiSelectComponent }], usesInheritance: true, ngImport: i0, template: `
|
|
1591
2030
|
@if (isEmpty()) {
|
|
1592
2031
|
@if (emptyTemplate()) {
|
|
1593
2032
|
<ng-container [ngTemplateOutlet]="emptyTemplate()!" />
|
|
@@ -1657,7 +2096,7 @@ class AXLookupMultiSelectComponent extends AXLookupListViewBase {
|
|
|
1657
2096
|
</ng-template>
|
|
1658
2097
|
`, isInline: true, dependencies: [{ kind: "ngmodule", type: ScrollingModule }, { kind: "directive", type: i1.CdkFixedSizeVirtualScroll, selector: "cdk-virtual-scroll-viewport[itemSize]", inputs: ["itemSize", "minBufferPx", "maxBufferPx"] }, { kind: "directive", type: i1.CdkVirtualForOf, selector: "[cdkVirtualFor][cdkVirtualForOf]", inputs: ["cdkVirtualForOf", "cdkVirtualForTrackBy", "cdkVirtualForTemplate", "cdkVirtualForTemplateCacheSize"] }, { kind: "component", type: i1.CdkVirtualScrollViewport, selector: "cdk-virtual-scroll-viewport", inputs: ["orientation", "appendOnly"], outputs: ["scrolledIndexChange"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: AXListNavigationModule }, { kind: "directive", type: i2.AXListNavigationDirective, selector: "[axListNavigation]", inputs: ["orientation"], outputs: ["onNavigationChanged", "onKeypress"], exportAs: ["axListNavigation"] }, { kind: "directive", type: i2.AXListNavigationItemDirective, selector: "[axListNavigationItem]", outputs: ["onKeypress"], exportAs: ["axListNavigationItem"] }, { kind: "component", type: AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "isLoading", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "component", type: AXHighlightTextComponent, selector: "ax-highlight-text", inputs: ["text", "query", "highlightDisabled", "highlightOptions"] }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }, { kind: "pipe", type: AsyncPipe, name: "async" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
1659
2098
|
}
|
|
1660
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
2099
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupMultiSelectComponent, decorators: [{
|
|
1661
2100
|
type: Component,
|
|
1662
2101
|
args: [{
|
|
1663
2102
|
selector: 'ax-lookup-multi-select',
|
|
@@ -1765,17 +2204,20 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
1765
2204
|
#platform;
|
|
1766
2205
|
#destroyRef;
|
|
1767
2206
|
#translation;
|
|
2207
|
+
#config;
|
|
1768
2208
|
/** Whether search filters the tree datasource instead of `AXDataSource`. */
|
|
1769
2209
|
#isTreeOnlySearchMode() {
|
|
1770
2210
|
const mode = this.mode();
|
|
1771
2211
|
return mode === 'drop-down-tree' || mode === 'multi-select-tree';
|
|
1772
2212
|
}
|
|
1773
|
-
/**
|
|
1774
|
-
* Applied tree search query. Set only from `#applyFilterNow` so opening a single-select
|
|
2213
|
+
/** Applied tree search query. Set only from `#applyFilterNow` so opening a single-select
|
|
1775
2214
|
* with the selected label in the trigger does not filter the tree.
|
|
1776
2215
|
*/
|
|
1777
2216
|
#treeFilterQuery;
|
|
1778
2217
|
#treeFilterEpoch;
|
|
2218
|
+
#hydratedTreeNodes;
|
|
2219
|
+
#hydrationPromise;
|
|
2220
|
+
#hydrationRevision;
|
|
1779
2221
|
/** Applied (debounced) search query used for result highlighting. */
|
|
1780
2222
|
#appliedSearchQuery;
|
|
1781
2223
|
/** Reused so closing/reopening the popup does not create a new AXDataSource (which would miss cache). */
|
|
@@ -1787,7 +2229,10 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
1787
2229
|
* drop-down-tree / multi-select-tree do not refetch on every open.
|
|
1788
2230
|
*/
|
|
1789
2231
|
#treeChildrenCache;
|
|
2232
|
+
/** Stable lazy loader for on-demand expansion when no search query is active. */
|
|
2233
|
+
#lazyTreeLoader;
|
|
1790
2234
|
#document;
|
|
2235
|
+
#platformId;
|
|
1791
2236
|
#itemsCache;
|
|
1792
2237
|
#isUserInteraction;
|
|
1793
2238
|
#lastValue;
|
|
@@ -1803,6 +2248,7 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
1803
2248
|
this.#platform = inject(AXPlatform);
|
|
1804
2249
|
this.#destroyRef = inject(DestroyRef);
|
|
1805
2250
|
this.#translation = inject(AXTranslationService);
|
|
2251
|
+
this.#config = inject(AX_LOOKUP_CONFIG);
|
|
1806
2252
|
/**
|
|
1807
2253
|
* The name of the form field, used by validation rules and `ax-form.validate(names)`.
|
|
1808
2254
|
*/
|
|
@@ -1865,6 +2311,7 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
1865
2311
|
* Whether the trigger accepts typing and filters the datasource (`true`),
|
|
1866
2312
|
* or is select-only with no writable input (`false`).
|
|
1867
2313
|
* Applies to all modes, including `drop-down-tree` and `multi-select-tree`.
|
|
2314
|
+
* Lazy callback trees are hydrated once per popup open and searched in full.
|
|
1868
2315
|
* On small screens with `adaptivityEnabled`, search is typed in the actionsheet instead of the trigger.
|
|
1869
2316
|
*/
|
|
1870
2317
|
this.searchable = input(true, /* @ts-ignore */
|
|
@@ -1941,6 +2388,14 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
1941
2388
|
* while the user searches.
|
|
1942
2389
|
*/
|
|
1943
2390
|
this.highlightSearch = input(true, { ...(ngDevMode ? { debugName: "highlightSearch" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
2391
|
+
/**
|
|
2392
|
+
* When `true` (default), `multi-select` and `multi-select-tree` show the default popover header
|
|
2393
|
+
* with “Select all” unless you project `ax-header`. When `false`, that header is hidden and users
|
|
2394
|
+
* cannot enter select-all mode from the UI. Defaults to `AX_LOOKUP_CONFIG.allowSelectAll`.
|
|
2395
|
+
* If a `{ selectAll: true }` value is bound while this is `false`, the trigger still shows a
|
|
2396
|
+
* removable “Select all” chip until the user clears it.
|
|
2397
|
+
*/
|
|
2398
|
+
this.allowSelectAll = input(this.#config.allowSelectAll, { ...(ngDevMode ? { debugName: "allowSelectAll" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
1944
2399
|
/**
|
|
1945
2400
|
* Custom template rendered for each item/node. Context: `$implicit` is the item;
|
|
1946
2401
|
* `highlightText` is the active search query when result highlighting is enabled.
|
|
@@ -1965,12 +2420,16 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
1965
2420
|
this.loadingTemplate = input(undefined, /* @ts-ignore */
|
|
1966
2421
|
...(ngDevMode ? [{ debugName: "loadingTemplate" }] : /* istanbul ignore next */ []));
|
|
1967
2422
|
/**
|
|
1968
|
-
* The selected value(s): a scalar in single modes
|
|
1969
|
-
*
|
|
1970
|
-
*
|
|
2423
|
+
* The selected value(s): a scalar in single modes; in `multi-select` / `multi-select-tree` an array
|
|
2424
|
+
* of keys or `{ selectAll: true, excluded?: [...] }` when `allowSelectAll` is enabled and the
|
|
2425
|
+
* default header “Select all” is used.
|
|
2426
|
+
* Supports `[(value)]`, `[(ngModel)]`, and signal forms via {@link FormValueControl}.
|
|
1971
2427
|
*/
|
|
1972
2428
|
this.value = model(null, /* @ts-ignore */
|
|
1973
2429
|
...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
2430
|
+
/** Projected popover header; when set, replaces the default multi-select “Select all” header. */
|
|
2431
|
+
this.projectedHeader = contentChild('ax-header', /* @ts-ignore */
|
|
2432
|
+
...(ngDevMode ? [{ debugName: "projectedHeader" }] : /* istanbul ignore next */ []));
|
|
1974
2433
|
/**
|
|
1975
2434
|
* Full items that resolve the current `value` key(s) without calling datasource `byKey`.
|
|
1976
2435
|
* Use when the parent already has the selected entity (e.g. edit forms). Seeds the internal
|
|
@@ -2047,14 +2506,18 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2047
2506
|
/** Query typed in the actionsheet search field (independent of the trigger display text). */
|
|
2048
2507
|
this.sheetSearchText = signal('', /* @ts-ignore */
|
|
2049
2508
|
...(ngDevMode ? [{ debugName: "sheetSearchText" }] : /* istanbul ignore next */ []));
|
|
2050
|
-
/**
|
|
2051
|
-
* Applied tree search query. Set only from `#applyFilterNow` so opening a single-select
|
|
2509
|
+
/** Applied tree search query. Set only from `#applyFilterNow` so opening a single-select
|
|
2052
2510
|
* with the selected label in the trigger does not filter the tree.
|
|
2053
2511
|
*/
|
|
2054
2512
|
this.#treeFilterQuery = signal('', /* @ts-ignore */
|
|
2055
2513
|
...(ngDevMode ? [{ debugName: "#treeFilterQuery" }] : /* istanbul ignore next */ []));
|
|
2056
2514
|
this.#treeFilterEpoch = signal(0, /* @ts-ignore */
|
|
2057
2515
|
...(ngDevMode ? [{ debugName: "#treeFilterEpoch" }] : /* istanbul ignore next */ []));
|
|
2516
|
+
this.#hydratedTreeNodes = signal(undefined, /* @ts-ignore */
|
|
2517
|
+
...(ngDevMode ? [{ debugName: "#hydratedTreeNodes" }] : /* istanbul ignore next */ []));
|
|
2518
|
+
this.#hydrationRevision = 0;
|
|
2519
|
+
this.treeSearchLoading = signal(false, /* @ts-ignore */
|
|
2520
|
+
...(ngDevMode ? [{ debugName: "treeSearchLoading" }] : /* istanbul ignore next */ []));
|
|
2058
2521
|
/** Applied (debounced) search query used for result highlighting. */
|
|
2059
2522
|
this.#appliedSearchQuery = signal('', /* @ts-ignore */
|
|
2060
2523
|
...(ngDevMode ? [{ debugName: "#appliedSearchQuery" }] : /* istanbul ignore next */ []));
|
|
@@ -2084,6 +2547,7 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2084
2547
|
textField: this.textField(),
|
|
2085
2548
|
parentField: this.treeParentField(),
|
|
2086
2549
|
hasChildrenField: this.hasChildrenField(),
|
|
2550
|
+
loadSearchRoots: Array.isArray(tree) ? undefined : () => this.#ensureHydratedTree(),
|
|
2087
2551
|
});
|
|
2088
2552
|
return this.#multiColumnTreeTableSource;
|
|
2089
2553
|
}
|
|
@@ -2111,34 +2575,103 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2111
2575
|
* drop-down-tree / multi-select-tree do not refetch on every open.
|
|
2112
2576
|
*/
|
|
2113
2577
|
this.#treeChildrenCache = new WeakMap();
|
|
2578
|
+
/** Stable lazy loader for on-demand expansion when no search query is active. */
|
|
2579
|
+
this.#lazyTreeLoader = (nodeId) => {
|
|
2580
|
+
const source = this.treeDataSource();
|
|
2581
|
+
if (typeof source !== 'function') {
|
|
2582
|
+
return [];
|
|
2583
|
+
}
|
|
2584
|
+
return this.#loadCachedTreeNodes(source, nodeId);
|
|
2585
|
+
};
|
|
2114
2586
|
this.resolvedTreeDataSource = computed(() => {
|
|
2115
2587
|
this.#treeFilterEpoch();
|
|
2116
2588
|
const source = this.treeDataSource();
|
|
2117
|
-
const query = this.#treeFilterQuery();
|
|
2589
|
+
const query = this.#treeFilterQuery().trim();
|
|
2118
2590
|
const textField = this.textField();
|
|
2591
|
+
const translate = (text) => this.#translateItemTextForFilter(text);
|
|
2119
2592
|
if (!source) {
|
|
2120
2593
|
return [];
|
|
2121
2594
|
}
|
|
2122
2595
|
if (Array.isArray(source)) {
|
|
2123
|
-
return query
|
|
2124
|
-
? filterTreeNodes(source, textField, query, (text) => this.#translateItemText(text))
|
|
2125
|
-
: cloneLookupTreeNodes(source);
|
|
2596
|
+
return query ? filterTreeNodes(source, textField, query, translate) : cloneLookupTreeNodes(source);
|
|
2126
2597
|
}
|
|
2127
2598
|
if (!query) {
|
|
2128
|
-
return
|
|
2599
|
+
return this.#lazyTreeLoader;
|
|
2600
|
+
}
|
|
2601
|
+
const snapshot = this.#hydratedTreeNodes();
|
|
2602
|
+
if (snapshot) {
|
|
2603
|
+
return filterTreeNodes(snapshot, textField, query, translate);
|
|
2129
2604
|
}
|
|
2130
|
-
return
|
|
2605
|
+
return [];
|
|
2131
2606
|
}, /* @ts-ignore */
|
|
2132
2607
|
...(ngDevMode ? [{ debugName: "resolvedTreeDataSource" }] : /* istanbul ignore next */ []));
|
|
2133
|
-
/**
|
|
2608
|
+
/** Explicit key list (empty when multi value is select-all object). */
|
|
2134
2609
|
this.selectedValues = computed(() => {
|
|
2135
2610
|
const value = this.value();
|
|
2136
|
-
if (value
|
|
2611
|
+
if (lookupSelectAllActive(value)) {
|
|
2137
2612
|
return [];
|
|
2138
2613
|
}
|
|
2139
|
-
|
|
2614
|
+
if (lookupBoundValueIsEmpty(value)) {
|
|
2615
|
+
return [];
|
|
2616
|
+
}
|
|
2617
|
+
if (this.isMultiple()) {
|
|
2618
|
+
return lookupArrayValues(value);
|
|
2619
|
+
}
|
|
2620
|
+
return Array.isArray(value) ? value.filter((key) => key != null && key !== '') : [value];
|
|
2140
2621
|
}, /* @ts-ignore */
|
|
2141
2622
|
...(ngDevMode ? [{ debugName: "selectedValues" }] : /* istanbul ignore next */ []));
|
|
2623
|
+
this.multiSelectAllActive = computed(() => lookupSelectAllActive(this.value()), /* @ts-ignore */
|
|
2624
|
+
...(ngDevMode ? [{ debugName: "multiSelectAllActive" }] : /* istanbul ignore next */ []));
|
|
2625
|
+
this.multiExcludedValues = computed(() => lookupExcludedValues(this.value()), /* @ts-ignore */
|
|
2626
|
+
...(ngDevMode ? [{ debugName: "multiExcludedValues" }] : /* istanbul ignore next */ []));
|
|
2627
|
+
this.hasProjectedHeader = computed(() => this.projectedHeader() != null, /* @ts-ignore */
|
|
2628
|
+
...(ngDevMode ? [{ debugName: "hasProjectedHeader" }] : /* istanbul ignore next */ []));
|
|
2629
|
+
this.multiViewEmpty = computed(() => {
|
|
2630
|
+
switch (this.mode()) {
|
|
2631
|
+
case 'multi-select':
|
|
2632
|
+
return this.listView()?.hasNoMatches() ?? false;
|
|
2633
|
+
case 'multi-select-tree':
|
|
2634
|
+
return this.multiTreeView()?.hasNoMatches() ?? false;
|
|
2635
|
+
default:
|
|
2636
|
+
return false;
|
|
2637
|
+
}
|
|
2638
|
+
}, /* @ts-ignore */
|
|
2639
|
+
...(ngDevMode ? [{ debugName: "multiViewEmpty" }] : /* istanbul ignore next */ []));
|
|
2640
|
+
this.showDefaultSelectAllHeader = computed(() => this.allowSelectAll() && this.isMultiple() && !this.hasProjectedHeader() && !this.multiViewEmpty(), /* @ts-ignore */
|
|
2641
|
+
...(ngDevMode ? [{ debugName: "showDefaultSelectAllHeader" }] : /* istanbul ignore next */ []));
|
|
2642
|
+
this.selectAllHeaderChecked = computed(() => this.multiSelectAllActive(), /* @ts-ignore */
|
|
2643
|
+
...(ngDevMode ? [{ debugName: "selectAllHeaderChecked" }] : /* istanbul ignore next */ []));
|
|
2644
|
+
this.selectAllHeaderIndeterminate = computed(() => this.multiSelectAllActive() && this.multiExcludedValues().length > 0, /* @ts-ignore */
|
|
2645
|
+
...(ngDevMode ? [{ debugName: "selectAllHeaderIndeterminate" }] : /* istanbul ignore next */ []));
|
|
2646
|
+
/** Keys used for tree controlled selection when leaving select-all mode. */
|
|
2647
|
+
this.effectiveSelectedKeys = computed(() => {
|
|
2648
|
+
const value = this.value();
|
|
2649
|
+
if (!this.isMultiple() || !lookupSelectAllActive(value)) {
|
|
2650
|
+
return this.selectedValues();
|
|
2651
|
+
}
|
|
2652
|
+
const excludedSet = new Set(this.multiExcludedValues().map((v) => String(v)));
|
|
2653
|
+
const field = this.valueField();
|
|
2654
|
+
const disabledField = this.disabledField();
|
|
2655
|
+
if (this.mode() === 'multi-select-tree') {
|
|
2656
|
+
const source = this.resolvedTreeDataSource();
|
|
2657
|
+
if (Array.isArray(source)) {
|
|
2658
|
+
return this.#enabledTreeItems(source)
|
|
2659
|
+
.map((item) => item[field])
|
|
2660
|
+
.filter((key) => key != null && !excludedSet.has(String(key)));
|
|
2661
|
+
}
|
|
2662
|
+
return [];
|
|
2663
|
+
}
|
|
2664
|
+
return this.#allListValueKeys().filter((key) => !excludedSet.has(String(key)));
|
|
2665
|
+
}, /* @ts-ignore */
|
|
2666
|
+
...(ngDevMode ? [{ debugName: "effectiveSelectedKeys" }] : /* istanbul ignore next */ []));
|
|
2667
|
+
this.hasSelection = computed(() => {
|
|
2668
|
+
const value = this.value();
|
|
2669
|
+
if (lookupSelectAllActive(value)) {
|
|
2670
|
+
return true;
|
|
2671
|
+
}
|
|
2672
|
+
return this.selectedValues().length > 0;
|
|
2673
|
+
}, /* @ts-ignore */
|
|
2674
|
+
...(ngDevMode ? [{ debugName: "hasSelection" }] : /* istanbul ignore next */ []));
|
|
2142
2675
|
/** The resolved selected items (via cache, datasource `find`/`byKey`, or tree node lookup). */
|
|
2143
2676
|
this.selectedItems = signal([], /* @ts-ignore */
|
|
2144
2677
|
...(ngDevMode ? [{ debugName: "selectedItems" }] : /* istanbul ignore next */ []));
|
|
@@ -2179,9 +2712,9 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2179
2712
|
/** Placeholder for the editable trigger search input. */
|
|
2180
2713
|
this.triggerSearchPlaceholder = computed(() => {
|
|
2181
2714
|
if (this.isActionsheetStyle()) {
|
|
2182
|
-
return this.isMultiple() && this.
|
|
2715
|
+
return this.isMultiple() && this.hasSelection() ? '' : this.translatedPlaceholder();
|
|
2183
2716
|
}
|
|
2184
|
-
if (this.isMultiple() && this.
|
|
2717
|
+
if (this.isMultiple() && this.hasSelection()) {
|
|
2185
2718
|
return this.translatedSearchPlaceholder();
|
|
2186
2719
|
}
|
|
2187
2720
|
return this.translatedPlaceholder();
|
|
@@ -2196,12 +2729,11 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2196
2729
|
this.triggerSearchInput = viewChild('triggerSearchInput', /* @ts-ignore */
|
|
2197
2730
|
...(ngDevMode ? [{ debugName: "triggerSearchInput" }] : /* istanbul ignore next */ []));
|
|
2198
2731
|
this.#document = inject(DOCUMENT);
|
|
2732
|
+
this.#platformId = inject(PLATFORM_ID);
|
|
2199
2733
|
this.listView = viewChild(AXLookupListViewBase, /* @ts-ignore */
|
|
2200
2734
|
...(ngDevMode ? [{ debugName: "listView" }] : /* istanbul ignore next */ []));
|
|
2201
|
-
this.
|
|
2202
|
-
...(ngDevMode ? [{ debugName: "
|
|
2203
|
-
this.multiSelectTreeView = viewChild(AXLookupMultiSelectTreeComponent, /* @ts-ignore */
|
|
2204
|
-
...(ngDevMode ? [{ debugName: "multiSelectTreeView" }] : /* istanbul ignore next */ []));
|
|
2735
|
+
this.multiTreeView = viewChild(AXLookupMultiSelectTreeComponent, /* @ts-ignore */
|
|
2736
|
+
...(ngDevMode ? [{ debugName: "multiTreeView" }] : /* istanbul ignore next */ []));
|
|
2205
2737
|
this.sheetSearchRef = viewChild('sheetSearch', /* @ts-ignore */
|
|
2206
2738
|
...(ngDevMode ? [{ debugName: "sheetSearchRef" }] : /* istanbul ignore next */ []));
|
|
2207
2739
|
this.#itemsCache = new Map();
|
|
@@ -2250,6 +2782,7 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2250
2782
|
}
|
|
2251
2783
|
untracked(() => {
|
|
2252
2784
|
if (expanded && !popover.isOpen) {
|
|
2785
|
+
this.#updatePopupMaxHeight();
|
|
2253
2786
|
void popover.open();
|
|
2254
2787
|
}
|
|
2255
2788
|
else if (!expanded && popover.isOpen) {
|
|
@@ -2268,6 +2801,28 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2268
2801
|
#syncActionsheetStyle() {
|
|
2269
2802
|
this.isActionsheetStyle.set(this.adaptivityEnabled() && this.#platform.is('SM'));
|
|
2270
2803
|
}
|
|
2804
|
+
/** Caps dropdown popup height so auto-flip can place it below or above the trigger without covering it. */
|
|
2805
|
+
#updatePopupMaxHeight() {
|
|
2806
|
+
const popup = this.popupRef()?.nativeElement;
|
|
2807
|
+
if (!popup) {
|
|
2808
|
+
return;
|
|
2809
|
+
}
|
|
2810
|
+
if (this.isActionsheetStyle() || !isPlatformBrowser(this.#platformId)) {
|
|
2811
|
+
popup.style.removeProperty('--ax-comp-lookup-popup-max-height');
|
|
2812
|
+
return;
|
|
2813
|
+
}
|
|
2814
|
+
const origin = this.originRef()?.nativeElement;
|
|
2815
|
+
if (!origin) {
|
|
2816
|
+
return;
|
|
2817
|
+
}
|
|
2818
|
+
const gap = 8;
|
|
2819
|
+
const rect = origin.getBoundingClientRect();
|
|
2820
|
+
const viewportHeight = this.#document.documentElement.clientHeight;
|
|
2821
|
+
const below = viewportHeight - rect.bottom - gap;
|
|
2822
|
+
const above = rect.top - gap;
|
|
2823
|
+
const maxHeight = Math.max(below, above);
|
|
2824
|
+
popup.style.setProperty('--ax-comp-lookup-popup-max-height', `${Math.max(0, maxHeight)}px`);
|
|
2825
|
+
}
|
|
2271
2826
|
/** Returns the display text of an item using the `textField` mapping. */
|
|
2272
2827
|
getItemText(item) {
|
|
2273
2828
|
return String(item?.[this.textField()] ?? '');
|
|
@@ -2295,6 +2850,24 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2295
2850
|
}
|
|
2296
2851
|
queueMicrotask(() => this.#focusPopupSearchOrList());
|
|
2297
2852
|
}
|
|
2853
|
+
/**
|
|
2854
|
+
* Toggles the popup when the chevron button is clicked.
|
|
2855
|
+
*/
|
|
2856
|
+
onChevronClick(event) {
|
|
2857
|
+
event.stopPropagation();
|
|
2858
|
+
if (this.disabled() || this.readonly()) {
|
|
2859
|
+
return;
|
|
2860
|
+
}
|
|
2861
|
+
this.expanded.update((open) => !open);
|
|
2862
|
+
if (!this.expanded()) {
|
|
2863
|
+
return;
|
|
2864
|
+
}
|
|
2865
|
+
if (this.isEditableTrigger()) {
|
|
2866
|
+
queueMicrotask(() => this.triggerSearchInput()?.nativeElement.focus());
|
|
2867
|
+
return;
|
|
2868
|
+
}
|
|
2869
|
+
queueMicrotask(() => this.#focusPopupSearchOrList());
|
|
2870
|
+
}
|
|
2298
2871
|
/**
|
|
2299
2872
|
* Focuses the lookup trigger input.
|
|
2300
2873
|
*/
|
|
@@ -2427,6 +3000,16 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2427
3000
|
}
|
|
2428
3001
|
}
|
|
2429
3002
|
async #resolvedFilteredTreeNodes() {
|
|
3003
|
+
const query = this.#treeFilterQuery().trim();
|
|
3004
|
+
const treeSource = this.treeDataSource();
|
|
3005
|
+
if (query && treeSource && typeof treeSource === 'function') {
|
|
3006
|
+
await this.#ensureHydratedTree();
|
|
3007
|
+
const snapshot = this.#hydratedTreeNodes();
|
|
3008
|
+
if (snapshot) {
|
|
3009
|
+
return filterTreeNodes(snapshot, this.textField(), query, (text) => this.#translateItemTextForFilter(text));
|
|
3010
|
+
}
|
|
3011
|
+
return [];
|
|
3012
|
+
}
|
|
2430
3013
|
const source = this.resolvedTreeDataSource();
|
|
2431
3014
|
if (Array.isArray(source)) {
|
|
2432
3015
|
return source;
|
|
@@ -2437,6 +3020,54 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2437
3020
|
const disabledField = this.disabledField();
|
|
2438
3021
|
return flattenTreeNodes(nodes).filter((item) => !item[disabledField]);
|
|
2439
3022
|
}
|
|
3023
|
+
#allListValueKeys() {
|
|
3024
|
+
const source = this.resolvedDataSource();
|
|
3025
|
+
const disabledField = this.disabledField();
|
|
3026
|
+
const field = this.valueField();
|
|
3027
|
+
const items = (source.cachedItems.length ? source.cachedItems : source.items).filter((item) => item != null && !item[disabledField]);
|
|
3028
|
+
return items.map((item) => item[field]).filter((key) => key != null);
|
|
3029
|
+
}
|
|
3030
|
+
#selectAllOffToExplicitArray() {
|
|
3031
|
+
const value = this.value();
|
|
3032
|
+
if (!lookupSelectAllActive(value)) {
|
|
3033
|
+
return lookupArrayValues(value);
|
|
3034
|
+
}
|
|
3035
|
+
const excludedSet = new Set(lookupExcludedValues(value).map((v) => String(v)));
|
|
3036
|
+
if (this.mode() === 'multi-select-tree') {
|
|
3037
|
+
const source = this.resolvedTreeDataSource();
|
|
3038
|
+
if (Array.isArray(source)) {
|
|
3039
|
+
return this.#enabledTreeItems(source)
|
|
3040
|
+
.map((item) => item[this.valueField()])
|
|
3041
|
+
.filter((key) => key != null && !excludedSet.has(String(key)));
|
|
3042
|
+
}
|
|
3043
|
+
return [];
|
|
3044
|
+
}
|
|
3045
|
+
return this.#allListValueKeys().filter((key) => !excludedSet.has(String(key)));
|
|
3046
|
+
}
|
|
3047
|
+
/**
|
|
3048
|
+
* Toggles the default header “Select all” checkbox; updates `value` only (no separate event).
|
|
3049
|
+
*/
|
|
3050
|
+
onSelectAllHeaderChanged(checked) {
|
|
3051
|
+
if (this.disabled() || this.readonly()) {
|
|
3052
|
+
return;
|
|
3053
|
+
}
|
|
3054
|
+
this.#isUserInteraction = true;
|
|
3055
|
+
if (checked) {
|
|
3056
|
+
this.value.set(createLookupSelectAllValue());
|
|
3057
|
+
return;
|
|
3058
|
+
}
|
|
3059
|
+
// A full “select all” has no explicit keys. Turning the header off clears the selection.
|
|
3060
|
+
// With exclusions, keep the items that were still checked as a normal array.
|
|
3061
|
+
const excluded = this.multiExcludedValues();
|
|
3062
|
+
this.value.set(excluded.length > 0 ? this.#selectAllOffToExplicitArray() : []);
|
|
3063
|
+
}
|
|
3064
|
+
/** Toggles select-all from the header row so the checkbox stays pointer-events-none like option rows. */
|
|
3065
|
+
onSelectAllHeaderMouseDown(event) {
|
|
3066
|
+
event.preventDefault();
|
|
3067
|
+
event.stopPropagation();
|
|
3068
|
+
const next = !this.selectAllHeaderChecked() || this.selectAllHeaderIndeterminate();
|
|
3069
|
+
this.onSelectAllHeaderChanged(next);
|
|
3070
|
+
}
|
|
2440
3071
|
#pickFirstMatch() {
|
|
2441
3072
|
const disabledField = this.disabledField();
|
|
2442
3073
|
const source = this.resolvedDataSource();
|
|
@@ -2514,6 +3145,38 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2514
3145
|
event.preventDefault();
|
|
2515
3146
|
}
|
|
2516
3147
|
}
|
|
3148
|
+
/**
|
|
3149
|
+
* On pointer down, select the committed label so the next keystroke replaces it
|
|
3150
|
+
* instead of editing character-by-character (single-select searchable trigger).
|
|
3151
|
+
*/
|
|
3152
|
+
onTriggerPointerDown(event) {
|
|
3153
|
+
if (event.button !== 0 || !this.#shouldSelectCommittedTriggerText()) {
|
|
3154
|
+
return;
|
|
3155
|
+
}
|
|
3156
|
+
const input = event.target instanceof HTMLInputElement ? event.target : this.triggerSearchInput()?.nativeElement;
|
|
3157
|
+
if (!input) {
|
|
3158
|
+
return;
|
|
3159
|
+
}
|
|
3160
|
+
event.preventDefault();
|
|
3161
|
+
input.focus();
|
|
3162
|
+
this.#selectCommittedTriggerText(input);
|
|
3163
|
+
}
|
|
3164
|
+
#shouldSelectCommittedTriggerText() {
|
|
3165
|
+
return (this.isEditableTrigger() &&
|
|
3166
|
+
!this.disabled() &&
|
|
3167
|
+
!this.readonly() &&
|
|
3168
|
+
!this.isMultiple() &&
|
|
3169
|
+
this.hasSelection() &&
|
|
3170
|
+
this.searchText() === this.translatedDisplayText());
|
|
3171
|
+
}
|
|
3172
|
+
#selectCommittedTriggerText(input) {
|
|
3173
|
+
queueMicrotask(() => {
|
|
3174
|
+
if (!this.#shouldSelectCommittedTriggerText()) {
|
|
3175
|
+
return;
|
|
3176
|
+
}
|
|
3177
|
+
input.select();
|
|
3178
|
+
});
|
|
3179
|
+
}
|
|
2517
3180
|
/**
|
|
2518
3181
|
* Returns focus to the search field when list navigation requests it.
|
|
2519
3182
|
*/
|
|
@@ -2547,6 +3210,10 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2547
3210
|
this.sheetSearchText.set('');
|
|
2548
3211
|
this.#appliedSearchQuery.set('');
|
|
2549
3212
|
this.#treeFilterQuery.set('');
|
|
3213
|
+
this.#hydratedTreeNodes.set(undefined);
|
|
3214
|
+
this.#hydrationPromise = undefined;
|
|
3215
|
+
this.#hydrationRevision++;
|
|
3216
|
+
this.treeSearchLoading.set(false);
|
|
2550
3217
|
this.#treeFilterEpoch.update((value) => value + 1);
|
|
2551
3218
|
if (this.#filterApplied) {
|
|
2552
3219
|
this.#filterApplied = false;
|
|
@@ -2615,14 +3282,28 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2615
3282
|
handleMultiToggle(e) {
|
|
2616
3283
|
this.#emitItemClick(e.item);
|
|
2617
3284
|
this.#itemsCache.set(e.value, e.item);
|
|
2618
|
-
const current = this.selectedValues();
|
|
2619
|
-
const exists = current.some((v) => v == e.value);
|
|
2620
|
-
if (!exists) {
|
|
2621
|
-
this.#emitItemSelected(e.item);
|
|
2622
|
-
}
|
|
2623
|
-
const next = exists ? current.filter((v) => !(v == e.value)) : [...current, e.value];
|
|
2624
3285
|
this.#isUserInteraction = true;
|
|
2625
|
-
this.value
|
|
3286
|
+
if (lookupSelectAllActive(this.value())) {
|
|
3287
|
+
const excluded = [...this.multiExcludedValues()];
|
|
3288
|
+
const isExcluded = excluded.some((v) => v == e.value);
|
|
3289
|
+
if (isExcluded) {
|
|
3290
|
+
const nextExcluded = excluded.filter((v) => !(v == e.value));
|
|
3291
|
+
this.value.set(createLookupSelectAllValue(nextExcluded));
|
|
3292
|
+
this.#emitItemSelected(e.item);
|
|
3293
|
+
}
|
|
3294
|
+
else {
|
|
3295
|
+
this.value.set(createLookupSelectAllValue([...excluded, e.value]));
|
|
3296
|
+
}
|
|
3297
|
+
}
|
|
3298
|
+
else {
|
|
3299
|
+
const current = this.selectedValues();
|
|
3300
|
+
const exists = current.some((v) => v == e.value);
|
|
3301
|
+
if (!exists) {
|
|
3302
|
+
this.#emitItemSelected(e.item);
|
|
3303
|
+
}
|
|
3304
|
+
const next = exists ? current.filter((v) => !(v == e.value)) : [...current, e.value];
|
|
3305
|
+
this.value.set(next);
|
|
3306
|
+
}
|
|
2626
3307
|
if (this.isSheetSearchEnabled() && this.sheetSearchText()) {
|
|
2627
3308
|
this.#clearSheetSearch();
|
|
2628
3309
|
}
|
|
@@ -2635,16 +3316,36 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2635
3316
|
* Applies the multi-select-tree selection to the value; the popup stays open.
|
|
2636
3317
|
*/
|
|
2637
3318
|
handleTreeSelectionChange(e) {
|
|
2638
|
-
const prev = new Set(this.selectedValues().map((v) => String(v)));
|
|
2639
|
-
const newlySelected = e.nodes.filter((node) => !prev.has(String(node[this.valueField()])));
|
|
2640
|
-
if (newlySelected.length > 0) {
|
|
2641
|
-
this.#emitItemSelected(newlySelected[0]);
|
|
2642
|
-
}
|
|
2643
3319
|
for (const node of e.nodes) {
|
|
2644
3320
|
this.#itemsCache.set(String(node[this.valueField()]), node);
|
|
2645
3321
|
}
|
|
2646
3322
|
this.#isUserInteraction = true;
|
|
2647
|
-
this.value
|
|
3323
|
+
if (lookupSelectAllActive(this.value())) {
|
|
3324
|
+
const prevEffective = new Set(this.effectiveSelectedKeys().map((v) => String(v)));
|
|
3325
|
+
const nextIds = new Set(e.ids.map(String));
|
|
3326
|
+
const excludedKeys = new Set(this.multiExcludedValues().map((v) => String(v)));
|
|
3327
|
+
for (const id of prevEffective) {
|
|
3328
|
+
if (!nextIds.has(id)) {
|
|
3329
|
+
excludedKeys.add(id);
|
|
3330
|
+
}
|
|
3331
|
+
}
|
|
3332
|
+
for (const id of nextIds) {
|
|
3333
|
+
excludedKeys.delete(id);
|
|
3334
|
+
}
|
|
3335
|
+
const excluded = this.#excludedKeysToValues(excludedKeys, e.nodes);
|
|
3336
|
+
this.value.set(createLookupSelectAllValue(excluded));
|
|
3337
|
+
if (e.nodes.length > 0) {
|
|
3338
|
+
this.#emitItemSelected(e.nodes[0]);
|
|
3339
|
+
}
|
|
3340
|
+
}
|
|
3341
|
+
else {
|
|
3342
|
+
const prev = new Set(this.selectedValues().map((v) => String(v)));
|
|
3343
|
+
const newlySelected = e.nodes.filter((node) => !prev.has(String(node[this.valueField()])));
|
|
3344
|
+
if (newlySelected.length > 0) {
|
|
3345
|
+
this.#emitItemSelected(newlySelected[0]);
|
|
3346
|
+
}
|
|
3347
|
+
this.value.set([...e.ids]);
|
|
3348
|
+
}
|
|
2648
3349
|
if (this.isSheetSearchEnabled() && this.sheetSearchText()) {
|
|
2649
3350
|
this.#clearSheetSearch();
|
|
2650
3351
|
}
|
|
@@ -2660,6 +3361,10 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2660
3361
|
htmlElement: this.nativeElement,
|
|
2661
3362
|
nativeEvent: e,
|
|
2662
3363
|
});
|
|
3364
|
+
const input = e.target instanceof HTMLInputElement ? e.target : this.triggerSearchInput()?.nativeElement;
|
|
3365
|
+
if (input) {
|
|
3366
|
+
this.#selectCommittedTriggerText(input);
|
|
3367
|
+
}
|
|
2663
3368
|
}
|
|
2664
3369
|
/** Forwards native blur from the trigger input. */
|
|
2665
3370
|
emitOnBlur(e) {
|
|
@@ -2729,6 +3434,14 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2729
3434
|
this.#isUserInteraction = true;
|
|
2730
3435
|
this.value.set(this.selectedValues().filter((v) => !(v == value)));
|
|
2731
3436
|
}
|
|
3437
|
+
/** Clears select-all mode from the trigger chip (same as unchecking the header). */
|
|
3438
|
+
removeSelectAllChip(event) {
|
|
3439
|
+
event.stopPropagation();
|
|
3440
|
+
if (this.disabled() || this.readonly()) {
|
|
3441
|
+
return;
|
|
3442
|
+
}
|
|
3443
|
+
this.onSelectAllHeaderChanged(false);
|
|
3444
|
+
}
|
|
2732
3445
|
/** Removes the last chip when Backspace is pressed with an empty trigger input (multi modes). */
|
|
2733
3446
|
#removeLastChipOnBackspace(event) {
|
|
2734
3447
|
if (!this.isMultiple() || !this.#isTriggerInputEmpty(event)) {
|
|
@@ -2736,6 +3449,11 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2736
3449
|
}
|
|
2737
3450
|
const items = this.selectedItems();
|
|
2738
3451
|
if (items.length === 0) {
|
|
3452
|
+
if (this.multiSelectAllActive()) {
|
|
3453
|
+
event.preventDefault();
|
|
3454
|
+
this.onSelectAllHeaderChanged(false);
|
|
3455
|
+
return true;
|
|
3456
|
+
}
|
|
2739
3457
|
return false;
|
|
2740
3458
|
}
|
|
2741
3459
|
event.preventDefault();
|
|
@@ -2770,11 +3488,14 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2770
3488
|
const next = this.isMultiple() ? [] : null;
|
|
2771
3489
|
const current = this.value();
|
|
2772
3490
|
if (this.isMultiple()) {
|
|
2773
|
-
if (
|
|
3491
|
+
if (lookupSelectAllActive(current)) {
|
|
3492
|
+
// fall through to clear
|
|
3493
|
+
}
|
|
3494
|
+
else if (Array.isArray(current) && current.length === 0) {
|
|
2774
3495
|
return;
|
|
2775
3496
|
}
|
|
2776
3497
|
}
|
|
2777
|
-
else if (current
|
|
3498
|
+
else if (lookupBoundValueIsEmpty(current)) {
|
|
2778
3499
|
return;
|
|
2779
3500
|
}
|
|
2780
3501
|
this.#isUserInteraction = isUserInteraction;
|
|
@@ -2831,52 +3552,59 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2831
3552
|
byParent.set(key, request);
|
|
2832
3553
|
return request;
|
|
2833
3554
|
}
|
|
2834
|
-
#nodeMayHaveChildren(node) {
|
|
2835
|
-
const raw = node['children'];
|
|
2836
|
-
if (Array.isArray(raw) && raw.length > 0) {
|
|
2837
|
-
return true;
|
|
2838
|
-
}
|
|
2839
|
-
const count = node['childrenCount'];
|
|
2840
|
-
if (typeof count === 'number' && count > 0) {
|
|
2841
|
-
return true;
|
|
2842
|
-
}
|
|
2843
|
-
return node['hasChild'] === true || node['hasChildren'] === true;
|
|
2844
|
-
}
|
|
2845
3555
|
/**
|
|
2846
|
-
*
|
|
2847
|
-
* so a query can match sub-items that have not been expanded yet.
|
|
3556
|
+
* Hydrates a lazy tree once per popup open so whole-tree search can filter in memory.
|
|
2848
3557
|
*/
|
|
2849
|
-
|
|
2850
|
-
const
|
|
2851
|
-
|
|
2852
|
-
|
|
2853
|
-
|
|
2854
|
-
|
|
2855
|
-
|
|
2856
|
-
|
|
3558
|
+
#ensureHydratedTree() {
|
|
3559
|
+
const cached = this.#hydratedTreeNodes();
|
|
3560
|
+
if (cached) {
|
|
3561
|
+
return Promise.resolve(cached);
|
|
3562
|
+
}
|
|
3563
|
+
if (this.#hydrationPromise) {
|
|
3564
|
+
return this.#hydrationPromise;
|
|
3565
|
+
}
|
|
3566
|
+
const source = this.treeDataSource();
|
|
3567
|
+
if (!source || Array.isArray(source)) {
|
|
3568
|
+
return Promise.resolve([]);
|
|
3569
|
+
}
|
|
3570
|
+
const revision = this.#hydrationRevision;
|
|
3571
|
+
this.treeSearchLoading.set(true);
|
|
3572
|
+
this.#hydrationPromise = (async () => {
|
|
3573
|
+
const roots = await this.#loadCachedTreeNodes(source, undefined);
|
|
3574
|
+
const hydrated = await hydrateLookupTree(roots, (id) => this.#loadCachedTreeNodes(source, id), {
|
|
3575
|
+
valueField: this.valueField(),
|
|
3576
|
+
isCancelled: () => revision !== this.#hydrationRevision,
|
|
3577
|
+
});
|
|
3578
|
+
if (revision !== this.#hydrationRevision) {
|
|
3579
|
+
return [];
|
|
2857
3580
|
}
|
|
2858
|
-
|
|
2859
|
-
|
|
2860
|
-
|
|
3581
|
+
this.#hydratedTreeNodes.set(hydrated);
|
|
3582
|
+
this.treeSearchLoading.set(false);
|
|
3583
|
+
this.#treeFilterEpoch.update((value) => value + 1);
|
|
3584
|
+
return hydrated;
|
|
3585
|
+
})().finally(() => {
|
|
3586
|
+
if (revision === this.#hydrationRevision) {
|
|
3587
|
+
this.#hydrationPromise = undefined;
|
|
2861
3588
|
}
|
|
2862
|
-
|
|
2863
|
-
|
|
2864
|
-
|
|
2865
|
-
|
|
2866
|
-
|
|
2867
|
-
}
|
|
2868
|
-
async #loadFilteredCachedTreeNodes(source, nodeId, query) {
|
|
2869
|
-
const nodes = await this.#loadCachedTreeNodes(source, nodeId);
|
|
2870
|
-
const hydrated = await this.#hydrateTreeChildrenForSearch(source, nodes);
|
|
2871
|
-
return filterTreeNodes(hydrated, this.textField(), query, (text) => this.#translateItemText(text));
|
|
3589
|
+
if (revision === this.#hydrationRevision && !this.#hydratedTreeNodes()) {
|
|
3590
|
+
this.treeSearchLoading.set(false);
|
|
3591
|
+
}
|
|
3592
|
+
});
|
|
3593
|
+
return this.#hydrationPromise;
|
|
2872
3594
|
}
|
|
2873
3595
|
#applyFilterNow(text) {
|
|
2874
3596
|
const query = text?.trim() ?? '';
|
|
2875
3597
|
this.#appliedSearchQuery.set(query);
|
|
2876
3598
|
if (this.#isTreeOnlySearchMode()) {
|
|
2877
3599
|
this.#treeFilterQuery.set(query);
|
|
2878
|
-
this.#treeFilterEpoch.update((value) => value + 1);
|
|
2879
3600
|
this.#filterApplied = query.length > 0;
|
|
3601
|
+
this.#treeFilterEpoch.update((value) => value + 1);
|
|
3602
|
+
if (query) {
|
|
3603
|
+
const source = this.treeDataSource();
|
|
3604
|
+
if (source && typeof source === 'function') {
|
|
3605
|
+
void this.#ensureHydratedTree();
|
|
3606
|
+
}
|
|
3607
|
+
}
|
|
2880
3608
|
return;
|
|
2881
3609
|
}
|
|
2882
3610
|
const source = this.resolvedDataSource();
|
|
@@ -2905,7 +3633,34 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2905
3633
|
this.#applyFilterNow(text);
|
|
2906
3634
|
}, 300);
|
|
2907
3635
|
}
|
|
3636
|
+
#excludedKeysToValues(excludedKeys, nodes) {
|
|
3637
|
+
const field = this.valueField();
|
|
3638
|
+
const result = [];
|
|
3639
|
+
for (const key of excludedKeys) {
|
|
3640
|
+
const fromNode = nodes.find((n) => String(n[field]) === key);
|
|
3641
|
+
result.push(fromNode ? fromNode[field] : key);
|
|
3642
|
+
}
|
|
3643
|
+
return result;
|
|
3644
|
+
}
|
|
2908
3645
|
async #resolveSelectedItems(values) {
|
|
3646
|
+
if (this.isMultiple() && lookupSelectAllActive(this.value())) {
|
|
3647
|
+
const revision = ++this.#resolveRevision;
|
|
3648
|
+
if (revision !== this.#resolveRevision) {
|
|
3649
|
+
return;
|
|
3650
|
+
}
|
|
3651
|
+
this.selectedItems.set([]);
|
|
3652
|
+
if (this.#selectionInitialized) {
|
|
3653
|
+
this.onSelectionChanged.emit({
|
|
3654
|
+
component: this,
|
|
3655
|
+
htmlElement: this.nativeElement,
|
|
3656
|
+
isUserInteraction: this.#isUserInteraction,
|
|
3657
|
+
items: [],
|
|
3658
|
+
value: this.value(),
|
|
3659
|
+
});
|
|
3660
|
+
}
|
|
3661
|
+
this.#selectionInitialized = true;
|
|
3662
|
+
return;
|
|
3663
|
+
}
|
|
2909
3664
|
const revision = ++this.#resolveRevision;
|
|
2910
3665
|
const resolved = await Promise.all(values.map((value) => Promise.resolve(this.#resolveItem(value))));
|
|
2911
3666
|
if (revision !== this.#resolveRevision) {
|
|
@@ -2990,13 +3745,7 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
2990
3745
|
return null;
|
|
2991
3746
|
}
|
|
2992
3747
|
#valuesEqual(a, b) {
|
|
2993
|
-
|
|
2994
|
-
return true;
|
|
2995
|
-
}
|
|
2996
|
-
if (Array.isArray(a) && Array.isArray(b)) {
|
|
2997
|
-
return a.length === b.length && a.every((item, index) => item == b[index]);
|
|
2998
|
-
}
|
|
2999
|
-
return false;
|
|
3748
|
+
return lookupMultiValuesEqual(a, b);
|
|
3000
3749
|
}
|
|
3001
3750
|
/** Emits onValueChanged when the value actually changes (skips the initial value). */
|
|
3002
3751
|
#emitValueChanged(value) {
|
|
@@ -3032,22 +3781,32 @@ class AXLookupComponent extends NXValueComponent {
|
|
|
3032
3781
|
#translateItemText(text) {
|
|
3033
3782
|
return this.#translation.translateSync(text, { waitForLoad: true });
|
|
3034
3783
|
}
|
|
3035
|
-
|
|
3036
|
-
|
|
3784
|
+
/** Fast path for search filtering — skips sync translation for plain labels. */
|
|
3785
|
+
#translateItemTextForFilter(text) {
|
|
3786
|
+
const value = String(text ?? '');
|
|
3787
|
+
if (!value.startsWith('@')) {
|
|
3788
|
+
return value;
|
|
3789
|
+
}
|
|
3790
|
+
return this.#translation.translateSync(value, { waitForLoad: false });
|
|
3791
|
+
}
|
|
3792
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
3793
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.1.6", type: AXLookupComponent, isStandalone: true, selector: "ax-lookup", inputs: { name: { classPropertyName: "name", publicName: "name", isSignal: true, isRequired: false, transformFunction: null }, mode: { classPropertyName: "mode", publicName: "mode", isSignal: true, isRequired: false, transformFunction: null }, dataSource: { classPropertyName: "dataSource", publicName: "dataSource", isSignal: true, isRequired: false, transformFunction: null }, treeDataSource: { classPropertyName: "treeDataSource", publicName: "treeDataSource", isSignal: true, isRequired: false, transformFunction: null }, valueField: { classPropertyName: "valueField", publicName: "valueField", isSignal: true, isRequired: false, transformFunction: null }, textField: { classPropertyName: "textField", publicName: "textField", isSignal: true, isRequired: false, transformFunction: null }, disabledField: { classPropertyName: "disabledField", publicName: "disabledField", isSignal: true, isRequired: false, transformFunction: null }, columns: { classPropertyName: "columns", publicName: "columns", isSignal: true, isRequired: false, transformFunction: null }, treeParentField: { classPropertyName: "treeParentField", publicName: "treeParentField", isSignal: true, isRequired: false, transformFunction: null }, hasChildrenField: { classPropertyName: "hasChildrenField", publicName: "hasChildrenField", isSignal: true, isRequired: false, transformFunction: null }, searchable: { classPropertyName: "searchable", publicName: "searchable", isSignal: true, isRequired: false, transformFunction: null }, adaptivityEnabled: { classPropertyName: "adaptivityEnabled", publicName: "adaptivityEnabled", isSignal: true, isRequired: false, transformFunction: null }, caption: { classPropertyName: "caption", publicName: "caption", isSignal: true, isRequired: false, transformFunction: null }, alternate: { classPropertyName: "alternate", publicName: "alternate", isSignal: true, isRequired: false, transformFunction: null }, searchPlaceholder: { classPropertyName: "searchPlaceholder", publicName: "searchPlaceholder", isSignal: true, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: true, isRequired: false, transformFunction: null }, disabled: { classPropertyName: "disabled", publicName: "disabled", isSignal: true, isRequired: false, transformFunction: null }, readonly: { classPropertyName: "readonly", publicName: "readonly", isSignal: true, isRequired: false, transformFunction: null }, look: { classPropertyName: "look", publicName: "look", isSignal: true, isRequired: false, transformFunction: null }, itemHeight: { classPropertyName: "itemHeight", publicName: "itemHeight", isSignal: true, isRequired: false, transformFunction: null }, maxVisibleItems: { classPropertyName: "maxVisibleItems", publicName: "maxVisibleItems", isSignal: true, isRequired: false, transformFunction: null }, treeSelectionBehavior: { classPropertyName: "treeSelectionBehavior", publicName: "treeSelectionBehavior", isSignal: true, isRequired: false, transformFunction: null }, highlightSearch: { classPropertyName: "highlightSearch", publicName: "highlightSearch", isSignal: true, isRequired: false, transformFunction: null }, allowSelectAll: { classPropertyName: "allowSelectAll", publicName: "allowSelectAll", isSignal: true, isRequired: false, transformFunction: null }, itemTemplate: { classPropertyName: "itemTemplate", publicName: "itemTemplate", isSignal: true, isRequired: false, transformFunction: null }, selectedTemplate: { classPropertyName: "selectedTemplate", publicName: "selectedTemplate", isSignal: true, isRequired: false, transformFunction: null }, emptyTemplate: { classPropertyName: "emptyTemplate", publicName: "emptyTemplate", isSignal: true, isRequired: false, transformFunction: null }, loadingTemplate: { classPropertyName: "loadingTemplate", publicName: "loadingTemplate", isSignal: true, isRequired: false, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: false, transformFunction: null }, valueItems: { classPropertyName: "valueItems", publicName: "valueItems", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { look: "lookChange", value: "valueChange", onValueChanged: "onValueChanged", onSelectionChanged: "onSelectionChanged", onFocus: "onFocus", onBlur: "onBlur", onItemClick: "onItemClick", onItemSelected: "onItemSelected", onOpened: "onOpened", onClosed: "onClosed" }, providers: [
|
|
3037
3794
|
{ provide: AXComponent, useExisting: AXLookupComponent },
|
|
3038
3795
|
{ provide: AXClearableComponent, useExisting: AXLookupComponent },
|
|
3039
3796
|
{ provide: AXClosableComponent, useExisting: AXLookupComponent },
|
|
3040
3797
|
{ provide: AXValuableComponent, useExisting: AXLookupComponent },
|
|
3041
|
-
], viewQueries: [{ propertyName: "popoverRef", first: true, predicate: AXPopoverComponent, descendants: true, isSignal: true }, { propertyName: "originRef", first: true, predicate: ["origin"], descendants: true, isSignal: true }, { propertyName: "popupRef", first: true, predicate: ["popup"], descendants: true, isSignal: true }, { propertyName: "triggerSearchInput", first: true, predicate: ["triggerSearchInput"], descendants: true, isSignal: true }, { propertyName: "listView", first: true, predicate: AXLookupListViewBase, descendants: true, isSignal: true }, { propertyName: "dropDownTreeView", first: true, predicate: AXLookupDropDownTreeComponent, descendants: true, isSignal: true }, { propertyName: "multiSelectTreeView", first: true, predicate: AXLookupMultiSelectTreeComponent, descendants: true, isSignal: true }, { propertyName: "sheetSearchRef", first: true, predicate: ["sheetSearch"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #origin\n class=\"ax-editor-container ax-{{ look() }} ax-default\"\n [class.ax-lookup-trigger]=\"!isEditableTrigger()\"\n [class.ax-lookup-trigger-multiple]=\"isMultiple()\"\n [class.ax-state-disabled]=\"disabled()\"\n [class.ax-state-readonly]=\"readonly()\"\n (click)=\"onTriggerClick()\"\n>\n <ng-content select=\"ax-prefix\"></ng-content>\n\n @if (isMultiple()) {\n <div class=\"ax-lookup-chips\">\n @for (item of selectedItems(); track trackSelectedKey(item)) {\n <ax-chips class=\"ax-sm\" look=\"fill\" [text]=\"selectedTemplate() ? '' : (getItemText(item) | translate | async)\">\n @if (selectedTemplate()) {\n <ax-prefix>\n <ng-container\n [ngTemplateOutlet]=\"selectedTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </ax-prefix>\n }\n @if (!disabled() && !readonly()) {\n <ax-suffix>\n <button type=\"button\" tabindex=\"-1\" (click)=\"removeChip($event, item)\">\n <span class=\"ax-icon ax-icon-close\"></span>\n </button>\n </ax-suffix>\n }\n </ax-chips>\n }\n <input\n #triggerSearchInput\n type=\"text\"\n class=\"ax-input ax-lookup-trigger-search\"\n [class.ax-lookup-select-input]=\"!isEditableTrigger()\"\n [placeholder]=\"triggerSearchPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly() || !isEditableTrigger()\"\n [attr.inputmode]=\"isEditableTrigger() ? null : 'none'\"\n [value]=\"searchText()\"\n (input)=\"onTriggerSearchInput($any($event.target).value)\"\n (keydown)=\"onTriggerKeydown($event)\"\n (beforeinput)=\"onBeforeInput($event)\"\n (focus)=\"emitOnFocus($event)\"\n (blur)=\"emitOnBlur($event)\"\n />\n </div>\n } @else {\n <div class=\"ax-lookup-value\">\n @if (showSelectedTemplate()) {\n <div class=\"ax-lookup-selected-content\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"selectedTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedItems()[0] }\"\n />\n </div>\n }\n <input\n #triggerSearchInput\n type=\"text\"\n class=\"ax-input\"\n [class.ax-lookup-select-input]=\"!isEditableTrigger()\"\n [class.ax-lookup-input-overlay]=\"showSelectedTemplate()\"\n [placeholder]=\"translatedPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly() || !isEditableTrigger()\"\n [attr.inputmode]=\"isEditableTrigger() ? null : 'none'\"\n [value]=\"searchText()\"\n (input)=\"onTriggerSearchInput($any($event.target).value)\"\n (keydown)=\"onTriggerKeydown($event)\"\n (beforeinput)=\"onBeforeInput($event)\"\n (focus)=\"emitOnFocus($event)\"\n (blur)=\"emitOnBlur($event)\"\n />\n </div>\n }\n\n @if (selectedValues().length > 0 && !disabled() && !readonly()) {\n <ng-content select=\"ax-clear-button\"></ng-content>\n }\n\n <button\n type=\"button\"\n class=\"ax-general-button-icon\"\n tabindex=\"-1\"\n [disabled]=\"disabled() || readonly()\"\n >\n <span\n class=\"ax-icon\"\n [class.ax-icon-chevron-down]=\"!expanded()\"\n [class.ax-icon-chevron-up]=\"expanded()\"\n ></span>\n </button>\n <ng-content select=\"ax-suffix\"></ng-content>\n</div>\n\n<ax-popover\n [target]=\"origin\"\n [openOn]=\"'manual'\"\n [closeOn]=\"isActionsheetStyle() ? 'manual' : 'clickOut'\"\n [closeOnScroll]=\"!isActionsheetStyle()\"\n [placement]=\"'bottom-start'\"\n [width]=\"isActionsheetStyle() ? '100%' : origin.offsetWidth + 'px'\"\n [adaptivityEnabled]=\"isActionsheetStyle()\"\n [disabled]=\"disabled() || readonly()\"\n (onClosed)=\"onPopoverClosed()\"\n>\n <div\n #popup\n class=\"ax-lookup-popup\"\n [class.ax-is-actionsheet]=\"isActionsheetStyle()\"\n [class.ax-is-alternate]=\"alternate()\"\n (keydown.escape)=\"close()\"\n >\n @if (isActionsheetStyle()) {\n <ax-header class=\"ax-solid\">\n <ax-title>{{ actionsheetTitle() }}</ax-title>\n @if (isMultiple()) {\n <ax-button\n class=\"ax-sm\"\n color=\"primary\"\n look=\"solid\"\n text=\"@acorex:common.actions.apply\"\n (onClick)=\"close()\"\n ></ax-button>\n } @else {\n <ax-close-button></ax-close-button>\n }\n </ax-header>\n }\n @if (isSheetSearchEnabled()) {\n <div class=\"ax-lookup-sheet-search\">\n <ax-search-box\n #sheetSearch\n class=\"ax-sm\"\n look=\"fill\"\n [autoSearch]=\"false\"\n [delayTime]=\"0\"\n [placeholder]=\"searchPlaceholder()\"\n (onValueChanged)=\"onSheetSearchInput()\"\n (onKeyUp)=\"onSheetSearchInput()\"\n (onKeyDown)=\"onSheetSearchKeydown($event)\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </div>\n }\n <ng-content select=\"ax-header\"></ng-content>\n @if (expanded()) {\n @switch (mode()) {\n @case ('drop-down-list') {\n <ax-lookup-drop-down-list\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n (navigateOut)=\"onListNavigateOut($event)\"\n />\n }\n @case ('multi-select') {\n <ax-lookup-multi-select\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleMultiToggle($event)\"\n (navigateOut)=\"onListNavigateOut($event)\"\n />\n }\n @case ('drop-down-tree') {\n <ax-lookup-drop-down-tree\n [dataSource]=\"resolvedTreeDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [nodeTemplate]=\"$any(itemTemplate())\"\n [emptyTemplate]=\"emptyTemplate()\"\n [filterKey]=\"treeFilterKey()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n />\n }\n @case ('multi-select-tree') {\n <ax-lookup-multi-select-tree\n [dataSource]=\"resolvedTreeDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [selectionBehavior]=\"treeSelectionBehavior()\"\n [nodeTemplate]=\"$any(itemTemplate())\"\n [emptyTemplate]=\"emptyTemplate()\"\n [filterKey]=\"treeFilterKey()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (selectionChange)=\"handleTreeSelectionChange($event)\"\n />\n }\n @case ('multi-column') {\n <ax-lookup-multi-column\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [columns]=\"columns()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n />\n }\n @case ('multi-column-tree') {\n <ax-lookup-multi-column-tree\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [parentField]=\"treeParentField()\"\n [hasChildrenField]=\"hasChildrenField()\"\n [selectedValues]=\"selectedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [columns]=\"columns()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n />\n }\n }\n }\n <ng-content select=\"ax-footer\"></ng-content>\n </div>\n</ax-popover>\n<ng-content select=\"ax-validation-rule\"></ng-content>\n", styles: ["@layer properties;@layer components{ax-lookup{display:block;width:100%}ax-lookup .ax-editor-container{justify-content:flex-start;gap:calc(var(--spacing, .25rem) * 1)}ax-lookup .ax-lookup-trigger{cursor:pointer;-webkit-user-select:none;user-select:none}ax-lookup .ax-lookup-trigger-multiple{height:auto;min-height:calc(var(--spacing, .25rem) * 9);padding-block:calc(var(--spacing, .25rem) * 1)}ax-lookup .ax-lookup-value{position:relative;display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;align-items:center;overflow:hidden}ax-lookup .ax-lookup-select-input{cursor:pointer;caret-color:transparent;-webkit-user-select:none;user-select:none}ax-lookup .ax-lookup-selected-content{pointer-events:none;position:relative;z-index:0;display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;align-items:center;overflow:hidden}ax-lookup .ax-lookup-input-overlay{position:absolute;inset:calc(var(--spacing, .25rem) * 0);z-index:10;margin:calc(var(--spacing, .25rem) * 0)!important;height:100%;width:100%;border-style:var(--tw-border-style);border-width:0px;background-color:transparent;padding:calc(var(--spacing, .25rem) * 0)!important;color:transparent;caret-color:transparent}ax-lookup .ax-lookup-chips{display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;flex-wrap:wrap;align-items:center;gap:calc(var(--spacing, .25rem) * 1)}ax-lookup .ax-lookup-trigger-search{margin:calc(var(--spacing, .25rem) * 0)!important;height:calc(var(--spacing, .25rem) * 7.5);width:auto!important;min-width:calc(var(--spacing, .25rem) * 16);flex:1;flex-basis:calc(var(--spacing, .25rem) * 16)}ax-lookup .ax-lookup-placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){ax-lookup .ax-lookup-placeholder{color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 50%,transparent)}}ax-lookup ax-chips ax-prefix,ax-lookup ax-chips ax-suffix{padding:calc(var(--spacing, .25rem) * 0)!important}ax-lookup ax-chips ax-suffix button{display:flex;cursor:pointer;align-items:center;border-style:var(--tw-border-style);border-width:0px;background-color:transparent;padding:calc(var(--spacing, .25rem) * 0)}.ax-lookup-popup{--ax-comp-lookup-highlight-bg-color: var(--ax-sys-color-warning-lighter-surface);--ax-comp-lookup-highlight-text-color: var(--ax-sys-color-on-warning-lighter-surface);--ax-comp-lookup-highlight-border-color: var(--ax-sys-color-warning-500);box-sizing:border-box;display:flex;width:100%;max-width:100%;min-width:calc(var(--spacing, .25rem) * 0);flex-direction:column;overflow:hidden;border-radius:var(--ax-sys-border-radius);border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--ax-sys-color-border-surface));background-color:rgba(var(--ax-sys-color-lightest-surface));--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ax-lookup-popup .ax-highlight{display:inline;margin:0;padding:0;background-color:rgb(var(--ax-comp-lookup-highlight-bg-color));color:rgb(var(--ax-comp-lookup-highlight-text-color));font-weight:inherit;box-shadow:none}.ax-lookup-popup:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-darkest-surface))}.ax-lookup-popup.ax-is-actionsheet{height:100dvh;max-height:100dvh;min-height:100dvh;border-bottom-right-radius:0;border-bottom-left-radius:0;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ax-lookup-popup.ax-is-actionsheet>ax-header.ax-solid{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}.ax-lookup-popup.ax-is-actionsheet>ax-header.ax-solid ax-title{min-width:calc(var(--spacing, .25rem) * 0);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ));--tw-leading: calc(var(--spacing, .25rem) * 6);line-height:calc(var(--spacing, .25rem) * 6);--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500)}.ax-lookup-popup.ax-is-actionsheet>ax-header.ax-solid ax-button{flex-shrink:0}.ax-lookup-popup.ax-is-actionsheet ax-lookup-drop-down-list,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-select,.ax-lookup-popup.ax-is-actionsheet ax-lookup-drop-down-tree,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-select-tree,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-column,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-column-tree{display:flex;min-height:calc(var(--spacing, .25rem) * 0);flex:1;flex-direction:column;height:auto!important}.ax-lookup-popup.ax-is-actionsheet .ax-lookup-viewport{min-height:calc(var(--spacing, .25rem) * 0);flex:1;height:auto!important;max-height:none!important}.ax-lookup-popup.ax-is-actionsheet .ax-lookup-tree{max-height:none;min-height:calc(var(--spacing, .25rem) * 0);flex:1;overflow:auto}.ax-lookup-popup.ax-is-actionsheet .ax-lookup-empty{display:flex;flex:1;align-items:center;justify-content:center}:is(.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column,.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column-tree) .ax-lookup-multi-column-table,:is(.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column,.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column-tree) ax-data-table{height:100%;min-height:calc(var(--spacing, .25rem) * 0)}.ax-lookup-popup .ax-lookup-sheet-search{flex-shrink:0;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface));padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 2)}.ax-lookup-popup>ax-header:not(.ax-solid),.ax-lookup-popup>ax-footer{flex-shrink:0;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}.ax-lookup-popup>ax-header:not(.ax-solid){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.ax-lookup-popup>ax-footer{border-top-style:var(--tw-border-style);border-top-width:1px}.ax-lookup-viewport{width:100%;min-width:calc(var(--spacing, .25rem) * 0);overflow-x:hidden}.ax-lookup-empty{display:flex;min-height:calc(var(--spacing, .25rem) * 12);width:100%;align-items:center;justify-content:center;padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 3);text-align:center;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-empty{color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 60%,transparent)}}.ax-lookup-option-host{box-sizing:border-box;cursor:pointer;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;--tw-outline-style: none;outline-style:none}.ax-lookup-option-host.ax-state-alternate{background-color:rgba(var(--ax-sys-color-light-surface))}.ax-lookup-option-host.ax-state-alternate:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-surface))}.ax-lookup-option-host:hover,.ax-lookup-option-host.ax-state-active{background-color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host:hover,.ax-lookup-option-host.ax-state-active{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 10%,transparent)}}.ax-lookup-option-host.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-alternate.ax-state-active{background-color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-alternate.ax-state-active{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 15%,transparent)}}.ax-lookup-option-host.ax-state-selected,.ax-lookup-option-host.ax-state-selected:hover,.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate,.ax-lookup-option-host.ax-state-selected.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active{background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}:is(.ax-lookup-option-host.ax-state-selected,.ax-lookup-option-host.ax-state-selected:hover,.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate,.ax-lookup-option-host.ax-state-selected.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-option-host.ax-state-selected,.ax-lookup-option-host.ax-state-selected:hover,.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate,.ax-lookup-option-host.ax-state-selected.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 25%,transparent)}}.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active{background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-lightest-surface)) 80%,transparent)}}:is(.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 40%,transparent)}}.ax-lookup-option-host.ax-lookup-option-multiple{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2)}.ax-lookup-option-host.ax-lookup-option-multiple:not(.ax-lookup-option){padding-inline:calc(var(--spacing, .25rem) * 3)}.ax-lookup-option-host .ax-lookup-checkbox{pointer-events:none;display:inline-flex;flex-shrink:0;align-items:center}.ax-lookup-option-host .ax-lookup-option-loading{width:100%;padding-inline:calc(var(--spacing, .25rem) * 3);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host .ax-lookup-option-loading{color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 50%,transparent)}}.ax-lookup-option{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);padding-inline:calc(var(--spacing, .25rem) * 3);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}.ax-lookup-option.ax-state-selected{color:rgba(var(--ax-sys-color-primary-surface))}.ax-lookup-option.ax-lookup-option-multiple{justify-content:flex-start}.ax-lookup-option .ax-lookup-option-text{min-width:calc(var(--spacing, .25rem) * 0);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ax-lookup-option .ax-lookup-option-check{margin-inline-start:auto;flex-shrink:0;color:rgba(var(--ax-sys-color-primary-surface))}ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree{display:block;min-height:calc(var(--spacing, .25rem) * 0);width:100%}:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) .ax-lookup-multi-column-table,:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) ax-data-table{height:100%;min-height:calc(var(--spacing, .25rem) * 0);border-style:var(--tw-border-style)!important;border-width:0px!important}:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) tr.ax-state-selected{background-color:rgba(var(--ax-sys-color-primary-surface))}@supports (color: color-mix(in lab,red,red)){:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) tr.ax-state-selected{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-surface)) 10%,transparent)}}:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) tr.ax-state-disabled{pointer-events:none;opacity:50%}.ax-lookup-tree{max-height:calc(var(--spacing, .25rem) * 80);overflow:auto;padding:calc(var(--spacing, .25rem) * 2)}.ax-lookup-tree .ax-tree-view-node{margin-block:0;border-radius:0}.ax-lookup-tree .ax-tree-view-node.ax-state-alternate{background-color:rgba(var(--ax-sys-color-light-surface))}.ax-lookup-tree .ax-tree-view-node.ax-state-alternate:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-surface))}.ax-lookup-tree .ax-tree-view-node.ax-state-alternate:hover:not(.ax-dragging){background-color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-tree .ax-tree-view-node.ax-state-alternate:hover:not(.ax-dragging){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 15%,transparent)}}.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected,.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected{background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected,.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected,.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 25%,transparent)}}.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging){background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-lightest-surface)) 80%,transparent)}}:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging)):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging)):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 40%,transparent)}}}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive{background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);border-color:rgba(var(--ax-sys-color-border-surface))}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-lighter);color:var(--color-on-lighter);border-color:var(--color-border-lighter)}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){border-color:rgba(var(--ax-sys-color-border-light-surface))}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:not(.ax-state-disabled):hover{background-color:var(--color-lighter);color:var(--color-on-lighter);border-color:var(--color-border-lighter)}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:not(.ax-state-disabled):hover:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-light);color:var(--color-on-light);border-color:var(--color-border-light)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: AXChipsComponent, selector: "ax-chips", inputs: ["tabIndex", "color", "look", "text"], outputs: ["textChange"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i1$1.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i1$1.AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["closeAll", "icon"] }, { kind: "component", type: i1$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "component", type: AXPopoverComponent, selector: "ax-popover", inputs: ["width", "disablePanelClass", "visualContextScope", "disabled", "offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "openAfter", "closeAfter", "closeOnScroll", "backdropClass", "panelClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "component", type: AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type", "autoSearch"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "component", type: AXLookupDropDownListComponent, selector: "ax-lookup-drop-down-list" }, { kind: "component", type: AXLookupMultiSelectComponent, selector: "ax-lookup-multi-select" }, { kind: "component", type: AXLookupDropDownTreeComponent, selector: "ax-lookup-drop-down-tree", inputs: ["dataSource", "valueField", "textField", "disabledField", "selectedValues", "nodeTemplate", "emptyTemplate", "alternate", "filterKey", "highlightText"], outputs: ["itemClick"] }, { kind: "component", type: AXLookupMultiSelectTreeComponent, selector: "ax-lookup-multi-select-tree", inputs: ["dataSource", "valueField", "textField", "disabledField", "selectedValues", "selectionBehavior", "nodeTemplate", "emptyTemplate", "alternate", "filterKey", "highlightText"], outputs: ["selectionChange"] }, { kind: "component", type: AXLookupMultiColumnComponent, selector: "ax-lookup-multi-column", inputs: ["dataSource", "valueField", "textField", "disabledField", "selectedValues", "itemHeight", "maxVisibleItems", "columns", "itemTemplate", "emptyTemplate", "loadingTemplate", "alternate", "highlightText"], outputs: ["itemClick"] }, { kind: "component", type: AXLookupMultiColumnTreeComponent, selector: "ax-lookup-multi-column-tree", inputs: ["dataSource", "valueField", "textField", "disabledField", "parentField", "hasChildrenField", "selectedValues", "itemHeight", "maxVisibleItems", "columns", "itemTemplate", "emptyTemplate", "loadingTemplate", "alternate", "highlightText"], outputs: ["itemClick"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
3798
|
+
], queries: [{ propertyName: "projectedHeader", first: true, predicate: ["ax-header"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "popoverRef", first: true, predicate: AXPopoverComponent, descendants: true, isSignal: true }, { propertyName: "originRef", first: true, predicate: ["origin"], descendants: true, isSignal: true }, { propertyName: "popupRef", first: true, predicate: ["popup"], descendants: true, isSignal: true }, { propertyName: "triggerSearchInput", first: true, predicate: ["triggerSearchInput"], descendants: true, isSignal: true }, { propertyName: "listView", first: true, predicate: AXLookupListViewBase, descendants: true, isSignal: true }, { propertyName: "multiTreeView", first: true, predicate: AXLookupMultiSelectTreeComponent, descendants: true, isSignal: true }, { propertyName: "sheetSearchRef", first: true, predicate: ["sheetSearch"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "<div\n #origin\n class=\"ax-editor-container ax-{{ look() }} ax-default\"\n [class.ax-lookup-trigger]=\"!isEditableTrigger()\"\n [class.ax-lookup-trigger-multiple]=\"isMultiple()\"\n [class.ax-state-disabled]=\"disabled()\"\n [class.ax-state-readonly]=\"readonly()\"\n (click)=\"onTriggerClick()\"\n>\n <ng-content select=\"ax-prefix\"></ng-content>\n\n @if (isMultiple()) {\n <div class=\"ax-lookup-chips\">\n @if (multiSelectAllActive()) {\n <ax-chips class=\"ax-sm\" look=\"fill\" [text]=\"'@acorex:lookup.selectAll' | translate | async\">\n @if (!disabled() && !readonly()) {\n <ax-suffix>\n <button type=\"button\" tabindex=\"-1\" (click)=\"removeSelectAllChip($event)\">\n <span class=\"ax-icon ax-icon-close\"></span>\n </button>\n </ax-suffix>\n }\n </ax-chips>\n }\n @for (item of selectedItems(); track trackSelectedKey(item)) {\n @let chipText = (getItemText(item) | translate | async) ?? '';\n <ax-chips\n class=\"ax-sm\"\n look=\"fill\"\n [text]=\"selectedTemplate() ? '' : chipText\"\n [axTooltip]=\"selectedTemplate() ? '' : chipText\"\n [axTooltipOverflowOnly]=\"true\"\n >\n @if (selectedTemplate()) {\n <ax-prefix>\n <ng-container\n [ngTemplateOutlet]=\"selectedTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </ax-prefix>\n }\n @if (!disabled() && !readonly()) {\n <ax-suffix>\n <button type=\"button\" tabindex=\"-1\" (click)=\"removeChip($event, item)\">\n <span class=\"ax-icon ax-icon-close\"></span>\n </button>\n </ax-suffix>\n }\n </ax-chips>\n }\n <input\n #triggerSearchInput\n type=\"text\"\n class=\"ax-input ax-lookup-trigger-search\"\n [class.ax-lookup-select-input]=\"!isEditableTrigger()\"\n [placeholder]=\"triggerSearchPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly() || !isEditableTrigger()\"\n [attr.inputmode]=\"isEditableTrigger() ? null : 'none'\"\n [value]=\"searchText()\"\n (input)=\"onTriggerSearchInput($any($event.target).value)\"\n (keydown)=\"onTriggerKeydown($event)\"\n (beforeinput)=\"onBeforeInput($event)\"\n (pointerdown)=\"onTriggerPointerDown($event)\"\n (focus)=\"emitOnFocus($event)\"\n (blur)=\"emitOnBlur($event)\"\n />\n </div>\n } @else {\n <div class=\"ax-lookup-value\">\n @if (showSelectedTemplate()) {\n <div class=\"ax-lookup-selected-content\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"selectedTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedItems()[0] }\"\n />\n </div>\n }\n <input\n #triggerSearchInput\n type=\"text\"\n class=\"ax-input\"\n [class.ax-lookup-select-input]=\"!isEditableTrigger()\"\n [class.ax-lookup-input-overlay]=\"showSelectedTemplate()\"\n [axTooltip]=\"expanded() || showSelectedTemplate() ? '' : translatedDisplayText()\"\n [axTooltipOverflowOnly]=\"true\"\n [placeholder]=\"translatedPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly() || !isEditableTrigger()\"\n [attr.inputmode]=\"isEditableTrigger() ? null : 'none'\"\n [value]=\"searchText()\"\n (input)=\"onTriggerSearchInput($any($event.target).value)\"\n (keydown)=\"onTriggerKeydown($event)\"\n (beforeinput)=\"onBeforeInput($event)\"\n (pointerdown)=\"onTriggerPointerDown($event)\"\n (focus)=\"emitOnFocus($event)\"\n (blur)=\"emitOnBlur($event)\"\n />\n </div>\n }\n\n @if (hasSelection() && !disabled() && !readonly()) {\n <ng-content select=\"ax-clear-button\"></ng-content>\n }\n\n <button\n type=\"button\"\n class=\"ax-general-button-icon\"\n tabindex=\"-1\"\n [disabled]=\"disabled() || readonly()\"\n (click)=\"onChevronClick($event)\"\n >\n <span\n class=\"ax-icon\"\n [class.ax-icon-chevron-down]=\"!expanded()\"\n [class.ax-icon-chevron-up]=\"expanded()\"\n ></span>\n </button>\n <ng-content select=\"ax-suffix\"></ng-content>\n</div>\n\n<ax-popover\n [target]=\"origin\"\n [openOn]=\"'manual'\"\n [closeOn]=\"isActionsheetStyle() ? 'manual' : 'clickOut'\"\n [closeOnScroll]=\"!isActionsheetStyle()\"\n [placement]=\"'bottom-start'\"\n [width]=\"isActionsheetStyle() ? '100%' : origin.offsetWidth + 'px'\"\n [adaptivityEnabled]=\"isActionsheetStyle()\"\n [disabled]=\"disabled() || readonly()\"\n (onClosed)=\"onPopoverClosed()\"\n>\n <div\n #popup\n class=\"ax-lookup-popup\"\n [class.ax-is-actionsheet]=\"isActionsheetStyle()\"\n [class.ax-is-alternate]=\"alternate()\"\n (keydown.escape)=\"close()\"\n >\n @if (isActionsheetStyle()) {\n <ax-header class=\"ax-solid\">\n <ax-title>{{ actionsheetTitle() }}</ax-title>\n @if (isMultiple()) {\n <ax-button\n class=\"ax-sm\"\n color=\"primary\"\n look=\"solid\"\n text=\"@acorex:common.actions.apply\"\n (onClick)=\"close()\"\n ></ax-button>\n } @else {\n <ax-close-button></ax-close-button>\n }\n </ax-header>\n }\n @if (isSheetSearchEnabled()) {\n <div class=\"ax-lookup-sheet-search\">\n <ax-search-box\n #sheetSearch\n class=\"ax-sm\"\n look=\"fill\"\n [autoSearch]=\"false\"\n [delayTime]=\"0\"\n [placeholder]=\"searchPlaceholder()\"\n (onValueChanged)=\"onSheetSearchInput()\"\n (onKeyUp)=\"onSheetSearchInput()\"\n (onKeyDown)=\"onSheetSearchKeydown($event)\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </div>\n }\n @if (hasProjectedHeader()) {\n <ng-content select=\"ax-header\"></ng-content>\n } @else if (showDefaultSelectAllHeader()) {\n <ax-header\n class=\"ax-lookup-select-all-header ax-lookup-option-host ax-lookup-option-multiple ax-lookup-option\"\n [style.height.px]=\"itemHeight()\"\n (mousedown)=\"onSelectAllHeaderMouseDown($event)\"\n >\n <ax-check-box\n class=\"ax-lookup-checkbox\"\n [tabIndex]=\"-1\"\n [value]=\"selectAllHeaderChecked()\"\n [indeterminate]=\"selectAllHeaderIndeterminate()\"\n ></ax-check-box>\n <span class=\"ax-lookup-option-text\">\n {{ '@acorex:lookup.selectAll' | translate | async }}\n </span>\n </ax-header>\n }\n @if (expanded()) {\n @switch (mode()) {\n @case ('drop-down-list') {\n <ax-lookup-drop-down-list\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n (navigateOut)=\"onListNavigateOut($event)\"\n />\n }\n @case ('multi-select') {\n <ax-lookup-multi-select\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [selectAllActive]=\"multiSelectAllActive()\"\n [excludedValues]=\"multiExcludedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleMultiToggle($event)\"\n (navigateOut)=\"onListNavigateOut($event)\"\n />\n }\n @case ('drop-down-tree') {\n <ax-lookup-drop-down-tree\n [dataSource]=\"resolvedTreeDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [nodeTemplate]=\"$any(itemTemplate())\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [loading]=\"treeSearchLoading()\"\n [filterKey]=\"treeFilterKey()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n />\n }\n @case ('multi-select-tree') {\n <ax-lookup-multi-select-tree\n [dataSource]=\"resolvedTreeDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"effectiveSelectedKeys()\"\n [selectionBehavior]=\"treeSelectionBehavior()\"\n [nodeTemplate]=\"$any(itemTemplate())\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [loading]=\"treeSearchLoading()\"\n [filterKey]=\"treeFilterKey()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (selectionChange)=\"handleTreeSelectionChange($event)\"\n />\n }\n @case ('multi-column') {\n <ax-lookup-multi-column\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [columns]=\"columns()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n />\n }\n @case ('multi-column-tree') {\n <ax-lookup-multi-column-tree\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [parentField]=\"treeParentField()\"\n [hasChildrenField]=\"hasChildrenField()\"\n [selectedValues]=\"selectedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [columns]=\"columns()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n />\n }\n }\n }\n <ng-content select=\"ax-footer\"></ng-content>\n </div>\n</ax-popover>\n<ng-content select=\"ax-validation-rule\"></ng-content>\n", styles: ["@layer properties;@layer components{ax-lookup{display:block;width:100%}ax-lookup .ax-editor-container{justify-content:flex-start;gap:calc(var(--spacing, .25rem) * 1)}ax-lookup .ax-lookup-trigger{cursor:pointer;-webkit-user-select:none;user-select:none}ax-lookup .ax-lookup-trigger-multiple{height:auto;min-height:calc(var(--spacing, .25rem) * 9);padding-block:calc(var(--spacing, .25rem) * 1)}ax-lookup .ax-lookup-value{position:relative;display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;align-items:center;overflow:hidden}ax-lookup .ax-lookup-value>.ax-input{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ax-lookup .ax-lookup-select-input{cursor:pointer;caret-color:transparent;-webkit-user-select:none;user-select:none}ax-lookup .ax-lookup-selected-content{pointer-events:none;position:relative;z-index:0;display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;align-items:center;overflow:hidden}ax-lookup .ax-lookup-input-overlay{position:absolute;inset:calc(var(--spacing, .25rem) * 0);z-index:10;margin:calc(var(--spacing, .25rem) * 0)!important;height:100%;width:100%;border-style:var(--tw-border-style);border-width:0px;background-color:transparent;padding:calc(var(--spacing, .25rem) * 0)!important;color:transparent;caret-color:transparent}ax-lookup .ax-lookup-chips{display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;flex-wrap:wrap;align-items:center;gap:calc(var(--spacing, .25rem) * 1)}ax-lookup .ax-lookup-trigger-search{margin:calc(var(--spacing, .25rem) * 0)!important;height:calc(var(--spacing, .25rem) * 7.5);width:auto!important;min-width:calc(var(--spacing, .25rem) * 16);flex:1;flex-basis:calc(var(--spacing, .25rem) * 16)}ax-lookup .ax-lookup-placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){ax-lookup .ax-lookup-placeholder{color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 50%,transparent)}}ax-lookup ax-chips{max-width:100%;min-width:calc(var(--spacing, .25rem) * 0)}ax-lookup ax-chips ax-prefix,ax-lookup ax-chips ax-suffix{padding:calc(var(--spacing, .25rem) * 0)!important}ax-lookup ax-chips ax-suffix button{display:flex;cursor:pointer;align-items:center;border-style:var(--tw-border-style);border-width:0px;background-color:transparent;padding:calc(var(--spacing, .25rem) * 0)}.ax-lookup-popup{--ax-comp-lookup-highlight-bg-color: var(--ax-sys-color-warning-lighter-surface);--ax-comp-lookup-highlight-text-color: var(--ax-sys-color-on-warning-lighter-surface);--ax-comp-lookup-highlight-border-color: var(--ax-sys-color-warning-500);box-sizing:border-box;display:flex;width:100%;max-width:100%;min-width:calc(var(--spacing, .25rem) * 0);flex-direction:column;overflow:hidden;border-radius:var(--ax-sys-border-radius);border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--ax-sys-color-border-surface));background-color:rgba(var(--ax-sys-color-lightest-surface));--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ax-lookup-popup .ax-highlight{display:inline;margin:0;padding:0;background-color:rgb(var(--ax-comp-lookup-highlight-bg-color));color:rgb(var(--ax-comp-lookup-highlight-text-color));font-weight:inherit;box-shadow:none}.ax-lookup-popup:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-darkest-surface))}.ax-lookup-popup:not(.ax-is-actionsheet){max-height:var(--ax-comp-lookup-popup-max-height, none)}.ax-lookup-popup:not(.ax-is-actionsheet) ax-lookup-drop-down-list,.ax-lookup-popup:not(.ax-is-actionsheet) ax-lookup-multi-select,.ax-lookup-popup:not(.ax-is-actionsheet) ax-lookup-drop-down-tree,.ax-lookup-popup:not(.ax-is-actionsheet) ax-lookup-multi-select-tree,.ax-lookup-popup:not(.ax-is-actionsheet) ax-lookup-multi-column,.ax-lookup-popup:not(.ax-is-actionsheet) ax-lookup-multi-column-tree{display:flex;min-height:calc(var(--spacing, .25rem) * 0);flex-shrink:1;flex-direction:column}.ax-lookup-popup:not(.ax-is-actionsheet) .ax-lookup-viewport,.ax-lookup-popup:not(.ax-is-actionsheet) .ax-lookup-tree,.ax-lookup-popup:not(.ax-is-actionsheet) .ax-lookup-multi-column,.ax-lookup-popup:not(.ax-is-actionsheet) .ax-lookup-multi-column-tree{min-height:calc(var(--spacing, .25rem) * 0);flex-shrink:1}.ax-lookup-popup.ax-is-actionsheet{height:100dvh;max-height:100dvh;min-height:100dvh;border-bottom-right-radius:0;border-bottom-left-radius:0;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ax-lookup-popup.ax-is-actionsheet>ax-header.ax-solid{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}.ax-lookup-popup.ax-is-actionsheet>ax-header.ax-solid ax-title{min-width:calc(var(--spacing, .25rem) * 0);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ));--tw-leading: calc(var(--spacing, .25rem) * 6);line-height:calc(var(--spacing, .25rem) * 6);--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500)}.ax-lookup-popup.ax-is-actionsheet>ax-header.ax-solid ax-button{flex-shrink:0}.ax-lookup-popup.ax-is-actionsheet ax-lookup-drop-down-list,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-select,.ax-lookup-popup.ax-is-actionsheet ax-lookup-drop-down-tree,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-select-tree,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-column,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-column-tree{display:flex;min-height:calc(var(--spacing, .25rem) * 0);flex:1;flex-direction:column;height:auto!important}.ax-lookup-popup.ax-is-actionsheet .ax-lookup-viewport{min-height:calc(var(--spacing, .25rem) * 0);flex:1;height:auto!important;max-height:none!important}.ax-lookup-popup.ax-is-actionsheet .ax-lookup-tree{max-height:none;min-height:calc(var(--spacing, .25rem) * 0);flex:1;overflow:auto}.ax-lookup-popup.ax-is-actionsheet .ax-lookup-empty{display:flex;flex:1;align-items:center;justify-content:center}:is(.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column,.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column-tree) .ax-lookup-multi-column-table,:is(.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column,.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column-tree) ax-data-table{height:100%;min-height:calc(var(--spacing, .25rem) * 0)}.ax-lookup-popup .ax-lookup-sheet-search{flex-shrink:0;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface));padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 2)}.ax-lookup-popup>ax-header:not(.ax-solid),.ax-lookup-popup>ax-footer{flex-shrink:0;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}.ax-lookup-popup>ax-header:not(.ax-solid){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.ax-lookup-popup>ax-header.ax-lookup-select-all-header{align-items:center;justify-content:flex-start;gap:calc(var(--spacing, .25rem) * 2)}.ax-lookup-popup ax-check-box.ax-lookup-checkbox,.ax-lookup-popup .ax-tree-view-checkbox{display:inline-flex;width:calc(var(--spacing, .25rem) * 4);height:calc(var(--spacing, .25rem) * 4);flex-shrink:0;align-items:center;justify-content:center;align-self:center;--tw-leading: 1;line-height:1}:is(.ax-lookup-popup ax-check-box.ax-lookup-checkbox,.ax-lookup-popup .ax-tree-view-checkbox) .ax-checkbox-label{margin:calc(var(--spacing, .25rem) * 0);display:flex!important;width:calc(var(--spacing, .25rem) * 4);height:calc(var(--spacing, .25rem) * 4);min-height:calc(var(--spacing, .25rem) * 0);align-items:center;justify-content:center;padding:calc(var(--spacing, .25rem) * 0);grid-template-columns:unset;grid-template-rows:unset;column-gap:0;row-gap:0;line-height:1}:is(.ax-lookup-popup ax-check-box.ax-lookup-checkbox,.ax-lookup-popup .ax-tree-view-checkbox) .ax-checkbox-start-side{grid-column:auto;grid-row:auto;margin:calc(var(--spacing, .25rem) * 0);display:flex;width:calc(var(--spacing, .25rem) * 4);height:calc(var(--spacing, .25rem) * 4);align-items:center;justify-content:center;align-self:center}:is(.ax-lookup-popup ax-check-box.ax-lookup-checkbox,.ax-lookup-popup .ax-tree-view-checkbox) .ax-checkbox-end-side{display:none!important}.ax-lookup-popup>ax-footer{border-top-style:var(--tw-border-style);border-top-width:1px}.ax-lookup-viewport{width:100%;min-width:calc(var(--spacing, .25rem) * 0);overflow-x:hidden}.ax-lookup-empty{display:flex;min-height:calc(var(--spacing, .25rem) * 12);width:100%;align-items:center;justify-content:center;padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 3);text-align:center;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-empty{color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 60%,transparent)}}.ax-lookup-option-host{box-sizing:border-box;cursor:pointer;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;--tw-outline-style: none;outline-style:none}.ax-lookup-option-host.ax-state-alternate{background-color:rgba(var(--ax-sys-color-light-surface))}.ax-lookup-option-host.ax-state-alternate:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-surface))}.ax-lookup-option-host:hover,.ax-lookup-option-host.ax-state-active{background-color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host:hover,.ax-lookup-option-host.ax-state-active{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 10%,transparent)}}.ax-lookup-option-host.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-alternate.ax-state-active{background-color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-alternate.ax-state-active{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 15%,transparent)}}.ax-lookup-option-host.ax-state-selected,.ax-lookup-option-host.ax-state-selected:hover,.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate,.ax-lookup-option-host.ax-state-selected.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active{background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}:is(.ax-lookup-option-host.ax-state-selected,.ax-lookup-option-host.ax-state-selected:hover,.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate,.ax-lookup-option-host.ax-state-selected.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-option-host.ax-state-selected,.ax-lookup-option-host.ax-state-selected:hover,.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate,.ax-lookup-option-host.ax-state-selected.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 25%,transparent)}}.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active{background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-lightest-surface)) 80%,transparent)}}:is(.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 40%,transparent)}}.ax-lookup-option-host.ax-lookup-option-multiple{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2);padding-block:calc(var(--spacing, .25rem) * 0)}.ax-lookup-option-host.ax-lookup-option-multiple>:not(ax-check-box.ax-lookup-checkbox){display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;align-items:center;align-self:stretch;--tw-leading: calc(var(--spacing, .25rem) * 5);line-height:calc(var(--spacing, .25rem) * 5)}.ax-lookup-option-host.ax-lookup-option-multiple .ax-lookup-option-text{display:flex;min-height:calc(var(--spacing, .25rem) * 0);flex:1;align-items:center;padding-block:calc(var(--spacing, .25rem) * 0)}.ax-lookup-option-host.ax-lookup-option-multiple:not(.ax-lookup-option){padding-inline:calc(var(--spacing, .25rem) * 3)}.ax-lookup-option-host ax-check-box.ax-lookup-checkbox{pointer-events:none}.ax-lookup-option-host .ax-lookup-option-loading{width:100%;padding-inline:calc(var(--spacing, .25rem) * 3);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host .ax-lookup-option-loading{color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 50%,transparent)}}.ax-lookup-option{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);padding-inline:calc(var(--spacing, .25rem) * 3);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}.ax-lookup-option.ax-state-selected{color:rgba(var(--ax-sys-color-primary-surface))}.ax-lookup-option.ax-lookup-option-multiple{justify-content:flex-start}.ax-lookup-option .ax-lookup-option-text{min-width:calc(var(--spacing, .25rem) * 0);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ax-lookup-option .ax-lookup-option-check{margin-inline-start:auto;flex-shrink:0;color:rgba(var(--ax-sys-color-primary-surface))}ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree{display:block;min-height:calc(var(--spacing, .25rem) * 0);width:100%}:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) .ax-lookup-multi-column-table,:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) ax-data-table{height:100%;min-height:calc(var(--spacing, .25rem) * 0);border-style:var(--tw-border-style)!important;border-width:0px!important}:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) tr.ax-state-selected{background-color:rgba(var(--ax-sys-color-primary-surface))}@supports (color: color-mix(in lab,red,red)){:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) tr.ax-state-selected{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-surface)) 10%,transparent)}}:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) tr.ax-state-disabled{pointer-events:none;opacity:50%}.ax-lookup-tree{max-height:calc(var(--spacing, .25rem) * 80);overflow:auto}.ax-lookup-tree .ax-tree-view-node-content{align-items:center}.ax-lookup-tree .ax-lookup-tree-node-label{display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;align-items:center;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: calc(var(--spacing, .25rem) * 5);line-height:calc(var(--spacing, .25rem) * 5)}.ax-lookup-tree .ax-tree-view-node{margin-block:0;border-radius:0}.ax-lookup-tree .ax-tree-view-node.ax-state-alternate{background-color:rgba(var(--ax-sys-color-light-surface))}.ax-lookup-tree .ax-tree-view-node.ax-state-alternate:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-surface))}.ax-lookup-tree .ax-tree-view-node.ax-state-alternate:hover:not(.ax-dragging){background-color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-tree .ax-tree-view-node.ax-state-alternate:hover:not(.ax-dragging){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 15%,transparent)}}.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected,.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected{background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected,.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected,.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 25%,transparent)}}.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging){background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-lightest-surface)) 80%,transparent)}}:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging)):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging)):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 40%,transparent)}}}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive{background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);border-color:rgba(var(--ax-sys-color-border-surface))}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-lighter);color:var(--color-on-lighter);border-color:var(--color-border-lighter)}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){border-color:rgba(var(--ax-sys-color-border-light-surface))}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:not(.ax-state-disabled):hover{background-color:var(--color-lighter);color:var(--color-on-lighter);border-color:var(--color-border-lighter)}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:not(.ax-state-disabled):hover:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-light);color:var(--color-on-light);border-color:var(--color-border-light)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"], dependencies: [{ kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "component", type: AXButtonComponent, selector: "ax-button", inputs: ["disabled", "tabIndex", "color", "look", "text", "toggleable", "selected", "iconOnly", "type", "loadingText"], outputs: ["onBlur", "onFocus", "onClick", "selectedChange", "toggleableChange", "lookChange", "colorChange", "disabledChange", "loadingTextChange"] }, { kind: "component", type: AXCheckBoxComponent, selector: "ax-check-box", inputs: ["disabled", "tabIndex", "readonly", "color", "value", "name", "id", "isLoading", "indeterminate"], outputs: ["onBlur", "onFocus", "valueChange", "onValueChanged"] }, { kind: "component", type: AXChipsComponent, selector: "ax-chips", inputs: ["tabIndex", "color", "look", "text"], outputs: ["textChange"] }, { kind: "component", type: AXDecoratorCloseButtonComponent, selector: "ax-close-button", inputs: ["closeAll", "icon"] }, { kind: "ngmodule", type: AXDecoratorModule }, { kind: "component", type: i1$1.AXDecoratorClearButtonComponent, selector: "ax-clear-button", inputs: ["icon"] }, { kind: "component", type: i1$1.AXDecoratorGenericComponent, selector: "ax-footer, ax-header, ax-content, ax-divider, ax-form-hint, ax-prefix, ax-suffix, ax-text, ax-title, ax-subtitle, ax-placeholder, ax-overlay" }, { kind: "component", type: AXPopoverComponent, selector: "ax-popover", inputs: ["width", "disablePanelClass", "visualContextScope", "disabled", "offsetX", "offsetY", "target", "placement", "content", "openOn", "closeOn", "hasBackdrop", "restoreFocusOnClose", "openAfter", "closeAfter", "closeOnScroll", "closeOnNavigation", "backdropClass", "panelClass", "adaptivityEnabled"], outputs: ["onOpened", "onClosed"] }, { kind: "component", type: AXSearchBoxComponent, selector: "ax-search-box", inputs: ["disabled", "readonly", "tabIndex", "placeholder", "value", "state", "name", "id", "look", "class", "delayTime", "type", "autoSearch"], outputs: ["valueChange", "stateChange", "onValueChanged", "onBlur", "onFocus", "readonlyChange", "disabledChange", "onKeyDown", "onKeyUp", "onKeyPress"] }, { kind: "component", type: AXLookupDropDownListComponent, selector: "ax-lookup-drop-down-list" }, { kind: "component", type: AXLookupMultiSelectComponent, selector: "ax-lookup-multi-select" }, { kind: "component", type: AXLookupDropDownTreeComponent, selector: "ax-lookup-drop-down-tree", inputs: ["dataSource", "valueField", "textField", "disabledField", "selectedValues", "nodeTemplate", "emptyTemplate", "loadingTemplate", "loading", "alternate", "filterKey", "highlightText"], outputs: ["itemClick"] }, { kind: "component", type: AXLookupMultiSelectTreeComponent, selector: "ax-lookup-multi-select-tree", inputs: ["dataSource", "valueField", "textField", "disabledField", "selectedValues", "selectionBehavior", "nodeTemplate", "emptyTemplate", "loadingTemplate", "loading", "alternate", "filterKey", "highlightText"], outputs: ["selectionChange"] }, { kind: "component", type: AXLookupMultiColumnComponent, selector: "ax-lookup-multi-column", inputs: ["dataSource", "valueField", "textField", "disabledField", "selectedValues", "itemHeight", "maxVisibleItems", "columns", "itemTemplate", "emptyTemplate", "loadingTemplate", "alternate", "highlightText"], outputs: ["itemClick"] }, { kind: "component", type: AXLookupMultiColumnTreeComponent, selector: "ax-lookup-multi-column-tree", inputs: ["dataSource", "valueField", "textField", "disabledField", "parentField", "hasChildrenField", "selectedValues", "itemHeight", "maxVisibleItems", "columns", "itemTemplate", "emptyTemplate", "loadingTemplate", "alternate", "highlightText"], outputs: ["itemClick"] }, { kind: "directive", type: AXTooltipDirective, selector: "[axTooltip]", inputs: ["axTooltipDisabled", "axTooltip", "axTooltipContext", "axTooltipOverflowOnly", "axTooltipPlacement", "axTooltipOffsetX", "axTooltipOffsetY", "axTooltipOpenAfter", "axTooltipCloseAfter"] }, { kind: "pipe", type: AsyncPipe, name: "async" }, { kind: "pipe", type: AXTranslatorPipe, name: "translate" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
|
3042
3799
|
}
|
|
3043
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
3800
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupComponent, decorators: [{
|
|
3044
3801
|
type: Component,
|
|
3045
3802
|
args: [{ selector: 'ax-lookup', encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, imports: [
|
|
3046
3803
|
NgTemplateOutlet,
|
|
3047
3804
|
AsyncPipe,
|
|
3048
3805
|
AXTranslatorPipe,
|
|
3049
3806
|
AXButtonComponent,
|
|
3807
|
+
AXCheckBoxComponent,
|
|
3050
3808
|
AXChipsComponent,
|
|
3809
|
+
AXDecoratorCloseButtonComponent,
|
|
3051
3810
|
AXDecoratorModule,
|
|
3052
3811
|
AXPopoverComponent,
|
|
3053
3812
|
AXSearchBoxComponent,
|
|
@@ -3057,17 +3816,18 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3057
3816
|
AXLookupMultiSelectTreeComponent,
|
|
3058
3817
|
AXLookupMultiColumnComponent,
|
|
3059
3818
|
AXLookupMultiColumnTreeComponent,
|
|
3819
|
+
AXTooltipDirective,
|
|
3060
3820
|
], providers: [
|
|
3061
3821
|
{ provide: AXComponent, useExisting: AXLookupComponent },
|
|
3062
3822
|
{ provide: AXClearableComponent, useExisting: AXLookupComponent },
|
|
3063
3823
|
{ provide: AXClosableComponent, useExisting: AXLookupComponent },
|
|
3064
3824
|
{ provide: AXValuableComponent, useExisting: AXLookupComponent },
|
|
3065
|
-
], template: "<div\n #origin\n class=\"ax-editor-container ax-{{ look() }} ax-default\"\n [class.ax-lookup-trigger]=\"!isEditableTrigger()\"\n [class.ax-lookup-trigger-multiple]=\"isMultiple()\"\n [class.ax-state-disabled]=\"disabled()\"\n [class.ax-state-readonly]=\"readonly()\"\n (click)=\"onTriggerClick()\"\n>\n <ng-content select=\"ax-prefix\"></ng-content>\n\n @if (isMultiple()) {\n <div class=\"ax-lookup-chips\">\n @for (item of selectedItems(); track trackSelectedKey(item)) {\n <ax-chips class=\"ax-sm\" look=\"fill\" [text]=\"selectedTemplate() ? '' : (getItemText(item) | translate | async)\">\n @if (selectedTemplate()) {\n <ax-prefix>\n <ng-container\n [ngTemplateOutlet]=\"selectedTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </ax-prefix>\n }\n @if (!disabled() && !readonly()) {\n <ax-suffix>\n <button type=\"button\" tabindex=\"-1\" (click)=\"removeChip($event, item)\">\n <span class=\"ax-icon ax-icon-close\"></span>\n </button>\n </ax-suffix>\n }\n </ax-chips>\n }\n <input\n #triggerSearchInput\n type=\"text\"\n class=\"ax-input ax-lookup-trigger-search\"\n [class.ax-lookup-select-input]=\"!isEditableTrigger()\"\n [placeholder]=\"triggerSearchPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly() || !isEditableTrigger()\"\n [attr.inputmode]=\"isEditableTrigger() ? null : 'none'\"\n [value]=\"searchText()\"\n (input)=\"onTriggerSearchInput($any($event.target).value)\"\n (keydown)=\"onTriggerKeydown($event)\"\n (beforeinput)=\"onBeforeInput($event)\"\n (focus)=\"emitOnFocus($event)\"\n (blur)=\"emitOnBlur($event)\"\n />\n </div>\n } @else {\n <div class=\"ax-lookup-value\">\n @if (showSelectedTemplate()) {\n <div class=\"ax-lookup-selected-content\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"selectedTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedItems()[0] }\"\n />\n </div>\n }\n <input\n #triggerSearchInput\n type=\"text\"\n class=\"ax-input\"\n [class.ax-lookup-select-input]=\"!isEditableTrigger()\"\n [class.ax-lookup-input-overlay]=\"showSelectedTemplate()\"\n [placeholder]=\"translatedPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly() || !isEditableTrigger()\"\n [attr.inputmode]=\"isEditableTrigger() ? null : 'none'\"\n [value]=\"searchText()\"\n (input)=\"onTriggerSearchInput($any($event.target).value)\"\n (keydown)=\"onTriggerKeydown($event)\"\n (beforeinput)=\"onBeforeInput($event)\"\n (focus)=\"emitOnFocus($event)\"\n (blur)=\"emitOnBlur($event)\"\n />\n </div>\n }\n\n @if (selectedValues().length > 0 && !disabled() && !readonly()) {\n <ng-content select=\"ax-clear-button\"></ng-content>\n }\n\n <button\n type=\"button\"\n class=\"ax-general-button-icon\"\n tabindex=\"-1\"\n [disabled]=\"disabled() || readonly()\"\n >\n <span\n class=\"ax-icon\"\n [class.ax-icon-chevron-down]=\"!expanded()\"\n [class.ax-icon-chevron-up]=\"expanded()\"\n ></span>\n </button>\n <ng-content select=\"ax-suffix\"></ng-content>\n</div>\n\n<ax-popover\n [target]=\"origin\"\n [openOn]=\"'manual'\"\n [closeOn]=\"isActionsheetStyle() ? 'manual' : 'clickOut'\"\n [closeOnScroll]=\"!isActionsheetStyle()\"\n [placement]=\"'bottom-start'\"\n [width]=\"isActionsheetStyle() ? '100%' : origin.offsetWidth + 'px'\"\n [adaptivityEnabled]=\"isActionsheetStyle()\"\n [disabled]=\"disabled() || readonly()\"\n (onClosed)=\"onPopoverClosed()\"\n>\n <div\n #popup\n class=\"ax-lookup-popup\"\n [class.ax-is-actionsheet]=\"isActionsheetStyle()\"\n [class.ax-is-alternate]=\"alternate()\"\n (keydown.escape)=\"close()\"\n >\n @if (isActionsheetStyle()) {\n <ax-header class=\"ax-solid\">\n <ax-title>{{ actionsheetTitle() }}</ax-title>\n @if (isMultiple()) {\n <ax-button\n class=\"ax-sm\"\n color=\"primary\"\n look=\"solid\"\n text=\"@acorex:common.actions.apply\"\n (onClick)=\"close()\"\n ></ax-button>\n } @else {\n <ax-close-button></ax-close-button>\n }\n </ax-header>\n }\n @if (isSheetSearchEnabled()) {\n <div class=\"ax-lookup-sheet-search\">\n <ax-search-box\n #sheetSearch\n class=\"ax-sm\"\n look=\"fill\"\n [autoSearch]=\"false\"\n [delayTime]=\"0\"\n [placeholder]=\"searchPlaceholder()\"\n (onValueChanged)=\"onSheetSearchInput()\"\n (onKeyUp)=\"onSheetSearchInput()\"\n (onKeyDown)=\"onSheetSearchKeydown($event)\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </div>\n }\n <ng-content select=\"ax-header\"></ng-content>\n @if (expanded()) {\n @switch (mode()) {\n @case ('drop-down-list') {\n <ax-lookup-drop-down-list\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n (navigateOut)=\"onListNavigateOut($event)\"\n />\n }\n @case ('multi-select') {\n <ax-lookup-multi-select\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleMultiToggle($event)\"\n (navigateOut)=\"onListNavigateOut($event)\"\n />\n }\n @case ('drop-down-tree') {\n <ax-lookup-drop-down-tree\n [dataSource]=\"resolvedTreeDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [nodeTemplate]=\"$any(itemTemplate())\"\n [emptyTemplate]=\"emptyTemplate()\"\n [filterKey]=\"treeFilterKey()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n />\n }\n @case ('multi-select-tree') {\n <ax-lookup-multi-select-tree\n [dataSource]=\"resolvedTreeDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [selectionBehavior]=\"treeSelectionBehavior()\"\n [nodeTemplate]=\"$any(itemTemplate())\"\n [emptyTemplate]=\"emptyTemplate()\"\n [filterKey]=\"treeFilterKey()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (selectionChange)=\"handleTreeSelectionChange($event)\"\n />\n }\n @case ('multi-column') {\n <ax-lookup-multi-column\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [columns]=\"columns()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n />\n }\n @case ('multi-column-tree') {\n <ax-lookup-multi-column-tree\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [parentField]=\"treeParentField()\"\n [hasChildrenField]=\"hasChildrenField()\"\n [selectedValues]=\"selectedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [columns]=\"columns()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n />\n }\n }\n }\n <ng-content select=\"ax-footer\"></ng-content>\n </div>\n</ax-popover>\n<ng-content select=\"ax-validation-rule\"></ng-content>\n", styles: ["@layer properties;@layer components{ax-lookup{display:block;width:100%}ax-lookup .ax-editor-container{justify-content:flex-start;gap:calc(var(--spacing, .25rem) * 1)}ax-lookup .ax-lookup-trigger{cursor:pointer;-webkit-user-select:none;user-select:none}ax-lookup .ax-lookup-trigger-multiple{height:auto;min-height:calc(var(--spacing, .25rem) * 9);padding-block:calc(var(--spacing, .25rem) * 1)}ax-lookup .ax-lookup-value{position:relative;display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;align-items:center;overflow:hidden}ax-lookup .ax-lookup-select-input{cursor:pointer;caret-color:transparent;-webkit-user-select:none;user-select:none}ax-lookup .ax-lookup-selected-content{pointer-events:none;position:relative;z-index:0;display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;align-items:center;overflow:hidden}ax-lookup .ax-lookup-input-overlay{position:absolute;inset:calc(var(--spacing, .25rem) * 0);z-index:10;margin:calc(var(--spacing, .25rem) * 0)!important;height:100%;width:100%;border-style:var(--tw-border-style);border-width:0px;background-color:transparent;padding:calc(var(--spacing, .25rem) * 0)!important;color:transparent;caret-color:transparent}ax-lookup .ax-lookup-chips{display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;flex-wrap:wrap;align-items:center;gap:calc(var(--spacing, .25rem) * 1)}ax-lookup .ax-lookup-trigger-search{margin:calc(var(--spacing, .25rem) * 0)!important;height:calc(var(--spacing, .25rem) * 7.5);width:auto!important;min-width:calc(var(--spacing, .25rem) * 16);flex:1;flex-basis:calc(var(--spacing, .25rem) * 16)}ax-lookup .ax-lookup-placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){ax-lookup .ax-lookup-placeholder{color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 50%,transparent)}}ax-lookup ax-chips ax-prefix,ax-lookup ax-chips ax-suffix{padding:calc(var(--spacing, .25rem) * 0)!important}ax-lookup ax-chips ax-suffix button{display:flex;cursor:pointer;align-items:center;border-style:var(--tw-border-style);border-width:0px;background-color:transparent;padding:calc(var(--spacing, .25rem) * 0)}.ax-lookup-popup{--ax-comp-lookup-highlight-bg-color: var(--ax-sys-color-warning-lighter-surface);--ax-comp-lookup-highlight-text-color: var(--ax-sys-color-on-warning-lighter-surface);--ax-comp-lookup-highlight-border-color: var(--ax-sys-color-warning-500);box-sizing:border-box;display:flex;width:100%;max-width:100%;min-width:calc(var(--spacing, .25rem) * 0);flex-direction:column;overflow:hidden;border-radius:var(--ax-sys-border-radius);border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--ax-sys-color-border-surface));background-color:rgba(var(--ax-sys-color-lightest-surface));--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ax-lookup-popup .ax-highlight{display:inline;margin:0;padding:0;background-color:rgb(var(--ax-comp-lookup-highlight-bg-color));color:rgb(var(--ax-comp-lookup-highlight-text-color));font-weight:inherit;box-shadow:none}.ax-lookup-popup:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-darkest-surface))}.ax-lookup-popup.ax-is-actionsheet{height:100dvh;max-height:100dvh;min-height:100dvh;border-bottom-right-radius:0;border-bottom-left-radius:0;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ax-lookup-popup.ax-is-actionsheet>ax-header.ax-solid{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}.ax-lookup-popup.ax-is-actionsheet>ax-header.ax-solid ax-title{min-width:calc(var(--spacing, .25rem) * 0);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ));--tw-leading: calc(var(--spacing, .25rem) * 6);line-height:calc(var(--spacing, .25rem) * 6);--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500)}.ax-lookup-popup.ax-is-actionsheet>ax-header.ax-solid ax-button{flex-shrink:0}.ax-lookup-popup.ax-is-actionsheet ax-lookup-drop-down-list,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-select,.ax-lookup-popup.ax-is-actionsheet ax-lookup-drop-down-tree,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-select-tree,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-column,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-column-tree{display:flex;min-height:calc(var(--spacing, .25rem) * 0);flex:1;flex-direction:column;height:auto!important}.ax-lookup-popup.ax-is-actionsheet .ax-lookup-viewport{min-height:calc(var(--spacing, .25rem) * 0);flex:1;height:auto!important;max-height:none!important}.ax-lookup-popup.ax-is-actionsheet .ax-lookup-tree{max-height:none;min-height:calc(var(--spacing, .25rem) * 0);flex:1;overflow:auto}.ax-lookup-popup.ax-is-actionsheet .ax-lookup-empty{display:flex;flex:1;align-items:center;justify-content:center}:is(.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column,.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column-tree) .ax-lookup-multi-column-table,:is(.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column,.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column-tree) ax-data-table{height:100%;min-height:calc(var(--spacing, .25rem) * 0)}.ax-lookup-popup .ax-lookup-sheet-search{flex-shrink:0;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface));padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 2)}.ax-lookup-popup>ax-header:not(.ax-solid),.ax-lookup-popup>ax-footer{flex-shrink:0;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}.ax-lookup-popup>ax-header:not(.ax-solid){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.ax-lookup-popup>ax-footer{border-top-style:var(--tw-border-style);border-top-width:1px}.ax-lookup-viewport{width:100%;min-width:calc(var(--spacing, .25rem) * 0);overflow-x:hidden}.ax-lookup-empty{display:flex;min-height:calc(var(--spacing, .25rem) * 12);width:100%;align-items:center;justify-content:center;padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 3);text-align:center;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-empty{color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 60%,transparent)}}.ax-lookup-option-host{box-sizing:border-box;cursor:pointer;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;--tw-outline-style: none;outline-style:none}.ax-lookup-option-host.ax-state-alternate{background-color:rgba(var(--ax-sys-color-light-surface))}.ax-lookup-option-host.ax-state-alternate:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-surface))}.ax-lookup-option-host:hover,.ax-lookup-option-host.ax-state-active{background-color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host:hover,.ax-lookup-option-host.ax-state-active{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 10%,transparent)}}.ax-lookup-option-host.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-alternate.ax-state-active{background-color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-alternate.ax-state-active{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 15%,transparent)}}.ax-lookup-option-host.ax-state-selected,.ax-lookup-option-host.ax-state-selected:hover,.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate,.ax-lookup-option-host.ax-state-selected.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active{background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}:is(.ax-lookup-option-host.ax-state-selected,.ax-lookup-option-host.ax-state-selected:hover,.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate,.ax-lookup-option-host.ax-state-selected.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-option-host.ax-state-selected,.ax-lookup-option-host.ax-state-selected:hover,.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate,.ax-lookup-option-host.ax-state-selected.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 25%,transparent)}}.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active{background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-lightest-surface)) 80%,transparent)}}:is(.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 40%,transparent)}}.ax-lookup-option-host.ax-lookup-option-multiple{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2)}.ax-lookup-option-host.ax-lookup-option-multiple:not(.ax-lookup-option){padding-inline:calc(var(--spacing, .25rem) * 3)}.ax-lookup-option-host .ax-lookup-checkbox{pointer-events:none;display:inline-flex;flex-shrink:0;align-items:center}.ax-lookup-option-host .ax-lookup-option-loading{width:100%;padding-inline:calc(var(--spacing, .25rem) * 3);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host .ax-lookup-option-loading{color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 50%,transparent)}}.ax-lookup-option{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);padding-inline:calc(var(--spacing, .25rem) * 3);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}.ax-lookup-option.ax-state-selected{color:rgba(var(--ax-sys-color-primary-surface))}.ax-lookup-option.ax-lookup-option-multiple{justify-content:flex-start}.ax-lookup-option .ax-lookup-option-text{min-width:calc(var(--spacing, .25rem) * 0);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ax-lookup-option .ax-lookup-option-check{margin-inline-start:auto;flex-shrink:0;color:rgba(var(--ax-sys-color-primary-surface))}ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree{display:block;min-height:calc(var(--spacing, .25rem) * 0);width:100%}:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) .ax-lookup-multi-column-table,:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) ax-data-table{height:100%;min-height:calc(var(--spacing, .25rem) * 0);border-style:var(--tw-border-style)!important;border-width:0px!important}:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) tr.ax-state-selected{background-color:rgba(var(--ax-sys-color-primary-surface))}@supports (color: color-mix(in lab,red,red)){:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) tr.ax-state-selected{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-surface)) 10%,transparent)}}:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) tr.ax-state-disabled{pointer-events:none;opacity:50%}.ax-lookup-tree{max-height:calc(var(--spacing, .25rem) * 80);overflow:auto;padding:calc(var(--spacing, .25rem) * 2)}.ax-lookup-tree .ax-tree-view-node{margin-block:0;border-radius:0}.ax-lookup-tree .ax-tree-view-node.ax-state-alternate{background-color:rgba(var(--ax-sys-color-light-surface))}.ax-lookup-tree .ax-tree-view-node.ax-state-alternate:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-surface))}.ax-lookup-tree .ax-tree-view-node.ax-state-alternate:hover:not(.ax-dragging){background-color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-tree .ax-tree-view-node.ax-state-alternate:hover:not(.ax-dragging){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 15%,transparent)}}.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected,.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected{background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected,.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected,.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 25%,transparent)}}.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging){background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-lightest-surface)) 80%,transparent)}}:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging)):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging)):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 40%,transparent)}}}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive{background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);border-color:rgba(var(--ax-sys-color-border-surface))}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-lighter);color:var(--color-on-lighter);border-color:var(--color-border-lighter)}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){border-color:rgba(var(--ax-sys-color-border-light-surface))}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:not(.ax-state-disabled):hover{background-color:var(--color-lighter);color:var(--color-on-lighter);border-color:var(--color-border-lighter)}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:not(.ax-state-disabled):hover:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-light);color:var(--color-on-light);border-color:var(--color-border-light)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"] }]
|
|
3066
|
-
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: false }] }], treeDataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeDataSource", required: false }] }], valueField: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueField", required: false }] }], textField: [{ type: i0.Input, args: [{ isSignal: true, alias: "textField", required: false }] }], disabledField: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledField", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], treeParentField: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeParentField", required: false }] }], hasChildrenField: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasChildrenField", required: false }] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], adaptivityEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "adaptivityEnabled", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], alternate: [{ type: i0.Input, args: [{ isSignal: true, alias: "alternate", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], look: [{ type: i0.Input, args: [{ isSignal: true, alias: "look", required: false }] }, { type: i0.Output, args: ["lookChange"] }], itemHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemHeight", required: false }] }], maxVisibleItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisibleItems", required: false }] }], treeSelectionBehavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeSelectionBehavior", required: false }] }], highlightSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightSearch", required: false }] }], itemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], selectedTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedTemplate", required: false }] }], emptyTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyTemplate", required: false }] }], loadingTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingTemplate", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], valueItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueItems", required: false }] }], onValueChanged: [{ type: i0.Output, args: ["onValueChanged"] }], onSelectionChanged: [{ type: i0.Output, args: ["onSelectionChanged"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onItemClick: [{ type: i0.Output, args: ["onItemClick"] }], onItemSelected: [{ type: i0.Output, args: ["onItemSelected"] }], onOpened: [{ type: i0.Output, args: ["onOpened"] }], onClosed: [{ type: i0.Output, args: ["onClosed"] }], popoverRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXPopoverComponent), { isSignal: true }] }], originRef: [{ type: i0.ViewChild, args: ['origin', { isSignal: true }] }], popupRef: [{ type: i0.ViewChild, args: ['popup', { isSignal: true }] }], triggerSearchInput: [{ type: i0.ViewChild, args: ['triggerSearchInput', { isSignal: true }] }], listView: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXLookupListViewBase), { isSignal: true }] }],
|
|
3825
|
+
], template: "<div\n #origin\n class=\"ax-editor-container ax-{{ look() }} ax-default\"\n [class.ax-lookup-trigger]=\"!isEditableTrigger()\"\n [class.ax-lookup-trigger-multiple]=\"isMultiple()\"\n [class.ax-state-disabled]=\"disabled()\"\n [class.ax-state-readonly]=\"readonly()\"\n (click)=\"onTriggerClick()\"\n>\n <ng-content select=\"ax-prefix\"></ng-content>\n\n @if (isMultiple()) {\n <div class=\"ax-lookup-chips\">\n @if (multiSelectAllActive()) {\n <ax-chips class=\"ax-sm\" look=\"fill\" [text]=\"'@acorex:lookup.selectAll' | translate | async\">\n @if (!disabled() && !readonly()) {\n <ax-suffix>\n <button type=\"button\" tabindex=\"-1\" (click)=\"removeSelectAllChip($event)\">\n <span class=\"ax-icon ax-icon-close\"></span>\n </button>\n </ax-suffix>\n }\n </ax-chips>\n }\n @for (item of selectedItems(); track trackSelectedKey(item)) {\n @let chipText = (getItemText(item) | translate | async) ?? '';\n <ax-chips\n class=\"ax-sm\"\n look=\"fill\"\n [text]=\"selectedTemplate() ? '' : chipText\"\n [axTooltip]=\"selectedTemplate() ? '' : chipText\"\n [axTooltipOverflowOnly]=\"true\"\n >\n @if (selectedTemplate()) {\n <ax-prefix>\n <ng-container\n [ngTemplateOutlet]=\"selectedTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: item }\"\n />\n </ax-prefix>\n }\n @if (!disabled() && !readonly()) {\n <ax-suffix>\n <button type=\"button\" tabindex=\"-1\" (click)=\"removeChip($event, item)\">\n <span class=\"ax-icon ax-icon-close\"></span>\n </button>\n </ax-suffix>\n }\n </ax-chips>\n }\n <input\n #triggerSearchInput\n type=\"text\"\n class=\"ax-input ax-lookup-trigger-search\"\n [class.ax-lookup-select-input]=\"!isEditableTrigger()\"\n [placeholder]=\"triggerSearchPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly() || !isEditableTrigger()\"\n [attr.inputmode]=\"isEditableTrigger() ? null : 'none'\"\n [value]=\"searchText()\"\n (input)=\"onTriggerSearchInput($any($event.target).value)\"\n (keydown)=\"onTriggerKeydown($event)\"\n (beforeinput)=\"onBeforeInput($event)\"\n (pointerdown)=\"onTriggerPointerDown($event)\"\n (focus)=\"emitOnFocus($event)\"\n (blur)=\"emitOnBlur($event)\"\n />\n </div>\n } @else {\n <div class=\"ax-lookup-value\">\n @if (showSelectedTemplate()) {\n <div class=\"ax-lookup-selected-content\" aria-hidden=\"true\">\n <ng-container\n [ngTemplateOutlet]=\"selectedTemplate()!\"\n [ngTemplateOutletContext]=\"{ $implicit: selectedItems()[0] }\"\n />\n </div>\n }\n <input\n #triggerSearchInput\n type=\"text\"\n class=\"ax-input\"\n [class.ax-lookup-select-input]=\"!isEditableTrigger()\"\n [class.ax-lookup-input-overlay]=\"showSelectedTemplate()\"\n [axTooltip]=\"expanded() || showSelectedTemplate() ? '' : translatedDisplayText()\"\n [axTooltipOverflowOnly]=\"true\"\n [placeholder]=\"translatedPlaceholder()\"\n [disabled]=\"disabled()\"\n [readonly]=\"readonly() || !isEditableTrigger()\"\n [attr.inputmode]=\"isEditableTrigger() ? null : 'none'\"\n [value]=\"searchText()\"\n (input)=\"onTriggerSearchInput($any($event.target).value)\"\n (keydown)=\"onTriggerKeydown($event)\"\n (beforeinput)=\"onBeforeInput($event)\"\n (pointerdown)=\"onTriggerPointerDown($event)\"\n (focus)=\"emitOnFocus($event)\"\n (blur)=\"emitOnBlur($event)\"\n />\n </div>\n }\n\n @if (hasSelection() && !disabled() && !readonly()) {\n <ng-content select=\"ax-clear-button\"></ng-content>\n }\n\n <button\n type=\"button\"\n class=\"ax-general-button-icon\"\n tabindex=\"-1\"\n [disabled]=\"disabled() || readonly()\"\n (click)=\"onChevronClick($event)\"\n >\n <span\n class=\"ax-icon\"\n [class.ax-icon-chevron-down]=\"!expanded()\"\n [class.ax-icon-chevron-up]=\"expanded()\"\n ></span>\n </button>\n <ng-content select=\"ax-suffix\"></ng-content>\n</div>\n\n<ax-popover\n [target]=\"origin\"\n [openOn]=\"'manual'\"\n [closeOn]=\"isActionsheetStyle() ? 'manual' : 'clickOut'\"\n [closeOnScroll]=\"!isActionsheetStyle()\"\n [placement]=\"'bottom-start'\"\n [width]=\"isActionsheetStyle() ? '100%' : origin.offsetWidth + 'px'\"\n [adaptivityEnabled]=\"isActionsheetStyle()\"\n [disabled]=\"disabled() || readonly()\"\n (onClosed)=\"onPopoverClosed()\"\n>\n <div\n #popup\n class=\"ax-lookup-popup\"\n [class.ax-is-actionsheet]=\"isActionsheetStyle()\"\n [class.ax-is-alternate]=\"alternate()\"\n (keydown.escape)=\"close()\"\n >\n @if (isActionsheetStyle()) {\n <ax-header class=\"ax-solid\">\n <ax-title>{{ actionsheetTitle() }}</ax-title>\n @if (isMultiple()) {\n <ax-button\n class=\"ax-sm\"\n color=\"primary\"\n look=\"solid\"\n text=\"@acorex:common.actions.apply\"\n (onClick)=\"close()\"\n ></ax-button>\n } @else {\n <ax-close-button></ax-close-button>\n }\n </ax-header>\n }\n @if (isSheetSearchEnabled()) {\n <div class=\"ax-lookup-sheet-search\">\n <ax-search-box\n #sheetSearch\n class=\"ax-sm\"\n look=\"fill\"\n [autoSearch]=\"false\"\n [delayTime]=\"0\"\n [placeholder]=\"searchPlaceholder()\"\n (onValueChanged)=\"onSheetSearchInput()\"\n (onKeyUp)=\"onSheetSearchInput()\"\n (onKeyDown)=\"onSheetSearchKeydown($event)\"\n >\n <ax-clear-button></ax-clear-button>\n </ax-search-box>\n </div>\n }\n @if (hasProjectedHeader()) {\n <ng-content select=\"ax-header\"></ng-content>\n } @else if (showDefaultSelectAllHeader()) {\n <ax-header\n class=\"ax-lookup-select-all-header ax-lookup-option-host ax-lookup-option-multiple ax-lookup-option\"\n [style.height.px]=\"itemHeight()\"\n (mousedown)=\"onSelectAllHeaderMouseDown($event)\"\n >\n <ax-check-box\n class=\"ax-lookup-checkbox\"\n [tabIndex]=\"-1\"\n [value]=\"selectAllHeaderChecked()\"\n [indeterminate]=\"selectAllHeaderIndeterminate()\"\n ></ax-check-box>\n <span class=\"ax-lookup-option-text\">\n {{ '@acorex:lookup.selectAll' | translate | async }}\n </span>\n </ax-header>\n }\n @if (expanded()) {\n @switch (mode()) {\n @case ('drop-down-list') {\n <ax-lookup-drop-down-list\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n (navigateOut)=\"onListNavigateOut($event)\"\n />\n }\n @case ('multi-select') {\n <ax-lookup-multi-select\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [selectAllActive]=\"multiSelectAllActive()\"\n [excludedValues]=\"multiExcludedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleMultiToggle($event)\"\n (navigateOut)=\"onListNavigateOut($event)\"\n />\n }\n @case ('drop-down-tree') {\n <ax-lookup-drop-down-tree\n [dataSource]=\"resolvedTreeDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [nodeTemplate]=\"$any(itemTemplate())\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [loading]=\"treeSearchLoading()\"\n [filterKey]=\"treeFilterKey()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n />\n }\n @case ('multi-select-tree') {\n <ax-lookup-multi-select-tree\n [dataSource]=\"resolvedTreeDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"effectiveSelectedKeys()\"\n [selectionBehavior]=\"treeSelectionBehavior()\"\n [nodeTemplate]=\"$any(itemTemplate())\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [loading]=\"treeSearchLoading()\"\n [filterKey]=\"treeFilterKey()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (selectionChange)=\"handleTreeSelectionChange($event)\"\n />\n }\n @case ('multi-column') {\n <ax-lookup-multi-column\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [selectedValues]=\"selectedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [columns]=\"columns()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n />\n }\n @case ('multi-column-tree') {\n <ax-lookup-multi-column-tree\n [dataSource]=\"resolvedDataSource()\"\n [valueField]=\"valueField()\"\n [textField]=\"textField()\"\n [disabledField]=\"disabledField()\"\n [parentField]=\"treeParentField()\"\n [hasChildrenField]=\"hasChildrenField()\"\n [selectedValues]=\"selectedValues()\"\n [itemHeight]=\"itemHeight()\"\n [maxVisibleItems]=\"maxVisibleItems()\"\n [columns]=\"columns()\"\n [itemTemplate]=\"itemTemplate()\"\n [emptyTemplate]=\"emptyTemplate()\"\n [loadingTemplate]=\"loadingTemplate()\"\n [alternate]=\"alternate()\"\n [highlightText]=\"highlightQuery()\"\n (itemClick)=\"handleSinglePick($event)\"\n />\n }\n }\n }\n <ng-content select=\"ax-footer\"></ng-content>\n </div>\n</ax-popover>\n<ng-content select=\"ax-validation-rule\"></ng-content>\n", styles: ["@layer properties;@layer components{ax-lookup{display:block;width:100%}ax-lookup .ax-editor-container{justify-content:flex-start;gap:calc(var(--spacing, .25rem) * 1)}ax-lookup .ax-lookup-trigger{cursor:pointer;-webkit-user-select:none;user-select:none}ax-lookup .ax-lookup-trigger-multiple{height:auto;min-height:calc(var(--spacing, .25rem) * 9);padding-block:calc(var(--spacing, .25rem) * 1)}ax-lookup .ax-lookup-value{position:relative;display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;align-items:center;overflow:hidden}ax-lookup .ax-lookup-value>.ax-input{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}ax-lookup .ax-lookup-select-input{cursor:pointer;caret-color:transparent;-webkit-user-select:none;user-select:none}ax-lookup .ax-lookup-selected-content{pointer-events:none;position:relative;z-index:0;display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;align-items:center;overflow:hidden}ax-lookup .ax-lookup-input-overlay{position:absolute;inset:calc(var(--spacing, .25rem) * 0);z-index:10;margin:calc(var(--spacing, .25rem) * 0)!important;height:100%;width:100%;border-style:var(--tw-border-style);border-width:0px;background-color:transparent;padding:calc(var(--spacing, .25rem) * 0)!important;color:transparent;caret-color:transparent}ax-lookup .ax-lookup-chips{display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;flex-wrap:wrap;align-items:center;gap:calc(var(--spacing, .25rem) * 1)}ax-lookup .ax-lookup-trigger-search{margin:calc(var(--spacing, .25rem) * 0)!important;height:calc(var(--spacing, .25rem) * 7.5);width:auto!important;min-width:calc(var(--spacing, .25rem) * 16);flex:1;flex-basis:calc(var(--spacing, .25rem) * 16)}ax-lookup .ax-lookup-placeholder{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){ax-lookup .ax-lookup-placeholder{color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 50%,transparent)}}ax-lookup ax-chips{max-width:100%;min-width:calc(var(--spacing, .25rem) * 0)}ax-lookup ax-chips ax-prefix,ax-lookup ax-chips ax-suffix{padding:calc(var(--spacing, .25rem) * 0)!important}ax-lookup ax-chips ax-suffix button{display:flex;cursor:pointer;align-items:center;border-style:var(--tw-border-style);border-width:0px;background-color:transparent;padding:calc(var(--spacing, .25rem) * 0)}.ax-lookup-popup{--ax-comp-lookup-highlight-bg-color: var(--ax-sys-color-warning-lighter-surface);--ax-comp-lookup-highlight-text-color: var(--ax-sys-color-on-warning-lighter-surface);--ax-comp-lookup-highlight-border-color: var(--ax-sys-color-warning-500);box-sizing:border-box;display:flex;width:100%;max-width:100%;min-width:calc(var(--spacing, .25rem) * 0);flex-direction:column;overflow:hidden;border-radius:var(--ax-sys-border-radius);border-style:var(--tw-border-style);border-width:1px;border-color:rgba(var(--ax-sys-color-border-surface));background-color:rgba(var(--ax-sys-color-lightest-surface));--tw-shadow: 0 10px 15px -3px var(--tw-shadow-color, rgb(0 0 0 / .1)), 0 4px 6px -4px var(--tw-shadow-color, rgb(0 0 0 / .1));box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ax-lookup-popup .ax-highlight{display:inline;margin:0;padding:0;background-color:rgb(var(--ax-comp-lookup-highlight-bg-color));color:rgb(var(--ax-comp-lookup-highlight-text-color));font-weight:inherit;box-shadow:none}.ax-lookup-popup:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-darkest-surface))}.ax-lookup-popup:not(.ax-is-actionsheet){max-height:var(--ax-comp-lookup-popup-max-height, none)}.ax-lookup-popup:not(.ax-is-actionsheet) ax-lookup-drop-down-list,.ax-lookup-popup:not(.ax-is-actionsheet) ax-lookup-multi-select,.ax-lookup-popup:not(.ax-is-actionsheet) ax-lookup-drop-down-tree,.ax-lookup-popup:not(.ax-is-actionsheet) ax-lookup-multi-select-tree,.ax-lookup-popup:not(.ax-is-actionsheet) ax-lookup-multi-column,.ax-lookup-popup:not(.ax-is-actionsheet) ax-lookup-multi-column-tree{display:flex;min-height:calc(var(--spacing, .25rem) * 0);flex-shrink:1;flex-direction:column}.ax-lookup-popup:not(.ax-is-actionsheet) .ax-lookup-viewport,.ax-lookup-popup:not(.ax-is-actionsheet) .ax-lookup-tree,.ax-lookup-popup:not(.ax-is-actionsheet) .ax-lookup-multi-column,.ax-lookup-popup:not(.ax-is-actionsheet) .ax-lookup-multi-column-tree{min-height:calc(var(--spacing, .25rem) * 0);flex-shrink:1}.ax-lookup-popup.ax-is-actionsheet{height:100dvh;max-height:100dvh;min-height:100dvh;border-bottom-right-radius:0;border-bottom-left-radius:0;--tw-shadow: 0 0 #0000;box-shadow:var(--tw-inset-shadow),var(--tw-inset-ring-shadow),var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow)}.ax-lookup-popup.ax-is-actionsheet>ax-header.ax-solid{border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}.ax-lookup-popup.ax-is-actionsheet>ax-header.ax-solid ax-title{min-width:calc(var(--spacing, .25rem) * 0);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:var(--text-base, 1rem);line-height:var(--tw-leading, var(--text-base--line-height, 1.5 ));--tw-leading: calc(var(--spacing, .25rem) * 6);line-height:calc(var(--spacing, .25rem) * 6);--tw-font-weight: var(--font-weight-medium, 500);font-weight:var(--font-weight-medium, 500)}.ax-lookup-popup.ax-is-actionsheet>ax-header.ax-solid ax-button{flex-shrink:0}.ax-lookup-popup.ax-is-actionsheet ax-lookup-drop-down-list,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-select,.ax-lookup-popup.ax-is-actionsheet ax-lookup-drop-down-tree,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-select-tree,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-column,.ax-lookup-popup.ax-is-actionsheet ax-lookup-multi-column-tree{display:flex;min-height:calc(var(--spacing, .25rem) * 0);flex:1;flex-direction:column;height:auto!important}.ax-lookup-popup.ax-is-actionsheet .ax-lookup-viewport{min-height:calc(var(--spacing, .25rem) * 0);flex:1;height:auto!important;max-height:none!important}.ax-lookup-popup.ax-is-actionsheet .ax-lookup-tree{max-height:none;min-height:calc(var(--spacing, .25rem) * 0);flex:1;overflow:auto}.ax-lookup-popup.ax-is-actionsheet .ax-lookup-empty{display:flex;flex:1;align-items:center;justify-content:center}:is(.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column,.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column-tree) .ax-lookup-multi-column-table,:is(.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column,.ax-lookup-popup.ax-is-actionsheet .ax-lookup-multi-column-tree) ax-data-table{height:100%;min-height:calc(var(--spacing, .25rem) * 0)}.ax-lookup-popup .ax-lookup-sheet-search{flex-shrink:0;border-bottom-style:var(--tw-border-style);border-bottom-width:1px;border-color:rgba(var(--ax-sys-color-border-lightest-surface));padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 2)}.ax-lookup-popup>ax-header:not(.ax-solid),.ax-lookup-popup>ax-footer{flex-shrink:0;border-color:rgba(var(--ax-sys-color-border-lightest-surface))}.ax-lookup-popup>ax-header:not(.ax-solid){border-bottom-style:var(--tw-border-style);border-bottom-width:1px}.ax-lookup-popup>ax-header.ax-lookup-select-all-header{align-items:center;justify-content:flex-start;gap:calc(var(--spacing, .25rem) * 2)}.ax-lookup-popup ax-check-box.ax-lookup-checkbox,.ax-lookup-popup .ax-tree-view-checkbox{display:inline-flex;width:calc(var(--spacing, .25rem) * 4);height:calc(var(--spacing, .25rem) * 4);flex-shrink:0;align-items:center;justify-content:center;align-self:center;--tw-leading: 1;line-height:1}:is(.ax-lookup-popup ax-check-box.ax-lookup-checkbox,.ax-lookup-popup .ax-tree-view-checkbox) .ax-checkbox-label{margin:calc(var(--spacing, .25rem) * 0);display:flex!important;width:calc(var(--spacing, .25rem) * 4);height:calc(var(--spacing, .25rem) * 4);min-height:calc(var(--spacing, .25rem) * 0);align-items:center;justify-content:center;padding:calc(var(--spacing, .25rem) * 0);grid-template-columns:unset;grid-template-rows:unset;column-gap:0;row-gap:0;line-height:1}:is(.ax-lookup-popup ax-check-box.ax-lookup-checkbox,.ax-lookup-popup .ax-tree-view-checkbox) .ax-checkbox-start-side{grid-column:auto;grid-row:auto;margin:calc(var(--spacing, .25rem) * 0);display:flex;width:calc(var(--spacing, .25rem) * 4);height:calc(var(--spacing, .25rem) * 4);align-items:center;justify-content:center;align-self:center}:is(.ax-lookup-popup ax-check-box.ax-lookup-checkbox,.ax-lookup-popup .ax-tree-view-checkbox) .ax-checkbox-end-side{display:none!important}.ax-lookup-popup>ax-footer{border-top-style:var(--tw-border-style);border-top-width:1px}.ax-lookup-viewport{width:100%;min-width:calc(var(--spacing, .25rem) * 0);overflow-x:hidden}.ax-lookup-empty{display:flex;min-height:calc(var(--spacing, .25rem) * 12);width:100%;align-items:center;justify-content:center;padding-inline:calc(var(--spacing, .25rem) * 3);padding-block:calc(var(--spacing, .25rem) * 3);text-align:center;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-empty{color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 60%,transparent)}}.ax-lookup-option-host{box-sizing:border-box;cursor:pointer;border-style:var(--tw-border-style);border-width:1px;border-color:transparent;--tw-outline-style: none;outline-style:none}.ax-lookup-option-host.ax-state-alternate{background-color:rgba(var(--ax-sys-color-light-surface))}.ax-lookup-option-host.ax-state-alternate:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-surface))}.ax-lookup-option-host:hover,.ax-lookup-option-host.ax-state-active{background-color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host:hover,.ax-lookup-option-host.ax-state-active{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 10%,transparent)}}.ax-lookup-option-host.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-alternate.ax-state-active{background-color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-alternate.ax-state-active{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 15%,transparent)}}.ax-lookup-option-host.ax-state-selected,.ax-lookup-option-host.ax-state-selected:hover,.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate,.ax-lookup-option-host.ax-state-selected.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active{background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}:is(.ax-lookup-option-host.ax-state-selected,.ax-lookup-option-host.ax-state-selected:hover,.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate,.ax-lookup-option-host.ax-state-selected.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-option-host.ax-state-selected,.ax-lookup-option-host.ax-state-selected:hover,.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate,.ax-lookup-option-host.ax-state-selected.ax-state-alternate:hover,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 25%,transparent)}}.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active{background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-lightest-surface)) 80%,transparent)}}:is(.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-option-host.ax-state-selected.ax-state-active,.ax-lookup-option-host.ax-state-selected.ax-state-alternate.ax-state-active):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 40%,transparent)}}.ax-lookup-option-host.ax-lookup-option-multiple{display:flex;align-items:center;gap:calc(var(--spacing, .25rem) * 2);padding-block:calc(var(--spacing, .25rem) * 0)}.ax-lookup-option-host.ax-lookup-option-multiple>:not(ax-check-box.ax-lookup-checkbox){display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;align-items:center;align-self:stretch;--tw-leading: calc(var(--spacing, .25rem) * 5);line-height:calc(var(--spacing, .25rem) * 5)}.ax-lookup-option-host.ax-lookup-option-multiple .ax-lookup-option-text{display:flex;min-height:calc(var(--spacing, .25rem) * 0);flex:1;align-items:center;padding-block:calc(var(--spacing, .25rem) * 0)}.ax-lookup-option-host.ax-lookup-option-multiple:not(.ax-lookup-option){padding-inline:calc(var(--spacing, .25rem) * 3)}.ax-lookup-option-host ax-check-box.ax-lookup-checkbox{pointer-events:none}.ax-lookup-option-host .ax-lookup-option-loading{width:100%;padding-inline:calc(var(--spacing, .25rem) * 3);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-option-host .ax-lookup-option-loading{color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 50%,transparent)}}.ax-lookup-option{display:flex;align-items:center;justify-content:space-between;gap:calc(var(--spacing, .25rem) * 2);padding-inline:calc(var(--spacing, .25rem) * 3);font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));color:rgba(var(--ax-sys-color-on-surface))}.ax-lookup-option.ax-state-selected{color:rgba(var(--ax-sys-color-primary-surface))}.ax-lookup-option.ax-lookup-option-multiple{justify-content:flex-start}.ax-lookup-option .ax-lookup-option-text{min-width:calc(var(--spacing, .25rem) * 0);flex:1;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.ax-lookup-option .ax-lookup-option-check{margin-inline-start:auto;flex-shrink:0;color:rgba(var(--ax-sys-color-primary-surface))}ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree{display:block;min-height:calc(var(--spacing, .25rem) * 0);width:100%}:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) .ax-lookup-multi-column-table,:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) ax-data-table{height:100%;min-height:calc(var(--spacing, .25rem) * 0);border-style:var(--tw-border-style)!important;border-width:0px!important}:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) tr.ax-state-selected{background-color:rgba(var(--ax-sys-color-primary-surface))}@supports (color: color-mix(in lab,red,red)){:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) tr.ax-state-selected{background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-surface)) 10%,transparent)}}:is(ax-lookup-multi-column,ax-lookup-multi-column-tree,.ax-lookup-multi-column,.ax-lookup-multi-column-tree) tr.ax-state-disabled{pointer-events:none;opacity:50%}.ax-lookup-tree{max-height:calc(var(--spacing, .25rem) * 80);overflow:auto}.ax-lookup-tree .ax-tree-view-node-content{align-items:center}.ax-lookup-tree .ax-lookup-tree-node-label{display:flex;min-width:calc(var(--spacing, .25rem) * 0);flex:1;align-items:center;font-size:var(--text-sm, .875rem);line-height:var(--tw-leading, var(--text-sm--line-height, calc(1.25 / .875)));--tw-leading: calc(var(--spacing, .25rem) * 5);line-height:calc(var(--spacing, .25rem) * 5)}.ax-lookup-tree .ax-tree-view-node{margin-block:0;border-radius:0}.ax-lookup-tree .ax-tree-view-node.ax-state-alternate{background-color:rgba(var(--ax-sys-color-light-surface))}.ax-lookup-tree .ax-tree-view-node.ax-state-alternate:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-surface))}.ax-lookup-tree .ax-tree-view-node.ax-state-alternate:hover:not(.ax-dragging){background-color:rgba(var(--ax-sys-color-on-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-tree .ax-tree-view-node.ax-state-alternate:hover:not(.ax-dragging){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-on-surface)) 15%,transparent)}}.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected,.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected{background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected,.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected,.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 25%,transparent)}}.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging){background-color:rgba(var(--ax-sys-color-primary-lightest-surface))}@supports (color: color-mix(in lab,red,red)){.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-lightest-surface)) 80%,transparent)}}:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging)):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:rgba(var(--ax-sys-color-primary-darkest-surface))}@supports (color: color-mix(in lab,red,red)){:is(.ax-lookup-tree .ax-tree-view-node.ax-tree-view-node-selected:hover:not(.ax-dragging),.ax-lookup-tree .ax-tree-view-node.ax-state-alternate.ax-tree-view-node-selected:hover:not(.ax-dragging)):where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:color-mix(in oklab,rgba(var(--ax-sys-color-primary-darkest-surface)) 40%,transparent)}}}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive{background-color:var(--color-lightest);color:var(--color-on-lightest);border-color:var(--color-border-lightest);border-color:rgba(var(--ax-sys-color-border-surface))}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-lighter);color:var(--color-on-lighter);border-color:var(--color-border-lighter)}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){border-color:rgba(var(--ax-sys-color-border-light-surface))}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:not(.ax-state-disabled):hover{background-color:var(--color-lighter);color:var(--color-on-lighter);border-color:var(--color-border-lighter)}ax-lookup .ax-editor-container.ax-fill ax-chips.ax-default.ax-fill-interactive:not(.ax-state-disabled):hover:where(.ax-dark,.ax-dark *):not(:where(.ax-light,.ax-light *)){background-color:var(--color-light);color:var(--color-on-light);border-color:var(--color-border-light)}@property --tw-border-style{syntax: \"*\"; inherits: false; initial-value: solid;}@property --tw-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-inset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-shadow-color{syntax: \"*\"; inherits: false;}@property --tw-inset-shadow-alpha{syntax: \"<percentage>\"; inherits: false; initial-value: 100%;}@property --tw-ring-color{syntax: \"*\"; inherits: false;}@property --tw-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-inset-ring-color{syntax: \"*\"; inherits: false;}@property --tw-inset-ring-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-ring-inset{syntax: \"*\"; inherits: false;}@property --tw-ring-offset-width{syntax: \"<length>\"; inherits: false; initial-value: 0px;}@property --tw-ring-offset-color{syntax: \"*\"; inherits: false; initial-value: #fff;}@property --tw-ring-offset-shadow{syntax: \"*\"; inherits: false; initial-value: 0 0 #0000;}@property --tw-leading{syntax: \"*\"; inherits: false;}@property --tw-font-weight{syntax: \"*\"; inherits: false;}@layer properties{@supports ((-webkit-hyphens: none) and (not (margin-trim: inline))) or ((-moz-orient: inline) and (not (color:rgb(from red r g b)))){*,:before,:after,::backdrop{--tw-border-style: solid;--tw-shadow: 0 0 #0000;--tw-shadow-color: initial;--tw-shadow-alpha: 100%;--tw-inset-shadow: 0 0 #0000;--tw-inset-shadow-color: initial;--tw-inset-shadow-alpha: 100%;--tw-ring-color: initial;--tw-ring-shadow: 0 0 #0000;--tw-inset-ring-color: initial;--tw-inset-ring-shadow: 0 0 #0000;--tw-ring-inset: initial;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-offset-shadow: 0 0 #0000;--tw-leading: initial;--tw-font-weight: initial}}}\n/*! tailwindcss v4.1.16 | MIT License | https://tailwindcss.com */\n"] }]
|
|
3826
|
+
}], ctorParameters: () => [], propDecorators: { name: [{ type: i0.Input, args: [{ isSignal: true, alias: "name", required: false }] }], mode: [{ type: i0.Input, args: [{ isSignal: true, alias: "mode", required: false }] }], dataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "dataSource", required: false }] }], treeDataSource: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeDataSource", required: false }] }], valueField: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueField", required: false }] }], textField: [{ type: i0.Input, args: [{ isSignal: true, alias: "textField", required: false }] }], disabledField: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabledField", required: false }] }], columns: [{ type: i0.Input, args: [{ isSignal: true, alias: "columns", required: false }] }], treeParentField: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeParentField", required: false }] }], hasChildrenField: [{ type: i0.Input, args: [{ isSignal: true, alias: "hasChildrenField", required: false }] }], searchable: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchable", required: false }] }], adaptivityEnabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "adaptivityEnabled", required: false }] }], caption: [{ type: i0.Input, args: [{ isSignal: true, alias: "caption", required: false }] }], alternate: [{ type: i0.Input, args: [{ isSignal: true, alias: "alternate", required: false }] }], searchPlaceholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "searchPlaceholder", required: false }] }], placeholder: [{ type: i0.Input, args: [{ isSignal: true, alias: "placeholder", required: false }] }], disabled: [{ type: i0.Input, args: [{ isSignal: true, alias: "disabled", required: false }] }], readonly: [{ type: i0.Input, args: [{ isSignal: true, alias: "readonly", required: false }] }], look: [{ type: i0.Input, args: [{ isSignal: true, alias: "look", required: false }] }, { type: i0.Output, args: ["lookChange"] }], itemHeight: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemHeight", required: false }] }], maxVisibleItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "maxVisibleItems", required: false }] }], treeSelectionBehavior: [{ type: i0.Input, args: [{ isSignal: true, alias: "treeSelectionBehavior", required: false }] }], highlightSearch: [{ type: i0.Input, args: [{ isSignal: true, alias: "highlightSearch", required: false }] }], allowSelectAll: [{ type: i0.Input, args: [{ isSignal: true, alias: "allowSelectAll", required: false }] }], itemTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "itemTemplate", required: false }] }], selectedTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "selectedTemplate", required: false }] }], emptyTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "emptyTemplate", required: false }] }], loadingTemplate: [{ type: i0.Input, args: [{ isSignal: true, alias: "loadingTemplate", required: false }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: false }] }, { type: i0.Output, args: ["valueChange"] }], projectedHeader: [{ type: i0.ContentChild, args: ['ax-header', { isSignal: true }] }], valueItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "valueItems", required: false }] }], onValueChanged: [{ type: i0.Output, args: ["onValueChanged"] }], onSelectionChanged: [{ type: i0.Output, args: ["onSelectionChanged"] }], onFocus: [{ type: i0.Output, args: ["onFocus"] }], onBlur: [{ type: i0.Output, args: ["onBlur"] }], onItemClick: [{ type: i0.Output, args: ["onItemClick"] }], onItemSelected: [{ type: i0.Output, args: ["onItemSelected"] }], onOpened: [{ type: i0.Output, args: ["onOpened"] }], onClosed: [{ type: i0.Output, args: ["onClosed"] }], popoverRef: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXPopoverComponent), { isSignal: true }] }], originRef: [{ type: i0.ViewChild, args: ['origin', { isSignal: true }] }], popupRef: [{ type: i0.ViewChild, args: ['popup', { isSignal: true }] }], triggerSearchInput: [{ type: i0.ViewChild, args: ['triggerSearchInput', { isSignal: true }] }], listView: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXLookupListViewBase), { isSignal: true }] }], multiTreeView: [{ type: i0.ViewChild, args: [i0.forwardRef(() => AXLookupMultiSelectTreeComponent), { isSignal: true }] }], sheetSearchRef: [{ type: i0.ViewChild, args: ['sheetSearch', { isSignal: true }] }] } });
|
|
3067
3827
|
|
|
3068
3828
|
class AXLookupModule {
|
|
3069
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.
|
|
3070
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.
|
|
3829
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
|
3830
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.1.6", ngImport: i0, type: AXLookupModule, imports: [AXLookupComponent,
|
|
3071
3831
|
AXLookupDropDownListComponent,
|
|
3072
3832
|
AXLookupMultiSelectComponent,
|
|
3073
3833
|
AXLookupDropDownTreeComponent,
|
|
@@ -3080,7 +3840,7 @@ class AXLookupModule {
|
|
|
3080
3840
|
AXLookupMultiSelectTreeComponent,
|
|
3081
3841
|
AXLookupMultiColumnComponent,
|
|
3082
3842
|
AXLookupMultiColumnTreeComponent] }); }
|
|
3083
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.
|
|
3843
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupModule, imports: [AXLookupComponent,
|
|
3084
3844
|
AXLookupDropDownListComponent,
|
|
3085
3845
|
AXLookupMultiSelectComponent,
|
|
3086
3846
|
AXLookupDropDownTreeComponent,
|
|
@@ -3088,7 +3848,7 @@ class AXLookupModule {
|
|
|
3088
3848
|
AXLookupMultiColumnComponent,
|
|
3089
3849
|
AXLookupMultiColumnTreeComponent] }); }
|
|
3090
3850
|
}
|
|
3091
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.
|
|
3851
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.1.6", ngImport: i0, type: AXLookupModule, decorators: [{
|
|
3092
3852
|
type: NgModule,
|
|
3093
3853
|
args: [{
|
|
3094
3854
|
imports: [
|
|
@@ -3116,5 +3876,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImpor
|
|
|
3116
3876
|
* Generated bundle index. Do not edit.
|
|
3117
3877
|
*/
|
|
3118
3878
|
|
|
3119
|
-
export { AXLookupComponent, AXLookupDropDownListComponent, AXLookupDropDownTreeComponent, AXLookupModule, AXLookupMultiColumnComponent, AXLookupMultiColumnTreeComponent, AXLookupMultiSelectComponent, AXLookupMultiSelectTreeComponent };
|
|
3879
|
+
export { AXLookupComponent, AXLookupDefaultConfig, AXLookupDropDownListComponent, AXLookupDropDownTreeComponent, AXLookupModule, AXLookupMultiColumnComponent, AXLookupMultiColumnTreeComponent, AXLookupMultiSelectComponent, AXLookupMultiSelectTreeComponent, AX_LOOKUP_CONFIG, cloneLookupTreeNodes, convertLookupArrayToDataSource, createLookupSelectAllValue, createLookupTreeTableDataSource, filterTreeNodes, flattenTreeNodes, hydrateLookupTree, isLookupSelectAllValue, lookupArrayValues, lookupBoundValueIsEmpty, lookupConfig, lookupExcludedValues, lookupMultiValuesEqual, lookupSelectAllActive, lookupTreeNodeMayHaveChildren, matchesLookupText, prepareFilteredTreeTableRows };
|
|
3120
3880
|
//# sourceMappingURL=acorex-components-lookup.mjs.map
|