ngx-formly-zorro-antd 18.0.0 → 18.2.0
Sign up to get free protection for your applications and to get access to all the features.
- package/datepicker/datepicker.props.d.ts +26 -20
- package/esm2022/button/button.module.mjs +5 -5
- package/esm2022/button/button.type.mjs +4 -4
- package/esm2022/button-group/button-group.module.mjs +5 -5
- package/esm2022/button-group/button-group.type.mjs +8 -8
- package/esm2022/card/card.module.mjs +5 -5
- package/esm2022/card/card.type.mjs +4 -4
- package/esm2022/card-wrapper/card-wrapper.module.mjs +5 -5
- package/esm2022/card-wrapper/card.wrapper.mjs +4 -4
- package/esm2022/cascader/cascader.module.mjs +5 -5
- package/esm2022/cascader/cascader.type.mjs +4 -4
- package/esm2022/checkbox/checkbox.module.mjs +5 -5
- package/esm2022/checkbox/checkbox.type.mjs +4 -4
- package/esm2022/common/common.module.mjs +5 -5
- package/esm2022/common/formly-box-templates.directive.mjs +4 -4
- package/esm2022/datepicker/datepicker.module.mjs +5 -5
- package/esm2022/datepicker/datepicker.props.mjs +1 -1
- package/esm2022/datepicker/datepicker.type.mjs +8 -4
- package/esm2022/flex/flex.module.mjs +5 -5
- package/esm2022/flex/flex.type.mjs +4 -4
- package/esm2022/form-field/form-field.module.mjs +5 -5
- package/esm2022/form-field/form-field.wrapper.mjs +4 -4
- package/esm2022/grid/grid.module.mjs +5 -5
- package/esm2022/grid/grid.type.mjs +4 -4
- package/esm2022/input/input.module.mjs +5 -5
- package/esm2022/input/input.type.mjs +4 -4
- package/esm2022/input-group/input-group.module.mjs +5 -5
- package/esm2022/input-group/input-group.type.mjs +4 -4
- package/esm2022/input-number/input-number.module.mjs +5 -5
- package/esm2022/input-number/input-number.type.mjs +4 -4
- package/esm2022/lib/ui-ng-zorro-antd.module.mjs +5 -5
- package/esm2022/radio/radio.module.mjs +5 -5
- package/esm2022/radio/radio.type.mjs +4 -4
- package/esm2022/rate/rate.module.mjs +5 -5
- package/esm2022/rate/rate.type.mjs +4 -4
- package/esm2022/ref-template/ref-template.module.mjs +5 -5
- package/esm2022/ref-template/ref-template.type.mjs +4 -4
- package/esm2022/select/select.module.mjs +5 -5
- package/esm2022/select/select.type.mjs +4 -4
- package/esm2022/slider/slider.module.mjs +5 -5
- package/esm2022/slider/slider.type.mjs +4 -4
- package/esm2022/space/space.module.mjs +5 -5
- package/esm2022/space/space.type.mjs +4 -4
- package/esm2022/switch/switch.module.mjs +5 -5
- package/esm2022/switch/switch.type.mjs +4 -4
- package/esm2022/tabs/tabs.module.mjs +5 -5
- package/esm2022/tabs/tabs.props.mjs +1 -1
- package/esm2022/tabs/tabs.wrapper.mjs +15 -9
- package/esm2022/text-value/text-value.module.mjs +5 -5
- package/esm2022/text-value/text-value.type.mjs +4 -4
- package/esm2022/textarea/textarea.module.mjs +5 -5
- package/esm2022/textarea/textarea.type.mjs +4 -4
- package/esm2022/timepicker/timepicker.module.mjs +5 -5
- package/esm2022/timepicker/timepicker.type.mjs +4 -4
- package/esm2022/transfer/transfer.component.mjs +4 -4
- package/esm2022/transfer/transfer.module.mjs +5 -5
- package/esm2022/transfer/transfer.type.mjs +4 -4
- package/esm2022/tree-select/tree-select.module.mjs +5 -5
- package/esm2022/tree-select/tree-select.type.mjs +9 -6
- package/esm2022/upload/upload.component.mjs +4 -4
- package/esm2022/upload/upload.module.mjs +5 -5
- package/esm2022/upload/upload.type.mjs +4 -4
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs +11 -11
- package/fesm2022/ngx-formly-zorro-antd-button-group.mjs.map +1 -1
- 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 +7 -7
- package/fesm2022/ngx-formly-zorro-antd-card-wrapper.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-card.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-card.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-cascader.mjs +7 -7
- 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 +7 -7
- package/fesm2022/ngx-formly-zorro-antd-common.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs +11 -7
- package/fesm2022/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-flex.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-form-field.mjs +7 -7
- 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 +7 -7
- 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-ref-template.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-ref-template.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-select.mjs +7 -7
- 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 +7 -7
- package/fesm2022/ngx-formly-zorro-antd-space.mjs.map +1 -1
- 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 +18 -12
- package/fesm2022/ngx-formly-zorro-antd-tabs.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-text-value.mjs +7 -7
- package/fesm2022/ngx-formly-zorro-antd-text-value.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 +12 -9
- package/fesm2022/ngx-formly-zorro-antd-tree-select.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs +10 -10
- package/fesm2022/ngx-formly-zorro-antd-upload.mjs.map +1 -1
- package/fesm2022/ngx-formly-zorro-antd.mjs +4 -4
- package/fesm2022/ngx-formly-zorro-antd.mjs.map +1 -1
- package/package.json +26 -26
- package/tabs/tabs.props.d.ts +46 -32
- package/timepicker/timepicker.type.d.ts +2 -1
- package/tree-select/tree-select.type.d.ts +3 -1
@@ -28,8 +28,8 @@ class FormlyWrapperTabs extends FieldWrapper {
|
|
28
28
|
}
|
29
29
|
};
|
30
30
|
}
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
32
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyWrapperTabs, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
32
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: FormlyWrapperTabs, selector: "formly-wrapper-tabs", usesInheritance: true, ngImport: i0, template: `<nz-tabset
|
33
33
|
[(nzSelectedIndex)]="props['selectedIndex']!"
|
34
34
|
[nzAnimated]="props['animated'] ?? true"
|
35
35
|
[nzSize]="props['size']!"
|
@@ -42,6 +42,8 @@ class FormlyWrapperTabs extends FieldWrapper {
|
|
42
42
|
[nzLinkRouter]="!!props['linkRouter']"
|
43
43
|
[nzLinkExact]="!!props['linkExact']"
|
44
44
|
[nzCanDeactivate]="props['canDeactivate'] ?? null"
|
45
|
+
[nzCentered]="!!props['centered']"
|
46
|
+
[nzDestroyInactiveTabPane]="!!props['destroyInactiveTabPane']"
|
45
47
|
[nzHideAdd]="!!props['hideAdd']"
|
46
48
|
[nzAddIcon]="props['addIcon']!"
|
47
49
|
(nzSelectedIndexChange)="props['selectedIndexChange']?.(field, $event)"
|
@@ -51,9 +53,10 @@ class FormlyWrapperTabs extends FieldWrapper {
|
|
51
53
|
>
|
52
54
|
@for (tab of field.fieldGroup; track tab.id) {
|
53
55
|
<nz-tab
|
54
|
-
[nzTitle]="tab.props?.label
|
56
|
+
[nzTitle]="tab.props?.label ?? ''"
|
55
57
|
[nzForceRender]="tab.props!['tab']?.forceRender"
|
56
|
-
[nzDisabled]="tab.props!['tab']?.disabled"
|
58
|
+
[nzDisabled]="!!tab.props!['tab']?.disabled"
|
59
|
+
[nzClosable]="!!tab.props!['tab']?.closable"
|
57
60
|
(nzClick)="tab.props!['tab']?.click?.(field)"
|
58
61
|
(nzContextmenu)="tab.props!['tab']?.contextmenu?.(field, $event)"
|
59
62
|
(nzSelect)="tab.props!['tab']?.select?.(field)"
|
@@ -62,9 +65,9 @@ class FormlyWrapperTabs extends FieldWrapper {
|
|
62
65
|
<formly-field [field]="tab"></formly-field>
|
63
66
|
</nz-tab>
|
64
67
|
}
|
65
|
-
</nz-tabset>`, isInline: true, dependencies: [{ kind: "component", type: i1.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i1.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "component", type: i2.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
68
|
+
</nz-tabset>`, isInline: true, dependencies: [{ kind: "component", type: i1.NzTabSetComponent, selector: "nz-tabset", inputs: ["nzSelectedIndex", "nzTabPosition", "nzTabBarExtraContent", "nzCanDeactivate", "nzAddIcon", "nzTabBarStyle", "nzType", "nzSize", "nzAnimated", "nzTabBarGutter", "nzHideAdd", "nzCentered", "nzHideAll", "nzLinkRouter", "nzLinkExact", "nzDestroyInactiveTabPane"], outputs: ["nzSelectChange", "nzSelectedIndexChange", "nzTabListScroll", "nzClose", "nzAdd"], exportAs: ["nzTabset"] }, { kind: "component", type: i1.NzTabComponent, selector: "nz-tab", inputs: ["nzTitle", "nzClosable", "nzCloseIcon", "nzDisabled", "nzForceRender"], outputs: ["nzSelect", "nzDeselect", "nzClick", "nzContextmenu"], exportAs: ["nzTab"] }, { kind: "component", type: i2.FormlyField, selector: "formly-field", inputs: ["field"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
66
69
|
}
|
67
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
70
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyWrapperTabs, decorators: [{
|
68
71
|
type: Component,
|
69
72
|
args: [{
|
70
73
|
selector: 'formly-wrapper-tabs',
|
@@ -81,6 +84,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
81
84
|
[nzLinkRouter]="!!props['linkRouter']"
|
82
85
|
[nzLinkExact]="!!props['linkExact']"
|
83
86
|
[nzCanDeactivate]="props['canDeactivate'] ?? null"
|
87
|
+
[nzCentered]="!!props['centered']"
|
88
|
+
[nzDestroyInactiveTabPane]="!!props['destroyInactiveTabPane']"
|
84
89
|
[nzHideAdd]="!!props['hideAdd']"
|
85
90
|
[nzAddIcon]="props['addIcon']!"
|
86
91
|
(nzSelectedIndexChange)="props['selectedIndexChange']?.(field, $event)"
|
@@ -90,9 +95,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
90
95
|
>
|
91
96
|
@for (tab of field.fieldGroup; track tab.id) {
|
92
97
|
<nz-tab
|
93
|
-
[nzTitle]="tab.props?.label
|
98
|
+
[nzTitle]="tab.props?.label ?? ''"
|
94
99
|
[nzForceRender]="tab.props!['tab']?.forceRender"
|
95
|
-
[nzDisabled]="tab.props!['tab']?.disabled"
|
100
|
+
[nzDisabled]="!!tab.props!['tab']?.disabled"
|
101
|
+
[nzClosable]="!!tab.props!['tab']?.closable"
|
96
102
|
(nzClick)="tab.props!['tab']?.click?.(field)"
|
97
103
|
(nzContextmenu)="tab.props!['tab']?.contextmenu?.(field, $event)"
|
98
104
|
(nzSelect)="tab.props!['tab']?.select?.(field)"
|
@@ -107,10 +113,10 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
107
113
|
}] });
|
108
114
|
|
109
115
|
class FormlyNzTabsModule {
|
110
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
111
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.
|
116
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTabsModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
117
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTabsModule, declarations: [FormlyWrapperTabs], imports: [CommonModule,
|
112
118
|
NzTabsModule, i2.FormlyModule] }); }
|
113
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.
|
119
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTabsModule, imports: [CommonModule,
|
114
120
|
NzTabsModule,
|
115
121
|
FormlyModule.forChild({
|
116
122
|
wrappers: [
|
@@ -121,7 +127,7 @@ class FormlyNzTabsModule {
|
|
121
127
|
]
|
122
128
|
})] }); }
|
123
129
|
}
|
124
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
130
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTabsModule, decorators: [{
|
125
131
|
type: NgModule,
|
126
132
|
args: [{
|
127
133
|
declarations: [FormlyWrapperTabs],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-tabs.mjs","sources":["../../../../packages/formlyantd/tabs/src/tabs.wrapper.ts","../../../../packages/formlyantd/tabs/src/tabs.module.ts","../../../../packages/formlyantd/tabs/src/ngx-formly-zorro-antd-tabs.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { TabsProps } from './tabs.props';\n\nexport interface FormlyTabsWrapperConfig extends NzFormlyFieldConfig<TabsProps> {\n wrappers: ('tabs' | Type<FormlyWrapperTabs>)[];\n}\n/** @private */\n@Component({\n selector: 'formly-wrapper-tabs',\n template: `<nz-tabset\n [(nzSelectedIndex)]=\"props['selectedIndex']!\"\n [nzAnimated]=\"props['animated'] ?? true\"\n [nzSize]=\"props['size']!\"\n [nzTabBarExtraContent]=\"props['tabBarExtraContent']\"\n [nzTabBarStyle]=\"props['tabBarStyle'] ?? null\"\n [nzTabPosition]=\"props['tabPosition']!\"\n [nzType]=\"props['type']!\"\n [nzTabBarGutter]=\"props['tabBarGutter']\"\n [nzHideAll]=\"!!props['hideAll']\"\n [nzLinkRouter]=\"!!props['linkRouter']\"\n [nzLinkExact]=\"!!props['linkExact']\"\n [nzCanDeactivate]=\"props['canDeactivate'] ?? null\"\n [nzHideAdd]=\"!!props['hideAdd']\"\n [nzAddIcon]=\"props['addIcon']!\"\n (nzSelectedIndexChange)=\"props['selectedIndexChange']?.(field, $event)\"\n (nzSelectChange)=\"props['selectChange']?.(field, $event.index, $event.tab)\"\n (nzAdd)=\"props['onAdd']?.(field)\"\n (nzClose)=\"props['onClose']?.(field, $event.index)\"\n >\n @for (tab of field.fieldGroup; track tab.id) {\n <nz-tab\n [nzTitle]=\"tab.props?.label
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-tabs.mjs","sources":["../../../../packages/formlyantd/tabs/src/tabs.wrapper.ts","../../../../packages/formlyantd/tabs/src/tabs.module.ts","../../../../packages/formlyantd/tabs/src/ngx-formly-zorro-antd-tabs.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldWrapper } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { TabsProps } from './tabs.props';\n\nexport interface FormlyTabsWrapperConfig extends NzFormlyFieldConfig<TabsProps> {\n wrappers: ('tabs' | Type<FormlyWrapperTabs>)[];\n}\n/** @private */\n@Component({\n selector: 'formly-wrapper-tabs',\n template: `<nz-tabset\n [(nzSelectedIndex)]=\"props['selectedIndex']!\"\n [nzAnimated]=\"props['animated'] ?? true\"\n [nzSize]=\"props['size']!\"\n [nzTabBarExtraContent]=\"props['tabBarExtraContent']\"\n [nzTabBarStyle]=\"props['tabBarStyle'] ?? null\"\n [nzTabPosition]=\"props['tabPosition']!\"\n [nzType]=\"props['type']!\"\n [nzTabBarGutter]=\"props['tabBarGutter']\"\n [nzHideAll]=\"!!props['hideAll']\"\n [nzLinkRouter]=\"!!props['linkRouter']\"\n [nzLinkExact]=\"!!props['linkExact']\"\n [nzCanDeactivate]=\"props['canDeactivate'] ?? null\"\n [nzCentered]=\"!!props['centered']\"\n [nzDestroyInactiveTabPane]=\"!!props['destroyInactiveTabPane']\"\n [nzHideAdd]=\"!!props['hideAdd']\"\n [nzAddIcon]=\"props['addIcon']!\"\n (nzSelectedIndexChange)=\"props['selectedIndexChange']?.(field, $event)\"\n (nzSelectChange)=\"props['selectChange']?.(field, $event.index, $event.tab)\"\n (nzAdd)=\"props['onAdd']?.(field)\"\n (nzClose)=\"props['onClose']?.(field, $event.index)\"\n >\n @for (tab of field.fieldGroup; track tab.id) {\n <nz-tab\n [nzTitle]=\"tab.props?.label ?? ''\"\n [nzForceRender]=\"tab.props!['tab']?.forceRender\"\n [nzDisabled]=\"!!tab.props!['tab']?.disabled\"\n [nzClosable]=\"!!tab.props!['tab']?.closable\"\n (nzClick)=\"tab.props!['tab']?.click?.(field)\"\n (nzContextmenu)=\"tab.props!['tab']?.contextmenu?.(field, $event)\"\n (nzSelect)=\"tab.props!['tab']?.select?.(field)\"\n (nzDeselect)=\"tab.props!['tab']?.deselect?.(field)\"\n >\n <formly-field [field]=\"tab\"></formly-field>\n </nz-tab>\n }\n </nz-tabset>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyWrapperTabs extends FieldWrapper<NzFormlyFieldConfig<TabsProps>> {\n override defaultOptions = {\n props: {\n size: 'default' as const,\n type: 'line' as const,\n tabPosition: 'top' as const,\n hideAll: false,\n linkRouter: false,\n linkExact: true,\n centered: false,\n hideAdd: false,\n selectedIndex: null,\n tab: {\n forceRender: false,\n disabled: false\n }\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\n\nimport { FormlyWrapperTabs } from './tabs.wrapper';\nimport { NzTabsModule } from 'ng-zorro-antd/tabs';\n\n@NgModule({\n declarations: [FormlyWrapperTabs],\n imports: [\n CommonModule,\n\n NzTabsModule,\n\n FormlyModule.forChild({\n wrappers: [\n {\n name: 'tabs',\n component: FormlyWrapperTabs\n }\n ]\n })\n ]\n})\nexport class FormlyNzTabsModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;AAQA;AA0CM,MAAO,iBAAkB,SAAQ,YAA4C,CAAA;AAzCnF,IAAA,WAAA,GAAA;;AA0CW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,IAAI,EAAE,MAAe;AACrB,gBAAA,WAAW,EAAE,KAAc;AAC3B,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,aAAa,EAAE,IAAI;AACnB,gBAAA,GAAG,EAAE;AACH,oBAAA,WAAW,EAAE,KAAK;AAClB,oBAAA,QAAQ,EAAE,KAAK;AAChB,iBAAA;AACF,aAAA;SACF,CAAC;AACH,KAAA;+GAlBY,iBAAiB,EA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,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBAEZ,YAAY;wBAEZ,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,QAAQ,EAAE;AACR,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,iBAAiB;AAC7B,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACvBD;;AAEG;;;;"}
|
@@ -44,8 +44,8 @@ class FormlyFieldTextValue extends FieldType {
|
|
44
44
|
ngOnDestroy() {
|
45
45
|
this.subscription?.unsubscribe();
|
46
46
|
}
|
47
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
48
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.
|
47
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldTextValue, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
48
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.12", type: FormlyFieldTextValue, selector: "formly-field-text-value", usesInheritance: true, ngImport: i0, template: `
|
49
49
|
<nz-form-text
|
50
50
|
class="wrap-text"
|
51
51
|
[formlyAttributes]="field"
|
@@ -56,7 +56,7 @@ class FormlyFieldTextValue extends FieldType {
|
|
56
56
|
</nz-form-text>
|
57
57
|
`, isInline: true, styles: [".wrap-text{word-break:break-all}\n"], dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: i2.NzFormTextComponent, selector: "nz-form-text", exportAs: ["nzFormText"] }, { kind: "directive", type: i3.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i4.DefaultifyPipe, name: "defaultify" }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
58
58
|
}
|
59
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
59
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldTextValue, decorators: [{
|
60
60
|
type: Component,
|
61
61
|
args: [{ selector: 'formly-field-text-value', template: `
|
62
62
|
<nz-form-text
|
@@ -71,11 +71,11 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
71
71
|
}] });
|
72
72
|
|
73
73
|
class FormlyNzTextValueModule {
|
74
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
75
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.
|
74
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTextValueModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
75
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTextValueModule, declarations: [FormlyFieldTextValue], imports: [CommonModule,
|
76
76
|
NzFormModule,
|
77
77
|
DefaultifyPipe, i3.FormlyModule] }); }
|
78
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.
|
78
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTextValueModule, imports: [CommonModule,
|
79
79
|
NzFormModule,
|
80
80
|
FormlyModule.forChild({
|
81
81
|
types: [
|
@@ -87,7 +87,7 @@ class FormlyNzTextValueModule {
|
|
87
87
|
]
|
88
88
|
})] }); }
|
89
89
|
}
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTextValueModule, decorators: [{
|
91
91
|
type: NgModule,
|
92
92
|
args: [{
|
93
93
|
declarations: [FormlyFieldTextValue],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-text-value.mjs","sources":["../../../../packages/formlyantd/text-value/src/text-value.type.ts","../../../../packages/formlyantd/text-value/src/text-value.module.ts","../../../../packages/formlyantd/text-value/src/ngx-formly-zorro-antd-text-value.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Type, Component, OnDestroy, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport { Observable, of, Subscription, isObservable } from 'rxjs';\nimport { isPromise } from '@pkt/ng.core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\n\n/**\n * @publicApi\n */\nexport interface TextValueProps extends FormlyFieldProps {\n /**\n * 格式化函数\n * @param value 表单值\n * @param field 当前字段\n */\n format?: (\n value: NzSafeAny,\n field: NzFormlyFieldConfig<TextValueProps>\n ) => Observable<NzSafeAny> | Promise<NzSafeAny> | NzSafeAny | null;\n\n /**\n * 默认显示文本\n */\n defaultText?: string;\n}\n\nexport interface FormlyTextValueFieldConfig extends NzFormlyFieldConfig<TextValueProps> {\n type: 'text' | Type<FormlyFieldTextValue>;\n}\n/** @private */\n@Component({\n selector: 'formly-field-text-value',\n template: `\n <nz-form-text\n class=\"wrap-text\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n >\n {{ textValue$ | async | defaultify: props.defaultText }}\n </nz-form-text>\n `,\n styles: [\n `\n .wrap-text {\n word-break: break-all;\n }\n `\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTextValue<T = NzSafeAny>\n extends FieldType<FieldTypeConfig<TextValueProps>>\n implements OnInit, OnDestroy\n{\n private result?: Observable<T> | Promise<T>;\n private subscription?: Subscription;\n\n override defaultOptions = {\n props: {\n defaultText: '--'\n }\n };\n\n ngOnInit(): void {\n this.subscription = this.formControl!.valueChanges.subscribe(() => {\n this.result = undefined;\n });\n }\n\n get textValue$() {\n const value = this.formControl!.value;\n const format = this.props.format || this.formState.format;\n\n if (typeof format !== 'function') {\n return of(value);\n }\n\n if (this.result) {\n return this.result;\n }\n const result = format(value, this.field);\n if (isPromise(result) || isObservable(result)) {\n this.result = result as NzSafeAny;\n return result;\n }\n return of(result);\n }\n\n ngOnDestroy(): void {\n this.subscription?.unsubscribe();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { DefaultifyPipe } from '@pkt/ng.core';\nimport { FormlyFieldTextValue } from './text-value.type';\n\nimport { NzFormModule } from 'ng-zorro-antd/form';\n\n@NgModule({\n declarations: [FormlyFieldTextValue],\n imports: [\n CommonModule,\n NzFormModule,\n DefaultifyPipe,\n FormlyModule.forChild({\n types: [\n {\n name: 'text',\n component: FormlyFieldTextValue,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTextValueModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA+BA;AAsBM,MAAO,oBACX,SAAQ,SAA0C,CAAA;AAtBpD,IAAA,WAAA,GAAA;;AA4BW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,WAAW,EAAE,IAAI;AAClB,aAAA;SACF,CAAC;AA8BH,KAAA;IA5BC,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,WAAY,CAAC,YAAY,CAAC,SAAS,CAAC,MAAK;AAChE,YAAA,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;AAC1B,SAAC,CAAC,CAAC;KACJ;AAED,IAAA,IAAI,UAAU,GAAA;AACZ,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,WAAY,CAAC,KAAK,CAAC;AACtC,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;AAE1D,QAAA,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE;AAChC,YAAA,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;SAClB;AAED,QAAA,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,OAAO,IAAI,CAAC,MAAM,CAAC;SACpB;QACD,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QACzC,IAAI,SAAS,CAAC,MAAM,CAAC,IAAI,YAAY,CAAC,MAAM,CAAC,EAAE;AAC7C,YAAA,IAAI,CAAC,MAAM,GAAG,MAAmB,CAAC;AAClC,YAAA,OAAO,MAAM,CAAC;SACf;AACD,QAAA,OAAO,EAAE,CAAC,MAAM,CAAC,CAAC;KACnB;IAED,WAAW,GAAA;AACT,QAAA,IAAI,CAAC,YAAY,EAAE,WAAW,EAAE,CAAC;KAClC
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-text-value.mjs","sources":["../../../../packages/formlyantd/text-value/src/text-value.type.ts","../../../../packages/formlyantd/text-value/src/text-value.module.ts","../../../../packages/formlyantd/text-value/src/ngx-formly-zorro-antd-text-value.ts"],"sourcesContent":["import { ChangeDetectionStrategy, Type, Component, OnDestroy, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport { Observable, of, Subscription, isObservable } from 'rxjs';\nimport { isPromise } from '@pkt/ng.core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\n\n/**\n * @publicApi\n */\nexport interface TextValueProps extends FormlyFieldProps {\n /**\n * 格式化函数\n * @param value 表单值\n * @param field 当前字段\n */\n format?: (\n value: NzSafeAny,\n field: NzFormlyFieldConfig<TextValueProps>\n ) => Observable<NzSafeAny> | Promise<NzSafeAny> | NzSafeAny | null;\n\n /**\n * 默认显示文本\n */\n defaultText?: string;\n}\n\nexport interface FormlyTextValueFieldConfig extends NzFormlyFieldConfig<TextValueProps> {\n type: 'text' | Type<FormlyFieldTextValue>;\n}\n/** @private */\n@Component({\n selector: 'formly-field-text-value',\n template: `\n <nz-form-text\n class=\"wrap-text\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n >\n {{ textValue$ | async | defaultify: props.defaultText }}\n </nz-form-text>\n `,\n styles: [\n `\n .wrap-text {\n word-break: break-all;\n }\n `\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTextValue<T = NzSafeAny>\n extends FieldType<FieldTypeConfig<TextValueProps>>\n implements OnInit, OnDestroy\n{\n private result?: Observable<T> | Promise<T>;\n private subscription?: Subscription;\n\n override defaultOptions = {\n props: {\n defaultText: '--'\n }\n };\n\n ngOnInit(): void {\n this.subscription = this.formControl!.valueChanges.subscribe(() => {\n this.result = undefined;\n });\n }\n\n get textValue$() {\n const value = this.formControl!.value;\n const format = this.props.format || this.formState.format;\n\n if (typeof format !== 'function') {\n return of(value);\n }\n\n if (this.result) {\n return this.result;\n }\n const result = format(value, this.field);\n if (isPromise(result) || isObservable(result)) {\n this.result = result as NzSafeAny;\n return result;\n }\n return of(result);\n }\n\n ngOnDestroy(): void {\n this.subscription?.unsubscribe();\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { DefaultifyPipe } from '@pkt/ng.core';\nimport { FormlyFieldTextValue } from './text-value.type';\n\nimport { NzFormModule } from 'ng-zorro-antd/form';\n\n@NgModule({\n declarations: [FormlyFieldTextValue],\n imports: [\n CommonModule,\n NzFormModule,\n DefaultifyPipe,\n FormlyModule.forChild({\n types: [\n {\n name: 'text',\n component: FormlyFieldTextValue,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTextValueModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA+BA;AAsBM,MAAO,oBACX,SAAQ,SAA0C,CAAA;AAtBpD,IAAA,WAAA,GAAA;;AA4BW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,WAAW,EAAE,IAAI;AAClB,aAAA;SACF,CAAC;AA8BH,KAAA;IA5BC,QAAQ,GAAA;AACN,QAAA,IAAI,CAAC,YAAY,GAAG,IAAI,CAAC,WAAY,CAAC,YAAY,CAAC,SAAS,CAAC,MAAK;AAChE,YAAA,IAAI,CAAC,MAAM,GAAG,SAAS,CAAC;AAC1B,SAAC,CAAC,CAAC;KACJ;AAED,IAAA,IAAI,UAAU,GAAA;AACZ,QAAA,MAAM,KAAK,GAAG,IAAI,CAAC,WAAY,CAAC,KAAK,CAAC;AACtC,QAAA,MAAM,MAAM,GAAG,IAAI,CAAC,KAAK,CAAC,MAAM,IAAI,IAAI,CAAC,SAAS,CAAC,MAAM,CAAC;AAE1D,QAAA,IAAI,OAAO,MAAM,KAAK,UAAU,EAAE;AAChC,YAAA,OAAO,EAAE,CAAC,KAAK,CAAC,CAAC;SAClB;AAED,QAAA,IAAI,IAAI,CAAC,MAAM,EAAE;YACf,OAAO,IAAI,CAAC,MAAM,CAAC;SACpB;QACD,MAAM,MAAM,GAAG,MAAM,CAAC,KAAK,EAAE,IAAI,CAAC,KAAK,CAAC,CAAC;QACz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,CAAC,YAAY,CAAC;AACzB,qBAAA;AACF,iBAAA;aACF,CAAC,CAAA,EAAA,CAAA,CAAA,EAAA;;4FAGO,uBAAuB,EAAA,UAAA,EAAA,CAAA;kBAjBnC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,oBAAoB,CAAC;AACpC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,YAAY;wBACZ,cAAc;wBACd,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,MAAM;AACZ,oCAAA,SAAS,EAAE,oBAAoB;oCAC/B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;ACxBD;;AAEG;;;;"}
|
@@ -24,8 +24,8 @@ class FormlyFieldTextarea extends FieldType {
|
|
24
24
|
}
|
25
25
|
};
|
26
26
|
}
|
27
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
28
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.
|
27
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldTextarea, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
28
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "18.2.12", type: FormlyFieldTextarea, selector: "formly-field-textarea", usesInheritance: true, ngImport: i0, template: `
|
29
29
|
@switch (props.type) {
|
30
30
|
@case ('count') {
|
31
31
|
<nz-textarea-count [nzMaxCharacterCount]="props['maxCharacterCount'] || 0">
|
@@ -80,7 +80,7 @@ class FormlyFieldTextarea extends FieldType {
|
|
80
80
|
</ng-template>
|
81
81
|
`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i1.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i1.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "directive", type: i2.DefaultValueAccessor, selector: "input:not([type=checkbox])[formControlName],textarea[formControlName],input:not([type=checkbox])[formControl],textarea[formControl],input:not([type=checkbox])[ngModel],textarea[ngModel],[ngDefaultControl]" }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzTextareaCountComponent, selector: "nz-textarea-count", inputs: ["nzMaxCharacterCount", "nzComputeCharacterCount", "nzFormatter"] }, { kind: "directive", type: i3.NzInputDirective, selector: "input[nz-input],textarea[nz-input]", inputs: ["nzBorderless", "nzSize", "nzStepperless", "nzStatus", "disabled"], exportAs: ["nzInput"] }, { kind: "component", type: i3.NzInputGroupComponent, selector: "nz-input-group", inputs: ["nzAddOnBeforeIcon", "nzAddOnAfterIcon", "nzPrefixIcon", "nzSuffixIcon", "nzAddOnBefore", "nzAddOnAfter", "nzPrefix", "nzStatus", "nzSuffix", "nzSize", "nzSearch", "nzCompact"], exportAs: ["nzInputGroup"] }, { kind: "directive", type: i3.NzAutosizeDirective, selector: "textarea[nzAutosize]", inputs: ["nzAutosize"], exportAs: ["nzAutosize"] }, { kind: "directive", type: i3.NzInputGroupWhitSuffixOrPrefixDirective, selector: "nz-input-group[nzSuffix], nz-input-group[nzPrefix]" }, { kind: "directive", type: i4.NzIconDirective, selector: "[nz-icon]", inputs: ["nzSpin", "nzRotate", "nzType", "nzTheme", "nzTwotoneColor", "nzIconfont"], exportAs: ["nzIcon"] }, { kind: "directive", type: i5.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
82
82
|
}
|
83
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
83
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldTextarea, decorators: [{
|
84
84
|
type: Component,
|
85
85
|
args: [{
|
86
86
|
selector: 'formly-field-textarea',
|
@@ -143,13 +143,13 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
143
143
|
}] });
|
144
144
|
|
145
145
|
class FormlyNzTextareaModule {
|
146
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
147
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.
|
146
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTextareaModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
147
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTextareaModule, declarations: [FormlyFieldTextarea], imports: [CommonModule,
|
148
148
|
ReactiveFormsModule,
|
149
149
|
FormlyNzFormFieldModule,
|
150
150
|
NzInputModule,
|
151
151
|
NzIconModule, i5.FormlyModule] }); }
|
152
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.
|
152
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTextareaModule, imports: [CommonModule,
|
153
153
|
ReactiveFormsModule,
|
154
154
|
FormlyNzFormFieldModule,
|
155
155
|
NzInputModule,
|
@@ -164,7 +164,7 @@ class FormlyNzTextareaModule {
|
|
164
164
|
]
|
165
165
|
})] }); }
|
166
166
|
}
|
167
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
167
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTextareaModule, decorators: [{
|
168
168
|
type: NgModule,
|
169
169
|
args: [{
|
170
170
|
declarations: [FormlyFieldTextarea],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-textarea.mjs","sources":["../../../../packages/formlyantd/textarea/src/textarea.type.ts","../../../../packages/formlyantd/textarea/src/textarea.module.ts","../../../../packages/formlyantd/textarea/src/ngx-formly-zorro-antd-textarea.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\n/**\n * @publicApi\n */\nexport interface TextareaProps extends FormlyFieldProps {\n type?: 'count' | 'clear';\n\n /**\n * 自适应内容高度,可设置为 boolean 或对象:{ minRows: 2, maxRows: 6 }\n * @default false\n */\n autosize?: boolean | { minRows: number; maxRows: number };\n\n /**\n * 是否隐藏边框\n * @default false\n */\n borderless?: boolean;\n\n /**\n * textarea 数字提示显示的最大值\n */\n maxCharacterCount?: number;\n}\n\nexport interface FormlyTextareaFieldConfig extends NzFormlyFieldConfig<TextareaProps> {\n type: 'textarea' | Type<FormlyFieldTextarea>;\n}\n/** @private */\n@Component({\n selector: 'formly-field-textarea',\n template: `\n @switch (props.type) {\n @case ('count') {\n <nz-textarea-count [nzMaxCharacterCount]=\"props['maxCharacterCount'] || 0\">\n <textarea\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [attr.rows]=\"props.rows\"\n [attr.cols]=\"props.cols\"\n [nzBorderless]=\"!!props['borderless']\"\n [nzAutosize]=\"!!props['autosize']\"\n nz-input\n ></textarea>\n </nz-textarea-count>\n }\n @case ('clear') {\n <nz-input-group class=\"ant-input-affix-wrapper-textarea-with-clear-btn\" [nzSuffix]=\"textAreaClearTpl\">\n <ng-container *ngTemplateOutlet=\"textareaTpl\"> </ng-container>\n </nz-input-group>\n }\n @default {\n <ng-container *ngTemplateOutlet=\"textareaTpl\"> </ng-container>\n }\n }\n\n <ng-template #textareaTpl>\n <textarea\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [attr.rows]=\"props.rows\"\n [attr.cols]=\"props.cols\"\n nz-input\n [nzBorderless]=\"!!props['borderless']\"\n [nzAutosize]=\"!!props['autosize']\"\n ></textarea>\n </ng-template>\n\n <!-- 清除数据 -->\n <ng-template #textAreaClearTpl>\n @if (formControl.value && !props['disabled'] && !props['readonly']) {\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n (click)=\"formControl.reset()\"\n ></span>\n }\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTextarea extends FieldType<FieldTypeConfig<TextareaProps>> {\n override defaultOptions = {\n props: {\n rows: 4,\n autosize: false,\n borderless: false\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldTextarea } from './textarea.type';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldTextarea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzInputModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextarea,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAgCA;AA2DM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AA1DlF,IAAA,WAAA,GAAA;;AA2DW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,UAAU,EAAE,KAAK;AAClB,aAAA;SACF,CAAC;AACH,KAAA
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-textarea.mjs","sources":["../../../../packages/formlyantd/textarea/src/textarea.type.ts","../../../../packages/formlyantd/textarea/src/textarea.module.ts","../../../../packages/formlyantd/textarea/src/ngx-formly-zorro-antd-textarea.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\n/**\n * @publicApi\n */\nexport interface TextareaProps extends FormlyFieldProps {\n type?: 'count' | 'clear';\n\n /**\n * 自适应内容高度,可设置为 boolean 或对象:{ minRows: 2, maxRows: 6 }\n * @default false\n */\n autosize?: boolean | { minRows: number; maxRows: number };\n\n /**\n * 是否隐藏边框\n * @default false\n */\n borderless?: boolean;\n\n /**\n * textarea 数字提示显示的最大值\n */\n maxCharacterCount?: number;\n}\n\nexport interface FormlyTextareaFieldConfig extends NzFormlyFieldConfig<TextareaProps> {\n type: 'textarea' | Type<FormlyFieldTextarea>;\n}\n/** @private */\n@Component({\n selector: 'formly-field-textarea',\n template: `\n @switch (props.type) {\n @case ('count') {\n <nz-textarea-count [nzMaxCharacterCount]=\"props['maxCharacterCount'] || 0\">\n <textarea\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [attr.rows]=\"props.rows\"\n [attr.cols]=\"props.cols\"\n [nzBorderless]=\"!!props['borderless']\"\n [nzAutosize]=\"!!props['autosize']\"\n nz-input\n ></textarea>\n </nz-textarea-count>\n }\n @case ('clear') {\n <nz-input-group class=\"ant-input-affix-wrapper-textarea-with-clear-btn\" [nzSuffix]=\"textAreaClearTpl\">\n <ng-container *ngTemplateOutlet=\"textareaTpl\"> </ng-container>\n </nz-input-group>\n }\n @default {\n <ng-container *ngTemplateOutlet=\"textareaTpl\"> </ng-container>\n }\n }\n\n <ng-template #textareaTpl>\n <textarea\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['ngClass']\"\n [ngStyle]=\"props['ngStyle']\"\n [attr.rows]=\"props.rows\"\n [attr.cols]=\"props.cols\"\n nz-input\n [nzBorderless]=\"!!props['borderless']\"\n [nzAutosize]=\"!!props['autosize']\"\n ></textarea>\n </ng-template>\n\n <!-- 清除数据 -->\n <ng-template #textAreaClearTpl>\n @if (formControl.value && !props['disabled'] && !props['readonly']) {\n <span\n nz-icon\n class=\"ant-input-clear-icon\"\n nzTheme=\"fill\"\n nzType=\"close-circle\"\n (click)=\"formControl.reset()\"\n ></span>\n }\n </ng-template>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTextarea extends FieldType<FieldTypeConfig<TextareaProps>> {\n override defaultOptions = {\n props: {\n rows: 4,\n autosize: false,\n borderless: false\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { FormlyFieldTextarea } from './textarea.type';\nimport { NzInputModule } from 'ng-zorro-antd/input';\nimport { NzIconModule } from 'ng-zorro-antd/icon';\n\n@NgModule({\n declarations: [FormlyFieldTextarea],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n NzInputModule,\n NzIconModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'textarea',\n component: FormlyFieldTextarea,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTextareaModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAgCA;AA2DM,MAAO,mBAAoB,SAAQ,SAAyC,CAAA;AA1DlF,IAAA,WAAA,GAAA;;AA2DW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,IAAI,EAAE,CAAC;AACP,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,UAAU,EAAE,KAAK;AAClB,aAAA;SACF,CAAC;AACH,KAAA;+GARY,mBAAmB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAAnB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,mBAAmB,EAxDpB,QAAA,EAAA,uBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAqDT,EAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,WAAA,EAAA,IAAA,EAAA,EAAA,CAAA,OAAA,EAAA,QAAA,EAAA,WAAA,EAAA,MAAA,EAAA,CAAA,OAAA,EAAA,SA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AAA,CAAA;;;AC7BD;;AAEG;;;;"}
|
@@ -28,8 +28,8 @@ class FormlyFieldTimepicker extends FieldType {
|
|
28
28
|
}
|
29
29
|
};
|
30
30
|
}
|
31
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
32
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.
|
31
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldTimepicker, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
32
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.12", type: FormlyFieldTimepicker, selector: "formly-field-timepicker", usesInheritance: true, ngImport: i0, template: `<nz-time-picker
|
33
33
|
#time
|
34
34
|
[formControl]="formControl"
|
35
35
|
[nzId]="id"
|
@@ -61,7 +61,7 @@ class FormlyFieldTimepicker extends FieldType {
|
|
61
61
|
(nzOpenChange)="props['openChange']?.(field, $event)"
|
62
62
|
></nz-time-picker>`, isInline: true, dependencies: [{ kind: "directive", type: i1.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i2.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i2.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i3.NzTimePickerComponent, selector: "nz-time-picker", inputs: ["nzId", "nzSize", "nzStatus", "nzHourStep", "nzMinuteStep", "nzSecondStep", "nzClearText", "nzNowText", "nzOkText", "nzPopupClassName", "nzPlaceHolder", "nzAddOn", "nzDefaultOpenValue", "nzDisabledHours", "nzDisabledMinutes", "nzDisabledSeconds", "nzFormat", "nzOpen", "nzUse12Hours", "nzSuffixIcon", "nzHideDisabledOptions", "nzAllowEmpty", "nzDisabled", "nzAutoFocus", "nzBackdrop", "nzBorderless", "nzInputReadOnly"], outputs: ["nzOpenChange"], exportAs: ["nzTimePicker"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
63
63
|
}
|
64
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
64
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldTimepicker, decorators: [{
|
65
65
|
type: Component,
|
66
66
|
args: [{
|
67
67
|
selector: 'formly-field-timepicker',
|
@@ -101,12 +101,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
101
101
|
}] });
|
102
102
|
|
103
103
|
class FormlyNzTimepickerModule {
|
104
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
105
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.
|
104
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTimepickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
105
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTimepickerModule, declarations: [FormlyFieldTimepicker], imports: [CommonModule,
|
106
106
|
ReactiveFormsModule,
|
107
107
|
FormlyNzFormFieldModule,
|
108
108
|
NzTimePickerModule, i1$1.FormlyModule] }); }
|
109
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.
|
109
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTimepickerModule, imports: [CommonModule,
|
110
110
|
ReactiveFormsModule,
|
111
111
|
FormlyNzFormFieldModule,
|
112
112
|
NzTimePickerModule,
|
@@ -120,7 +120,7 @@ class FormlyNzTimepickerModule {
|
|
120
120
|
]
|
121
121
|
})] }); }
|
122
122
|
}
|
123
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
123
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTimepickerModule, decorators: [{
|
124
124
|
type: NgModule,
|
125
125
|
args: [{
|
126
126
|
declarations: [FormlyFieldTimepicker],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-timepicker.mjs","sources":["../../../../packages/formlyantd/timepicker/src/timepicker.type.ts","../../../../packages/formlyantd/timepicker/src/timepicker.module.ts","../../../../packages/formlyantd/timepicker/src/ngx-formly-zorro-antd-timepicker.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { DatePipe } from '@angular/common';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\n/**\n * @publicApi\n */\nexport interface TimepickerProps extends FormlyFieldProps {\n /**\n * 选择框底部显示自定义的内容\n */\n addOn?: TemplateRef<void>;\n\n /**\n * 是否展示清除按钮\n * @default true\n */\n allowEmpty?: boolean;\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 清除按钮的提示文案\n * @default clear\n */\n clearText?: string;\n\n /**\n * 此刻按钮文本\n * @default 此刻\n */\n nowText?: string;\n\n /**\n * 确认按钮文本\n * @default 确定\n */\n okText?: string;\n\n /**\n * 当 [ngModel] 不存在时,可以设置面板打开时默认选中的值\n * @default new Date()\n */\n defaultOpenValue?: Date;\n\n /**\n * \t禁止选择部分小时选项\n */\n disabledHours?: () => number[];\n\n /**\n * 禁止选择部分分钟选项\n */\n disabledMinutes?: (hour: number) => number[];\n\n /**\n * 禁止选择部分秒选项\n */\n disabledSeconds?: (hour: number, minute: number) => number[];\n\n /**\n * 展示的时间格式\n * @default \"HH:mm:ss\"\n */\n format?: DatePipe;\n\n /**\n * 隐藏禁止选择的选项\n * @default false\n */\n hideDisabledOptions?: boolean;\n\n /**\n * 小时选项间隔\n * @default 1\n */\n hourStep?: number;\n\n /**\n * 分钟选项间隔\n * @default 1\n */\n minuteStep?: number;\n\n /**\n * 秒选项间隔\n * @default 1\n */\n secondStep?: number;\n\n /**\n * 面板是否打开,可双向绑定\n * @default false\n */\n open?: boolean;\n\n /**\n * 弹出层类名\n * @default '''\n */\n popupClassName?: string;\n\n /**\n * 使用12小时制,为true时format默认为h:mm:ss a\n * @default false\n */\n use12Hours?: boolean;\n /**\n * 无边框\n * @default false\n */\n borderless?: boolean;\n\n /**\n * 为 input 标签设置只读属性(避免在移动设备上触发小键盘)\n * @default false\n */\n inputReadOnly?: boolean;\n\n /**\n * 自定义的后缀图标\n *\n */\n suffixIcon?: string | TemplateRef<void>;\n\n /**\n * 面板打开/关闭时的回调\n */\n openChange?: FormlyAttributeEvent<boolean>;\n}\n\nexport interface FormlyTimepickerFieldConfig extends NzFormlyFieldConfig<TimepickerProps> {\n type: 'timepicker' | Type<FormlyFieldTimepicker>;\n}\n/** @private */\n@Component({\n selector: 'formly-field-timepicker',\n template: `<nz-time-picker\n #time\n [formControl]=\"formControl\"\n [nzId]=\"id\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['ngClass']\"\n [nzAddOn]=\"props['addOn']\"\n [nzAllowEmpty]=\"!!props['allowEmpty']\"\n [nzAutoFocus]=\"!!props['autoFocus']\"\n [nzBackdrop]=\"!!props['backdrop']\"\n [nzClearText]=\"props['clearText']\"\n [nzNowText]=\"props['nowText']\"\n [nzOkText]=\"props['okText']\"\n [nzDefaultOpenValue]=\"props['defaultOpenValue']\"\n [nzDisabledHours]=\"props['disabledHours']\"\n [nzDisabledMinutes]=\"props['disabledMinutes']\"\n [nzDisabledSeconds]=\"props['disabledSeconds']\"\n [nzFormat]=\"props['format']\"\n [nzHideDisabledOptions]=\"!!props['hideDisabledOptions']\"\n [nzHourStep]=\"props['hourStep']\"\n [nzBorderless]=\"!!props['borderless']\"\n [nzInputReadOnly]=\"!!props['inputReadOnly']\"\n [nzMinuteStep]=\"props['minuteStep']\"\n [nzSecondStep]=\"props['secondStep']\"\n [nzOpen]=\"!!props['open']\"\n [nzPopupClassName]=\"props['popupClassName']\"\n [nzUse12Hours]=\"!!props['use12Hours']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n (ngModelChange)=\"props.change?.(field, $event)\"\n (nzOpenChange)=\"props['openChange']?.(field, $event)\"\n ></nz-time-picker>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTimepicker extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n allowEmpty: true,\n autoFocus: false,\n backdrop: false,\n borderless: false,\n inputReadOnly: false,\n open: false,\n clearText: 'clear',\n defaultOpenValue: new Date(),\n format: 'HH:mm:ss' as NzSafeAny\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzTimePickerModule } from 'ng-zorro-antd/time-picker';\nimport { FormlyFieldTimepicker } from './timepicker.type';\n\n@NgModule({\n declarations: [FormlyFieldTimepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzTimePickerModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'timepicker',\n component: FormlyFieldTimepicker,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTimepickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAoJA;AAoCM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAnCrE,IAAA,WAAA,GAAA;;AAoCW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,SAAS,EAAE,KAAK;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,SAAS,EAAE,OAAO;gBAClB,gBAAgB,EAAE,IAAI,IAAI,EAAE;AAC5B,gBAAA,MAAM,EAAE,UAAuB;AAChC,aAAA;SACF,CAAC;AACH,KAAA
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-timepicker.mjs","sources":["../../../../packages/formlyantd/timepicker/src/timepicker.type.ts","../../../../packages/formlyantd/timepicker/src/timepicker.module.ts","../../../../packages/formlyantd/timepicker/src/ngx-formly-zorro-antd-timepicker.ts"],"sourcesContent":["import { Component, TemplateRef, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { DatePipe } from '@angular/common';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\n/**\n * @publicApi\n */\nexport interface TimepickerProps extends FormlyFieldProps {\n /**\n * 选择框底部显示自定义的内容\n */\n addOn?: TemplateRef<void>;\n\n /**\n * 是否展示清除按钮\n * @default true\n */\n allowEmpty?: boolean;\n\n /**\n * 自动获取焦点\n * @default false\n */\n autoFocus?: boolean;\n\n /**\n * 浮层是否应带有背景板\n * @default false\n */\n backdrop?: boolean;\n\n /**\n * 清除按钮的提示文案\n * @default clear\n */\n clearText?: string;\n\n /**\n * 此刻按钮文本\n * @default 此刻\n */\n nowText?: string;\n\n /**\n * 确认按钮文本\n * @default 确定\n */\n okText?: string;\n\n /**\n * 当 [ngModel] 不存在时,可以设置面板打开时默认选中的值\n * @default new Date()\n */\n defaultOpenValue?: Date;\n\n /**\n * \t禁止选择部分小时选项\n */\n disabledHours?: () => number[];\n\n /**\n * 禁止选择部分分钟选项\n */\n disabledMinutes?: (hour: number) => number[];\n\n /**\n * 禁止选择部分秒选项\n */\n disabledSeconds?: (hour: number, minute: number) => number[];\n\n /**\n * 展示的时间格式\n * @default \"HH:mm:ss\"\n */\n format?: DatePipe;\n\n /**\n * 隐藏禁止选择的选项\n * @default false\n */\n hideDisabledOptions?: boolean;\n\n /**\n * 小时选项间隔\n * @default 1\n */\n hourStep?: number;\n\n /**\n * 分钟选项间隔\n * @default 1\n */\n minuteStep?: number;\n\n /**\n * 秒选项间隔\n * @default 1\n */\n secondStep?: number;\n\n /**\n * 面板是否打开,可双向绑定\n * @default false\n */\n open?: boolean;\n\n /**\n * 弹出层类名\n * @default '''\n */\n popupClassName?: string;\n\n /**\n * 使用12小时制,为true时format默认为h:mm:ss a\n * @default false\n */\n use12Hours?: boolean;\n /**\n * 无边框\n * @default false\n */\n borderless?: boolean;\n\n /**\n * 为 input 标签设置只读属性(避免在移动设备上触发小键盘)\n * @default false\n */\n inputReadOnly?: boolean;\n\n /**\n * 自定义的后缀图标\n *\n */\n suffixIcon?: string | TemplateRef<void>;\n\n /**\n * 面板打开/关闭时的回调\n */\n openChange?: FormlyAttributeEvent<boolean>;\n}\n\nexport interface FormlyTimepickerFieldConfig extends NzFormlyFieldConfig<TimepickerProps> {\n type: 'timepicker' | Type<FormlyFieldTimepicker>;\n}\n/** @private */\n@Component({\n selector: 'formly-field-timepicker',\n template: `<nz-time-picker\n #time\n [formControl]=\"formControl\"\n [nzId]=\"id\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['ngClass']\"\n [nzAddOn]=\"props['addOn']\"\n [nzAllowEmpty]=\"!!props['allowEmpty']\"\n [nzAutoFocus]=\"!!props['autoFocus']\"\n [nzBackdrop]=\"!!props['backdrop']\"\n [nzClearText]=\"props['clearText']\"\n [nzNowText]=\"props['nowText']\"\n [nzOkText]=\"props['okText']\"\n [nzDefaultOpenValue]=\"props['defaultOpenValue']\"\n [nzDisabledHours]=\"props['disabledHours']\"\n [nzDisabledMinutes]=\"props['disabledMinutes']\"\n [nzDisabledSeconds]=\"props['disabledSeconds']\"\n [nzFormat]=\"props['format']\"\n [nzHideDisabledOptions]=\"!!props['hideDisabledOptions']\"\n [nzHourStep]=\"props['hourStep']\"\n [nzBorderless]=\"!!props['borderless']\"\n [nzInputReadOnly]=\"!!props['inputReadOnly']\"\n [nzMinuteStep]=\"props['minuteStep']\"\n [nzSecondStep]=\"props['secondStep']\"\n [nzOpen]=\"!!props['open']\"\n [nzPopupClassName]=\"props['popupClassName']\"\n [nzUse12Hours]=\"!!props['use12Hours']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n (ngModelChange)=\"props.change?.(field, $event)\"\n (nzOpenChange)=\"props['openChange']?.(field, $event)\"\n ></nz-time-picker>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTimepicker extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n allowEmpty: true,\n autoFocus: false,\n backdrop: false,\n borderless: false,\n inputReadOnly: false,\n open: false,\n clearText: 'clear',\n defaultOpenValue: new Date(),\n format: 'HH:mm:ss' as NzSafeAny\n }\n };\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzTimePickerModule } from 'ng-zorro-antd/time-picker';\nimport { FormlyFieldTimepicker } from './timepicker.type';\n\n@NgModule({\n declarations: [FormlyFieldTimepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzTimePickerModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'timepicker',\n component: FormlyFieldTimepicker,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTimepickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAoJA;AAoCM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAnCrE,IAAA,WAAA,GAAA;;AAoCW,QAAA,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,SAAS,EAAE,KAAK;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,SAAS,EAAE,OAAO;gBAClB,gBAAgB,EAAE,IAAI,IAAI,EAAE;AAC5B,gBAAA,MAAM,EAAE,UAAuB;AAChC,aAAA;SACF,CAAC;AACH,KAAA;+GAdY,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA,EAAA;AAArB,IAAA,SAAA,IAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,SAAA,EAAA,IAAA,EAAA,qBAAqB,EAjCtB,QAAA,EAAA,yBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA8BS,oBAAA,CAAA,EAAA,QAAA,EAAA,IAAA,EAAA,YAAA,EAAA,CAAA,EAAA,IAAA,EAAA,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Q,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;AACF,iBAAA,CAAA;;;AC5BD;;AAEG;;;;"}
|
@@ -54,8 +54,8 @@ class TransferComponent extends NzTransferComponent {
|
|
54
54
|
searchChange(value) {
|
55
55
|
this.nzSearchChange.emit(value);
|
56
56
|
}
|
57
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
58
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.
|
57
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TransferComponent, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
58
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.12", type: TransferComponent, selector: "formly-transfer", inputs: { resultMap: "resultMap" }, providers: [
|
59
59
|
{
|
60
60
|
provide: NG_VALUE_ACCESSOR,
|
61
61
|
useExisting: TransferComponent,
|
@@ -87,7 +87,7 @@ class TransferComponent extends NzTransferComponent {
|
|
87
87
|
></nz-transfer>
|
88
88
|
`, isInline: true, dependencies: [{ kind: "component", type: i1.NzTransferComponent, selector: "nz-transfer", inputs: ["nzDisabled", "nzDataSource", "nzTitles", "nzOperations", "nzListStyle", "nzShowSelectAll", "nzItemUnit", "nzItemsUnit", "nzCanMove", "nzRenderList", "nzRender", "nzFooter", "nzShowSearch", "nzFilterOption", "nzSearchPlaceholder", "nzNotFoundContent", "nzTargetKeys", "nzSelectedKeys", "nzStatus"], outputs: ["nzChange", "nzSearchChange", "nzSelectChange"], exportAs: ["nzTransfer"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None }); }
|
89
89
|
}
|
90
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
90
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: TransferComponent, decorators: [{
|
91
91
|
type: Component,
|
92
92
|
args: [{
|
93
93
|
selector: 'formly-transfer',
|
@@ -154,8 +154,8 @@ class FormlyFieldTransfer extends FieldType {
|
|
154
154
|
this.transfer.nzCanMove = canMove;
|
155
155
|
}
|
156
156
|
}
|
157
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
158
|
-
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.
|
157
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldTransfer, deps: null, target: i0.ɵɵFactoryTarget.Component }); }
|
158
|
+
static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.12", type: FormlyFieldTransfer, selector: "formly-field-transfer", viewQueries: [{ propertyName: "transfer", first: true, predicate: ["transfer"], descendants: true, static: true }], usesInheritance: true, ngImport: i0, template: `<formly-transfer
|
159
159
|
#transfer
|
160
160
|
[formControl]="formControl"
|
161
161
|
[nzDataSource]="props['dataSource']"
|
@@ -179,7 +179,7 @@ class FormlyFieldTransfer extends FieldType {
|
|
179
179
|
(nzSelectChange)="props['selectChange']?.(field, $event)"
|
180
180
|
></formly-transfer>`, isInline: true, dependencies: [{ kind: "directive", type: i1$1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1$1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: TransferComponent, selector: "formly-transfer", inputs: ["resultMap"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); }
|
181
181
|
}
|
182
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
182
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyFieldTransfer, decorators: [{
|
183
183
|
type: Component,
|
184
184
|
args: [{
|
185
185
|
selector: 'formly-field-transfer',
|
@@ -214,12 +214,12 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.0.7", ngImpor
|
|
214
214
|
}] } });
|
215
215
|
|
216
216
|
class FormlyNzTransferModule {
|
217
|
-
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.
|
218
|
-
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.
|
217
|
+
static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTransferModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); }
|
218
|
+
static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTransferModule, declarations: [FormlyFieldTransfer, TransferComponent], imports: [CommonModule,
|
219
219
|
ReactiveFormsModule,
|
220
220
|
FormlyNzFormFieldModule,
|
221
221
|
NzTransferModule, i1$2.FormlyModule] }); }
|
222
|
-
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.
|
222
|
+
static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTransferModule, imports: [CommonModule,
|
223
223
|
ReactiveFormsModule,
|
224
224
|
FormlyNzFormFieldModule,
|
225
225
|
NzTransferModule,
|
@@ -233,7 +233,7 @@ class FormlyNzTransferModule {
|
|
233
233
|
]
|
234
234
|
})] }); }
|
235
235
|
}
|
236
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.
|
236
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.12", ngImport: i0, type: FormlyNzTransferModule, decorators: [{
|
237
237
|
type: NgModule,
|
238
238
|
args: [{
|
239
239
|
declarations: [FormlyFieldTransfer, TransferComponent],
|
@@ -1 +1 @@
|
|
1
|
-
{"version":3,"file":"ngx-formly-zorro-antd-transfer.mjs","sources":["../../../../packages/formlyantd/transfer/src/transfer.component.ts","../../../../packages/formlyantd/transfer/src/transfer.type.ts","../../../../packages/formlyantd/transfer/src/transfer.module.ts","../../../../packages/formlyantd/transfer/src/ngx-formly-zorro-antd-transfer.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Input,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { NzTransferComponent } from 'ng-zorro-antd/transfer';\n\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { TransferChange, TransferItem, TransferSearchChange, TransferSelectChange } from 'ng-zorro-antd/transfer';\n/** @private */\n@Component({\n selector: 'formly-transfer',\n template: `\n <nz-transfer\n #transfer\n [nzDataSource]=\"nzDataSource\"\n [nzDisabled]=\"nzDisabled\"\n [nzTitles]=\"nzTitles\"\n [nzOperations]=\"nzOperations\"\n [nzListStyle]=\"nzListStyle\"\n [nzItemUnit]=\"nzItemUnit\"\n [nzItemsUnit]=\"nzItemsUnit\"\n [nzRenderList]=\"nzRenderList\"\n [nzRender]=\"nzRender\"\n [nzFooter]=\"nzFooter\"\n [nzShowSearch]=\"nzShowSearch\"\n [nzFilterOption]=\"nzFilterOption\"\n [nzSearchPlaceholder]=\"nzSearchPlaceholder\"\n [nzNotFoundContent]=\"nzNotFoundContent\"\n [nzSelectedKeys]=\"nzSelectedKeys\"\n [nzTargetKeys]=\"nzTargetKeys\"\n (nzChange)=\"change($event)\"\n (nzSearchChange)=\"searchChange($event)\"\n (nzSelectChange)=\"selectChange($event)\"\n style=\"flex: auto;\"\n ></nz-transfer>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: TransferComponent,\n multi: true\n }\n ]\n})\nexport class TransferComponent extends NzTransferComponent implements ControlValueAccessor {\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\n @Input() resultMap?: (items: TransferItem[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(obj: NzSafeAny): void {\n setTimeout(() => {\n this.nzTargetKeys = obj;\n (this['cdr'] as ChangeDetectorRef).markForCheck();\n this.onChange(this.transfer.rightDataSource);\n }, 0);\n }\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: NzSafeAny): void {\n this.onTouched = fn;\n }\n setDisabledState?(isDisabled: boolean): void {\n this.nzDisabled = isDisabled;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n change(value: TransferChange): void {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(this.transfer.rightDataSource));\n } else {\n this.onChange(this.transfer.rightDataSource);\n }\n }\n\n /**\n * 选中项发生改变时的回调函数\n */\n selectChange(value: TransferSelectChange) {\n this.nzSelectChange.emit(value);\n }\n\n /**\n * 搜索框内容时改变时的回调函数\n */\n searchChange(value: TransferSearchChange) {\n this.nzSearchChange.emit(value);\n }\n}\n","import { Component, ChangeDetectionStrategy, TemplateRef, Type, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport { Observable } from 'rxjs';\nimport {\n NzTransferComponent,\n TransferCanMove,\n TransferChange,\n TransferItem,\n TransferSearchChange,\n TransferSelectChange\n} from 'ng-zorro-antd/transfer';\nimport type { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';\n\n/**\n * @publicApi\n */\nexport interface TransferProps extends FormlyFieldProps {\n /**\n * 数据源,其中若数据属性 direction: 'right' 将会被渲染到右边一栏中或使用 nzTargetKeys\n * @default []\n */\n dataSource?: TransferItem[];\n\n /**\n * 标题集合,顺序从左至右\n * @default ['', '']\n */\n titles?: string[];\n\n /**\n * 操作文案集合,顺序从下至上\n * @default ['', '']\n */\n operations?: string[];\n\n /**\n * 两个穿梭框的自定义样式,等同 ngStyle\n */\n listStyle?: NgStyleInterface;\n\n /**\n * 单数单位\n * @default 项目\n */\n itemUnit?: string;\n\n /**\n * 复数单位\n * @default 项目\n */\n itemsUnit?: string;\n\n /**\n * 自定义渲染列表,见示例\n * @default [null, null]\n */\n renderList?: Array<TemplateRef<NzSafeAny> | null> | null;\n\n /**\n * 每行数据渲染模板,见示例\n */\n render?: TemplateRef<NzSafeAny> | null;\n\n /**\n * 底部渲染模板,见示例\n */\n footer?: TemplateRef<NzSafeAny> | null;\n\n /**\n * 是否显示搜索框\n * @default false\n */\n showSearch?: boolean;\n\n /**\n * 接收 inputValueoption 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。\n */\n filterOption?: (inputValue: string, item: TransferItem) => boolean;\n\n /**\n * 搜索框的默认值\n * @default 请输入搜索内容\n */\n searchPlaceholder?: string;\n\n /**\n * 当列表为空时显示的内容\n * @default 列表为空\n */\n notFoundContent?: string;\n\n /**\n * 穿梭时二次校验。注意: 穿梭组件内部始终只保留一份数据,二次校验过程中需取消穿梭项则直接删除该项;具体用法见示例。\n */\n canMove?: (arg: TransferCanMove) => Observable<TransferItem[]>;\n\n /**\n * 设置被选中的 key 集合\n */\n selectedKeys?: string[];\n\n /**\n * 显示在右侧框数据的 key 集合\n */\n targetKeys?: string[];\n\n /**\n * 选项在两栏之间转移时的回调函数\n */\n onChange?: (value: TransferChange) => void;\n\n /**\n * 搜索框内容时改变时的回调函数\n */\n searchChange?: FormlyAttributeEvent<TransferSearchChange>;\n\n /**\n * 选中项发生改变时的回调函数\n */\n selectChange?: FormlyAttributeEvent<TransferSelectChange>;\n\n /**\n * 返回结果格式映射\n * @returns 默认返回 TransferItem[] 格式\n */\n resultMap?: (items: TransferItem[]) => NzSafeAny[];\n}\n\nexport interface FormlyTransferFieldConfig extends NzFormlyFieldConfig<TransferProps> {\n type: 'transfer' | Type<FormlyFieldTransfer>;\n}\n/** @private */\n@Component({\n selector: 'formly-field-transfer',\n template: `<formly-transfer\n #transfer\n [formControl]=\"formControl\"\n [nzDataSource]=\"props['dataSource']\"\n [nzTitles]=\"props['titles']\"\n [nzOperations]=\"props['operations']\"\n [nzListStyle]=\"props['listStyle']\"\n [nzItemUnit]=\"props['itemUnit']\"\n [nzItemsUnit]=\"props['itemsUnit']\"\n [nzRenderList]=\"props['renderList']!\"\n [nzRender]=\"props['render'] ?? null\"\n [nzFooter]=\"props['footer'] ?? null\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzFilterOption]=\"props['filterOption']\"\n [nzSearchPlaceholder]=\"props['searchPlaceholder']\"\n [nzNotFoundContent]=\"props['notFoundContent']\"\n [nzSelectedKeys]=\"props['selectedKeys']\"\n [nzTargetKeys]=\"props['targetKeys']\"\n [resultMap]=\"props['resultMap']\"\n (nzChange)=\"props['onChange']?.($event)\"\n (nzSearchChange)=\"props['searchChange']?.(field, $event)\"\n (nzSelectChange)=\"props['selectChange']?.(field, $event)\"\n ></formly-transfer>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTransfer extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n dataSource: [],\n titles: ['', ''],\n operations: ['', ''],\n renderList: [null, null],\n noFor: true,\n listStyle: {}\n }\n };\n\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\n\n ngOnInit(): void {\n const canMove = this.props['canMove'];\n if (canMove !== null && canMove !== undefined) {\n this.transfer.nzCanMove = canMove;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzTransferModule } from 'ng-zorro-antd/transfer';\nimport { FormlyFieldTransfer } from './transfer.type';\nimport { TransferComponent } from './transfer.component';\n\n@NgModule({\n declarations: [FormlyFieldTransfer, TransferComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzTransferModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'transfer',\n component: FormlyFieldTransfer,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTransferModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2.TransferComponent"],"mappings":";;;;;;;;;;;AAAA;AAcA;AAsCM,MAAO,iBAAkB,SAAQ,mBAAmB,CAAA;AArC1D,IAAA,WAAA,GAAA;;AAyCE,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AAwCrC,KAAA;AAvCC,IAAA,UAAU,CAAC,GAAc,EAAA;QACvB,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;AACvB,YAAA,IAAI,CAAC,KAAK,CAAuB,CAAC,YAAY,EAAE,CAAC;YAClD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;SAC9C,EAAE,CAAC,CAAC,CAAC;KACP;AACD,IAAA,gBAAgB,CAAC,EAAa,EAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;KACpB;AACD,IAAA,iBAAiB,CAAC,EAAa,EAAA;AAC7B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;KACrB;AACD,IAAA,gBAAgB,CAAE,UAAmB,EAAA;AACnC,QAA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;AACF,iBAAA,CAAA;;;AC7BD;;AAEG;;;;"}
|
1
|
+
{"version":3,"file":"ngx-formly-zorro-antd-transfer.mjs","sources":["../../../../packages/formlyantd/transfer/src/transfer.component.ts","../../../../packages/formlyantd/transfer/src/transfer.type.ts","../../../../packages/formlyantd/transfer/src/transfer.module.ts","../../../../packages/formlyantd/transfer/src/ngx-formly-zorro-antd-transfer.ts"],"sourcesContent":["/* eslint-disable @typescript-eslint/no-empty-function */\nimport {\n ChangeDetectionStrategy,\n ChangeDetectorRef,\n Component,\n Input,\n ViewChild,\n ViewEncapsulation\n} from '@angular/core';\nimport { ControlValueAccessor, NG_VALUE_ACCESSOR } from '@angular/forms';\nimport { NzTransferComponent } from 'ng-zorro-antd/transfer';\n\nimport type { OnChangeType, OnTouchedType, NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { TransferChange, TransferItem, TransferSearchChange, TransferSelectChange } from 'ng-zorro-antd/transfer';\n/** @private */\n@Component({\n selector: 'formly-transfer',\n template: `\n <nz-transfer\n #transfer\n [nzDataSource]=\"nzDataSource\"\n [nzDisabled]=\"nzDisabled\"\n [nzTitles]=\"nzTitles\"\n [nzOperations]=\"nzOperations\"\n [nzListStyle]=\"nzListStyle\"\n [nzItemUnit]=\"nzItemUnit\"\n [nzItemsUnit]=\"nzItemsUnit\"\n [nzRenderList]=\"nzRenderList\"\n [nzRender]=\"nzRender\"\n [nzFooter]=\"nzFooter\"\n [nzShowSearch]=\"nzShowSearch\"\n [nzFilterOption]=\"nzFilterOption\"\n [nzSearchPlaceholder]=\"nzSearchPlaceholder\"\n [nzNotFoundContent]=\"nzNotFoundContent\"\n [nzSelectedKeys]=\"nzSelectedKeys\"\n [nzTargetKeys]=\"nzTargetKeys\"\n (nzChange)=\"change($event)\"\n (nzSearchChange)=\"searchChange($event)\"\n (nzSelectChange)=\"selectChange($event)\"\n style=\"flex: auto;\"\n ></nz-transfer>\n `,\n encapsulation: ViewEncapsulation.None,\n changeDetection: ChangeDetectionStrategy.OnPush,\n providers: [\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: TransferComponent,\n multi: true\n }\n ]\n})\nexport class TransferComponent extends NzTransferComponent implements ControlValueAccessor {\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\n @Input() resultMap?: (items: TransferItem[]) => NzSafeAny[];\n\n onChange: OnChangeType = () => {};\n onTouched: OnTouchedType = () => {};\n writeValue(obj: NzSafeAny): void {\n setTimeout(() => {\n this.nzTargetKeys = obj;\n (this['cdr'] as ChangeDetectorRef).markForCheck();\n this.onChange(this.transfer.rightDataSource);\n }, 0);\n }\n registerOnChange(fn: NzSafeAny): void {\n this.onChange = fn;\n }\n registerOnTouched(fn: NzSafeAny): void {\n this.onTouched = fn;\n }\n setDisabledState?(isDisabled: boolean): void {\n this.nzDisabled = isDisabled;\n }\n\n // eslint-disable-next-line @typescript-eslint/no-unused-vars\n change(value: TransferChange): void {\n if (this.resultMap instanceof Function) {\n this.onChange(this.resultMap(this.transfer.rightDataSource));\n } else {\n this.onChange(this.transfer.rightDataSource);\n }\n }\n\n /**\n * 选中项发生改变时的回调函数\n */\n selectChange(value: TransferSelectChange) {\n this.nzSelectChange.emit(value);\n }\n\n /**\n * 搜索框内容时改变时的回调函数\n */\n searchChange(value: TransferSearchChange) {\n this.nzSearchChange.emit(value);\n }\n}\n","import { Component, ChangeDetectionStrategy, TemplateRef, Type, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig } from '@ngx-formly/core';\nimport type { NzFormlyFieldConfig, FormlyAttributeEvent } from 'ngx-formly-zorro-antd/common';\nimport { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport { Observable } from 'rxjs';\nimport {\n NzTransferComponent,\n TransferCanMove,\n TransferChange,\n TransferItem,\n TransferSearchChange,\n TransferSelectChange\n} from 'ng-zorro-antd/transfer';\nimport type { NzSafeAny, NgStyleInterface } from 'ng-zorro-antd/core/types';\n\n/**\n * @publicApi\n */\nexport interface TransferProps extends FormlyFieldProps {\n /**\n * 数据源,其中若数据属性 direction: 'right' 将会被渲染到右边一栏中或使用 nzTargetKeys\n * @default []\n */\n dataSource?: TransferItem[];\n\n /**\n * 标题集合,顺序从左至右\n * @default ['', '']\n */\n titles?: string[];\n\n /**\n * 操作文案集合,顺序从下至上\n * @default ['', '']\n */\n operations?: string[];\n\n /**\n * 两个穿梭框的自定义样式,等同 ngStyle\n */\n listStyle?: NgStyleInterface;\n\n /**\n * 单数单位\n * @default 项目\n */\n itemUnit?: string;\n\n /**\n * 复数单位\n * @default 项目\n */\n itemsUnit?: string;\n\n /**\n * 自定义渲染列表,见示例\n * @default [null, null]\n */\n renderList?: Array<TemplateRef<NzSafeAny> | null> | null;\n\n /**\n * 每行数据渲染模板,见示例\n */\n render?: TemplateRef<NzSafeAny> | null;\n\n /**\n * 底部渲染模板,见示例\n */\n footer?: TemplateRef<NzSafeAny> | null;\n\n /**\n * 是否显示搜索框\n * @default false\n */\n showSearch?: boolean;\n\n /**\n * 接收 inputValueoption 两个参数,当 option 符合筛选条件时,应返回 true,反之则返回 false。\n */\n filterOption?: (inputValue: string, item: TransferItem) => boolean;\n\n /**\n * 搜索框的默认值\n * @default 请输入搜索内容\n */\n searchPlaceholder?: string;\n\n /**\n * 当列表为空时显示的内容\n * @default 列表为空\n */\n notFoundContent?: string;\n\n /**\n * 穿梭时二次校验。注意: 穿梭组件内部始终只保留一份数据,二次校验过程中需取消穿梭项则直接删除该项;具体用法见示例。\n */\n canMove?: (arg: TransferCanMove) => Observable<TransferItem[]>;\n\n /**\n * 设置被选中的 key 集合\n */\n selectedKeys?: string[];\n\n /**\n * 显示在右侧框数据的 key 集合\n */\n targetKeys?: string[];\n\n /**\n * 选项在两栏之间转移时的回调函数\n */\n onChange?: (value: TransferChange) => void;\n\n /**\n * 搜索框内容时改变时的回调函数\n */\n searchChange?: FormlyAttributeEvent<TransferSearchChange>;\n\n /**\n * 选中项发生改变时的回调函数\n */\n selectChange?: FormlyAttributeEvent<TransferSelectChange>;\n\n /**\n * 返回结果格式映射\n * @returns 默认返回 TransferItem[] 格式\n */\n resultMap?: (items: TransferItem[]) => NzSafeAny[];\n}\n\nexport interface FormlyTransferFieldConfig extends NzFormlyFieldConfig<TransferProps> {\n type: 'transfer' | Type<FormlyFieldTransfer>;\n}\n/** @private */\n@Component({\n selector: 'formly-field-transfer',\n template: `<formly-transfer\n #transfer\n [formControl]=\"formControl\"\n [nzDataSource]=\"props['dataSource']\"\n [nzTitles]=\"props['titles']\"\n [nzOperations]=\"props['operations']\"\n [nzListStyle]=\"props['listStyle']\"\n [nzItemUnit]=\"props['itemUnit']\"\n [nzItemsUnit]=\"props['itemsUnit']\"\n [nzRenderList]=\"props['renderList']!\"\n [nzRender]=\"props['render'] ?? null\"\n [nzFooter]=\"props['footer'] ?? null\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzFilterOption]=\"props['filterOption']\"\n [nzSearchPlaceholder]=\"props['searchPlaceholder']\"\n [nzNotFoundContent]=\"props['notFoundContent']\"\n [nzSelectedKeys]=\"props['selectedKeys']\"\n [nzTargetKeys]=\"props['targetKeys']\"\n [resultMap]=\"props['resultMap']\"\n (nzChange)=\"props['onChange']?.($event)\"\n (nzSearchChange)=\"props['searchChange']?.(field, $event)\"\n (nzSelectChange)=\"props['selectChange']?.(field, $event)\"\n ></formly-transfer>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldTransfer extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n dataSource: [],\n titles: ['', ''],\n operations: ['', ''],\n renderList: [null, null],\n noFor: true,\n listStyle: {}\n }\n };\n\n @ViewChild('transfer', { static: true }) transfer!: NzTransferComponent;\n\n ngOnInit(): void {\n const canMove = this.props['canMove'];\n if (canMove !== null && canMove !== undefined) {\n this.transfer.nzCanMove = canMove;\n }\n }\n}\n","import { NgModule } from '@angular/core';\nimport { CommonModule } from '@angular/common';\nimport { FormlyModule } from '@ngx-formly/core';\nimport { ReactiveFormsModule } from '@angular/forms';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzTransferModule } from 'ng-zorro-antd/transfer';\nimport { FormlyFieldTransfer } from './transfer.type';\nimport { TransferComponent } from './transfer.component';\n\n@NgModule({\n declarations: [FormlyFieldTransfer, TransferComponent],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzTransferModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'transfer',\n component: FormlyFieldTransfer,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzTransferModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1","i2.TransferComponent"],"mappings":";;;;;;;;;;;AAAA;AAcA;AAsCM,MAAO,iBAAkB,SAAQ,mBAAmB,CAAA;AArC1D,IAAA,WAAA,GAAA;;AAyCE,QAAA,IAAA,CAAA,QAAQ,GAAiB,MAAK,GAAG,CAAC;AAClC,QAAA,IAAA,CAAA,SAAS,GAAkB,MAAK,GAAG,CAAC;AAwCrC,KAAA;AAvCC,IAAA,UAAU,CAAC,GAAc,EAAA;QACvB,UAAU,CAAC,MAAK;AACd,YAAA,IAAI,CAAC,YAAY,GAAG,GAAG,CAAC;AACvB,YAAA,IAAI,CAAC,KAAK,CAAuB,CAAC,YAAY,EAAE,CAAC;YAClD,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC;SAC9C,EAAE,CAAC,CAAC,CAAC;KACP;AACD,IAAA,gBAAgB,CAAC,EAAa,EAAA;AAC5B,QAAA,IAAI,CAAC,QAAQ,GAAG,EAAE,CAAC;KACpB;AACD,IAAA,iBAAiB,CAAC,EAAa,EAAA;AAC7B,QAAA,IAAI,CAAC,SAAS,GAAG,EAAE,CAAC;KACrB;AACD,IAAA,gBAAgB,CAAE,UAAmB,EAAA;AACnC,QAAA,IAAI,CAAC,UAAU,GAAG,U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