@yuuvis/client-framework 3.0.0-beta.20.2 → 3.0.0-beta.21.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/autocomplete/README.md +1 -1
- package/common/README.md +1 -1
- package/fesm2022/yuuvis-client-framework-actions.mjs +25 -25
- package/fesm2022/yuuvis-client-framework-actions.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-app-bar.mjs +6 -6
- package/fesm2022/yuuvis-client-framework-app-bar.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-autocomplete.mjs +5 -236
- package/fesm2022/yuuvis-client-framework-autocomplete.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-breadcrumb.mjs +4 -4
- package/fesm2022/yuuvis-client-framework-breadcrumb.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-clipboard.mjs +7 -6
- package/fesm2022/yuuvis-client-framework-clipboard.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-common.mjs +3 -1793
- package/fesm2022/yuuvis-client-framework-common.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-datepicker.mjs +51 -51
- package/fesm2022/yuuvis-client-framework-datepicker.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-forms.mjs +154 -167
- package/fesm2022/yuuvis-client-framework-forms.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-icons.mjs +14 -14
- package/fesm2022/yuuvis-client-framework-icons.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-list.mjs +3 -679
- package/fesm2022/yuuvis-client-framework-list.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-master-details.mjs +3 -136
- package/fesm2022/yuuvis-client-framework-master-details.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-metadata-form-defaults.mjs +7 -7
- package/fesm2022/yuuvis-client-framework-metadata-form-defaults.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-metadata-form.mjs +28 -28
- package/fesm2022/yuuvis-client-framework-metadata-form.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-details.mjs +92 -95
- package/fesm2022/yuuvis-client-framework-object-details.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-flavor.mjs +46 -44
- package/fesm2022/yuuvis-client-framework-object-flavor.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-form.mjs +47 -47
- package/fesm2022/yuuvis-client-framework-object-form.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-preview.mjs +37 -58
- package/fesm2022/yuuvis-client-framework-object-preview.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-relationship.mjs +80 -80
- package/fesm2022/yuuvis-client-framework-object-relationship.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-summary.mjs +37 -38
- package/fesm2022/yuuvis-client-framework-object-summary.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-object-versions.mjs +20 -20
- package/fesm2022/yuuvis-client-framework-object-versions.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-overflow-hidden.mjs +3 -62
- package/fesm2022/yuuvis-client-framework-overflow-hidden.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-overflow-menu.mjs +3 -129
- package/fesm2022/yuuvis-client-framework-overflow-menu.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-pagination.mjs +5 -5
- package/fesm2022/yuuvis-client-framework-pagination.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-popout.mjs +3 -239
- package/fesm2022/yuuvis-client-framework-popout.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-query-list.mjs +26 -28
- package/fesm2022/yuuvis-client-framework-query-list.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-renderer.mjs +51 -51
- package/fesm2022/yuuvis-client-framework-renderer.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-sequence-list.mjs +7 -7
- package/fesm2022/yuuvis-client-framework-sequence-list.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-simple-search.mjs +4 -4
- package/fesm2022/yuuvis-client-framework-simple-search.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-sort.mjs +34 -55
- package/fesm2022/yuuvis-client-framework-sort.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-split-view.mjs +3 -321
- package/fesm2022/yuuvis-client-framework-split-view.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-tile-list.mjs +88 -90
- package/fesm2022/yuuvis-client-framework-tile-list.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-token-search.mjs +21 -21
- package/fesm2022/yuuvis-client-framework-token-search.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-tree.mjs +16 -16
- package/fesm2022/yuuvis-client-framework-tree.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-upload-progress.mjs +15 -15
- package/fesm2022/yuuvis-client-framework-upload-progress.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework-widget-grid.mjs +3 -946
- package/fesm2022/yuuvis-client-framework-widget-grid.mjs.map +1 -1
- package/fesm2022/yuuvis-client-framework.mjs +22 -22
- package/fesm2022/yuuvis-client-framework.mjs.map +1 -1
- package/lib/assets/i18n/de.json +1 -55
- package/lib/assets/i18n/en.json +1 -55
- package/list/README.md +1 -1
- package/master-details/README.md +1 -1
- package/overflow-hidden/README.md +1 -1
- package/overflow-menu/README.md +1 -1
- package/package.json +50 -48
- package/popout/README.md +1 -1
- package/split-view/README.md +1 -1
- package/types/yuuvis-client-framework-autocomplete.d.ts +1 -0
- package/{clipboard/index.d.ts → types/yuuvis-client-framework-clipboard.d.ts} +1 -1
- package/types/yuuvis-client-framework-common.d.ts +1 -0
- package/types/yuuvis-client-framework-list.d.ts +1 -0
- package/types/yuuvis-client-framework-master-details.d.ts +1 -0
- package/{object-flavor/index.d.ts → types/yuuvis-client-framework-object-flavor.d.ts} +1 -0
- package/types/yuuvis-client-framework-overflow-hidden.d.ts +1 -0
- package/types/yuuvis-client-framework-overflow-menu.d.ts +1 -0
- package/types/yuuvis-client-framework-popout.d.ts +1 -0
- package/{renderer/index.d.ts → types/yuuvis-client-framework-renderer.d.ts} +2 -2
- package/types/yuuvis-client-framework-split-view.d.ts +1 -0
- package/types/yuuvis-client-framework-widget-grid.d.ts +1 -0
- package/widget-grid/README.md +1 -46
- package/autocomplete/index.d.ts +0 -89
- package/common/index.d.ts +0 -536
- package/list/index.d.ts +0 -380
- package/master-details/index.d.ts +0 -69
- package/overflow-hidden/index.d.ts +0 -28
- package/overflow-menu/index.d.ts +0 -52
- package/popout/index.d.ts +0 -106
- package/split-view/index.d.ts +0 -197
- package/widget-grid/index.d.ts +0 -299
- /package/{actions/index.d.ts → types/yuuvis-client-framework-actions.d.ts} +0 -0
- /package/{app-bar/index.d.ts → types/yuuvis-client-framework-app-bar.d.ts} +0 -0
- /package/{breadcrumb/index.d.ts → types/yuuvis-client-framework-breadcrumb.d.ts} +0 -0
- /package/{datepicker/index.d.ts → types/yuuvis-client-framework-datepicker.d.ts} +0 -0
- /package/{forms/index.d.ts → types/yuuvis-client-framework-forms.d.ts} +0 -0
- /package/{icons/index.d.ts → types/yuuvis-client-framework-icons.d.ts} +0 -0
- /package/{metadata-form-defaults/index.d.ts → types/yuuvis-client-framework-metadata-form-defaults.d.ts} +0 -0
- /package/{metadata-form/index.d.ts → types/yuuvis-client-framework-metadata-form.d.ts} +0 -0
- /package/{object-details/index.d.ts → types/yuuvis-client-framework-object-details.d.ts} +0 -0
- /package/{object-form/index.d.ts → types/yuuvis-client-framework-object-form.d.ts} +0 -0
- /package/{object-preview/index.d.ts → types/yuuvis-client-framework-object-preview.d.ts} +0 -0
- /package/{object-relationship/index.d.ts → types/yuuvis-client-framework-object-relationship.d.ts} +0 -0
- /package/{object-summary/index.d.ts → types/yuuvis-client-framework-object-summary.d.ts} +0 -0
- /package/{object-versions/index.d.ts → types/yuuvis-client-framework-object-versions.d.ts} +0 -0
- /package/{pagination/index.d.ts → types/yuuvis-client-framework-pagination.d.ts} +0 -0
- /package/{query-list/index.d.ts → types/yuuvis-client-framework-query-list.d.ts} +0 -0
- /package/{sequence-list/index.d.ts → types/yuuvis-client-framework-sequence-list.d.ts} +0 -0
- /package/{simple-search/index.d.ts → types/yuuvis-client-framework-simple-search.d.ts} +0 -0
- /package/{sort/index.d.ts → types/yuuvis-client-framework-sort.d.ts} +0 -0
- /package/{tile-list/index.d.ts → types/yuuvis-client-framework-tile-list.d.ts} +0 -0
- /package/{token-search/index.d.ts → types/yuuvis-client-framework-token-search.d.ts} +0 -0
- /package/{tree/index.d.ts → types/yuuvis-client-framework-tree.d.ts} +0 -0
- /package/{upload-progress/index.d.ts → types/yuuvis-client-framework-upload-progress.d.ts} +0 -0
- /package/{index.d.ts → types/yuuvis-client-framework.d.ts} +0 -0
|
@@ -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,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A,EAAA,EAAA,EAAA,IAAA,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,CA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|
|
14
14
|
class AbstractRendererComponent {
|
|
15
15
|
constructor() {
|
|
16
16
|
this.#system = inject(SystemService);
|
|
17
|
-
this.propertyName = input.required(...(ngDevMode ? [{ debugName: "propertyName" }] : []));
|
|
18
|
-
this.value = input.required(...(ngDevMode ? [{ debugName: "value" }] : []));
|
|
19
|
-
this.meta = input(...(ngDevMode ? [undefined, { debugName: "meta" }] : []));
|
|
17
|
+
this.propertyName = input.required(...(ngDevMode ? [{ debugName: "propertyName" }] : /* istanbul ignore next */ []));
|
|
18
|
+
this.value = input.required(...(ngDevMode ? [{ debugName: "value" }] : /* istanbul ignore next */ []));
|
|
19
|
+
this.meta = input(...(ngDevMode ? [undefined, { debugName: "meta" }] : /* istanbul ignore next */ []));
|
|
20
20
|
}
|
|
21
21
|
#system;
|
|
22
22
|
getProperty() {
|
|
23
23
|
return this.#system.system?.allFields[this.propertyName()];
|
|
24
24
|
}
|
|
25
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
26
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "
|
|
25
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AbstractRendererComponent, deps: [], target: i0.ɵɵFactoryTarget.Component }); }
|
|
26
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.1.0", version: "21.2.9", type: AbstractRendererComponent, isStandalone: true, selector: "yuv-abstract-renderer", inputs: { propertyName: { classPropertyName: "propertyName", publicName: "propertyName", isSignal: true, isRequired: true, transformFunction: null }, value: { classPropertyName: "value", publicName: "value", isSignal: true, isRequired: true, transformFunction: null }, meta: { classPropertyName: "meta", publicName: "meta", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0, template: '', isInline: true }); }
|
|
27
27
|
}
|
|
28
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
28
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: AbstractRendererComponent, decorators: [{
|
|
29
29
|
type: Component,
|
|
30
30
|
args: [{
|
|
31
31
|
selector: 'yuv-abstract-renderer',
|
|
@@ -34,28 +34,28 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
34
34
|
}], propDecorators: { propertyName: [{ type: i0.Input, args: [{ isSignal: true, alias: "propertyName", required: true }] }], value: [{ type: i0.Input, args: [{ isSignal: true, alias: "value", required: true }] }], meta: [{ type: i0.Input, args: [{ isSignal: true, alias: "meta", required: false }] }] } });
|
|
35
35
|
|
|
36
36
|
class BooleanRendererComponent extends AbstractRendererComponent {
|
|
37
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
38
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
37
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: BooleanRendererComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
38
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: BooleanRendererComponent, isStandalone: true, selector: "yuv-boolean-renderer", usesInheritance: true, ngImport: i0, template: ` <mat-icon>{{ value() ? 'check_box' : 'check_box_outline_blank' }}</mat-icon>`, isInline: true, styles: [":host{display:flex;padding:var(--tile-slot-padding)}\n"], dependencies: [{ kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
39
39
|
}
|
|
40
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
40
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: BooleanRendererComponent, decorators: [{
|
|
41
41
|
type: Component,
|
|
42
42
|
args: [{ selector: 'yuv-boolean-renderer', imports: [MatIcon], template: ` <mat-icon>{{ value() ? 'check_box' : 'check_box_outline_blank' }}</mat-icon>`, styles: [":host{display:flex;padding:var(--tile-slot-padding)}\n"] }]
|
|
43
43
|
}] });
|
|
44
44
|
|
|
45
45
|
class DateTimeRendererComponent extends AbstractRendererComponent {
|
|
46
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
47
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
46
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DateTimeRendererComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
47
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: DateTimeRendererComponent, isStandalone: true, selector: "yuv-datetime-renderer", usesInheritance: true, ngImport: i0, template: '{{(value() || undefined) | localeDate}}', isInline: true, styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"], dependencies: [{ kind: "pipe", type: LocaleDatePipe, name: "localeDate" }] }); }
|
|
48
48
|
}
|
|
49
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
49
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DateTimeRendererComponent, decorators: [{
|
|
50
50
|
type: Component,
|
|
51
51
|
args: [{ selector: 'yuv-datetime-renderer', imports: [LocaleDatePipe], template: '{{(value() || undefined) | localeDate}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
|
|
52
52
|
}] });
|
|
53
53
|
|
|
54
54
|
class DecimalRendererComponent extends AbstractRendererComponent {
|
|
55
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
56
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
55
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DecimalRendererComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
56
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: DecimalRendererComponent, isStandalone: true, selector: "yuv-decimal-renderer", usesInheritance: true, ngImport: i0, template: '{{value()}}', isInline: true, styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }); }
|
|
57
57
|
}
|
|
58
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
58
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: DecimalRendererComponent, decorators: [{
|
|
59
59
|
type: Component,
|
|
60
60
|
args: [{ selector: 'yuv-decimal-renderer', template: '{{value()}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
|
|
61
61
|
}] });
|
|
@@ -74,12 +74,12 @@ class FileSizeRendererComponent extends AbstractRendererComponent {
|
|
|
74
74
|
console.error(e);
|
|
75
75
|
}
|
|
76
76
|
return n;
|
|
77
|
-
}, ...(ngDevMode ? [{ debugName: "parsedValue" }] : []));
|
|
77
|
+
}, ...(ngDevMode ? [{ debugName: "parsedValue" }] : /* istanbul ignore next */ []));
|
|
78
78
|
}
|
|
79
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
80
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
79
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FileSizeRendererComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
80
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: FileSizeRendererComponent, isStandalone: true, selector: "yuv-string-renderer", usesInheritance: true, ngImport: i0, template: '{{parsedValue() | fileSize}}', isInline: true, styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"], dependencies: [{ kind: "pipe", type: FileSizePipe, name: "fileSize" }] }); }
|
|
81
81
|
}
|
|
82
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
82
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: FileSizeRendererComponent, decorators: [{
|
|
83
83
|
type: Component,
|
|
84
84
|
args: [{ selector: 'yuv-string-renderer', imports: [FileSizePipe], template: '{{parsedValue() | fileSize}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
|
|
85
85
|
}] });
|
|
@@ -95,13 +95,13 @@ class IconRendererComponent extends AbstractRendererComponent {
|
|
|
95
95
|
this.propertyName() === 'custom' &&
|
|
96
96
|
!(meta && meta['isFontIcon']) &&
|
|
97
97
|
this.#iconRegistry.addSvgIconLiteral(this.customId, this.#sanitizer.bypassSecurityTrustHtml(this.value()));
|
|
98
|
-
}, ...(ngDevMode ? [{ debugName: "#registerIconsEffect" }] : []));
|
|
98
|
+
}, ...(ngDevMode ? [{ debugName: "#registerIconsEffect" }] : /* istanbul ignore next */ []));
|
|
99
99
|
}
|
|
100
100
|
#iconRegistry;
|
|
101
101
|
#sanitizer;
|
|
102
102
|
#registerIconsEffect;
|
|
103
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
104
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
103
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: IconRendererComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
104
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: IconRendererComponent, isStandalone: true, selector: "yuv-icon-renderer", usesInheritance: true, ngImport: i0, template: ` @let icon = value();
|
|
105
105
|
@if (propertyName() !== 'custom') {
|
|
106
106
|
<yuv-object-type-icon [objectTypeId]="icon || ''"></yuv-object-type-icon>
|
|
107
107
|
} @else if (icon !== null) {
|
|
@@ -113,7 +113,7 @@ class IconRendererComponent extends AbstractRendererComponent {
|
|
|
113
113
|
}
|
|
114
114
|
}`, isInline: true, styles: [":host{display:flex;align-items:center;justify-content:center;padding:var(--tile-slot-padding)}:host yuv-icon,:host yuv-object-type-icon{--icon-size: var(--icon-renderer-icon-size);width:var(--icon-size);height:var(--icon-size)}\n"], dependencies: [{ kind: "component", type: ObjectTypeIconComponent, selector: "yuv-object-type-icon", inputs: ["objectTypeId"] }, { kind: "component", type: MatIcon, selector: "mat-icon", inputs: ["color", "inline", "svgIcon", "fontSet", "fontIcon"], exportAs: ["matIcon"] }] }); }
|
|
115
115
|
}
|
|
116
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
116
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: IconRendererComponent, decorators: [{
|
|
117
117
|
type: Component,
|
|
118
118
|
args: [{ selector: 'yuv-icon-renderer', imports: [ObjectTypeIconComponent, MatIcon], template: ` @let icon = value();
|
|
119
119
|
@if (propertyName() !== 'custom') {
|
|
@@ -129,10 +129,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
129
129
|
}] });
|
|
130
130
|
|
|
131
131
|
class IntegerRendererComponent extends AbstractRendererComponent {
|
|
132
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
133
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
132
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: IntegerRendererComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
133
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: IntegerRendererComponent, isStandalone: true, selector: "yuv-integer-renderer", usesInheritance: true, ngImport: i0, template: '{{value()}}', isInline: true, styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }); }
|
|
134
134
|
}
|
|
135
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
135
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: IntegerRendererComponent, decorators: [{
|
|
136
136
|
type: Component,
|
|
137
137
|
args: [{ selector: 'yuv-integer-renderer', template: '{{value()}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
|
|
138
138
|
}] });
|
|
@@ -147,7 +147,7 @@ class OrganizationRendererComponent extends AbstractRendererComponent {
|
|
|
147
147
|
this.resolvedValue = computed(() => {
|
|
148
148
|
const m = this.value();
|
|
149
149
|
return m === null ? [] : Array.isArray(m) ? m : [m];
|
|
150
|
-
}, ...(ngDevMode ? [{ debugName: "resolvedValue" }] : []));
|
|
150
|
+
}, ...(ngDevMode ? [{ debugName: "resolvedValue" }] : /* istanbul ignore next */ []));
|
|
151
151
|
this.#userRoleResolver = rxResource({
|
|
152
152
|
params: this.resolvedValue,
|
|
153
153
|
stream: ({ params }) =>
|
|
@@ -202,8 +202,8 @@ class OrganizationRendererComponent extends AbstractRendererComponent {
|
|
|
202
202
|
#STORAGE_USER_KEY;
|
|
203
203
|
#STORAGE_ROLES_KEY;
|
|
204
204
|
#userRoleResolver;
|
|
205
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
206
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
205
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OrganizationRendererComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
206
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: OrganizationRendererComponent, isStandalone: true, selector: "yuv-organization-renderer", usesInheritance: true, ngImport: i0, template: `
|
|
207
207
|
@if (userAndRoleLoading()) {
|
|
208
208
|
<span class="loading"><i>.</i><i>.</i><i>.</i></span>
|
|
209
209
|
}
|
|
@@ -212,7 +212,7 @@ class OrganizationRendererComponent extends AbstractRendererComponent {
|
|
|
212
212
|
}
|
|
213
213
|
`, isInline: true, styles: [":host{padding:var(--tile-slot-padding);display:var(--yuv-renderer-display, flex);gap:var(--ymt-spacing-xs);align-items:center;@keyframes pulse{0%,80%,to{opacity:.3;transform:scale(1)}40%{opacity:1;transform:scale(1.2)}}}:host .node{display:flex;flex-flow:row nowrap;align-items:center;border:1px solid var(--ymt-outline);border-radius:var(--ymt-corner-xs);padding:0 var(--ymt-spacing-xs);font:var(--ymt-font-body-subtle);white-space:nowrap}:host .loading i{animation:pulse 1.4s ease-in-out infinite both}:host .loading i:nth-child(1){animation-delay:-.32s}:host .loading i:nth-child(2){animation-delay:-.16s}:host .loading i:nth-child(3){animation-delay:0s}\n"] }); }
|
|
214
214
|
}
|
|
215
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
215
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: OrganizationRendererComponent, decorators: [{
|
|
216
216
|
type: Component,
|
|
217
217
|
args: [{ selector: 'yuv-organization-renderer', template: `
|
|
218
218
|
@if (userAndRoleLoading()) {
|
|
@@ -225,10 +225,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
225
225
|
}] });
|
|
226
226
|
|
|
227
227
|
class StringRendererComponent extends AbstractRendererComponent {
|
|
228
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
229
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
228
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: StringRendererComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
229
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: StringRendererComponent, isStandalone: true, selector: "yuv-string-renderer", usesInheritance: true, ngImport: i0, template: `{{ value() }}`, isInline: true, changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
|
230
230
|
}
|
|
231
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
231
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: StringRendererComponent, decorators: [{
|
|
232
232
|
type: Component,
|
|
233
233
|
args: [{ selector: 'yuv-string-renderer', template: `{{ value() }}`, changeDetection: ChangeDetectionStrategy.OnPush }]
|
|
234
234
|
}] });
|
|
@@ -246,7 +246,7 @@ class TableRendererComponent extends AbstractRendererComponent {
|
|
|
246
246
|
key: item.propertyName,
|
|
247
247
|
label: this.#system.getLocalizedLabel(`${item.propertyName}`) || item.propertyName
|
|
248
248
|
})))
|
|
249
|
-
], ...(ngDevMode ? [{ debugName: "tableHeaders" }] : []));
|
|
249
|
+
], ...(ngDevMode ? [{ debugName: "tableHeaders" }] : /* istanbul ignore next */ []));
|
|
250
250
|
this.tableData = computed(() => {
|
|
251
251
|
const data = this.value() || [];
|
|
252
252
|
return (data.length > 10 ? data.slice(0, 10) : data).map((row, rowIndex) => row.map((item, index) => ({
|
|
@@ -254,11 +254,11 @@ class TableRendererComponent extends AbstractRendererComponent {
|
|
|
254
254
|
...item,
|
|
255
255
|
value: this.#cellValue(item)
|
|
256
256
|
})));
|
|
257
|
-
}, ...(ngDevMode ? [{ debugName: "tableData" }] : []));
|
|
257
|
+
}, ...(ngDevMode ? [{ debugName: "tableData" }] : /* istanbul ignore next */ []));
|
|
258
258
|
this.reducedData = computed(() => {
|
|
259
259
|
const data = this.value() || [];
|
|
260
260
|
return data.length > 10;
|
|
261
|
-
}, ...(ngDevMode ? [{ debugName: "reducedData" }] : []));
|
|
261
|
+
}, ...(ngDevMode ? [{ debugName: "reducedData" }] : /* istanbul ignore next */ []));
|
|
262
262
|
}
|
|
263
263
|
#system;
|
|
264
264
|
#decimalPipe;
|
|
@@ -279,8 +279,8 @@ class TableRendererComponent extends AbstractRendererComponent {
|
|
|
279
279
|
const item = (row || []).find((i) => i.propertyName === key);
|
|
280
280
|
return item ? item.value : '';
|
|
281
281
|
}
|
|
282
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
283
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "
|
|
282
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TableRendererComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
283
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "21.2.9", type: TableRendererComponent, isStandalone: true, selector: "yuv-table-renderer", providers: [DecimalPipe, DatePipe], usesInheritance: true, ngImport: i0, template: `
|
|
284
284
|
<div class="table-container">
|
|
285
285
|
<table>
|
|
286
286
|
<thead>
|
|
@@ -306,7 +306,7 @@ class TableRendererComponent extends AbstractRendererComponent {
|
|
|
306
306
|
</div>
|
|
307
307
|
`, isInline: true, styles: [":host{display:flex;padding:var(--tile-slot-padding);width:100%}.table-container{width:100%;overflow-x:auto;max-width:100%}table{width:100%;border-collapse:collapse;min-width:400px}th,td{padding:8px;text-align:left;border-bottom:1px solid var(--ymt-outline-variant);word-break:normal}th{background-color:var(--object-summary-section-background, var(--ymt-surface));font-weight:700}tr:hover{background-color:var(--ymt-hover-background)}\n"], dependencies: [{ kind: "pipe", type: TranslatePipe, name: "translate" }] }); }
|
|
308
308
|
}
|
|
309
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
309
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: TableRendererComponent, decorators: [{
|
|
310
310
|
type: Component,
|
|
311
311
|
args: [{ selector: 'yuv-table-renderer', standalone: true, imports: [TranslatePipe], template: `
|
|
312
312
|
<div class="table-container">
|
|
@@ -336,10 +336,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.19", ngImpo
|
|
|
336
336
|
}] });
|
|
337
337
|
|
|
338
338
|
class UnknownRendererComponent extends AbstractRendererComponent {
|
|
339
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
340
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "
|
|
339
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: UnknownRendererComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
|
340
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "21.2.9", type: UnknownRendererComponent, isStandalone: true, selector: "yuv-unknown-renderer", usesInheritance: true, ngImport: i0, template: '{{value()}}', isInline: true, styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }); }
|
|
341
341
|
}
|
|
342
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
342
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: UnknownRendererComponent, decorators: [{
|
|
343
343
|
type: Component,
|
|
344
344
|
args: [{ selector: 'yuv-unknown-renderer', template: '{{value()}}', styles: [":host{display:inline-block;padding:var(--tile-slot-padding)}\n"] }]
|
|
345
345
|
}] });
|
|
@@ -355,7 +355,7 @@ class RendererService {
|
|
|
355
355
|
#renderers;
|
|
356
356
|
constructor() {
|
|
357
357
|
this.system = inject(SystemService);
|
|
358
|
-
this.#renderers = signal({}, ...(ngDevMode ? [{ debugName: "#renderers" }] : []));
|
|
358
|
+
this.#renderers = signal({}, ...(ngDevMode ? [{ debugName: "#renderers" }] : /* istanbul ignore next */ []));
|
|
359
359
|
const initialRenderers = {
|
|
360
360
|
integer: IntegerRendererComponent,
|
|
361
361
|
decimal: DecimalRendererComponent,
|
|
@@ -410,10 +410,10 @@ class RendererService {
|
|
|
410
410
|
typeName && k.push(typeName);
|
|
411
411
|
return k.join('-');
|
|
412
412
|
}
|
|
413
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
414
|
-
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "
|
|
413
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RendererService, deps: [], target: i0.ɵɵFactoryTarget.Injectable }); }
|
|
414
|
+
static { this.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RendererService, providedIn: 'root' }); }
|
|
415
415
|
}
|
|
416
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
416
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RendererService, decorators: [{
|
|
417
417
|
type: Injectable,
|
|
418
418
|
args: [{
|
|
419
419
|
providedIn: 'root'
|
|
@@ -427,7 +427,7 @@ class RendererDirective {
|
|
|
427
427
|
constructor() {
|
|
428
428
|
this.#rendererService = inject(RendererService);
|
|
429
429
|
this.#containerRef = inject(ViewContainerRef);
|
|
430
|
-
this.yuvRenderer = input(undefined, ...(ngDevMode ? [{ debugName: "yuvRenderer" }] : []));
|
|
430
|
+
this.yuvRenderer = input(undefined, ...(ngDevMode ? [{ debugName: "yuvRenderer" }] : /* istanbul ignore next */ []));
|
|
431
431
|
this.#yuvRendererEffect = effect(() => {
|
|
432
432
|
const i = this.yuvRenderer();
|
|
433
433
|
if (i && !this.#alreadyRendered(i)) {
|
|
@@ -447,7 +447,7 @@ class RendererDirective {
|
|
|
447
447
|
this.#containerRef.clear();
|
|
448
448
|
this.#rendererInput = undefined;
|
|
449
449
|
}
|
|
450
|
-
}, ...(ngDevMode ? [{ debugName: "#yuvRendererEffect" }] : []));
|
|
450
|
+
}, ...(ngDevMode ? [{ debugName: "#yuvRendererEffect" }] : /* istanbul ignore next */ []));
|
|
451
451
|
}
|
|
452
452
|
#rendererService;
|
|
453
453
|
#containerRef;
|
|
@@ -456,10 +456,10 @@ class RendererDirective {
|
|
|
456
456
|
#alreadyRendered(i) {
|
|
457
457
|
return !!this.#rendererInput && JSON.stringify(this.#rendererInput) === JSON.stringify(i);
|
|
458
458
|
}
|
|
459
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "
|
|
460
|
-
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "
|
|
459
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RendererDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive }); }
|
|
460
|
+
static { this.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "21.2.9", type: RendererDirective, isStandalone: true, selector: "[yuvRenderer]", inputs: { yuvRenderer: { classPropertyName: "yuvRenderer", publicName: "yuvRenderer", isSignal: true, isRequired: false, transformFunction: null } }, ngImport: i0 }); }
|
|
461
461
|
}
|
|
462
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "
|
|
462
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "21.2.9", ngImport: i0, type: RendererDirective, decorators: [{
|
|
463
463
|
type: Directive,
|
|
464
464
|
args: [{
|
|
465
465
|
selector: '[yuvRenderer]',
|