@ng-nest/ui 15.0.0 → 15.0.1
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/checkbox/checkbox.component.d.ts +2 -0
- package/checkbox/checkbox.property.d.ts +21 -1
- package/esm2020/anchor/anchor.component.mjs +1 -2
- package/esm2020/checkbox/checkbox.component.mjs +10 -4
- package/esm2020/checkbox/checkbox.property.mjs +6 -2
- package/esm2020/input/input.property.mjs +6 -2
- package/esm2020/radio/radio.component.mjs +11 -4
- package/esm2020/radio/radio.module.mjs +5 -4
- package/esm2020/radio/radio.property.mjs +6 -2
- package/fesm2015/ng-nest-ui-affix.mjs +1 -0
- package/fesm2015/ng-nest-ui-alert.mjs +1 -0
- package/fesm2015/ng-nest-ui-anchor.mjs +0 -1
- package/fesm2015/ng-nest-ui-anchor.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-api.mjs +1 -0
- package/fesm2015/ng-nest-ui-auto-complete.mjs +1 -0
- package/fesm2015/ng-nest-ui-avatar.mjs +1 -0
- package/fesm2015/ng-nest-ui-back-top.mjs +1 -0
- package/fesm2015/ng-nest-ui-badge.mjs +1 -0
- package/fesm2015/ng-nest-ui-base-form.mjs +1 -0
- package/fesm2015/ng-nest-ui-border.mjs +1 -0
- package/fesm2015/ng-nest-ui-button.mjs +1 -0
- package/fesm2015/ng-nest-ui-calendar.mjs +1 -0
- package/fesm2015/ng-nest-ui-card.mjs +1 -0
- package/fesm2015/ng-nest-ui-carousel.mjs +1 -0
- package/fesm2015/ng-nest-ui-cascade.mjs +1 -0
- package/fesm2015/ng-nest-ui-checkbox.mjs +14 -4
- package/fesm2015/ng-nest-ui-checkbox.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-collapse.mjs +1 -0
- package/fesm2015/ng-nest-ui-color-picker.mjs +1 -0
- package/fesm2015/ng-nest-ui-color.mjs +1 -0
- package/fesm2015/ng-nest-ui-comment.mjs +1 -0
- package/fesm2015/ng-nest-ui-container.mjs +1 -0
- package/fesm2015/ng-nest-ui-core.mjs +1 -0
- package/fesm2015/ng-nest-ui-crumb.mjs +1 -0
- package/fesm2015/ng-nest-ui-date-picker.mjs +1 -0
- package/fesm2015/ng-nest-ui-description.mjs +1 -0
- package/fesm2015/ng-nest-ui-dialog.mjs +1 -0
- package/fesm2015/ng-nest-ui-doc.mjs +1 -0
- package/fesm2015/ng-nest-ui-drawer.mjs +1 -0
- package/fesm2015/ng-nest-ui-dropdown.mjs +1 -0
- package/fesm2015/ng-nest-ui-empty.mjs +1 -0
- package/fesm2015/ng-nest-ui-examples.mjs +1 -0
- package/fesm2015/ng-nest-ui-find.mjs +1 -0
- package/fesm2015/ng-nest-ui-form.mjs +1 -0
- package/fesm2015/ng-nest-ui-highlight.mjs +1 -0
- package/fesm2015/ng-nest-ui-i18n.mjs +1 -0
- package/fesm2015/ng-nest-ui-icon.mjs +1 -0
- package/fesm2015/ng-nest-ui-image.mjs +1 -0
- package/fesm2015/ng-nest-ui-inner.mjs +1 -0
- package/fesm2015/ng-nest-ui-input-number.mjs +1 -0
- package/fesm2015/ng-nest-ui-input.mjs +5 -1
- package/fesm2015/ng-nest-ui-input.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-keyword.mjs +1 -0
- package/fesm2015/ng-nest-ui-layout.mjs +1 -0
- package/fesm2015/ng-nest-ui-link.mjs +1 -0
- package/fesm2015/ng-nest-ui-list.mjs +1 -0
- package/fesm2015/ng-nest-ui-loading.mjs +1 -0
- package/fesm2015/ng-nest-ui-menu.mjs +1 -0
- package/fesm2015/ng-nest-ui-message-box.mjs +1 -0
- package/fesm2015/ng-nest-ui-message.mjs +1 -0
- package/fesm2015/ng-nest-ui-notification.mjs +1 -0
- package/fesm2015/ng-nest-ui-outlet.mjs +1 -0
- package/fesm2015/ng-nest-ui-page-header.mjs +1 -0
- package/fesm2015/ng-nest-ui-pagination.mjs +1 -0
- package/fesm2015/ng-nest-ui-pattern.mjs +1 -0
- package/fesm2015/ng-nest-ui-popconfirm.mjs +1 -0
- package/fesm2015/ng-nest-ui-popover.mjs +1 -0
- package/fesm2015/ng-nest-ui-portal.mjs +1 -0
- package/fesm2015/ng-nest-ui-progress.mjs +1 -0
- package/fesm2015/ng-nest-ui-radio.mjs +19 -7
- package/fesm2015/ng-nest-ui-radio.mjs.map +1 -1
- package/fesm2015/ng-nest-ui-rate.mjs +1 -0
- package/fesm2015/ng-nest-ui-resizable.mjs +1 -0
- package/fesm2015/ng-nest-ui-result.mjs +1 -0
- package/fesm2015/ng-nest-ui-ripple.mjs +1 -0
- package/fesm2015/ng-nest-ui-select.mjs +1 -0
- package/fesm2015/ng-nest-ui-skeleton.mjs +1 -0
- package/fesm2015/ng-nest-ui-slider-select.mjs +1 -0
- package/fesm2015/ng-nest-ui-slider.mjs +1 -0
- package/fesm2015/ng-nest-ui-statistic.mjs +1 -0
- package/fesm2015/ng-nest-ui-steps.mjs +1 -0
- package/fesm2015/ng-nest-ui-switch.mjs +1 -0
- package/fesm2015/ng-nest-ui-table.mjs +1 -0
- package/fesm2015/ng-nest-ui-tabs.mjs +1 -0
- package/fesm2015/ng-nest-ui-tag.mjs +1 -0
- package/fesm2015/ng-nest-ui-text-retract.mjs +1 -0
- package/fesm2015/ng-nest-ui-textarea.mjs +1 -0
- package/fesm2015/ng-nest-ui-theme.mjs +1 -0
- package/fesm2015/ng-nest-ui-time-ago.mjs +1 -0
- package/fesm2015/ng-nest-ui-time-picker.mjs +1 -0
- package/fesm2015/ng-nest-ui-time-range.mjs +1 -0
- package/fesm2015/ng-nest-ui-timeline.mjs +1 -0
- package/fesm2015/ng-nest-ui-tooltip.mjs +1 -0
- package/fesm2015/ng-nest-ui-transfer.mjs +1 -0
- package/fesm2015/ng-nest-ui-tree-file.mjs +1 -0
- package/fesm2015/ng-nest-ui-tree-select.mjs +1 -0
- package/fesm2015/ng-nest-ui-tree.mjs +1 -0
- package/fesm2015/ng-nest-ui-typography.mjs +1 -0
- package/fesm2015/ng-nest-ui-upload.mjs +1 -0
- package/fesm2015/ng-nest-ui.mjs +1 -0
- package/fesm2020/ng-nest-ui-affix.mjs +1 -0
- package/fesm2020/ng-nest-ui-alert.mjs +1 -0
- package/fesm2020/ng-nest-ui-anchor.mjs +0 -1
- package/fesm2020/ng-nest-ui-anchor.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-api.mjs +1 -0
- package/fesm2020/ng-nest-ui-auto-complete.mjs +1 -0
- package/fesm2020/ng-nest-ui-avatar.mjs +1 -0
- package/fesm2020/ng-nest-ui-back-top.mjs +1 -0
- package/fesm2020/ng-nest-ui-badge.mjs +1 -0
- package/fesm2020/ng-nest-ui-base-form.mjs +1 -0
- package/fesm2020/ng-nest-ui-border.mjs +1 -0
- package/fesm2020/ng-nest-ui-button.mjs +1 -0
- package/fesm2020/ng-nest-ui-calendar.mjs +1 -0
- package/fesm2020/ng-nest-ui-card.mjs +1 -0
- package/fesm2020/ng-nest-ui-carousel.mjs +1 -0
- package/fesm2020/ng-nest-ui-cascade.mjs +1 -0
- package/fesm2020/ng-nest-ui-checkbox.mjs +14 -4
- package/fesm2020/ng-nest-ui-checkbox.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-collapse.mjs +1 -0
- package/fesm2020/ng-nest-ui-color-picker.mjs +1 -0
- package/fesm2020/ng-nest-ui-color.mjs +1 -0
- package/fesm2020/ng-nest-ui-comment.mjs +1 -0
- package/fesm2020/ng-nest-ui-container.mjs +1 -0
- package/fesm2020/ng-nest-ui-core.mjs +1 -0
- package/fesm2020/ng-nest-ui-crumb.mjs +1 -0
- package/fesm2020/ng-nest-ui-date-picker.mjs +1 -0
- package/fesm2020/ng-nest-ui-description.mjs +1 -0
- package/fesm2020/ng-nest-ui-dialog.mjs +1 -0
- package/fesm2020/ng-nest-ui-doc.mjs +1 -0
- package/fesm2020/ng-nest-ui-drawer.mjs +1 -0
- package/fesm2020/ng-nest-ui-dropdown.mjs +1 -0
- package/fesm2020/ng-nest-ui-empty.mjs +1 -0
- package/fesm2020/ng-nest-ui-examples.mjs +1 -0
- package/fesm2020/ng-nest-ui-find.mjs +1 -0
- package/fesm2020/ng-nest-ui-form.mjs +1 -0
- package/fesm2020/ng-nest-ui-highlight.mjs +1 -0
- package/fesm2020/ng-nest-ui-i18n.mjs +1 -0
- package/fesm2020/ng-nest-ui-icon.mjs +1 -0
- package/fesm2020/ng-nest-ui-image.mjs +1 -0
- package/fesm2020/ng-nest-ui-inner.mjs +1 -0
- package/fesm2020/ng-nest-ui-input-number.mjs +1 -0
- package/fesm2020/ng-nest-ui-input.mjs +5 -1
- package/fesm2020/ng-nest-ui-input.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-keyword.mjs +1 -0
- package/fesm2020/ng-nest-ui-layout.mjs +1 -0
- package/fesm2020/ng-nest-ui-link.mjs +1 -0
- package/fesm2020/ng-nest-ui-list.mjs +1 -0
- package/fesm2020/ng-nest-ui-loading.mjs +1 -0
- package/fesm2020/ng-nest-ui-menu.mjs +1 -0
- package/fesm2020/ng-nest-ui-message-box.mjs +1 -0
- package/fesm2020/ng-nest-ui-message.mjs +1 -0
- package/fesm2020/ng-nest-ui-notification.mjs +1 -0
- package/fesm2020/ng-nest-ui-outlet.mjs +1 -0
- package/fesm2020/ng-nest-ui-page-header.mjs +1 -0
- package/fesm2020/ng-nest-ui-pagination.mjs +1 -0
- package/fesm2020/ng-nest-ui-pattern.mjs +1 -0
- package/fesm2020/ng-nest-ui-popconfirm.mjs +1 -0
- package/fesm2020/ng-nest-ui-popover.mjs +1 -0
- package/fesm2020/ng-nest-ui-portal.mjs +1 -0
- package/fesm2020/ng-nest-ui-progress.mjs +1 -0
- package/fesm2020/ng-nest-ui-radio.mjs +19 -7
- package/fesm2020/ng-nest-ui-radio.mjs.map +1 -1
- package/fesm2020/ng-nest-ui-rate.mjs +1 -0
- package/fesm2020/ng-nest-ui-resizable.mjs +1 -0
- package/fesm2020/ng-nest-ui-result.mjs +1 -0
- package/fesm2020/ng-nest-ui-ripple.mjs +1 -0
- package/fesm2020/ng-nest-ui-select.mjs +1 -0
- package/fesm2020/ng-nest-ui-skeleton.mjs +1 -0
- package/fesm2020/ng-nest-ui-slider-select.mjs +1 -0
- package/fesm2020/ng-nest-ui-slider.mjs +1 -0
- package/fesm2020/ng-nest-ui-statistic.mjs +1 -0
- package/fesm2020/ng-nest-ui-steps.mjs +1 -0
- package/fesm2020/ng-nest-ui-switch.mjs +1 -0
- package/fesm2020/ng-nest-ui-table.mjs +1 -0
- package/fesm2020/ng-nest-ui-tabs.mjs +1 -0
- package/fesm2020/ng-nest-ui-tag.mjs +1 -0
- package/fesm2020/ng-nest-ui-text-retract.mjs +1 -0
- package/fesm2020/ng-nest-ui-textarea.mjs +1 -0
- package/fesm2020/ng-nest-ui-theme.mjs +1 -0
- package/fesm2020/ng-nest-ui-time-ago.mjs +1 -0
- package/fesm2020/ng-nest-ui-time-picker.mjs +1 -0
- package/fesm2020/ng-nest-ui-time-range.mjs +1 -0
- package/fesm2020/ng-nest-ui-timeline.mjs +1 -0
- package/fesm2020/ng-nest-ui-tooltip.mjs +1 -0
- package/fesm2020/ng-nest-ui-transfer.mjs +1 -0
- package/fesm2020/ng-nest-ui-tree-file.mjs +1 -0
- package/fesm2020/ng-nest-ui-tree-select.mjs +1 -0
- package/fesm2020/ng-nest-ui-tree.mjs +1 -0
- package/fesm2020/ng-nest-ui-typography.mjs +1 -0
- package/fesm2020/ng-nest-ui-upload.mjs +1 -0
- package/fesm2020/ng-nest-ui.mjs +1 -0
- package/input/input.property.d.ts +11 -1
- package/package.json +1 -1
- package/radio/radio.component.d.ts +2 -0
- package/radio/radio.module.d.ts +3 -2
- package/radio/radio.property.d.ts +22 -2
|
@@ -221,3 +221,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
221
221
|
|
|
222
222
|
export { XColComponent, XColPrefix, XColProperty, XLayoutModule, XRowComponent, XRowPrefix, XRowProperty };
|
|
223
223
|
//# sourceMappingURL=ng-nest-ui-layout.mjs.map
|
|
224
|
+
//# sourceMappingURL=ng-nest-ui-layout.mjs.map
|
|
@@ -794,3 +794,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
794
794
|
|
|
795
795
|
export { XListComponent, XListDropGroup, XListModule, XListOptionComponent, XListOptionPrefix, XListOptionProperty, XListPrefix, XListProperty, X_LIST_DROP_GROUP };
|
|
796
796
|
//# sourceMappingURL=ng-nest-ui-list.mjs.map
|
|
797
|
+
//# sourceMappingURL=ng-nest-ui-list.mjs.map
|
|
@@ -165,3 +165,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
165
165
|
|
|
166
166
|
export { XLoadingComponent, XLoadingModule, XLoadingPrefix, XLoadingProperty };
|
|
167
167
|
//# sourceMappingURL=ng-nest-ui-loading.mjs.map
|
|
168
|
+
//# sourceMappingURL=ng-nest-ui-loading.mjs.map
|
|
@@ -367,3 +367,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
367
367
|
|
|
368
368
|
export { XMenuComponent, XMenuModule, XMenuNodeComponent, XMenuNodePrefix, XMenuNodeProperty, XMenuPrefix, XMenuProperty };
|
|
369
369
|
//# sourceMappingURL=ng-nest-ui-menu.mjs.map
|
|
370
|
+
//# sourceMappingURL=ng-nest-ui-menu.mjs.map
|
|
@@ -235,3 +235,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
235
235
|
|
|
236
236
|
export { XMessageBoxComponent, XMessageBoxModule, XMessageBoxPortal, XMessageBoxPrefix, XMessageBoxService };
|
|
237
237
|
//# sourceMappingURL=ng-nest-ui-message-box.mjs.map
|
|
238
|
+
//# sourceMappingURL=ng-nest-ui-message-box.mjs.map
|
|
@@ -225,3 +225,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
225
225
|
|
|
226
226
|
export { XMessageComponent, XMessageModule, XMessagePortal, XMessagePrefix, XMessageRef, XMessageService, X_MESSAGE_CONFIG_NAME };
|
|
227
227
|
//# sourceMappingURL=ng-nest-ui-message.mjs.map
|
|
228
|
+
//# sourceMappingURL=ng-nest-ui-message.mjs.map
|
|
@@ -174,3 +174,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
174
174
|
|
|
175
175
|
export { XNotificationComponent, XNotificationModule, XNotificationPortal, XNotificationPrefix, XNotificationService };
|
|
176
176
|
//# sourceMappingURL=ng-nest-ui-notification.mjs.map
|
|
177
|
+
//# sourceMappingURL=ng-nest-ui-notification.mjs.map
|
|
@@ -105,3 +105,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
105
105
|
|
|
106
106
|
export { XPageHeaderComponent, XPageHeaderModule, XPageHeaderPrefix, XPageHeaderProperty };
|
|
107
107
|
//# sourceMappingURL=ng-nest-ui-page-header.mjs.map
|
|
108
|
+
//# sourceMappingURL=ng-nest-ui-page-header.mjs.map
|
|
@@ -313,3 +313,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
313
313
|
|
|
314
314
|
export { XPaginationComponent, XPaginationModule, XPaginationPrefix, XPaginationProperty, XPaginationSizeData };
|
|
315
315
|
//# sourceMappingURL=ng-nest-ui-pagination.mjs.map
|
|
316
|
+
//# sourceMappingURL=ng-nest-ui-pagination.mjs.map
|
|
@@ -181,3 +181,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
181
181
|
|
|
182
182
|
export { XPopconfirmComponent, XPopconfirmModule, XPopconfirmPrefix, XPopconfirmProperty };
|
|
183
183
|
//# sourceMappingURL=ng-nest-ui-popconfirm.mjs.map
|
|
184
|
+
//# sourceMappingURL=ng-nest-ui-popconfirm.mjs.map
|
|
@@ -390,3 +390,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
390
390
|
|
|
391
391
|
export { XPopoverDirective, XPopoverModule, XPopoverPortalComponent, XPopoverPortalPrefix, XPopoverPrefix, XPopoverProperty };
|
|
392
392
|
//# sourceMappingURL=ng-nest-ui-popover.mjs.map
|
|
393
|
+
//# sourceMappingURL=ng-nest-ui-popover.mjs.map
|
|
@@ -231,3 +231,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
231
231
|
|
|
232
232
|
export { PortalPrefix, PortalResizablePrefix, XPortalConnectedPosition, XPortalModule, XPortalPlacement, XPortalService };
|
|
233
233
|
//# sourceMappingURL=ng-nest-ui-portal.mjs.map
|
|
234
|
+
//# sourceMappingURL=ng-nest-ui-portal.mjs.map
|
|
@@ -353,3 +353,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
353
353
|
|
|
354
354
|
export { XProgressComponent, XProgressModule, XProgressPrefix, XProgressProperty };
|
|
355
355
|
//# sourceMappingURL=ng-nest-ui-progress.mjs.map
|
|
356
|
+
//# sourceMappingURL=ng-nest-ui-progress.mjs.map
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as i0 from '@angular/core';
|
|
2
|
-
import { Component, Input, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, NgModule } from '@angular/core';
|
|
2
|
+
import { Component, Input, TemplateRef, ViewEncapsulation, ChangeDetectionStrategy, ViewChild, NgModule } from '@angular/core';
|
|
3
3
|
import { __decorate } from 'tslib';
|
|
4
4
|
import * as i1 from '@ng-nest/ui/core';
|
|
5
5
|
import { XDataConvert, XInputBoolean, XWithConfig, XIsChange, XClearClass, XSetData } from '@ng-nest/ui/core';
|
|
@@ -9,6 +9,8 @@ import * as i2 from '@angular/common';
|
|
|
9
9
|
import { CommonModule } from '@angular/common';
|
|
10
10
|
import * as i3 from '@ng-nest/ui/button';
|
|
11
11
|
import { XButtonModule } from '@ng-nest/ui/button';
|
|
12
|
+
import * as i4 from '@ng-nest/ui/outlet';
|
|
13
|
+
import { XOutletModule } from '@ng-nest/ui/outlet';
|
|
12
14
|
import { FormsModule } from '@angular/forms';
|
|
13
15
|
|
|
14
16
|
/**
|
|
@@ -37,7 +39,7 @@ class XRadioProperty extends XControlValueAccessor {
|
|
|
37
39
|
}
|
|
38
40
|
}
|
|
39
41
|
/** @nocollapse */ XRadioProperty.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XRadioProperty, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
40
|
-
/** @nocollapse */ XRadioProperty.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: XRadioProperty, selector: "ng-component", inputs: { data: "data", button: "button", icon: "icon", size: "size", type: "type" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
42
|
+
/** @nocollapse */ XRadioProperty.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: XRadioProperty, selector: "ng-component", inputs: { data: "data", button: "button", icon: "icon", size: "size", type: "type", before: "before", after: "after" }, usesInheritance: true, ngImport: i0, template: '', isInline: true });
|
|
41
43
|
__decorate([
|
|
42
44
|
XDataConvert()
|
|
43
45
|
], XRadioProperty.prototype, "data", void 0);
|
|
@@ -63,6 +65,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
63
65
|
type: Input
|
|
64
66
|
}], type: [{
|
|
65
67
|
type: Input
|
|
68
|
+
}], before: [{
|
|
69
|
+
type: Input
|
|
70
|
+
}], after: [{
|
|
71
|
+
type: Input
|
|
66
72
|
}] } });
|
|
67
73
|
|
|
68
74
|
class XRadioComponent extends XRadioProperty {
|
|
@@ -75,6 +81,12 @@ class XRadioComponent extends XRadioProperty {
|
|
|
75
81
|
this.nodes = [];
|
|
76
82
|
this._unSubject = new Subject();
|
|
77
83
|
}
|
|
84
|
+
get beforeIsTemplate() {
|
|
85
|
+
return this.before instanceof TemplateRef;
|
|
86
|
+
}
|
|
87
|
+
get afterIsTemplate() {
|
|
88
|
+
return this.after instanceof TemplateRef;
|
|
89
|
+
}
|
|
78
90
|
ngOnInit() {
|
|
79
91
|
this.setFlex(this.radio.nativeElement, this.renderer, this.justify, this.align, this.direction);
|
|
80
92
|
this.setClassMap();
|
|
@@ -121,10 +133,10 @@ class XRadioComponent extends XRadioProperty {
|
|
|
121
133
|
}
|
|
122
134
|
}
|
|
123
135
|
/** @nocollapse */ XRadioComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XRadioComponent, deps: [{ token: i0.Renderer2 }, { token: i0.ElementRef }, { token: i0.ChangeDetectorRef }, { token: i1.XConfigService }], target: i0.ɵɵFactoryTarget.Component });
|
|
124
|
-
/** @nocollapse */ XRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: XRadioComponent, selector: "x-radio", providers: [XValueAccessor(XRadioComponent)], viewQueries: [{ propertyName: "radio", first: true, predicate: ["radio"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\r\n #radio\r\n class=\"x-radio\"\r\n [class.x-flex]=\"justify || align || direction\"\r\n [class.x-disabled]=\"disabled\"\r\n [class.x-required]=\"requiredIsEmpty\"\r\n [class.x-invalid]=\"invalid\"\r\n>\r\n <label *ngIf=\"label\" [class.x-radio-label-required]=\"required\" [style.width]=\"labelWidth\" [ngClass]=\"labelMap\">{{ label }}</label>\r\n <ng-container *ngIf=\"button || icon; else default\">\r\n <x-buttons>\r\n <x-button\r\n *ngFor=\"let item of nodes; trackBy: trackByItem\"\r\n [icon]=\"item.icon\"\r\n [size]=\"size\"\r\n [type]=\"type\"\r\n [activated]=\"item.id === value\"\r\n [disabled]=\"disabled || item.disabled\"\r\n attrType=\"button\"\r\n (click)=\"radioClick($event, item)\"\r\n >{{ item.label }}</x-button\r\n >\r\n </x-buttons>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #default>\r\n <div class=\"x-radio-row\">\r\n <div\r\n class=\"x-radio-item\"\r\n *ngFor=\"let item of nodes; trackBy: trackByItem\"\r\n [class.x-checked]=\"item.id === value\"\r\n [class.x-disabled]=\"item.disabled\"\r\n (click)=\"radioClick($event, item)\"\r\n >\r\n <span class=\"x-radio-box\"></span>\r\n <span class=\"x-radio-label\">{{ item.label }}</span>\r\n </div>\r\n </div>\r\n</ng-template>\r\n", styles: [".x-radio{margin:0;padding:0;width:100%}.x-radio.x-flex{display:flex}.x-radio.x-justify-start{justify-content:flex-start}.x-radio.x-justify-center{justify-content:center}.x-radio.x-justify-end{justify-content:flex-end}.x-radio.x-justify-space-between{justify-content:space-between}.x-radio.x-justify-space-around{justify-content:space-around}.x-radio.x-align-start{align-items:flex-start}.x-radio.x-align-center{align-items:center}.x-radio.x-align-end{align-items:flex-end}.x-radio.x-direction-column{flex-direction:column}.x-radio.x-direction-column-reverse{flex-direction:column-reverse}.x-radio.x-direction-row{flex-direction:row}.x-radio.x-direction-row-reverse{flex-direction:row-reverse}.x-radio>label{display:inline-block;white-space:nowrap;height:calc(var(--x-font-size) + .875rem);line-height:calc(var(--x-font-size) + .875rem);position:relative;color:var(--x-text-300);font-weight:600}.x-radio>label.x-text-align-start{text-align:start}.x-radio>label.x-text-align-center{text-align:center}.x-radio>label.x-text-align-end{text-align:end}.x-radio-row{flex:1;align-items:center;position:relative;height:calc(var(--x-font-size) + .875rem);line-height:calc(var(--x-font-size) + .875rem)}.x-radio-item{position:relative;display:inline-flex;align-items:center;white-space:nowrap;outline:none;margin-right:.875rem;font-size:.875rem;cursor:pointer;transition:all .3s}.x-radio-item:hover{color:var(--x-primary)}.x-radio-item:hover .x-radio-box{border-color:var(--x-primary)}.x-radio-item:last-child{margin-right:0}.x-radio-item.x-checked .x-radio-box{border-color:var(--x-primary)}.x-radio-item.x-checked .x-radio-box:after{transform:scale(1);opacity:1}.x-radio-item.x-disabled{color:var(--x-text-400);cursor:not-allowed}.x-radio-item.x-disabled .x-radio-box{border-color:var(--x-border-100);background-color:var(--x-border-300)}.x-radio-item.x-disabled .x-radio-box:after{background-color:var(--x-text-400)}.x-radio-box{border:.0625rem solid var(--x-border);border-radius:100%;width:1rem;height:1rem;background-color:var(--x-background-a100);position:relative;box-sizing:border-box;transition:all .3s;display:inline-flex;align-items:center;justify-content:center}.x-radio-box:hover{border-color:var(--x-primary)}.x-radio-box:after{position:absolute;display:inline-block;width:.5rem;height:.5rem;background-color:var(--x-primary);border-radius:1rem;transform:scale(0);opacity:0;transition:all .3s cubic-bezier(.78,.14,.15,.86);content:\" \"}.x-radio-label{margin-left:.325rem}.x-radio-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-radio.x-disabled .x-radio-item{color:var(--x-text-400);cursor:not-allowed}.x-radio.x-disabled .x-radio-item .x-radio-box{border-color:var(--x-border-100);background-color:var(--x-border-300)}.x-radio.x-disabled .x-radio-item .x-radio-box:after{background-color:var(--x-text-400)}.x-radio.x-invalid>label,.x-radio.x-required>label{color:var(--x-danger)}.x-radio.x-direction-row>label{padding:0 .5rem 0 0}.x-radio.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-radio.x-direction-column,.x-radio.x-direction-column-reverse{align-items:inherit}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.XButtonComponent, selector: "x-button" }, { kind: "component", type: i3.XButtonsComponent, selector: "x-buttons" }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
136
|
+
/** @nocollapse */ XRadioComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.0", type: XRadioComponent, selector: "x-radio", providers: [XValueAccessor(XRadioComponent)], viewQueries: [{ propertyName: "radio", first: true, predicate: ["radio"], descendants: true, static: true }], usesInheritance: true, usesOnChanges: true, ngImport: i0, template: "<div\r\n #radio\r\n class=\"x-radio\"\r\n [class.x-flex]=\"justify || align || direction\"\r\n [class.x-disabled]=\"disabled\"\r\n [class.x-required]=\"requiredIsEmpty\"\r\n [class.x-invalid]=\"invalid\"\r\n [class.x-radio-button]=\"button\"\r\n [class.x-radio-icon]=\"icon\"\r\n [class.x-radio-after]=\"after\"\r\n [class.x-radio-before]=\"before\"\r\n [class.x-radio-after-template]=\"afterIsTemplate\"\r\n [class.x-radio-before-template]=\"beforeIsTemplate\"\r\n>\r\n <label *ngIf=\"label\" [class.x-radio-label-required]=\"required\" [style.width]=\"labelWidth\" [ngClass]=\"labelMap\">{{ label }}</label>\r\n <div class=\"x-radio-row\">\r\n <div class=\"x-radio-row-before\" *ngIf=\"before\">\r\n <ng-container *xOutlet=\"before\">{{ before }}</ng-container>\r\n </div>\r\n <div class=\"x-radio-row-list\">\r\n <ng-container *ngIf=\"button || icon; else default\">\r\n <x-buttons>\r\n <x-button\r\n *ngFor=\"let item of nodes; trackBy: trackByItem\"\r\n [icon]=\"item.icon\"\r\n [size]=\"size\"\r\n [type]=\"type\"\r\n [activated]=\"item.id === value\"\r\n [disabled]=\"disabled || item.disabled\"\r\n attrType=\"button\"\r\n (click)=\"radioClick($event, item)\"\r\n >{{ item.label }}</x-button\r\n >\r\n </x-buttons>\r\n </ng-container>\r\n </div>\r\n <div class=\"x-radio-row-after\" *ngIf=\"after\">\r\n <ng-container *xOutlet=\"after\">{{ after }}</ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #default>\r\n <div\r\n class=\"x-radio-row-item\"\r\n *ngFor=\"let item of nodes; trackBy: trackByItem\"\r\n [class.x-checked]=\"item.id === value\"\r\n [class.x-disabled]=\"item.disabled\"\r\n (click)=\"radioClick($event, item)\"\r\n >\r\n <span class=\"x-radio-box\"></span>\r\n <span class=\"x-radio-label\">{{ item.label }}</span>\r\n </div>\r\n</ng-template>\r\n", styles: [".x-radio{margin:0;padding:0;width:100%}.x-radio.x-flex{display:flex}.x-radio.x-justify-start{justify-content:flex-start}.x-radio.x-justify-center{justify-content:center}.x-radio.x-justify-end{justify-content:flex-end}.x-radio.x-justify-space-between{justify-content:space-between}.x-radio.x-justify-space-around{justify-content:space-around}.x-radio.x-align-start{align-items:flex-start}.x-radio.x-align-center{align-items:center}.x-radio.x-align-end{align-items:flex-end}.x-radio.x-direction-column{flex-direction:column}.x-radio.x-direction-column-reverse{flex-direction:column-reverse}.x-radio.x-direction-row{flex-direction:row}.x-radio.x-direction-row-reverse{flex-direction:row-reverse}.x-radio>label{display:inline-block;white-space:nowrap;height:calc(var(--x-font-size) + .875rem);line-height:calc(var(--x-font-size) + .875rem);position:relative;color:var(--x-text-300);font-weight:600}.x-radio>label.x-text-align-start{text-align:start}.x-radio>label.x-text-align-center{text-align:center}.x-radio>label.x-text-align-end{text-align:end}.x-radio-row{flex:1;display:flex;align-items:center;flex-wrap:wrap;height:calc(var(--x-font-size) + .875rem);line-height:calc(var(--x-font-size) + .875rem)}.x-radio-row .x-radio-row-before,.x-radio-row .x-radio-row-after{border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);background-color:var(--x-background-a100);padding:0 var(--x-padding-medium);height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-radio-row-list{position:relative;display:inline-flex;align-items:center}.x-radio-row-item{position:relative;display:inline-flex;align-items:center;white-space:nowrap;outline:none;margin-right:.875rem;font-size:.875rem;cursor:pointer;transition:all .3s}.x-radio-row-item:hover{color:var(--x-primary)}.x-radio-row-item:hover .x-radio-box{border-color:var(--x-primary)}.x-radio-row-item:last-child{margin-right:0}.x-radio-row-item.x-checked .x-radio-box{border-color:var(--x-primary)}.x-radio-row-item.x-checked .x-radio-box:after{transform:scale(1);opacity:1}.x-radio-row-item.x-disabled{color:var(--x-text-400);cursor:not-allowed}.x-radio-row-item.x-disabled .x-radio-box{border-color:var(--x-border-100);background-color:var(--x-border-300)}.x-radio-row-item.x-disabled .x-radio-box:after{background-color:var(--x-text-400)}.x-radio-button .x-radio-row-before,.x-radio-icon .x-radio-row-before{margin-right:0}.x-radio-button .x-radio-row-after,.x-radio-icon .x-radio-row-after{margin-left:0}.x-radio-box{border:.0625rem solid var(--x-border);border-radius:100%;width:1rem;height:1rem;background-color:var(--x-background-a100);position:relative;box-sizing:border-box;transition:all .3s;display:inline-flex;align-items:center;justify-content:center}.x-radio-box:hover{border-color:var(--x-primary)}.x-radio-box:after{position:absolute;display:inline-block;width:.5rem;height:.5rem;background-color:var(--x-primary);border-radius:1rem;transform:scale(0);opacity:0;transition:all .3s cubic-bezier(.78,.14,.15,.86);content:\" \"}.x-radio-label{margin-left:.325rem}.x-radio-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-radio-before:not(.x-radio-before-template,.x-radio-button,.x-radio-icon) .x-radio-row-before{margin-right:var(--x-padding-medium)}.x-radio-before.x-radio-button .x-buttons:not(.x-buttons-space)>x-button:first-child .x-button,.x-radio-before.x-radio-icon .x-buttons:not(.x-buttons-space)>x-button:first-child .x-button{border-top-left-radius:0;border-bottom-left-radius:0}.x-radio-before.x-radio-button .x-radio-row-before,.x-radio-before.x-radio-icon .x-radio-row-before{margin-right:0;border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-before-template .x-radio-row-before{display:contents}.x-radio-before-template .x-radio-row-list{margin-left:var(--x-padding-medium)}.x-radio-before-template.x-radio-button .x-radio-row-list,.x-radio-before-template.x-radio-icon .x-radio-row-list{margin-left:0}.x-radio-before-template.x-radio-button .x-radio-row-list .x-button,.x-radio-before-template.x-radio-icon .x-radio-row-list .x-button{margin-left:calc(var(--x-border-width) * -1)}.x-radio-before-template.x-radio-button .x-radio-row-list .x-button:hover,.x-radio-before-template.x-radio-button .x-radio-row-list .x-button:focus,.x-radio-before-template.x-radio-icon .x-radio-row-list .x-button:hover,.x-radio-before-template.x-radio-icon .x-radio-row-list .x-button:focus{z-index:1}.x-radio-before-template.x-radio-button .x-radio-row-before input:hover,.x-radio-before-template.x-radio-button .x-radio-row-before input:focus,.x-radio-before-template.x-radio-button .x-radio-row-before .x-button:hover,.x-radio-before-template.x-radio-button .x-radio-row-before .x-button:focus,.x-radio-before-template.x-radio-icon .x-radio-row-before input:hover,.x-radio-before-template.x-radio-icon .x-radio-row-before input:focus,.x-radio-before-template.x-radio-icon .x-radio-row-before .x-button:hover,.x-radio-before-template.x-radio-icon .x-radio-row-before .x-button:focus{z-index:1}.x-radio-before-template.x-radio-button .x-radio-row-before input,.x-radio-before-template.x-radio-button .x-radio-row-before .x-button,.x-radio-before-template.x-radio-icon .x-radio-row-before input,.x-radio-before-template.x-radio-icon .x-radio-row-before .x-button{border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-after:not(.x-radio-before-template,.x-radio-button,.x-radio-icon) .x-radio-row-after{margin-left:var(--x-padding-medium)}.x-radio-after.x-radio-button .x-buttons:not(.x-buttons-space)>x-button:last-child .x-button,.x-radio-after.x-radio-icon .x-buttons:not(.x-buttons-space)>x-button:last-child .x-button{border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-after.x-radio-button .x-radio-row-after,.x-radio-after.x-radio-icon .x-radio-row-after{margin-left:0;border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.x-radio-after-template .x-radio-row-after{display:contents}.x-radio-after-template .x-radio-row-list{margin-right:var(--x-padding-medium)}.x-radio-after-template.x-radio-button .x-radio-row-list,.x-radio-after-template.x-radio-icon .x-radio-row-list{margin-right:0}.x-radio-after-template.x-radio-button .x-radio-row-list .x-button,.x-radio-after-template.x-radio-icon .x-radio-row-list .x-button{margin-right:calc(var(--x-border-width) * -1)}.x-radio-after-template.x-radio-button .x-radio-row-list .x-button:hover,.x-radio-after-template.x-radio-button .x-radio-row-list .x-button:focus,.x-radio-after-template.x-radio-icon .x-radio-row-list .x-button:hover,.x-radio-after-template.x-radio-icon .x-radio-row-list .x-button:focus{z-index:1}.x-radio-after-template.x-radio-button .x-radio-row-after input:hover,.x-radio-after-template.x-radio-button .x-radio-row-after input:focus,.x-radio-after-template.x-radio-button .x-radio-row-after .x-button:hover,.x-radio-after-template.x-radio-button .x-radio-row-after .x-button:focus,.x-radio-after-template.x-radio-icon .x-radio-row-after input:hover,.x-radio-after-template.x-radio-icon .x-radio-row-after input:focus,.x-radio-after-template.x-radio-icon .x-radio-row-after .x-button:hover,.x-radio-after-template.x-radio-icon .x-radio-row-after .x-button:focus{z-index:1}.x-radio-after-template.x-radio-button .x-radio-row-after input,.x-radio-after-template.x-radio-button .x-radio-row-after .x-button,.x-radio-after-template.x-radio-icon .x-radio-row-after input,.x-radio-after-template.x-radio-icon .x-radio-row-after .x-button{border-top-left-radius:0;border-bottom-left-radius:0}.x-radio.x-disabled .x-radio-item{color:var(--x-text-400);cursor:not-allowed}.x-radio.x-disabled .x-radio-item .x-radio-box{border-color:var(--x-border-100);background-color:var(--x-border-300)}.x-radio.x-disabled .x-radio-item .x-radio-box:after{background-color:var(--x-text-400)}.x-radio.x-invalid>label,.x-radio.x-required>label{color:var(--x-danger)}.x-radio.x-direction-row>label{padding:0 .5rem 0 0}.x-radio.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-radio.x-direction-column,.x-radio.x-direction-column-reverse{align-items:inherit}\n"], dependencies: [{ kind: "directive", type: i2.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i3.XButtonComponent, selector: "x-button" }, { kind: "component", type: i3.XButtonsComponent, selector: "x-buttons" }, { kind: "directive", type: i4.XOutletDirective, selector: "[xOutlet]", inputs: ["xOutletContext", "xOutlet"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
|
|
125
137
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XRadioComponent, decorators: [{
|
|
126
138
|
type: Component,
|
|
127
|
-
args: [{ selector: `${XRadioPrefix}`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XRadioComponent)], template: "<div\r\n #radio\r\n class=\"x-radio\"\r\n [class.x-flex]=\"justify || align || direction\"\r\n [class.x-disabled]=\"disabled\"\r\n [class.x-required]=\"requiredIsEmpty\"\r\n [class.x-invalid]=\"invalid\"\r\n>\r\n <label *ngIf=\"label\" [class.x-radio-label-required]=\"required\" [style.width]=\"labelWidth\" [ngClass]=\"labelMap\">{{ label }}</label>\r\n <ng-container *ngIf=\"button || icon; else default\">\r\n <x-buttons>\r\n <x-button\r\n *ngFor=\"let item of nodes; trackBy: trackByItem\"\r\n [icon]=\"item.icon\"\r\n [size]=\"size\"\r\n [type]=\"type\"\r\n [activated]=\"item.id === value\"\r\n [disabled]=\"disabled || item.disabled\"\r\n attrType=\"button\"\r\n (click)=\"radioClick($event, item)\"\r\n >{{ item.label }}</x-button\r\n >\r\n </x-buttons>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #default>\r\n <div class=\"x-radio-row\">\r\n <div\r\n class=\"x-radio-item\"\r\n *ngFor=\"let item of nodes; trackBy: trackByItem\"\r\n [class.x-checked]=\"item.id === value\"\r\n [class.x-disabled]=\"item.disabled\"\r\n (click)=\"radioClick($event, item)\"\r\n >\r\n <span class=\"x-radio-box\"></span>\r\n <span class=\"x-radio-label\">{{ item.label }}</span>\r\n </div>\r\n </div>\r\n</ng-template>\r\n", styles: [".x-radio{margin:0;padding:0;width:100%}.x-radio.x-flex{display:flex}.x-radio.x-justify-start{justify-content:flex-start}.x-radio.x-justify-center{justify-content:center}.x-radio.x-justify-end{justify-content:flex-end}.x-radio.x-justify-space-between{justify-content:space-between}.x-radio.x-justify-space-around{justify-content:space-around}.x-radio.x-align-start{align-items:flex-start}.x-radio.x-align-center{align-items:center}.x-radio.x-align-end{align-items:flex-end}.x-radio.x-direction-column{flex-direction:column}.x-radio.x-direction-column-reverse{flex-direction:column-reverse}.x-radio.x-direction-row{flex-direction:row}.x-radio.x-direction-row-reverse{flex-direction:row-reverse}.x-radio>label{display:inline-block;white-space:nowrap;height:calc(var(--x-font-size) + .875rem);line-height:calc(var(--x-font-size) + .875rem);position:relative;color:var(--x-text-300);font-weight:600}.x-radio>label.x-text-align-start{text-align:start}.x-radio>label.x-text-align-center{text-align:center}.x-radio>label.x-text-align-end{text-align:end}.x-radio-row{flex:1;align-items:center;position:relative;height:calc(var(--x-font-size) + .875rem);line-height:calc(var(--x-font-size) + .875rem)}.x-radio-item{position:relative;display:inline-flex;align-items:center;white-space:nowrap;outline:none;margin-right:.875rem;font-size:.875rem;cursor:pointer;transition:all .3s}.x-radio-item:hover{color:var(--x-primary)}.x-radio-item:hover .x-radio-box{border-color:var(--x-primary)}.x-radio-item:last-child{margin-right:0}.x-radio-item.x-checked .x-radio-box{border-color:var(--x-primary)}.x-radio-item.x-checked .x-radio-box:after{transform:scale(1);opacity:1}.x-radio-item.x-disabled{color:var(--x-text-400);cursor:not-allowed}.x-radio-item.x-disabled .x-radio-box{border-color:var(--x-border-100);background-color:var(--x-border-300)}.x-radio-item.x-disabled .x-radio-box:after{background-color:var(--x-text-400)}.x-radio-box{border:.0625rem solid var(--x-border);border-radius:100%;width:1rem;height:1rem;background-color:var(--x-background-a100);position:relative;box-sizing:border-box;transition:all .3s;display:inline-flex;align-items:center;justify-content:center}.x-radio-box:hover{border-color:var(--x-primary)}.x-radio-box:after{position:absolute;display:inline-block;width:.5rem;height:.5rem;background-color:var(--x-primary);border-radius:1rem;transform:scale(0);opacity:0;transition:all .3s cubic-bezier(.78,.14,.15,.86);content:\" \"}.x-radio-label{margin-left:.325rem}.x-radio-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-radio.x-disabled .x-radio-item{color:var(--x-text-400);cursor:not-allowed}.x-radio.x-disabled .x-radio-item .x-radio-box{border-color:var(--x-border-100);background-color:var(--x-border-300)}.x-radio.x-disabled .x-radio-item .x-radio-box:after{background-color:var(--x-text-400)}.x-radio.x-invalid>label,.x-radio.x-required>label{color:var(--x-danger)}.x-radio.x-direction-row>label{padding:0 .5rem 0 0}.x-radio.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-radio.x-direction-column,.x-radio.x-direction-column-reverse{align-items:inherit}\n"] }]
|
|
139
|
+
args: [{ selector: `${XRadioPrefix}`, encapsulation: ViewEncapsulation.None, changeDetection: ChangeDetectionStrategy.OnPush, providers: [XValueAccessor(XRadioComponent)], template: "<div\r\n #radio\r\n class=\"x-radio\"\r\n [class.x-flex]=\"justify || align || direction\"\r\n [class.x-disabled]=\"disabled\"\r\n [class.x-required]=\"requiredIsEmpty\"\r\n [class.x-invalid]=\"invalid\"\r\n [class.x-radio-button]=\"button\"\r\n [class.x-radio-icon]=\"icon\"\r\n [class.x-radio-after]=\"after\"\r\n [class.x-radio-before]=\"before\"\r\n [class.x-radio-after-template]=\"afterIsTemplate\"\r\n [class.x-radio-before-template]=\"beforeIsTemplate\"\r\n>\r\n <label *ngIf=\"label\" [class.x-radio-label-required]=\"required\" [style.width]=\"labelWidth\" [ngClass]=\"labelMap\">{{ label }}</label>\r\n <div class=\"x-radio-row\">\r\n <div class=\"x-radio-row-before\" *ngIf=\"before\">\r\n <ng-container *xOutlet=\"before\">{{ before }}</ng-container>\r\n </div>\r\n <div class=\"x-radio-row-list\">\r\n <ng-container *ngIf=\"button || icon; else default\">\r\n <x-buttons>\r\n <x-button\r\n *ngFor=\"let item of nodes; trackBy: trackByItem\"\r\n [icon]=\"item.icon\"\r\n [size]=\"size\"\r\n [type]=\"type\"\r\n [activated]=\"item.id === value\"\r\n [disabled]=\"disabled || item.disabled\"\r\n attrType=\"button\"\r\n (click)=\"radioClick($event, item)\"\r\n >{{ item.label }}</x-button\r\n >\r\n </x-buttons>\r\n </ng-container>\r\n </div>\r\n <div class=\"x-radio-row-after\" *ngIf=\"after\">\r\n <ng-container *xOutlet=\"after\">{{ after }}</ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #default>\r\n <div\r\n class=\"x-radio-row-item\"\r\n *ngFor=\"let item of nodes; trackBy: trackByItem\"\r\n [class.x-checked]=\"item.id === value\"\r\n [class.x-disabled]=\"item.disabled\"\r\n (click)=\"radioClick($event, item)\"\r\n >\r\n <span class=\"x-radio-box\"></span>\r\n <span class=\"x-radio-label\">{{ item.label }}</span>\r\n </div>\r\n</ng-template>\r\n", styles: [".x-radio{margin:0;padding:0;width:100%}.x-radio.x-flex{display:flex}.x-radio.x-justify-start{justify-content:flex-start}.x-radio.x-justify-center{justify-content:center}.x-radio.x-justify-end{justify-content:flex-end}.x-radio.x-justify-space-between{justify-content:space-between}.x-radio.x-justify-space-around{justify-content:space-around}.x-radio.x-align-start{align-items:flex-start}.x-radio.x-align-center{align-items:center}.x-radio.x-align-end{align-items:flex-end}.x-radio.x-direction-column{flex-direction:column}.x-radio.x-direction-column-reverse{flex-direction:column-reverse}.x-radio.x-direction-row{flex-direction:row}.x-radio.x-direction-row-reverse{flex-direction:row-reverse}.x-radio>label{display:inline-block;white-space:nowrap;height:calc(var(--x-font-size) + .875rem);line-height:calc(var(--x-font-size) + .875rem);position:relative;color:var(--x-text-300);font-weight:600}.x-radio>label.x-text-align-start{text-align:start}.x-radio>label.x-text-align-center{text-align:center}.x-radio>label.x-text-align-end{text-align:end}.x-radio-row{flex:1;display:flex;align-items:center;flex-wrap:wrap;height:calc(var(--x-font-size) + .875rem);line-height:calc(var(--x-font-size) + .875rem)}.x-radio-row .x-radio-row-before,.x-radio-row .x-radio-row-after{border:var(--x-border-width) var(--x-border-style) var(--x-border);border-radius:var(--x-border-radius);background-color:var(--x-background-a100);padding:0 var(--x-padding-medium);height:var(--x-height-medium);line-height:var(--x-height-medium)}.x-radio-row-list{position:relative;display:inline-flex;align-items:center}.x-radio-row-item{position:relative;display:inline-flex;align-items:center;white-space:nowrap;outline:none;margin-right:.875rem;font-size:.875rem;cursor:pointer;transition:all .3s}.x-radio-row-item:hover{color:var(--x-primary)}.x-radio-row-item:hover .x-radio-box{border-color:var(--x-primary)}.x-radio-row-item:last-child{margin-right:0}.x-radio-row-item.x-checked .x-radio-box{border-color:var(--x-primary)}.x-radio-row-item.x-checked .x-radio-box:after{transform:scale(1);opacity:1}.x-radio-row-item.x-disabled{color:var(--x-text-400);cursor:not-allowed}.x-radio-row-item.x-disabled .x-radio-box{border-color:var(--x-border-100);background-color:var(--x-border-300)}.x-radio-row-item.x-disabled .x-radio-box:after{background-color:var(--x-text-400)}.x-radio-button .x-radio-row-before,.x-radio-icon .x-radio-row-before{margin-right:0}.x-radio-button .x-radio-row-after,.x-radio-icon .x-radio-row-after{margin-left:0}.x-radio-box{border:.0625rem solid var(--x-border);border-radius:100%;width:1rem;height:1rem;background-color:var(--x-background-a100);position:relative;box-sizing:border-box;transition:all .3s;display:inline-flex;align-items:center;justify-content:center}.x-radio-box:hover{border-color:var(--x-primary)}.x-radio-box:after{position:absolute;display:inline-block;width:.5rem;height:.5rem;background-color:var(--x-primary);border-radius:1rem;transform:scale(0);opacity:0;transition:all .3s cubic-bezier(.78,.14,.15,.86);content:\" \"}.x-radio-label{margin-left:.325rem}.x-radio-label-required:before{display:inline-block;margin-right:.25rem;color:var(--x-danger);line-height:1;font-size:var(--x-font-size-small);content:\"*\"}.x-radio-before:not(.x-radio-before-template,.x-radio-button,.x-radio-icon) .x-radio-row-before{margin-right:var(--x-padding-medium)}.x-radio-before.x-radio-button .x-buttons:not(.x-buttons-space)>x-button:first-child .x-button,.x-radio-before.x-radio-icon .x-buttons:not(.x-buttons-space)>x-button:first-child .x-button{border-top-left-radius:0;border-bottom-left-radius:0}.x-radio-before.x-radio-button .x-radio-row-before,.x-radio-before.x-radio-icon .x-radio-row-before{margin-right:0;border-right:0;border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-before-template .x-radio-row-before{display:contents}.x-radio-before-template .x-radio-row-list{margin-left:var(--x-padding-medium)}.x-radio-before-template.x-radio-button .x-radio-row-list,.x-radio-before-template.x-radio-icon .x-radio-row-list{margin-left:0}.x-radio-before-template.x-radio-button .x-radio-row-list .x-button,.x-radio-before-template.x-radio-icon .x-radio-row-list .x-button{margin-left:calc(var(--x-border-width) * -1)}.x-radio-before-template.x-radio-button .x-radio-row-list .x-button:hover,.x-radio-before-template.x-radio-button .x-radio-row-list .x-button:focus,.x-radio-before-template.x-radio-icon .x-radio-row-list .x-button:hover,.x-radio-before-template.x-radio-icon .x-radio-row-list .x-button:focus{z-index:1}.x-radio-before-template.x-radio-button .x-radio-row-before input:hover,.x-radio-before-template.x-radio-button .x-radio-row-before input:focus,.x-radio-before-template.x-radio-button .x-radio-row-before .x-button:hover,.x-radio-before-template.x-radio-button .x-radio-row-before .x-button:focus,.x-radio-before-template.x-radio-icon .x-radio-row-before input:hover,.x-radio-before-template.x-radio-icon .x-radio-row-before input:focus,.x-radio-before-template.x-radio-icon .x-radio-row-before .x-button:hover,.x-radio-before-template.x-radio-icon .x-radio-row-before .x-button:focus{z-index:1}.x-radio-before-template.x-radio-button .x-radio-row-before input,.x-radio-before-template.x-radio-button .x-radio-row-before .x-button,.x-radio-before-template.x-radio-icon .x-radio-row-before input,.x-radio-before-template.x-radio-icon .x-radio-row-before .x-button{border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-after:not(.x-radio-before-template,.x-radio-button,.x-radio-icon) .x-radio-row-after{margin-left:var(--x-padding-medium)}.x-radio-after.x-radio-button .x-buttons:not(.x-buttons-space)>x-button:last-child .x-button,.x-radio-after.x-radio-icon .x-buttons:not(.x-buttons-space)>x-button:last-child .x-button{border-top-right-radius:0;border-bottom-right-radius:0}.x-radio-after.x-radio-button .x-radio-row-after,.x-radio-after.x-radio-icon .x-radio-row-after{margin-left:0;border-left:0;border-top-left-radius:0;border-bottom-left-radius:0}.x-radio-after-template .x-radio-row-after{display:contents}.x-radio-after-template .x-radio-row-list{margin-right:var(--x-padding-medium)}.x-radio-after-template.x-radio-button .x-radio-row-list,.x-radio-after-template.x-radio-icon .x-radio-row-list{margin-right:0}.x-radio-after-template.x-radio-button .x-radio-row-list .x-button,.x-radio-after-template.x-radio-icon .x-radio-row-list .x-button{margin-right:calc(var(--x-border-width) * -1)}.x-radio-after-template.x-radio-button .x-radio-row-list .x-button:hover,.x-radio-after-template.x-radio-button .x-radio-row-list .x-button:focus,.x-radio-after-template.x-radio-icon .x-radio-row-list .x-button:hover,.x-radio-after-template.x-radio-icon .x-radio-row-list .x-button:focus{z-index:1}.x-radio-after-template.x-radio-button .x-radio-row-after input:hover,.x-radio-after-template.x-radio-button .x-radio-row-after input:focus,.x-radio-after-template.x-radio-button .x-radio-row-after .x-button:hover,.x-radio-after-template.x-radio-button .x-radio-row-after .x-button:focus,.x-radio-after-template.x-radio-icon .x-radio-row-after input:hover,.x-radio-after-template.x-radio-icon .x-radio-row-after input:focus,.x-radio-after-template.x-radio-icon .x-radio-row-after .x-button:hover,.x-radio-after-template.x-radio-icon .x-radio-row-after .x-button:focus{z-index:1}.x-radio-after-template.x-radio-button .x-radio-row-after input,.x-radio-after-template.x-radio-button .x-radio-row-after .x-button,.x-radio-after-template.x-radio-icon .x-radio-row-after input,.x-radio-after-template.x-radio-icon .x-radio-row-after .x-button{border-top-left-radius:0;border-bottom-left-radius:0}.x-radio.x-disabled .x-radio-item{color:var(--x-text-400);cursor:not-allowed}.x-radio.x-disabled .x-radio-item .x-radio-box{border-color:var(--x-border-100);background-color:var(--x-border-300)}.x-radio.x-disabled .x-radio-item .x-radio-box:after{background-color:var(--x-text-400)}.x-radio.x-invalid>label,.x-radio.x-required>label{color:var(--x-danger)}.x-radio.x-direction-row>label{padding:0 .5rem 0 0}.x-radio.x-direction-row-reverse>label{padding:0 0 0 .5rem}.x-radio.x-direction-column,.x-radio.x-direction-column-reverse{align-items:inherit}\n"] }]
|
|
128
140
|
}], ctorParameters: function () { return [{ type: i0.Renderer2 }, { type: i0.ElementRef }, { type: i0.ChangeDetectorRef }, { type: i1.XConfigService }]; }, propDecorators: { radio: [{
|
|
129
141
|
type: ViewChild,
|
|
130
142
|
args: ['radio', { static: true }]
|
|
@@ -133,14 +145,14 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
133
145
|
class XRadioModule {
|
|
134
146
|
}
|
|
135
147
|
/** @nocollapse */ XRadioModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XRadioModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
|
|
136
|
-
/** @nocollapse */ XRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: XRadioModule, declarations: [XRadioComponent, XRadioProperty], imports: [CommonModule, FormsModule, XButtonModule, XBaseFormModule], exports: [XRadioComponent] });
|
|
137
|
-
/** @nocollapse */ XRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XRadioModule, imports: [CommonModule, FormsModule, XButtonModule, XBaseFormModule] });
|
|
148
|
+
/** @nocollapse */ XRadioModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.0", ngImport: i0, type: XRadioModule, declarations: [XRadioComponent, XRadioProperty], imports: [CommonModule, FormsModule, XButtonModule, XOutletModule, XBaseFormModule], exports: [XRadioComponent] });
|
|
149
|
+
/** @nocollapse */ XRadioModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XRadioModule, imports: [CommonModule, FormsModule, XButtonModule, XOutletModule, XBaseFormModule] });
|
|
138
150
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImport: i0, type: XRadioModule, decorators: [{
|
|
139
151
|
type: NgModule,
|
|
140
152
|
args: [{
|
|
141
153
|
declarations: [XRadioComponent, XRadioProperty],
|
|
142
154
|
exports: [XRadioComponent],
|
|
143
|
-
imports: [CommonModule, FormsModule, XButtonModule, XBaseFormModule]
|
|
155
|
+
imports: [CommonModule, FormsModule, XButtonModule, XOutletModule, XBaseFormModule]
|
|
144
156
|
}]
|
|
145
157
|
}] });
|
|
146
158
|
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"ng-nest-ui-radio.mjs","sources":["../../../../lib/ng-nest/ui/radio/radio.property.ts","../../../../lib/ng-nest/ui/radio/radio.component.ts","../../../../lib/ng-nest/ui/radio/radio.component.html","../../../../lib/ng-nest/ui/radio/radio.module.ts","../../../../lib/ng-nest/ui/radio/ng-nest-ui-radio.ts"],"sourcesContent":["import { XData, XIdentityProperty, XDataConvert, XInputBoolean, XSize, XBoolean, XWithConfig } from '@ng-nest/ui/core';\r\nimport { Input, Component } from '@angular/core';\r\nimport { XButtonType } from '@ng-nest/ui/button';\r\nimport { XControlValueAccessor, XFormOption } from '@ng-nest/ui/base-form';\r\n\r\n/**\r\n * Radio\r\n * @selector x-radio\r\n * @decorator component\r\n */\r\nexport const XRadioPrefix = 'x-radio';\r\nconst X_CONFIG_NAME = 'radio';\r\n\r\n/**\r\n * Radio Property\r\n */\r\n@Component({ template: '' })\r\nexport class XRadioProperty extends XControlValueAccessor<any> implements XRadioOption {\r\n /**\r\n * @zh_CN 单选框数据\r\n * @en_US Radio data\r\n */\r\n @Input() @XDataConvert() data: XData<XRadioNode> = [];\r\n /**\r\n * @zh_CN 按钮样式\r\n * @en_US Button style\r\n */\r\n @Input() @XInputBoolean() button?: XBoolean;\r\n /**\r\n * @zh_CN 图标样式\r\n * @en_US Icon style\r\n */\r\n @Input() @XInputBoolean() icon?: XBoolean;\r\n /**\r\n * @zh_CN 尺寸\r\n * @en_US Size\r\n */\r\n @Input() @XWithConfig<XSize>(X_CONFIG_NAME, 'medium') override size?: XSize;\r\n /**\r\n * @zh_CN 按钮样式时生效\r\n * @en_US Take effect when button style\r\n */\r\n @Input() type: XButtonType = 'initial';\r\n}\r\n\r\n/**\r\n * Radio Option\r\n * @undocument true\r\n */\r\nexport interface XRadioOption extends XFormOption {\r\n /**\r\n * @zh_CN 单选框数据\r\n * @en_US Radio data\r\n */\r\n data?: XData<XRadioNode>;\r\n /**\r\n * @zh_CN 按钮样式\r\n * @en_US Button style\r\n */\r\n button?: XBoolean;\r\n /**\r\n * @zh_CN 图标样式\r\n * @en_US Icon style\r\n */\r\n icon?: XBoolean;\r\n /**\r\n * @zh_CN 尺寸\r\n * @en_US Size\r\n */\r\n size?: XSize;\r\n /**\r\n * @zh_CN 按钮样式时生效\r\n * @en_US Take effect when button style\r\n */\r\n type?: XButtonType;\r\n}\r\n\r\n/**\r\n * @zh_CN Radio 数据对象\r\n * @en_US Radio data object\r\n */\r\nexport interface XRadioNode extends XIdentityProperty {\r\n /**\r\n * @zh_CN 禁用\r\n * @en_US Disabled\r\n */\r\n disabled?: boolean;\r\n /**\r\n * @zh_CN 图标\r\n * @en_US Icon\r\n */\r\n icon?: string;\r\n /**\r\n * @zh_CN 图标的提示信息\r\n * @en_US Icon message\r\n */\r\n title?: string;\r\n}\r\n","import {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n Renderer2,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n OnChanges,\r\n SimpleChanges,\r\n ViewChild\r\n} from '@angular/core';\r\nimport { XRadioPrefix, XRadioNode, XRadioProperty } from './radio.property';\r\nimport { Subject } from 'rxjs';\r\nimport { XIsChange, XSetData, XClearClass, XConfigService } from '@ng-nest/ui/core';\r\nimport { XValueAccessor } from '@ng-nest/ui/base-form';\r\n\r\n@Component({\r\n selector: `${XRadioPrefix}`,\r\n templateUrl: './radio.component.html',\r\n styleUrls: ['./radio.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [XValueAccessor(XRadioComponent)]\r\n})\r\nexport class XRadioComponent extends XRadioProperty implements OnChanges {\r\n @ViewChild('radio', { static: true }) radio!: ElementRef;\r\n nodes: XRadioNode[] = [];\r\n private _unSubject = new Subject<void>();\r\n\r\n constructor(\r\n public renderer: Renderer2,\r\n public elementRef: ElementRef,\r\n public override cdr: ChangeDetectorRef,\r\n public configService: XConfigService\r\n ) {\r\n super();\r\n }\r\n\r\n ngOnInit() {\r\n this.setFlex(this.radio.nativeElement, this.renderer, this.justify, this.align, this.direction);\r\n this.setClassMap();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n const { data } = changes;\r\n XIsChange(data) && this.setData();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this._unSubject.next();\r\n this._unSubject.unsubscribe();\r\n }\r\n\r\n override writeValue(value: any) {\r\n this.value = value;\r\n this.cdr.detectChanges();\r\n }\r\n\r\n setClassMap() {\r\n XClearClass(this.labelMap);\r\n this.labelMap[`x-text-align-${this.labelAlign}`] = this.labelAlign ? true : false;\r\n }\r\n\r\n radioClick(event: Event, node: XRadioNode) {\r\n event.preventDefault();\r\n if (this.disabled || node.disabled || node.id === this.value) return;\r\n this.formControlValidator();\r\n this.value = node.id;\r\n this.cdr.detectChanges();\r\n if (this.onChange) this.onChange(this.value);\r\n }\r\n\r\n private setData() {\r\n XSetData<XRadioNode>(this.data, this._unSubject).subscribe((x) => {\r\n this.nodes = x;\r\n this.cdr.detectChanges();\r\n });\r\n }\r\n\r\n trackByItem(_index: number, item: XRadioNode) {\r\n return item.id;\r\n }\r\n\r\n formControlChanges() {\r\n this.setData();\r\n this.ngOnInit();\r\n this.cdr.detectChanges();\r\n }\r\n}\r\n","<div\r\n #radio\r\n class=\"x-radio\"\r\n [class.x-flex]=\"justify || align || direction\"\r\n [class.x-disabled]=\"disabled\"\r\n [class.x-required]=\"requiredIsEmpty\"\r\n [class.x-invalid]=\"invalid\"\r\n>\r\n <label *ngIf=\"label\" [class.x-radio-label-required]=\"required\" [style.width]=\"labelWidth\" [ngClass]=\"labelMap\">{{ label }}</label>\r\n <ng-container *ngIf=\"button || icon; else default\">\r\n <x-buttons>\r\n <x-button\r\n *ngFor=\"let item of nodes; trackBy: trackByItem\"\r\n [icon]=\"item.icon\"\r\n [size]=\"size\"\r\n [type]=\"type\"\r\n [activated]=\"item.id === value\"\r\n [disabled]=\"disabled || item.disabled\"\r\n attrType=\"button\"\r\n (click)=\"radioClick($event, item)\"\r\n >{{ item.label }}</x-button\r\n >\r\n </x-buttons>\r\n </ng-container>\r\n</div>\r\n\r\n<ng-template #default>\r\n <div class=\"x-radio-row\">\r\n <div\r\n class=\"x-radio-item\"\r\n *ngFor=\"let item of nodes; trackBy: trackByItem\"\r\n [class.x-checked]=\"item.id === value\"\r\n [class.x-disabled]=\"item.disabled\"\r\n (click)=\"radioClick($event, item)\"\r\n >\r\n <span class=\"x-radio-box\"></span>\r\n <span class=\"x-radio-label\">{{ item.label }}</span>\r\n </div>\r\n </div>\r\n</ng-template>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { XRadioComponent } from './radio.component';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { XButtonModule } from '@ng-nest/ui/button';\r\nimport { XRadioProperty } from './radio.property';\r\nimport { XBaseFormModule } from '@ng-nest/ui/base-form';\r\n\r\n@NgModule({\r\n declarations: [XRadioComponent, XRadioProperty],\r\n exports: [XRadioComponent],\r\n imports: [CommonModule, FormsModule, XButtonModule, XB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,EAAA,UAAA,EAAA,CAAA;kBALxB,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;AACR,oBAAA,YAAY,EAAE,CAAC,eAAe,EAAE,cAAc,CAAC;oBAC/C,OAAO,EAAE,CAAC,eAAe,CAAC;oBAC1B,OAAO,EAAE,CAAC,YAAY,EAAE,WAAW,EAAE,aAAa,EAAE,eAAe,CAAC;AACrE,iBAAA,CAAA;;;ACZD;;AAEG;;;;"}
|
|
1
|
+
{"version":3,"file":"ng-nest-ui-radio.mjs","sources":["../../../../lib/ng-nest/ui/radio/radio.property.ts","../../../../lib/ng-nest/ui/radio/radio.component.ts","../../../../lib/ng-nest/ui/radio/radio.component.html","../../../../lib/ng-nest/ui/radio/radio.module.ts","../../../../lib/ng-nest/ui/radio/ng-nest-ui-radio.ts"],"sourcesContent":["import { XData, XIdentityProperty, XDataConvert, XInputBoolean, XSize, XBoolean, XWithConfig, XTemplate } from '@ng-nest/ui/core';\r\nimport { Input, Component } from '@angular/core';\r\nimport { XButtonType } from '@ng-nest/ui/button';\r\nimport { XControlValueAccessor, XFormOption } from '@ng-nest/ui/base-form';\r\n\r\n/**\r\n * Radio\r\n * @selector x-radio\r\n * @decorator component\r\n */\r\nexport const XRadioPrefix = 'x-radio';\r\nconst X_CONFIG_NAME = 'radio';\r\n\r\n/**\r\n * Radio Property\r\n */\r\n@Component({ template: '' })\r\nexport class XRadioProperty extends XControlValueAccessor<any> implements XRadioOption {\r\n /**\r\n * @zh_CN 单选框数据\r\n * @en_US Radio data\r\n */\r\n @Input() @XDataConvert() data: XData<XRadioNode> = [];\r\n /**\r\n * @zh_CN 按钮样式\r\n * @en_US Button style\r\n */\r\n @Input() @XInputBoolean() button?: XBoolean;\r\n /**\r\n * @zh_CN 图标样式\r\n * @en_US Icon style\r\n */\r\n @Input() @XInputBoolean() icon?: XBoolean;\r\n /**\r\n * @zh_CN 尺寸\r\n * @en_US Size\r\n */\r\n @Input() @XWithConfig<XSize>(X_CONFIG_NAME, 'medium') override size?: XSize;\r\n /**\r\n * @zh_CN 按钮样式时生效\r\n * @en_US Take effect when button style\r\n */\r\n @Input() type: XButtonType = 'initial';\r\n /**\r\n * @zh_CN 前置标签\r\n * @en_US Before label\r\n */\r\n @Input() override before!: XTemplate;\r\n /**\r\n * @zh_CN 后置标签\r\n * @en_US After label\r\n */\r\n @Input() override after!: XTemplate;\r\n}\r\n\r\n/**\r\n * Radio Option\r\n * @undocument true\r\n */\r\nexport interface XRadioOption extends XFormOption {\r\n /**\r\n * @zh_CN 单选框数据\r\n * @en_US Radio data\r\n */\r\n data?: XData<XRadioNode>;\r\n /**\r\n * @zh_CN 按钮样式\r\n * @en_US Button style\r\n */\r\n button?: XBoolean;\r\n /**\r\n * @zh_CN 图标样式\r\n * @en_US Icon style\r\n */\r\n icon?: XBoolean;\r\n /**\r\n * @zh_CN 尺寸\r\n * @en_US Size\r\n */\r\n size?: XSize;\r\n /**\r\n * @zh_CN 按钮样式时生效\r\n * @en_US Take effect when button style\r\n */\r\n type?: XButtonType;\r\n /**\r\n * @zh_CN 前置标签\r\n * @en_US Before label\r\n */\r\n before?: XTemplate;\r\n /**\r\n * @zh_CN 后置标签\r\n * @en_US After label\r\n */\r\n after?: XTemplate;\r\n}\r\n\r\n/**\r\n * @zh_CN Radio 数据对象\r\n * @en_US Radio data object\r\n */\r\nexport interface XRadioNode extends XIdentityProperty {\r\n /**\r\n * @zh_CN 禁用\r\n * @en_US Disabled\r\n */\r\n disabled?: boolean;\r\n /**\r\n * @zh_CN 图标\r\n * @en_US Icon\r\n */\r\n icon?: string;\r\n /**\r\n * @zh_CN 图标的提示信息\r\n * @en_US Icon message\r\n */\r\n title?: string;\r\n}\r\n","import {\r\n Component,\r\n ViewEncapsulation,\r\n ChangeDetectionStrategy,\r\n Renderer2,\r\n ElementRef,\r\n ChangeDetectorRef,\r\n OnChanges,\r\n SimpleChanges,\r\n ViewChild,\r\n TemplateRef\r\n} from '@angular/core';\r\nimport { XRadioPrefix, XRadioNode, XRadioProperty } from './radio.property';\r\nimport { Subject } from 'rxjs';\r\nimport { XIsChange, XSetData, XClearClass, XConfigService } from '@ng-nest/ui/core';\r\nimport { XValueAccessor } from '@ng-nest/ui/base-form';\r\n\r\n@Component({\r\n selector: `${XRadioPrefix}`,\r\n templateUrl: './radio.component.html',\r\n styleUrls: ['./radio.component.scss'],\r\n encapsulation: ViewEncapsulation.None,\r\n changeDetection: ChangeDetectionStrategy.OnPush,\r\n providers: [XValueAccessor(XRadioComponent)]\r\n})\r\nexport class XRadioComponent extends XRadioProperty implements OnChanges {\r\n @ViewChild('radio', { static: true }) radio!: ElementRef;\r\n nodes: XRadioNode[] = [];\r\n private _unSubject = new Subject<void>();\r\n\r\n get beforeIsTemplate() {\r\n return this.before instanceof TemplateRef;\r\n }\r\n\r\n get afterIsTemplate() {\r\n return this.after instanceof TemplateRef;\r\n }\r\n\r\n constructor(\r\n public renderer: Renderer2,\r\n public elementRef: ElementRef,\r\n public override cdr: ChangeDetectorRef,\r\n public configService: XConfigService\r\n ) {\r\n super();\r\n }\r\n\r\n ngOnInit() {\r\n this.setFlex(this.radio.nativeElement, this.renderer, this.justify, this.align, this.direction);\r\n this.setClassMap();\r\n }\r\n\r\n ngOnChanges(changes: SimpleChanges): void {\r\n const { data } = changes;\r\n XIsChange(data) && this.setData();\r\n }\r\n\r\n ngOnDestroy(): void {\r\n this._unSubject.next();\r\n this._unSubject.unsubscribe();\r\n }\r\n\r\n override writeValue(value: any) {\r\n this.value = value;\r\n this.cdr.detectChanges();\r\n }\r\n\r\n setClassMap() {\r\n XClearClass(this.labelMap);\r\n this.labelMap[`x-text-align-${this.labelAlign}`] = this.labelAlign ? true : false;\r\n }\r\n\r\n radioClick(event: Event, node: XRadioNode) {\r\n event.preventDefault();\r\n if (this.disabled || node.disabled || node.id === this.value) return;\r\n this.formControlValidator();\r\n this.value = node.id;\r\n this.cdr.detectChanges();\r\n if (this.onChange) this.onChange(this.value);\r\n }\r\n\r\n private setData() {\r\n XSetData<XRadioNode>(this.data, this._unSubject).subscribe((x) => {\r\n this.nodes = x;\r\n this.cdr.detectChanges();\r\n });\r\n }\r\n\r\n trackByItem(_index: number, item: XRadioNode) {\r\n return item.id;\r\n }\r\n\r\n formControlChanges() {\r\n this.setData();\r\n this.ngOnInit();\r\n this.cdr.detectChanges();\r\n }\r\n}\r\n","<div\r\n #radio\r\n class=\"x-radio\"\r\n [class.x-flex]=\"justify || align || direction\"\r\n [class.x-disabled]=\"disabled\"\r\n [class.x-required]=\"requiredIsEmpty\"\r\n [class.x-invalid]=\"invalid\"\r\n [class.x-radio-button]=\"button\"\r\n [class.x-radio-icon]=\"icon\"\r\n [class.x-radio-after]=\"after\"\r\n [class.x-radio-before]=\"before\"\r\n [class.x-radio-after-template]=\"afterIsTemplate\"\r\n [class.x-radio-before-template]=\"beforeIsTemplate\"\r\n>\r\n <label *ngIf=\"label\" [class.x-radio-label-required]=\"required\" [style.width]=\"labelWidth\" [ngClass]=\"labelMap\">{{ label }}</label>\r\n <div class=\"x-radio-row\">\r\n <div class=\"x-radio-row-before\" *ngIf=\"before\">\r\n <ng-container *xOutlet=\"before\">{{ before }}</ng-container>\r\n </div>\r\n <div class=\"x-radio-row-list\">\r\n <ng-container *ngIf=\"button || icon; else default\">\r\n <x-buttons>\r\n <x-button\r\n *ngFor=\"let item of nodes; trackBy: trackByItem\"\r\n [icon]=\"item.icon\"\r\n [size]=\"size\"\r\n [type]=\"type\"\r\n [activated]=\"item.id === value\"\r\n [disabled]=\"disabled || item.disabled\"\r\n attrType=\"button\"\r\n (click)=\"radioClick($event, item)\"\r\n >{{ item.label }}</x-button\r\n >\r\n </x-buttons>\r\n </ng-container>\r\n </div>\r\n <div class=\"x-radio-row-after\" *ngIf=\"after\">\r\n <ng-container *xOutlet=\"after\">{{ after }}</ng-container>\r\n </div>\r\n </div>\r\n</div>\r\n\r\n<ng-template #default>\r\n <div\r\n class=\"x-radio-row-item\"\r\n *ngFor=\"let item of nodes; trackBy: trackByItem\"\r\n [class.x-checked]=\"item.id === value\"\r\n [class.x-disabled]=\"item.disabled\"\r\n (click)=\"radioClick($event, item)\"\r\n >\r\n <span class=\"x-radio-box\"></span>\r\n <span class=\"x-radio-label\">{{ item.label }}</span>\r\n </div>\r\n</ng-template>\r\n","import { NgModule } from '@angular/core';\r\nimport { CommonModule } from '@angular/common';\r\nimport { XRadioComponent } from './radio.component';\r\nimport { FormsModule } from '@angular/forms';\r\nimport { XButtonModule } from '@ng-nest/ui/button';\r\nimport { XRadioProperty } from './radio.property';\r\nimport { XBaseFormModule } from '@ng-nest/ui/base-form';\r\nimport { XOutletModule } from '@ng-nest/ui/outlet';\r\n\r\n@NgModule({\r\n declarations: [XRadioComponent, XRadioProperty],\r\n exports: [XRadioComponent],\r\n imports: [CommonModule, FormsModule, XButtonModule, XOutletModule, XBaseFormModule]\r\n})\r\nexport class XRadioModule {}\r\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public-api';\n"],"names":[],"mappings":";;;;;;;;;;;;;;;AAKA;;;;AAIG;AACI,MAAM,YAAY,GAAG,UAAU;AACtC,MAAM,aAAa,GAAG,OAAO,CAAC;AAE9B;;AAEG;AAEG,MAAO,cAAe,SAAQ,qBAA0B,CAAA;AAD9D,IAAA,WAAA,GAAA;;AAEE;;;AAGG;QACsB,IAAI,CAAA,IAAA,GAAsB,EAAE,CAAC;AAgBtD;;;AAGG;QACM,IAAI,CAAA,IAAA,GAAgB,SAAS,CAAC;AAWxC,KAAA;;8HApCY,cAAc,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAAd,mBAAA,cAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,cAAc,mMADJ,EAAE,EAAA,QAAA,EAAA,IAAA,EAAA,CAAA,CAAA;AAME,UAAA,CAAA;AAAf,I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XResizableProperty };
|
|
381
381
|
//# sourceMappingURL=ng-nest-ui-resizable.mjs.map
|
|
382
|
+
//# sourceMappingURL=ng-nest-ui-resizable.mjs.map
|
|
@@ -867,3 +867,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
867
867
|
|
|
868
868
|
export { XSelectComponent, XSelectModule, XSelectPortalComponent, XSelectPortalPrefix, XSelectPrefix, XSelectProperty };
|
|
869
869
|
//# sourceMappingURL=ng-nest-ui-select.mjs.map
|
|
870
|
+
//# sourceMappingURL=ng-nest-ui-select.mjs.map
|
|
@@ -106,3 +106,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
106
106
|
|
|
107
107
|
export { XSkeletonComponent, XSkeletonModule, XSkeletonPrefix, XSkeletonProperty };
|
|
108
108
|
//# sourceMappingURL=ng-nest-ui-skeleton.mjs.map
|
|
109
|
+
//# sourceMappingURL=ng-nest-ui-skeleton.mjs.map
|
|
@@ -278,3 +278,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
278
278
|
|
|
279
279
|
export { XSliderSelectComponent, XSliderSelectModule, XSliderSelectPrefix, XSliderSelectProperty };
|
|
280
280
|
//# sourceMappingURL=ng-nest-ui-slider-select.mjs.map
|
|
281
|
+
//# sourceMappingURL=ng-nest-ui-slider-select.mjs.map
|
|
@@ -186,3 +186,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
186
186
|
|
|
187
187
|
export { XCountdownComponent, XCountdownPrefix, XCountdownProperty, XStatisticComponent, XStatisticModule, XStatisticPrefix, XStatisticProperty };
|
|
188
188
|
//# sourceMappingURL=ng-nest-ui-statistic.mjs.map
|
|
189
|
+
//# sourceMappingURL=ng-nest-ui-statistic.mjs.map
|
|
@@ -1322,3 +1322,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
1322
1322
|
|
|
1323
1323
|
export { XDragDirective, XTableBodyComponent, XTableBodyPrefix, XTableBodyProperty, XTableComponent, XTableFootComponent, XTableFootPrefix, XTableFootProperty, XTableHeadComponent, XTableHeadPrefix, XTableHeadProperty, XTableModule, XTablePrefix, XTableProperty };
|
|
1324
1324
|
//# sourceMappingURL=ng-nest-ui-table.mjs.map
|
|
1325
|
+
//# sourceMappingURL=ng-nest-ui-table.mjs.map
|
|
@@ -453,3 +453,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
453
453
|
|
|
454
454
|
export { XTabComponent, XTabContentComponent, XTabLinkDirective, XTabLinkTemplateDirective, XTabPrefix, XTabProperty, XTabsComponent, XTabsModule, XTabsPrefix, XTabsProperty };
|
|
455
455
|
//# sourceMappingURL=ng-nest-ui-tabs.mjs.map
|
|
456
|
+
//# sourceMappingURL=ng-nest-ui-tabs.mjs.map
|
|
@@ -112,3 +112,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
112
112
|
|
|
113
113
|
export { XTextRetractComponent, XTextRetractModule, XTextRetractPrefix, XTextRetractProperty };
|
|
114
114
|
//# sourceMappingURL=ng-nest-ui-text-retract.mjs.map
|
|
115
|
+
//# sourceMappingURL=ng-nest-ui-text-retract.mjs.map
|
|
@@ -194,3 +194,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
194
194
|
|
|
195
195
|
export { XTextareaComponent, XTextareaModule, XTextareaPrefix, XTextareaProperty };
|
|
196
196
|
//# sourceMappingURL=ng-nest-ui-textarea.mjs.map
|
|
197
|
+
//# sourceMappingURL=ng-nest-ui-textarea.mjs.map
|
|
@@ -283,3 +283,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
283
283
|
|
|
284
284
|
export { XThemeAmounts, XThemeComponent, XThemeModule, XThemePrefix, XThemeProperty };
|
|
285
285
|
//# sourceMappingURL=ng-nest-ui-theme.mjs.map
|
|
286
|
+
//# sourceMappingURL=ng-nest-ui-theme.mjs.map
|
|
@@ -528,3 +528,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
528
528
|
|
|
529
529
|
export { XTimePickerComponent, XTimePickerFrameComponent, XTimePickerFramePrefix, XTimePickerModule, XTimePickerPortalComponent, XTimePickerPortalPrefix, XTimePickerPrefix, XTimePickerProperty };
|
|
530
530
|
//# sourceMappingURL=ng-nest-ui-time-picker.mjs.map
|
|
531
|
+
//# sourceMappingURL=ng-nest-ui-time-picker.mjs.map
|
|
@@ -142,3 +142,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
142
142
|
|
|
143
143
|
export { XTimelineComponent, XTimelineModule, XTimelinePrefix, XTimelineProperty };
|
|
144
144
|
//# sourceMappingURL=ng-nest-ui-timeline.mjs.map
|
|
145
|
+
//# sourceMappingURL=ng-nest-ui-timeline.mjs.map
|
|
@@ -320,3 +320,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
320
320
|
|
|
321
321
|
export { XTooltipDirective, XTooltipModule, XTooltipPortalComponent, XTooltipPortalPrefix, XTooltipPrefix, XTooltipProperty };
|
|
322
322
|
//# sourceMappingURL=ng-nest-ui-tooltip.mjs.map
|
|
323
|
+
//# sourceMappingURL=ng-nest-ui-tooltip.mjs.map
|
|
@@ -639,3 +639,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
639
639
|
|
|
640
640
|
export { XTransferComponent, XTransferModule, XTransferPrefix, XTransferProperty };
|
|
641
641
|
//# sourceMappingURL=ng-nest-ui-transfer.mjs.map
|
|
642
|
+
//# sourceMappingURL=ng-nest-ui-transfer.mjs.map
|
|
@@ -228,3 +228,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
228
228
|
|
|
229
229
|
export { XTreeFileComponent, XTreeFileImgs, XTreeFileModule, XTreeFilePrefix, XTreeFileProperty };
|
|
230
230
|
//# sourceMappingURL=ng-nest-ui-tree-file.mjs.map
|
|
231
|
+
//# sourceMappingURL=ng-nest-ui-tree-file.mjs.map
|
|
@@ -951,3 +951,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
951
951
|
|
|
952
952
|
export { XTreeSelectComponent, XTreeSelectModule, XTreeSelectPortalComponent, XTreeSelectPortalPrefix, XTreeSelectPrefix, XTreeSelectProperty };
|
|
953
953
|
//# sourceMappingURL=ng-nest-ui-tree-select.mjs.map
|
|
954
|
+
//# sourceMappingURL=ng-nest-ui-tree-select.mjs.map
|
|
@@ -953,3 +953,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
953
953
|
|
|
954
954
|
export { XTreeComponent, XTreeModule, XTreeNodeComponent, XTreeNodePrefix, XTreeNodeProperty, XTreePrefix, XTreeProperty };
|
|
955
955
|
//# sourceMappingURL=ng-nest-ui-tree.mjs.map
|
|
956
|
+
//# sourceMappingURL=ng-nest-ui-tree.mjs.map
|
|
@@ -74,3 +74,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
74
74
|
|
|
75
75
|
export { XTypographyComponent, XTypographyModule, XTypographyPrefix, XTypographyProperty };
|
|
76
76
|
//# sourceMappingURL=ng-nest-ui-typography.mjs.map
|
|
77
|
+
//# sourceMappingURL=ng-nest-ui-typography.mjs.map
|
|
@@ -610,3 +610,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.0", ngImpor
|
|
|
610
610
|
|
|
611
611
|
export { XUploadComponent, XUploadModule, XUploadPortalComponent, XUploadPortalPrefix, XUploadPrefix, XUploadProperty };
|
|
612
612
|
//# sourceMappingURL=ng-nest-ui-upload.mjs.map
|
|
613
|
+
//# sourceMappingURL=ng-nest-ui-upload.mjs.map
|
package/fesm2020/ng-nest-ui.mjs
CHANGED
|
@@ -84,6 +84,16 @@ export declare class XInputProperty extends XControlValueAccessor<any> implement
|
|
|
84
84
|
* @en_US Enter the border between the input box (including icon), rem.
|
|
85
85
|
*/
|
|
86
86
|
inputIconPadding: XNumber;
|
|
87
|
+
/**
|
|
88
|
+
* @zh_CN 前置标签
|
|
89
|
+
* @en_US Before label
|
|
90
|
+
*/
|
|
91
|
+
before: XTemplate;
|
|
92
|
+
/**
|
|
93
|
+
* @zh_CN 后置标签
|
|
94
|
+
* @en_US After label
|
|
95
|
+
*/
|
|
96
|
+
after: XTemplate;
|
|
87
97
|
/**
|
|
88
98
|
* @zh_CN 清除按钮的事件
|
|
89
99
|
* @en_US Clear button event
|
|
@@ -130,7 +140,7 @@ export declare class XInputProperty extends XControlValueAccessor<any> implement
|
|
|
130
140
|
*/
|
|
131
141
|
xComposition: EventEmitter<any>;
|
|
132
142
|
static ɵfac: i0.ɵɵFactoryDeclaration<XInputProperty, never>;
|
|
133
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<XInputProperty, "ng-component", never, { "type": "type"; "clearable": "clearable"; "icon": "icon"; "iconLayout": "iconLayout"; "iconSpin": "iconSpin"; "maxlength": "maxlength"; "width": "width"; "size": "size"; "bordered": "bordered"; "inputStyle": "inputStyle"; "pointer": "pointer"; "validator": "validator"; "inputPadding": "inputPadding"; "inputIconPadding": "inputIconPadding"; }, { "clearEmit": "clearEmit"; "xFocus": "xFocus"; "xBlur": "xBlur"; "xInput": "xInput"; "xKeydown": "xKeydown"; "xClick": "xClick"; "xMouseenter": "xMouseenter"; "xMouseleave": "xMouseleave"; "xComposition": "xComposition"; }, never, never, false, never>;
|
|
143
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<XInputProperty, "ng-component", never, { "type": "type"; "clearable": "clearable"; "icon": "icon"; "iconLayout": "iconLayout"; "iconSpin": "iconSpin"; "maxlength": "maxlength"; "width": "width"; "size": "size"; "bordered": "bordered"; "inputStyle": "inputStyle"; "pointer": "pointer"; "validator": "validator"; "inputPadding": "inputPadding"; "inputIconPadding": "inputIconPadding"; "before": "before"; "after": "after"; }, { "clearEmit": "clearEmit"; "xFocus": "xFocus"; "xBlur": "xBlur"; "xInput": "xInput"; "xKeydown": "xKeydown"; "xClick": "xClick"; "xMouseenter": "xMouseenter"; "xMouseleave": "xMouseleave"; "xComposition": "xComposition"; }, never, never, false, never>;
|
|
134
144
|
}
|
|
135
145
|
/**
|
|
136
146
|
* Input Option
|
package/package.json
CHANGED
|
@@ -10,6 +10,8 @@ export declare class XRadioComponent extends XRadioProperty implements OnChanges
|
|
|
10
10
|
radio: ElementRef;
|
|
11
11
|
nodes: XRadioNode[];
|
|
12
12
|
private _unSubject;
|
|
13
|
+
get beforeIsTemplate(): boolean;
|
|
14
|
+
get afterIsTemplate(): boolean;
|
|
13
15
|
constructor(renderer: Renderer2, elementRef: ElementRef, cdr: ChangeDetectorRef, configService: XConfigService);
|
|
14
16
|
ngOnInit(): void;
|
|
15
17
|
ngOnChanges(changes: SimpleChanges): void;
|
package/radio/radio.module.d.ts
CHANGED
|
@@ -4,9 +4,10 @@ import * as i2 from "./radio.property";
|
|
|
4
4
|
import * as i3 from "@angular/common";
|
|
5
5
|
import * as i4 from "@angular/forms";
|
|
6
6
|
import * as i5 from "@ng-nest/ui/button";
|
|
7
|
-
import * as i6 from "@ng-nest/ui/
|
|
7
|
+
import * as i6 from "@ng-nest/ui/outlet";
|
|
8
|
+
import * as i7 from "@ng-nest/ui/base-form";
|
|
8
9
|
export declare class XRadioModule {
|
|
9
10
|
static ɵfac: i0.ɵɵFactoryDeclaration<XRadioModule, never>;
|
|
10
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<XRadioModule, [typeof i1.XRadioComponent, typeof i2.XRadioProperty], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.XButtonModule, typeof i6.XBaseFormModule], [typeof i1.XRadioComponent]>;
|
|
11
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<XRadioModule, [typeof i1.XRadioComponent, typeof i2.XRadioProperty], [typeof i3.CommonModule, typeof i4.FormsModule, typeof i5.XButtonModule, typeof i6.XOutletModule, typeof i7.XBaseFormModule], [typeof i1.XRadioComponent]>;
|
|
11
12
|
static ɵinj: i0.ɵɵInjectorDeclaration<XRadioModule>;
|
|
12
13
|
}
|