@skyux/docs-tools 6.0.0-beta.4 → 6.0.0-beta.5
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/esm2020/modules/demo/demo-control-panel-checkbox.component.mjs +3 -3
- package/esm2020/modules/demo/demo-control-panel-radio-group.component.mjs +14 -6
- package/fesm2015/skyux-docs-tools.mjs +14 -7
- package/fesm2015/skyux-docs-tools.mjs.map +1 -1
- package/fesm2020/skyux-docs-tools.mjs +14 -7
- package/fesm2020/skyux-docs-tools.mjs.map +1 -1
- package/modules/demo/demo-control-panel-checkbox.component.d.ts +2 -2
- package/modules/demo/demo-control-panel-radio-group.component.d.ts +3 -2
- package/package.json +12 -12
|
@@ -16,7 +16,7 @@ import * as i4 from '@skyux/tabs';
|
|
|
16
16
|
import { SkyVerticalTabsetModule, SkyTabsModule } from '@skyux/tabs';
|
|
17
17
|
import * as i8 from '@skyux/i18n';
|
|
18
18
|
import { getLibStringForLocale, SkyI18nModule, SKY_LIB_RESOURCES_PROVIDERS } from '@skyux/i18n';
|
|
19
|
-
import { Subject, merge } from 'rxjs';
|
|
19
|
+
import { Subject, ReplaySubject, merge } from 'rxjs';
|
|
20
20
|
import { takeUntil, map, share } from 'rxjs/operators';
|
|
21
21
|
import * as i1 from '@skyux/theme';
|
|
22
22
|
import { SkyThemeModule } from '@skyux/theme';
|
|
@@ -25,6 +25,7 @@ import * as i2$3 from '@angular/forms';
|
|
|
25
25
|
import { FormsModule } from '@angular/forms';
|
|
26
26
|
import * as i1$2 from '@skyux/forms';
|
|
27
27
|
import { SkyCheckboxModule, SkyRadioModule } from '@skyux/forms';
|
|
28
|
+
import { __classPrivateFieldGet, __classPrivateFieldSet } from 'tslib';
|
|
28
29
|
import * as i6$1 from '@blackbaud/skyux-lib-stache';
|
|
29
30
|
import { StachePageSummaryModule, StacheWrapperModule } from '@blackbaud/skyux-lib-stache';
|
|
30
31
|
import * as i1$3 from '@angular/router';
|
|
@@ -34,7 +35,6 @@ import * as i6 from '@blackbaud/skyux-lib-clipboard';
|
|
|
34
35
|
import { SkyClipboardModule } from '@blackbaud/skyux-lib-clipboard';
|
|
35
36
|
import * as i5 from '@skyux/popovers';
|
|
36
37
|
import { SkyPopoverModule } from '@skyux/popovers';
|
|
37
|
-
import { __classPrivateFieldSet, __classPrivateFieldGet } from 'tslib';
|
|
38
38
|
import * as i1$4 from '@angular/platform-browser';
|
|
39
39
|
import * as i2$4 from '@skyux/core';
|
|
40
40
|
import { SkyMediaBreakpoints } from '@skyux/core';
|
|
@@ -687,7 +687,7 @@ class SkyDocsDemoControlPanelCheckboxComponent {
|
|
|
687
687
|
* Indicates whether to disable the checkbox.
|
|
688
688
|
*/
|
|
689
689
|
this.disabled = false;
|
|
690
|
-
this.selectionChange = new
|
|
690
|
+
this.selectionChange = new ReplaySubject();
|
|
691
691
|
this.initialState = {};
|
|
692
692
|
}
|
|
693
693
|
/**
|
|
@@ -743,6 +743,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
743
743
|
type: Input
|
|
744
744
|
}] } });
|
|
745
745
|
|
|
746
|
+
var _SkyDocsDemoControlPanelRadioGroupComponent_instances, _SkyDocsDemoControlPanelRadioGroupComponent_notifyChange;
|
|
746
747
|
/**
|
|
747
748
|
* Renders a radio control group.
|
|
748
749
|
* @example
|
|
@@ -763,6 +764,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImpo
|
|
|
763
764
|
class SkyDocsDemoControlPanelRadioGroupComponent {
|
|
764
765
|
constructor(changeDetector) {
|
|
765
766
|
this.changeDetector = changeDetector;
|
|
767
|
+
_SkyDocsDemoControlPanelRadioGroupComponent_instances.add(this);
|
|
766
768
|
/**
|
|
767
769
|
* Indicates whether to disable the radio group.
|
|
768
770
|
*/
|
|
@@ -770,22 +772,22 @@ class SkyDocsDemoControlPanelRadioGroupComponent {
|
|
|
770
772
|
/**
|
|
771
773
|
* @internal
|
|
772
774
|
*/
|
|
773
|
-
this.selectionChange = new
|
|
775
|
+
this.selectionChange = new ReplaySubject();
|
|
774
776
|
}
|
|
775
777
|
ngOnInit() {
|
|
776
778
|
this.value = this.cloneValue(this.initialValue);
|
|
779
|
+
__classPrivateFieldGet(this, _SkyDocsDemoControlPanelRadioGroupComponent_instances, "m", _SkyDocsDemoControlPanelRadioGroupComponent_notifyChange).call(this);
|
|
777
780
|
}
|
|
778
781
|
ngOnDestroy() {
|
|
779
782
|
this.selectionChange.complete();
|
|
780
783
|
}
|
|
781
784
|
onModelChange(value) {
|
|
782
785
|
this.value = value;
|
|
783
|
-
this.
|
|
784
|
-
[this.propertyName]: this.value,
|
|
785
|
-
});
|
|
786
|
+
__classPrivateFieldGet(this, _SkyDocsDemoControlPanelRadioGroupComponent_instances, "m", _SkyDocsDemoControlPanelRadioGroupComponent_notifyChange).call(this);
|
|
786
787
|
}
|
|
787
788
|
resetValue() {
|
|
788
789
|
this.value = this.cloneValue(this.initialValue);
|
|
790
|
+
__classPrivateFieldGet(this, _SkyDocsDemoControlPanelRadioGroupComponent_instances, "m", _SkyDocsDemoControlPanelRadioGroupComponent_notifyChange).call(this);
|
|
789
791
|
this.changeDetector.markForCheck();
|
|
790
792
|
}
|
|
791
793
|
cloneValue(value) {
|
|
@@ -795,6 +797,11 @@ class SkyDocsDemoControlPanelRadioGroupComponent {
|
|
|
795
797
|
return value;
|
|
796
798
|
}
|
|
797
799
|
}
|
|
800
|
+
_SkyDocsDemoControlPanelRadioGroupComponent_instances = new WeakSet(), _SkyDocsDemoControlPanelRadioGroupComponent_notifyChange = function _SkyDocsDemoControlPanelRadioGroupComponent_notifyChange() {
|
|
801
|
+
this.selectionChange.next({
|
|
802
|
+
[this.propertyName]: this.value,
|
|
803
|
+
});
|
|
804
|
+
};
|
|
798
805
|
SkyDocsDemoControlPanelRadioGroupComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SkyDocsDemoControlPanelRadioGroupComponent, deps: [{ token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
799
806
|
SkyDocsDemoControlPanelRadioGroupComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.11", type: SkyDocsDemoControlPanelRadioGroupComponent, selector: "sky-docs-demo-control-panel-radio-group", inputs: { choices: "choices", disabled: "disabled", heading: "heading", initialValue: "initialValue", propertyName: "propertyName" }, ngImport: i0, template: "<div class=\"sky-demo-control-panel-radio-group\">\n <strong *ngIf=\"heading\">{{ heading }}</strong>\n <sky-radio-group\n [disabled]=\"disabled\"\n [name]=\"propertyName\"\n [ngModel]=\"value\"\n (ngModelChange)=\"onModelChange($event)\"\n >\n <ul class=\"sky-list-unstyled\">\n <li *ngFor=\"let choice of choices\">\n <sky-radio [value]=\"choice.value\">\n <sky-radio-label>{{ choice.label }}</sky-radio-label>\n </sky-radio>\n </li>\n </ul>\n </sky-radio-group>\n</div>\n", styles: [".sky-demo-control-panel-radio-group{margin-bottom:20px}ul{margin:0}\n"], components: [{ type: i1$2.λ11, selector: "sky-radio-group", inputs: ["ariaLabelledBy", "ariaLabel", "disabled", "name", "required", "value", "tabIndex"] }, { type: i1$2.λ13, selector: "sky-radio", inputs: ["checked", "disabled", "id", "label", "labelledBy", "name", "tabindex", "value", "icon", "radioType"], outputs: ["change", "checkedChange", "disabledChange"] }, { type: i1$2.λ12, selector: "sky-radio-label" }], directives: [{ type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2$3.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i2$3.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
|
|
800
807
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.11", ngImport: i0, type: SkyDocsDemoControlPanelRadioGroupComponent, decorators: [{
|