ngx-formly-zorro-antd 16.0.0 → 16.1.1
Sign up to get free protection for your applications and to get access to all the features.
- package/card/card.module.d.ts +4 -3
- package/card/card.type.d.ts +36 -0
- package/card/public_api.d.ts +1 -1
- package/card-wrapper/card-wrapper.module.d.ts +11 -0
- package/{card/card.wrapper.d.ts → card-wrapper/card-wrapper.props.d.ts} +10 -12
- package/card-wrapper/card.wrapper.d.ts +23 -0
- package/card-wrapper/index.d.ts +5 -0
- package/card-wrapper/public_api.d.ts +3 -0
- package/common/common.module.d.ts +9 -0
- package/common/formly-box-templates.directive.d.ts +46 -0
- package/common/formly-utils.d.ts +24 -0
- package/common/index.d.ts +5 -0
- package/common/public_api.d.ts +3 -0
- package/esm2022/button/button.module.mjs +6 -7
- package/esm2022/button/button.type.mjs +5 -6
- package/esm2022/card/card.module.mjs +20 -17
- package/esm2022/card/card.type.mjs +93 -0
- package/esm2022/card/public_api.mjs +2 -2
- package/esm2022/card-wrapper/card-wrapper.module.mjs +45 -0
- package/esm2022/card-wrapper/card-wrapper.props.mjs +2 -0
- package/esm2022/card-wrapper/card.wrapper.mjs +77 -0
- package/esm2022/card-wrapper/ngx-formly-zorro-antd-card-wrapper.mjs +5 -0
- package/esm2022/card-wrapper/public_api.mjs +3 -0
- package/esm2022/cascader/cascader.module.mjs +6 -7
- package/esm2022/cascader/cascader.type.mjs +5 -8
- package/esm2022/checkbox/checkbox.module.mjs +6 -7
- package/esm2022/checkbox/checkbox.type.mjs +5 -6
- package/esm2022/common/common.module.mjs +19 -0
- package/esm2022/common/formly-box-templates.directive.mjs +106 -0
- package/esm2022/common/formly-utils.mjs +46 -0
- package/esm2022/common/ngx-formly-zorro-antd-common.mjs +5 -0
- package/esm2022/common/public_api.mjs +4 -0
- package/esm2022/datepicker/datepicker.module.mjs +6 -7
- package/esm2022/datepicker/datepicker.type.mjs +5 -6
- package/esm2022/extension/ngx-formly-zorro-antd-extension.mjs +5 -0
- package/esm2022/extension/public_api.mjs +2 -0
- package/esm2022/extension/value-changes-extension.mjs +31 -0
- package/esm2022/form-field/form-field.module.mjs +6 -7
- package/esm2022/form-field/form-field.props.mjs +1 -1
- package/esm2022/form-field/form-field.wrapper.mjs +10 -7
- package/esm2022/grid/grid.module.mjs +6 -7
- package/esm2022/grid/grid.props.mjs +1 -1
- package/esm2022/grid/grid.type.mjs +5 -6
- package/esm2022/input/input.module.mjs +6 -7
- package/esm2022/input/input.type.mjs +7 -8
- package/esm2022/input-group/input-group.module.mjs +6 -7
- package/esm2022/input-group/input-group.type.mjs +5 -6
- package/esm2022/input-number/input-number.module.mjs +6 -7
- package/esm2022/input-number/input-number.type.mjs +5 -6
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +21 -10
- package/esm2022/radio/radio.module.mjs +6 -7
- package/esm2022/radio/radio.type.mjs +5 -6
- package/esm2022/rate/rate.module.mjs +6 -7
- package/esm2022/rate/rate.type.mjs +5 -6
- package/esm2022/select/select.module.mjs +6 -7
- package/esm2022/select/select.type.mjs +11 -12
- package/esm2022/slider/slider.module.mjs +6 -7
- package/esm2022/slider/slider.type.mjs +5 -6
- package/esm2022/space/ngx-formly-zorro-antd-space.mjs +5 -0
- package/esm2022/space/public_api.mjs +3 -0
- package/esm2022/space/space.module.mjs +45 -0
- package/esm2022/space/space.type.mjs +63 -0
- package/esm2022/switch/switch.module.mjs +6 -7
- package/esm2022/switch/switch.type.mjs +5 -6
- package/esm2022/tabs/tabs.module.mjs +6 -7
- package/esm2022/tabs/tabs.wrapper.mjs +5 -6
- package/esm2022/textarea/textarea.module.mjs +6 -7
- package/esm2022/textarea/textarea.type.mjs +5 -6
- package/esm2022/timepicker/timepicker.module.mjs +6 -7
- package/esm2022/timepicker/timepicker.type.mjs +5 -6
- package/esm2022/transfer/transfer.component.mjs +5 -6
- package/esm2022/transfer/transfer.module.mjs +6 -7
- package/esm2022/transfer/transfer.type.mjs +5 -6
- package/esm2022/tree-select/tree-select.module.mjs +6 -7
- package/esm2022/tree-select/tree-select.type.mjs +5 -6
- package/esm2022/upload/upload.component.mjs +5 -6
- package/esm2022/upload/upload.module.mjs +10 -7
- package/esm2022/upload/upload.props.mjs +1 -1
- package/esm2022/upload/upload.type.mjs +28 -18
- package/extension/index.d.ts +5 -0
- package/extension/public_api.d.ts +1 -0
- package/extension/value-changes-extension.d.ts +23 -0
- package/fesm2022/ngx-formly-zorro-antd-button.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-button.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs +123 -0
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +84 -35
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +7 -9
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-checkbox.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-common.mjs +174 -0
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs +37 -0
- package/fesm2022/ngx-formly-zorro-antd-extension.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +12 -8
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-grid.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input-group.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-input-number.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-input.mjs +9 -9
- package/fesm2022/ngx-formly-zorro-antd-input.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-radio.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-rate.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +13 -13
- package/fesm2022/ngx-formly-zorro-antd-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-slider.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-space.mjs +109 -0
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -0
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-switch.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-textarea.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd-transfer.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +36 -22
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +19 -7
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/form-field/form-field.props.d.ts +12 -3
- package/grid/grid.props.d.ts +15 -13
- package/lib/ui-ng-zorro-antd.module.d.ts +24 -21
- package/package.json +59 -34
- package/space/index.d.ts +5 -0
- package/space/public_api.d.ts +2 -0
- package/space/space.module.d.ts +11 -0
- package/space/space.type.d.ts +50 -0
- package/upload/upload.module.d.ts +6 -5
- package/upload/upload.props.d.ts +2 -0
- package/upload/upload.type.d.ts +6 -1
- package/esm2022/card/card.wrapper.mjs +0 -48
package/card/card.module.d.ts
CHANGED
@@ -1,10 +1,11 @@
|
|
1
1
|
import * as i0 from "@angular/core";
|
2
|
-
import * as i1 from "./card.
|
2
|
+
import * as i1 from "./card.type";
|
3
3
|
import * as i2 from "@angular/common";
|
4
4
|
import * as i3 from "ng-zorro-antd/card";
|
5
|
-
import * as i4 from "
|
5
|
+
import * as i4 from "ng-zorro-antd/core/outlet";
|
6
|
+
import * as i5 from "@ngx-formly/core";
|
6
7
|
export declare class FormlyNzCardModule {
|
7
8
|
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzCardModule, never>;
|
8
|
-
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzCardModule, [typeof i1.
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzCardModule, [typeof i1.FormlyFieldCard], [typeof i2.CommonModule, typeof i3.NzCardModule, typeof i4.NzOutletModule, typeof i5.FormlyModule], [typeof i1.FormlyFieldCard]>;
|
9
10
|
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzCardModule>;
|
10
11
|
}
|
@@ -0,0 +1,36 @@
|
|
1
|
+
import { TemplateRef, Type } from '@angular/core';
|
2
|
+
import { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';
|
3
|
+
import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
4
|
+
import { CardWrapperProps } from 'ngx-formly-zorro-antd/card-wrapper';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
interface CardProps extends CardWrapperProps {
|
7
|
+
/**
|
8
|
+
* 内容
|
9
|
+
*/
|
10
|
+
content?: string | TemplateRef<{
|
11
|
+
$implicit: CardProps;
|
12
|
+
options: CardProps;
|
13
|
+
}>;
|
14
|
+
contentName?: string;
|
15
|
+
}
|
16
|
+
export interface FormlyCardFieldConfig extends FormlyFieldConfig<CardProps> {
|
17
|
+
type: 'card' | Type<FormlyFieldCard>;
|
18
|
+
}
|
19
|
+
export declare class FormlyFieldCard extends FieldType<FieldTypeConfig<CardProps>> {
|
20
|
+
fieldTemplates: FormlyBoxTemplates;
|
21
|
+
defaultOptions: {
|
22
|
+
props: {
|
23
|
+
bordered: boolean;
|
24
|
+
type: string;
|
25
|
+
};
|
26
|
+
};
|
27
|
+
constructor(fieldTemplates: FormlyBoxTemplates);
|
28
|
+
get nzTitle(): TemplateRef<any> | undefined;
|
29
|
+
get nzCover(): TemplateRef<any> | undefined;
|
30
|
+
get nzExtra(): TemplateRef<any> | undefined;
|
31
|
+
get nzActions(): TemplateRef<any>[];
|
32
|
+
get nzContent(): TemplateRef<any> | undefined;
|
33
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyFieldCard, [{ optional: true; }]>;
|
34
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyFieldCard, "formly-field-card", never, {}, {}, never, never, false, never>;
|
35
|
+
}
|
36
|
+
export {};
|
package/card/public_api.d.ts
CHANGED
@@ -1,2 +1,2 @@
|
|
1
1
|
export { FormlyNzCardModule } from './card.module';
|
2
|
-
export {
|
2
|
+
export { FormlyFieldCard, FormlyCardFieldConfig } from './card.type';
|
@@ -0,0 +1,11 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "./card.wrapper";
|
3
|
+
import * as i2 from "@angular/common";
|
4
|
+
import * as i3 from "ng-zorro-antd/card";
|
5
|
+
import * as i4 from "ngx-formly-zorro-antd/common";
|
6
|
+
import * as i5 from "@ngx-formly/core";
|
7
|
+
export declare class FormlyNzCardWrapperModule {
|
8
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyNzCardWrapperModule, never>;
|
9
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyNzCardWrapperModule, [typeof i1.FormlyWrapperCard], [typeof i2.CommonModule, typeof i3.NzCardModule, typeof i4.FormlyCommonModule, typeof i5.FormlyModule], never>;
|
10
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyNzCardWrapperModule>;
|
11
|
+
}
|
@@ -1,12 +1,11 @@
|
|
1
|
-
import { TemplateRef
|
2
|
-
import { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';
|
1
|
+
import { TemplateRef } from '@angular/core';
|
3
2
|
import type { NzSizeDSType, NgStyleInterface } from 'ng-zorro-antd/core/types';
|
4
|
-
|
5
|
-
interface CardProps {
|
3
|
+
export interface CardWrapperProps {
|
6
4
|
/**
|
7
5
|
* 卡片操作组,位置在卡片底部
|
8
6
|
*/
|
9
7
|
actions?: Array<TemplateRef<void>>;
|
8
|
+
actionsName?: string[];
|
10
9
|
/**
|
11
10
|
* 内容区域自定义样式
|
12
11
|
*/
|
@@ -20,10 +19,12 @@ interface CardProps {
|
|
20
19
|
* 卡片封面
|
21
20
|
*/
|
22
21
|
cover?: TemplateRef<void>;
|
22
|
+
coverName?: string;
|
23
23
|
/**
|
24
24
|
* 卡片右上角的操作区域
|
25
25
|
*/
|
26
26
|
extra?: string | TemplateRef<void>;
|
27
|
+
extraName?: string;
|
27
28
|
/**
|
28
29
|
* 鼠标移过时可浮起
|
29
30
|
* @default false
|
@@ -43,16 +44,13 @@ interface CardProps {
|
|
43
44
|
* 卡片标题
|
44
45
|
*/
|
45
46
|
title?: string | TemplateRef<void>;
|
47
|
+
titleName?: string;
|
46
48
|
/**
|
47
49
|
* 卡片类型,可设置为 inner 或 不设置
|
48
50
|
*/
|
49
51
|
type?: string | 'inner';
|
52
|
+
/**
|
53
|
+
* 是否显示边框
|
54
|
+
*/
|
55
|
+
bordered?: boolean;
|
50
56
|
}
|
51
|
-
export interface FormlyCardWrapperConfig extends FormlyFieldConfig<CardProps> {
|
52
|
-
wrappers: ('card' | Type<FormlyWrapperCard>)[];
|
53
|
-
}
|
54
|
-
export declare class FormlyWrapperCard extends FieldWrapper<FormlyFieldConfig<CardProps>> {
|
55
|
-
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperCard, never>;
|
56
|
-
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperCard, "formly-wrapper-card", never, {}, {}, never, never, false, never>;
|
57
|
-
}
|
58
|
-
export {};
|
@@ -0,0 +1,23 @@
|
|
1
|
+
import { Type } from '@angular/core';
|
2
|
+
import { FieldWrapper, FormlyFieldConfig } from '@ngx-formly/core';
|
3
|
+
import { FormlyBoxTemplates } from 'ngx-formly-zorro-antd/common';
|
4
|
+
import { CardWrapperProps } from './card-wrapper.props';
|
5
|
+
import * as i0 from "@angular/core";
|
6
|
+
export interface FormlyCardWrapperConfig extends FormlyFieldConfig<CardWrapperProps> {
|
7
|
+
wrappers: ('card-wrapper' | Type<FormlyWrapperCard>)[];
|
8
|
+
}
|
9
|
+
export declare class FormlyWrapperCard extends FieldWrapper<FormlyFieldConfig<CardWrapperProps>> {
|
10
|
+
fieldTemplates: FormlyBoxTemplates;
|
11
|
+
defaultOptions: {
|
12
|
+
props: {
|
13
|
+
bordered: boolean;
|
14
|
+
};
|
15
|
+
};
|
16
|
+
constructor(fieldTemplates: FormlyBoxTemplates);
|
17
|
+
get nzTitle(): import("@angular/core").TemplateRef<any> | undefined;
|
18
|
+
get nzCover(): import("@angular/core").TemplateRef<any> | undefined;
|
19
|
+
get nzExtra(): import("@angular/core").TemplateRef<any> | undefined;
|
20
|
+
get nzActions(): import("@angular/core").TemplateRef<any>[];
|
21
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyWrapperCard, [{ optional: true; }]>;
|
22
|
+
static ɵcmp: i0.ɵɵComponentDeclaration<FormlyWrapperCard, "formly-wrapper-card", never, {}, {}, never, never, false, never>;
|
23
|
+
}
|
@@ -0,0 +1,9 @@
|
|
1
|
+
import * as i0 from "@angular/core";
|
2
|
+
import * as i1 from "@angular/common";
|
3
|
+
import * as i2 from "./formly-box-templates.directive";
|
4
|
+
import * as i3 from "@pkt/ng.core";
|
5
|
+
export declare class FormlyCommonModule {
|
6
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyCommonModule, never>;
|
7
|
+
static ɵmod: i0.ɵɵNgModuleDeclaration<FormlyCommonModule, never, [typeof i1.CommonModule, typeof i2.FormlyBoxTemplates, typeof i3.NamedTemplate], [typeof i2.FormlyBoxTemplates, typeof i3.NamedTemplate]>;
|
8
|
+
static ɵinj: i0.ɵɵInjectorDeclaration<FormlyCommonModule>;
|
9
|
+
}
|
@@ -0,0 +1,46 @@
|
|
1
|
+
import { AfterContentInit, EventEmitter, OnChanges, QueryList, SimpleChange, SimpleChanges, TemplateRef } from '@angular/core';
|
2
|
+
import { NamedTemplate } from '@pkt/ng.core';
|
3
|
+
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
export declare class FormlyBoxTemplates implements AfterContentInit, OnChanges {
|
6
|
+
private tplMap;
|
7
|
+
templateList?: TemplateList;
|
8
|
+
templateChange: EventEmitter<Map<string, TemplateRef<any>>>;
|
9
|
+
namedTemplate: QueryList<NamedTemplate<NzSafeAny>>;
|
10
|
+
get templates(): Map<string, TemplateRef<NzSafeAny>>;
|
11
|
+
/**
|
12
|
+
* 根据模板名称获取TemplateRef
|
13
|
+
* @param templateName 模板名称
|
14
|
+
*/
|
15
|
+
get(templateName: string): TemplateRef<NzSafeAny> | undefined;
|
16
|
+
ngAfterContentInit(): void;
|
17
|
+
update(emitChange?: boolean): void;
|
18
|
+
ngOnChanges(changes: {
|
19
|
+
[K in keyof this]?: SimpleChange;
|
20
|
+
} & SimpleChanges): void;
|
21
|
+
/**
|
22
|
+
* 合并参数模板
|
23
|
+
* @param tplMap
|
24
|
+
* @param emitChange
|
25
|
+
*/
|
26
|
+
mergeTemplate(tplMap: Map<string, TemplateRef<NzSafeAny>>, emitChange?: boolean): void;
|
27
|
+
/**
|
28
|
+
* 合并content 模板
|
29
|
+
* @param tplMap
|
30
|
+
* @param templateList
|
31
|
+
* @private
|
32
|
+
*/
|
33
|
+
private mergeQueryTemplate;
|
34
|
+
/**
|
35
|
+
* 合并模板列表
|
36
|
+
* @param tplMap 模板Map
|
37
|
+
* @param templateList
|
38
|
+
*/
|
39
|
+
private mergeTemplates;
|
40
|
+
static ɵfac: i0.ɵɵFactoryDeclaration<FormlyBoxTemplates, never>;
|
41
|
+
static ɵdir: i0.ɵɵDirectiveDeclaration<FormlyBoxTemplates, "[formly-box]", ["FormlyBox"], { "templateList": { "alias": "formly-box"; "required": false; }; }, { "templateChange": "templateChange"; }, ["namedTemplate"], never, true, never>;
|
42
|
+
}
|
43
|
+
/**
|
44
|
+
* 模板列表
|
45
|
+
*/
|
46
|
+
export type TemplateList = QueryList<TemplateRef<NzSafeAny>> | QueryList<NamedTemplate<NzSafeAny>> | NamedTemplate<NzSafeAny>[] | TemplateRef<NzSafeAny>;
|
@@ -0,0 +1,24 @@
|
|
1
|
+
import { TemplateRef } from '@angular/core';
|
2
|
+
import type { NzSafeAny } from 'ng-zorro-antd/core/types';
|
3
|
+
import { FormlyBoxTemplates } from './formly-box-templates.directive';
|
4
|
+
/**
|
5
|
+
* 根据属性名获取模板名称
|
6
|
+
* @param propName 属性名
|
7
|
+
*/
|
8
|
+
export declare function getTplName(propName: string): string;
|
9
|
+
/**
|
10
|
+
* 处理属性为模板类型, 根据模板名称处理成模板对象
|
11
|
+
* @param value 数据对象
|
12
|
+
* @param fieldTemplates 模板容器
|
13
|
+
* @param propName 属性名
|
14
|
+
* @param propTemplateName 模板属性名称
|
15
|
+
*/
|
16
|
+
export declare function resolveTplName<T = NzSafeAny>(value: NzSafeAny, fieldTemplates: FormlyBoxTemplates, propName: string, propTemplateName?: string): TemplateRef<T> | undefined;
|
17
|
+
/**
|
18
|
+
* 处理属性为模板类型, 根据模板名称处理成模板对象列表
|
19
|
+
* @param value 数据对象
|
20
|
+
* @param fieldTemplates 模板容器
|
21
|
+
* @param propName 属性名
|
22
|
+
* @param propTemplateName 模板属性名称
|
23
|
+
*/
|
24
|
+
export declare function resolveTplNameArray<T = NzSafeAny>(value: NzSafeAny, fieldTemplates: FormlyBoxTemplates, propName: string, propTemplateName?: string): TemplateRef<T>[];
|
@@ -6,12 +6,12 @@ import { NzButtonModule } from 'ng-zorro-antd/button';
|
|
6
6
|
import { NzIconModule } from 'ng-zorro-antd/icon';
|
7
7
|
import * as i0 from "@angular/core";
|
8
8
|
import * as i1 from "@ngx-formly/core";
|
9
|
-
class FormlyNzButtonModule {
|
10
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
11
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.
|
9
|
+
export class FormlyNzButtonModule {
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzButtonModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
11
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzButtonModule, declarations: [FormlyFieldButton], imports: [CommonModule,
|
12
12
|
NzButtonModule,
|
13
13
|
NzIconModule, i1.FormlyModule] }); }
|
14
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.
|
14
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzButtonModule, imports: [CommonModule,
|
15
15
|
NzButtonModule,
|
16
16
|
NzIconModule,
|
17
17
|
FormlyModule.forChild({
|
@@ -31,8 +31,7 @@ class FormlyNzButtonModule {
|
|
31
31
|
]
|
32
32
|
})] }); }
|
33
33
|
}
|
34
|
-
|
35
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzButtonModule, decorators: [{
|
34
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzButtonModule, decorators: [{
|
36
35
|
type: NgModule,
|
37
36
|
args: [{
|
38
37
|
declarations: [FormlyFieldButton],
|
@@ -59,4 +58,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImpor
|
|
59
58
|
]
|
60
59
|
}]
|
61
60
|
}] });
|
62
|
-
//# sourceMappingURL=data:application/json;base64,
|
61
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvYnV0dG9uL3NyYy9idXR0b24ubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxrQkFBa0IsQ0FBQztBQUVoRCxPQUFPLEVBQUUsaUJBQWlCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbEQsT0FBTyxFQUFFLGNBQWMsRUFBRSxNQUFNLHNCQUFzQixDQUFDO0FBQ3RELE9BQU8sRUFBRSxZQUFZLEVBQUUsTUFBTSxvQkFBb0IsQ0FBQzs7O0FBMkJsRCxNQUFNLE9BQU8sb0JBQW9COzhHQUFwQixvQkFBb0I7K0dBQXBCLG9CQUFvQixpQkF4QmhC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5TW9kdWxlIH0gZnJvbSAnQG5neC1mb3JtbHkvY29yZSc7XG5cbmltcG9ydCB7IEZvcm1seUZpZWxkQnV0dG9uIH0gZnJvbSAnLi9idXR0b24udHlwZSc7XG5pbXBvcnQgeyBOekJ1dHRvbk1vZHVsZSB9IGZyb20gJ25nLXpvcnJvLWFudGQvYnV0dG9uJztcbmltcG9ydCB7IE56SWNvbk1vZHVsZSB9IGZyb20gJ25nLXpvcnJvLWFudGQvaWNvbic7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW0Zvcm1seUZpZWxkQnV0dG9uXSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBOekJ1dHRvbk1vZHVsZSxcbiAgICBOekljb25Nb2R1bGUsXG5cbiAgICBGb3JtbHlNb2R1bGUuZm9yQ2hpbGQoe1xuICAgICAgdHlwZXM6IFtcbiAgICAgICAge1xuICAgICAgICAgIG5hbWU6ICdidXR0b24nLFxuICAgICAgICAgIGNvbXBvbmVudDogRm9ybWx5RmllbGRCdXR0b25cbiAgICAgICAgfSxcbiAgICAgICAge1xuICAgICAgICAgIG5hbWU6ICdzdWJtaXQnLFxuICAgICAgICAgIGV4dGVuZHM6ICdidXR0b24nXG4gICAgICAgIH0sXG4gICAgICAgIHtcbiAgICAgICAgICBuYW1lOiAncmVzZXQnLFxuICAgICAgICAgIGV4dGVuZHM6ICdidXR0b24nXG4gICAgICAgIH1cbiAgICAgIF1cbiAgICB9KVxuICBdXG59KVxuZXhwb3J0IGNsYXNzIEZvcm1seU56QnV0dG9uTW9kdWxlIHt9XG4iXX0=
|
@@ -7,7 +7,7 @@ import * as i3 from "ng-zorro-antd/core/transition-patch";
|
|
7
7
|
import * as i4 from "ng-zorro-antd/core/wave";
|
8
8
|
import * as i5 from "ng-zorro-antd/icon";
|
9
9
|
import * as i6 from "@ngx-formly/core";
|
10
|
-
class FormlyFieldButton extends FieldType {
|
10
|
+
export class FormlyFieldButton extends FieldType {
|
11
11
|
constructor() {
|
12
12
|
super(...arguments);
|
13
13
|
this.defaultOptions = {
|
@@ -20,8 +20,8 @@ class FormlyFieldButton extends FieldType {
|
|
20
20
|
}
|
21
21
|
};
|
22
22
|
}
|
23
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.
|
24
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.
|
23
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldButton, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
24
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldButton, selector: "formly-field-button", usesInheritance: true, ngImport: i0, template: `
|
25
25
|
<ng-container *ngIf="props.type === 'a'; else elsebutton">
|
26
26
|
<a
|
27
27
|
nz-button
|
@@ -61,8 +61,7 @@ class FormlyFieldButton extends FieldType {
|
|
61
61
|
</ng-template>
|
62
62
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "component", type: i2.NzButtonComponent, selector: "button[nz-button], a[nz-button]", inputs: ["nzBlock", "nzGhost", "nzSearch", "nzLoading", "nzDanger", "disabled", "tabIndex", "nzType", "nzShape", "nzSize"], exportAs: ["nzButton"] }, { kind: "directive", type: i3.ɵNzTransitionPatchDirective, selector: "[nz-button], nz-button-group, [nz-icon], [nz-menu-item], [nz-submenu], nz-select-top-control, nz-select-placeholder, nz-input-group", inputs: ["hidden"] }, { kind: "directive", type: i4.NzWaveDirective, selector: "[nz-wave],button[nz-button]:not([nzType=\"link\"]):not([nzType=\"text\"])", inputs: ["nzWaveExtraNode"], exportAs: ["nzWave"] }, { kind: "directive", type: i5.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i6.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
63
63
|
}
|
64
|
-
|
65
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyFieldButton, decorators: [{
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldButton, decorators: [{
|
66
65
|
type: Component,
|
67
66
|
args: [{
|
68
67
|
selector: 'formly-field-button',
|
@@ -108,4 +107,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImpor
|
|
108
107
|
changeDetection: ChangeDetectionStrategy.OnPush
|
109
108
|
}]
|
110
109
|
}] });
|
111
|
-
//# sourceMappingURL=data:application/json;base64,
|
110
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiYnV0dG9uLnR5cGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL2J1dHRvbi9zcmMvYnV0dG9uLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBUSx1QkFBdUIsRUFBRSxNQUFNLGVBQWUsQ0FBQztBQUN6RSxPQUFPLEVBQUUsU0FBUyxFQUFzQyxNQUFNLGtCQUFrQixDQUFDOzs7Ozs7OztBQXlHakYsTUFBTSxPQUFPLGlCQUFrQixTQUFRLFNBQXVDO0lBM0M5RTs7UUE0Q1csbUJBQWMsR0FBRztZQUN4QixLQUFLLEVBQUU7Z0JBQ0wsS0FBSyxFQU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1seUZpZWxkQnV0dG9uIGV4dGVuZHMgRmllbGRUeXBlPEZpZWxkVHlwZUNvbmZpZzxCdXR0b25Qcm9wcz4+IHtcbiAgb3ZlcnJpZGUgZGVmYXVsdE9wdGlvbnMgPSB7XG4gICAgcHJvcHM6IHtcbiAgICAgIGdob3N0OiBmYWxzZSxcbiAgICAgIGxvYWRpbmc6IGZhbHNlLFxuICAgICAgYmxvY2s6IGZhbHNlLFxuICAgICAgc2l6ZTogJ2RlZmF1bHQnIGFzIGNvbnN0LFxuICAgICAgZGFuZ2VyOiBmYWxzZVxuICAgIH1cbiAgfTtcbn1cbiJdfQ==
|
@@ -1,44 +1,47 @@
|
|
1
1
|
import { NgModule } from '@angular/core';
|
2
2
|
import { CommonModule } from '@angular/common';
|
3
3
|
import { FormlyModule } from '@ngx-formly/core';
|
4
|
-
import {
|
4
|
+
import { NzOutletModule } from 'ng-zorro-antd/core/outlet';
|
5
|
+
import { FormlyFieldCard } from './card.type';
|
5
6
|
import { NzCardModule } from 'ng-zorro-antd/card';
|
6
7
|
import * as i0 from "@angular/core";
|
7
8
|
import * as i1 from "@ngx-formly/core";
|
8
|
-
|
9
|
-
|
10
|
-
static { this.ɵ
|
11
|
-
|
12
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCardModule, imports: [CommonModule,
|
9
|
+
const COMPONENT = FormlyFieldCard;
|
10
|
+
export class FormlyNzCardModule {
|
11
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
12
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardModule, declarations: [FormlyFieldCard], imports: [CommonModule,
|
13
13
|
NzCardModule,
|
14
|
+
NzOutletModule, i1.FormlyModule], exports: [FormlyFieldCard] }); }
|
15
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardModule, imports: [CommonModule,
|
16
|
+
NzCardModule,
|
17
|
+
NzOutletModule,
|
14
18
|
FormlyModule.forChild({
|
15
|
-
|
19
|
+
types: [
|
16
20
|
{
|
17
21
|
name: 'card',
|
18
|
-
component:
|
19
|
-
types: ['card']
|
22
|
+
component: COMPONENT
|
20
23
|
}
|
21
24
|
]
|
22
25
|
})] }); }
|
23
26
|
}
|
24
|
-
|
25
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.0.3", ngImport: i0, type: FormlyNzCardModule, decorators: [{
|
27
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardModule, decorators: [{
|
26
28
|
type: NgModule,
|
27
29
|
args: [{
|
28
|
-
declarations: [
|
30
|
+
declarations: [COMPONENT],
|
29
31
|
imports: [
|
30
32
|
CommonModule,
|
31
33
|
NzCardModule,
|
34
|
+
NzOutletModule,
|
32
35
|
FormlyModule.forChild({
|
33
|
-
|
36
|
+
types: [
|
34
37
|
{
|
35
38
|
name: 'card',
|
36
|
-
component:
|
37
|
-
types: ['card']
|
39
|
+
component: COMPONENT
|
38
40
|
}
|
39
41
|
]
|
40
42
|
})
|
41
|
-
]
|
43
|
+
],
|
44
|
+
exports: [COMPONENT]
|
42
45
|
}]
|
43
46
|
}] });
|
44
|
-
//# sourceMappingURL=data:application/json;base64,
|
47
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wYWNrYWdlcy9mb3JtbHlhbnRkL2NhcmQvc3JjL2NhcmQubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOi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kFDSDtvQkFDRCxPQUFPLEVBQUUsQ0FBQyxTQUFTLENBQUM7aUJBQ3JCIiwic291cmNlc0NvbnRlbnQiOlsiaW1wb3J0IHsgTmdNb2R1bGUgfSBmcm9tICdAYW5ndWxhci9jb3JlJztcbmltcG9ydCB7IENvbW1vbk1vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvbW1vbic7XG5pbXBvcnQgeyBGb3JtbHlNb2R1bGUgfSBmcm9tICdAbmd4LWZvcm1seS9jb3JlJztcbmltcG9ydCB7IE56T3V0bGV0TW9kdWxlIH0gZnJvbSAnbmctem9ycm8tYW50ZC9jb3JlL291dGxldCc7XG5pbXBvcnQgeyBGb3JtbHlGaWVsZENhcmQgfSBmcm9tICcuL2NhcmQudHlwZSc7XG5pbXBvcnQgeyBOekNhcmRNb2R1bGUgfSBmcm9tICduZy16b3Jyby1hbnRkL2NhcmQnO1xuXG5jb25zdCBDT01QT05FTlQgPSBGb3JtbHlGaWVsZENhcmQ7XG5cbkBOZ01vZHVsZSh7XG4gIGRlY2xhcmF0aW9uczogW0NPTVBPTkVOVF0sXG4gIGltcG9ydHM6IFtcbiAgICBDb21tb25Nb2R1bGUsXG4gICAgTnpDYXJkTW9kdWxlLFxuICAgIE56T3V0bGV0TW9kdWxlLFxuICAgIEZvcm1seU1vZHVsZS5mb3JDaGlsZCh7XG4gICAgICB0eXBlczogW1xuICAgICAgICB7XG4gICAgICAgICAgbmFtZTogJ2NhcmQnLFxuICAgICAgICAgIGNvbXBvbmVudDogQ09NUE9ORU5UXG4gICAgICAgIH1cbiAgICAgIF1cbiAgICB9KVxuICBdLFxuICBleHBvcnRzOiBbQ09NUE9ORU5UXVxufSlcbmV4cG9ydCBjbGFzcyBGb3JtbHlOekNhcmRNb2R1bGUge31cbiJdfQ==
|
@@ -0,0 +1,93 @@
|
|
1
|
+
import { Component, Optional, ChangeDetectionStrategy } from '@angular/core';
|
2
|
+
import { FieldType } from '@ngx-formly/core';
|
3
|
+
import { FormlyBoxTemplates, resolveTplName, resolveTplNameArray } from 'ngx-formly-zorro-antd/common';
|
4
|
+
import * as i0 from "@angular/core";
|
5
|
+
import * as i1 from "ngx-formly-zorro-antd/common";
|
6
|
+
import * as i2 from "@angular/common";
|
7
|
+
import * as i3 from "ng-zorro-antd/card";
|
8
|
+
import * as i4 from "ng-zorro-antd/core/outlet";
|
9
|
+
import * as i5 from "@ngx-formly/core";
|
10
|
+
export class FormlyFieldCard extends FieldType {
|
11
|
+
constructor(fieldTemplates) {
|
12
|
+
super();
|
13
|
+
this.fieldTemplates = fieldTemplates;
|
14
|
+
this.defaultOptions = {
|
15
|
+
props: {
|
16
|
+
bordered: true,
|
17
|
+
type: 'button'
|
18
|
+
}
|
19
|
+
};
|
20
|
+
}
|
21
|
+
get nzTitle() {
|
22
|
+
return resolveTplName(this.props, this.fieldTemplates, 'title');
|
23
|
+
}
|
24
|
+
get nzCover() {
|
25
|
+
return resolveTplName(this.props, this.fieldTemplates, 'cover');
|
26
|
+
}
|
27
|
+
get nzExtra() {
|
28
|
+
return resolveTplName(this.props, this.fieldTemplates, 'extra');
|
29
|
+
}
|
30
|
+
get nzActions() {
|
31
|
+
return resolveTplNameArray(this.props, this.fieldTemplates, 'actions') || [];
|
32
|
+
}
|
33
|
+
get nzContent() {
|
34
|
+
return resolveTplName(this.props, this.fieldTemplates, 'content');
|
35
|
+
}
|
36
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldCard, deps: [{ token: i1.FormlyBoxTemplates, optional: true }], target: i0.ɵɵFactoryTarget.Component }); }
|
37
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "16.1.5", type: FormlyFieldCard, selector: "formly-field-card", usesInheritance: true, ngImport: i0, template: `
|
38
|
+
<nz-card
|
39
|
+
[nzActions]="nzActions"
|
40
|
+
[formlyAttributes]="field"
|
41
|
+
[nzBodyStyle]="props['bodyStyle'] ?? null"
|
42
|
+
[nzSize]="props['size']!"
|
43
|
+
[nzBorderless]="props['borderless']!!"
|
44
|
+
[nzCover]="nzCover"
|
45
|
+
[nzExtra]="nzExtra"
|
46
|
+
[nzHoverable]="props['hoverable']!!"
|
47
|
+
[nzLoading]="props['loading']!!"
|
48
|
+
[nzTitle]="nzTitle"
|
49
|
+
[nzBordered]="props['bordered']!!"
|
50
|
+
[nzType]="props['type'] ?? null"
|
51
|
+
>
|
52
|
+
<formly-field [field]="item" *ngFor="let item of field.fieldGroup"></formly-field>
|
53
|
+
<ng-container
|
54
|
+
*nzStringTemplateOutlet="nzContent; context: { $implicit: field, options: props }"
|
55
|
+
>
|
56
|
+
{{ nzContent }}
|
57
|
+
</ng-container>
|
58
|
+
</nz-card>
|
59
|
+
`, isInline: true, dependencies: [{ kind: "directive", type: i2.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "component", type: i3.NzCardComponent, selector: "nz-card", inputs: ["nzBordered", "nzBorderless", "nzLoading", "nzHoverable", "nzBodyStyle", "nzCover", "nzActions", "nzType", "nzSize", "nzTitle", "nzExtra"], exportAs: ["nzCard"] }, { kind: "directive", type: i4.NzStringTemplateOutletDirective, selector: "[nzStringTemplateOutlet]", inputs: ["nzStringTemplateOutletContext", "nzStringTemplateOutlet"], exportAs: ["nzStringTemplateOutlet"] }, { kind: "component", type: i5.FormlyField, selector: "formly-field", inputs: ["field"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
60
|
+
}
|
61
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyFieldCard, decorators: [{
|
62
|
+
type: Component,
|
63
|
+
args: [{
|
64
|
+
selector: 'formly-field-card',
|
65
|
+
template: `
|
66
|
+
<nz-card
|
67
|
+
[nzActions]="nzActions"
|
68
|
+
[formlyAttributes]="field"
|
69
|
+
[nzBodyStyle]="props['bodyStyle'] ?? null"
|
70
|
+
[nzSize]="props['size']!"
|
71
|
+
[nzBorderless]="props['borderless']!!"
|
72
|
+
[nzCover]="nzCover"
|
73
|
+
[nzExtra]="nzExtra"
|
74
|
+
[nzHoverable]="props['hoverable']!!"
|
75
|
+
[nzLoading]="props['loading']!!"
|
76
|
+
[nzTitle]="nzTitle"
|
77
|
+
[nzBordered]="props['bordered']!!"
|
78
|
+
[nzType]="props['type'] ?? null"
|
79
|
+
>
|
80
|
+
<formly-field [field]="item" *ngFor="let item of field.fieldGroup"></formly-field>
|
81
|
+
<ng-container
|
82
|
+
*nzStringTemplateOutlet="nzContent; context: { $implicit: field, options: props }"
|
83
|
+
>
|
84
|
+
{{ nzContent }}
|
85
|
+
</ng-container>
|
86
|
+
</nz-card>
|
87
|
+
`,
|
88
|
+
changeDetection: ChangeDetectionStrategy.OnPush
|
89
|
+
}]
|
90
|
+
}], ctorParameters: function () { return [{ type: i1.FormlyBoxTemplates, decorators: [{
|
91
|
+
type: Optional
|
92
|
+
}] }]; } });
|
93
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC50eXBlLmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vcGFja2FnZXMvZm9ybWx5YW50ZC9jYXJkL3NyYy9jYXJkLnR5cGUudHMiXSwibmFtZXMiOltdLCJtYXBwaW5ncyI6IkFBQUEsT0FBTyxFQUFFLFNBQVMsRUFBcUIsUUFBUSxFQUFFLHVCQUF1QixFQUFFLE1BQU0sZUFBZSxDQUFDO0FBQ2hHLE9BQU8sRUFBRSxTQUFTLEVBQXNDLE1BQU0sa0JBQWtCLENBQUM7QUFDakYsT0FBTyxFQUNMLGtCQUFrQixFQUNsQixjQUFjLEVBQ2QsbUJBQW1CLEVBQ3BCLE1BQU0sOEJBQThCLENBQUM7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PENhcmRQcm9wcz4ge1xuICB0eXBlOiAnY2FyZCcgfCBUeXBlPEZvcm1seUZpZWxkQ2FyZD47XG59XG5cbkBDb21wb25lbnQoe1xuICBzZWxlY3RvcjogJ2Zvcm1seS1maWVsZC1jYXJkJyxcbiAgdGVtcGxhdGU6IGBcbiAgICA8bnotY2FyZFxuICAgICAgW256QWN0aW9uc109XCJuekFjdGlvbnNcIlxuICAgICAgW2Zvcm1seUF0dHJpYnV0ZXNdPVwiZmllbGRcIlxuICAgICAgW256Qm9keVN0eWxlXT1cInByb3BzWydib2R5U3R5bGUnXSA/PyBudWxsXCJcbiAgICAgIFtuelNpemVdPVwicHJvcHNbJ3NpemUnXSFcIlxuICAgICAgW256Qm9yZGVybGVzc109XCJwcm9wc1snYm9yZGVybGVzcyddISFcIlxuICAgICAgW256Q292ZXJdPVwibnpDb3ZlclwiXG4gICAgICBbbnpFeHRyYV09XCJuekV4dHJhXCJcbiAgICAgIFtuekhvdmVyYWJsZV09XCJwcm9wc1snaG92ZXJhYmxlJ10hIVwiXG4gICAgICBbbnpMb2FkaW5nXT1cInByb3BzWydsb2FkaW5nJ10hIVwiXG4gICAgICBbbnpUaXRsZV09XCJuelRpdGxlXCJcbiAgICAgIFtuekJvcmRlcmVkXT1cInByb3BzWydib3JkZXJlZCddISFcIlxuICAgICAgW256VHlwZV09XCJwcm9wc1sndHlwZSddID8/IG51bGxcIlxuICAgID5cbiAgICAgIDxmb3JtbHktZmllbGQgW2ZpZWxkXT1cIml0ZW1cIiAqbmdGb3I9XCJsZXQgaXRlbSBvZiBmaWVsZC5maWVsZEdyb3VwXCI+PC9mb3JtbHktZmllbGQ+XG4gICAgICA8bmctY29udGFpbmVyXG4gICAgICAgICpuelN0cmluZ1RlbXBsYXRlT3V0bGV0PVwibnpDb250ZW50OyBjb250ZXh0OiB7ICRpbXBsaWNpdDogZmllbGQsIG9wdGlvbnM6IHByb3BzIH1cIlxuICAgICAgPlxuICAgICAgICB7eyBuekNvbnRlbnQgf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mFtZSh0aGlzLnByb3BzLCB0aGlzLmZpZWxkVGVtcGxhdGVzLCAnY29udGVudCcpO1xuICB9XG59XG4iXX0=
|
@@ -1,3 +1,3 @@
|
|
1
1
|
export { FormlyNzCardModule } from './card.module';
|
2
|
-
export {
|
3
|
-
//# sourceMappingURL=data:application/json;base64,
|
2
|
+
export { FormlyFieldCard } from './card.type';
|
3
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoicHVibGljX2FwaS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvY2FyZC9zcmMvcHVibGljX2FwaS50cyJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsa0JBQWtCLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDbkQsT0FBTyxFQUFFLGVBQWUsRUFBeUIsTUFBTSxhQUFhLENBQUMiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgeyBGb3JtbHlOekNhcmRNb2R1bGUgfSBmcm9tICcuL2NhcmQubW9kdWxlJztcbmV4cG9ydCB7IEZvcm1seUZpZWxkQ2FyZCwgRm9ybWx5Q2FyZEZpZWxkQ29uZmlnIH0gZnJvbSAnLi9jYXJkLnR5cGUnO1xuIl19
|
@@ -0,0 +1,45 @@
|
|
1
|
+
import { NgModule } from '@angular/core';
|
2
|
+
import { CommonModule } from '@angular/common';
|
3
|
+
import { FormlyModule } from '@ngx-formly/core';
|
4
|
+
import { FormlyWrapperCard } from './card.wrapper';
|
5
|
+
import { NzCardModule } from 'ng-zorro-antd/card';
|
6
|
+
import { FormlyCommonModule } from 'ngx-formly-zorro-antd/common';
|
7
|
+
import * as i0 from "@angular/core";
|
8
|
+
import * as i1 from "@ngx-formly/core";
|
9
|
+
export class FormlyNzCardWrapperModule {
|
10
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardWrapperModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
11
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardWrapperModule, declarations: [FormlyWrapperCard], imports: [CommonModule,
|
12
|
+
NzCardModule,
|
13
|
+
FormlyCommonModule, i1.FormlyModule] }); }
|
14
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardWrapperModule, imports: [CommonModule,
|
15
|
+
NzCardModule,
|
16
|
+
FormlyCommonModule,
|
17
|
+
FormlyModule.forChild({
|
18
|
+
wrappers: [
|
19
|
+
{
|
20
|
+
name: 'card-wrapper',
|
21
|
+
component: FormlyWrapperCard
|
22
|
+
}
|
23
|
+
]
|
24
|
+
})] }); }
|
25
|
+
}
|
26
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "16.1.5", ngImport: i0, type: FormlyNzCardWrapperModule, decorators: [{
|
27
|
+
type: NgModule,
|
28
|
+
args: [{
|
29
|
+
declarations: [FormlyWrapperCard],
|
30
|
+
imports: [
|
31
|
+
CommonModule,
|
32
|
+
NzCardModule,
|
33
|
+
FormlyCommonModule,
|
34
|
+
FormlyModule.forChild({
|
35
|
+
wrappers: [
|
36
|
+
{
|
37
|
+
name: 'card-wrapper',
|
38
|
+
component: FormlyWrapperCard
|
39
|
+
}
|
40
|
+
]
|
41
|
+
})
|
42
|
+
]
|
43
|
+
}]
|
44
|
+
}] });
|
45
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiY2FyZC13cmFwcGVyLm1vZHVsZS5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uL3BhY2thZ2VzL2Zvcm1seWFudGQvY2FyZC13cmFwcG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