mn-angular-lib 1.0.108 → 1.0.109
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/package.json
CHANGED
|
@@ -2411,6 +2411,20 @@ type MnMultiSelectProps<TValue = unknown> = {
|
|
|
2411
2411
|
searchPlaceholder?: string;
|
|
2412
2412
|
/** Maximum number of items that can be selected (undefined = unlimited) */
|
|
2413
2413
|
maxSelections?: number;
|
|
2414
|
+
/**
|
|
2415
|
+
* Once the number of selected options is strictly greater than this value, the
|
|
2416
|
+
* trigger collapses to a single count summary instead of rendering every chip.
|
|
2417
|
+
* Opt-in: collapsing is active when this or `collapsePlaceholder` is set. When
|
|
2418
|
+
* collapsing is enabled but this is omitted, the effective threshold defaults to 5.
|
|
2419
|
+
*/
|
|
2420
|
+
collapseThreshold?: number;
|
|
2421
|
+
/**
|
|
2422
|
+
* Summary text shown when the trigger is collapsed. The `{count}` token is
|
|
2423
|
+
* replaced with the number of selected options (e.g. `"{count} selected"` →
|
|
2424
|
+
* `"18 selected"`). Setting this enables collapsing on its own; when omitted
|
|
2425
|
+
* while collapsing is active, `"{count} selected"` is used as the fallback.
|
|
2426
|
+
*/
|
|
2427
|
+
collapsePlaceholder?: string;
|
|
2414
2428
|
/** Size variant of the multi-select (default: 'md') */
|
|
2415
2429
|
size?: MnMultiSelectVariants['size'];
|
|
2416
2430
|
/** Border radius variant (default: 'md') */
|
|
@@ -2514,6 +2528,29 @@ declare class MnMultiSelect implements OnInit {
|
|
|
2514
2528
|
onSearch(term: string): void;
|
|
2515
2529
|
get filteredOptions(): MnMultiSelectOption[];
|
|
2516
2530
|
get selectedOptions(): MnMultiSelectOption[];
|
|
2531
|
+
/**
|
|
2532
|
+
* Whether the collapse-to-summary feature is opted into. Active when either
|
|
2533
|
+
* `collapsePlaceholder` or `collapseThreshold` is supplied; existing usages
|
|
2534
|
+
* with neither prop are unaffected.
|
|
2535
|
+
*/
|
|
2536
|
+
get collapseEnabled(): boolean;
|
|
2537
|
+
/**
|
|
2538
|
+
* The threshold above which the trigger collapses. Defaults to 5 when collapsing
|
|
2539
|
+
* is enabled via `collapsePlaceholder` alone (no explicit `collapseThreshold`).
|
|
2540
|
+
*/
|
|
2541
|
+
get effectiveCollapseThreshold(): number;
|
|
2542
|
+
/**
|
|
2543
|
+
* Whether the trigger should currently render the count summary instead of the
|
|
2544
|
+
* individual chips: only when collapsing is enabled and the number of selected
|
|
2545
|
+
* options exceeds the effective threshold.
|
|
2546
|
+
*/
|
|
2547
|
+
get isCollapsed(): boolean;
|
|
2548
|
+
/**
|
|
2549
|
+
* The summary text shown while collapsed, with the `{count}` token replaced by
|
|
2550
|
+
* the number of selected options. Falls back to `"{count} selected"` when no
|
|
2551
|
+
* `collapsePlaceholder` is provided.
|
|
2552
|
+
*/
|
|
2553
|
+
get collapseSummaryText(): string;
|
|
2517
2554
|
handleBlur(): void;
|
|
2518
2555
|
get control(): _angular_forms.AbstractControl<any, any, any> | null;
|
|
2519
2556
|
get showError(): boolean;
|