ng-blatui 1.5.0 → 1.6.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.
@@ -70,7 +70,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
70
70
  }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
71
71
 
72
72
  const BASE = 'inline-flex items-center justify-center rounded-md border font-medium w-fit whitespace-nowrap shrink-0 [&>svg]:size-3 gap-1 [&>svg]:pointer-events-none focus-visible:border-ring focus-visible:ring-ring/50 focus-visible:ring-[3px] aria-invalid:ring-destructive/20 dark:aria-invalid:ring-destructive/40 aria-invalid:border-destructive transition-[color,box-shadow] overflow-hidden';
73
- const SIZES$1 = {
73
+ const SIZES$2 = {
74
74
  sm: 'px-1.5 py-px text-[0.625rem]',
75
75
  default: 'px-2 py-0.5 text-xs',
76
76
  lg: 'px-3 py-1 text-sm [&>svg]:size-3.5',
@@ -144,7 +144,7 @@ class BuiBadge {
144
144
  computedClass = computed(() => {
145
145
  const tone = this.tone();
146
146
  const toneOrVariant = tone === null ? brandClass(this.variant()) : TONES$1[tone][intensityFor(this.variant())];
147
- return cn(BASE, SIZES$1[this.size()], toneOrVariant, this.userClass());
147
+ return cn(BASE, SIZES$2[this.size()], toneOrVariant, this.userClass());
148
148
  }, /* @ts-ignore */
149
149
  ...(ngDevMode ? [{ debugName: "computedClass" }] : /* istanbul ignore next */ []));
150
150
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiBadge, deps: [], target: i0.ɵɵFactoryTarget.Directive });
@@ -2343,7 +2343,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
2343
2343
  }]
2344
2344
  }], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2345
2345
 
2346
- const SIZES = {
2346
+ const SIZES$1 = {
2347
2347
  sm: 'max-w-3xl',
2348
2348
  md: 'max-w-5xl',
2349
2349
  lg: 'max-w-6xl',
@@ -2356,7 +2356,7 @@ class BuiContainer {
2356
2356
  size = input('lg', /* @ts-ignore */
2357
2357
  ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
2358
2358
  userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
2359
- computedClass = computed(() => cn('mx-auto w-full px-4 sm:px-6 lg:px-8', SIZES[this.size()], this.userClass()), /* @ts-ignore */
2359
+ computedClass = computed(() => cn('mx-auto w-full px-4 sm:px-6 lg:px-8', SIZES$1[this.size()], this.userClass()), /* @ts-ignore */
2360
2360
  ...(ngDevMode ? [{ debugName: "computedClass" }] : /* istanbul ignore next */ []));
2361
2361
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiContainer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2362
2362
  static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: BuiContainer, isStandalone: true, selector: "[buiContainer]", inputs: { size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "container" }, properties: { "class": "computedClass()" } }, ngImport: i0 });
@@ -2909,6 +2909,230 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
2909
2909
  }]
2910
2910
  }], propDecorators: { tone: [{ type: i0.Input, args: [{ isSignal: true, alias: "tone", required: false }] }], dismissible: [{ type: i0.Input, args: [{ isSignal: true, alias: "dismissible", required: false }] }], persistKey: [{ type: i0.Input, args: [{ isSignal: true, alias: "persistKey", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2911
2911
 
2912
+ /** Scroll/border wrapper around a table. `variant="card"` adds a bordered card. */
2913
+ class BuiTableContainer {
2914
+ variant = input('default', /* @ts-ignore */
2915
+ ...(ngDevMode ? [{ debugName: "variant" }] : /* istanbul ignore next */ []));
2916
+ userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
2917
+ computedClass = computed(() => cn('relative w-full overflow-x-auto', this.variant() === 'card' && 'rounded-lg border bg-card shadow-xs', this.userClass()), /* @ts-ignore */
2918
+ ...(ngDevMode ? [{ debugName: "computedClass" }] : /* istanbul ignore next */ []));
2919
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableContainer, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2920
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: BuiTableContainer, isStandalone: true, selector: "[buiTableContainer]", inputs: { variant: { classPropertyName: "variant", publicName: "variant", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "table-container" }, properties: { "attr.data-variant": "variant()", "class": "computedClass()" } }, ngImport: i0 });
2921
+ }
2922
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableContainer, decorators: [{
2923
+ type: Directive,
2924
+ args: [{
2925
+ selector: '[buiTableContainer]',
2926
+ host: {
2927
+ 'data-slot': 'table-container',
2928
+ '[attr.data-variant]': 'variant()',
2929
+ '[class]': 'computedClass()',
2930
+ },
2931
+ }]
2932
+ }], propDecorators: { variant: [{ type: i0.Input, args: [{ isSignal: true, alias: "variant", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2933
+ class BuiTable {
2934
+ userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
2935
+ computedClass = computed(() => cn('w-full caption-bottom text-sm', this.userClass()), /* @ts-ignore */
2936
+ ...(ngDevMode ? [{ debugName: "computedClass" }] : /* istanbul ignore next */ []));
2937
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTable, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2938
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: BuiTable, isStandalone: true, selector: "table[buiTable]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "table" }, properties: { "class": "computedClass()" } }, ngImport: i0 });
2939
+ }
2940
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTable, decorators: [{
2941
+ type: Directive,
2942
+ args: [{
2943
+ selector: 'table[buiTable]',
2944
+ host: { 'data-slot': 'table', '[class]': 'computedClass()' },
2945
+ }]
2946
+ }], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2947
+ class BuiTableHeader {
2948
+ userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
2949
+ computedClass = computed(() => cn('[&_tr]:border-b', this.userClass()), /* @ts-ignore */
2950
+ ...(ngDevMode ? [{ debugName: "computedClass" }] : /* istanbul ignore next */ []));
2951
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableHeader, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2952
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: BuiTableHeader, isStandalone: true, selector: "thead[buiTableHeader]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "table-header" }, properties: { "class": "computedClass()" } }, ngImport: i0 });
2953
+ }
2954
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableHeader, decorators: [{
2955
+ type: Directive,
2956
+ args: [{
2957
+ selector: 'thead[buiTableHeader]',
2958
+ host: { 'data-slot': 'table-header', '[class]': 'computedClass()' },
2959
+ }]
2960
+ }], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2961
+ class BuiTableBody {
2962
+ userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
2963
+ computedClass = computed(() => cn('[&_tr:last-child]:border-0', this.userClass()), /* @ts-ignore */
2964
+ ...(ngDevMode ? [{ debugName: "computedClass" }] : /* istanbul ignore next */ []));
2965
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableBody, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2966
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: BuiTableBody, isStandalone: true, selector: "tbody[buiTableBody]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "table-body" }, properties: { "class": "computedClass()" } }, ngImport: i0 });
2967
+ }
2968
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableBody, decorators: [{
2969
+ type: Directive,
2970
+ args: [{
2971
+ selector: 'tbody[buiTableBody]',
2972
+ host: { 'data-slot': 'table-body', '[class]': 'computedClass()' },
2973
+ }]
2974
+ }], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2975
+ class BuiTableFooter {
2976
+ userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
2977
+ computedClass = computed(() => cn('border-t bg-muted/50 font-medium [&>tr]:last:border-b-0', this.userClass()), /* @ts-ignore */
2978
+ ...(ngDevMode ? [{ debugName: "computedClass" }] : /* istanbul ignore next */ []));
2979
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableFooter, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2980
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: BuiTableFooter, isStandalone: true, selector: "tfoot[buiTableFooter]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "table-footer" }, properties: { "class": "computedClass()" } }, ngImport: i0 });
2981
+ }
2982
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableFooter, decorators: [{
2983
+ type: Directive,
2984
+ args: [{
2985
+ selector: 'tfoot[buiTableFooter]',
2986
+ host: { 'data-slot': 'table-footer', '[class]': 'computedClass()' },
2987
+ }]
2988
+ }], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
2989
+ class BuiTableRow {
2990
+ userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
2991
+ computedClass = computed(() => cn('border-b transition-colors hover:bg-muted/50 data-[state=selected]:bg-muted', this.userClass()), /* @ts-ignore */
2992
+ ...(ngDevMode ? [{ debugName: "computedClass" }] : /* istanbul ignore next */ []));
2993
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableRow, deps: [], target: i0.ɵɵFactoryTarget.Directive });
2994
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: BuiTableRow, isStandalone: true, selector: "tr[buiTableRow]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "table-row" }, properties: { "class": "computedClass()" } }, ngImport: i0 });
2995
+ }
2996
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableRow, decorators: [{
2997
+ type: Directive,
2998
+ args: [{
2999
+ selector: 'tr[buiTableRow]',
3000
+ host: { 'data-slot': 'table-row', '[class]': 'computedClass()' },
3001
+ }]
3002
+ }], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3003
+ class BuiTableHead {
3004
+ userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
3005
+ computedClass = computed(() => cn('h-10 px-2 text-left align-middle font-medium whitespace-nowrap text-foreground [&:has([role=checkbox])]:pr-0', this.userClass()), /* @ts-ignore */
3006
+ ...(ngDevMode ? [{ debugName: "computedClass" }] : /* istanbul ignore next */ []));
3007
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableHead, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3008
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: BuiTableHead, isStandalone: true, selector: "th[buiTableHead]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "table-head", "scope": "col" }, properties: { "class": "computedClass()" } }, ngImport: i0 });
3009
+ }
3010
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableHead, decorators: [{
3011
+ type: Directive,
3012
+ args: [{
3013
+ selector: 'th[buiTableHead]',
3014
+ host: { 'data-slot': 'table-head', scope: 'col', '[class]': 'computedClass()' },
3015
+ }]
3016
+ }], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3017
+ class BuiTableCell {
3018
+ userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
3019
+ computedClass = computed(() => cn('p-2 align-middle whitespace-nowrap [&:has([role=checkbox])]:pr-0', this.userClass()), /* @ts-ignore */
3020
+ ...(ngDevMode ? [{ debugName: "computedClass" }] : /* istanbul ignore next */ []));
3021
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableCell, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3022
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: BuiTableCell, isStandalone: true, selector: "td[buiTableCell]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "table-cell" }, properties: { "class": "computedClass()" } }, ngImport: i0 });
3023
+ }
3024
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableCell, decorators: [{
3025
+ type: Directive,
3026
+ args: [{
3027
+ selector: 'td[buiTableCell]',
3028
+ host: { 'data-slot': 'table-cell', '[class]': 'computedClass()' },
3029
+ }]
3030
+ }], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3031
+ class BuiTableCaption {
3032
+ userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
3033
+ computedClass = computed(() => cn('mt-4 text-sm text-muted-foreground', this.userClass()), /* @ts-ignore */
3034
+ ...(ngDevMode ? [{ debugName: "computedClass" }] : /* istanbul ignore next */ []));
3035
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableCaption, deps: [], target: i0.ɵɵFactoryTarget.Directive });
3036
+ static ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "17.1.0", version: "22.0.2", type: BuiTableCaption, isStandalone: true, selector: "caption[buiTableCaption]", inputs: { userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "table-caption" }, properties: { "class": "computedClass()" } }, ngImport: i0 });
3037
+ }
3038
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiTableCaption, decorators: [{
3039
+ type: Directive,
3040
+ args: [{
3041
+ selector: 'caption[buiTableCaption]',
3042
+ host: { 'data-slot': 'table-caption', '[class]': 'computedClass()' },
3043
+ }]
3044
+ }], propDecorators: { userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3045
+
3046
+ const SIZES = {
3047
+ sm: { box: 'size-6', overlap: '-ms-2', ring: 'ring-1', text: 'text-xs' },
3048
+ default: { box: 'size-8', overlap: '-ms-2.5', ring: 'ring-2', text: 'text-sm' },
3049
+ lg: { box: 'size-12', overlap: '-ms-3', ring: 'ring-2', text: 'text-base' },
3050
+ };
3051
+ function initials(name) {
3052
+ const trimmed = (name ?? '').trim();
3053
+ if (trimmed === '') {
3054
+ return '?';
3055
+ }
3056
+ const parts = trimmed.split(/\s+/);
3057
+ const first = parts[0].charAt(0);
3058
+ const last = parts.length > 1 ? (parts.at(-1)?.charAt(0) ?? '') : '';
3059
+ return (first + last).toUpperCase();
3060
+ }
3061
+ /** Overlapping stack of avatars with an optional "+N" overflow counter. */
3062
+ class BuiAvatarGroup {
3063
+ avatars = input([], /* @ts-ignore */
3064
+ ...(ngDevMode ? [{ debugName: "avatars" }] : /* istanbul ignore next */ []));
3065
+ max = input(4, /* @ts-ignore */
3066
+ ...(ngDevMode ? [{ debugName: "max" }] : /* istanbul ignore next */ []));
3067
+ size = input('default', /* @ts-ignore */
3068
+ ...(ngDevMode ? [{ debugName: "size" }] : /* istanbul ignore next */ []));
3069
+ userClass = input('', { ...(ngDevMode ? { debugName: "userClass" } : /* istanbul ignore next */ {}), alias: 'class' });
3070
+ shown = computed(() => this.avatars().slice(0, Math.max(0, this.max())), /* @ts-ignore */
3071
+ ...(ngDevMode ? [{ debugName: "shown" }] : /* istanbul ignore next */ []));
3072
+ remaining = computed(() => Math.max(0, this.avatars().length - this.shown().length), /* @ts-ignore */
3073
+ ...(ngDevMode ? [{ debugName: "remaining" }] : /* istanbul ignore next */ []));
3074
+ computedClass = computed(() => cn('flex items-center', this.userClass()), /* @ts-ignore */
3075
+ ...(ngDevMode ? [{ debugName: "computedClass" }] : /* istanbul ignore next */ []));
3076
+ toInitials = initials;
3077
+ itemClass(index) {
3078
+ const size = SIZES[this.size()];
3079
+ return cn(size.box, size.ring, 'ring-background', index > 0 && size.overlap);
3080
+ }
3081
+ moreClass() {
3082
+ const size = SIZES[this.size()];
3083
+ return cn('relative z-10 flex shrink-0 items-center justify-center rounded-full bg-muted font-medium text-foreground', size.box, size.ring, 'ring-background', size.text, this.shown().length > 0 && size.overlap);
3084
+ }
3085
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiAvatarGroup, deps: [], target: i0.ɵɵFactoryTarget.Component });
3086
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.2", type: BuiAvatarGroup, isStandalone: true, selector: "bui-avatar-group", inputs: { avatars: { classPropertyName: "avatars", publicName: "avatars", isSignal: true, isRequired: false, transformFunction: null }, max: { classPropertyName: "max", publicName: "max", isSignal: true, isRequired: false, transformFunction: null }, size: { classPropertyName: "size", publicName: "size", isSignal: true, isRequired: false, transformFunction: null }, userClass: { classPropertyName: "userClass", publicName: "class", isSignal: true, isRequired: false, transformFunction: null } }, host: { attributes: { "data-slot": "avatar-group", "role": "list" }, properties: { "class": "computedClass()" } }, ngImport: i0, template: `
3087
+ @for (avatar of shown(); track $index) {
3088
+ <bui-avatar
3089
+ role="listitem"
3090
+ [src]="avatar.src ?? null"
3091
+ [alt]="avatar.name ?? 'User avatar'"
3092
+ [class]="itemClass($index)"
3093
+ >{{ toInitials(avatar.name) }}</bui-avatar
3094
+ >
3095
+ }
3096
+ @if (remaining() > 0) {
3097
+ <span
3098
+ role="listitem"
3099
+ [attr.aria-label]="'and ' + remaining() + ' more'"
3100
+ [class]="moreClass()"
3101
+ >
3102
+ <span aria-hidden="true">+{{ remaining() }}</span>
3103
+ </span>
3104
+ }
3105
+ `, isInline: true, dependencies: [{ kind: "component", type: BuiAvatar, selector: "bui-avatar", inputs: ["src", "alt", "class"] }] });
3106
+ }
3107
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImport: i0, type: BuiAvatarGroup, decorators: [{
3108
+ type: Component,
3109
+ args: [{
3110
+ selector: 'bui-avatar-group',
3111
+ imports: [BuiAvatar],
3112
+ host: { 'data-slot': 'avatar-group', role: 'list', '[class]': 'computedClass()' },
3113
+ template: `
3114
+ @for (avatar of shown(); track $index) {
3115
+ <bui-avatar
3116
+ role="listitem"
3117
+ [src]="avatar.src ?? null"
3118
+ [alt]="avatar.name ?? 'User avatar'"
3119
+ [class]="itemClass($index)"
3120
+ >{{ toInitials(avatar.name) }}</bui-avatar
3121
+ >
3122
+ }
3123
+ @if (remaining() > 0) {
3124
+ <span
3125
+ role="listitem"
3126
+ [attr.aria-label]="'and ' + remaining() + ' more'"
3127
+ [class]="moreClass()"
3128
+ >
3129
+ <span aria-hidden="true">+{{ remaining() }}</span>
3130
+ </span>
3131
+ }
3132
+ `,
3133
+ }]
3134
+ }], propDecorators: { avatars: [{ type: i0.Input, args: [{ isSignal: true, alias: "avatars", required: false }] }], max: [{ type: i0.Input, args: [{ isSignal: true, alias: "max", required: false }] }], size: [{ type: i0.Input, args: [{ isSignal: true, alias: "size", required: false }] }], userClass: [{ type: i0.Input, args: [{ isSignal: true, alias: "class", required: false }] }] } });
3135
+
2912
3136
  /*
2913
3137
  * Public API Surface of ng-blatui
2914
3138
  */
@@ -2917,5 +3141,5 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.2", ngImpor
2917
3141
  * Generated bundle index. Do not edit.
2918
3142
  */
2919
3143
 
2920
- export { BuiAccordion, BuiAccordionContent, BuiAccordionItem, BuiAccordionTrigger, BuiAlert, BuiAlertDescription, BuiAlertTitle, BuiAspectRatio, BuiAvatar, BuiBadge, BuiBanner, BuiBreadcrumb, BuiBreadcrumbEllipsis, BuiBreadcrumbItem, BuiBreadcrumbLink, BuiBreadcrumbList, BuiBreadcrumbPage, BuiBreadcrumbSeparator, BuiButton, BuiButtonGroup, BuiButtonGroupText, BuiCard, BuiCardAction, BuiCardContent, BuiCardDescription, BuiCardFooter, BuiCardHeader, BuiCardTitle, BuiCheckbox, BuiCollapsible, BuiCollapsibleContent, BuiCollapsibleTrigger, BuiContainer, BuiCopyButton, BuiDialogContent, BuiDialogDescription, BuiDialogFooter, BuiDialogHeader, BuiDialogTitle, BuiEmpty, BuiEmptyContent, BuiEmptyDescription, BuiEmptyHeader, BuiEmptyMedia, BuiEmptyTitle, BuiField, BuiFieldContent, BuiFieldDescription, BuiFieldError, BuiFieldGroup, BuiFieldLabel, BuiFieldLegend, BuiFieldSeparator, BuiFieldSet, BuiFieldTitle, BuiInput, BuiKbd, BuiLabel, BuiProgress, BuiRadioGroup, BuiRadioGroupItem, BuiSeparator, BuiSkeleton, BuiSpinner, BuiSwitch, BuiTabList, BuiTabPanel, BuiTabTrigger, BuiTabs, BuiTextarea, BuiThemeCustomizer, BuiToggle, BuiTooltip, BuiTooltipContent, THEME_TOKENS, ThemeStore, buttonVariants, cn, toggleVariants };
3144
+ export { BuiAccordion, BuiAccordionContent, BuiAccordionItem, BuiAccordionTrigger, BuiAlert, BuiAlertDescription, BuiAlertTitle, BuiAspectRatio, BuiAvatar, BuiAvatarGroup, BuiBadge, BuiBanner, BuiBreadcrumb, BuiBreadcrumbEllipsis, BuiBreadcrumbItem, BuiBreadcrumbLink, BuiBreadcrumbList, BuiBreadcrumbPage, BuiBreadcrumbSeparator, BuiButton, BuiButtonGroup, BuiButtonGroupText, BuiCard, BuiCardAction, BuiCardContent, BuiCardDescription, BuiCardFooter, BuiCardHeader, BuiCardTitle, BuiCheckbox, BuiCollapsible, BuiCollapsibleContent, BuiCollapsibleTrigger, BuiContainer, BuiCopyButton, BuiDialogContent, BuiDialogDescription, BuiDialogFooter, BuiDialogHeader, BuiDialogTitle, BuiEmpty, BuiEmptyContent, BuiEmptyDescription, BuiEmptyHeader, BuiEmptyMedia, BuiEmptyTitle, BuiField, BuiFieldContent, BuiFieldDescription, BuiFieldError, BuiFieldGroup, BuiFieldLabel, BuiFieldLegend, BuiFieldSeparator, BuiFieldSet, BuiFieldTitle, BuiInput, BuiKbd, BuiLabel, BuiProgress, BuiRadioGroup, BuiRadioGroupItem, BuiSeparator, BuiSkeleton, BuiSpinner, BuiSwitch, BuiTabList, BuiTabPanel, BuiTabTrigger, BuiTable, BuiTableBody, BuiTableCaption, BuiTableCell, BuiTableContainer, BuiTableFooter, BuiTableHead, BuiTableHeader, BuiTableRow, BuiTabs, BuiTextarea, BuiThemeCustomizer, BuiToggle, BuiTooltip, BuiTooltipContent, THEME_TOKENS, ThemeStore, buttonVariants, cn, toggleVariants };
2921
3145
  //# sourceMappingURL=ng-blatui.mjs.map