@coreui/angular 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.
@@ -532,12 +532,12 @@ class ButtonDirective {
532
532
  disabled = input(false, ...(ngDevMode ? [{ debugName: "disabled", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
533
533
  /**
534
534
  * Select the shape of the component.
535
- * @type InputSignal<Shapes>
535
+ * @return Shapes
536
536
  */
537
537
  shape = input(...(ngDevMode ? [undefined, { debugName: "shape" }] : []));
538
538
  /**
539
539
  * Size the component small or large.
540
- * @type InputSignal<'sm' | 'lg' | ''>
540
+ * @return sm' | 'lg' | ''
541
541
  */
542
542
  size = input('', ...(ngDevMode ? [{ debugName: "size" }] : []));
543
543
  /**
@@ -557,13 +557,17 @@ class ButtonDirective {
557
557
  */
558
558
  variant = input(...(ngDevMode ? [undefined, { debugName: "variant" }] : []));
559
559
  hostClasses = computed(() => {
560
+ const color = this.color();
561
+ const variant = this.variant();
562
+ const size = this.size();
563
+ const shape = this.shape();
560
564
  return {
561
565
  btn: true,
562
- [`btn-${this.color()}`]: !!this.color() && !this.variant(),
563
- [`btn-${this.variant()}`]: !!this.variant() && !this.color(),
564
- [`btn-${this.variant()}-${this.color()}`]: !!this.variant() && !!this.color(),
565
- [`btn-${this.size()}`]: !!this.size(),
566
- [`${this.shape()}`]: !!this.shape(),
566
+ [`btn-${color}`]: !!color && !variant,
567
+ [`btn-${variant}`]: !!variant && !color,
568
+ [`btn-${variant}-${color}`]: !!variant && !!color,
569
+ [`btn-${size}`]: !!size,
570
+ [`${shape}`]: !!shape,
567
571
  active: this.active(),
568
572
  disabled: this._disabled()
569
573
  };
@@ -609,11 +613,12 @@ class ButtonCloseDirective extends ButtonDirective {
609
613
  */
610
614
  white = input(false, ...(ngDevMode ? [{ debugName: "white", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
611
615
  hostClasses = computed(() => {
616
+ const size = this.size();
612
617
  return {
613
618
  btn: true,
614
619
  'btn-close': true,
615
620
  'btn-close-white': this.white(),
616
- [`btn-${this.size()}`]: !!this.size(),
621
+ [`btn-${size}`]: !!size,
617
622
  active: this.active(),
618
623
  disabled: this._disabled()
619
624
  };
@@ -1180,11 +1185,14 @@ class AvatarComponent {
1180
1185
  };
1181
1186
  }, ...(ngDevMode ? [{ debugName: "statusClass" }] : []));
1182
1187
  hostClasses = computed(() => {
1188
+ const size = this.size();
1189
+ const color = this.color();
1190
+ const shape = this.shape();
1183
1191
  return {
1184
1192
  avatar: true,
1185
- [`avatar-${this.size()}`]: !!this.size(),
1186
- [`bg-${this.color()}`]: !!this.color(),
1187
- [`${this.shape()}`]: !!this.shape()
1193
+ [`avatar-${size}`]: !!size,
1194
+ [`bg-${color}`]: !!color,
1195
+ [`${shape}`]: !!shape
1188
1196
  };
1189
1197
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
1190
1198
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: AvatarComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -1260,11 +1268,14 @@ class BadgeComponent {
1260
1268
  'start-100': position?.includes('end'),
1261
1269
  'start-0': position?.includes('start')
1262
1270
  };
1271
+ const color = this.color();
1272
+ const size = this.size();
1273
+ const shape = this.shape();
1263
1274
  return Object.assign({
1264
1275
  badge: true,
1265
- [`bg-${this.color()}`]: !!this.color(),
1266
- [`badge-${this.size()}`]: !!this.size(),
1267
- [`${this.shape()}`]: !!this.shape()
1276
+ [`bg-${color}`]: !!color,
1277
+ [`badge-${size}`]: !!size,
1278
+ [`${shape}`]: !!shape
1268
1279
  }, !!position ? positionClasses : {});
1269
1280
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
1270
1281
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: BadgeComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -1546,7 +1557,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.9", ngImpor
1546
1557
  class ButtonGroupComponent {
1547
1558
  /**
1548
1559
  * Size the component small or large.
1549
- * @type { 'sm' | 'lg' }
1560
+ * @return { 'sm' | 'lg' }
1550
1561
  */
1551
1562
  size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
1552
1563
  /**
@@ -1556,15 +1567,17 @@ class ButtonGroupComponent {
1556
1567
  vertical = input(false, ...(ngDevMode ? [{ debugName: "vertical", transform: booleanAttribute }] : [{ transform: booleanAttribute }]));
1557
1568
  /**
1558
1569
  * Default role attr for ButtonGroup. [docs]
1559
- * @type InputSignal<string>
1570
+ * @return string
1560
1571
  * @default 'group'
1561
1572
  */
1562
1573
  role = input('group', ...(ngDevMode ? [{ debugName: "role" }] : []));
1563
1574
  hostClasses = computed(() => {
1575
+ const size = this.size();
1576
+ const vertical = this.vertical();
1564
1577
  return {
1565
- 'btn-group': !this.vertical(),
1566
- 'btn-group-vertical': this.vertical(),
1567
- [`btn-group-${this.size()}`]: !!this.size()
1578
+ 'btn-group': !vertical,
1579
+ 'btn-group-vertical': vertical,
1580
+ [`btn-group-${size}`]: !!size
1568
1581
  };
1569
1582
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
1570
1583
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: ButtonGroupComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -3522,14 +3535,15 @@ class FooterComponent {
3522
3535
  position = input(...(ngDevMode ? [undefined, { debugName: "position" }] : []));
3523
3536
  /**
3524
3537
  * Default role for footer. [docs]
3525
- * @type string
3538
+ * @return string
3526
3539
  * @default 'contentinfo'
3527
3540
  */
3528
3541
  role = input('contentinfo', ...(ngDevMode ? [{ debugName: "role" }] : []));
3529
3542
  hostClasses = computed(() => {
3543
+ const position = this.position();
3530
3544
  return {
3531
3545
  footer: true,
3532
- [`footer-${this.position()}`]: !!this.position()
3546
+ [`footer-${position}`]: !!position
3533
3547
  };
3534
3548
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
3535
3549
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: FooterComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -4613,12 +4627,13 @@ class ListGroupItemDirective {
4613
4627
  tabindex = input(undefined, ...(ngDevMode ? [{ debugName: "tabindex", transform: numberAttribute }] : [{ transform: numberAttribute }]));
4614
4628
  hostClasses = computed(() => {
4615
4629
  const host = this.hostElement.nativeElement;
4630
+ const color = this.color();
4616
4631
  return {
4617
4632
  'list-group-item': true,
4618
4633
  'list-group-item-action': host.nodeName === 'A' || host.nodeName === 'BUTTON',
4619
4634
  active: this.active(),
4620
4635
  disabled: this._disabled(),
4621
- [`list-group-item-${this.color()}`]: !!this.color()
4636
+ [`list-group-item-${color}`]: !!color
4622
4637
  };
4623
4638
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
4624
4639
  _disabled = computed(() => this.disabled(), ...(ngDevMode ? [{ debugName: "_disabled" }] : []));
@@ -6019,9 +6034,10 @@ class PlaceholderDirective {
6019
6034
  return this.visible() ? null : true;
6020
6035
  }, ...(ngDevMode ? [{ debugName: "ariaHidden" }] : []));
6021
6036
  hostClasses = computed(() => {
6037
+ const size = this.size();
6022
6038
  return {
6023
6039
  placeholder: this.visible(),
6024
- [`placeholder-${this.size()}`]: !!this.size()
6040
+ [`placeholder-${size}`]: !!size
6025
6041
  };
6026
6042
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
6027
6043
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: PlaceholderDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
@@ -6050,8 +6066,9 @@ class PlaceholderAnimationDirective {
6050
6066
  }]));
6051
6067
  placeholder = contentChild(PlaceholderDirective, ...(ngDevMode ? [{ debugName: "placeholder" }] : []));
6052
6068
  hostClasses = computed(() => {
6069
+ const animation = this.animation();
6053
6070
  return {
6054
- [`placeholder-${this.animation()}`]: this.placeholder()?.visible() && !!this.animation()
6071
+ [`placeholder-${animation}`]: this.placeholder()?.visible() && !!animation
6055
6072
  };
6056
6073
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
6057
6074
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: PlaceholderAnimationDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
@@ -7657,7 +7674,7 @@ class SpinnerComponent {
7657
7674
  label = input('Loading...', ...(ngDevMode ? [{ debugName: "label" }] : []));
7658
7675
  /**
7659
7676
  * Size the component small.
7660
- * @type string
7677
+ * @return string
7661
7678
  * @values 'sm'
7662
7679
  */
7663
7680
  size = input(...(ngDevMode ? [undefined, { debugName: "size" }] : []));
@@ -7674,10 +7691,13 @@ class SpinnerComponent {
7674
7691
  */
7675
7692
  role = input('status', ...(ngDevMode ? [{ debugName: "role" }] : []));
7676
7693
  hostClasses = computed(() => {
7694
+ const color = this.color();
7695
+ const size = this.size();
7696
+ const variant = this.variant();
7677
7697
  return {
7678
- [`spinner-${this.variant()}`]: true,
7679
- [`text-${this.color()}`]: !!this.color(),
7680
- [`spinner-${this.variant()}-${this.size()}`]: !!this.size()
7698
+ [`spinner-${variant}`]: true,
7699
+ [`text-${color}`]: !!color,
7700
+ [`spinner-${variant}-${size}`]: !!size
7681
7701
  };
7682
7702
  }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
7683
7703
  static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.9", ngImport: i0, type: SpinnerComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
@@ -8395,11 +8415,15 @@ class TabsListComponent {
8395
8415
  * @default 'tablist'
8396
8416
  */
8397
8417
  role = input('tablist', ...(ngDevMode ? [{ debugName: "role" }] : []));
8398
- hostClasses = computed(() => ({
8399
- nav: true,
8400
- [`nav-${this.layout()}`]: this.layout(),
8401
- [`nav-${this.variant()}`]: this.variant()
8402
- }), ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
8418
+ hostClasses = computed(() => {
8419
+ const layout = this.layout();
8420
+ const variant = this.variant();
8421
+ return {
8422
+ nav: true,
8423
+ [`nav-${layout}`]: layout,
8424
+ [`nav-${variant}`]: variant
8425
+ };
8426
+ }, ...(ngDevMode ? [{ debugName: "hostClasses" }] : []));
8403
8427
  tabs = contentChildren(TabDirective, ...(ngDevMode ? [{ debugName: "tabs" }] : []));
8404
8428
  #focusKeyManager;
8405
8429
  #tabsEffect = effect(() => {