@ebuilding/biz-design 2.8.6 → 2.8.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.
- package/default/src/components/field.setting/setting.checkbox.d.ts +1 -0
- package/default/src/components/field.setting/setting.grid.d.ts +5 -0
- package/fesm2022/default.mjs +30 -7
- package/fesm2022/default.mjs.map +1 -1
- package/fesm2022/ebuilding-biz-design.mjs +30 -7
- package/fesm2022/ebuilding-biz-design.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -8,6 +8,7 @@ export declare class DeonDesignSettingCheckBox extends DeonDesignSettingBasic im
|
|
|
8
8
|
settingSrv: SettingService;
|
|
9
9
|
constructor(message: NzMessageService, settingSrv: SettingService);
|
|
10
10
|
ngOnInit(): void;
|
|
11
|
+
labelPositionChange(position: 'left' | 'right'): void;
|
|
11
12
|
typeChange(): void;
|
|
12
13
|
static ɵfac: i0.ɵɵFactoryDeclaration<DeonDesignSettingCheckBox, never>;
|
|
13
14
|
static ɵcmp: i0.ɵɵComponentDeclaration<DeonDesignSettingCheckBox, "deon-setting-checkbox", never, {}, {}, never, never, true, never>;
|
|
@@ -12,6 +12,11 @@ export declare class DeonDesignSettingGrid extends DeonDesignSettingBasic implem
|
|
|
12
12
|
* 添加列
|
|
13
13
|
*/
|
|
14
14
|
addCols(): void;
|
|
15
|
+
/**
|
|
16
|
+
* Keep the OnPush designer and the persisted form JSON in sync with the
|
|
17
|
+
* in-place ngModel update.
|
|
18
|
+
*/
|
|
19
|
+
colsChange(): void;
|
|
15
20
|
/**
|
|
16
21
|
* 删除列
|
|
17
22
|
*/
|
package/fesm2022/default.mjs
CHANGED
|
@@ -1938,6 +1938,14 @@ class DeonDesignSettingGrid extends DeonDesignSettingBasic {
|
|
|
1938
1938
|
fieldGroup: [],
|
|
1939
1939
|
active: false,
|
|
1940
1940
|
});
|
|
1941
|
+
this.valueChange();
|
|
1942
|
+
}
|
|
1943
|
+
/**
|
|
1944
|
+
* Keep the OnPush designer and the persisted form JSON in sync with the
|
|
1945
|
+
* in-place ngModel update.
|
|
1946
|
+
*/
|
|
1947
|
+
colsChange() {
|
|
1948
|
+
this.valueChange();
|
|
1941
1949
|
}
|
|
1942
1950
|
/**
|
|
1943
1951
|
* 删除列
|
|
@@ -1965,6 +1973,7 @@ class DeonDesignSettingGrid extends DeonDesignSettingBasic {
|
|
|
1965
1973
|
<nz-input-number
|
|
1966
1974
|
[nzDisabled]="settingSrv?.isEditor == false"
|
|
1967
1975
|
[(ngModel)]="item.props.cols"
|
|
1976
|
+
(ngModelChange)="colsChange()"
|
|
1968
1977
|
[nzMin]="1"
|
|
1969
1978
|
[nzMax]="24"
|
|
1970
1979
|
[nzStep]="1"
|
|
@@ -1988,6 +1997,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
1988
1997
|
<nz-input-number
|
|
1989
1998
|
[nzDisabled]="settingSrv?.isEditor == false"
|
|
1990
1999
|
[(ngModel)]="item.props.cols"
|
|
2000
|
+
(ngModelChange)="colsChange()"
|
|
1991
2001
|
[nzMin]="1"
|
|
1992
2002
|
[nzMax]="24"
|
|
1993
2003
|
[nzStep]="1"
|
|
@@ -2847,6 +2857,10 @@ class DeonDesignSettingCheckBox extends DeonDesignSettingBasic {
|
|
|
2847
2857
|
this.settingSrv = settingSrv;
|
|
2848
2858
|
}
|
|
2849
2859
|
ngOnInit() { }
|
|
2860
|
+
labelPositionChange(position) {
|
|
2861
|
+
this.sourceField.props.labelPosition = position;
|
|
2862
|
+
this.valueChange();
|
|
2863
|
+
}
|
|
2850
2864
|
typeChange() {
|
|
2851
2865
|
this.sourceField.type = 'radiogroup';
|
|
2852
2866
|
this.fieldTypeChange();
|
|
@@ -2891,7 +2905,7 @@ class DeonDesignSettingCheckBox extends DeonDesignSettingBasic {
|
|
|
2891
2905
|
nzButtonStyle="solid"
|
|
2892
2906
|
[nzDisabled]="settingSrv?.isEditor == false"
|
|
2893
2907
|
[(ngModel)]="sourceField.props.labelPosition"
|
|
2894
|
-
(ngModelChange)="
|
|
2908
|
+
(ngModelChange)="labelPositionChange($event)"
|
|
2895
2909
|
>
|
|
2896
2910
|
<label nz-radio-button nzValue="right">右边</label>
|
|
2897
2911
|
<label nz-radio-button nzValue="left">左边</label>
|
|
@@ -2954,7 +2968,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
2954
2968
|
nzButtonStyle="solid"
|
|
2955
2969
|
[nzDisabled]="settingSrv?.isEditor == false"
|
|
2956
2970
|
[(ngModel)]="sourceField.props.labelPosition"
|
|
2957
|
-
(ngModelChange)="
|
|
2971
|
+
(ngModelChange)="labelPositionChange($event)"
|
|
2958
2972
|
>
|
|
2959
2973
|
<label nz-radio-button nzValue="right">右边</label>
|
|
2960
2974
|
<label nz-radio-button nzValue="left">左边</label>
|
|
@@ -4860,14 +4874,23 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
4860
4874
|
|
|
4861
4875
|
class DeonDesignFieldCheckbox extends DeonDesignFieldBasic {
|
|
4862
4876
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonDesignFieldCheckbox, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
4863
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonDesignFieldCheckbox, isStandalone: true, selector: "deon-field-checkbox", usesInheritance: true, ngImport: i0, template: `
|
|
4877
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonDesignFieldCheckbox, isStandalone: true, selector: "deon-field-checkbox", usesInheritance: true, ngImport: i0, template: `
|
|
4878
|
+
<ng-container *ngIf="to.labelPosition == 'left'">{{ to.label }}</ng-container>
|
|
4879
|
+
<label nz-checkbox>
|
|
4880
|
+
<ng-container *ngIf="to.labelPosition == 'right' || (to.hideLabel == true && to.labelPosition != 'left')">{{ to.label }}</ng-container>
|
|
4881
|
+
</label>
|
|
4882
|
+
`, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: NzCheckboxModule }, { kind: "component", type: i7.NzCheckboxComponent, selector: "[nz-checkbox]", inputs: ["nzValue", "nzAutoFocus", "nzDisabled", "nzIndeterminate", "nzChecked", "nzId", "nzName"], outputs: ["nzCheckedChange"], exportAs: ["nzCheckbox"] }] });
|
|
4864
4883
|
}
|
|
4865
4884
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonDesignFieldCheckbox, decorators: [{
|
|
4866
4885
|
type: Component,
|
|
4867
4886
|
args: [{
|
|
4868
4887
|
selector: 'deon-field-checkbox',
|
|
4869
|
-
template: `
|
|
4870
|
-
|
|
4888
|
+
template: `
|
|
4889
|
+
<ng-container *ngIf="to.labelPosition == 'left'">{{ to.label }}</ng-container>
|
|
4890
|
+
<label nz-checkbox>
|
|
4891
|
+
<ng-container *ngIf="to.labelPosition == 'right' || (to.hideLabel == true && to.labelPosition != 'left')">{{ to.label }}</ng-container>
|
|
4892
|
+
</label>
|
|
4893
|
+
`,
|
|
4871
4894
|
imports: [
|
|
4872
4895
|
CommonModule,
|
|
4873
4896
|
FormsModule,
|
|
@@ -5474,7 +5497,7 @@ class DeonDesignFieldDefault {
|
|
|
5474
5497
|
},
|
|
5475
5498
|
};
|
|
5476
5499
|
static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonDesignFieldDefault, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
5477
|
-
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonDesignFieldDefault, isStandalone: true, selector: "deon-field-default", inputs: { field: "field" }, ngImport: i0, template: "<ng-container *ngIf=\"field?.props?.hideLabel != true && field.type != 'line' && field.type != 'indicator'\">\n <deon-design-simple-label [field]=\"field\"><span\n [innerHTML]=\"field?.props?.label | safeHtml\"></span></deon-design-simple-label>\n</ng-container>\n\n<deon-field-template [field]=\"field\"></deon-field-template>\n\n<div *ngIf=\"field.props && field.props?.hideJson\" class=\"hideJson\">\n <i nz-icon nzType=\"control\" nzTheme=\"outline\"></i>\n</div
|
|
5500
|
+
static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "19.2.15", type: DeonDesignFieldDefault, isStandalone: true, selector: "deon-field-default", inputs: { field: "field" }, ngImport: i0, template: "<ng-container *ngIf=\"field?.props?.hideLabel != true && field.type != 'line' && field.type != 'indicator' && !(field.type == 'checkbox' && field?.props?.labelPosition)\">\n <deon-design-simple-label [field]=\"field\"><span\n [innerHTML]=\"field?.props?.label | safeHtml\"></span></deon-design-simple-label>\n</ng-container>\n\n<deon-field-template [field]=\"field\"></deon-field-template>\n\n<div *ngIf=\"field.props && field.props?.hideJson\" class=\"hideJson\">\n <i nz-icon nzType=\"control\" nzTheme=\"outline\"></i>\n</div>\n", styles: [":host ::ng-deep{position:relative;width:100%;background-color:#fdf6ed4d}:host ::ng-deep deon-design-simple-label{display:inline-block;padding:0}:host ::ng-deep .hideJson{position:absolute;top:-20px;right:-10px;color:red}\n"], dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1$1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: FormsModule }, { kind: "ngmodule", type: ReactiveFormsModule }, { kind: "ngmodule", type: FormlyModule }, { kind: "ngmodule", type: NzIconModule }, { kind: "directive", type: i3$1.NzIconDirective, selector: "nz-icon,[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "component", type: DeonDesignFieldTemplate, selector: "deon-field-template", inputs: ["field"], outputs: ["fieldChange"] }, { kind: "pipe", type: SafeHtmlPipe, name: "safeHtml" }, { kind: "component", type: DeonDesignSimpleLabel, selector: "deon-design-simple-label", inputs: ["field"] }] });
|
|
5478
5501
|
}
|
|
5479
5502
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImport: i0, type: DeonDesignFieldDefault, decorators: [{
|
|
5480
5503
|
type: Component,
|
|
@@ -5487,7 +5510,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "19.2.15", ngImpo
|
|
|
5487
5510
|
DeonDesignFieldTemplate,
|
|
5488
5511
|
SafeHtmlPipe,
|
|
5489
5512
|
DeonDesignSimpleLabel
|
|
5490
|
-
], template: "<ng-container *ngIf=\"field?.props?.hideLabel != true && field.type != 'line' && field.type != 'indicator'\">\n <deon-design-simple-label [field]=\"field\"><span\n [innerHTML]=\"field?.props?.label | safeHtml\"></span></deon-design-simple-label>\n</ng-container>\n\n<deon-field-template [field]=\"field\"></deon-field-template>\n\n<div *ngIf=\"field.props && field.props?.hideJson\" class=\"hideJson\">\n <i nz-icon nzType=\"control\" nzTheme=\"outline\"></i>\n</div
|
|
5513
|
+
], template: "<ng-container *ngIf=\"field?.props?.hideLabel != true && field.type != 'line' && field.type != 'indicator' && !(field.type == 'checkbox' && field?.props?.labelPosition)\">\n <deon-design-simple-label [field]=\"field\"><span\n [innerHTML]=\"field?.props?.label | safeHtml\"></span></deon-design-simple-label>\n</ng-container>\n\n<deon-field-template [field]=\"field\"></deon-field-template>\n\n<div *ngIf=\"field.props && field.props?.hideJson\" class=\"hideJson\">\n <i nz-icon nzType=\"control\" nzTheme=\"outline\"></i>\n</div>\n", styles: [":host ::ng-deep{position:relative;width:100%;background-color:#fdf6ed4d}:host ::ng-deep deon-design-simple-label{display:inline-block;padding:0}:host ::ng-deep .hideJson{position:absolute;top:-20px;right:-10px;color:red}\n"] }]
|
|
5491
5514
|
}], propDecorators: { field: [{
|
|
5492
5515
|
type: Input
|
|
5493
5516
|
}] } });
|