@coreui/angular-pro 5.5.19 → 5.5.20

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.
@@ -1284,7 +1284,7 @@ class SpinnerComponent {
1284
1284
  label = input('Loading...', ...(ngDevMode ? [{ debugName: "label" }] : []));
1285
1285
  /**
1286
1286
  * Size the component small.
1287
- * @type string
1287
+ * @return string
1288
1288
  * @values 'sm'
1289
1289
  */
1290
1290
  size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
@@ -1301,10 +1301,13 @@ class SpinnerComponent {
1301
1301
  */
1302
1302
  role = input('status', ...(ngDevMode ? [{ debugName: "role" }] : []));
1303
1303
  hostClasses = computed(() => {
1304
+ const color = this.color();
1305
+ const size = this.size();
1306
+ const variant = this.variant();
1304
1307
  return {
1305
- [`spinner-${this.variant()}`]: true,
1306
- [`text-${this.color()}`]: !!this.color(),
1307
- [`spinner-${this.variant()}-${this.size()}`]: !!this.size()
1308
+ [`spinner-${variant}`]: true,
1309
+ [`text-${color}`]: !!color,
1310
+ [`spinner-${variant}-${size}`]: !!size
1308
1311
  };
1309
1312
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
1310
1313
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -4552,12 +4555,12 @@ class ButtonDirective {
4552
4555
  disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
4553
4556
  /**
4554
4557
  * Select the shape of the component.
4555
- * @type InputSignal<Shapes>
4558
+ * @return Shapes
4556
4559
  */
4557
4560
  shape = input(...(ngDevMode ? [undefined, { debugName: "shape" }] : []));
4558
4561
  /**
4559
4562
  * Size the component small or large.
4560
- * @type InputSignal<'sm' | 'lg' | ''>
4563
+ * @return sm' | 'lg' | ''
4561
4564
  */
4562
4565
  size = input('', ...(ngDevMode ? [{ debugName: "size" }] : []));
4563
4566
  /**
@@ -4577,13 +4580,17 @@ class ButtonDirective {
4577
4580
  */
4578
4581
  variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
4579
4582
  hostClasses = computed(() => {
4583
+ const color = this.color();
4584
+ const variant = this.variant();
4585
+ const size = this.size();
4586
+ const shape = this.shape();
4580
4587
  return {
4581
4588
  btn: true,
4582
- [`btn-${this.color()}`]: !!this.color() && !this.variant(),
4583
- [`btn-${this.variant()}`]: !!this.variant() && !this.color(),
4584
- [`btn-${this.variant()}-${this.color()}`]: !!this.variant() && !!this.color(),
4585
- [`btn-${this.size()}`]: !!this.size(),
4586
- [`${this.shape()}`]: !!this.shape(),
4589
+ [`btn-${color}`]: !!color && !variant,
4590
+ [`btn-${variant}`]: !!variant && !color,
4591
+ [`btn-${variant}-${color}`]: !!variant && !!color,
4592
+ [`btn-${size}`]: !!size,
4593
+ [`${shape}`]: !!shape,
4587
4594
  active: this.active(),
4588
4595
  disabled: this._disabled()
4589
4596
  };
@@ -4629,11 +4636,12 @@ class ButtonCloseDirective extends ButtonDirective {
4629
4636
  */
4630
4637
  white = input(false, ...(ngDevMode ? [{ debugName: "white", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
4631
4638
  hostClasses = computed(() => {
4639
+ const size = this.size();
4632
4640
  return {
4633
4641
  btn: true,
4634
4642
  'btn-close': true,
4635
4643
  'btn-close-white': this.white(),
4636
- [`btn-${this.size()}`]: !!this.size(),
4644
+ [`btn-${size}`]: !!size,
4637
4645
  active: this.active(),
4638
4646
  disabled: this._disabled()
4639
4647
  };
@@ -5200,11 +5208,14 @@ class AvatarComponent {
5200
5208
  };
5201
5209
  }, ...(ngDevMode ? [{ debugName: "statusClass" }] : []));
5202
5210
  hostClasses = computed(() => {
5211
+ const size = this.size();
5212
+ const color = this.color();
5213
+ const shape = this.shape();
5203
5214
  return {
5204
5215
  avatar: true,
5205
- [`avatar-${this.size()}`]: !!this.size(),
5206
- [`bg-${this.color()}`]: !!this.color(),
5207
- [`${this.shape()}`]: !!this.shape()
5216
+ [`avatar-${size}`]: !!size,
5217
+ [`bg-${color}`]: !!color,
5218
+ [`${shape}`]: !!shape
5208
5219
  };
5209
5220
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
5210
5221
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -5280,11 +5291,14 @@ class BadgeComponent {
5280
5291
  'start-100': position?.includes('end'),
5281
5292
  'start-0': position?.includes('start')
5282
5293
  };
5294
+ const color = this.color();
5295
+ const size = this.size();
5296
+ const shape = this.shape();
5283
5297
  return Object.assign({
5284
5298
  badge: true,
5285
- [`bg-${this.color()}`]: !!this.color(),
5286
- [`badge-${this.size()}`]: !!this.size(),
5287
- [`${this.shape()}`]: !!this.shape()
5299
+ [`bg-${color}`]: !!color,
5300
+ [`badge-${size}`]: !!size,
5301
+ [`${shape}`]: !!shape
5288
5302
  }, !!position ? positionClasses : {});
5289
5303
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
5290
5304
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -5566,7 +5580,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImpor
5566
5580
  class ButtonGroupComponent {
5567
5581
  /**
5568
5582
  * Size the component small or large.
5569
- * @type { 'sm' | 'lg' }
5583
+ * @return { 'sm' | 'lg' }
5570
5584
  */
5571
5585
  size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
5572
5586
  /**
@@ -5576,15 +5590,17 @@ class ButtonGroupComponent {
5576
5590
  vertical = input(false, ...(ngDevMode ? [{ debugName: "vertical", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
5577
5591
  /**
5578
5592
  * Default role attr for ButtonGroup. [docs]
5579
- * @type InputSignal<string>
5593
+ * @return string
5580
5594
  * @default 'group'
5581
5595
  */
5582
5596
  role = input('group', ...(ngDevMode ? [{ debugName: "role" }] : []));
5583
5597
  hostClasses = computed(() => {
5598
+ const size = this.size();
5599
+ const vertical = this.vertical();
5584
5600
  return {
5585
- 'btn-group': !this.vertical(),
5586
- 'btn-group-vertical': this.vertical(),
5587
- [`btn-group-${this.size()}`]: !!this.size()
5601
+ 'btn-group': !vertical,
5602
+ 'btn-group-vertical': vertical,
5603
+ [`btn-group-${size}`]: !!size
5588
5604
  };
5589
5605
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
5590
5606
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: ButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -11023,14 +11039,15 @@ class FooterComponent {
11023
11039
  position = input(...(ngDevMode ? [undefined, { debugName: "position" }] : []));
11024
11040
  /**
11025
11041
  * Default role for footer. [docs]
11026
- * @type string
11042
+ * @return string
11027
11043
  * @default 'contentinfo'
11028
11044
  */
11029
11045
  role = input('contentinfo', ...(ngDevMode ? [{ debugName: "role" }] : []));
11030
11046
  hostClasses = computed(() => {
11047
+ const position = this.position();
11031
11048
  return {
11032
11049
  footer: true,
11033
- [`footer-${this.position()}`]: !!this.position()
11050
+ [`footer-${position}`]: !!position
11034
11051
  };
11035
11052
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
11036
11053
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -11691,12 +11708,13 @@ class ListGroupItemDirective {
11691
11708
  tabindex = input(undefined, ...(ngDevMode ? [{ debugName: "tabindex", transform: numberAttribute }] : [{ transform: numberAttribute }]));
11692
11709
  hostClasses = computed(() => {
11693
11710
  const host = this.hostElement.nativeElement;
11711
+ const color = this.color();
11694
11712
  return {
11695
11713
  'list-group-item': true,
11696
11714
  'list-group-item-action': host.nodeName === 'A' || host.nodeName === 'BUTTON',
11697
11715
  active: this.active(),
11698
11716
  disabled: this._disabled(),
11699
- [`list-group-item-${this.color()}`]: !!this.color()
11717
+ [`list-group-item-${color}`]: !!color
11700
11718
  };
11701
11719
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
11702
11720
  _disabled = computed(() => this.disabled(), ...(ngDevMode ? [{ debugName: "_disabled" }] : []));
@@ -11797,14 +11815,17 @@ class LoadingButtonComponent extends ButtonDirective {
11797
11815
  super();
11798
11816
  }
11799
11817
  hostClasses = computed(() => {
11818
+ const color = this.color();
11819
+ const size = this.size();
11820
+ const variant = this.variant();
11800
11821
  return {
11801
11822
  btn: true,
11802
11823
  'btn-loading': true,
11803
11824
  'is-loading': this.loading(),
11804
- [`btn-${this.color()}`]: !!this.color() && !this.variant(),
11805
- [`btn-${this.variant()}`]: !!this.variant() && !this.color(),
11806
- [`btn-${this.variant()}-${this.color()}`]: !!this.variant() && !!this.color(),
11807
- [`btn-${this.size()}`]: !!this.size(),
11825
+ [`btn-${color}`]: !!color && !variant,
11826
+ [`btn-${variant}`]: !!variant && !color,
11827
+ [`btn-${variant}-${color}`]: !!variant && !!color,
11828
+ [`btn-${size}`]: !!size,
11808
11829
  active: this.active(),
11809
11830
  disabled: this._disabled()
11810
11831
  };
@@ -13287,9 +13308,10 @@ class PlaceholderDirective {
13287
13308
  return this.visible() ? null : true;
13288
13309
  }, ...(ngDevMode ? [{ debugName: "ariaHidden" }] : []));
13289
13310
  hostClasses = computed(() => {
13311
+ const size = this.size();
13290
13312
  return {
13291
13313
  placeholder: this.visible(),
13292
- [`placeholder-${this.size()}`]: !!this.size()
13314
+ [`placeholder-${size}`]: !!size
13293
13315
  };
13294
13316
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
13295
13317
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: PlaceholderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
@@ -13318,8 +13340,9 @@ class PlaceholderAnimationDirective {
13318
13340
  }]));
13319
13341
  placeholder = contentChild(PlaceholderDirective, ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
13320
13342
  hostClasses = computed(() => {
13343
+ const animation = this.animation();
13321
13344
  return {
13322
- [`placeholder-${this.animation()}`]: this.placeholder()?.visible() && !!this.animation()
13345
+ [`placeholder-${animation}`]: this.placeholder()?.visible() && !!animation
13323
13346
  };
13324
13347
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
13325
13348
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: PlaceholderAnimationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
@@ -14262,7 +14285,7 @@ class RatingComponent {
14262
14285
  * @returns: 'sm' | 'lg' | 'custom' | undefined
14263
14286
  * @default: undefined
14264
14287
  */
14265
- size = input(undefined, ...(ngDevMode ? [{ debugName: "size" }] : []));
14288
+ size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
14266
14289
  /**
14267
14290
  * Enable tooltips with default values or set specific labels for each icon.
14268
14291
  * @returns: boolean | string[] | undefined
@@ -18532,11 +18555,15 @@ class TabsListComponent {
18532
18555
  * @default 'tablist'
18533
18556
  */
18534
18557
  role = input('tablist', ...(ngDevMode ? [{ debugName: "role" }] : []));
18535
- hostClasses = computed(() => ({
18536
- nav: true,
18537
- [`nav-${this.layout()}`]: this.layout(),
18538
- [`nav-${this.variant()}`]: this.variant()
18539
- }), ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
18558
+ hostClasses = computed(() => {
18559
+ const layout = this.layout();
18560
+ const variant = this.variant();
18561
+ return {
18562
+ nav: true,
18563
+ [`nav-${layout}`]: layout,
18564
+ [`nav-${variant}`]: variant
18565
+ };
18566
+ }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
18540
18567
  tabs = contentChildren(TabDirective, ...(ngDevMode ? [{ debugName: "tabs" }] : []));
18541
18568
  #focusKeyManager;
18542
18569
  #tabsEffect = effect(() => {