@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,318 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import { ModelSignal, Signal } from '@angular/core';
|
|
3
|
+
|
|
4
|
+
type ResizeSizeUnit = 'px' | 'fr' | '%';
|
|
5
|
+
type ResizeSize<U extends ResizeSizeUnit = ResizeSizeUnit> = `${number}${U}`;
|
|
6
|
+
type ResizeLimitUnit = 'px' | '%';
|
|
7
|
+
type ResizeLimit<U extends ResizeLimitUnit = ResizeLimitUnit> = `${number}${U}`;
|
|
8
|
+
type ExpandedResizeSize = {
|
|
9
|
+
value: number;
|
|
10
|
+
unit: ResizeSizeUnit;
|
|
11
|
+
};
|
|
12
|
+
type ExpandedResizeLimit = {
|
|
13
|
+
value: number;
|
|
14
|
+
unit: ResizeLimitUnit;
|
|
15
|
+
};
|
|
16
|
+
/**
|
|
17
|
+
* How a resize delta is distributed across items.
|
|
18
|
+
* - `adjacent` — zero-sum transfer between the two items neighbouring the divider.
|
|
19
|
+
* - `proportional` — only the dragged item changes; other `fr`/`%` items redistribute via CSS grid.
|
|
20
|
+
* - `push` — only the dragged item changes; the container total grows/shrinks (requires unconstrained container).
|
|
21
|
+
*/
|
|
22
|
+
type ResizeDistributionMode = 'adjacent' | 'proportional' | 'push';
|
|
23
|
+
/**
|
|
24
|
+
* A control-agnostic interface representing a resizable item (panel, column, etc.).
|
|
25
|
+
* Both splitter panels and table header cells implement this interface.
|
|
26
|
+
*/
|
|
27
|
+
interface ResizableItem {
|
|
28
|
+
/** The current size of the item (e.g. '100px', '1fr', '30%'). */
|
|
29
|
+
size: ModelSignal<ResizeSize>;
|
|
30
|
+
/** The minimum size constraint (e.g. '50px', '10%'). */
|
|
31
|
+
minSize: Signal<ResizeLimit>;
|
|
32
|
+
/** The maximum size constraint (e.g. '500px', '80%'). */
|
|
33
|
+
maxSize: Signal<ResizeLimit>;
|
|
34
|
+
}
|
|
35
|
+
interface ResizeEngineConfig {
|
|
36
|
+
/** The resizable items (panels, columns, etc.). */
|
|
37
|
+
items: Signal<readonly ResizableItem[]>;
|
|
38
|
+
/** The total container size in pixels along the resize axis. */
|
|
39
|
+
containerSize: Signal<number>;
|
|
40
|
+
/** The pixel sizes of gaps between items (dividers, gutters). */
|
|
41
|
+
gapSizes: Signal<readonly number[]>;
|
|
42
|
+
/** How deltas are distributed across items during a resize. */
|
|
43
|
+
distributionMode: Signal<ResizeDistributionMode>;
|
|
44
|
+
/** Whether the total size is constrained to the container. If false, push mode can grow the total. */
|
|
45
|
+
containerConstrained: Signal<boolean>;
|
|
46
|
+
/**
|
|
47
|
+
* Whether to convert affected items to fixed `px` values after a drag completes.
|
|
48
|
+
*
|
|
49
|
+
* - **`adjacent` / `push` modes**: when `true`, items whose size changed during the drag
|
|
50
|
+
* are converted from their original unit (`fr`, `%`) to absolute `px`. When `false`,
|
|
51
|
+
* items keep their original units.
|
|
52
|
+
* - **`proportional` mode**: when `true`, the resized column stays as `px` (locked).
|
|
53
|
+
* When `false`, it is converted back to `fr` so it continues to flex with the container.
|
|
54
|
+
* Other columns are never affected.
|
|
55
|
+
*
|
|
56
|
+
* @default false
|
|
57
|
+
*/
|
|
58
|
+
lockSizes?: Signal<boolean>;
|
|
59
|
+
/**
|
|
60
|
+
* Absolute minimum size in pixels for any item, enforced as a floor even when
|
|
61
|
+
* a relative min-size (e.g. `5%`) resolves to a smaller value.
|
|
62
|
+
*
|
|
63
|
+
* Set to `0` to disable the floor (e.g. for splitter panels that have no inherent minimum).
|
|
64
|
+
*
|
|
65
|
+
* @default 0
|
|
66
|
+
*/
|
|
67
|
+
minItemSizePx?: number;
|
|
68
|
+
/**
|
|
69
|
+
* Optional callback that returns the actual rendered px sizes of all items
|
|
70
|
+
* (e.g. via `getBoundingClientRect().width`). When provided, push-mode baking
|
|
71
|
+
* uses these DOM-measured values instead of JS-computed fr→px conversions,
|
|
72
|
+
* avoiding sub-pixel rounding mismatches with CSS Grid.
|
|
73
|
+
*/
|
|
74
|
+
resolveItemSizes?: () => number[];
|
|
75
|
+
}
|
|
76
|
+
/** Snapshot of a single item's state at the start of a drag. */
|
|
77
|
+
type ResizeDragContextItem = {
|
|
78
|
+
item: ResizableItem;
|
|
79
|
+
/** Parsed size at drag start (after any push-mode baking). */
|
|
80
|
+
startSize: ExpandedResizeSize;
|
|
81
|
+
/** Parsed min-size constraint. */
|
|
82
|
+
minSize: ExpandedResizeLimit;
|
|
83
|
+
/** Parsed max-size constraint. */
|
|
84
|
+
maxSize: ExpandedResizeLimit;
|
|
85
|
+
};
|
|
86
|
+
/** Full drag state captured at {@link ResizeEngine.startDrag}. */
|
|
87
|
+
type ResizeDragContext = {
|
|
88
|
+
/** Index of the divider being dragged. */
|
|
89
|
+
dividerIndex: number;
|
|
90
|
+
/** Pointer position (px) when the drag started. */
|
|
91
|
+
startPosition: number;
|
|
92
|
+
/** Original sizes before push-mode baking. Used to revert on no-op clicks or cancellation. */
|
|
93
|
+
preBakeSizes: ResizeSize[];
|
|
94
|
+
/** Snapshots of all items at drag start. */
|
|
95
|
+
items: ResizeDragContextItem[];
|
|
96
|
+
/** Fraction conversion factors captured at drag start. */
|
|
97
|
+
fractionFactors: ResizeFractionFactors;
|
|
98
|
+
/** Percent-per-pixel ratio captured at drag start. */
|
|
99
|
+
percentPerPx: number;
|
|
100
|
+
/** Whether push-mode baking has been applied (deferred to first movement). */
|
|
101
|
+
baked: boolean;
|
|
102
|
+
};
|
|
103
|
+
type ResizeFractionFactors = {
|
|
104
|
+
/** Number of fraction units per pixel. */
|
|
105
|
+
frPerPx: number;
|
|
106
|
+
/** Number of pixels per fraction unit. */
|
|
107
|
+
pxPerFr: number;
|
|
108
|
+
};
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* A generic, control-agnostic resize engine for CSS grid layouts.
|
|
112
|
+
*
|
|
113
|
+
* Handles drag-based resizing of a list of {@link ResizableItem}s with support for:
|
|
114
|
+
* - **Size units**: `px`, `fr`, `%`
|
|
115
|
+
* - **Distribution modes**:
|
|
116
|
+
* - `adjacent` — transfers space between the two items neighbouring the divider (zero-sum).
|
|
117
|
+
* - `proportional` — only the dragged item changes to `px`; other items keep their `fr`/`%`
|
|
118
|
+
* units and CSS grid redistributes the remaining space. Optionally locks the resized item
|
|
119
|
+
* to `px` via {@link ResizeEngineConfig.lockSizes}.
|
|
120
|
+
* - `push` — the dragged item grows/shrinks independently; the container total changes
|
|
121
|
+
* (requires `containerConstrained = false`).
|
|
122
|
+
* - **Commit modes** (for `adjacent`/`push`): `preserve`, `bakeAll`, `bakeAffected`
|
|
123
|
+
* - **Min-size floor** ({@link ResizeEngineConfig.minItemSizePx}): an absolute `px` floor
|
|
124
|
+
* enforced even when a relative min-size resolves smaller. In `proportional` mode, emitted
|
|
125
|
+
* as CSS `minmax(floor, size)` so the grid natively prevents columns from shrinking below it.
|
|
126
|
+
*
|
|
127
|
+
* Consumers (splitter, table) provide items and configuration via signals.
|
|
128
|
+
* The engine outputs a ready-to-use `grid-template-columns`/`grid-template-rows` string
|
|
129
|
+
* via {@link gridTemplateSizes}.
|
|
130
|
+
*/
|
|
131
|
+
declare class ResizeEngine {
|
|
132
|
+
private readonly items;
|
|
133
|
+
private readonly containerSize;
|
|
134
|
+
private readonly gapSizes;
|
|
135
|
+
private readonly distributionMode;
|
|
136
|
+
private readonly containerConstrained;
|
|
137
|
+
private readonly lockSizes;
|
|
138
|
+
private readonly minItemSizePx;
|
|
139
|
+
private readonly resolveItemSizes?;
|
|
140
|
+
constructor(config: ResizeEngineConfig);
|
|
141
|
+
/** The active drag state, or `null` when idle. */
|
|
142
|
+
readonly dragContext: _angular_core.WritableSignal<ResizeDragContext | null>;
|
|
143
|
+
/** Whether a drag operation is currently in progress. */
|
|
144
|
+
readonly isDragging: Signal<boolean>;
|
|
145
|
+
/**
|
|
146
|
+
* Whether any completed (non-cancelled) drag has occurred in this engine's lifetime.
|
|
147
|
+
*
|
|
148
|
+
* Used by `push` mode to defer resolving `fr`/`%` → `px` until the first drag.
|
|
149
|
+
* Before the first drag, original units are preserved so CSS grid can distribute
|
|
150
|
+
* space without rounding-induced overflow.
|
|
151
|
+
*/
|
|
152
|
+
readonly hasBeenResized: _angular_core.WritableSignal<boolean>;
|
|
153
|
+
/**
|
|
154
|
+
* CSS grid template string with item sizes interleaved with gap sizes.
|
|
155
|
+
*
|
|
156
|
+
* Example output: `"100px 4px minmax(50px, 2fr) 4px minmax(50px, 1fr)"`.
|
|
157
|
+
*
|
|
158
|
+
* **Output strategy per distribution mode:**
|
|
159
|
+
* - `adjacent` — resolves all sizes to `px`. CSS grid cannot constrain adjacent
|
|
160
|
+
* resizing correctly with `fr` units.
|
|
161
|
+
* - `proportional` — keeps `fr`/`%` as-is, wrapped in `minmax(floor, size)` when
|
|
162
|
+
* {@link minItemSizePx} > 0. This lets CSS grid redistribute remaining space
|
|
163
|
+
* while enforcing the minimum floor natively. Locked (`px`) columns pass through.
|
|
164
|
+
* - `push` — keeps original units until the first completed drag, then resolves
|
|
165
|
+
* everything to `px` so the total can exceed the container and trigger scrolling.
|
|
166
|
+
*/
|
|
167
|
+
readonly gridTemplateSizes: Signal<string>;
|
|
168
|
+
/**
|
|
169
|
+
* The total gap size in pixels.
|
|
170
|
+
*/
|
|
171
|
+
readonly totalGapSize: Signal<number>;
|
|
172
|
+
/**
|
|
173
|
+
* Aggregated item sizes by unit.
|
|
174
|
+
*/
|
|
175
|
+
private readonly totalItemSizes;
|
|
176
|
+
/**
|
|
177
|
+
* Minimum total size of all items combined (as a CSS calc expression).
|
|
178
|
+
*/
|
|
179
|
+
readonly minTotalSize: Signal<string>;
|
|
180
|
+
/**
|
|
181
|
+
* Maximum total size of all items combined (as a CSS calc expression).
|
|
182
|
+
*/
|
|
183
|
+
readonly maxTotalSize: Signal<string>;
|
|
184
|
+
/**
|
|
185
|
+
* Begins a drag at the given divider. Original sizes are saved for reverting
|
|
186
|
+
* on no-op clicks or cancellation. In push mode, baking to `px` is deferred
|
|
187
|
+
* to the first {@link drag} call to avoid a visual shift on mousedown.
|
|
188
|
+
*/
|
|
189
|
+
startDrag(dividerIndex: number, startPositionPx: number): void;
|
|
190
|
+
/** Updates item sizes during an active drag based on the current pointer position. */
|
|
191
|
+
drag(dividerIndex: number, currentPositionPx: number): void;
|
|
192
|
+
/**
|
|
193
|
+
* Ends a drag. If cancelled or no movement occurred, sizes revert to their
|
|
194
|
+
* pre-drag values (including undoing any push-mode baking). Otherwise,
|
|
195
|
+
* post-drag finalization runs (commit mode or proportional locking).
|
|
196
|
+
*/
|
|
197
|
+
endDrag(dividerIndex: number, cancel: boolean): void;
|
|
198
|
+
/**
|
|
199
|
+
* Applies a single instantaneous move (e.g. keyboard step) at the given divider.
|
|
200
|
+
* Requires that the relevant items already have engine-calculated sizes.
|
|
201
|
+
*/
|
|
202
|
+
moveDivider(dividerIndex: number, pxDelta: number): void;
|
|
203
|
+
/**
|
|
204
|
+
* Clamps all items to their min/max constraints, respecting {@link minItemSizePx}.
|
|
205
|
+
*
|
|
206
|
+
* Called automatically via `afterRenderEffect` when item sizes change externally
|
|
207
|
+
* or the container resizes. Skipped during an active drag (sizes are managed
|
|
208
|
+
* by the drag handler). For `fr`-sized items, clamping is done iteratively
|
|
209
|
+
* with redistribution to maintain total fraction balance.
|
|
210
|
+
*/
|
|
211
|
+
ensureMinMaxSizes(): void;
|
|
212
|
+
/**
|
|
213
|
+
* Sets the item's size and marks it as engine-calculated via an internal symbol.
|
|
214
|
+
* This mark is used by {@link isItemSizeCalculated} to detect external size changes.
|
|
215
|
+
*/
|
|
216
|
+
setItemSize(item: ResizableItem, size: ResizeSize): void;
|
|
217
|
+
/**
|
|
218
|
+
* Returns `true` if the item's current size matches the last value written by the engine.
|
|
219
|
+
* Returns `false` if the size was changed externally (e.g. by an input binding or state restore).
|
|
220
|
+
*/
|
|
221
|
+
isItemSizeCalculated(item: ResizableItem): boolean;
|
|
222
|
+
/**
|
|
223
|
+
* Routes a px delta to the appropriate distribution strategy.
|
|
224
|
+
*
|
|
225
|
+
* For last-item edge resizing (dividerIndex === items.length - 1), the delta is
|
|
226
|
+
* remapped to the previous divider with negated direction. This allows the last
|
|
227
|
+
* column's handle in push mode to resize it directly.
|
|
228
|
+
*/
|
|
229
|
+
private applyDelta;
|
|
230
|
+
/**
|
|
231
|
+
* Adjacent mode: transfers the delta between the two items neighbouring the divider.
|
|
232
|
+
*
|
|
233
|
+
* Grows the left item and shrinks the right item (or vice versa). When an item
|
|
234
|
+
* hits its min/max constraint, the unapplied remainder cascades to the next item
|
|
235
|
+
* in that direction. A second pass resolves any asymmetry between left and right.
|
|
236
|
+
* The total container width is always preserved (zero-sum).
|
|
237
|
+
*/
|
|
238
|
+
private applyAdjacentDelta;
|
|
239
|
+
/**
|
|
240
|
+
* Proportional mode: only the item at `dividerIndex` changes size (set to absolute `px`).
|
|
241
|
+
* All other items keep their original units (`fr`, `%`), and CSS grid's `minmax(floor, size)`
|
|
242
|
+
* naturally redistributes the remaining space — columns with room shrink while those
|
|
243
|
+
* already at the floor stay put.
|
|
244
|
+
*
|
|
245
|
+
* Growth is capped so the total never overflows the container: each other `fr` column
|
|
246
|
+
* needs at least {@link minItemSizePx}, and locked `px` columns keep their size.
|
|
247
|
+
*
|
|
248
|
+
* After the drag ends, {@link applyProportionalLocking} determines whether the
|
|
249
|
+
* resized column stays as `px` (locked) or is converted back to `fr` (dynamic).
|
|
250
|
+
*/
|
|
251
|
+
private applyProportionalDelta;
|
|
252
|
+
/**
|
|
253
|
+
* Push mode: only the dragged item changes size. All other items stay at their
|
|
254
|
+
* baked `px` values (set during {@link startDrag}). The container total changes,
|
|
255
|
+
* causing horizontal overflow/scrolling. Only valid when `containerConstrained` is `false`.
|
|
256
|
+
*/
|
|
257
|
+
private applyPushDelta;
|
|
258
|
+
/**
|
|
259
|
+
* Post-drag finalization. Behaviour depends on {@link lockSizes} and the distribution mode.
|
|
260
|
+
*
|
|
261
|
+
* When `lockSizes` is `false`:
|
|
262
|
+
* - `adjacent` / `push` — no-op; items keep their original units.
|
|
263
|
+
* - `proportional` — the resized column is converted back to `fr` so it stays dynamic.
|
|
264
|
+
*
|
|
265
|
+
* When `lockSizes` is `true`:
|
|
266
|
+
* - `adjacent` / `push` — items whose size changed are converted to absolute `px`.
|
|
267
|
+
* - `proportional` — no-op; the resized column is already `px` from the drag.
|
|
268
|
+
*/
|
|
269
|
+
private finalizeResize;
|
|
270
|
+
/**
|
|
271
|
+
* Converts the resized column back to `fr` after a proportional drag so it
|
|
272
|
+
* continues to flex with the container. Computes a new `fr` value that would
|
|
273
|
+
* resolve to the same pixel width given the current container and other `fr` columns.
|
|
274
|
+
*/
|
|
275
|
+
private unlockProportionalColumn;
|
|
276
|
+
private createContextItem;
|
|
277
|
+
private getCurrentFractionFactors;
|
|
278
|
+
private getCurrentPercentPerPx;
|
|
279
|
+
/**
|
|
280
|
+
* Bakes all non-px items to absolute px values. Used by push mode on first drag movement.
|
|
281
|
+
* Prefers DOM-measured sizes (via {@link resolveItemSizes}) over JS-computed conversions
|
|
282
|
+
* to avoid sub-pixel mismatches with CSS Grid's internal track sizing.
|
|
283
|
+
*/
|
|
284
|
+
private bakeAllItemsToPx;
|
|
285
|
+
/**
|
|
286
|
+
* Writes computed px deltas back to items, converting to each item's original unit.
|
|
287
|
+
*/
|
|
288
|
+
private commitItemDeltas;
|
|
289
|
+
/**
|
|
290
|
+
* Builds a CSS `calc()` expression summing all items' min or max limits.
|
|
291
|
+
* Items already in `px` contribute their current size; `fr`/`%` items contribute
|
|
292
|
+
* their `minSize`/`maxSize` limit. Used by {@link minTotalSize} and {@link maxTotalSize}.
|
|
293
|
+
*/
|
|
294
|
+
private computeLimitTotalSize;
|
|
295
|
+
}
|
|
296
|
+
|
|
297
|
+
declare function isResizeSize(value: unknown): value is ResizeSize;
|
|
298
|
+
declare function getResizeSizeUnit(value: ResizeSize): ResizeSizeUnit;
|
|
299
|
+
declare function getResizeSizeValue(value: ResizeSize): number;
|
|
300
|
+
declare function expandResizeSize(value: ResizeSize): ExpandedResizeSize;
|
|
301
|
+
declare function collapseResizeSize(size: ExpandedResizeSize): ResizeSize;
|
|
302
|
+
declare function isResizeLimit(value: unknown): value is ResizeLimit;
|
|
303
|
+
declare function getResizeLimitUnit(value: ResizeLimit): ResizeLimitUnit;
|
|
304
|
+
declare function getResizeLimitValue(value: ResizeLimit): number;
|
|
305
|
+
declare function getResizeLimitInPx(value: ResizeLimit, containerSize: number): number;
|
|
306
|
+
declare function expandResizeLimit(value: ResizeLimit): ExpandedResizeLimit;
|
|
307
|
+
declare function collapseResizeLimit(size: ExpandedResizeLimit): ResizeLimit;
|
|
308
|
+
/**
|
|
309
|
+
* Resolves a size to its pixel equivalent given the current fraction factors and container size.
|
|
310
|
+
*/
|
|
311
|
+
declare function resolveSizeToPx(size: ExpandedResizeSize, pxPerFr: number, containerSize: number): number;
|
|
312
|
+
/**
|
|
313
|
+
* Converts a pixel delta to the appropriate value delta for the given unit.
|
|
314
|
+
*/
|
|
315
|
+
declare function pxDeltaToUnitDelta(pxDelta: number, unit: ResizeSizeUnit, frPerPx: number, percentPerPx: number): number;
|
|
316
|
+
|
|
317
|
+
export { ResizeEngine, collapseResizeLimit, collapseResizeSize, expandResizeLimit, expandResizeSize, getResizeLimitInPx, getResizeLimitUnit, getResizeLimitValue, getResizeSizeUnit, getResizeSizeValue, isResizeLimit, isResizeSize, pxDeltaToUnitDelta, resolveSizeToPx };
|
|
318
|
+
export type { ExpandedResizeLimit, ExpandedResizeSize, ResizableItem, ResizeDistributionMode, ResizeDragContext, ResizeDragContextItem, ResizeEngineConfig, ResizeFractionFactors, ResizeLimit, ResizeLimitUnit, ResizeSize, ResizeSizeUnit };
|
|
@@ -0,0 +1,145 @@
|
|
|
1
|
+
import { AllKeysOfUnion } from '@ngneers/controls/utils';
|
|
2
|
+
import { IconType, CustomKind, CustomColor } from '@ngneers/controls-custom-types';
|
|
3
|
+
import { NgnIconKey } from '@ngneers/controls/icon';
|
|
4
|
+
import { TemplateRef } from '@angular/core';
|
|
5
|
+
|
|
6
|
+
type NgnFilterDataType = 'string' | 'number' | 'date' | 'dateTime' | 'boolean' | 'custom' | 'list';
|
|
7
|
+
type NgnFilterMatchMode = 'all' | 'any';
|
|
8
|
+
type NgnFilterOperatorId = 'isEqual' | 'isNotEqual' | 'contains' | 'startsWith' | 'endsWith' | 'in' | 'isEmpty' | 'isNotEmpty' | 'greaterThan' | 'greaterThanOrEqual' | 'lessThan' | 'lessThanOrEqual' | 'isTrue' | 'isFalse' | 'custom';
|
|
9
|
+
type NgnFilterConditionConfig = {
|
|
10
|
+
operator: NgnFilterOperatorId;
|
|
11
|
+
rawValue: string | null;
|
|
12
|
+
};
|
|
13
|
+
type NgnFilterConfig = {
|
|
14
|
+
dataType: NgnFilterDataType;
|
|
15
|
+
matchMode: NgnFilterMatchMode;
|
|
16
|
+
conditions: readonly NgnFilterConditionConfig[];
|
|
17
|
+
};
|
|
18
|
+
type NgnFilterCondition = {
|
|
19
|
+
operator: NgnFilterOperatorId;
|
|
20
|
+
value: unknown;
|
|
21
|
+
};
|
|
22
|
+
type NgnFilterValueSelector<T> = (item: T) => unknown;
|
|
23
|
+
declare function parseFilterRawValue(raw: string | null, dataType: NgnFilterDataType): unknown;
|
|
24
|
+
declare function getActiveFilterConditions(config: NgnFilterConfig): readonly NgnFilterCondition[];
|
|
25
|
+
declare function executeFilter<T>(data: readonly T[], config: NgnFilterConfig, selector?: NgnFilterValueSelector<T>): readonly T[];
|
|
26
|
+
declare function executeMultiFilter<T extends object>(data: readonly T[], configs: {
|
|
27
|
+
[key in Extract<AllKeysOfUnion<T>, string>]?: NgnFilterConfig;
|
|
28
|
+
}): readonly T[];
|
|
29
|
+
|
|
30
|
+
type PredefinedStringMatchFunction = 'contains' | 'startsWith' | 'endsWith' | 'equals' | 'fuzzy';
|
|
31
|
+
declare function stringMatches(value: string, query: string, filterFn: PredefinedStringMatchFunction): boolean;
|
|
32
|
+
|
|
33
|
+
type PredefinedFilterFunctions = PredefinedStringMatchFunction;
|
|
34
|
+
type FilterConfigInternal<T extends object> = FilterConfig<T> & {
|
|
35
|
+
filterFieldsCallback: (item: T) => string | string[] | (() => string) | (() => string[]);
|
|
36
|
+
fieldItems?: keyof T;
|
|
37
|
+
};
|
|
38
|
+
type FilterConfig<T extends object> = {
|
|
39
|
+
splitWords?: boolean;
|
|
40
|
+
caseSensitive?: boolean;
|
|
41
|
+
filterFn?: FilterFn<T>;
|
|
42
|
+
};
|
|
43
|
+
type FilterFn<T extends object> = PredefinedFilterFunctions | ((value: string, item: T) => Promise<boolean> | boolean);
|
|
44
|
+
declare function filterOptions<T extends object>(options: readonly T[], filterText: string, filterOptions: FilterConfigInternal<T>): Promise<readonly T[]>;
|
|
45
|
+
|
|
46
|
+
type NgnActionItem = {
|
|
47
|
+
id: string;
|
|
48
|
+
label: string | (() => string);
|
|
49
|
+
icon?: IconType;
|
|
50
|
+
callback?: () => void;
|
|
51
|
+
disabled?: boolean;
|
|
52
|
+
testId?: string;
|
|
53
|
+
children?: NgnActionItem[];
|
|
54
|
+
route?: string | string[];
|
|
55
|
+
};
|
|
56
|
+
type NgnActionItemFlat<T> = Omit<T, 'children'>;
|
|
57
|
+
|
|
58
|
+
type NgnActionButtonConfig<T = unknown> = {
|
|
59
|
+
label: string | (() => string);
|
|
60
|
+
value: T;
|
|
61
|
+
action?: (event: PointerEvent) => void;
|
|
62
|
+
icon?: IconType;
|
|
63
|
+
defaultIcon?: NgnIconKey;
|
|
64
|
+
kind?: CustomKind<'button'>;
|
|
65
|
+
color?: CustomColor;
|
|
66
|
+
disabled?: boolean;
|
|
67
|
+
testId?: string;
|
|
68
|
+
};
|
|
69
|
+
|
|
70
|
+
type NgnItem<T = any, V = any> = {
|
|
71
|
+
data?: T;
|
|
72
|
+
label: string | (() => string);
|
|
73
|
+
icon?: IconType;
|
|
74
|
+
value: V;
|
|
75
|
+
testId?: string;
|
|
76
|
+
disabled?: boolean;
|
|
77
|
+
items?: NgnItem<T, V>[];
|
|
78
|
+
};
|
|
79
|
+
type NgnItemFields<T, K extends keyof T> = {
|
|
80
|
+
label: keyof T;
|
|
81
|
+
value: K;
|
|
82
|
+
translate?: keyof T;
|
|
83
|
+
testId?: keyof T;
|
|
84
|
+
children?: keyof T;
|
|
85
|
+
};
|
|
86
|
+
type NgnItemValue<Item extends NgnItem> = Item extends {
|
|
87
|
+
items: readonly (infer A)[];
|
|
88
|
+
} ? A extends NgnItem ? NgnItemValue<A> : never : Item extends {
|
|
89
|
+
value: infer T;
|
|
90
|
+
} ? T : never;
|
|
91
|
+
type NgnItemsValue<Items extends readonly NgnItem[]> = Items[number] extends infer A ? A extends NgnItem ? NgnItemValue<A> : never : never;
|
|
92
|
+
declare function transformToNgnItem<T extends object, K extends keyof T>(item: T, fields: NgnItemFields<T, K>): NgnItem<T, T[K]>;
|
|
93
|
+
declare function transformToNgnItemPrimitive<T extends string | number>(item: T): NgnItem<unknown, T>;
|
|
94
|
+
declare function transformToNgnItems<Items extends readonly object[], K extends keyof Items[number]>(items: Items, fields: NgnItemFields<Items[number], K>): {
|
|
95
|
+
[P in keyof Items]: NgnItem<Items[P], K>;
|
|
96
|
+
} & readonly NgnItem<Items[number], K>[];
|
|
97
|
+
declare function mapToItems(items: readonly NgnItem[]): readonly NgnItem[];
|
|
98
|
+
declare function flatItems(items: readonly NgnItem[]): NgnItem[];
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* Item model for the tree control. Extends {@link NgnItem} and reuses its
|
|
102
|
+
* `items` field for child nodes. A node with a non-empty `items` array is a
|
|
103
|
+
* branch; otherwise it is a leaf.
|
|
104
|
+
*/
|
|
105
|
+
interface NgnTreeItem<T = any, V = any> extends NgnItem<T, V> {
|
|
106
|
+
/** Child nodes. */
|
|
107
|
+
items?: NgnTreeItem<T, V>[];
|
|
108
|
+
/**
|
|
109
|
+
* Whether this node participates in selection/checking. Default `true`.
|
|
110
|
+
* When `false`: no checkbox is rendered, the node is excluded from `value`,
|
|
111
|
+
* but a branch remains expandable and its children stay independently
|
|
112
|
+
* selectable.
|
|
113
|
+
*/
|
|
114
|
+
selectable?: boolean;
|
|
115
|
+
/**
|
|
116
|
+
* Marks a branch whose children are loaded on demand. A lazy node renders as
|
|
117
|
+
* expandable before its children exist; on first expand the tree invokes the
|
|
118
|
+
* `loadChildren` callback (and emits `nodeExpand`).
|
|
119
|
+
*/
|
|
120
|
+
lazy?: boolean;
|
|
121
|
+
/**
|
|
122
|
+
* Per-node template override. Takes precedence over the global item template.
|
|
123
|
+
*/
|
|
124
|
+
template?: TemplateRef<{
|
|
125
|
+
$implicit: NgnTreeItem<T, V>;
|
|
126
|
+
}>;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* The value of a single tree node, including branch values.
|
|
130
|
+
*
|
|
131
|
+
* Unlike {@link NgnItemValue} (which yields leaf values only), this unions a
|
|
132
|
+
* branch node's own `value` with the values of all its descendants — because
|
|
133
|
+
* in a tree a branch node can itself be selected/expanded.
|
|
134
|
+
*/
|
|
135
|
+
type NgnTreeItemValue<Item extends NgnTreeItem> = Item extends {
|
|
136
|
+
items: readonly (infer A)[];
|
|
137
|
+
} ? A extends NgnTreeItem ? Item['value'] | NgnTreeItemValue<A> : Item['value'] : Item['value'];
|
|
138
|
+
/**
|
|
139
|
+
* The union of every node value (branches and leaves) in a tree item list.
|
|
140
|
+
* This is the type-safe value space for selection, expansion, and highlight.
|
|
141
|
+
*/
|
|
142
|
+
type NgnTreeItemsValue<Items extends readonly NgnTreeItem[]> = Items[number] extends infer A ? A extends NgnTreeItem ? NgnTreeItemValue<A> : never : never;
|
|
143
|
+
|
|
144
|
+
export { executeFilter, executeMultiFilter, filterOptions, flatItems, getActiveFilterConditions, mapToItems, parseFilterRawValue, stringMatches, transformToNgnItem, transformToNgnItemPrimitive, transformToNgnItems };
|
|
145
|
+
export type { FilterConfig, FilterConfigInternal, FilterFn, NgnActionButtonConfig, NgnActionItem, NgnActionItemFlat, NgnFilterValueSelector, NgnItem, NgnItemFields, NgnItemValue, NgnItemsValue, NgnTreeItem, NgnTreeItemValue, NgnTreeItemsValue, PredefinedFilterFunctions, PredefinedStringMatchFunction };
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as _angular_core from '@angular/core';
|
|
2
|
+
import * as _ngneers_controls_api_ng from '@ngneers/controls/api/ng';
|
|
3
|
+
import * as _ngneers_controls_themes from '@ngneers/controls-themes';
|
|
4
|
+
import { NgnBase } from '@ngneers/controls/base';
|
|
5
|
+
|
|
6
|
+
/**
|
|
7
|
+
* @category control
|
|
8
|
+
*/
|
|
9
|
+
declare class NgnAvatar extends NgnBase<'avatar'> {
|
|
10
|
+
protected readonly theme: _ngneers_controls_api_ng.ControlTemplateInfo<_ngneers_controls_themes.ControlTemplate<"avatar", ["root", "image", "initials", `kind-${string}`], readonly []>>;
|
|
11
|
+
/**
|
|
12
|
+
* The initials to display when no image is available.
|
|
13
|
+
* Max 4 characters.
|
|
14
|
+
*/
|
|
15
|
+
readonly initials: _angular_core.InputSignal<string | undefined>;
|
|
16
|
+
/**
|
|
17
|
+
* The background color of the avatar, if the initials are used.
|
|
18
|
+
*/
|
|
19
|
+
readonly bgColor: _angular_core.InputSignal<string | undefined>;
|
|
20
|
+
/**
|
|
21
|
+
* The image URL to display in the avatar.
|
|
22
|
+
*/
|
|
23
|
+
readonly image: _angular_core.InputSignal<string | undefined>;
|
|
24
|
+
/**
|
|
25
|
+
* The alt text for the image.
|
|
26
|
+
*/
|
|
27
|
+
readonly alt: _angular_core.InputSignal<string | undefined>;
|
|
28
|
+
/**
|
|
29
|
+
* The size of the avatar in pixels.
|
|
30
|
+
* @default 48
|
|
31
|
+
*/
|
|
32
|
+
readonly size: _angular_core.InputSignal<number>;
|
|
33
|
+
protected readonly imageLoadFailed: _angular_core.WritableSignal<boolean>;
|
|
34
|
+
protected readonly initialsLimited: _angular_core.Signal<string | undefined>;
|
|
35
|
+
constructor();
|
|
36
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgnAvatar, never>;
|
|
37
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgnAvatar, "ngn-avatar", never, { "initials": { "alias": "initials"; "required": false; "isSignal": true; }; "bgColor": { "alias": "bgColor"; "required": false; "isSignal": true; }; "image": { "alias": "image"; "required": false; "isSignal": true; }; "alt": { "alias": "alt"; "required": false; "isSignal": true; }; "size": { "alias": "size"; "required": false; "isSignal": true; }; }, {}, never, ["*"], true, never>;
|
|
38
|
+
}
|
|
39
|
+
|
|
40
|
+
/**
|
|
41
|
+
* @category control
|
|
42
|
+
*/
|
|
43
|
+
declare class NgnAvatarGroup extends NgnBase<'avatarGroup'> {
|
|
44
|
+
protected readonly theme: _ngneers_controls_api_ng.ControlTemplateInfo<_ngneers_controls_themes.ControlTemplate<"avatar-group", ["root", `kind-${string}`], readonly [{
|
|
45
|
+
readonly class: "avatar";
|
|
46
|
+
readonly template: _ngneers_controls_themes.ControlTemplate<"avatar", ["root", "image", "initials", `kind-${string}`], readonly []>;
|
|
47
|
+
readonly projected: true;
|
|
48
|
+
}]>>;
|
|
49
|
+
constructor();
|
|
50
|
+
static ɵfac: _angular_core.ɵɵFactoryDeclaration<NgnAvatarGroup, never>;
|
|
51
|
+
static ɵcmp: _angular_core.ɵɵComponentDeclaration<NgnAvatarGroup, "ngn-avatar-group", never, {}, {}, never, ["*"], true, never>;
|
|
52
|
+
}
|
|
53
|
+
|
|
54
|
+
export { NgnAvatar, NgnAvatarGroup };
|