@coreui/angular-pro 4.4.6 → 4.4.8

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.
@@ -4737,6 +4737,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
4737
4737
  class FormCheckComponent {
4738
4738
  constructor() {
4739
4739
  this._inline = false;
4740
+ this._reverse = false;
4740
4741
  /**
4741
4742
  * Size the component large or extra large. Works only with `[switch]="true"` [docs]
4742
4743
  * @type {'lg' | 'xl' | ''}
@@ -4757,10 +4758,22 @@ class FormCheckComponent {
4757
4758
  return this._inline;
4758
4759
  }
4759
4760
  /**
4760
- * Render a toggle switch on for checkbox.
4761
- * @type boolean
4762
- * @default false
4763
- */
4761
+ * Put checkboxes or radios on the opposite side.
4762
+ * @type boolean
4763
+ * @default false
4764
+ * @since 4.4.7
4765
+ */
4766
+ set reverse(value) {
4767
+ this._reverse = coerceBooleanProperty(value);
4768
+ }
4769
+ get reverse() {
4770
+ return this._reverse;
4771
+ }
4772
+ /**
4773
+ * Render a toggle switch on for checkbox.
4774
+ * @type boolean
4775
+ * @default false
4776
+ */
4764
4777
  set switch(value) {
4765
4778
  this._switch = coerceBooleanProperty(value);
4766
4779
  }
@@ -4772,7 +4785,8 @@ class FormCheckComponent {
4772
4785
  'form-check': this.formCheckClass,
4773
4786
  'form-switch': this.switch,
4774
4787
  [`form-switch-${this.sizing}`]: this.switch && !!this.sizing,
4775
- 'form-check-inline': this.inline
4788
+ 'form-check-inline': this.inline,
4789
+ 'form-check-reverse': this.reverse
4776
4790
  };
4777
4791
  }
4778
4792
  get formCheckClass() {
@@ -4783,7 +4797,7 @@ class FormCheckComponent {
4783
4797
  }
4784
4798
  }
4785
4799
  FormCheckComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FormCheckComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
4786
- FormCheckComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: FormCheckComponent, isStandalone: true, selector: "c-form-check", inputs: { inline: "inline", sizing: "sizing", switch: "switch" }, host: { properties: { "class": "this.hostClasses" } }, queries: [{ propertyName: "formCheckLabel", first: true, predicate: FormCheckLabelDirective, descendants: true }], exportAs: ["cFormCheck"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
4800
+ FormCheckComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: FormCheckComponent, isStandalone: true, selector: "c-form-check", inputs: { inline: "inline", reverse: "reverse", sizing: "sizing", switch: "switch" }, host: { properties: { "class": "this.hostClasses" } }, queries: [{ propertyName: "formCheckLabel", first: true, predicate: FormCheckLabelDirective, descendants: true }], exportAs: ["cFormCheck"], ngImport: i0, template: '<ng-content></ng-content>', isInline: true });
4787
4801
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: FormCheckComponent, decorators: [{
4788
4802
  type: Component,
4789
4803
  args: [{
@@ -4794,6 +4808,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImpor
4794
4808
  }]
4795
4809
  }], propDecorators: { inline: [{
4796
4810
  type: Input
4811
+ }], reverse: [{
4812
+ type: Input
4797
4813
  }], sizing: [{
4798
4814
  type: Input
4799
4815
  }], switch: [{
@@ -14845,6 +14861,7 @@ class TabPaneComponent {
14845
14861
  this.changeDetectorRef = changeDetectorRef;
14846
14862
  this.tabService = tabService;
14847
14863
  this._active = false;
14864
+ this.subscribeTabService();
14848
14865
  }
14849
14866
  set active(value) {
14850
14867
  const newValue = coerceBooleanProperty(value);
@@ -14864,9 +14881,6 @@ class TabPaneComponent {
14864
14881
  active: this.active
14865
14882
  };
14866
14883
  }
14867
- ngOnInit() {
14868
- this.subscribeTabService();
14869
- }
14870
14884
  ngOnDestroy() {
14871
14885
  this.subscribeTabService(false);
14872
14886
  }
@@ -14879,15 +14893,17 @@ class TabPaneComponent {
14879
14893
  });
14880
14894
  }
14881
14895
  else {
14882
- this.tabServiceSubscription.unsubscribe();
14896
+ this.tabServiceSubscription?.unsubscribe();
14883
14897
  }
14884
14898
  }
14885
14899
  }
14886
14900
  TabPaneComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: TabPaneComponent, deps: [{ token: i0.ChangeDetectorRef }, { token: TabService }], target: i0.ɵɵFactoryTarget.Component });
14887
- TabPaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: TabPaneComponent, isStandalone: true, selector: "c-tab-pane", host: { properties: { "class": "this.hostClasses" } }, exportAs: ["cTabPane"], ngImport: i0, template: `<ng-content></ng-content>`, isInline: true, styles: [":host{display:block}\n"] });
14901
+ TabPaneComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.2.8", type: TabPaneComponent, isStandalone: true, selector: "c-tab-pane", host: { properties: { "class": "this.hostClasses" } }, exportAs: ["cTabPane"], ngImport: i0, template: `
14902
+ <ng-content></ng-content>`, isInline: true, styles: [":host{display:block}\n"] });
14888
14903
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.2.8", ngImport: i0, type: TabPaneComponent, decorators: [{
14889
14904
  type: Component,
14890
- args: [{ selector: 'c-tab-pane', template: `<ng-content></ng-content>`, exportAs: 'cTabPane', standalone: true, styles: [":host{display:block}\n"] }]
14905
+ args: [{ selector: 'c-tab-pane', template: `
14906
+ <ng-content></ng-content>`, exportAs: 'cTabPane', standalone: true, styles: [":host{display:block}\n"] }]
14891
14907
  }], ctorParameters: function () { return [{ type: i0.ChangeDetectorRef }, { type: TabService }]; }, propDecorators: { hostClasses: [{
14892
14908
  type: HostBinding,
14893
14909
  args: ['class']
@@ -14953,7 +14969,7 @@ class TabContentComponent {
14953
14969
  });
14954
14970
  }
14955
14971
  else {
14956
- this.tabServiceSubscription.unsubscribe();
14972
+ this.tabServiceSubscription?.unsubscribe();
14957
14973
  }
14958
14974
  }
14959
14975
  refreshTabPaneActive(idx) {
@@ -14991,6 +15007,7 @@ class TabContentRefDirective {
14991
15007
  * @type number
14992
15008
  */
14993
15009
  this.tabPaneIdx = -1;
15010
+ this.subscribeTabService();
14994
15011
  }
14995
15012
  /**
14996
15013
  * Set active state of tab content
@@ -15052,9 +15069,6 @@ class TabContentRefDirective {
15052
15069
  }
15053
15070
  });
15054
15071
  }
15055
- ngOnInit() {
15056
- this.subscribeTabService();
15057
- }
15058
15072
  ngOnDestroy() {
15059
15073
  this.subscribeTabService(false);
15060
15074
  }
@@ -15067,7 +15081,7 @@ class TabContentRefDirective {
15067
15081
  });
15068
15082
  }
15069
15083
  else {
15070
- this.tabServiceSubscription.unsubscribe();
15084
+ this.tabServiceSubscription?.unsubscribe();
15071
15085
  }
15072
15086
  }
15073
15087
  }