@yuuvis/client-framework 3.0.0-beta.20.0 → 3.0.0-beta.21.0

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.
Files changed (109) hide show
  1. package/fesm2022/yuuvis-client-framework-actions.mjs +25 -25
  2. package/fesm2022/yuuvis-client-framework-actions.mjs.map +1 -1
  3. package/fesm2022/yuuvis-client-framework-app-bar.mjs +6 -6
  4. package/fesm2022/yuuvis-client-framework-app-bar.mjs.map +1 -1
  5. package/fesm2022/yuuvis-client-framework-autocomplete.mjs +22 -22
  6. package/fesm2022/yuuvis-client-framework-autocomplete.mjs.map +1 -1
  7. package/fesm2022/yuuvis-client-framework-breadcrumb.mjs +4 -4
  8. package/fesm2022/yuuvis-client-framework-breadcrumb.mjs.map +1 -1
  9. package/fesm2022/yuuvis-client-framework-clipboard.mjs +7 -6
  10. package/fesm2022/yuuvis-client-framework-clipboard.mjs.map +1 -1
  11. package/fesm2022/yuuvis-client-framework-common.mjs +135 -135
  12. package/fesm2022/yuuvis-client-framework-common.mjs.map +1 -1
  13. package/fesm2022/yuuvis-client-framework-datepicker.mjs +51 -51
  14. package/fesm2022/yuuvis-client-framework-datepicker.mjs.map +1 -1
  15. package/fesm2022/yuuvis-client-framework-forms.mjs +154 -167
  16. package/fesm2022/yuuvis-client-framework-forms.mjs.map +1 -1
  17. package/fesm2022/yuuvis-client-framework-icons.mjs +14 -14
  18. package/fesm2022/yuuvis-client-framework-icons.mjs.map +1 -1
  19. package/fesm2022/yuuvis-client-framework-list.mjs +34 -46
  20. package/fesm2022/yuuvis-client-framework-list.mjs.map +1 -1
  21. package/fesm2022/yuuvis-client-framework-master-details.mjs +14 -14
  22. package/fesm2022/yuuvis-client-framework-master-details.mjs.map +1 -1
  23. package/fesm2022/yuuvis-client-framework-metadata-form-defaults.mjs +7 -7
  24. package/fesm2022/yuuvis-client-framework-metadata-form-defaults.mjs.map +1 -1
  25. package/fesm2022/yuuvis-client-framework-metadata-form.mjs +28 -28
  26. package/fesm2022/yuuvis-client-framework-metadata-form.mjs.map +1 -1
  27. package/fesm2022/yuuvis-client-framework-object-details.mjs +92 -95
  28. package/fesm2022/yuuvis-client-framework-object-details.mjs.map +1 -1
  29. package/fesm2022/yuuvis-client-framework-object-flavor.mjs +46 -44
  30. package/fesm2022/yuuvis-client-framework-object-flavor.mjs.map +1 -1
  31. package/fesm2022/yuuvis-client-framework-object-form.mjs +47 -47
  32. package/fesm2022/yuuvis-client-framework-object-form.mjs.map +1 -1
  33. package/fesm2022/yuuvis-client-framework-object-preview.mjs +37 -58
  34. package/fesm2022/yuuvis-client-framework-object-preview.mjs.map +1 -1
  35. package/fesm2022/yuuvis-client-framework-object-relationship.mjs +80 -80
  36. package/fesm2022/yuuvis-client-framework-object-relationship.mjs.map +1 -1
  37. package/fesm2022/yuuvis-client-framework-object-summary.mjs +37 -38
  38. package/fesm2022/yuuvis-client-framework-object-summary.mjs.map +1 -1
  39. package/fesm2022/yuuvis-client-framework-object-versions.mjs +20 -20
  40. package/fesm2022/yuuvis-client-framework-object-versions.mjs.map +1 -1
  41. package/fesm2022/yuuvis-client-framework-overflow-hidden.mjs +9 -9
  42. package/fesm2022/yuuvis-client-framework-overflow-hidden.mjs.map +1 -1
  43. package/fesm2022/yuuvis-client-framework-overflow-menu.mjs +15 -15
  44. package/fesm2022/yuuvis-client-framework-overflow-menu.mjs.map +1 -1
  45. package/fesm2022/yuuvis-client-framework-pagination.mjs +5 -5
  46. package/fesm2022/yuuvis-client-framework-pagination.mjs.map +1 -1
  47. package/fesm2022/yuuvis-client-framework-popout.mjs +21 -21
  48. package/fesm2022/yuuvis-client-framework-popout.mjs.map +1 -1
  49. package/fesm2022/yuuvis-client-framework-query-list.mjs +26 -28
  50. package/fesm2022/yuuvis-client-framework-query-list.mjs.map +1 -1
  51. package/fesm2022/yuuvis-client-framework-renderer.mjs +51 -51
  52. package/fesm2022/yuuvis-client-framework-renderer.mjs.map +1 -1
  53. package/fesm2022/yuuvis-client-framework-sequence-list.mjs +7 -7
  54. package/fesm2022/yuuvis-client-framework-sequence-list.mjs.map +1 -1
  55. package/fesm2022/yuuvis-client-framework-simple-search.mjs +4 -4
  56. package/fesm2022/yuuvis-client-framework-simple-search.mjs.map +1 -1
  57. package/fesm2022/yuuvis-client-framework-sort.mjs +34 -55
  58. package/fesm2022/yuuvis-client-framework-sort.mjs.map +1 -1
  59. package/fesm2022/yuuvis-client-framework-split-view.mjs +33 -36
  60. package/fesm2022/yuuvis-client-framework-split-view.mjs.map +1 -1
  61. package/fesm2022/yuuvis-client-framework-tile-list.mjs +88 -90
  62. package/fesm2022/yuuvis-client-framework-tile-list.mjs.map +1 -1
  63. package/fesm2022/yuuvis-client-framework-token-search.mjs +21 -21
  64. package/fesm2022/yuuvis-client-framework-token-search.mjs.map +1 -1
  65. package/fesm2022/yuuvis-client-framework-tree.mjs +16 -16
  66. package/fesm2022/yuuvis-client-framework-tree.mjs.map +1 -1
  67. package/fesm2022/yuuvis-client-framework-upload-progress.mjs +15 -15
  68. package/fesm2022/yuuvis-client-framework-upload-progress.mjs.map +1 -1
  69. package/fesm2022/yuuvis-client-framework-widget-grid.mjs +59 -63
  70. package/fesm2022/yuuvis-client-framework-widget-grid.mjs.map +1 -1
  71. package/fesm2022/yuuvis-client-framework.mjs +22 -22
  72. package/fesm2022/yuuvis-client-framework.mjs.map +1 -1
  73. package/package.json +49 -48
  74. package/{clipboard/index.d.ts → types/yuuvis-client-framework-clipboard.d.ts} +1 -1
  75. package/{object-flavor/index.d.ts → types/yuuvis-client-framework-object-flavor.d.ts} +1 -0
  76. package/{renderer/index.d.ts → types/yuuvis-client-framework-renderer.d.ts} +2 -2
  77. package/{widget-grid/index.d.ts → types/yuuvis-client-framework-widget-grid.d.ts} +3 -3
  78. /package/{actions/index.d.ts → types/yuuvis-client-framework-actions.d.ts} +0 -0
  79. /package/{app-bar/index.d.ts → types/yuuvis-client-framework-app-bar.d.ts} +0 -0
  80. /package/{autocomplete/index.d.ts → types/yuuvis-client-framework-autocomplete.d.ts} +0 -0
  81. /package/{breadcrumb/index.d.ts → types/yuuvis-client-framework-breadcrumb.d.ts} +0 -0
  82. /package/{common/index.d.ts → types/yuuvis-client-framework-common.d.ts} +0 -0
  83. /package/{datepicker/index.d.ts → types/yuuvis-client-framework-datepicker.d.ts} +0 -0
  84. /package/{forms/index.d.ts → types/yuuvis-client-framework-forms.d.ts} +0 -0
  85. /package/{icons/index.d.ts → types/yuuvis-client-framework-icons.d.ts} +0 -0
  86. /package/{list/index.d.ts → types/yuuvis-client-framework-list.d.ts} +0 -0
  87. /package/{master-details/index.d.ts → types/yuuvis-client-framework-master-details.d.ts} +0 -0
  88. /package/{metadata-form-defaults/index.d.ts → types/yuuvis-client-framework-metadata-form-defaults.d.ts} +0 -0
  89. /package/{metadata-form/index.d.ts → types/yuuvis-client-framework-metadata-form.d.ts} +0 -0
  90. /package/{object-details/index.d.ts → types/yuuvis-client-framework-object-details.d.ts} +0 -0
  91. /package/{object-form/index.d.ts → types/yuuvis-client-framework-object-form.d.ts} +0 -0
  92. /package/{object-preview/index.d.ts → types/yuuvis-client-framework-object-preview.d.ts} +0 -0
  93. /package/{object-relationship/index.d.ts → types/yuuvis-client-framework-object-relationship.d.ts} +0 -0
  94. /package/{object-summary/index.d.ts → types/yuuvis-client-framework-object-summary.d.ts} +0 -0
  95. /package/{object-versions/index.d.ts → types/yuuvis-client-framework-object-versions.d.ts} +0 -0
  96. /package/{overflow-hidden/index.d.ts → types/yuuvis-client-framework-overflow-hidden.d.ts} +0 -0
  97. /package/{overflow-menu/index.d.ts → types/yuuvis-client-framework-overflow-menu.d.ts} +0 -0
  98. /package/{pagination/index.d.ts → types/yuuvis-client-framework-pagination.d.ts} +0 -0
  99. /package/{popout/index.d.ts → types/yuuvis-client-framework-popout.d.ts} +0 -0
  100. /package/{query-list/index.d.ts → types/yuuvis-client-framework-query-list.d.ts} +0 -0
  101. /package/{sequence-list/index.d.ts → types/yuuvis-client-framework-sequence-list.d.ts} +0 -0
  102. /package/{simple-search/index.d.ts → types/yuuvis-client-framework-simple-search.d.ts} +0 -0
  103. /package/{sort/index.d.ts → types/yuuvis-client-framework-sort.d.ts} +0 -0
  104. /package/{split-view/index.d.ts → types/yuuvis-client-framework-split-view.d.ts} +0 -0
  105. /package/{tile-list/index.d.ts → types/yuuvis-client-framework-tile-list.d.ts} +0 -0
  106. /package/{token-search/index.d.ts → types/yuuvis-client-framework-token-search.d.ts} +0 -0
  107. /package/{tree/index.d.ts → types/yuuvis-client-framework-tree.d.ts} +0 -0
  108. /package/{upload-progress/index.d.ts → types/yuuvis-client-framework-upload-progress.d.ts} +0 -0
  109. /package/{index.d.ts → types/yuuvis-client-framework.d.ts} +0 -0
@@ -1 +1 @@
1
- {"version":3,"file":"yuuvis-client-framework-popout.mjs","sources":["../../../../../libs/yuuvis/client-framework/popout/src/lib/popout-trigger/popout-trigger.component.ts","../../../../../libs/yuuvis/client-framework/popout/src/lib/popout-trigger/popout-trigger.component.html","../../../../../libs/yuuvis/client-framework/popout/src/lib/popout.interface.ts","../../../../../libs/yuuvis/client-framework/popout/src/lib/popout.component.ts","../../../../../libs/yuuvis/client-framework/popout/src/lib/popout.component.html","../../../../../libs/yuuvis/client-framework/popout/src/lib/popout.module.ts","../../../../../libs/yuuvis/client-framework/popout/src/lib/fullscreen.directive.ts","../../../../../libs/yuuvis/client-framework/popout/src/yuuvis-client-framework-popout.ts"],"sourcesContent":["import { Component, computed, inject, input } from '@angular/core';\n\nimport { PopoutComponent } from '../popout.component';\nimport { PopoutTriggerConfig } from '../popout.interface';\nimport { YmtIconButtonDirective } from '@yuuvis/material';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { TranslateService } from '@ngx-translate/core';\n\n\n\n@Component({\n selector: 'yuv-popout-trigger',\n imports: [YmtIconButtonDirective, MatIconModule, MatTooltipModule],\n templateUrl: './popout-trigger.component.html',\n styleUrl: './popout-trigger.component.scss'\n})\nexport class PopoutTriggerComponent {\n private translate = inject(TranslateService);\n\n config = input<PopoutTriggerConfig>();\n popout = input<PopoutComponent>()\n\n icon = computed(() => {\n const poppedOut = this.popout()?.poppedOut();\n return poppedOut ? (this.config()?.popinIcon || 'open_in_new_down') : (\n this.config()?.popoutIcon || 'open_in_new');\n });\n tooltip = computed(() => {\n const poppedOut = this.popout()?.poppedOut();\n return poppedOut ? (this.config()?.popinTooltip || this.translate.instant('yuv.popout.popin.tooltip')) : (\n this.config()?.popoutTooltip || this.translate.instant('yuv.popout.popout.tooltip'));\n });\n\n trigger(e: MouseEvent) {\n this.popout()?.pop(e);\n }\n}\n","<button ymtIconButton [matTooltip]=\"tooltip()\" (click)=\"trigger($event)\">\n <mat-icon>{{ icon() }}</mat-icon>\n</button>","export enum PopoutTriggerPosition {\n TOP_LEFT = 'tl',\n TOP_RIGHT = 'tr',\n BOTTOM_LEFT = 'bl',\n BOTTOM_RIGHT = 'br',\n NONE = 'none'\n}\n\n\nexport interface PopoutTriggerConfig {\n popoutIcon?: string;\n popinIcon?: string;\n popoutTooltip?: string;\n popinTooltip?: string;\n}\n\nexport interface PopoutWindowConfig {\n // title of the window opened by popout\n title?: string;\n position?: {\n // 'top' position in px\n blockStart?: number;\n // 'left' position in px\n inlineStart?: number;\n };\n // set the size of the poped out window\n // If no size is set the window will resize to\n // the size of the rendered content (if measurable)\n size?: {\n // width in px\n width?: number;\n // height in px\n height?: number;\n };\n}\n","import { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n OnDestroy,\n output,\n Renderer2,\n signal,\n viewChild\n} from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { YmtIconButtonDirective } from '@yuuvis/material';\nimport { PopoutTriggerPosition, PopoutWindowConfig } from './popout.interface';\n\n// based upon: https://github.com/GIimmer/angular-opinionated-popout-window\n\n/**\n * Component that enables the wrapped content to be 'popped out' as new window.\n * It will place a button (icon) to trigger popout on top of the wrapped content. You\n * can place this trigger element setting the 'triggerPosition' input.\n *\n * Providing a 'popoutWindowConfig' will also enable you to influence the appearance of\n * the spawned window.\n *\n */\n@Component({\n selector: 'yuv-popout',\n exportAs: 'yuvPopout',\n imports: [CommonModule, MatButtonModule, MatIconModule, YmtIconButtonDirective, MatTooltipModule],\n templateUrl: './popout.component.html',\n styleUrl: './popout.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(window:beforeunload)': 'beforeunloadHandler()'\n // \"[attr.data-pos]\": \"triggerPosition()\"\n }\n})\nexport class PopoutComponent implements OnDestroy {\n #renderer2 = inject(Renderer2);\n #cd = inject(ChangeDetectorRef);\n\n beforeunloadHandler(): void {\n this._close();\n }\n\n innerWrapper = viewChild.required<ElementRef>('innerWrapper');\n popoutWrapper = viewChild.required<ElementRef>('popoutWrapper');\n\n /**\n * Where the popout trigger should be located on the component\n */\n triggerPosition = input<PopoutTriggerPosition>(PopoutTriggerPosition.TOP_RIGHT);\n /**\n * Icon to be redered inside the trigger\n */\n triggerIcon = input<string>('open_in_new');\n /**\n * Tooltip text for the trigger button\n */\n triggerTooltip = input<string>();\n\n /**\n * configuration of the popped out window\n */\n popoutWindowConfig = input<PopoutWindowConfig>();\n /**\n * Whether or not to disable the undock feature\n */\n disabled = input<boolean>();\n\n /**\n * Emitted when the child component is popped out\n */\n popOut = output<boolean>();\n /**\n * Emitted when the child component is popped in again\n */\n popIn = output<boolean>();\n\n #popoutWindow = signal<Window | null>(null);\n #observer?: MutationObserver;\n\n poppedOut = computed(() => !!this.#popoutWindow());\n\n get isPoppedOut() {\n return this.poppedOut();\n }\n\n pop(e: MouseEvent) {\n if (this.isPoppedOut) this._popIn();\n else this._popOut(e);\n }\n\n private _popIn(): void {\n this.#renderer2.appendChild(this.popoutWrapper().nativeElement, this.innerWrapper().nativeElement);\n this._close();\n this.#cd.detectChanges();\n }\n\n private _popOut(event?: MouseEvent): void {\n if (!this.#popoutWindow()) {\n this.#popoutWindow.set(this._createPopoutWindow(event));\n\n const pw = this.#popoutWindow();\n if (!pw) {\n // The window wasn't allowed to open\n // This is likely caused by built-in popup blockers.\n alert('Could not open new window. This is likely caused by built-in popup blockers.');\n return;\n }\n this._cloneStylesToPopoutWindow();\n this._observeFutureStyleChanges();\n\n this.#renderer2.appendChild(pw.document.body, this.innerWrapper().nativeElement);\n pw.addEventListener('unload', () => this._popIn());\n this.#cd.detectChanges();\n this.popOut.emit(true);\n } else {\n this.#popoutWindow()!.focus();\n }\n }\n\n private _createPopoutWindow(mouseEvent?: MouseEvent): Window | null {\n const elmRect = this.innerWrapper().nativeElement.getBoundingClientRect();\n const [winLeft, winTop] = this._getWindowPositioning(elmRect, mouseEvent);\n const pwc = this.popoutWindowConfig();\n const winWidth = pwc?.size?.width ? pwc.size.width : elmRect.width;\n const winHeight = pwc?.size?.height ? pwc.size.height : elmRect.height + 1;\n\n const win = window.open(\n '',\n `popoutWindow${Date.now()}`,\n ` popup,\n width=${winWidth},\n height=${winHeight},\n left=${winLeft},\n top=${winTop}`\n );\n if (win) {\n win.document.title = this.popoutWindowConfig()?.title || window.document.title;\n win.document.body.style.margin = '0';\n }\n return win;\n }\n\n private _getWindowPositioning(elmRect: DOMRect, mouseEvent?: MouseEvent) {\n let winTop, winLeft;\n\n const pwc = this.popoutWindowConfig()?.position;\n if (pwc) {\n winTop = pwc.blockStart || winTop;\n winLeft = pwc.inlineStart || winLeft;\n } else {\n const navHeight = window.outerHeight - window.innerHeight;\n const navWidth = (window.outerWidth - window.innerWidth) / 2;\n\n winTop = window.screenY + navHeight + elmRect.top - 60;\n winLeft = window.screenX + navWidth + elmRect.left;\n\n // Position window titleBar under mouse\n if (mouseEvent) {\n winTop = mouseEvent.clientY + navHeight - 7;\n winLeft += 120;\n }\n }\n return [winLeft, winTop];\n }\n\n private _close(): void {\n if (this.#popoutWindow()) {\n this.#popoutWindow()!.close();\n this.#popoutWindow.set(null);\n this.popIn.emit(true);\n }\n }\n\n private _cloneStylesToPopoutWindow() {\n if (window.navigator.userAgent.indexOf('Firefox') === -1) {\n document.fonts.forEach((node) => {\n (this.#popoutWindow()!.document as any).fonts.add(node);\n });\n }\n document.head.querySelectorAll('link[rel=\"stylesheet\"]').forEach((node) => {\n this.#popoutWindow()!.document.head.insertAdjacentHTML(\n 'beforeend',\n `<link rel=\"stylesheet\" type=\"${(node as HTMLLinkElement).type}\" href=\"${(node as HTMLLinkElement).href}\">`\n );\n });\n document.head.querySelectorAll('style').forEach((node) => {\n this.#popoutWindow()!.document.head.appendChild(node.cloneNode(true));\n });\n }\n\n private _observeFutureStyleChanges() {\n const headEle = document.querySelector('head');\n const win = this.#popoutWindow();\n this.#observer?.disconnect();\n this.#observer = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n mutation.addedNodes.forEach((node) => {\n if (win && node.nodeName === 'STYLE') {\n win.document.head.appendChild(node.cloneNode(true));\n }\n });\n });\n });\n this.#observer.observe(headEle!, { childList: true });\n }\n\n ngOnDestroy(): void {\n this.#observer?.disconnect();\n this._close();\n }\n}\n","<div #popoutWrapper class=\"popoutWrapper\" [ngClass]=\"{ disabled: disabled() }\" [attr.data-pos]=\"triggerPosition()\">\n @if (triggerPosition() !== 'none') {\n <button ymtIconButton icon-button-size=\"small\" type=\"button\" class=\"trigger\" (click)=\"pop($event)\" [matTooltip]=\"triggerTooltip()\" [ngClass]=\"{ poppedOut: isPoppedOut }\">\n <mat-icon>{{ triggerIcon() }}</mat-icon>\n </button>\n }\n <div #innerWrapper class=\"innerWrapper\">\n <ng-content></ng-content>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { FullscreenDirective } from '@yuuvis/material/panes';\nimport { PopoutTriggerComponent } from './popout-trigger/popout-trigger.component';\nimport { PopoutComponent } from './popout.component';\n\n@NgModule({\n imports: [PopoutComponent, PopoutTriggerComponent, FullscreenDirective],\n exports: [PopoutComponent, PopoutTriggerComponent, FullscreenDirective]\n})\nexport class YuvPopoutModule {}\n","/**\n * @deprecated Import `FullscreenDirective` from `@yuuvis/material/panes` instead.\n */\nexport { FullscreenDirective } from '@yuuvis/material/panes';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i3"],"mappings":";;;;;;;;;;;;;;MAiBa,sBAAsB,CAAA;AANnC,IAAA,WAAA,GAAA;AAOU,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;QAE5C,IAAA,CAAA,MAAM,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAuB;QACrC,IAAA,CAAA,MAAM,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,GAAA,EAAA,CAAA,CAAmB;AAEjC,QAAA,IAAA,CAAA,IAAI,GAAG,QAAQ,CAAC,MAAK;YACnB,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE;YAC5C,OAAO,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE,SAAS,IAAI,kBAAkB,KAClE,IAAI,CAAC,MAAM,EAAE,EAAE,UAAU,IAAI,aAAa,CAAC;AAC7C,QAAA,CAAC,gDAAC;AACF,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAC,MAAK;YACtB,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE;AAC5C,YAAA,OAAO,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE,YAAY,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,0BAA0B,CAAC,KACrG,IAAI,CAAC,MAAM,EAAE,EAAE,aAAa,IAAI,IAAI,CAAC,SAAS,CAAC,OAAO,CAA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GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;gHAAf,eAAe,EAAA,OAAA,EAAA,CAHhB,eAAe,EAAE,sBAAsB,EAAE,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAC5D,eAAe,EAAE,sBAAsB,EAAE,mBAAmB,CAAA,EAAA,CAAA,CAAA;gHAE3D,eAAe,EAAA,OAAA,EAAA,CAHhB,eAAe,EAAE,sBAAsB,CAAA,EAAA,CAAA,CAAA;;4FAGtC,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,sBAAsB,EAAE,mBAAmB,CAAC;AACvE,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,sBAAsB,EAAE,mBAAmB;AACvE,iBAAA;;;ACRD;;AAEG;;ACFH;;AAEG;;;;"}
1
+ {"version":3,"file":"yuuvis-client-framework-popout.mjs","sources":["../../../../../libs/yuuvis/client-framework/popout/src/lib/popout-trigger/popout-trigger.component.ts","../../../../../libs/yuuvis/client-framework/popout/src/lib/popout-trigger/popout-trigger.component.html","../../../../../libs/yuuvis/client-framework/popout/src/lib/popout.interface.ts","../../../../../libs/yuuvis/client-framework/popout/src/lib/popout.component.ts","../../../../../libs/yuuvis/client-framework/popout/src/lib/popout.component.html","../../../../../libs/yuuvis/client-framework/popout/src/lib/popout.module.ts","../../../../../libs/yuuvis/client-framework/popout/src/lib/fullscreen.directive.ts","../../../../../libs/yuuvis/client-framework/popout/src/yuuvis-client-framework-popout.ts"],"sourcesContent":["import { Component, computed, inject, input } from '@angular/core';\n\nimport { PopoutComponent } from '../popout.component';\nimport { PopoutTriggerConfig } from '../popout.interface';\nimport { YmtIconButtonDirective } from '@yuuvis/material';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { TranslateService } from '@ngx-translate/core';\n\n\n\n@Component({\n selector: 'yuv-popout-trigger',\n imports: [YmtIconButtonDirective, MatIconModule, MatTooltipModule],\n templateUrl: './popout-trigger.component.html',\n styleUrl: './popout-trigger.component.scss'\n})\nexport class PopoutTriggerComponent {\n private translate = inject(TranslateService);\n\n config = input<PopoutTriggerConfig>();\n popout = input<PopoutComponent>()\n\n icon = computed(() => {\n const poppedOut = this.popout()?.poppedOut();\n return poppedOut ? (this.config()?.popinIcon || 'open_in_new_down') : (\n this.config()?.popoutIcon || 'open_in_new');\n });\n tooltip = computed(() => {\n const poppedOut = this.popout()?.poppedOut();\n return poppedOut ? (this.config()?.popinTooltip || this.translate.instant('yuv.popout.popin.tooltip')) : (\n this.config()?.popoutTooltip || this.translate.instant('yuv.popout.popout.tooltip'));\n });\n\n trigger(e: MouseEvent) {\n this.popout()?.pop(e);\n }\n}\n","<button ymtIconButton [matTooltip]=\"tooltip()\" (click)=\"trigger($event)\">\n <mat-icon>{{ icon() }}</mat-icon>\n</button>","export enum PopoutTriggerPosition {\n TOP_LEFT = 'tl',\n TOP_RIGHT = 'tr',\n BOTTOM_LEFT = 'bl',\n BOTTOM_RIGHT = 'br',\n NONE = 'none'\n}\n\n\nexport interface PopoutTriggerConfig {\n popoutIcon?: string;\n popinIcon?: string;\n popoutTooltip?: string;\n popinTooltip?: string;\n}\n\nexport interface PopoutWindowConfig {\n // title of the window opened by popout\n title?: string;\n position?: {\n // 'top' position in px\n blockStart?: number;\n // 'left' position in px\n inlineStart?: number;\n };\n // set the size of the poped out window\n // If no size is set the window will resize to\n // the size of the rendered content (if measurable)\n size?: {\n // width in px\n width?: number;\n // height in px\n height?: number;\n };\n}\n","import { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n OnDestroy,\n output,\n Renderer2,\n signal,\n viewChild\n} from '@angular/core';\nimport { MatButtonModule } from '@angular/material/button';\nimport { MatIconModule } from '@angular/material/icon';\nimport { MatTooltipModule } from '@angular/material/tooltip';\nimport { YmtIconButtonDirective } from '@yuuvis/material';\nimport { PopoutTriggerPosition, PopoutWindowConfig } from './popout.interface';\n\n// based upon: https://github.com/GIimmer/angular-opinionated-popout-window\n\n/**\n * Component that enables the wrapped content to be 'popped out' as new window.\n * It will place a button (icon) to trigger popout on top of the wrapped content. You\n * can place this trigger element setting the 'triggerPosition' input.\n *\n * Providing a 'popoutWindowConfig' will also enable you to influence the appearance of\n * the spawned window.\n *\n */\n@Component({\n selector: 'yuv-popout',\n exportAs: 'yuvPopout',\n imports: [CommonModule, MatButtonModule, MatIconModule, YmtIconButtonDirective, MatTooltipModule],\n templateUrl: './popout.component.html',\n styleUrl: './popout.component.scss',\n changeDetection: ChangeDetectionStrategy.OnPush,\n host: {\n '(window:beforeunload)': 'beforeunloadHandler()'\n // \"[attr.data-pos]\": \"triggerPosition()\"\n }\n})\nexport class PopoutComponent implements OnDestroy {\n #renderer2 = inject(Renderer2);\n #cd = inject(ChangeDetectorRef);\n\n beforeunloadHandler(): void {\n this._close();\n }\n\n innerWrapper = viewChild.required<ElementRef>('innerWrapper');\n popoutWrapper = viewChild.required<ElementRef>('popoutWrapper');\n\n /**\n * Where the popout trigger should be located on the component\n */\n triggerPosition = input<PopoutTriggerPosition>(PopoutTriggerPosition.TOP_RIGHT);\n /**\n * Icon to be redered inside the trigger\n */\n triggerIcon = input<string>('open_in_new');\n /**\n * Tooltip text for the trigger button\n */\n triggerTooltip = input<string>();\n\n /**\n * configuration of the popped out window\n */\n popoutWindowConfig = input<PopoutWindowConfig>();\n /**\n * Whether or not to disable the undock feature\n */\n disabled = input<boolean>();\n\n /**\n * Emitted when the child component is popped out\n */\n popOut = output<boolean>();\n /**\n * Emitted when the child component is popped in again\n */\n popIn = output<boolean>();\n\n #popoutWindow = signal<Window | null>(null);\n #observer?: MutationObserver;\n\n poppedOut = computed(() => !!this.#popoutWindow());\n\n get isPoppedOut() {\n return this.poppedOut();\n }\n\n pop(e: MouseEvent) {\n if (this.isPoppedOut) this._popIn();\n else this._popOut(e);\n }\n\n private _popIn(): void {\n this.#renderer2.appendChild(this.popoutWrapper().nativeElement, this.innerWrapper().nativeElement);\n this._close();\n this.#cd.detectChanges();\n }\n\n private _popOut(event?: MouseEvent): void {\n if (!this.#popoutWindow()) {\n this.#popoutWindow.set(this._createPopoutWindow(event));\n\n const pw = this.#popoutWindow();\n if (!pw) {\n // The window wasn't allowed to open\n // This is likely caused by built-in popup blockers.\n alert('Could not open new window. This is likely caused by built-in popup blockers.');\n return;\n }\n this._cloneStylesToPopoutWindow();\n this._observeFutureStyleChanges();\n\n this.#renderer2.appendChild(pw.document.body, this.innerWrapper().nativeElement);\n pw.addEventListener('unload', () => this._popIn());\n this.#cd.detectChanges();\n this.popOut.emit(true);\n } else {\n this.#popoutWindow()!.focus();\n }\n }\n\n private _createPopoutWindow(mouseEvent?: MouseEvent): Window | null {\n const elmRect = this.innerWrapper().nativeElement.getBoundingClientRect();\n const [winLeft, winTop] = this._getWindowPositioning(elmRect, mouseEvent);\n const pwc = this.popoutWindowConfig();\n const winWidth = pwc?.size?.width ? pwc.size.width : elmRect.width;\n const winHeight = pwc?.size?.height ? pwc.size.height : elmRect.height + 1;\n\n const win = window.open(\n '',\n `popoutWindow${Date.now()}`,\n ` popup,\n width=${winWidth},\n height=${winHeight},\n left=${winLeft},\n top=${winTop}`\n );\n if (win) {\n win.document.title = this.popoutWindowConfig()?.title || window.document.title;\n win.document.body.style.margin = '0';\n }\n return win;\n }\n\n private _getWindowPositioning(elmRect: DOMRect, mouseEvent?: MouseEvent) {\n let winTop, winLeft;\n\n const pwc = this.popoutWindowConfig()?.position;\n if (pwc) {\n winTop = pwc.blockStart || winTop;\n winLeft = pwc.inlineStart || winLeft;\n } else {\n const navHeight = window.outerHeight - window.innerHeight;\n const navWidth = (window.outerWidth - window.innerWidth) / 2;\n\n winTop = window.screenY + navHeight + elmRect.top - 60;\n winLeft = window.screenX + navWidth + elmRect.left;\n\n // Position window titleBar under mouse\n if (mouseEvent) {\n winTop = mouseEvent.clientY + navHeight - 7;\n winLeft += 120;\n }\n }\n return [winLeft, winTop];\n }\n\n private _close(): void {\n if (this.#popoutWindow()) {\n this.#popoutWindow()!.close();\n this.#popoutWindow.set(null);\n this.popIn.emit(true);\n }\n }\n\n private _cloneStylesToPopoutWindow() {\n if (window.navigator.userAgent.indexOf('Firefox') === -1) {\n document.fonts.forEach((node) => {\n (this.#popoutWindow()!.document as any).fonts.add(node);\n });\n }\n document.head.querySelectorAll('link[rel=\"stylesheet\"]').forEach((node) => {\n this.#popoutWindow()!.document.head.insertAdjacentHTML(\n 'beforeend',\n `<link rel=\"stylesheet\" type=\"${(node as HTMLLinkElement).type}\" href=\"${(node as HTMLLinkElement).href}\">`\n );\n });\n document.head.querySelectorAll('style').forEach((node) => {\n this.#popoutWindow()!.document.head.appendChild(node.cloneNode(true));\n });\n }\n\n private _observeFutureStyleChanges() {\n const headEle = document.querySelector('head');\n const win = this.#popoutWindow();\n this.#observer?.disconnect();\n this.#observer = new MutationObserver((mutations) => {\n mutations.forEach((mutation) => {\n mutation.addedNodes.forEach((node) => {\n if (win && node.nodeName === 'STYLE') {\n win.document.head.appendChild(node.cloneNode(true));\n }\n });\n });\n });\n this.#observer.observe(headEle!, { childList: true });\n }\n\n ngOnDestroy(): void {\n this.#observer?.disconnect();\n this._close();\n }\n}\n","<div #popoutWrapper class=\"popoutWrapper\" [ngClass]=\"{ disabled: disabled() }\" [attr.data-pos]=\"triggerPosition()\">\n @if (triggerPosition() !== 'none') {\n <button ymtIconButton icon-button-size=\"small\" type=\"button\" class=\"trigger\" (click)=\"pop($event)\" [matTooltip]=\"triggerTooltip()\" [ngClass]=\"{ poppedOut: isPoppedOut }\">\n <mat-icon>{{ triggerIcon() }}</mat-icon>\n </button>\n }\n <div #innerWrapper class=\"innerWrapper\">\n <ng-content></ng-content>\n </div>\n</div>\n","import { NgModule } from '@angular/core';\nimport { FullscreenDirective } from '@yuuvis/material/panes';\nimport { PopoutTriggerComponent } from './popout-trigger/popout-trigger.component';\nimport { PopoutComponent } from './popout.component';\n\n@NgModule({\n imports: [PopoutComponent, PopoutTriggerComponent, FullscreenDirective],\n exports: [PopoutComponent, PopoutTriggerComponent, FullscreenDirective]\n})\nexport class YuvPopoutModule {}\n","/**\n * @deprecated Import `FullscreenDirective` from `@yuuvis/material/panes` instead.\n */\nexport { FullscreenDirective } from '@yuuvis/material/panes';\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":["i1","i2","i3"],"mappings":";;;;;;;;;;;;;;MAiBa,sBAAsB,CAAA;AANnC,IAAA,WAAA,GAAA;AAOU,QAAA,IAAA,CAAA,SAAS,GAAG,MAAM,CAAC,gBAAgB,CAAC;QAE5C,IAAA,CAAA,MAAM,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAuB;QACrC,IAAA,CAAA,MAAM,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,QAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAAmB;AAEjC,QAAA,IAAA,CAAA,IAAI,GAAG,QAAQ,CAAC,MAAK;YACnB,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE;YAC5C,OAAO,SAAS,IAAI,IAAI,CAAC,MAAM,EAAE,EAAE,SAAS,IAAI,kBAAkB,KAClE,IAAI,CAAC,MAAM,EAAE,EAAE,UAAU,IAAI,aAAa,CAAC;AAC7C,QAAA,CAAC,2EAAC;AACF,QAAA,IAAA,CAAA,OAAO,GAAG,QAAQ,CAAC,MAAK;YACtB,MAAM,SAAS,GAAG,IAAI,CAAC,MAAM,EAAE,EAAE,SAAS,EAAE;AAC5C,YAAA,OAAO,SAAS,IAAI,IAAI,CAAC,MAA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,EAAA,CAAA,EAAA,KAAA,EAAA,CAAA,EAAA,IAAA,EAAA,EAAA,CAAA,MAAA,EAAA,IAAA,EAAA,CAAA,OAAA,CAAA,EAAA,CAAA,EAAA,EAAA,CAAA;;ME5CnD,eAAe,CAAA;8GAAf,eAAe,EAAA,IAAA,EAAA,EAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,QAAA,EAAA,CAAA,CAAA;+GAAf,eAAe,EAAA,OAAA,EAAA,CAHhB,eAAe,EAAE,sBAAsB,EAAE,mBAAmB,CAAA,EAAA,OAAA,EAAA,CAC5D,eAAe,EAAE,sBAAsB,EAAE,mBAAmB,CAAA,EAAA,CAAA,CAAA;+GAE3D,eAAe,EAAA,OAAA,EAAA,CAHhB,eAAe,EAAE,sBAAsB,CAAA,EAAA,CAAA,CAAA;;2FAGtC,eAAe,EAAA,UAAA,EAAA,CAAA;kBAJ3B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,sBAAsB,EAAE,mBAAmB,CAAC;AACvE,oBAAA,OAAO,EAAE,CAAC,eAAe,EAAE,sBAAsB,EAAE,mBAAmB;AACvE,iBAAA;;;ACRD;;AAEG;;ACFH;;AAEG;;;;"}
@@ -93,7 +93,7 @@ class QueryListComponent {
93
93
  * Drives the `[class.pagination]` host binding so the template can conditionally
94
94
  * render the `mat-paginator` footer.
95
95
  */
96
- this.pagination = signal(undefined, ...(ngDevMode ? [{ debugName: "pagination" }] : []));
96
+ this.pagination = signal(undefined, ...(ngDevMode ? [{ debugName: "pagination" }] : /* istanbul ignore next */ []));
97
97
  /**
98
98
  * Reference to the inner `ListComponent` instance.
99
99
  *
@@ -113,7 +113,7 @@ class QueryListComponent {
113
113
  * ```
114
114
  */
115
115
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
116
- this.itemTemplate = contentChild('yuvQueryListItem', ...(ngDevMode ? [{ debugName: "itemTemplate" }] : []));
116
+ this.itemTemplate = contentChild('yuvQueryListItem', ...(ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []));
117
117
  /**
118
118
  * Reference to the optional `#yuvQueryListEmpty` `ng-template` projected by the consumer.
119
119
  *
@@ -126,7 +126,7 @@ class QueryListComponent {
126
126
  * ```
127
127
  */
128
128
  // eslint-disable-next-line @typescript-eslint/no-explicit-any
129
- this.emptyTemplate = contentChild('yuvQueryListEmpty', ...(ngDevMode ? [{ debugName: "emptyTemplate" }] : []));
129
+ this.emptyTemplate = contentChild('yuvQueryListEmpty', ...(ngDevMode ? [{ debugName: "emptyTemplate" }] : /* istanbul ignore next */ []));
130
130
  /**
131
131
  * The search query to execute.
132
132
  *
@@ -135,7 +135,7 @@ class QueryListComponent {
135
135
  * input changes. Set to `null` or `undefined` to clear the list without triggering
136
136
  * a new request.
137
137
  */
138
- this.query = input(...(ngDevMode ? [undefined, { debugName: "query" }] : []));
138
+ this.query = input(...(ngDevMode ? [undefined, { debugName: "query" }] : /* istanbul ignore next */ []));
139
139
  /**
140
140
  * Property name on the (transformed) item to use as a stable unique identifier.
141
141
  *
@@ -147,7 +147,7 @@ class QueryListComponent {
147
147
  *
148
148
  * @default null
149
149
  */
150
- this.idProperty = input(null, ...(ngDevMode ? [{ debugName: "idProperty" }] : []));
150
+ this.idProperty = input(null, ...(ngDevMode ? [{ debugName: "idProperty" }] : /* istanbul ignore next */ []));
151
151
  /**
152
152
  * Optional mapping function applied to the raw `SearchResultItem[]` returned by the
153
153
  * search service before the results are rendered.
@@ -167,7 +167,7 @@ class QueryListComponent {
167
167
  * }));
168
168
  * ```
169
169
  */
170
- this.transformer = input(...(ngDevMode ? [undefined, { debugName: "transformer" }] : []));
170
+ this.transformer = input(...(ngDevMode ? [undefined, { debugName: "transformer" }] : /* istanbul ignore next */ []));
171
171
  /**
172
172
  * Guard function that temporarily blocks all selection changes.
173
173
  *
@@ -179,7 +179,7 @@ class QueryListComponent {
179
179
  *
180
180
  * @default () => false (never prevents)
181
181
  */
182
- this.preventChangeUntil = input(() => false, ...(ngDevMode ? [{ debugName: "preventChangeUntil" }] : []));
182
+ this.preventChangeUntil = input(() => false, ...(ngDevMode ? [{ debugName: "preventChangeUntil" }] : /* istanbul ignore next */ []));
183
183
  /**
184
184
  * Automatically selects an item when the list is first rendered.
185
185
  *
@@ -193,9 +193,7 @@ class QueryListComponent {
193
193
  *
194
194
  * @default false
195
195
  */
196
- this.autoSelect = input(false, ...(ngDevMode ? [{ debugName: "autoSelect", transform: (value) => coerceBooleanProperty(value) }] : [{
197
- transform: (value) => coerceBooleanProperty(value)
198
- }]));
196
+ this.autoSelect = input(false, { ...(ngDevMode ? { debugName: "autoSelect" } : /* istanbul ignore next */ {}), transform: (value) => coerceBooleanProperty(value) });
199
197
  /**
200
198
  * Emits the current selection as an array of zero-based item indices whenever
201
199
  * the selection changes — via click, drag, keyboard, or programmatic API calls.
@@ -238,7 +236,7 @@ class QueryListComponent {
238
236
  *
239
237
  * @default SearchService.DEFAULT_QUERY_SIZE
240
238
  */
241
- this.pageSize = input(SearchService.DEFAULT_QUERY_SIZE, ...(ngDevMode ? [{ debugName: "pageSize" }] : []));
239
+ this.pageSize = input(SearchService.DEFAULT_QUERY_SIZE, ...(ngDevMode ? [{ debugName: "pageSize" }] : /* istanbul ignore next */ []));
242
240
  /**
243
241
  * Enables mouse drag-to-select on list items.
244
242
  *
@@ -248,7 +246,7 @@ class QueryListComponent {
248
246
  *
249
247
  * @default true
250
248
  */
251
- this.enableDragSelect = input(true, ...(ngDevMode ? [{ debugName: "enableDragSelect" }] : []));
249
+ this.enableDragSelect = input(true, ...(ngDevMode ? [{ debugName: "enableDragSelect" }] : /* istanbul ignore next */ []));
252
250
  /**
253
251
  * Enables multi-selection mode.
254
252
  *
@@ -258,7 +256,7 @@ class QueryListComponent {
258
256
  *
259
257
  * @default false
260
258
  */
261
- this.multiselect = input(false, ...(ngDevMode ? [{ debugName: "multiselect" }] : []));
259
+ this.multiselect = input(false, ...(ngDevMode ? [{ debugName: "multiselect" }] : /* istanbul ignore next */ []));
262
260
  /**
263
261
  * Delegates visual selection and focus state rendering to the parent component.
264
262
  *
@@ -269,7 +267,7 @@ class QueryListComponent {
269
267
  *
270
268
  * @default false
271
269
  */
272
- this.selfHandleSelection = input(false, ...(ngDevMode ? [{ debugName: "selfHandleSelection" }] : []));
270
+ this.selfHandleSelection = input(false, ...(ngDevMode ? [{ debugName: "selfHandleSelection" }] : /* istanbul ignore next */ []));
273
271
  /**
274
272
  * Whether to include permission information in CMIS search results.
275
273
  * When `true`, the third parameter of `searchCmis()` is set,
@@ -277,7 +275,7 @@ class QueryListComponent {
277
275
  *
278
276
  * @default false
279
277
  */
280
- this.includePermissions = input(false, ...(ngDevMode ? [{ debugName: "includePermissions" }] : []));
278
+ this.includePermissions = input(false, ...(ngDevMode ? [{ debugName: "includePermissions" }] : /* istanbul ignore next */ []));
281
279
  //#endregion
282
280
  //#region Properties
283
281
  /**
@@ -294,7 +292,7 @@ class QueryListComponent {
294
292
  * and parent components can easily check whether any temporary items are present
295
293
  * (e.g. to show a visual indicator or adjust layout) without accessing internal state.
296
294
  */
297
- this.dropInSize = computed(() => this.#dropInItems().length, ...(ngDevMode ? [{ debugName: "dropInSize" }] : []));
295
+ this.dropInSize = computed(() => this.#dropInItems().length, ...(ngDevMode ? [{ debugName: "dropInSize" }] : /* istanbul ignore next */ []));
298
296
  /**
299
297
  * The final list of items rendered by the template.
300
298
  *
@@ -330,7 +328,7 @@ class QueryListComponent {
330
328
  merged[Number(index)] = updates[Number(index)];
331
329
  });
332
330
  return merged;
333
- }, ...(ngDevMode ? [{ debugName: "resultItems" }] : []));
331
+ }, ...(ngDevMode ? [{ debugName: "resultItems" }] : /* istanbul ignore next */ []));
334
332
  /**
335
333
  * Indicates whether a search request is currently in flight.
336
334
  *
@@ -342,10 +340,10 @@ class QueryListComponent {
342
340
  * <yuv-busy-overlay [active]="qList.busy()" />
343
341
  * ```
344
342
  */
345
- this.busy = signal(false, ...(ngDevMode ? [{ debugName: "busy" }] : []));
346
- this.#items = signal([], ...(ngDevMode ? [{ debugName: "#items" }] : []));
347
- this.#dropInItems = signal([], ...(ngDevMode ? [{ debugName: "#dropInItems" }] : []));
348
- this.#listItemUpdates = signal({}, ...(ngDevMode ? [{ debugName: "#listItemUpdates" }] : []));
343
+ this.busy = signal(false, ...(ngDevMode ? [{ debugName: "busy" }] : /* istanbul ignore next */ []));
344
+ this.#items = signal([], ...(ngDevMode ? [{ debugName: "#items" }] : /* istanbul ignore next */ []));
345
+ this.#dropInItems = signal([], ...(ngDevMode ? [{ debugName: "#dropInItems" }] : /* istanbul ignore next */ []));
346
+ this.#listItemUpdates = signal({}, ...(ngDevMode ? [{ debugName: "#listItemUpdates" }] : /* istanbul ignore next */ []));
349
347
  //#endregion
350
348
  //#region Effects
351
349
  this.#executeQueryEffect = () => {
@@ -653,10 +651,10 @@ class QueryListComponent {
653
651
  //#endregion
654
652
  //#region Effects
655
653
  #executeQueryEffect;
656
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: QueryListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
657
- static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "20.3.19", type: QueryListComponent, isStandalone: true, selector: "yuv-query-list", inputs: { query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null }, idProperty: { classPropertyName: "idProperty", publicName: "idProperty", isSignal: true, isRequired: false, transformFunction: null }, transformer: { classPropertyName: "transformer", publicName: "transformer", isSignal: true, isRequired: false, transformFunction: null }, preventChangeUntil: { classPropertyName: "preventChangeUntil", publicName: "preventChangeUntil", isSignal: true, isRequired: false, transformFunction: null }, autoSelect: { classPropertyName: "autoSelect", publicName: "autoSelect", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, enableDragSelect: { classPropertyName: "enableDragSelect", publicName: "enableDragSelect", isSignal: true, isRequired: false, transformFunction: null }, multiselect: { classPropertyName: "multiselect", publicName: "multiselect", isSignal: true, isRequired: false, transformFunction: null }, selfHandleSelection: { classPropertyName: "selfHandleSelection", publicName: "selfHandleSelection", isSignal: true, isRequired: false, transformFunction: null }, includePermissions: { classPropertyName: "includePermissions", publicName: "includePermissions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemSelect: "itemSelect", dragSelectChange: "dragSelectChange", itemDoubleClick: "itemDoubleClick", queryResult: "queryResult" }, host: { properties: { "class.pagination": "!!pagination()" } }, queries: [{ propertyName: "itemTemplate", first: true, predicate: ["yuvQueryListItem"], descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: ["yuvQueryListEmpty"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: "<yuv-list\n #list\n [multiselect]=\"multiselect()\"\n [autoSelect]=\"autoSelect()\"\n [preventChangeUntil]=\"preventChangeUntil()\"\n [selfHandleClick]=\"true\"\n [selfHandleSelection]=\"selfHandleSelection()\"\n [yuvDragSelect]=\"{ disabled: !enableDragSelect() || !multiselect() || isTouchDevice }\"\n (dragSelectChange)=\"onDragSelectChange($event)\"\n (dragSelect)=\"onDragSelect($event)\"\n (itemSelect)=\"itemSelect.emit($event)\"\n>\n @for (resultItem of resultItems(); track trackItem(resultItem, $index)) {\n <div\n yuvListItem\n yuvDragSelectItem\n [class.drop-in]=\"$index < dropInSize()\"\n (click.single)=\"onItemClick($index, $event)\"\n (click.double)=\"onItemDoubleClick($index, $event)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate() || null; context: { $implicit: resultItem, index: $index }\" />\n </div>\n } @empty {\n <ng-container *ngTemplateOutlet=\"emptyTemplate() || null\" />\n }\n</yuv-list>\n@if (pagination(); as pag) {\n <mat-paginator\n class=\"paginator\"\n [length]=\"pag.total\"\n [pageSize]=\"pageSize()\"\n (page)=\"changePage($event)\"\n hidePageSize\n />\n}\n", styles: [":host{--paging-background: var(--ymt-surface);--drop-in-item-outline: 2px dashed rgb(from var(--ymt-primary) r g b / .9);--drop-in-item-outline-offset: -3px;display:flex;flex-direction:column;max-height:100%}:host [yuvListItem].drop-in{outline:var(--drop-in-item-outline);outline-offset:var(--drop-in-item-outline-offset);overflow:hidden}:host yuv-list{flex:1;overflow-y:auto}:host mat-paginator{flex:0 0 auto;font:inherit;border-block-start:1px solid var(--ymt-outline-variant);background-color:var(--paging-background)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: YuvListModule }, { kind: "component", type: i2.ListComponent, selector: "yuv-list", inputs: ["preventChangeUntil", "multiselect", "selfHandleSelection", "selfHandleClick", "autoSelect", "disableSelection"], outputs: ["itemSelect", "itemFocus"] }, { kind: "directive", type: i2.ListItemDirective, selector: "[yuvListItem]", inputs: ["disabled", "active", "selected"] }, { kind: "directive", type: ClickDoubleDirective, selector: "[click.single],[click.double]", inputs: ["debounceTime"], outputs: ["click.double", "click.single"] }, { kind: "directive", type: DragSelectDirective, selector: "[yuvDragSelect]", inputs: ["yuvDragSelect"], outputs: ["dragSelectChange", "dragSelect"] }, { kind: "directive", type: DragSelectItemDirective, selector: "[yuvDragSelectItem]" }, { kind: "ngmodule", type: MatPaginatorModule }, { kind: "component", type: i3.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
654
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: QueryListComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
655
+ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: QueryListComponent, isStandalone: true, selector: "yuv-query-list", inputs: { query: { classPropertyName: "query", publicName: "query", isSignal: true, isRequired: false, transformFunction: null }, idProperty: { classPropertyName: "idProperty", publicName: "idProperty", isSignal: true, isRequired: false, transformFunction: null }, transformer: { classPropertyName: "transformer", publicName: "transformer", isSignal: true, isRequired: false, transformFunction: null }, preventChangeUntil: { classPropertyName: "preventChangeUntil", publicName: "preventChangeUntil", isSignal: true, isRequired: false, transformFunction: null }, autoSelect: { classPropertyName: "autoSelect", publicName: "autoSelect", isSignal: true, isRequired: false, transformFunction: null }, pageSize: { classPropertyName: "pageSize", publicName: "pageSize", isSignal: true, isRequired: false, transformFunction: null }, enableDragSelect: { classPropertyName: "enableDragSelect", publicName: "enableDragSelect", isSignal: true, isRequired: false, transformFunction: null }, multiselect: { classPropertyName: "multiselect", publicName: "multiselect", isSignal: true, isRequired: false, transformFunction: null }, selfHandleSelection: { classPropertyName: "selfHandleSelection", publicName: "selfHandleSelection", isSignal: true, isRequired: false, transformFunction: null }, includePermissions: { classPropertyName: "includePermissions", publicName: "includePermissions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { itemSelect: "itemSelect", dragSelectChange: "dragSelectChange", itemDoubleClick: "itemDoubleClick", queryResult: "queryResult" }, host: { properties: { "class.pagination": "!!pagination()" } }, queries: [{ propertyName: "itemTemplate", first: true, predicate: ["yuvQueryListItem"], descendants: true, isSignal: true }, { propertyName: "emptyTemplate", first: true, predicate: ["yuvQueryListEmpty"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "list", first: true, predicate: ["list"], descendants: true, isSignal: true }], ngImport: i0, template: "<yuv-list\n #list\n [multiselect]=\"multiselect()\"\n [autoSelect]=\"autoSelect()\"\n [preventChangeUntil]=\"preventChangeUntil()\"\n [selfHandleClick]=\"true\"\n [selfHandleSelection]=\"selfHandleSelection()\"\n [yuvDragSelect]=\"{ disabled: !enableDragSelect() || !multiselect() || isTouchDevice }\"\n (dragSelectChange)=\"onDragSelectChange($event)\"\n (dragSelect)=\"onDragSelect($event)\"\n (itemSelect)=\"itemSelect.emit($event)\"\n>\n @for (resultItem of resultItems(); track trackItem(resultItem, $index)) {\n <div\n yuvListItem\n yuvDragSelectItem\n [class.drop-in]=\"$index < dropInSize()\"\n (click.single)=\"onItemClick($index, $event)\"\n (click.double)=\"onItemDoubleClick($index, $event)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate() || null; context: { $implicit: resultItem, index: $index }\" />\n </div>\n } @empty {\n <ng-container *ngTemplateOutlet=\"emptyTemplate() || null\" />\n }\n</yuv-list>\n@if (pagination(); as pag) {\n <mat-paginator\n class=\"paginator\"\n [length]=\"pag.total\"\n [pageSize]=\"pageSize()\"\n (page)=\"changePage($event)\"\n hidePageSize\n />\n}\n", styles: [":host{--paging-background: var(--ymt-surface);--drop-in-item-outline: 2px dashed rgb(from var(--ymt-primary) r g b / .9);--drop-in-item-outline-offset: -3px;display:flex;flex-direction:column;max-height:100%}:host [yuvListItem].drop-in{outline:var(--drop-in-item-outline);outline-offset:var(--drop-in-item-outline-offset);overflow:hidden}:host yuv-list{flex:1;overflow-y:auto}:host mat-paginator{flex:0 0 auto;font:inherit;border-block-start:1px solid var(--ymt-outline-variant);background-color:var(--paging-background)}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "ngmodule", type: YuvListModule }, { kind: "component", type: i2.ListComponent, selector: "yuv-list", inputs: ["preventChangeUntil", "multiselect", "selfHandleSelection", "selfHandleClick", "autoSelect", "disableSelection"], outputs: ["itemSelect", "itemFocus"] }, { kind: "directive", type: i2.ListItemDirective, selector: "[yuvListItem]", inputs: ["disabled", "active", "selected"] }, { kind: "directive", type: ClickDoubleDirective, selector: "[click.single],[click.double]", inputs: ["debounceTime"], outputs: ["click.double", "click.single"] }, { kind: "directive", type: DragSelectDirective, selector: "[yuvDragSelect]", inputs: ["yuvDragSelect"], outputs: ["dragSelectChange", "dragSelect"] }, { kind: "directive", type: DragSelectItemDirective, selector: "[yuvDragSelectItem]" }, { kind: "ngmodule", type: MatPaginatorModule }, { kind: "component", type: i3.MatPaginator, selector: "mat-paginator", inputs: ["color", "pageIndex", "length", "pageSize", "pageSizeOptions", "hidePageSize", "showFirstLastButtons", "selectConfig", "disabled"], outputs: ["page"], exportAs: ["matPaginator"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
658
656
  }
659
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: QueryListComponent, decorators: [{
657
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: QueryListComponent, decorators: [{
660
658
  type: Component,
661
659
  args: [{ selector: 'yuv-query-list', imports: [
662
660
  CommonModule,
@@ -670,11 +668,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
670
668
 
671
669
  const cmp = [QueryListComponent];
672
670
  class YuvQueryListModule {
673
- static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: YuvQueryListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
674
- static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.19", ngImport: i0, type: YuvQueryListModule, imports: [QueryListComponent], exports: [QueryListComponent] }); }
675
- static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: YuvQueryListModule, imports: [cmp] }); }
671
+ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YuvQueryListModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
672
+ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "21.2.9", ngImport: i0, type: YuvQueryListModule, imports: [QueryListComponent], exports: [QueryListComponent] }); }
673
+ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YuvQueryListModule, imports: [cmp] }); }
676
674
  }
677
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImport: i0, type: YuvQueryListModule, decorators: [{
675
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: YuvQueryListModule, decorators: [{
678
676
  type: NgModule,
679
677
  args: [{
680
678
  imports: cmp,
@@ -1 +1 @@
1
- {"version":3,"file":"yuuvis-client-framework-query-list.mjs","sources":["../../../../../libs/yuuvis/client-framework/query-list/src/lib/query-list.component.ts","../../../../../libs/yuuvis/client-framework/query-list/src/lib/query-list.component.html","../../../../../libs/yuuvis/client-framework/query-list/src/lib/query-list.module.ts","../../../../../libs/yuuvis/client-framework/query-list/src/yuuvis-client-framework-query-list.ts"],"sourcesContent":["import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n effect,\n inject,\n input,\n output,\n signal,\n TemplateRef,\n untracked,\n viewChild\n} from '@angular/core';\nimport { MatPaginatorModule, PageEvent } from '@angular/material/paginator';\nimport { SearchQuery, SearchResult, SearchResultItem, SearchService } from '@yuuvis/client-core';\nimport { ClickDoubleDirective, DragSelectDirective, DragSelectItemDirective } from '@yuuvis/client-framework/common';\nimport { ListComponent, YuvListModule } from '@yuuvis/client-framework/list';\nimport { Pagination } from '@yuuvis/client-framework/pagination';\nimport { DeviceService } from '@yuuvis/material';\n\n/**\n * Query-driven list component that executes a search query and renders the results\n * using a consumer-provided item template.\n *\n * The component is a thin orchestration layer on top of `yuv-list`: it handles the\n * full query lifecycle (executing, paginating, refreshing), exposes a typed result\n * set via the optional `transformer` input, and delegates all keyboard navigation,\n * selection, and accessibility concerns to the inner `ListComponent`.\n *\n * **Key Features:**\n * - Accepts a `SearchQuery` object or a raw CMIS query string\n * - Optional `transformer` function maps raw `SearchResultItem[]` to any custom type `T`\n * - Built-in server-side pagination via Angular Material `mat-paginator`\n * - Multi-selection with mouse drag (`DragSelectDirective`) and keyboard modifiers\n * - \"Drop-in\" items prepended to the result set for optimistic UI updates\n * - Busy state signal for loading indicators\n * - Exposes a slim imperative API (`select`, `clear`, `refresh`, `goToPage`, …)\n * so parents can drive the list programmatically\n *\n * **Content Projection Slots:**\n * - `#yuvQueryListItem` — required; `ng-template` used to render each result item.\n * Receives the (optionally transformed) item as `$implicit`.\n * - `#yuvQueryListEmpty` — optional; `ng-template` shown when the result set is empty.\n *\n * **Basic usage:**\n * ```html\n * <yuv-query-list [query]=\"query\" (itemSelect)=\"onSelect($event)\">\n * <ng-template #yuvQueryListItem let-item>\n * <span>{{ item.title }}</span>\n * </ng-template>\n * </yuv-query-list>\n * ```\n *\n * **With transformer and empty state:**\n * ```html\n * <yuv-query-list [query]=\"query\" [transformer]=\"toViewModel\" (itemSelect)=\"onSelect($event)\">\n * <ng-template #yuvQueryListItem let-item>\n * <yuv-list-tile>\n * <ng-template #titleSlot>{{ item.title }}</ng-template>\n * <ng-template #descriptionSlot>{{ item.modified }}</ng-template>\n * </yuv-list-tile>\n * </ng-template>\n * <ng-template #yuvQueryListEmpty>\n * <p>No results found.</p>\n * </ng-template>\n * </yuv-query-list>\n * ```\n *\n * ```ts\n * toViewModel = (items: SearchResultItem[]) =>\n * items.map(item => ({\n * title: item.fields.get(BaseObjectTypeField.OBJECT_ID),\n * modified: item.fields.get(BaseObjectTypeField.MODIFICATION_DATE)\n * }));\n * ```\n *\n * @typeParam T The shape of each item after the optional `transformer` is applied.\n * Defaults to `any` when no transformer is provided.\n */\n@Component({\n selector: 'yuv-query-list',\n imports: [\n CommonModule,\n YuvListModule,\n ClickDoubleDirective,\n DragSelectDirective,\n DragSelectItemDirective,\n MatPaginatorModule\n ],\n templateUrl: './query-list.component.html',\n styleUrl: './query-list.component.scss',\n host: { '[class.pagination]': '!!pagination()' },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport class QueryListComponent<T = any> {\n //#region Dependencies\n\n #device = inject(DeviceService);\n #searchService = inject(SearchService);\n\n //#endregion\n\n //#region Angular stuff\n\n /**\n * Current pagination state. Set to a `Pagination` object when the last query\n * result contained multiple pages; `undefined` when all results fit on one page\n * or no query has been executed yet.\n *\n * Drives the `[class.pagination]` host binding so the template can conditionally\n * render the `mat-paginator` footer.\n */\n pagination = signal<Pagination | undefined>(undefined);\n\n /**\n * Reference to the inner `ListComponent` instance.\n *\n * Used internally to delegate imperative operations (select, clear, focus, …).\n * Can also be accessed from the parent via a `@ViewChild` on `yuv-query-list` if\n * fine-grained control over the inner list is needed, though the public API methods\n * on this component are preferred.\n */\n list = viewChild.required<ListComponent>('list');\n\n /**\n * Reference to the `#yuvQueryListItem` `ng-template` projected by the consumer.\n *\n * This template is used to render each individual item in the list. The template\n * receives the (optionally transformed) item as the `$implicit` context variable:\n * ```html\n * <ng-template #yuvQueryListItem let-item>{{ item.title }}</ng-template>\n * ```\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n itemTemplate = contentChild<TemplateRef<any>>('yuvQueryListItem');\n\n /**\n * Reference to the optional `#yuvQueryListEmpty` `ng-template` projected by the consumer.\n *\n * When provided, this template is rendered in place of the list whenever the query\n * returns zero items. If omitted, nothing is shown for the empty state.\n * ```html\n * <ng-template #yuvQueryListEmpty>\n * <p>No results found.</p>\n * </ng-template>\n * ```\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n emptyTemplate = contentChild<TemplateRef<any>>('yuvQueryListEmpty');\n\n /**\n * The search query to execute.\n *\n * Accepts either a structured `SearchQuery` object (field filters, sort orders, etc.)\n * or a raw CMIS query string. The query is re-executed reactively every time this\n * input changes. Set to `null` or `undefined` to clear the list without triggering\n * a new request.\n */\n query = input<SearchQuery | string | null>();\n\n /**\n * Property name on the (transformed) item to use as a stable unique identifier.\n *\n * When provided, the template renderer uses this property for `@for` tracking instead\n * of the item's position index, which preserves DOM nodes and component state when the\n * list is refreshed with partially overlapping results.\n *\n * If omitted, the zero-based index is used as the tracking key.\n *\n * @default null\n */\n idProperty = input<string | null>(null);\n\n /**\n * Optional mapping function applied to the raw `SearchResultItem[]` returned by the\n * search service before the results are rendered.\n *\n * Use this to project only the fields your template needs, compute derived properties,\n * or convert dates/enums to display-friendly values. The generic type parameter `T`\n * of the component is inferred from the return type of this function.\n *\n * If omitted, raw `SearchResultItem` objects are passed to the item template as-is.\n *\n * @example\n * ```ts\n * transformer = (items: SearchResultItem[]) =>\n * items.map(item => ({\n * id: item.fields.get(BaseObjectTypeField.OBJECT_ID) as string,\n * title: item.fields.get('cm:name') as string\n * }));\n * ```\n */\n transformer = input<((items: SearchResultItem[]) => T[]) | null>();\n\n /**\n * Guard function that temporarily blocks all selection changes.\n *\n * Forwarded directly to the inner `ListComponent`. As long as the returned predicate\n * evaluates to `true`, any attempt to change the selection — via click, keyboard, or\n * the programmatic API — is silently ignored. Useful when the parent has unsaved\n * changes tied to the current selection and needs to prevent the user from\n * accidentally navigating away.\n *\n * @default () => false (never prevents)\n */\n preventChangeUntil = input<() => boolean>(() => false);\n\n /**\n * Automatically selects an item when the list is first rendered.\n *\n * Forwarded to the inner `ListComponent`. The selection logic runs once after the\n * initial query result is displayed and follows this priority:\n * 1. The first non-disabled item that already carries the `selected` attribute.\n * 2. If no such item exists and `autoSelect` is `true`, the item at index 0.\n *\n * Accepts any truthy string in addition to a real boolean so it can be set as a\n * plain HTML attribute: `<yuv-query-list autoSelect>`.\n *\n * @default false\n */\n autoSelect = input<boolean, BooleanInput>(false, {\n transform: (value: BooleanInput) => coerceBooleanProperty(value)\n });\n\n /**\n * Emits the current selection as an array of zero-based item indices whenever\n * the selection changes — via click, drag, keyboard, or programmatic API calls.\n *\n * An empty array signals that the selection has been cleared.\n */\n itemSelect = output<number[]>();\n\n /**\n * Emits the live selection indices while the user is actively dragging to select.\n *\n * Fires continuously during a drag operation (before the drag is released), allowing\n * the parent to show a live preview of what will be selected. Once the drag ends,\n * `itemSelect` fires with the final committed selection.\n */\n dragSelectChange = output<number[]>();\n\n /**\n * Emits the zero-based index of an item when it is double-clicked.\n *\n * The inner list operates with `selfHandleClick` mode when double-click is active,\n * so single clicks do not immediately trigger `itemSelect`. The parent should listen\n * to both `itemSelect` (for single-click selection) and this event (for double-click\n * actions like opening a detail view).\n */\n itemDoubleClick = output<number>();\n\n /**\n * Emits once per query execution when the search result arrives, providing the total\n * count of matching items and the raw result page.\n *\n * Use this to update external counters, breadcrumbs, or analytics — without having to\n * execute a separate count query. Note that `totalCount` reflects the server-side total,\n * not just the number of items on the current page.\n */\n queryResult = output<{ totalCount: number; items: SearchResultItem[] }>();\n\n /**\n * Number of items to request per page from the search service.\n *\n * Controls the `size` parameter of each search request. When the total result count\n * exceeds this value, pagination controls are shown and the user can navigate between\n * pages via `changePage()` / `goToPage()`.\n *\n * @default SearchService.DEFAULT_QUERY_SIZE\n */\n pageSize = input<number>(SearchService.DEFAULT_QUERY_SIZE);\n\n /**\n * Enables mouse drag-to-select on list items.\n *\n * When `true` and `multiselect` is also `true`, the user can click and drag across\n * items to select a range without holding Shift. Powered by `DragSelectDirective`.\n * Automatically disabled on touch devices regardless of this input value.\n *\n * @default true\n */\n enableDragSelect = input<boolean>(true);\n\n /**\n * Enables multi-selection mode.\n *\n * When `true`, the user can hold **Shift** or **Ctrl** to extend or toggle the\n * selection, and drag-to-select becomes available (if `enableDragSelect` is also\n * `true`). Forwarded to the inner `ListComponent`.\n *\n * @default false\n */\n multiselect = input<boolean>(false);\n\n /**\n * Delegates visual selection and focus state rendering to the parent component.\n *\n * When `false` (default), `yuv-list` applies CSS classes for selected and active\n * states automatically. When `true`, those signals are still updated but the host\n * receives the `self-handle-selection` CSS class, allowing the parent to apply\n * its own visual treatment. Forwarded to the inner `ListComponent`.\n *\n * @default false\n */\n selfHandleSelection = input<boolean>(false);\n\n /**\n * Whether to include permission information in CMIS search results.\n * When `true`, the third parameter of `searchCmis()` is set,\n * causing the backend to return permission data alongside each item.\n *\n * @default false\n */\n includePermissions = input<boolean>(false);\n\n //#endregion\n\n //#region Properties\n\n /**\n * Whether the current device has touch input enabled.\n *\n * Sourced from `DeviceService`. Used in the template to conditionally disable\n * drag-to-select, which is not suitable for touch interactions.\n */\n isTouchDevice = this.#device.isTouchEnabled;\n\n /**\n * Number of drop-in items currently prepended to the result list.\n *\n * Derived from the internal `#dropInItems` signal. Exposed publicly so the template\n * and parent components can easily check whether any temporary items are present\n * (e.g. to show a visual indicator or adjust layout) without accessing internal state.\n */\n dropInSize = computed(() => this.#dropInItems().length);\n\n /**\n * The final list of items rendered by the template.\n *\n * Computed from three sources, merged in this order:\n * 1. **Drop-in items** (`#dropInItems`) — temporary items prepended to the list,\n * e.g. newly created objects that should appear before they match the query.\n * 2. **Transformed query results** — raw `SearchResultItem[]` passed through the\n * optional `transformer` function (or cast directly to `T[]` if none is provided).\n * 3. **Optimistic updates** (`#listItemUpdates`) — per-index overrides applied on top\n * of the merged list, allowing individual items to be patched without re-fetching.\n *\n * Re-evaluates automatically whenever any of the three sources change.\n */\n resultItems = computed<T[]>(() => {\n const items = this.#items();\n const updates = this.#listItemUpdates();\n const transformer = this.transformer();\n const transformedResult = transformer ? transformer(items) : (items as unknown as T[]);\n const dropIns = this.#dropInItems();\n\n let merged: T[];\n const idProp = this.idProperty();\n\n if (dropIns.length > 0 && idProp) {\n // Deduplicate: filter out server results that already appear as drop-in items\n const dropInIds = new Set(dropIns.map((item) => (item as Record<string, unknown>)[idProp]));\n const filtered = transformedResult.filter((item) => !dropInIds.has((item as Record<string, unknown>)[idProp]));\n merged = [...dropIns, ...filtered];\n } else {\n merged = [...dropIns, ...transformedResult];\n }\n\n // apply updates to transformed result\n Object.keys(updates).forEach((index) => {\n merged[Number(index)] = updates[Number(index)];\n });\n return merged;\n });\n\n /**\n * Indicates whether a search request is currently in flight.\n *\n * Set to `true` immediately before a query or page request is dispatched to the\n * search service, and back to `false` once the response (or error) arrives.\n * Bind this to a loading indicator or `BusyOverlayDirective` in the parent template:\n * ```html\n * <yuv-query-list #qList ...>...</yuv-query-list>\n * <yuv-busy-overlay [active]=\"qList.busy()\" />\n * ```\n */\n busy = signal<boolean>(false);\n\n #items = signal<SearchResultItem[]>([]);\n\n #dropInItems = signal<T[]>([]);\n\n #listItemUpdates = signal<Record<number, T>>({});\n\n //#endregion\n\n constructor() {\n effect(this.#executeQueryEffect);\n }\n\n //#region UI Methods\n\n /** Resolves the tracking key for a result item in the `@for` loop. */\n trackItem(item: T, index: number): unknown {\n const prop = this.idProperty();\n return prop ? (item as Record<string, unknown>)[prop] : index;\n }\n\n /**\n * Handles a single click on a list item.\n *\n * Forwards the click to the inner `ListComponent` with the correct Shift/Ctrl modifier\n * flags so range- and toggle-selection work correctly. Also transfers DOM focus to the\n * list host so subsequent keyboard navigation works without an additional Tab press.\n *\n * Called from the template via `(click)` on each item wrapper. Not intended for\n * external callers — use `select()` instead.\n *\n * @param idx Zero-based index of the clicked item.\n * @param event The originating mouse event (provides `shiftKey` and `ctrlKey` flags).\n */\n onItemClick(idx: number, event: MouseEvent): void {\n this.list().select(idx, event.shiftKey, event.ctrlKey);\n this.list().focus();\n }\n\n /**\n * Handles a double-click on a list item.\n *\n * Emits the `itemDoubleClick` output with the item's index. The parent can use this\n * to trigger a secondary action (e.g. opening a detail panel or navigating to a route)\n * that is distinct from the primary single-click selection.\n *\n * Called from the template via `ClickDoubleDirective`. Not intended for external callers.\n *\n * @param idx Zero-based index of the double-clicked item.\n * @param event The originating mouse event (unused, kept for directive compatibility).\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onItemDoubleClick(idx: number, event: MouseEvent): void {\n this.itemDoubleClick.emit(idx);\n }\n\n /**\n * Handles intermediate drag-selection changes from `DragSelectDirective`.\n *\n * Fires continuously while the user is dragging across items. Updates the inner list's\n * multi-selection state in real time so items are highlighted as the drag progresses,\n * and also emits `dragSelectChange` so the parent can show a live preview.\n *\n * Called from the template via `(dragSelectChange)` on the drag-select host.\n * Not intended for external callers.\n *\n * @param sel Current array of zero-based indices covered by the drag gesture.\n */\n onDragSelectChange(sel: number[]): void {\n this.list().multiSelect(sel);\n this.dragSelectChange.emit(sel);\n }\n\n /**\n * Handles the final committed drag-selection from `DragSelectDirective`.\n *\n * Called when the user releases the mouse after a drag-to-select gesture. Transfers\n * DOM focus to the list (so keyboard navigation works immediately after) and emits\n * the final selection via `itemSelect`.\n *\n * Called from the template via `(dragSelect)` on the drag-select host.\n * Not intended for external callers.\n *\n * @param sel Final array of zero-based indices selected by the drag gesture.\n */\n onDragSelect(sel: number[]): void {\n this.list().focus();\n this.itemSelect.emit(sel);\n }\n\n //#endregion\n\n //#region Public methods\n\n /**\n * Applies optimistic per-item overrides on top of the current query result.\n *\n * Each entry in the `updates` array patches the item at the given `index` with\n * the provided `value`. The value type must match `T` — i.e. the shape produced\n * by the `transformer` function, or `SearchResultItem` if no transformer is used.\n *\n * Overrides accumulate: calling this method multiple times merges the new entries\n * with any previously applied ones. All overrides are automatically discarded when\n * the user navigates to a different page (see `goToPage()`), since a fresh server\n * response replaces the local data.\n *\n * **Use case:** apply instant visual feedback after a user action (rename, status\n * change, etc.) without waiting for a full query refresh.\n *\n * @param updates Array of `{ index, value }` pairs describing which items to patch.\n */\n updateListItems(updates: { index: number; value: T }[]): void {\n const updatesRecord = updates.reduce(\n (acc, curr) => {\n {\n acc[curr.index] = curr.value;\n return acc;\n }\n },\n {} as Record<number, T>\n );\n this.#listItemUpdates.set({ ...this.#listItemUpdates(), ...updatesRecord });\n }\n\n /**\n * Prepends a set of temporary items to the top of the result list.\n *\n * Drop-in items appear before all query results and are visually distinguished\n * by the template (e.g. a highlighted background). They participate in selection\n * and drag-to-select exactly like regular items.\n *\n * The existing selection indices are automatically shifted by `items.length` so that\n * the currently selected query-result items remain selected after the prepend.\n *\n * **Typical use case:** when the user pastes or creates an object that does not yet\n * appear in the current query (e.g. because the index has not been updated), drop it\n * in temporarily so the user sees it immediately without a full refresh.\n *\n * Drop-in items are cleared automatically when the user navigates to a different page.\n * Call `dropItems([])` to remove them programmatically.\n *\n * @param items Items to prepend. Must be of type `T` (same as query result items).\n * @param scrollTo Whether to smooth-scroll the list back to the top after prepending.\n * Defaults to `true` so the newly dropped items are immediately visible.\n */\n dropItems(items: T[], scrollTo = true): void {\n this.#dropInItems.set(items);\n this.list().shiftSelectionBy(items.length);\n if (scrollTo) {\n this.list().scrollToTop();\n }\n }\n\n /**\n * Programmatically replaces the entire selection with the given indices.\n *\n * Only effective when `multiselect` is `true`. Out-of-range indices are silently\n * discarded. The resulting selection is sorted ascending before being applied.\n *\n * Use this when the parent needs to restore a previously saved multi-selection\n * state, e.g. after navigation or component re-initialization.\n *\n * @param index Array of zero-based item indices to select.\n */\n multiSelect(index: number[]): void {\n this.list().multiSelect(index);\n }\n\n /**\n * Selects the item at the given zero-based index.\n *\n * Delegates to the inner `ListComponent`. The `preventChangeUntil` guard and\n * `disableSelection` state are respected. Clamps the index to the valid range.\n *\n * @param index Zero-based index of the item to select.\n */\n select(index: number): void {\n this.list().select(index);\n }\n\n /**\n * Moves keyboard focus to the item at the given index and selects it.\n *\n * Combines focus management and selection in one call, and transfers DOM focus\n * to the list host. Use this when the parent wants to programmatically drive\n * both the visual focus indicator and the selection simultaneously.\n *\n * @param index Zero-based index of the item to activate.\n */\n setActiveItem(index: number): void {\n this.list().setActiveItem(index);\n }\n\n /**\n * Clears the current selection and resets the active keyboard-focus index.\n *\n * If the selection is already empty, the method is a no-op. The `preventChangeUntil`\n * guard is respected — if the guard returns `true`, the clear is blocked.\n *\n * @param silent When `true`, skips emitting `itemSelect` after clearing. Use this\n * when the parent needs to reset state programmatically without\n * triggering downstream reactions.\n */\n clear(silent = false): void {\n this.list().clear(silent);\n }\n\n /**\n * Re-executes the current query without changing the page or query parameters.\n *\n * If pagination is active, re-fetches the same page the user is currently on.\n * If no pagination is active, re-runs the original query from scratch.\n *\n * Use this to reflect server-side changes (e.g. after a create/delete operation)\n * without navigating away from the current view.\n */\n refresh(): void {\n const query = this.query();\n if (query) {\n if (this.pagination()) {\n this.goToPage(this.pagination()!.page);\n } else this.#executeQuery(query || null);\n }\n }\n\n /**\n * Forces the `transformer` function to be re-applied to the current result set.\n *\n * Normally the transformer runs automatically whenever the underlying `#items`\n * signal changes. Use this method when the transformer itself has external\n * dependencies that changed (e.g. a locale or display-format setting) but the\n * raw search result did not — triggering a re-evaluation by creating a new array\n * reference for `#items` without fetching from the server again.\n */\n runTransformerAgain(): void {\n this.#items.set([...this.#items()]);\n }\n\n /**\n * Handles a page-change event emitted by the `mat-paginator`.\n *\n * Converts the zero-based `pageEvent.pageIndex` to the one-based page number\n * expected by `goToPage()` and delegates the request.\n *\n * Bound to `(page)` on the `mat-paginator` in the template.\n *\n * @param pageEvent The pagination event emitted by `MatPaginatorModule`.\n */\n changePage(pageEvent: PageEvent): void {\n this.#dropInItems.set([]);\n this.goToPage(pageEvent.pageIndex + 1);\n }\n\n /**\n * Fetches and displays the given page of the current query result.\n *\n * Sets `busy` to `true` for the duration of the request. On success, updates\n * the pagination state, clears all optimistic overrides (they are page-scoped),\n * and replaces `#items` with the new page's results.\n *\n * Also used internally by `refresh()` to reload the currently active page.\n *\n * @param page One-based page number to navigate to.\n */\n goToPage(page: number): void {\n const query = this.query();\n if (!query) return;\n this.busy.set(true);\n this.#searchService\n .getPage(query, page, this.pageSize(), this.includePermissions())\n\n .subscribe({\n next: (res: SearchResult) => {\n this.#setupPagination(res);\n this.#listItemUpdates.set({});\n this.#items.set(res.items);\n this.queryResult.emit({ totalCount: res.totalNumItems, items: res.items });\n this.busy.set(false);\n },\n error: (err) => {\n // TODO: how should errors be handles in case hat loading pages fail\n this.busy.set(false);\n console.error(err);\n }\n });\n }\n\n //#endregion\n\n //#region Utilities\n\n /**\n * Executes a search query.\n * @param query The search query to execute.\n * This may be a SearchQuery object or a string. If it's a string, it is supposed to\n * be a CMIS query statement.\n */\n #executeQuery(query: SearchQuery | string | null): void {\n if (query && !this.busy()) {\n this.busy.set(true);\n (typeof query === 'string'\n ? this.#searchService.searchCmis(query as string, this.pageSize(), this.includePermissions())\n : this.#searchService.search(query as SearchQuery)\n ).subscribe({\n next: (res: SearchResult) => {\n this.#setupPagination(res);\n this.#listItemUpdates.set({});\n this.#items.set(res.items);\n this.queryResult.emit({ totalCount: res.totalNumItems, items: res.items });\n this.busy.set(false);\n },\n error: (err) => {\n this.busy.set(false);\n console.error(err);\n }\n });\n }\n }\n\n #setupPagination(searchResult: SearchResult): void {\n this.pagination.set(\n searchResult.paging\n ? {\n total: searchResult.totalNumItems,\n pages: searchResult.paging.totalPages,\n page: searchResult.paging.page\n }\n : undefined\n );\n }\n\n //#endregion\n\n //#region Effects\n\n readonly #executeQueryEffect = (): void => {\n // execute the query each time it changes\n const query = this.query();\n if (query)\n untracked(() => {\n this.#executeQuery(query || null);\n });\n };\n\n //#endregion\n}\n","<yuv-list\n #list\n [multiselect]=\"multiselect()\"\n [autoSelect]=\"autoSelect()\"\n [preventChangeUntil]=\"preventChangeUntil()\"\n [selfHandleClick]=\"true\"\n [selfHandleSelection]=\"selfHandleSelection()\"\n [yuvDragSelect]=\"{ disabled: !enableDragSelect() || !multiselect() || isTouchDevice }\"\n (dragSelectChange)=\"onDragSelectChange($event)\"\n (dragSelect)=\"onDragSelect($event)\"\n (itemSelect)=\"itemSelect.emit($event)\"\n>\n @for (resultItem of resultItems(); track trackItem(resultItem, $index)) {\n <div\n yuvListItem\n yuvDragSelectItem\n [class.drop-in]=\"$index < dropInSize()\"\n (click.single)=\"onItemClick($index, $event)\"\n (click.double)=\"onItemDoubleClick($index, $event)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate() || null; context: { $implicit: resultItem, index: $index }\" />\n </div>\n } @empty {\n <ng-container *ngTemplateOutlet=\"emptyTemplate() || null\" />\n }\n</yuv-list>\n@if (pagination(); as pag) {\n <mat-paginator\n class=\"paginator\"\n [length]=\"pag.total\"\n [pageSize]=\"pageSize()\"\n (page)=\"changePage($event)\"\n hidePageSize\n />\n}\n","import { NgModule } from '@angular/core';\nimport { QueryListComponent } from './query-list.component';\n\nconst cmp = [QueryListComponent];\n@NgModule({\n imports: cmp,\n exports: cmp\n})\nexport class YuvQueryListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DG;AAgBH;MACa,kBAAkB,CAAA;;AAG7B,IAAA,OAAO;AACP,IAAA,cAAc;AAkSd,IAAA,MAAM;AAEN,IAAA,YAAY;AAEZ,IAAA,gBAAgB;;AAIhB,IAAA,WAAA,GAAA;;AA3SA,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,aAAa,CAAC;AAC/B,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,aAAa,CAAC;;;AAMtC;;;;;;;AAOG;AACH,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAyB,SAAS,sDAAC;AAEtD;;;;;;;AAOG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAgB,MAAM,CAAC;AAEhD;;;;;;;;AAQG;;AAEH,QAAA,IAAA,CAAA,YAAY,GAAG,YAAY,CAAmB,kBAAkB,wDAAC;AAEjE;;;;;;;;;;AAUG;;AAEH,QAAA,IAAA,CAAA,aAAa,GAAG,YAAY,CAAmB,mBAAmB,yDAAC;AAEnE;;;;;;;AAOG;QACH,IAAA,CAAA,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA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AA,EAAA,kBAAkB,YAHpB,GAAG,CAAA,EAAA,CAAA,CAAA;;4FAGD,kBAAkB,EAAA,UAAA,EAAA,CAAA;kBAJ9B,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,OAAO,EAAE,GAAG;AACZ,oBAAA,OAAO,EAAE;AACV,iBAAA;;;ACPD;;AAEG;;;;"}
1
+ {"version":3,"file":"yuuvis-client-framework-query-list.mjs","sources":["../../../../../libs/yuuvis/client-framework/query-list/src/lib/query-list.component.ts","../../../../../libs/yuuvis/client-framework/query-list/src/lib/query-list.component.html","../../../../../libs/yuuvis/client-framework/query-list/src/lib/query-list.module.ts","../../../../../libs/yuuvis/client-framework/query-list/src/yuuvis-client-framework-query-list.ts"],"sourcesContent":["import { BooleanInput, coerceBooleanProperty } from '@angular/cdk/coercion';\nimport { CommonModule } from '@angular/common';\nimport {\n ChangeDetectionStrategy,\n Component,\n computed,\n contentChild,\n effect,\n inject,\n input,\n output,\n signal,\n TemplateRef,\n untracked,\n viewChild\n} from '@angular/core';\nimport { MatPaginatorModule, PageEvent } from '@angular/material/paginator';\nimport { SearchQuery, SearchResult, SearchResultItem, SearchService } from '@yuuvis/client-core';\nimport { ClickDoubleDirective, DragSelectDirective, DragSelectItemDirective } from '@yuuvis/client-framework/common';\nimport { ListComponent, YuvListModule } from '@yuuvis/client-framework/list';\nimport { Pagination } from '@yuuvis/client-framework/pagination';\nimport { DeviceService } from '@yuuvis/material';\n\n/**\n * Query-driven list component that executes a search query and renders the results\n * using a consumer-provided item template.\n *\n * The component is a thin orchestration layer on top of `yuv-list`: it handles the\n * full query lifecycle (executing, paginating, refreshing), exposes a typed result\n * set via the optional `transformer` input, and delegates all keyboard navigation,\n * selection, and accessibility concerns to the inner `ListComponent`.\n *\n * **Key Features:**\n * - Accepts a `SearchQuery` object or a raw CMIS query string\n * - Optional `transformer` function maps raw `SearchResultItem[]` to any custom type `T`\n * - Built-in server-side pagination via Angular Material `mat-paginator`\n * - Multi-selection with mouse drag (`DragSelectDirective`) and keyboard modifiers\n * - \"Drop-in\" items prepended to the result set for optimistic UI updates\n * - Busy state signal for loading indicators\n * - Exposes a slim imperative API (`select`, `clear`, `refresh`, `goToPage`, …)\n * so parents can drive the list programmatically\n *\n * **Content Projection Slots:**\n * - `#yuvQueryListItem` — required; `ng-template` used to render each result item.\n * Receives the (optionally transformed) item as `$implicit`.\n * - `#yuvQueryListEmpty` — optional; `ng-template` shown when the result set is empty.\n *\n * **Basic usage:**\n * ```html\n * <yuv-query-list [query]=\"query\" (itemSelect)=\"onSelect($event)\">\n * <ng-template #yuvQueryListItem let-item>\n * <span>{{ item.title }}</span>\n * </ng-template>\n * </yuv-query-list>\n * ```\n *\n * **With transformer and empty state:**\n * ```html\n * <yuv-query-list [query]=\"query\" [transformer]=\"toViewModel\" (itemSelect)=\"onSelect($event)\">\n * <ng-template #yuvQueryListItem let-item>\n * <yuv-list-tile>\n * <ng-template #titleSlot>{{ item.title }}</ng-template>\n * <ng-template #descriptionSlot>{{ item.modified }}</ng-template>\n * </yuv-list-tile>\n * </ng-template>\n * <ng-template #yuvQueryListEmpty>\n * <p>No results found.</p>\n * </ng-template>\n * </yuv-query-list>\n * ```\n *\n * ```ts\n * toViewModel = (items: SearchResultItem[]) =>\n * items.map(item => ({\n * title: item.fields.get(BaseObjectTypeField.OBJECT_ID),\n * modified: item.fields.get(BaseObjectTypeField.MODIFICATION_DATE)\n * }));\n * ```\n *\n * @typeParam T The shape of each item after the optional `transformer` is applied.\n * Defaults to `any` when no transformer is provided.\n */\n@Component({\n selector: 'yuv-query-list',\n imports: [\n CommonModule,\n YuvListModule,\n ClickDoubleDirective,\n DragSelectDirective,\n DragSelectItemDirective,\n MatPaginatorModule\n ],\n templateUrl: './query-list.component.html',\n styleUrl: './query-list.component.scss',\n host: { '[class.pagination]': '!!pagination()' },\n changeDetection: ChangeDetectionStrategy.OnPush\n})\n// eslint-disable-next-line @typescript-eslint/no-explicit-any\nexport class QueryListComponent<T = any> {\n //#region Dependencies\n\n #device = inject(DeviceService);\n #searchService = inject(SearchService);\n\n //#endregion\n\n //#region Angular stuff\n\n /**\n * Current pagination state. Set to a `Pagination` object when the last query\n * result contained multiple pages; `undefined` when all results fit on one page\n * or no query has been executed yet.\n *\n * Drives the `[class.pagination]` host binding so the template can conditionally\n * render the `mat-paginator` footer.\n */\n pagination = signal<Pagination | undefined>(undefined);\n\n /**\n * Reference to the inner `ListComponent` instance.\n *\n * Used internally to delegate imperative operations (select, clear, focus, …).\n * Can also be accessed from the parent via a `@ViewChild` on `yuv-query-list` if\n * fine-grained control over the inner list is needed, though the public API methods\n * on this component are preferred.\n */\n list = viewChild.required<ListComponent>('list');\n\n /**\n * Reference to the `#yuvQueryListItem` `ng-template` projected by the consumer.\n *\n * This template is used to render each individual item in the list. The template\n * receives the (optionally transformed) item as the `$implicit` context variable:\n * ```html\n * <ng-template #yuvQueryListItem let-item>{{ item.title }}</ng-template>\n * ```\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n itemTemplate = contentChild<TemplateRef<any>>('yuvQueryListItem');\n\n /**\n * Reference to the optional `#yuvQueryListEmpty` `ng-template` projected by the consumer.\n *\n * When provided, this template is rendered in place of the list whenever the query\n * returns zero items. If omitted, nothing is shown for the empty state.\n * ```html\n * <ng-template #yuvQueryListEmpty>\n * <p>No results found.</p>\n * </ng-template>\n * ```\n */\n // eslint-disable-next-line @typescript-eslint/no-explicit-any\n emptyTemplate = contentChild<TemplateRef<any>>('yuvQueryListEmpty');\n\n /**\n * The search query to execute.\n *\n * Accepts either a structured `SearchQuery` object (field filters, sort orders, etc.)\n * or a raw CMIS query string. The query is re-executed reactively every time this\n * input changes. Set to `null` or `undefined` to clear the list without triggering\n * a new request.\n */\n query = input<SearchQuery | string | null>();\n\n /**\n * Property name on the (transformed) item to use as a stable unique identifier.\n *\n * When provided, the template renderer uses this property for `@for` tracking instead\n * of the item's position index, which preserves DOM nodes and component state when the\n * list is refreshed with partially overlapping results.\n *\n * If omitted, the zero-based index is used as the tracking key.\n *\n * @default null\n */\n idProperty = input<string | null>(null);\n\n /**\n * Optional mapping function applied to the raw `SearchResultItem[]` returned by the\n * search service before the results are rendered.\n *\n * Use this to project only the fields your template needs, compute derived properties,\n * or convert dates/enums to display-friendly values. The generic type parameter `T`\n * of the component is inferred from the return type of this function.\n *\n * If omitted, raw `SearchResultItem` objects are passed to the item template as-is.\n *\n * @example\n * ```ts\n * transformer = (items: SearchResultItem[]) =>\n * items.map(item => ({\n * id: item.fields.get(BaseObjectTypeField.OBJECT_ID) as string,\n * title: item.fields.get('cm:name') as string\n * }));\n * ```\n */\n transformer = input<((items: SearchResultItem[]) => T[]) | null>();\n\n /**\n * Guard function that temporarily blocks all selection changes.\n *\n * Forwarded directly to the inner `ListComponent`. As long as the returned predicate\n * evaluates to `true`, any attempt to change the selection — via click, keyboard, or\n * the programmatic API — is silently ignored. Useful when the parent has unsaved\n * changes tied to the current selection and needs to prevent the user from\n * accidentally navigating away.\n *\n * @default () => false (never prevents)\n */\n preventChangeUntil = input<() => boolean>(() => false);\n\n /**\n * Automatically selects an item when the list is first rendered.\n *\n * Forwarded to the inner `ListComponent`. The selection logic runs once after the\n * initial query result is displayed and follows this priority:\n * 1. The first non-disabled item that already carries the `selected` attribute.\n * 2. If no such item exists and `autoSelect` is `true`, the item at index 0.\n *\n * Accepts any truthy string in addition to a real boolean so it can be set as a\n * plain HTML attribute: `<yuv-query-list autoSelect>`.\n *\n * @default false\n */\n autoSelect = input<boolean, BooleanInput>(false, {\n transform: (value: BooleanInput) => coerceBooleanProperty(value)\n });\n\n /**\n * Emits the current selection as an array of zero-based item indices whenever\n * the selection changes — via click, drag, keyboard, or programmatic API calls.\n *\n * An empty array signals that the selection has been cleared.\n */\n itemSelect = output<number[]>();\n\n /**\n * Emits the live selection indices while the user is actively dragging to select.\n *\n * Fires continuously during a drag operation (before the drag is released), allowing\n * the parent to show a live preview of what will be selected. Once the drag ends,\n * `itemSelect` fires with the final committed selection.\n */\n dragSelectChange = output<number[]>();\n\n /**\n * Emits the zero-based index of an item when it is double-clicked.\n *\n * The inner list operates with `selfHandleClick` mode when double-click is active,\n * so single clicks do not immediately trigger `itemSelect`. The parent should listen\n * to both `itemSelect` (for single-click selection) and this event (for double-click\n * actions like opening a detail view).\n */\n itemDoubleClick = output<number>();\n\n /**\n * Emits once per query execution when the search result arrives, providing the total\n * count of matching items and the raw result page.\n *\n * Use this to update external counters, breadcrumbs, or analytics — without having to\n * execute a separate count query. Note that `totalCount` reflects the server-side total,\n * not just the number of items on the current page.\n */\n queryResult = output<{ totalCount: number; items: SearchResultItem[] }>();\n\n /**\n * Number of items to request per page from the search service.\n *\n * Controls the `size` parameter of each search request. When the total result count\n * exceeds this value, pagination controls are shown and the user can navigate between\n * pages via `changePage()` / `goToPage()`.\n *\n * @default SearchService.DEFAULT_QUERY_SIZE\n */\n pageSize = input<number>(SearchService.DEFAULT_QUERY_SIZE);\n\n /**\n * Enables mouse drag-to-select on list items.\n *\n * When `true` and `multiselect` is also `true`, the user can click and drag across\n * items to select a range without holding Shift. Powered by `DragSelectDirective`.\n * Automatically disabled on touch devices regardless of this input value.\n *\n * @default true\n */\n enableDragSelect = input<boolean>(true);\n\n /**\n * Enables multi-selection mode.\n *\n * When `true`, the user can hold **Shift** or **Ctrl** to extend or toggle the\n * selection, and drag-to-select becomes available (if `enableDragSelect` is also\n * `true`). Forwarded to the inner `ListComponent`.\n *\n * @default false\n */\n multiselect = input<boolean>(false);\n\n /**\n * Delegates visual selection and focus state rendering to the parent component.\n *\n * When `false` (default), `yuv-list` applies CSS classes for selected and active\n * states automatically. When `true`, those signals are still updated but the host\n * receives the `self-handle-selection` CSS class, allowing the parent to apply\n * its own visual treatment. Forwarded to the inner `ListComponent`.\n *\n * @default false\n */\n selfHandleSelection = input<boolean>(false);\n\n /**\n * Whether to include permission information in CMIS search results.\n * When `true`, the third parameter of `searchCmis()` is set,\n * causing the backend to return permission data alongside each item.\n *\n * @default false\n */\n includePermissions = input<boolean>(false);\n\n //#endregion\n\n //#region Properties\n\n /**\n * Whether the current device has touch input enabled.\n *\n * Sourced from `DeviceService`. Used in the template to conditionally disable\n * drag-to-select, which is not suitable for touch interactions.\n */\n isTouchDevice = this.#device.isTouchEnabled;\n\n /**\n * Number of drop-in items currently prepended to the result list.\n *\n * Derived from the internal `#dropInItems` signal. Exposed publicly so the template\n * and parent components can easily check whether any temporary items are present\n * (e.g. to show a visual indicator or adjust layout) without accessing internal state.\n */\n dropInSize = computed(() => this.#dropInItems().length);\n\n /**\n * The final list of items rendered by the template.\n *\n * Computed from three sources, merged in this order:\n * 1. **Drop-in items** (`#dropInItems`) — temporary items prepended to the list,\n * e.g. newly created objects that should appear before they match the query.\n * 2. **Transformed query results** — raw `SearchResultItem[]` passed through the\n * optional `transformer` function (or cast directly to `T[]` if none is provided).\n * 3. **Optimistic updates** (`#listItemUpdates`) — per-index overrides applied on top\n * of the merged list, allowing individual items to be patched without re-fetching.\n *\n * Re-evaluates automatically whenever any of the three sources change.\n */\n resultItems = computed<T[]>(() => {\n const items = this.#items();\n const updates = this.#listItemUpdates();\n const transformer = this.transformer();\n const transformedResult = transformer ? transformer(items) : (items as unknown as T[]);\n const dropIns = this.#dropInItems();\n\n let merged: T[];\n const idProp = this.idProperty();\n\n if (dropIns.length > 0 && idProp) {\n // Deduplicate: filter out server results that already appear as drop-in items\n const dropInIds = new Set(dropIns.map((item) => (item as Record<string, unknown>)[idProp]));\n const filtered = transformedResult.filter((item) => !dropInIds.has((item as Record<string, unknown>)[idProp]));\n merged = [...dropIns, ...filtered];\n } else {\n merged = [...dropIns, ...transformedResult];\n }\n\n // apply updates to transformed result\n Object.keys(updates).forEach((index) => {\n merged[Number(index)] = updates[Number(index)];\n });\n return merged;\n });\n\n /**\n * Indicates whether a search request is currently in flight.\n *\n * Set to `true` immediately before a query or page request is dispatched to the\n * search service, and back to `false` once the response (or error) arrives.\n * Bind this to a loading indicator or `BusyOverlayDirective` in the parent template:\n * ```html\n * <yuv-query-list #qList ...>...</yuv-query-list>\n * <yuv-busy-overlay [active]=\"qList.busy()\" />\n * ```\n */\n busy = signal<boolean>(false);\n\n #items = signal<SearchResultItem[]>([]);\n\n #dropInItems = signal<T[]>([]);\n\n #listItemUpdates = signal<Record<number, T>>({});\n\n //#endregion\n\n constructor() {\n effect(this.#executeQueryEffect);\n }\n\n //#region UI Methods\n\n /** Resolves the tracking key for a result item in the `@for` loop. */\n trackItem(item: T, index: number): unknown {\n const prop = this.idProperty();\n return prop ? (item as Record<string, unknown>)[prop] : index;\n }\n\n /**\n * Handles a single click on a list item.\n *\n * Forwards the click to the inner `ListComponent` with the correct Shift/Ctrl modifier\n * flags so range- and toggle-selection work correctly. Also transfers DOM focus to the\n * list host so subsequent keyboard navigation works without an additional Tab press.\n *\n * Called from the template via `(click)` on each item wrapper. Not intended for\n * external callers — use `select()` instead.\n *\n * @param idx Zero-based index of the clicked item.\n * @param event The originating mouse event (provides `shiftKey` and `ctrlKey` flags).\n */\n onItemClick(idx: number, event: MouseEvent): void {\n this.list().select(idx, event.shiftKey, event.ctrlKey);\n this.list().focus();\n }\n\n /**\n * Handles a double-click on a list item.\n *\n * Emits the `itemDoubleClick` output with the item's index. The parent can use this\n * to trigger a secondary action (e.g. opening a detail panel or navigating to a route)\n * that is distinct from the primary single-click selection.\n *\n * Called from the template via `ClickDoubleDirective`. Not intended for external callers.\n *\n * @param idx Zero-based index of the double-clicked item.\n * @param event The originating mouse event (unused, kept for directive compatibility).\n */\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n onItemDoubleClick(idx: number, event: MouseEvent): void {\n this.itemDoubleClick.emit(idx);\n }\n\n /**\n * Handles intermediate drag-selection changes from `DragSelectDirective`.\n *\n * Fires continuously while the user is dragging across items. Updates the inner list's\n * multi-selection state in real time so items are highlighted as the drag progresses,\n * and also emits `dragSelectChange` so the parent can show a live preview.\n *\n * Called from the template via `(dragSelectChange)` on the drag-select host.\n * Not intended for external callers.\n *\n * @param sel Current array of zero-based indices covered by the drag gesture.\n */\n onDragSelectChange(sel: number[]): void {\n this.list().multiSelect(sel);\n this.dragSelectChange.emit(sel);\n }\n\n /**\n * Handles the final committed drag-selection from `DragSelectDirective`.\n *\n * Called when the user releases the mouse after a drag-to-select gesture. Transfers\n * DOM focus to the list (so keyboard navigation works immediately after) and emits\n * the final selection via `itemSelect`.\n *\n * Called from the template via `(dragSelect)` on the drag-select host.\n * Not intended for external callers.\n *\n * @param sel Final array of zero-based indices selected by the drag gesture.\n */\n onDragSelect(sel: number[]): void {\n this.list().focus();\n this.itemSelect.emit(sel);\n }\n\n //#endregion\n\n //#region Public methods\n\n /**\n * Applies optimistic per-item overrides on top of the current query result.\n *\n * Each entry in the `updates` array patches the item at the given `index` with\n * the provided `value`. The value type must match `T` — i.e. the shape produced\n * by the `transformer` function, or `SearchResultItem` if no transformer is used.\n *\n * Overrides accumulate: calling this method multiple times merges the new entries\n * with any previously applied ones. All overrides are automatically discarded when\n * the user navigates to a different page (see `goToPage()`), since a fresh server\n * response replaces the local data.\n *\n * **Use case:** apply instant visual feedback after a user action (rename, status\n * change, etc.) without waiting for a full query refresh.\n *\n * @param updates Array of `{ index, value }` pairs describing which items to patch.\n */\n updateListItems(updates: { index: number; value: T }[]): void {\n const updatesRecord = updates.reduce(\n (acc, curr) => {\n {\n acc[curr.index] = curr.value;\n return acc;\n }\n },\n {} as Record<number, T>\n );\n this.#listItemUpdates.set({ ...this.#listItemUpdates(), ...updatesRecord });\n }\n\n /**\n * Prepends a set of temporary items to the top of the result list.\n *\n * Drop-in items appear before all query results and are visually distinguished\n * by the template (e.g. a highlighted background). They participate in selection\n * and drag-to-select exactly like regular items.\n *\n * The existing selection indices are automatically shifted by `items.length` so that\n * the currently selected query-result items remain selected after the prepend.\n *\n * **Typical use case:** when the user pastes or creates an object that does not yet\n * appear in the current query (e.g. because the index has not been updated), drop it\n * in temporarily so the user sees it immediately without a full refresh.\n *\n * Drop-in items are cleared automatically when the user navigates to a different page.\n * Call `dropItems([])` to remove them programmatically.\n *\n * @param items Items to prepend. Must be of type `T` (same as query result items).\n * @param scrollTo Whether to smooth-scroll the list back to the top after prepending.\n * Defaults to `true` so the newly dropped items are immediately visible.\n */\n dropItems(items: T[], scrollTo = true): void {\n this.#dropInItems.set(items);\n this.list().shiftSelectionBy(items.length);\n if (scrollTo) {\n this.list().scrollToTop();\n }\n }\n\n /**\n * Programmatically replaces the entire selection with the given indices.\n *\n * Only effective when `multiselect` is `true`. Out-of-range indices are silently\n * discarded. The resulting selection is sorted ascending before being applied.\n *\n * Use this when the parent needs to restore a previously saved multi-selection\n * state, e.g. after navigation or component re-initialization.\n *\n * @param index Array of zero-based item indices to select.\n */\n multiSelect(index: number[]): void {\n this.list().multiSelect(index);\n }\n\n /**\n * Selects the item at the given zero-based index.\n *\n * Delegates to the inner `ListComponent`. The `preventChangeUntil` guard and\n * `disableSelection` state are respected. Clamps the index to the valid range.\n *\n * @param index Zero-based index of the item to select.\n */\n select(index: number): void {\n this.list().select(index);\n }\n\n /**\n * Moves keyboard focus to the item at the given index and selects it.\n *\n * Combines focus management and selection in one call, and transfers DOM focus\n * to the list host. Use this when the parent wants to programmatically drive\n * both the visual focus indicator and the selection simultaneously.\n *\n * @param index Zero-based index of the item to activate.\n */\n setActiveItem(index: number): void {\n this.list().setActiveItem(index);\n }\n\n /**\n * Clears the current selection and resets the active keyboard-focus index.\n *\n * If the selection is already empty, the method is a no-op. The `preventChangeUntil`\n * guard is respected — if the guard returns `true`, the clear is blocked.\n *\n * @param silent When `true`, skips emitting `itemSelect` after clearing. Use this\n * when the parent needs to reset state programmatically without\n * triggering downstream reactions.\n */\n clear(silent = false): void {\n this.list().clear(silent);\n }\n\n /**\n * Re-executes the current query without changing the page or query parameters.\n *\n * If pagination is active, re-fetches the same page the user is currently on.\n * If no pagination is active, re-runs the original query from scratch.\n *\n * Use this to reflect server-side changes (e.g. after a create/delete operation)\n * without navigating away from the current view.\n */\n refresh(): void {\n const query = this.query();\n if (query) {\n if (this.pagination()) {\n this.goToPage(this.pagination()!.page);\n } else this.#executeQuery(query || null);\n }\n }\n\n /**\n * Forces the `transformer` function to be re-applied to the current result set.\n *\n * Normally the transformer runs automatically whenever the underlying `#items`\n * signal changes. Use this method when the transformer itself has external\n * dependencies that changed (e.g. a locale or display-format setting) but the\n * raw search result did not — triggering a re-evaluation by creating a new array\n * reference for `#items` without fetching from the server again.\n */\n runTransformerAgain(): void {\n this.#items.set([...this.#items()]);\n }\n\n /**\n * Handles a page-change event emitted by the `mat-paginator`.\n *\n * Converts the zero-based `pageEvent.pageIndex` to the one-based page number\n * expected by `goToPage()` and delegates the request.\n *\n * Bound to `(page)` on the `mat-paginator` in the template.\n *\n * @param pageEvent The pagination event emitted by `MatPaginatorModule`.\n */\n changePage(pageEvent: PageEvent): void {\n this.#dropInItems.set([]);\n this.goToPage(pageEvent.pageIndex + 1);\n }\n\n /**\n * Fetches and displays the given page of the current query result.\n *\n * Sets `busy` to `true` for the duration of the request. On success, updates\n * the pagination state, clears all optimistic overrides (they are page-scoped),\n * and replaces `#items` with the new page's results.\n *\n * Also used internally by `refresh()` to reload the currently active page.\n *\n * @param page One-based page number to navigate to.\n */\n goToPage(page: number): void {\n const query = this.query();\n if (!query) return;\n this.busy.set(true);\n this.#searchService\n .getPage(query, page, this.pageSize(), this.includePermissions())\n\n .subscribe({\n next: (res: SearchResult) => {\n this.#setupPagination(res);\n this.#listItemUpdates.set({});\n this.#items.set(res.items);\n this.queryResult.emit({ totalCount: res.totalNumItems, items: res.items });\n this.busy.set(false);\n },\n error: (err) => {\n // TODO: how should errors be handles in case hat loading pages fail\n this.busy.set(false);\n console.error(err);\n }\n });\n }\n\n //#endregion\n\n //#region Utilities\n\n /**\n * Executes a search query.\n * @param query The search query to execute.\n * This may be a SearchQuery object or a string. If it's a string, it is supposed to\n * be a CMIS query statement.\n */\n #executeQuery(query: SearchQuery | string | null): void {\n if (query && !this.busy()) {\n this.busy.set(true);\n (typeof query === 'string'\n ? this.#searchService.searchCmis(query as string, this.pageSize(), this.includePermissions())\n : this.#searchService.search(query as SearchQuery)\n ).subscribe({\n next: (res: SearchResult) => {\n this.#setupPagination(res);\n this.#listItemUpdates.set({});\n this.#items.set(res.items);\n this.queryResult.emit({ totalCount: res.totalNumItems, items: res.items });\n this.busy.set(false);\n },\n error: (err) => {\n this.busy.set(false);\n console.error(err);\n }\n });\n }\n }\n\n #setupPagination(searchResult: SearchResult): void {\n this.pagination.set(\n searchResult.paging\n ? {\n total: searchResult.totalNumItems,\n pages: searchResult.paging.totalPages,\n page: searchResult.paging.page\n }\n : undefined\n );\n }\n\n //#endregion\n\n //#region Effects\n\n readonly #executeQueryEffect = (): void => {\n // execute the query each time it changes\n const query = this.query();\n if (query)\n untracked(() => {\n this.#executeQuery(query || null);\n });\n };\n\n //#endregion\n}\n","<yuv-list\n #list\n [multiselect]=\"multiselect()\"\n [autoSelect]=\"autoSelect()\"\n [preventChangeUntil]=\"preventChangeUntil()\"\n [selfHandleClick]=\"true\"\n [selfHandleSelection]=\"selfHandleSelection()\"\n [yuvDragSelect]=\"{ disabled: !enableDragSelect() || !multiselect() || isTouchDevice }\"\n (dragSelectChange)=\"onDragSelectChange($event)\"\n (dragSelect)=\"onDragSelect($event)\"\n (itemSelect)=\"itemSelect.emit($event)\"\n>\n @for (resultItem of resultItems(); track trackItem(resultItem, $index)) {\n <div\n yuvListItem\n yuvDragSelectItem\n [class.drop-in]=\"$index < dropInSize()\"\n (click.single)=\"onItemClick($index, $event)\"\n (click.double)=\"onItemDoubleClick($index, $event)\"\n >\n <ng-container *ngTemplateOutlet=\"itemTemplate() || null; context: { $implicit: resultItem, index: $index }\" />\n </div>\n } @empty {\n <ng-container *ngTemplateOutlet=\"emptyTemplate() || null\" />\n }\n</yuv-list>\n@if (pagination(); as pag) {\n <mat-paginator\n class=\"paginator\"\n [length]=\"pag.total\"\n [pageSize]=\"pageSize()\"\n (page)=\"changePage($event)\"\n hidePageSize\n />\n}\n","import { NgModule } from '@angular/core';\nimport { QueryListComponent } from './query-list.component';\n\nconst cmp = [QueryListComponent];\n@NgModule({\n imports: cmp,\n exports: cmp\n})\nexport class YuvQueryListModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;;;;;AAuBA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0DG;AAgBH;MACa,kBAAkB,CAAA;;AAG7B,IAAA,OAAO;AACP,IAAA,cAAc;AAkSd,IAAA,MAAM;AAEN,IAAA,YAAY;AAEZ,IAAA,gBAAgB;;AAIhB,IAAA,WAAA,GAAA;;AA3SA,QAAA,IAAA,CAAA,OAAO,GAAG,MAAM,CAAC,aAAa,CAAC;AAC/B,QAAA,IAAA,CAAA,cAAc,GAAG,MAAM,CAAC,aAAa,CAAC;;;AAMtC;;;;;;;AAOG;AACH,QAAA,IAAA,CAAA,UAAU,GAAG,MAAM,CAAyB,SAAS,iFAAC;AAEtD;;;;;;;AAOG;AACH,QAAA,IAAA,CAAA,IAAI,GAAG,SAAS,CAAC,QAAQ,CAAgB,MAAM,CAAC;AAEhD;;;;;;;;AAQG;;AAEH,QAAA,IAAA,CAAA,YAAY,GAAG,YAAY,CAAmB,kBAAkB,mFAAC;AAEjE;;;;;;;;;;AAUG;;AAEH,QAAA,IAAA,CAAA,aAAa,GAAG,YAAY,CAAmB,mBAAmB,oFAAC;AAEnE;;;;;;;AAOG;QACH,IAAA,CAAA,KAAK,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SAAA,EAAA,EAAA,SAAA,EAAA,OAAA,EAAA,CAAA,8BAAA,EAAA,CAAA,CAA+B;AAE5C;;;;;;;;;;AAUG;AACH,QAAA,IAAA,CAAA,UAAU,GAAG,KAAK,CAAgB,IAAI,iFAAC;AAEvC;;;;;;;;;;;;;;;;;;AAkBG;QACH,IAAA,CAAA,WAAW,GAAG,KAAK,CAAA,IAAA,SAAA,GAAA,CAAA,SA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