@ngneers/controls 0.0.1-next.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/fesm2022/ngneers-controls-accordion.mjs +234 -0
- package/fesm2022/ngneers-controls-accordion.mjs.map +1 -0
- package/fesm2022/ngneers-controls-api-ng.mjs +959 -0
- package/fesm2022/ngneers-controls-api-ng.mjs.map +1 -0
- package/fesm2022/ngneers-controls-api-resize.mjs +712 -0
- package/fesm2022/ngneers-controls-api-resize.mjs.map +1 -0
- package/fesm2022/ngneers-controls-api.mjs +347 -0
- package/fesm2022/ngneers-controls-api.mjs.map +1 -0
- package/fesm2022/ngneers-controls-avatar.mjs +77 -0
- package/fesm2022/ngneers-controls-avatar.mjs.map +1 -0
- package/fesm2022/ngneers-controls-base.mjs +620 -0
- package/fesm2022/ngneers-controls-base.mjs.map +1 -0
- package/fesm2022/ngneers-controls-breadcrumb.mjs +100 -0
- package/fesm2022/ngneers-controls-breadcrumb.mjs.map +1 -0
- package/fesm2022/ngneers-controls-button-group.mjs +110 -0
- package/fesm2022/ngneers-controls-button-group.mjs.map +1 -0
- package/fesm2022/ngneers-controls-button.mjs +83 -0
- package/fesm2022/ngneers-controls-button.mjs.map +1 -0
- package/fesm2022/ngneers-controls-calendar-time-CJT5AFlA.mjs +74 -0
- package/fesm2022/ngneers-controls-calendar-time-CJT5AFlA.mjs.map +1 -0
- package/fesm2022/ngneers-controls-calendar.mjs +801 -0
- package/fesm2022/ngneers-controls-calendar.mjs.map +1 -0
- package/fesm2022/ngneers-controls-checkbox.mjs +63 -0
- package/fesm2022/ngneers-controls-checkbox.mjs.map +1 -0
- package/fesm2022/ngneers-controls-chip.mjs +55 -0
- package/fesm2022/ngneers-controls-chip.mjs.map +1 -0
- package/fesm2022/ngneers-controls-default-icons.mjs +82 -0
- package/fesm2022/ngneers-controls-default-icons.mjs.map +1 -0
- package/fesm2022/ngneers-controls-defer.mjs +72 -0
- package/fesm2022/ngneers-controls-defer.mjs.map +1 -0
- package/fesm2022/ngneers-controls-dialog.mjs +407 -0
- package/fesm2022/ngneers-controls-dialog.mjs.map +1 -0
- package/fesm2022/ngneers-controls-directives.mjs +498 -0
- package/fesm2022/ngneers-controls-directives.mjs.map +1 -0
- package/fesm2022/ngneers-controls-drawer.mjs +271 -0
- package/fesm2022/ngneers-controls-drawer.mjs.map +1 -0
- package/fesm2022/ngneers-controls-edit-inplace.mjs +127 -0
- package/fesm2022/ngneers-controls-edit-inplace.mjs.map +1 -0
- package/fesm2022/ngneers-controls-errors.mjs +329 -0
- package/fesm2022/ngneers-controls-errors.mjs.map +1 -0
- package/fesm2022/ngneers-controls-filter.mjs +708 -0
- package/fesm2022/ngneers-controls-filter.mjs.map +1 -0
- package/fesm2022/ngneers-controls-hint.mjs +153 -0
- package/fesm2022/ngneers-controls-hint.mjs.map +1 -0
- package/fesm2022/ngneers-controls-i18n-translations-de.mjs +170 -0
- package/fesm2022/ngneers-controls-i18n-translations-de.mjs.map +1 -0
- package/fesm2022/ngneers-controls-i18n-translations-en.mjs +170 -0
- package/fesm2022/ngneers-controls-i18n-translations-en.mjs.map +1 -0
- package/fesm2022/ngneers-controls-i18n.mjs +57 -0
- package/fesm2022/ngneers-controls-i18n.mjs.map +1 -0
- package/fesm2022/ngneers-controls-icon.mjs +195 -0
- package/fesm2022/ngneers-controls-icon.mjs.map +1 -0
- package/fesm2022/ngneers-controls-inplace.mjs +150 -0
- package/fesm2022/ngneers-controls-inplace.mjs.map +1 -0
- package/fesm2022/ngneers-controls-input-field.mjs +165 -0
- package/fesm2022/ngneers-controls-input-field.mjs.map +1 -0
- package/fesm2022/ngneers-controls-input.mjs +72 -0
- package/fesm2022/ngneers-controls-input.mjs.map +1 -0
- package/fesm2022/ngneers-controls-item-view.mjs +473 -0
- package/fesm2022/ngneers-controls-item-view.mjs.map +1 -0
- package/fesm2022/ngneers-controls-list-box.mjs +281 -0
- package/fesm2022/ngneers-controls-list-box.mjs.map +1 -0
- package/fesm2022/ngneers-controls-mask-input.mjs +888 -0
- package/fesm2022/ngneers-controls-mask-input.mjs.map +1 -0
- package/fesm2022/ngneers-controls-menu.mjs +371 -0
- package/fesm2022/ngneers-controls-menu.mjs.map +1 -0
- package/fesm2022/ngneers-controls-message.mjs +30 -0
- package/fesm2022/ngneers-controls-message.mjs.map +1 -0
- package/fesm2022/ngneers-controls-number-input.mjs +366 -0
- package/fesm2022/ngneers-controls-number-input.mjs.map +1 -0
- package/fesm2022/ngneers-controls-paginator.mjs +129 -0
- package/fesm2022/ngneers-controls-paginator.mjs.map +1 -0
- package/fesm2022/ngneers-controls-popover.mjs +215 -0
- package/fesm2022/ngneers-controls-popover.mjs.map +1 -0
- package/fesm2022/ngneers-controls-progress.mjs +98 -0
- package/fesm2022/ngneers-controls-progress.mjs.map +1 -0
- package/fesm2022/ngneers-controls-radio.mjs +152 -0
- package/fesm2022/ngneers-controls-radio.mjs.map +1 -0
- package/fesm2022/ngneers-controls-roving-focus.mjs +323 -0
- package/fesm2022/ngneers-controls-roving-focus.mjs.map +1 -0
- package/fesm2022/ngneers-controls-scroll-shadow.mjs +65 -0
- package/fesm2022/ngneers-controls-scroll-shadow.mjs.map +1 -0
- package/fesm2022/ngneers-controls-scroller.mjs +308 -0
- package/fesm2022/ngneers-controls-scroller.mjs.map +1 -0
- package/fesm2022/ngneers-controls-select-button.mjs +58 -0
- package/fesm2022/ngneers-controls-select-button.mjs.map +1 -0
- package/fesm2022/ngneers-controls-select.mjs +417 -0
- package/fesm2022/ngneers-controls-select.mjs.map +1 -0
- package/fesm2022/ngneers-controls-slider.mjs +167 -0
- package/fesm2022/ngneers-controls-slider.mjs.map +1 -0
- package/fesm2022/ngneers-controls-snackbar.mjs +414 -0
- package/fesm2022/ngneers-controls-snackbar.mjs.map +1 -0
- package/fesm2022/ngneers-controls-spin-buttons.mjs +126 -0
- package/fesm2022/ngneers-controls-spin-buttons.mjs.map +1 -0
- package/fesm2022/ngneers-controls-spinner.mjs +184 -0
- package/fesm2022/ngneers-controls-spinner.mjs.map +1 -0
- package/fesm2022/ngneers-controls-splitter.mjs +604 -0
- package/fesm2022/ngneers-controls-splitter.mjs.map +1 -0
- package/fesm2022/ngneers-controls-state.mjs +185 -0
- package/fesm2022/ngneers-controls-state.mjs.map +1 -0
- package/fesm2022/ngneers-controls-switch.mjs +39 -0
- package/fesm2022/ngneers-controls-switch.mjs.map +1 -0
- package/fesm2022/ngneers-controls-table.mjs +2634 -0
- package/fesm2022/ngneers-controls-table.mjs.map +1 -0
- package/fesm2022/ngneers-controls-tabs.mjs +336 -0
- package/fesm2022/ngneers-controls-tabs.mjs.map +1 -0
- package/fesm2022/ngneers-controls-tag.mjs +30 -0
- package/fesm2022/ngneers-controls-tag.mjs.map +1 -0
- package/fesm2022/ngneers-controls-toast.mjs +350 -0
- package/fesm2022/ngneers-controls-toast.mjs.map +1 -0
- package/fesm2022/ngneers-controls-toggle-button.mjs +70 -0
- package/fesm2022/ngneers-controls-toggle-button.mjs.map +1 -0
- package/fesm2022/ngneers-controls-tooltip.mjs +506 -0
- package/fesm2022/ngneers-controls-tooltip.mjs.map +1 -0
- package/fesm2022/ngneers-controls-tree.mjs +599 -0
- package/fesm2022/ngneers-controls-tree.mjs.map +1 -0
- package/fesm2022/ngneers-controls-upload.mjs +377 -0
- package/fesm2022/ngneers-controls-upload.mjs.map +1 -0
- package/fesm2022/ngneers-controls-utils-ng.mjs +411 -0
- package/fesm2022/ngneers-controls-utils-ng.mjs.map +1 -0
- package/fesm2022/ngneers-controls-utils.mjs +261 -0
- package/fesm2022/ngneers-controls-utils.mjs.map +1 -0
- package/fesm2022/ngneers-controls.mjs +6 -0
- package/fesm2022/ngneers-controls.mjs.map +1 -0
- package/package.json +302 -0
- package/types/ngneers-controls-accordion.d.ts +139 -0
- package/types/ngneers-controls-api-ng.d.ts +364 -0
- package/types/ngneers-controls-api-resize.d.ts +318 -0
- package/types/ngneers-controls-api.d.ts +145 -0
- package/types/ngneers-controls-avatar.d.ts +54 -0
- package/types/ngneers-controls-base.d.ts +277 -0
- package/types/ngneers-controls-breadcrumb.d.ts +272 -0
- package/types/ngneers-controls-button-group.d.ts +46 -0
- package/types/ngneers-controls-button.d.ts +48 -0
- package/types/ngneers-controls-calendar.d.ts +466 -0
- package/types/ngneers-controls-checkbox.d.ts +40 -0
- package/types/ngneers-controls-chip.d.ts +202 -0
- package/types/ngneers-controls-default-icons.d.ts +5 -0
- package/types/ngneers-controls-defer.d.ts +48 -0
- package/types/ngneers-controls-dialog.d.ts +399 -0
- package/types/ngneers-controls-directives.d.ts +171 -0
- package/types/ngneers-controls-drawer.d.ts +308 -0
- package/types/ngneers-controls-edit-inplace.d.ts +263 -0
- package/types/ngneers-controls-errors.d.ts +155 -0
- package/types/ngneers-controls-filter.d.ts +609 -0
- package/types/ngneers-controls-hint.d.ts +88 -0
- package/types/ngneers-controls-i18n-translations-de.d.ts +164 -0
- package/types/ngneers-controls-i18n-translations-en.d.ts +164 -0
- package/types/ngneers-controls-i18n.d.ts +186 -0
- package/types/ngneers-controls-icon.d.ts +68 -0
- package/types/ngneers-controls-inplace.d.ts +98 -0
- package/types/ngneers-controls-input-field.d.ts +248 -0
- package/types/ngneers-controls-input.d.ts +30 -0
- package/types/ngneers-controls-item-view.d.ts +215 -0
- package/types/ngneers-controls-list-box.d.ts +334 -0
- package/types/ngneers-controls-mask-input.d.ts +434 -0
- package/types/ngneers-controls-menu.d.ts +192 -0
- package/types/ngneers-controls-message.d.ts +21 -0
- package/types/ngneers-controls-number-input.d.ts +146 -0
- package/types/ngneers-controls-paginator.d.ts +255 -0
- package/types/ngneers-controls-popover.d.ts +116 -0
- package/types/ngneers-controls-progress.d.ts +49 -0
- package/types/ngneers-controls-radio.d.ts +91 -0
- package/types/ngneers-controls-roving-focus.d.ts +107 -0
- package/types/ngneers-controls-scroll-shadow.d.ts +25 -0
- package/types/ngneers-controls-scroller.d.ts +151 -0
- package/types/ngneers-controls-select-button.d.ts +51 -0
- package/types/ngneers-controls-select.d.ts +409 -0
- package/types/ngneers-controls-slider.d.ts +57 -0
- package/types/ngneers-controls-snackbar.d.ts +330 -0
- package/types/ngneers-controls-spin-buttons.d.ts +69 -0
- package/types/ngneers-controls-spinner.d.ts +117 -0
- package/types/ngneers-controls-splitter.d.ts +465 -0
- package/types/ngneers-controls-state.d.ts +102 -0
- package/types/ngneers-controls-switch.d.ts +18 -0
- package/types/ngneers-controls-table.d.ts +3127 -0
- package/types/ngneers-controls-tabs.d.ts +118 -0
- package/types/ngneers-controls-tag.d.ts +21 -0
- package/types/ngneers-controls-toast.d.ts +298 -0
- package/types/ngneers-controls-toggle-button.d.ts +48 -0
- package/types/ngneers-controls-tooltip.d.ts +189 -0
- package/types/ngneers-controls-tree.d.ts +409 -0
- package/types/ngneers-controls-upload.d.ts +347 -0
- package/types/ngneers-controls-utils-ng.d.ts +129 -0
- package/types/ngneers-controls-utils.d.ts +130 -0
- package/types/ngneers-controls.d.ts +2 -0
|
@@ -0,0 +1,473 @@
|
|
|
1
|
+
import { NgTemplateOutlet } from '@angular/common';
|
|
2
|
+
import * as i0 from '@angular/core';
|
|
3
|
+
import { input, contentChild, computed, viewChild, Directive, booleanAttribute, signal, inject, viewChildren, Component } from '@angular/core';
|
|
4
|
+
import { templateTypesFn, Platform, elementSizeSignal, elementsSizesSignal, NgnTemplate } from '@ngneers/controls/api/ng';
|
|
5
|
+
import { NgnBase, NgnPt, provideSelf } from '@ngneers/controls/base';
|
|
6
|
+
import { NgnIcon } from '@ngneers/controls/icon';
|
|
7
|
+
import { NgnError, areArraysDeepEqual, throwExp } from '@ngneers/controls/utils';
|
|
8
|
+
import { itemViewControlTemplate } from '@ngneers/controls-themes/templates/item-view';
|
|
9
|
+
|
|
10
|
+
/**
|
|
11
|
+
* Returns the *priority order* in which items are considered for keeping visible.
|
|
12
|
+
* The algorithm is greedy: it walks this list until items no longer fit.
|
|
13
|
+
* Each entry also carries a `location` which describes which overflow indicator would own the item.
|
|
14
|
+
*/
|
|
15
|
+
function getItemOverflowCheckOrder(params) {
|
|
16
|
+
const count = Math.max(0, Math.floor(params.count));
|
|
17
|
+
if (count === 0) {
|
|
18
|
+
return [];
|
|
19
|
+
}
|
|
20
|
+
const freezeCount = Math.min(Math.max(0, Math.floor(params.freezeCount)), count);
|
|
21
|
+
switch (params.strategy) {
|
|
22
|
+
case 'end': {
|
|
23
|
+
const arr = Array.from({ length: count - freezeCount }, (_, i) => i);
|
|
24
|
+
arr.splice(1, 0, ...Array.from({ length: freezeCount }, (_, i) => count - freezeCount + i));
|
|
25
|
+
return arr.map(index => ({ index, location: 'end' }));
|
|
26
|
+
}
|
|
27
|
+
case 'start': {
|
|
28
|
+
const arr = Array.from({ length: count - freezeCount }, (_, i) => count - i - 1);
|
|
29
|
+
arr.splice(1, 0, ...Array.from({ length: freezeCount }, (_, i) => i));
|
|
30
|
+
return arr.map(index => ({ index, location: 'start' }));
|
|
31
|
+
}
|
|
32
|
+
case 'center': {
|
|
33
|
+
// "Center" overflows symmetrically: keep alternating left/right items first.
|
|
34
|
+
const order = [];
|
|
35
|
+
let leftIndex = 0;
|
|
36
|
+
let rightIndex = count - 1;
|
|
37
|
+
for (let i = 0; i < count; i++) {
|
|
38
|
+
if (i % 2 === 0) {
|
|
39
|
+
order.push({ index: leftIndex++, location: 'center' });
|
|
40
|
+
}
|
|
41
|
+
else {
|
|
42
|
+
order.push({ index: rightIndex--, location: 'center' });
|
|
43
|
+
}
|
|
44
|
+
}
|
|
45
|
+
return order;
|
|
46
|
+
}
|
|
47
|
+
case 'aroundIndex': {
|
|
48
|
+
// "AroundIndex" keeps the chosen item visible, then expands outward on both sides.
|
|
49
|
+
// FreezeCount applies to both ends; we must ensure the chosen index stays in-bounds.
|
|
50
|
+
const minIndex = Math.min(freezeCount, count - 1);
|
|
51
|
+
const maxIndex = Math.max(minIndex, count - freezeCount - 1);
|
|
52
|
+
const index = Math.min(Math.max(minIndex, Math.floor(params.strategyIndex)), maxIndex);
|
|
53
|
+
const targetMiddleCount = Math.max(0, count - freezeCount * 2);
|
|
54
|
+
const order = targetMiddleCount > 0 ? [{ index, location: 'start' }] : [];
|
|
55
|
+
let offset = 1;
|
|
56
|
+
while (order.length < targetMiddleCount) {
|
|
57
|
+
if (index - offset >= freezeCount) {
|
|
58
|
+
order.push({ index: index - offset, location: 'start' });
|
|
59
|
+
}
|
|
60
|
+
if (order.length >= targetMiddleCount) {
|
|
61
|
+
break;
|
|
62
|
+
}
|
|
63
|
+
if (index + offset < count - freezeCount) {
|
|
64
|
+
order.push({
|
|
65
|
+
index: index + offset,
|
|
66
|
+
location: 'end',
|
|
67
|
+
});
|
|
68
|
+
}
|
|
69
|
+
offset++;
|
|
70
|
+
}
|
|
71
|
+
// Insert frozen items near the front of the list so they are kept visible.
|
|
72
|
+
// Keep the insertion ordering consistent with the component implementation.
|
|
73
|
+
order.splice(1, 0, ...Array.from({ length: freezeCount }, (_, i) => ({ index: i, location: 'start' })));
|
|
74
|
+
order.splice(1, 0, ...Array.from({ length: freezeCount }, (_, i) => ({
|
|
75
|
+
index: count - freezeCount + i,
|
|
76
|
+
location: 'end',
|
|
77
|
+
})));
|
|
78
|
+
return order;
|
|
79
|
+
}
|
|
80
|
+
}
|
|
81
|
+
}
|
|
82
|
+
function calculateItemViewLayout(params) {
|
|
83
|
+
const count = Math.max(0, Math.floor(params.count));
|
|
84
|
+
const containerWidth = Math.max(0, params.containerWidth);
|
|
85
|
+
const overflowItemWidth = Math.max(0, params.overflowItemWidth);
|
|
86
|
+
const gap = Math.max(0, params.gap);
|
|
87
|
+
const maxOverflowIndicatorCount = params.strategy === 'aroundIndex' ? 2 : 1;
|
|
88
|
+
const overflowCheckOrder = getItemOverflowCheckOrder({
|
|
89
|
+
count,
|
|
90
|
+
strategy: params.strategy,
|
|
91
|
+
freezeCount: params.freezeCount,
|
|
92
|
+
strategyIndex: params.strategyIndex,
|
|
93
|
+
});
|
|
94
|
+
const getVisibleItemCount = (reservedWidth) => {
|
|
95
|
+
let visibleItemCount = 0;
|
|
96
|
+
let totalWidth = Math.max(0, reservedWidth);
|
|
97
|
+
for (let i = 0; i < overflowCheckOrder.length; i++) {
|
|
98
|
+
const index = overflowCheckOrder[i]?.index;
|
|
99
|
+
if (index === undefined) {
|
|
100
|
+
throw new NgnError('calculateItemViewLayout', 'Invalid overflow check order: index is undefined');
|
|
101
|
+
}
|
|
102
|
+
const itemWidth = params.itemWidths[index] ?? 0;
|
|
103
|
+
const itemGap = i > 0 ? gap : 0;
|
|
104
|
+
const newWidth = totalWidth + itemWidth + itemGap;
|
|
105
|
+
if (newWidth <= containerWidth) {
|
|
106
|
+
totalWidth = newWidth;
|
|
107
|
+
visibleItemCount++;
|
|
108
|
+
}
|
|
109
|
+
else {
|
|
110
|
+
break;
|
|
111
|
+
}
|
|
112
|
+
}
|
|
113
|
+
return visibleItemCount;
|
|
114
|
+
};
|
|
115
|
+
let overflowIndicatorCount = 0;
|
|
116
|
+
let previousOverflowIndicatorCount = -1;
|
|
117
|
+
let remainingItemOrders = overflowCheckOrder;
|
|
118
|
+
let renderedItemOrders = [];
|
|
119
|
+
let overflowIndicatorLocations = new Set();
|
|
120
|
+
// Fixed-point iteration:
|
|
121
|
+
// 1) We blindly assume that we don't need any overflow indicators for the first pass.
|
|
122
|
+
// 2) We see how many items fit with that assumption.
|
|
123
|
+
// 3) The remaining items define which overflow locations exist (start/end/center).
|
|
124
|
+
// 4) That determines the *actual* number of indicators.
|
|
125
|
+
// Repeat until the indicator count stabilizes.
|
|
126
|
+
while (overflowIndicatorCount !== previousOverflowIndicatorCount) {
|
|
127
|
+
previousOverflowIndicatorCount = overflowIndicatorCount;
|
|
128
|
+
const initialVisibleItemCount = getVisibleItemCount(overflowIndicatorCount * (overflowItemWidth + gap));
|
|
129
|
+
remainingItemOrders = overflowCheckOrder
|
|
130
|
+
.slice(initialVisibleItemCount)
|
|
131
|
+
.toSorted((a, b) => a.index - b.index);
|
|
132
|
+
overflowIndicatorLocations = new Set(remainingItemOrders.map(i => i.location));
|
|
133
|
+
overflowIndicatorCount = overflowIndicatorLocations.size;
|
|
134
|
+
const finalVisibleItemCount = getVisibleItemCount(overflowIndicatorCount * (overflowItemWidth + gap));
|
|
135
|
+
renderedItemOrders = overflowCheckOrder.slice(0, finalVisibleItemCount);
|
|
136
|
+
}
|
|
137
|
+
['start', 'end'].forEach(location => {
|
|
138
|
+
// Optimization: if all overflowed items for a side would fit inside the overflow indicator width,
|
|
139
|
+
// we can render them inline and drop that overflow indicator entirely.
|
|
140
|
+
// This is only applicable for start/end & the aroundIndex strategy. Center has no "adjacent" insertion point.
|
|
141
|
+
if (overflowIndicatorLocations.has(location)) {
|
|
142
|
+
const itemsWithIndices = remainingItemOrders
|
|
143
|
+
.map((x, i) => [i + renderedItemOrders.length, x])
|
|
144
|
+
.filter(x => x[1].location === location);
|
|
145
|
+
const itemSizes = itemsWithIndices.map(i => params.itemWidths[i[1].index] ?? 0);
|
|
146
|
+
const itemsTotalSize = itemSizes.reduce((a, b) => a + b, 0);
|
|
147
|
+
if (itemsTotalSize <= overflowItemWidth) {
|
|
148
|
+
overflowIndicatorLocations.delete(location);
|
|
149
|
+
renderedItemOrders = [...renderedItemOrders, ...itemsWithIndices.map(i => i[1])];
|
|
150
|
+
overflowIndicatorCount--;
|
|
151
|
+
}
|
|
152
|
+
}
|
|
153
|
+
});
|
|
154
|
+
// Keep result consistent after the optimization pass.
|
|
155
|
+
const renderedIndices = new Set(renderedItemOrders.map(x => x.index));
|
|
156
|
+
remainingItemOrders = overflowCheckOrder
|
|
157
|
+
.filter(x => !renderedIndices.has(x.index))
|
|
158
|
+
.toSorted((a, b) => a.index - b.index);
|
|
159
|
+
// Calculate the insertion indices for the overflow indicators.
|
|
160
|
+
const overflowIndicatorIndices = (() => {
|
|
161
|
+
if (overflowIndicatorCount === 0) {
|
|
162
|
+
return [null];
|
|
163
|
+
}
|
|
164
|
+
else if (maxOverflowIndicatorCount === 1 && overflowIndicatorCount === 1) {
|
|
165
|
+
return [remainingItemOrders[0]?.index ?? null];
|
|
166
|
+
}
|
|
167
|
+
else if (maxOverflowIndicatorCount === 2) {
|
|
168
|
+
const res = [];
|
|
169
|
+
const firstEndIndex = remainingItemOrders.find(x => x.location === 'end')?.index;
|
|
170
|
+
const lastEndIndex = remainingItemOrders.findLast(x => x.location === 'end')?.index;
|
|
171
|
+
const firstStartIndex = remainingItemOrders.find(x => x.location === 'start')?.index;
|
|
172
|
+
const lastStartIndex = remainingItemOrders.findLast(x => x.location === 'start')?.index;
|
|
173
|
+
if (overflowIndicatorLocations.has('start')) {
|
|
174
|
+
const startIndex = firstStartIndex ?? firstEndIndex ?? 0;
|
|
175
|
+
res.push(startIndex + Math.min(Math.max(0, Math.floor(params.freezeCount)), count));
|
|
176
|
+
}
|
|
177
|
+
if (overflowIndicatorLocations.has('end')) {
|
|
178
|
+
const endIndex = lastEndIndex ? lastEndIndex + 1 : (lastStartIndex ?? 0);
|
|
179
|
+
res.push(endIndex);
|
|
180
|
+
}
|
|
181
|
+
return res;
|
|
182
|
+
}
|
|
183
|
+
return [];
|
|
184
|
+
})();
|
|
185
|
+
return {
|
|
186
|
+
checkOrder: overflowCheckOrder,
|
|
187
|
+
renderedItemOrders,
|
|
188
|
+
remainingItemOrders,
|
|
189
|
+
overflowIndicatorCount,
|
|
190
|
+
overflowIndicatorIndices,
|
|
191
|
+
};
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
class ItemViewTemplates extends NgnBase {
|
|
195
|
+
/**
|
|
196
|
+
* The template to be used for rendering each item in the item view.
|
|
197
|
+
* Can also be set using the `item` content child.
|
|
198
|
+
*/
|
|
199
|
+
templateItem = input(null, /* @ts-ignore */
|
|
200
|
+
...(ngDevMode ? [{ debugName: "templateItem" }] : /* istanbul ignore next */ []));
|
|
201
|
+
_userItemTemplate = contentChild('item', /* @ts-ignore */
|
|
202
|
+
...(ngDevMode ? [{ debugName: "_userItemTemplate" }] : /* istanbul ignore next */ []));
|
|
203
|
+
itemTemplate = computed(() => this._userItemTemplate() ?? this.templateItem(), /* @ts-ignore */
|
|
204
|
+
...(ngDevMode ? [{ debugName: "itemTemplate" }] : /* istanbul ignore next */ []));
|
|
205
|
+
// Separator template
|
|
206
|
+
_defaultSeparatorTemplate = viewChild.required('defaultSeparatorTemplate');
|
|
207
|
+
_userSeparatorTemplate = contentChild('separator', /* @ts-ignore */
|
|
208
|
+
...(ngDevMode ? [{ debugName: "_userSeparatorTemplate" }] : /* istanbul ignore next */ []));
|
|
209
|
+
/**
|
|
210
|
+
* Set a custom template for the separators between items.
|
|
211
|
+
* Can also be set using an `<ng-template>` element with `#separator` template reference variable.
|
|
212
|
+
*/
|
|
213
|
+
templateSeparator = input(null, /* @ts-ignore */
|
|
214
|
+
...(ngDevMode ? [{ debugName: "templateSeparator" }] : /* istanbul ignore next */ []));
|
|
215
|
+
separatorTemplate = computed(() => this._userSeparatorTemplate() ?? this.templateSeparator() ?? this._defaultSeparatorTemplate(), /* @ts-ignore */
|
|
216
|
+
...(ngDevMode ? [{ debugName: "separatorTemplate" }] : /* istanbul ignore next */ []));
|
|
217
|
+
// Overflow item template
|
|
218
|
+
_defaultOverflowItemTemplate = viewChild.required('defaultOverflowItemTemplate');
|
|
219
|
+
_userOverflowItemTemplate = contentChild('overflow', /* @ts-ignore */
|
|
220
|
+
...(ngDevMode ? [{ debugName: "_userOverflowItemTemplate" }] : /* istanbul ignore next */ []));
|
|
221
|
+
/**
|
|
222
|
+
* Set a custom template for the overflow item.
|
|
223
|
+
* Can also be set using an `<ng-template>` element with `#overflow` template reference variable.
|
|
224
|
+
*/
|
|
225
|
+
templateOverflow = input(null, /* @ts-ignore */
|
|
226
|
+
...(ngDevMode ? [{ debugName: "templateOverflow" }] : /* istanbul ignore next */ []));
|
|
227
|
+
overflowTemplate = computed(() => this._userOverflowItemTemplate() ??
|
|
228
|
+
this.templateOverflow() ??
|
|
229
|
+
this._defaultOverflowItemTemplate(), /* @ts-ignore */
|
|
230
|
+
...(ngDevMode ? [{ debugName: "overflowTemplate" }] : /* istanbul ignore next */ []));
|
|
231
|
+
/**
|
|
232
|
+
* Template types for the item-view.
|
|
233
|
+
* Can be used with the {@link NgnTemplate} directive for type safe ng-templates.
|
|
234
|
+
*/
|
|
235
|
+
templateTypes = templateTypesFn();
|
|
236
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ItemViewTemplates, deps: null, target: i0.ɵɵFactoryTarget.Directive });
|
|
237
|
+
static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.2.0", version: "22.0.5", type: ItemViewTemplates, isStandalone: true, inputs: { templateItem: { classPropertyName: "templateItem", publicName: "templateItem", isSignal: true, isRequired: false, transformFunction: null }, templateSeparator: { classPropertyName: "templateSeparator", publicName: "templateSeparator", isSignal: true, isRequired: false, transformFunction: null }, templateOverflow: { classPropertyName: "templateOverflow", publicName: "templateOverflow", isSignal: true, isRequired: false, transformFunction: null } }, queries: [{ propertyName: "_userItemTemplate", first: true, predicate: ["item"], descendants: true, isSignal: true }, { propertyName: "_userSeparatorTemplate", first: true, predicate: ["separator"], descendants: true, isSignal: true }, { propertyName: "_userOverflowItemTemplate", first: true, predicate: ["overflow"], descendants: true, isSignal: true }], viewQueries: [{ propertyName: "_defaultSeparatorTemplate", first: true, predicate: ["defaultSeparatorTemplate"], descendants: true, isSignal: true }, { propertyName: "_defaultOverflowItemTemplate", first: true, predicate: ["defaultOverflowItemTemplate"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0 });
|
|
238
|
+
}
|
|
239
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: ItemViewTemplates, decorators: [{
|
|
240
|
+
type: Directive
|
|
241
|
+
}], propDecorators: { templateItem: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateItem", required: false }] }], _userItemTemplate: [{ type: i0.ContentChild, args: ['item', { isSignal: true }] }], _defaultSeparatorTemplate: [{ type: i0.ViewChild, args: ['defaultSeparatorTemplate', { isSignal: true }] }], _userSeparatorTemplate: [{ type: i0.ContentChild, args: ['separator', { isSignal: true }] }], templateSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateSeparator", required: false }] }], _defaultOverflowItemTemplate: [{ type: i0.ViewChild, args: ['defaultOverflowItemTemplate', { isSignal: true }] }], _userOverflowItemTemplate: [{ type: i0.ContentChild, args: ['overflow', { isSignal: true }] }], templateOverflow: [{ type: i0.Input, args: [{ isSignal: true, alias: "templateOverflow", required: false }] }] } });
|
|
242
|
+
|
|
243
|
+
/**
|
|
244
|
+
* @category control
|
|
245
|
+
*/
|
|
246
|
+
class NgnItemView extends ItemViewTemplates {
|
|
247
|
+
theme = this.injectThemeTemplate(itemViewControlTemplate, 'root');
|
|
248
|
+
/**
|
|
249
|
+
* The key of the id property in the item object. This is used to track items in the template.
|
|
250
|
+
*/
|
|
251
|
+
idField = input.required(/* @ts-ignore */
|
|
252
|
+
...(ngDevMode ? [{ debugName: "idField" }] : /* istanbul ignore next */ []));
|
|
253
|
+
/**
|
|
254
|
+
* The items to be displayed in the item view.
|
|
255
|
+
* This is a required input and should be an array of items of type {@link T}.
|
|
256
|
+
*/
|
|
257
|
+
items = input.required(/* @ts-ignore */
|
|
258
|
+
...(ngDevMode ? [{ debugName: "items" }] : /* istanbul ignore next */ []));
|
|
259
|
+
/**
|
|
260
|
+
* A separator string (character) to be displayed between items. Set `true` for `,` or provide a custom string.
|
|
261
|
+
*/
|
|
262
|
+
separator = input(/* @ts-ignore */
|
|
263
|
+
...(ngDevMode ? [undefined, { debugName: "separator" }] : /* istanbul ignore next */ []));
|
|
264
|
+
/**
|
|
265
|
+
* A separator icon to be displayed between items.
|
|
266
|
+
*/
|
|
267
|
+
iconItemSeparator = input(/* @ts-ignore */
|
|
268
|
+
...(ngDevMode ? [undefined, { debugName: "iconItemSeparator" }] : /* istanbul ignore next */ []));
|
|
269
|
+
/**
|
|
270
|
+
* Strategy to use when there are more items than can be displayed in the available space.
|
|
271
|
+
* The value determines where the items should start to overflow.
|
|
272
|
+
* @default 'end'
|
|
273
|
+
*/
|
|
274
|
+
overflowStrategy = input('end', /* @ts-ignore */
|
|
275
|
+
...(ngDevMode ? [{ debugName: "overflowStrategy" }] : /* istanbul ignore next */ []));
|
|
276
|
+
/**
|
|
277
|
+
* The amount of items to keep visible after or before overflowing, depending on the {@link overflowStrategy}.
|
|
278
|
+
* @default 0
|
|
279
|
+
*/
|
|
280
|
+
overflowStrategyFreezeCount = input(0, /* @ts-ignore */
|
|
281
|
+
...(ngDevMode ? [{ debugName: "overflowStrategyFreezeCount" }] : /* istanbul ignore next */ []));
|
|
282
|
+
/**
|
|
283
|
+
* Index of the item to be used as the overflow indicator when using the 'aroundIndex' overflow strategy.
|
|
284
|
+
* This input is only relevant when the {@link overflowStrategy} is set to 'aroundIndex'.
|
|
285
|
+
* @default 0
|
|
286
|
+
*/
|
|
287
|
+
overflowStrategyIndex = input(0, /* @ts-ignore */
|
|
288
|
+
...(ngDevMode ? [{ debugName: "overflowStrategyIndex" }] : /* istanbul ignore next */ []));
|
|
289
|
+
/**
|
|
290
|
+
* Set this to `true` for greatly improving performance when all items have the same width.
|
|
291
|
+
* Especially true for large lists of items.
|
|
292
|
+
*
|
|
293
|
+
* Only the first item is measured and its width is assumed for all others, instead
|
|
294
|
+
* of measuring every rendered item. The rendered structure is unchanged — overflowed
|
|
295
|
+
* items are still emitted as `role="listitem"` and the overflow indicator still shows
|
|
296
|
+
* the hidden count — so accessibility is unaffected. The tradeoff is correctness:
|
|
297
|
+
* if items are *not* actually the same width, the visible/overflow split will be wrong.
|
|
298
|
+
* @default false
|
|
299
|
+
*/
|
|
300
|
+
sameWidthItems = input(false, { ...(ngDevMode ? { debugName: "sameWidthItems" } : /* istanbul ignore next */ {}), transform: booleanAttribute });
|
|
301
|
+
_themeGap = signal(0, /* @ts-ignore */
|
|
302
|
+
...(ngDevMode ? [{ debugName: "_themeGap" }] : /* istanbul ignore next */ []));
|
|
303
|
+
_isBrowser = inject(Platform).isBrowser;
|
|
304
|
+
separatorChar = computed(() => {
|
|
305
|
+
const sep = this.separator();
|
|
306
|
+
return typeof sep === 'boolean' ? (sep ? ', ' : '') : sep;
|
|
307
|
+
}, /* @ts-ignore */
|
|
308
|
+
...(ngDevMode ? [{ debugName: "separatorChar" }] : /* istanbul ignore next */ []));
|
|
309
|
+
_enableSizeMeasuring = computed(() => !this.sameWidthItems(), /* @ts-ignore */
|
|
310
|
+
...(ngDevMode ? [{ debugName: "_enableSizeMeasuring" }] : /* istanbul ignore next */ []));
|
|
311
|
+
_renderedItemRefs = viewChildren('itemRef', /* @ts-ignore */
|
|
312
|
+
...(ngDevMode ? [{ debugName: "_renderedItemRefs" }] : /* istanbul ignore next */ []));
|
|
313
|
+
_firstItemRef = viewChild('itemRef', /* @ts-ignore */
|
|
314
|
+
...(ngDevMode ? [{ debugName: "_firstItemRef" }] : /* istanbul ignore next */ []));
|
|
315
|
+
_firstItemWidth = elementSizeSignal(this._firstItemRef);
|
|
316
|
+
_renderedItemSizes = elementsSizesSignal(this._renderedItemRefs, this._enableSizeMeasuring);
|
|
317
|
+
_renderedItemWidths = computed(() => this.sameWidthItems()
|
|
318
|
+
? this.items().map(() => this._firstItemWidth().width || Number.MAX_SAFE_INTEGER)
|
|
319
|
+
: this._renderedItemSizes().map(size => size.width), { ...(ngDevMode ? { debugName: "_renderedItemWidths" } : /* istanbul ignore next */ {}), equal: areArraysDeepEqual });
|
|
320
|
+
_containerSize = elementSizeSignal(this.element.nativeElement);
|
|
321
|
+
_overflowItemRef = viewChild('overflowItem', /* @ts-ignore */
|
|
322
|
+
...(ngDevMode ? [{ debugName: "_overflowItemRef" }] : /* istanbul ignore next */ []));
|
|
323
|
+
_overflowItemSize = elementSizeSignal(this._overflowItemRef);
|
|
324
|
+
itemOverflowCheckOrder = computed(() => {
|
|
325
|
+
const count = this.items().length;
|
|
326
|
+
const freezeCount = Math.min(this.overflowStrategyFreezeCount(), count);
|
|
327
|
+
return getItemOverflowCheckOrder({
|
|
328
|
+
count,
|
|
329
|
+
strategy: this.overflowStrategy(),
|
|
330
|
+
freezeCount,
|
|
331
|
+
strategyIndex: this.overflowStrategyIndex(),
|
|
332
|
+
});
|
|
333
|
+
}, /* @ts-ignore */
|
|
334
|
+
...(ngDevMode ? [{ debugName: "itemOverflowCheckOrder" }] : /* istanbul ignore next */ []));
|
|
335
|
+
renderedItems = computed(() => {
|
|
336
|
+
const containerWidth = this._containerSize().width;
|
|
337
|
+
const renderedItemWidths = this._renderedItemWidths();
|
|
338
|
+
const overflowCheckOrder = this.itemOverflowCheckOrder();
|
|
339
|
+
const count = this.items().length;
|
|
340
|
+
const freezeCount = Math.min(this.overflowStrategyFreezeCount(), count);
|
|
341
|
+
const layout = calculateItemViewLayout({
|
|
342
|
+
count,
|
|
343
|
+
strategy: this.overflowStrategy(),
|
|
344
|
+
freezeCount,
|
|
345
|
+
strategyIndex: this.overflowStrategyIndex(),
|
|
346
|
+
containerWidth,
|
|
347
|
+
itemWidths: renderedItemWidths,
|
|
348
|
+
overflowItemWidth: this._overflowItemSize().width,
|
|
349
|
+
gap: this._themeGap(),
|
|
350
|
+
});
|
|
351
|
+
const renderedItemOrders = layout.renderedItemOrders;
|
|
352
|
+
// Precompute quick lookups for the hot paths below.
|
|
353
|
+
// - `renderedIndexSet` allows O(1) visibility checks.
|
|
354
|
+
// - `locationByIndex` avoids repeatedly scanning the overflow order to find an item's location.
|
|
355
|
+
const renderedIndexSet = new Set(renderedItemOrders.map(x => x.index));
|
|
356
|
+
const locationByIndex = Array.from({
|
|
357
|
+
length: count,
|
|
358
|
+
});
|
|
359
|
+
for (const entry of overflowCheckOrder) {
|
|
360
|
+
locationByIndex[entry.index] = entry.location;
|
|
361
|
+
}
|
|
362
|
+
// First pass: build the full list with items marked as visible vs overflowed.
|
|
363
|
+
// We'll insert overflow indicators afterwards at the computed insertion indices.
|
|
364
|
+
let res = this.items().map((item, index) => {
|
|
365
|
+
if (renderedIndexSet.has(index)) {
|
|
366
|
+
return {
|
|
367
|
+
id: item[this.idField()],
|
|
368
|
+
kind: 'visibleItem',
|
|
369
|
+
item,
|
|
370
|
+
};
|
|
371
|
+
}
|
|
372
|
+
else {
|
|
373
|
+
return {
|
|
374
|
+
id: item[this.idField()],
|
|
375
|
+
kind: 'overflowItem',
|
|
376
|
+
location: locationByIndex[index] ?? 'end',
|
|
377
|
+
item,
|
|
378
|
+
};
|
|
379
|
+
}
|
|
380
|
+
});
|
|
381
|
+
const getFallbackOverflowIndicatorIndex = () => {
|
|
382
|
+
// When the layout says "no indicator" for the only slot (null), we still need a stable
|
|
383
|
+
// insertion index so the DOM structure stays consistent for measurement.
|
|
384
|
+
if (overflowCheckOrder.length === 0) {
|
|
385
|
+
return 0;
|
|
386
|
+
}
|
|
387
|
+
const lastItem = overflowCheckOrder[overflowCheckOrder.length - 1];
|
|
388
|
+
return (lastItem ?? throwExp('NgnItemView', 'Unexpected empty entry in overflowCheckOrder'))
|
|
389
|
+
.index;
|
|
390
|
+
};
|
|
391
|
+
// Insert overflow indicators at the calculated indices
|
|
392
|
+
// Note: inserting into `res` shifts subsequent indices; track that shift explicitly with `insertOffset`.
|
|
393
|
+
let insertOffset = 0;
|
|
394
|
+
// Collect overflowed items, both as a single list and grouped by location.
|
|
395
|
+
const overflowedItemsAll = [];
|
|
396
|
+
const overflowedItemsByLocation = {
|
|
397
|
+
start: [],
|
|
398
|
+
end: [],
|
|
399
|
+
center: [],
|
|
400
|
+
};
|
|
401
|
+
const allItems = this.items();
|
|
402
|
+
for (let i = 0; i < count; i++) {
|
|
403
|
+
if (renderedIndexSet.has(i)) {
|
|
404
|
+
continue;
|
|
405
|
+
}
|
|
406
|
+
const item = allItems[i];
|
|
407
|
+
if (item === undefined) {
|
|
408
|
+
continue;
|
|
409
|
+
}
|
|
410
|
+
overflowedItemsAll.push(item);
|
|
411
|
+
const location = locationByIndex[i] ?? 'end';
|
|
412
|
+
overflowedItemsByLocation[location].push(item);
|
|
413
|
+
}
|
|
414
|
+
layout.overflowIndicatorIndices.forEach((indicatorIndex, iterationIndex) => {
|
|
415
|
+
const insertIndex = indicatorIndex ?? getFallbackOverflowIndicatorIndex() + insertOffset;
|
|
416
|
+
// If two overflow indicators are rendered (aroundIndex), we must split overflow items by location
|
|
417
|
+
// so each indicator shows its own count/list.
|
|
418
|
+
const overflowIndicatorLocation = layout.overflowIndicatorCount === 1 ? null : iterationIndex === 0 ? 'start' : 'end';
|
|
419
|
+
const items = overflowIndicatorLocation
|
|
420
|
+
? overflowedItemsByLocation[overflowIndicatorLocation]
|
|
421
|
+
: overflowedItemsAll;
|
|
422
|
+
res.splice(insertIndex, 0, {
|
|
423
|
+
id: `overflow-indicator-${indicatorIndex}`,
|
|
424
|
+
kind: 'overflowIndicator',
|
|
425
|
+
visible: indicatorIndex !== null,
|
|
426
|
+
items,
|
|
427
|
+
hasSeparator: renderedItemOrders.some(x => x.index + insertOffset > insertIndex),
|
|
428
|
+
});
|
|
429
|
+
insertOffset++;
|
|
430
|
+
});
|
|
431
|
+
// In fixed width mode, remove all hidden items except for the first one (used for measurement)
|
|
432
|
+
if (this.sameWidthItems()) {
|
|
433
|
+
res = res.filter((item, index) => item.kind !== 'overflowItem' || index === 0);
|
|
434
|
+
}
|
|
435
|
+
return res;
|
|
436
|
+
}, /* @ts-ignore */
|
|
437
|
+
...(ngDevMode ? [{ debugName: "renderedItems" }] : /* istanbul ignore next */ []));
|
|
438
|
+
/** Full content width as `px`; `null` until measured (respects sameWidthItems optimization). */
|
|
439
|
+
contentWidthPx = computed(() => {
|
|
440
|
+
const allItemsWidth = Math.ceil(this._renderedItemWidths().reduce((sum, w) => sum + w, 0) +
|
|
441
|
+
this._themeGap() * Math.max(0, this.items().length - 1));
|
|
442
|
+
return Number.isFinite(allItemsWidth) && allItemsWidth > 0 && allItemsWidth < 100_000
|
|
443
|
+
? `${allItemsWidth}px`
|
|
444
|
+
: null;
|
|
445
|
+
}, /* @ts-ignore */
|
|
446
|
+
...(ngDevMode ? [{ debugName: "contentWidthPx" }] : /* istanbul ignore next */ []));
|
|
447
|
+
ngAfterViewInit() {
|
|
448
|
+
if (!this._isBrowser) {
|
|
449
|
+
return;
|
|
450
|
+
}
|
|
451
|
+
requestAnimationFrame(() => {
|
|
452
|
+
const gapString = getComputedStyle(this.element.nativeElement).getPropertyValue('column-gap');
|
|
453
|
+
const gap = parseFloat(gapString) || 0;
|
|
454
|
+
this._themeGap.set(gap);
|
|
455
|
+
});
|
|
456
|
+
}
|
|
457
|
+
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: NgnItemView, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
458
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.5", type: NgnItemView, isStandalone: true, selector: "ngn-item-view", inputs: { idField: { classPropertyName: "idField", publicName: "idField", isSignal: true, isRequired: true, transformFunction: null }, items: { classPropertyName: "items", publicName: "items", isSignal: true, isRequired: true, transformFunction: null }, separator: { classPropertyName: "separator", publicName: "separator", isSignal: true, isRequired: false, transformFunction: null }, iconItemSeparator: { classPropertyName: "iconItemSeparator", publicName: "iconItemSeparator", isSignal: true, isRequired: false, transformFunction: null }, overflowStrategy: { classPropertyName: "overflowStrategy", publicName: "overflowStrategy", isSignal: true, isRequired: false, transformFunction: null }, overflowStrategyFreezeCount: { classPropertyName: "overflowStrategyFreezeCount", publicName: "overflowStrategyFreezeCount", isSignal: true, isRequired: false, transformFunction: null }, overflowStrategyIndex: { classPropertyName: "overflowStrategyIndex", publicName: "overflowStrategyIndex", isSignal: true, isRequired: false, transformFunction: null }, sameWidthItems: { classPropertyName: "sameWidthItems", publicName: "sameWidthItems", isSignal: true, isRequired: false, transformFunction: null } }, host: { properties: { "attr.role": "\"list\"", "style.--ngn-item-view-content-width": "contentWidthPx()" } }, providers: [provideSelf(NgnItemView)], viewQueries: [{ propertyName: "_renderedItemRefs", predicate: ["itemRef"], descendants: true, isSignal: true }, { propertyName: "_firstItemRef", first: true, predicate: ["itemRef"], descendants: true, isSignal: true }, { propertyName: "_overflowItemRef", first: true, predicate: ["overflowItem"], descendants: true, isSignal: true }], usesInheritance: true, ngImport: i0, template: "@for (item of renderedItems(); track item.id; let i = $index) {\n @if (item.kind === 'visibleItem' || item.kind === 'overflowItem') {\n <span\n role=\"listitem\"\n #itemRef\n [ptInt]=\"this\"\n [ptClass]=\"{\n item: true,\n 'item-overflowing': item.kind === 'overflowItem',\n }\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n itemTemplate();\n context: { $implicit: item.item, index: i, last: $last, first: $first }\n \"\n />\n @if (!$last) {\n <ng-container\n *ngTemplateOutlet=\"\n separatorTemplate();\n context: { $implicit: { character: separatorChar(), icon: iconItemSeparator() } }\n \"\n />\n }\n </span>\n } @else if (item.kind === 'overflowIndicator') {\n <div\n role=\"listitem\"\n [ptInt]=\"this\"\n [ptClass]=\"{ 'more-items': true, 'more-items-hidden': !item.visible }\"\n [attr.aria-hidden]=\"item.visible ? null : 'true'\"\n #overflowItem\n >\n <ng-container\n *ngTemplateOutlet=\"\n overflowTemplate();\n context: {\n $implicit: {\n totalCount: items().length,\n overflowCount: item.items.length,\n overflowItems: item.items,\n },\n }\n \"\n />\n @if (!$last) {\n <span\n [style.visibility]=\"item.hasSeparator ? 'visible' : 'hidden'\"\n style=\"display: contents\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n separatorTemplate();\n context: { $implicit: { character: separatorChar(), icon: iconItemSeparator() } }\n \"\n />\n </span>\n }\n </div>\n }\n}\n\n<ng-template #defaultSeparatorTemplate [ngnTemplate]=\"templateTypes.separator\" let-separator>\n @if (separator.character) {\n <span>{{ separator.character }}</span>\n } @else if (separator.icon) {\n <ngn-icon [icon]=\"separator.icon\" />\n }\n</ng-template>\n\n<ng-template #defaultOverflowItemTemplate [ngnTemplate]=\"templateTypes.overflow\" let-overflow>\n <span [ptInt]=\"this\" [ptClass]=\"'more-items-default'\">+{{ overflow.overflowCount }}</span>\n</ng-template>\n", dependencies: [{ kind: "directive", type: NgnPt, selector: "[ptInt]", inputs: ["ptInt", "ptClass", "ptDep"] }, { kind: "directive", type: NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: NgnTemplate, selector: "ng-template[ngnTemplate]", inputs: ["ngnTemplate"] }, { kind: "component", type: NgnIcon, selector: "ngn-icon", inputs: ["defaultIcon", "icon"] }] });
|
|
459
|
+
}
|
|
460
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.5", ngImport: i0, type: NgnItemView, decorators: [{
|
|
461
|
+
type: Component,
|
|
462
|
+
args: [{ selector: 'ngn-item-view', imports: [NgnPt, NgTemplateOutlet, NgnTemplate, NgnIcon], providers: [provideSelf(NgnItemView)], host: {
|
|
463
|
+
'[attr.role]': '"list"',
|
|
464
|
+
'[style.--ngn-item-view-content-width]': 'contentWidthPx()',
|
|
465
|
+
}, template: "@for (item of renderedItems(); track item.id; let i = $index) {\n @if (item.kind === 'visibleItem' || item.kind === 'overflowItem') {\n <span\n role=\"listitem\"\n #itemRef\n [ptInt]=\"this\"\n [ptClass]=\"{\n item: true,\n 'item-overflowing': item.kind === 'overflowItem',\n }\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n itemTemplate();\n context: { $implicit: item.item, index: i, last: $last, first: $first }\n \"\n />\n @if (!$last) {\n <ng-container\n *ngTemplateOutlet=\"\n separatorTemplate();\n context: { $implicit: { character: separatorChar(), icon: iconItemSeparator() } }\n \"\n />\n }\n </span>\n } @else if (item.kind === 'overflowIndicator') {\n <div\n role=\"listitem\"\n [ptInt]=\"this\"\n [ptClass]=\"{ 'more-items': true, 'more-items-hidden': !item.visible }\"\n [attr.aria-hidden]=\"item.visible ? null : 'true'\"\n #overflowItem\n >\n <ng-container\n *ngTemplateOutlet=\"\n overflowTemplate();\n context: {\n $implicit: {\n totalCount: items().length,\n overflowCount: item.items.length,\n overflowItems: item.items,\n },\n }\n \"\n />\n @if (!$last) {\n <span\n [style.visibility]=\"item.hasSeparator ? 'visible' : 'hidden'\"\n style=\"display: contents\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n separatorTemplate();\n context: { $implicit: { character: separatorChar(), icon: iconItemSeparator() } }\n \"\n />\n </span>\n }\n </div>\n }\n}\n\n<ng-template #defaultSeparatorTemplate [ngnTemplate]=\"templateTypes.separator\" let-separator>\n @if (separator.character) {\n <span>{{ separator.character }}</span>\n } @else if (separator.icon) {\n <ngn-icon [icon]=\"separator.icon\" />\n }\n</ng-template>\n\n<ng-template #defaultOverflowItemTemplate [ngnTemplate]=\"templateTypes.overflow\" let-overflow>\n <span [ptInt]=\"this\" [ptClass]=\"'more-items-default'\">+{{ overflow.overflowCount }}</span>\n</ng-template>\n" }]
|
|
466
|
+
}], propDecorators: { idField: [{ type: i0.Input, args: [{ isSignal: true, alias: "idField", required: true }] }], items: [{ type: i0.Input, args: [{ isSignal: true, alias: "items", required: true }] }], separator: [{ type: i0.Input, args: [{ isSignal: true, alias: "separator", required: false }] }], iconItemSeparator: [{ type: i0.Input, args: [{ isSignal: true, alias: "iconItemSeparator", required: false }] }], overflowStrategy: [{ type: i0.Input, args: [{ isSignal: true, alias: "overflowStrategy", required: false }] }], overflowStrategyFreezeCount: [{ type: i0.Input, args: [{ isSignal: true, alias: "overflowStrategyFreezeCount", required: false }] }], overflowStrategyIndex: [{ type: i0.Input, args: [{ isSignal: true, alias: "overflowStrategyIndex", required: false }] }], sameWidthItems: [{ type: i0.Input, args: [{ isSignal: true, alias: "sameWidthItems", required: false }] }], _renderedItemRefs: [{ type: i0.ViewChildren, args: ['itemRef', { isSignal: true }] }], _firstItemRef: [{ type: i0.ViewChild, args: ['itemRef', { isSignal: true }] }], _overflowItemRef: [{ type: i0.ViewChild, args: ['overflowItem', { isSignal: true }] }] } });
|
|
467
|
+
|
|
468
|
+
/**
|
|
469
|
+
* Generated bundle index. Do not edit.
|
|
470
|
+
*/
|
|
471
|
+
|
|
472
|
+
export { NgnItemView };
|
|
473
|
+
//# sourceMappingURL=ngneers-controls-item-view.mjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"ngneers-controls-item-view.mjs","sources":["../../src/item-view/item-view-layout.ts","../../src/item-view/item-view-templates.ts","../../src/item-view/item-view.ts","../../src/item-view/item-view.html","../../src/item-view/ngneers-controls-item-view.ts"],"sourcesContent":["import { NgnError } from '@ngneers/controls/utils';\n\nimport type { OverflowStrategy } from './types';\n\nexport type ItemOverflowLocation = 'start' | 'end' | 'center';\n\nexport type OverflowOrderEntry = {\n index: number;\n location: ItemOverflowLocation;\n};\n\nexport type OverflowOrder = readonly OverflowOrderEntry[];\n\nexport type ItemViewLayoutInput = {\n count: number;\n strategy: OverflowStrategy;\n freezeCount: number;\n strategyIndex: number;\n containerWidth: number;\n itemWidths: readonly number[];\n overflowItemWidth: number;\n gap: number;\n};\n\nexport type ItemViewLayoutResult = {\n checkOrder: OverflowOrder;\n renderedItemOrders: OverflowOrder;\n remainingItemOrders: OverflowOrder;\n overflowIndicatorCount: number;\n overflowIndicatorIndices: readonly (number | null)[];\n};\n\n/**\n * Returns the *priority order* in which items are considered for keeping visible.\n * The algorithm is greedy: it walks this list until items no longer fit.\n * Each entry also carries a `location` which describes which overflow indicator would own the item.\n */\nexport function getItemOverflowCheckOrder(params: {\n count: number;\n strategy: OverflowStrategy;\n freezeCount: number;\n strategyIndex: number;\n}): OverflowOrder {\n const count = Math.max(0, Math.floor(params.count));\n if (count === 0) {\n return [];\n }\n\n const freezeCount = Math.min(Math.max(0, Math.floor(params.freezeCount)), count);\n\n switch (params.strategy) {\n case 'end': {\n const arr = Array.from({ length: count - freezeCount }, (_, i) => i);\n arr.splice(1, 0, ...Array.from({ length: freezeCount }, (_, i) => count - freezeCount + i));\n return arr.map(index => ({ index, location: 'end' }));\n }\n case 'start': {\n const arr = Array.from({ length: count - freezeCount }, (_, i) => count - i - 1);\n arr.splice(1, 0, ...Array.from({ length: freezeCount }, (_, i) => i));\n return arr.map(index => ({ index, location: 'start' }));\n }\n case 'center': {\n // \"Center\" overflows symmetrically: keep alternating left/right items first.\n const order: OverflowOrderEntry[] = [];\n let leftIndex = 0;\n let rightIndex = count - 1;\n\n for (let i = 0; i < count; i++) {\n if (i % 2 === 0) {\n order.push({ index: leftIndex++, location: 'center' } as const);\n } else {\n order.push({ index: rightIndex--, location: 'center' } as const);\n }\n }\n return order;\n }\n case 'aroundIndex': {\n // \"AroundIndex\" keeps the chosen item visible, then expands outward on both sides.\n // FreezeCount applies to both ends; we must ensure the chosen index stays in-bounds.\n const minIndex = Math.min(freezeCount, count - 1);\n const maxIndex = Math.max(minIndex, count - freezeCount - 1);\n const index = Math.min(Math.max(minIndex, Math.floor(params.strategyIndex)), maxIndex);\n\n const targetMiddleCount = Math.max(0, count - freezeCount * 2);\n const order: { index: number; location: 'start' | 'end' }[] =\n targetMiddleCount > 0 ? [{ index, location: 'start' }] : [];\n\n let offset = 1;\n while (order.length < targetMiddleCount) {\n if (index - offset >= freezeCount) {\n order.push({ index: index - offset, location: 'start' });\n }\n if (order.length >= targetMiddleCount) {\n break;\n }\n if (index + offset < count - freezeCount) {\n order.push({\n index: index + offset,\n location: 'end',\n });\n }\n offset++;\n }\n\n // Insert frozen items near the front of the list so they are kept visible.\n // Keep the insertion ordering consistent with the component implementation.\n order.splice(\n 1,\n 0,\n ...Array.from({ length: freezeCount }, (_, i) => ({ index: i, location: 'start' }) as const)\n );\n order.splice(\n 1,\n 0,\n ...Array.from(\n { length: freezeCount },\n (_, i) =>\n ({\n index: count - freezeCount + i,\n location: 'end',\n }) as const\n )\n );\n\n return order;\n }\n }\n}\n\nexport function calculateItemViewLayout(params: ItemViewLayoutInput): ItemViewLayoutResult {\n const count = Math.max(0, Math.floor(params.count));\n const containerWidth = Math.max(0, params.containerWidth);\n const overflowItemWidth = Math.max(0, params.overflowItemWidth);\n const gap = Math.max(0, params.gap);\n const maxOverflowIndicatorCount = params.strategy === 'aroundIndex' ? 2 : 1;\n\n const overflowCheckOrder = getItemOverflowCheckOrder({\n count,\n strategy: params.strategy,\n freezeCount: params.freezeCount,\n strategyIndex: params.strategyIndex,\n });\n\n const getVisibleItemCount = (reservedWidth: number): number => {\n let visibleItemCount = 0;\n let totalWidth = Math.max(0, reservedWidth);\n\n for (let i = 0; i < overflowCheckOrder.length; i++) {\n const index = overflowCheckOrder[i]?.index;\n if (index === undefined) {\n throw new NgnError(\n 'calculateItemViewLayout',\n 'Invalid overflow check order: index is undefined'\n );\n }\n const itemWidth = params.itemWidths[index] ?? 0;\n const itemGap = i > 0 ? gap : 0;\n const newWidth = totalWidth + itemWidth + itemGap;\n\n if (newWidth <= containerWidth) {\n totalWidth = newWidth;\n visibleItemCount++;\n } else {\n break;\n }\n }\n\n return visibleItemCount;\n };\n\n let overflowIndicatorCount = 0;\n let previousOverflowIndicatorCount = -1;\n let remainingItemOrders: OverflowOrder = overflowCheckOrder;\n let renderedItemOrders: OverflowOrderEntry[] = [];\n let overflowIndicatorLocations = new Set<ItemOverflowLocation>();\n\n // Fixed-point iteration:\n // 1) We blindly assume that we don't need any overflow indicators for the first pass.\n // 2) We see how many items fit with that assumption.\n // 3) The remaining items define which overflow locations exist (start/end/center).\n // 4) That determines the *actual* number of indicators.\n // Repeat until the indicator count stabilizes.\n while (overflowIndicatorCount !== previousOverflowIndicatorCount) {\n previousOverflowIndicatorCount = overflowIndicatorCount;\n\n const initialVisibleItemCount = getVisibleItemCount(\n overflowIndicatorCount * (overflowItemWidth + gap)\n );\n\n remainingItemOrders = overflowCheckOrder\n .slice(initialVisibleItemCount)\n .toSorted((a, b) => a.index - b.index);\n\n overflowIndicatorLocations = new Set(remainingItemOrders.map(i => i.location));\n overflowIndicatorCount = overflowIndicatorLocations.size;\n const finalVisibleItemCount = getVisibleItemCount(\n overflowIndicatorCount * (overflowItemWidth + gap)\n );\n renderedItemOrders = overflowCheckOrder.slice(0, finalVisibleItemCount);\n }\n\n (['start', 'end'] as const).forEach(location => {\n // Optimization: if all overflowed items for a side would fit inside the overflow indicator width,\n // we can render them inline and drop that overflow indicator entirely.\n // This is only applicable for start/end & the aroundIndex strategy. Center has no \"adjacent\" insertion point.\n if (overflowIndicatorLocations.has(location)) {\n const itemsWithIndices = remainingItemOrders\n .map((x, i) => [i + renderedItemOrders.length, x] as const)\n .filter(x => x[1].location === location);\n const itemSizes = itemsWithIndices.map(i => params.itemWidths[i[1].index] ?? 0);\n const itemsTotalSize = itemSizes.reduce((a, b) => a + b, 0);\n if (itemsTotalSize <= overflowItemWidth) {\n overflowIndicatorLocations.delete(location);\n renderedItemOrders = [...renderedItemOrders, ...itemsWithIndices.map(i => i[1])];\n overflowIndicatorCount--;\n }\n }\n });\n\n // Keep result consistent after the optimization pass.\n const renderedIndices = new Set(renderedItemOrders.map(x => x.index));\n remainingItemOrders = overflowCheckOrder\n .filter(x => !renderedIndices.has(x.index))\n .toSorted((a, b) => a.index - b.index);\n\n // Calculate the insertion indices for the overflow indicators.\n const overflowIndicatorIndices = (() => {\n if (overflowIndicatorCount === 0) {\n return [null];\n } else if (maxOverflowIndicatorCount === 1 && overflowIndicatorCount === 1) {\n return [remainingItemOrders[0]?.index ?? null];\n } else if (maxOverflowIndicatorCount === 2) {\n const res: number[] = [];\n const firstEndIndex = remainingItemOrders.find(x => x.location === 'end')?.index;\n const lastEndIndex = remainingItemOrders.findLast(x => x.location === 'end')?.index;\n const firstStartIndex = remainingItemOrders.find(x => x.location === 'start')?.index;\n const lastStartIndex = remainingItemOrders.findLast(x => x.location === 'start')?.index;\n if (overflowIndicatorLocations.has('start')) {\n const startIndex = firstStartIndex ?? firstEndIndex ?? 0;\n res.push(startIndex + Math.min(Math.max(0, Math.floor(params.freezeCount)), count));\n }\n if (overflowIndicatorLocations.has('end')) {\n const endIndex = lastEndIndex ? lastEndIndex + 1 : (lastStartIndex ?? 0);\n res.push(endIndex);\n }\n return res;\n }\n return [];\n })();\n\n return {\n checkOrder: overflowCheckOrder,\n renderedItemOrders,\n remainingItemOrders,\n overflowIndicatorCount,\n overflowIndicatorIndices,\n };\n}\n","import { computed, contentChild, Directive, input, TemplateRef, viewChild } from '@angular/core';\nimport { templateTypesFn } from '@ngneers/controls/api/ng';\nimport { NgnBase } from '@ngneers/controls/base';\n\nimport type { IconType } from '@ngneers/controls-custom-types';\n\n@Directive()\nexport abstract class ItemViewTemplates<T> extends NgnBase<'itemView'> {\n /**\n * The template to be used for rendering each item in the item view.\n * Can also be set using the `item` content child.\n */\n public readonly templateItem = input<TemplateRef<\n typeof this.templateTypes.$implicit.item\n > | null>(null);\n private readonly _userItemTemplate =\n contentChild<TemplateRef<typeof this.templateTypes.item>>('item');\n protected readonly itemTemplate = computed(() => this._userItemTemplate() ?? this.templateItem());\n\n // Separator template\n private readonly _defaultSeparatorTemplate = viewChild.required<\n TemplateRef<typeof this.templateTypes.separator>\n >('defaultSeparatorTemplate');\n private readonly _userSeparatorTemplate =\n contentChild<TemplateRef<typeof this.templateTypes.separator>>('separator');\n /**\n * Set a custom template for the separators between items.\n * Can also be set using an `<ng-template>` element with `#separator` template reference variable.\n */\n public readonly templateSeparator = input<TemplateRef<\n typeof this.templateTypes.separator\n > | null>(null);\n protected readonly separatorTemplate = computed(\n () =>\n this._userSeparatorTemplate() ?? this.templateSeparator() ?? this._defaultSeparatorTemplate()\n );\n\n // Overflow item template\n private readonly _defaultOverflowItemTemplate = viewChild.required<\n TemplateRef<typeof this.templateTypes.overflow>\n >('defaultOverflowItemTemplate');\n private readonly _userOverflowItemTemplate =\n contentChild<TemplateRef<typeof this.templateTypes.overflow>>('overflow');\n /**\n * Set a custom template for the overflow item.\n * Can also be set using an `<ng-template>` element with `#overflow` template reference variable.\n */\n public readonly templateOverflow = input<TemplateRef<typeof this.templateTypes.overflow> | null>(\n null\n );\n protected readonly overflowTemplate = computed(\n () =>\n this._userOverflowItemTemplate() ??\n this.templateOverflow() ??\n this._defaultOverflowItemTemplate()\n );\n\n /**\n * Template types for the item-view.\n * Can be used with the {@link NgnTemplate} directive for type safe ng-templates.\n */\n public readonly templateTypes = templateTypesFn<{\n item: {\n $implicit: T;\n index: number;\n last: boolean;\n first: boolean;\n };\n separator: {\n $implicit: {\n icon?: IconType;\n character?: string;\n };\n };\n overflow: {\n $implicit: {\n totalCount: number;\n overflowCount: number;\n overflowItems: T[];\n };\n };\n }>();\n}\n","import { NgTemplateOutlet } from '@angular/common';\nimport {\n type AfterViewInit,\n booleanAttribute,\n Component,\n computed,\n ElementRef,\n inject,\n input,\n signal,\n viewChild,\n viewChildren,\n} from '@angular/core';\nimport {\n elementSizeSignal,\n elementsSizesSignal,\n NgnTemplate,\n Platform,\n} from '@ngneers/controls/api/ng';\nimport { NgnPt, provideSelf } from '@ngneers/controls/base';\nimport { NgnIcon } from '@ngneers/controls/icon';\nimport { areArraysDeepEqual, throwExp } from '@ngneers/controls/utils';\nimport { itemViewControlTemplate } from '@ngneers/controls-themes/templates/item-view';\n\nimport {\n calculateItemViewLayout,\n getItemOverflowCheckOrder,\n type ItemOverflowLocation,\n type OverflowOrder,\n} from './item-view-layout';\nimport { ItemViewTemplates } from './item-view-templates';\n\nimport type { OverflowStrategy } from './types';\nimport type { IconType } from '@ngneers/controls-custom-types';\n\ntype RenderItem<T> =\n | {\n id: string | number;\n kind: 'visibleItem';\n item: T;\n }\n | {\n id: string | number;\n kind: 'overflowItem';\n location: ItemOverflowLocation;\n item: T;\n }\n | {\n id: string;\n kind: 'overflowIndicator';\n visible: boolean;\n items: T[];\n hasSeparator: boolean;\n };\n\n/**\n * @category control\n */\n@Component({\n selector: 'ngn-item-view',\n templateUrl: './item-view.html',\n imports: [NgnPt, NgTemplateOutlet, NgnTemplate, NgnIcon],\n providers: [provideSelf(NgnItemView)],\n host: {\n '[attr.role]': '\"list\"',\n '[style.--ngn-item-view-content-width]': 'contentWidthPx()',\n },\n})\nexport class NgnItemView<T extends object, IdField extends keyof T>\n extends ItemViewTemplates<T>\n implements AfterViewInit\n{\n protected readonly theme = this.injectThemeTemplate(itemViewControlTemplate, 'root');\n /**\n * The key of the id property in the item object. This is used to track items in the template.\n */\n public readonly idField = input.required<IdField>();\n /**\n * The items to be displayed in the item view.\n * This is a required input and should be an array of items of type {@link T}.\n */\n public readonly items = input.required<readonly T[]>();\n /**\n * A separator string (character) to be displayed between items. Set `true` for `,` or provide a custom string.\n */\n public readonly separator = input<true | string>();\n /**\n * A separator icon to be displayed between items.\n */\n public readonly iconItemSeparator = input<IconType>();\n /**\n * Strategy to use when there are more items than can be displayed in the available space.\n * The value determines where the items should start to overflow.\n * @default 'end'\n */\n public readonly overflowStrategy = input<OverflowStrategy>('end');\n /**\n * The amount of items to keep visible after or before overflowing, depending on the {@link overflowStrategy}.\n * @default 0\n */\n public readonly overflowStrategyFreezeCount = input<number>(0);\n /**\n * Index of the item to be used as the overflow indicator when using the 'aroundIndex' overflow strategy.\n * This input is only relevant when the {@link overflowStrategy} is set to 'aroundIndex'.\n * @default 0\n */\n public readonly overflowStrategyIndex = input<number>(0);\n /**\n * Set this to `true` for greatly improving performance when all items have the same width.\n * Especially true for large lists of items.\n *\n * Only the first item is measured and its width is assumed for all others, instead\n * of measuring every rendered item. The rendered structure is unchanged — overflowed\n * items are still emitted as `role=\"listitem\"` and the overflow indicator still shows\n * the hidden count — so accessibility is unaffected. The tradeoff is correctness:\n * if items are *not* actually the same width, the visible/overflow split will be wrong.\n * @default false\n */\n public readonly sameWidthItems = input(false, { transform: booleanAttribute });\n\n private readonly _themeGap = signal(0);\n private readonly _isBrowser = inject(Platform).isBrowser;\n\n protected readonly separatorChar = computed(() => {\n const sep = this.separator();\n return typeof sep === 'boolean' ? (sep ? ', ' : '') : sep;\n });\n\n private readonly _enableSizeMeasuring = computed(() => !this.sameWidthItems());\n private readonly _renderedItemRefs = viewChildren<ElementRef<HTMLElement>>('itemRef');\n private readonly _firstItemRef = viewChild<ElementRef<HTMLElement>>('itemRef');\n private readonly _firstItemWidth = elementSizeSignal(this._firstItemRef);\n private readonly _renderedItemSizes = elementsSizesSignal(\n this._renderedItemRefs,\n this._enableSizeMeasuring\n );\n private readonly _renderedItemWidths = computed(\n () =>\n this.sameWidthItems()\n ? this.items().map(() => this._firstItemWidth().width || Number.MAX_SAFE_INTEGER)\n : this._renderedItemSizes().map(size => size.width),\n { equal: areArraysDeepEqual }\n );\n private readonly _containerSize = elementSizeSignal(this.element.nativeElement);\n private readonly _overflowItemRef = viewChild<ElementRef<HTMLElement>>('overflowItem');\n private readonly _overflowItemSize = elementSizeSignal(this._overflowItemRef);\n\n protected readonly itemOverflowCheckOrder = computed<OverflowOrder>(() => {\n const count = this.items().length;\n const freezeCount = Math.min(this.overflowStrategyFreezeCount(), count);\n return getItemOverflowCheckOrder({\n count,\n strategy: this.overflowStrategy(),\n freezeCount,\n strategyIndex: this.overflowStrategyIndex(),\n });\n });\n\n protected readonly renderedItems = computed<RenderItem<T>[]>(() => {\n const containerWidth = this._containerSize().width;\n const renderedItemWidths = this._renderedItemWidths();\n const overflowCheckOrder = this.itemOverflowCheckOrder();\n\n const count = this.items().length;\n const freezeCount = Math.min(this.overflowStrategyFreezeCount(), count);\n const layout = calculateItemViewLayout({\n count,\n strategy: this.overflowStrategy(),\n freezeCount,\n strategyIndex: this.overflowStrategyIndex(),\n containerWidth,\n itemWidths: renderedItemWidths,\n overflowItemWidth: this._overflowItemSize().width,\n gap: this._themeGap(),\n });\n\n const renderedItemOrders = layout.renderedItemOrders;\n // Precompute quick lookups for the hot paths below.\n // - `renderedIndexSet` allows O(1) visibility checks.\n // - `locationByIndex` avoids repeatedly scanning the overflow order to find an item's location.\n const renderedIndexSet = new Set<number>(renderedItemOrders.map(x => x.index));\n const locationByIndex: Array<ItemOverflowLocation | undefined> = Array.from({\n length: count,\n });\n for (const entry of overflowCheckOrder) {\n locationByIndex[entry.index] = entry.location;\n }\n\n // First pass: build the full list with items marked as visible vs overflowed.\n // We'll insert overflow indicators afterwards at the computed insertion indices.\n let res: RenderItem<T>[] = this.items().map((item, index) => {\n if (renderedIndexSet.has(index)) {\n return <RenderItem<T>>{\n id: item[this.idField()] as string | number,\n kind: 'visibleItem',\n item,\n };\n } else {\n return <RenderItem<T>>{\n id: item[this.idField()] as string | number,\n kind: 'overflowItem',\n location: locationByIndex[index] ?? 'end',\n item,\n };\n }\n });\n\n const getFallbackOverflowIndicatorIndex = () => {\n // When the layout says \"no indicator\" for the only slot (null), we still need a stable\n // insertion index so the DOM structure stays consistent for measurement.\n if (overflowCheckOrder.length === 0) {\n return 0;\n }\n const lastItem = overflowCheckOrder[overflowCheckOrder.length - 1];\n return (lastItem ?? throwExp('NgnItemView', 'Unexpected empty entry in overflowCheckOrder'))\n .index;\n };\n\n // Insert overflow indicators at the calculated indices\n // Note: inserting into `res` shifts subsequent indices; track that shift explicitly with `insertOffset`.\n let insertOffset = 0;\n\n // Collect overflowed items, both as a single list and grouped by location.\n const overflowedItemsAll: T[] = [];\n const overflowedItemsByLocation: Record<ItemOverflowLocation, T[]> = {\n start: [],\n end: [],\n center: [],\n };\n const allItems = this.items();\n for (let i = 0; i < count; i++) {\n if (renderedIndexSet.has(i)) {\n continue;\n }\n const item = allItems[i];\n if (item === undefined) {\n continue;\n }\n overflowedItemsAll.push(item);\n const location = locationByIndex[i] ?? 'end';\n overflowedItemsByLocation[location].push(item);\n }\n\n layout.overflowIndicatorIndices.forEach((indicatorIndex, iterationIndex) => {\n const insertIndex = indicatorIndex ?? getFallbackOverflowIndicatorIndex() + insertOffset;\n\n // If two overflow indicators are rendered (aroundIndex), we must split overflow items by location\n // so each indicator shows its own count/list.\n const overflowIndicatorLocation =\n layout.overflowIndicatorCount === 1 ? null : iterationIndex === 0 ? 'start' : 'end';\n const items = overflowIndicatorLocation\n ? overflowedItemsByLocation[overflowIndicatorLocation]\n : overflowedItemsAll;\n\n res.splice(insertIndex, 0, <RenderItem<T>>{\n id: `overflow-indicator-${indicatorIndex}`,\n kind: 'overflowIndicator',\n visible: indicatorIndex !== null,\n items,\n hasSeparator: renderedItemOrders.some(x => x.index + insertOffset > insertIndex),\n });\n insertOffset++;\n });\n\n // In fixed width mode, remove all hidden items except for the first one (used for measurement)\n if (this.sameWidthItems()) {\n res = res.filter((item, index) => item.kind !== 'overflowItem' || index === 0);\n }\n\n return res;\n });\n\n /** Full content width as `px`; `null` until measured (respects sameWidthItems optimization). */\n protected readonly contentWidthPx = computed<string | null>(() => {\n const allItemsWidth = Math.ceil(\n this._renderedItemWidths().reduce((sum, w) => sum + w, 0) +\n this._themeGap() * Math.max(0, this.items().length - 1)\n );\n return Number.isFinite(allItemsWidth) && allItemsWidth > 0 && allItemsWidth < 100_000\n ? `${allItemsWidth}px`\n : null;\n });\n\n public ngAfterViewInit(): void {\n if (!this._isBrowser) {\n return;\n }\n requestAnimationFrame(() => {\n const gapString = getComputedStyle(this.element.nativeElement).getPropertyValue('column-gap');\n const gap = parseFloat(gapString) || 0;\n this._themeGap.set(gap);\n });\n }\n}\n","@for (item of renderedItems(); track item.id; let i = $index) {\n @if (item.kind === 'visibleItem' || item.kind === 'overflowItem') {\n <span\n role=\"listitem\"\n #itemRef\n [ptInt]=\"this\"\n [ptClass]=\"{\n item: true,\n 'item-overflowing': item.kind === 'overflowItem',\n }\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n itemTemplate();\n context: { $implicit: item.item, index: i, last: $last, first: $first }\n \"\n />\n @if (!$last) {\n <ng-container\n *ngTemplateOutlet=\"\n separatorTemplate();\n context: { $implicit: { character: separatorChar(), icon: iconItemSeparator() } }\n \"\n />\n }\n </span>\n } @else if (item.kind === 'overflowIndicator') {\n <div\n role=\"listitem\"\n [ptInt]=\"this\"\n [ptClass]=\"{ 'more-items': true, 'more-items-hidden': !item.visible }\"\n [attr.aria-hidden]=\"item.visible ? null : 'true'\"\n #overflowItem\n >\n <ng-container\n *ngTemplateOutlet=\"\n overflowTemplate();\n context: {\n $implicit: {\n totalCount: items().length,\n overflowCount: item.items.length,\n overflowItems: item.items,\n },\n }\n \"\n />\n @if (!$last) {\n <span\n [style.visibility]=\"item.hasSeparator ? 'visible' : 'hidden'\"\n style=\"display: contents\"\n >\n <ng-container\n *ngTemplateOutlet=\"\n separatorTemplate();\n context: { $implicit: { character: separatorChar(), icon: iconItemSeparator() } }\n \"\n />\n </span>\n }\n </div>\n }\n}\n\n<ng-template #defaultSeparatorTemplate [ngnTemplate]=\"templateTypes.separator\" let-separator>\n @if (separator.character) {\n <span>{{ separator.character }}</span>\n } @else if (separator.icon) {\n <ngn-icon [icon]=\"separator.icon\" />\n }\n</ng-template>\n\n<ng-template #defaultOverflowItemTemplate [ngnTemplate]=\"templateTypes.overflow\" let-overflow>\n <span [ptInt]=\"this\" [ptClass]=\"'more-items-default'\">+{{ overflow.overflowCount }}</span>\n</ng-template>\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './index';\n"],"names":[],"mappings":";;;;;;;;;AAgCA;;;;AAIG;AACG,SAAU,yBAAyB,CAAC,MAKzC,EAAA;AACC,IAAA,MAAM,KAAK,GAAG,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,CAAC;AACnD,IAAA,IAAI,KAAK,KAAK,CAAC,EAAE;AACf,QAAA,OAAO,EAAE;IACX;IAEA,MAAM,WAAW,GAAG,IAAI,CAAC,GAAG,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,EAAE,IAAI,CAAC,KAAK,CAAC,MAAM,CAAC,WAAW,CAAC,CAAC,EAAE,KAAK,CAAC;AAEhF,IAAA,QAAQ,MAAM,CAAC,QAAQ;QACrB,KAAK,KAAK,EAAE;YACV,MAAM,GAAG,GAAG,KAAK,CAAC,IAAI,CAAC,EAAE,MAAM,EAAE,KAAK,GAAG,WAAW,EAAE,EAAE,CAAC,CAAC,EAAE,CAAC,KAAK,CAAC,CAAC;AACpE,YAAA,GAAG,CAAC,MAAM,CAAC,CAAC,EAAE,CAAC,EAAE,GAAG,KAAK,CAAC,IA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