ngx-formly-zorro-antd 14.0.1 → 14.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (34) hide show
  1. package/datepicker/datepicker.props.d.ts +5 -0
  2. package/datepicker/datepicker.type.d.ts +1 -0
  3. package/esm2020/datepicker/datepicker.props.mjs +1 -1
  4. package/esm2020/datepicker/datepicker.type.mjs +7 -2
  5. package/esm2020/select/select.props.mjs +1 -1
  6. package/esm2020/select/select.type.mjs +6 -2
  7. package/esm2020/timepicker/timepicker.type.mjs +8 -4
  8. package/esm2020/upload/upload.component.mjs +121 -42
  9. package/esm2020/upload/upload.module.mjs +4 -4
  10. package/esm2020/upload/upload.props.mjs +2 -0
  11. package/esm2020/upload/upload.type.mjs +26 -16
  12. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs +6 -1
  13. package/fesm2015/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  14. package/fesm2015/ngx-formly-zorro-antd-select.mjs +5 -1
  15. package/fesm2015/ngx-formly-zorro-antd-select.mjs.map +1 -1
  16. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs +7 -3
  17. package/fesm2015/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  18. package/fesm2015/ngx-formly-zorro-antd-upload.mjs +146 -57
  19. package/fesm2015/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  20. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs +6 -1
  21. package/fesm2020/ngx-formly-zorro-antd-datepicker.mjs.map +1 -1
  22. package/fesm2020/ngx-formly-zorro-antd-select.mjs +5 -1
  23. package/fesm2020/ngx-formly-zorro-antd-select.mjs.map +1 -1
  24. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs +7 -3
  25. package/fesm2020/ngx-formly-zorro-antd-timepicker.mjs.map +1 -1
  26. package/fesm2020/ngx-formly-zorro-antd-upload.mjs +146 -57
  27. package/fesm2020/ngx-formly-zorro-antd-upload.mjs.map +1 -1
  28. package/package.json +2 -2
  29. package/select/select.props.d.ts +6 -2
  30. package/timepicker/timepicker.type.d.ts +7 -0
  31. package/upload/upload.component.d.ts +16 -10
  32. package/upload/upload.module.d.ts +1 -1
  33. package/upload/upload.props.d.ts +173 -0
  34. package/upload/upload.type.d.ts +7 -151
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-datepicker.mjs","sources":["../../../../packages/formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.module.ts","../../../../packages/formlyantd/datepicker/src/ngx-formly-zorro-antd-datepicker.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\n\nimport type { DatepickerProps } from './datepicker.props';\n\nexport interface FormlyDatepickerFieldConfig extends FormlyFieldConfig<DatepickerProps> {\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\n}\n\n@Component({\n selector: 'formly-field-datepicker',\n template: `<ng-container [ngSwitch]=\"props.type\">\n <nz-range-picker\n *ngSwitchCase=\"'range'\"\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzPlacement]=\"props['placement']\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['rangeOptions']?.disabledTime\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n [nzRanges]=\"props['rangeOptions']?.ranges\"\n [nzSeparator]=\"props['rangeOptions']?.separator\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (nzOnCalendarChange)=\"\n props['rangeOptions']?.calendarChange &&\n props['rangeOptions']?.calendarChange(field, $event)\n \"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-range-picker>\n\n <nz-date-picker\n *ngSwitchDefault\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzPlacement]=\"props['placement']!\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['disabledTime']\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-date-picker>\n </ng-container>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n allowClear: true,\n backdrop: false,\n defaultPickerValue: null,\n inputReadOnly: false,\n mode: 'date' as const,\n size: 'default' as const,\n status: '' as const,\n placement: 'bottomLeft' as const,\n popupStyle: {},\n borderless: false,\n inline: false,\n showToday: true,\n showNow: true,\n rangeOptions: {\n separator: '~'\n }\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 { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\nimport { FormlyFieldDatepicker } from './datepicker.type';\n\n@NgModule({\n declarations: [FormlyFieldDatepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzDatePickerModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'datepicker',\n component: FormlyFieldDatepicker,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzDatepickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AAwFM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AA/ErE,IAAA,WAAA,GAAA;;QAgFW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,kBAAkB,EAAE,IAAI;AACxB,gBAAA,aAAa,EAAE,KAAK;AACpB,gBA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A,CAAA,CAAA;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC5BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-datepicker.mjs","sources":["../../../../packages/formlyantd/datepicker/src/datepicker.type.ts","../../../../packages/formlyantd/datepicker/src/datepicker.module.ts","../../../../packages/formlyantd/datepicker/src/ngx-formly-zorro-antd-datepicker.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy } from '@angular/core';\nimport { FieldType, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\n\nimport type { DatepickerProps } from './datepicker.props';\n\nexport interface FormlyDatepickerFieldConfig extends FormlyFieldConfig<DatepickerProps> {\n type: 'datepicker' | Type<FormlyFieldDatepicker>;\n}\n\n@Component({\n selector: 'formly-field-datepicker',\n template: `<ng-container [ngSwitch]=\"props.type\">\n <nz-range-picker\n *ngSwitchCase=\"'range'\"\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']\"\n [nzSize]=\"props['size']\"\n [nzStatus]=\"props['status'] ?? ''\"\n [nzPlacement]=\"props['placement']\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['rangeOptions']?.disabledTime\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\n [nzRanges]=\"props['rangeOptions']?.ranges\"\n [nzSeparator]=\"props['rangeOptions']?.separator\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (nzOnCalendarChange)=\"\n props['rangeOptions']?.calendarChange &&\n props['rangeOptions']?.calendarChange(field, $event)\n \"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-range-picker>\n\n <nz-date-picker\n *ngSwitchDefault\n [nzId]=\"id\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [ngClass]=\"props['className']\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoFocus]=\"props['autoFocus']!!\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzDefaultPickerValue]=\"props['defaultPickerValue']\"\n [nzDisabledDate]=\"props['disabledDate']\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzFormat]=\"props['format']\"\n [nzInputReadOnly]=\"props['inputReadOnly']!!\"\n [nzMode]=\"props['mode']\"\n [nzPopupStyle]=\"props['popupStyle']!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzPlacement]=\"props['placement']!\"\n [nzRenderExtraFooter]=\"props['renderExtraFooter']\"\n [nzSuffixIcon]=\"props['suffixIcon']\"\n [nzBorderless]=\"props['borderless']\"\n [nzInline]=\"props['inline']\"\n [nzDateRender]=\"props['dateRender']\"\n [nzDisabledTime]=\"props['disabledTime']\"\n [nzShowTime]=\"props['showTime']\"\n [nzShowToday]=\"props['showToday']!!\"\n [nzShowNow]=\"props['showNow']!!\"\n [nzShowWeekNumber]=\"props['showWeekNumber']!!\"\n (nzOnOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzOnOk)=\"props['onOk'] && props['onOk'](field, $event)\"\n (ngModelChange)=\"props['modelChange'] && props['modelChange'](field, $event)\"\n ></nz-date-picker>\n </ng-container>`,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldDatepicker extends FieldType<FieldTypeConfig> {\n override defaultOptions = {\n props: {\n allowClear: true,\n backdrop: false,\n defaultPickerValue: null,\n inputReadOnly: false,\n mode: 'date' as const,\n size: 'default' as const,\n status: '' as const,\n placement: 'bottomLeft' as const,\n popupStyle: {},\n borderless: false,\n inline: false,\n showToday: true,\n showNow: true,\n nzShowWeekNumber: false,\n rangeOptions: {\n separator: '~'\n }\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 { NzDatePickerModule } from 'ng-zorro-antd/date-picker';\nimport { FormlyFieldDatepicker } from './datepicker.type';\n\n@NgModule({\n declarations: [FormlyFieldDatepicker],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n FormlyNzFormFieldModule,\n\n NzDatePickerModule,\n\n FormlyModule.forChild({\n types: [\n {\n name: 'datepicker',\n component: FormlyFieldDatepicker,\n wrappers: ['form-field']\n }\n ]\n })\n ]\n})\nexport class FormlyNzDatepickerModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;AA0FM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAjFrE,IAAA,WAAA,GAAA;;QAkFW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;AACL,gBAAA,UAAU,EAAE,IAAI;AAChB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,kBAAkB,EAAE,IAAI;AACxB,gBAAA,aAAa,EAAE,KAAK;AACpB,gBAAA,IAAI,EAAE,MAAe;AACrB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,SAAS,EAAE,YAAqB;AAChC,gBAAA,UAAU,EAAE,EAAE;AACd,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,MAAM,EAAE,KAAK;AACb,gBAAA,SAAS,EAAE,IAAI;AACf,gBAAA,OAAO,EAAE,IAAI;AACb,gBAAA,gBAAgB,EAAE,KAAK;AACvB,gBAAA,YAAY,EAAE;AACZ,oBAAA,SAAS,EAAE,GAAG;AACf,iBAAA;AACF,aAAA;SACF,CAAC;KACH;;kHAtBY,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,EA/EtB,QAAA,EAAA,yBAAA,EAAA,eAAA,EAAA,IAAA,EAAA,QAAA,EAAA,EAAA,EAAA,QAAA,EAAA,CAAA;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;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A,EAAA,CAAA,YAAA,CAAA,EAAA,CAAA,CAAA;AAaT,wBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,mBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,wBAAwB,YAjBjC,YAAY;QACZ,mBAAmB;QACnB,uBAAuB;QAEvB,kBAAkB;QAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,YAAA,KAAK,EAAE;AACL,gBAAA;AACE,oBAAA,IAAI,EAAE,YAAY;AAClB,oBAAA,SAAS,EAAE,qBAAqB;oBAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iBAAA;AACF,aAAA;SACF,CAAC,CAAA,EAAA,CAAA,CAAA;2FAGO,wBAAwB,EAAA,UAAA,EAAA,CAAA;kBApBpC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC5BD;;AAEG;;;;"}
@@ -54,6 +54,7 @@ FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
54
54
  [nzBackdrop]="props['backdrop']!!"
55
55
  [nzBorderless]="props['borderless']"
56
56
  [nzOpen]="props['open']!!"
57
+ [nzDropdownClassName]="props['dropdownClassName']"
57
58
  [nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
58
59
  [nzDropdownStyle]="props['dropdownStyle'] ?? null"
59
60
  [nzCustomTemplate]="props['customTemplate'] ?? null"
@@ -64,6 +65,7 @@ FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
64
65
  [nzSize]="props['size']!"
65
66
  [nzStatus]="props['status']!"
66
67
  [nzLoading]="props['loading']!!"
68
+ [nzPlacement]="props['placement']"
67
69
  [nzShowArrow]="props['showArrow']!!"
68
70
  [nzMaxTagCount]="props['maxTagCount']"
69
71
  [nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
@@ -98,7 +100,7 @@ FormlyFieldSelect.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", vers
98
100
  </ng-template>
99
101
  </ng-container>
100
102
  </nz-select>
101
- `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.NzOptionComponent, selector: "nz-option", inputs: ["nzLabel", "nzValue", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "component", type: i3.NzOptionGroupComponent, selector: "nz-option-group", inputs: ["nzLabel"], exportAs: ["nzOptionGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
103
+ `, isInline: true, dependencies: [{ kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { 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.NzOptionComponent, selector: "nz-option", inputs: ["nzLabel", "nzValue", "nzDisabled", "nzHide", "nzCustomContent"], exportAs: ["nzOption"] }, { kind: "component", type: i3.NzSelectComponent, selector: "nz-select", inputs: ["nzId", "nzSize", "nzStatus", "nzOptionHeightPx", "nzOptionOverflowSize", "nzDropdownClassName", "nzDropdownMatchSelectWidth", "nzDropdownStyle", "nzNotFoundContent", "nzPlaceHolder", "nzPlacement", "nzMaxTagCount", "nzDropdownRender", "nzCustomTemplate", "nzSuffixIcon", "nzClearIcon", "nzRemoveIcon", "nzMenuItemSelectedIcon", "nzTokenSeparators", "nzMaxTagPlaceholder", "nzMaxMultipleCount", "nzMode", "nzFilterOption", "compareWith", "nzAllowClear", "nzBorderless", "nzShowSearch", "nzLoading", "nzAutoFocus", "nzAutoClearSearchValue", "nzServerSearch", "nzDisabled", "nzOpen", "nzBackdrop", "nzOptions", "nzShowArrow"], outputs: ["nzOnSearch", "nzScrollToBottom", "nzOpenChange", "nzBlur", "nzFocus"], exportAs: ["nzSelect"] }, { kind: "component", type: i3.NzOptionGroupComponent, selector: "nz-option-group", inputs: ["nzLabel"], exportAs: ["nzOptionGroup"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }, { kind: "pipe", type: i1.AsyncPipe, name: "async" }, { kind: "pipe", type: i5.FormlySelectOptionsPipe, name: "formlySelectOptions" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
102
104
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldSelect, decorators: [{
103
105
  type: Component,
104
106
  args: [{
@@ -114,6 +116,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
114
116
  [nzBackdrop]="props['backdrop']!!"
115
117
  [nzBorderless]="props['borderless']"
116
118
  [nzOpen]="props['open']!!"
119
+ [nzDropdownClassName]="props['dropdownClassName']"
117
120
  [nzDropdownMatchSelectWidth]="props['dropdownMatchSelectWidth']!!"
118
121
  [nzDropdownStyle]="props['dropdownStyle'] ?? null"
119
122
  [nzCustomTemplate]="props['customTemplate'] ?? null"
@@ -124,6 +127,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
124
127
  [nzSize]="props['size']!"
125
128
  [nzStatus]="props['status']!"
126
129
  [nzLoading]="props['loading']!!"
130
+ [nzPlacement]="props['placement']"
127
131
  [nzShowArrow]="props['showArrow']!!"
128
132
  [nzMaxTagCount]="props['maxTagCount']"
129
133
  [nzMaxTagPlaceholder]="props['maxTagPlaceholder'] ?? null"
@@ -1 +1 @@
1
- {"version":3,"file":"ngx-formly-zorro-antd-select.mjs","sources":["../../../../packages/formlyantd/select/src/select.type.ts","../../../../packages/formlyantd/select/src/select.module.ts","../../../../packages/formlyantd/select/src/ngx-formly-zorro-antd-select.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport { NzSelectComponent } from 'ng-zorro-antd/select';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { SelectProps } from './select.props';\n\nexport interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {\n type: 'select' | 'enum' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-select',\n template: `\n <nz-select\n #select\n [class.ng-dirty]=\"showError\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [compareWith]=\"props['compareWith']!\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoClearSearchValue]=\"props['autoClearSearchValue']\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzBorderless]=\"props['borderless']\"\n [nzOpen]=\"props['open']!!\"\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzCustomTemplate]=\"props['customTemplate'] ?? null\"\n [nzServerSearch]=\"props['serverSearch']!!\"\n [nzMaxMultipleCount]=\"props['maxMultipleCount']!\"\n [nzMode]=\"props['mode']!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzLoading]=\"props['loading']!!\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\n [nzOptionHeightPx]=\"props['optionHeightPx']!\"\n [nzOptionOverflowSize]=\"props['optionOverflowSize']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n (nzBlur)=\"props.blur && props.blur(field, $event)\"\n (nzFocus)=\"props.focus && props.focus(field, $event)\"\n (nzOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzScrollToBottom)=\"props['scrollToBottom'] && props['scrollToBottom'](field, $event)\"\n (nzOnSearch)=\"props['onSearch'] && props['onSearch'](field, $event)\"\n >\n <ng-container *ngFor=\"let item of to.options | formlySelectOptions: field | async\">\n <nz-option-group [nzLabel]=\"item.label\" *ngIf=\"item.group; else selectoption\">\n <nz-option\n *ngFor=\"let child of item.group\"\n [nzValue]=\"child.value\"\n [nzDisabled]=\"child.disabled\"\n [nzLabel]=\"child.label\"\n >\n </nz-option>\n </nz-option-group>\n\n <ng-template #selectoption>\n <nz-option\n [nzValue]=\"item.value\"\n [nzDisabled]=\"item.disabled\"\n [nzLabel]=\"item.label\"\n ></nz-option>\n </ng-template>\n </ng-container>\n </nz-select>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2,\n autoClearSearchValue: true,\n allowClear: false,\n backdrop: false,\n open: false,\n dropdownMatchSelectWidth: true,\n serverSearch: false,\n maxMultipleCount: Infinity,\n mode: 'default' as const,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n tokenSeparators: [],\n loading: false,\n optionHeightPx: 32,\n optionOverflowSize: 8\n }\n };\n @ViewChild('select', { static: true }) select!: NzSelectComponent;\n ngOnInit(): void {\n if (this.props['filterOption'] instanceof Function) {\n this.select.nzFilterOption = this.props['filterOption'] as any;\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 { FormlySelectModule } from '@ngx-formly/core/select';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzSelectModule } from 'ng-zorro-antd/select';\n\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzSelectModule,\n\n FormlyNzFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field']\n },\n { name: 'enum', extends: 'select' }\n ]\n })\n ]\n})\nexport class FormlyNzSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAuEM,MAAO,iBAAkB,SAAQ,SAA0B,CAAA;AA5DjE,IAAA,WAAA,GAAA;;QA6DW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACxD,gBAAA,oBAAoB,EAAE,IAAI;AAC1B,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,wBAAwB,EAAE,IAAI;AAC9B,gBAAA,YAAY,EAAE,KAAK;AACnB,gBAAA,gBAAgB,EAAE,QAAQ;AAC1B,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,eAAe,EAAE,EAAE;AACnB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,cAAc,EAAE,EAAE;AAClB,gBAAA,kBAAkB,EAAE,CAAC;AACtB,aAAA;SACF,CAAC;KAOH;IALC,QAAQ,GAAA;QACN,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc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,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,QAAA,EAAA,EAAA,EAAA,IAAA,EAAA,oBAAoB,YAlB7B,YAAY;QACZ,mBAAmB;QACnB,cAAc;QAEd,uBAAuB;QACvB,kBAAkB;QAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,YAAA,KAAK,EAAE;AACL,gBAAA;AACE,oBAAA,IAAI,EAAE,QAAQ;AACd,oBAAA,SAAS,EAAE,iBAAiB;oBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iBAAA;AACD,gBAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,aAAA;SACF,CAAC,CAAA,EAAA,CAAA,CAAA;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBAEd,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC/BD;;AAEG;;;;"}
1
+ {"version":3,"file":"ngx-formly-zorro-antd-select.mjs","sources":["../../../../packages/formlyantd/select/src/select.type.ts","../../../../packages/formlyantd/select/src/select.module.ts","../../../../packages/formlyantd/select/src/ngx-formly-zorro-antd-select.ts"],"sourcesContent":["import { Component, Type, ChangeDetectionStrategy, ViewChild, OnInit } from '@angular/core';\nimport { FieldType, FieldTypeConfig, FormlyFieldConfig } from '@ngx-formly/core';\n\nimport { NzSelectComponent } from 'ng-zorro-antd/select';\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\nimport type { SelectProps } from './select.props';\n\nexport interface FormlySelectFieldConfig extends FormlyFieldConfig<SelectProps> {\n type: 'select' | 'enum' | Type<FormlyFieldSelect>;\n}\n\n@Component({\n selector: 'formly-field-select',\n template: `\n <nz-select\n #select\n [class.ng-dirty]=\"showError\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [compareWith]=\"props['compareWith']!\"\n [nzAllowClear]=\"props['allowClear']!!\"\n [nzAutoClearSearchValue]=\"props['autoClearSearchValue']\"\n [nzBackdrop]=\"props['backdrop']!!\"\n [nzBorderless]=\"props['borderless']\"\n [nzOpen]=\"props['open']!!\"\n [nzDropdownClassName]=\"props['dropdownClassName']\"\n [nzDropdownMatchSelectWidth]=\"props['dropdownMatchSelectWidth']!!\"\n [nzDropdownStyle]=\"props['dropdownStyle'] ?? null\"\n [nzCustomTemplate]=\"props['customTemplate'] ?? null\"\n [nzServerSearch]=\"props['serverSearch']!!\"\n [nzMaxMultipleCount]=\"props['maxMultipleCount']!\"\n [nzMode]=\"props['mode']!\"\n [nzShowSearch]=\"props['showSearch']!!\"\n [nzSize]=\"props['size']!\"\n [nzStatus]=\"props['status']!\"\n [nzLoading]=\"props['loading']!!\"\n [nzPlacement]=\"props['placement']\"\n [nzShowArrow]=\"props['showArrow']!!\"\n [nzMaxTagCount]=\"props['maxTagCount']\"\n [nzMaxTagPlaceholder]=\"props['maxTagPlaceholder'] ?? null\"\n [nzOptionHeightPx]=\"props['optionHeightPx']!\"\n [nzOptionOverflowSize]=\"props['optionOverflowSize']!\"\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n (ngModelChange)=\"props.change && props.change(field, $event)\"\n (nzBlur)=\"props.blur && props.blur(field, $event)\"\n (nzFocus)=\"props.focus && props.focus(field, $event)\"\n (nzOpenChange)=\"props['openChange'] && props['openChange'](field, $event)\"\n (nzScrollToBottom)=\"props['scrollToBottom'] && props['scrollToBottom'](field, $event)\"\n (nzOnSearch)=\"props['onSearch'] && props['onSearch'](field, $event)\"\n >\n <ng-container *ngFor=\"let item of to.options | formlySelectOptions: field | async\">\n <nz-option-group [nzLabel]=\"item.label\" *ngIf=\"item.group; else selectoption\">\n <nz-option\n *ngFor=\"let child of item.group\"\n [nzValue]=\"child.value\"\n [nzDisabled]=\"child.disabled\"\n [nzLabel]=\"child.label\"\n >\n </nz-option>\n </nz-option-group>\n\n <ng-template #selectoption>\n <nz-option\n [nzValue]=\"item.value\"\n [nzDisabled]=\"item.disabled\"\n [nzLabel]=\"item.label\"\n ></nz-option>\n </ng-template>\n </ng-container>\n </nz-select>\n `,\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class FormlyFieldSelect extends FieldType<FieldTypeConfig> implements OnInit {\n override defaultOptions = {\n props: {\n compareWith: (o1: NzSafeAny, o2: NzSafeAny) => o1 === o2,\n autoClearSearchValue: true,\n allowClear: false,\n backdrop: false,\n open: false,\n dropdownMatchSelectWidth: true,\n serverSearch: false,\n maxMultipleCount: Infinity,\n mode: 'default' as const,\n showSearch: false,\n size: 'default' as const,\n status: '' as const,\n tokenSeparators: [],\n loading: false,\n optionHeightPx: 32,\n optionOverflowSize: 8\n }\n };\n @ViewChild('select', { static: true }) select!: NzSelectComponent;\n ngOnInit(): void {\n if (this.props['filterOption'] instanceof Function) {\n this.select.nzFilterOption = this.props['filterOption'] as any;\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 { FormlySelectModule } from '@ngx-formly/core/select';\nimport { FormlyNzFormFieldModule } from 'ngx-formly-zorro-antd/form-field';\n\nimport { NzSelectModule } from 'ng-zorro-antd/select';\n\nimport { FormlyFieldSelect } from './select.type';\n\n@NgModule({\n declarations: [FormlyFieldSelect],\n imports: [\n CommonModule,\n ReactiveFormsModule,\n NzSelectModule,\n\n FormlyNzFormFieldModule,\n FormlySelectModule,\n FormlyModule.forChild({\n types: [\n {\n name: 'select',\n component: FormlyFieldSelect,\n wrappers: ['form-field']\n },\n { name: 'enum', extends: 'select' }\n ]\n })\n ]\n})\nexport class FormlyNzSelectModule {}\n","/**\n * Generated bundle index. Do not edit.\n */\n\nexport * from './public_api';\n"],"names":["i1"],"mappings":";;;;;;;;;;;;;;AAyEM,MAAO,iBAAkB,SAAQ,SAA0B,CAAA;AA9DjE,IAAA,WAAA,GAAA;;QA+DW,IAAA,CAAA,cAAc,GAAG;AACxB,YAAA,KAAK,EAAE;gBACL,WAAW,EAAE,CAAC,EAAa,EAAE,EAAa,KAAK,EAAE,KAAK,EAAE;AACxD,gBAAA,oBAAoB,EAAE,IAAI;AAC1B,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,QAAQ,EAAE,KAAK;AACf,gBAAA,IAAI,EAAE,KAAK;AACX,gBAAA,wBAAwB,EAAE,IAAI;AAC9B,gBAAA,YAAY,EAAE,KAAK;AACnB,gBAAA,gBAAgB,EAAE,QAAQ;AAC1B,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,UAAU,EAAE,KAAK;AACjB,gBAAA,IAAI,EAAE,SAAkB;AACxB,gBAAA,MAAM,EAAE,EAAW;AACnB,gBAAA,eAAe,EAAE,EAAE;AACnB,gBAAA,OAAO,EAAE,KAAK;AACd,gBAAA,cAAc,EAAE,EAAE;AAClB,gBAAA,kBAAkB,EAAE,CAAC;AACtB,aAAA;SACF,CAAC;KAOH;IALC,QAAQ,GAAA;QACN,IAAI,IAAI,CAAC,KAAK,CAAC,cAAc,CAAC,YAAY,QAAQ,EAAE;YAClD,IAAI,CAAC,MAAM,CAAC,cAAc,GAAG,IAAI,CAAC,KAAK,CAAC,cAAc,CAAQ,CAAC;AAChE,SAAA;KACF;;8GA1BU,iBAAiB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAA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CAAC,QAAQ,CAAC;AACpB,YAAA,KAAK,EAAE;AACL,gBAAA;AACE,oBAAA,IAAI,EAAE,QAAQ;AACd,oBAAA,SAAS,EAAE,iBAAiB;oBAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iBAAA;AACD,gBAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,aAAA;SACF,CAAC,CAAA,EAAA,CAAA,CAAA;2FAGO,oBAAoB,EAAA,UAAA,EAAA,CAAA;kBArBhC,QAAQ;AAAC,YAAA,IAAA,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,iBAAiB,CAAC;AACjC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,cAAc;wBAEd,uBAAuB;wBACvB,kBAAkB;wBAClB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,QAAQ;AACd,oCAAA,SAAS,EAAE,iBAAiB;oCAC5B,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACD,gCAAA,EAAE,IAAI,EAAE,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE;AACpC,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC/BD;;AAEG;;;;"}
@@ -18,6 +18,8 @@ class FormlyFieldTimepicker extends FieldType {
18
18
  allowEmpty: true,
19
19
  autoFocus: false,
20
20
  backdrop: false,
21
+ borderless: false,
22
+ inputReadOnly: false,
21
23
  open: false,
22
24
  clearText: 'clear',
23
25
  defaultOpenValue: new Date(),
@@ -47,7 +49,8 @@ FormlyFieldTimepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
47
49
  [nzFormat]="props['format']"
48
50
  [nzHideDisabledOptions]="props['hideDisabledOptions']!!"
49
51
  [nzHourStep]="props['hourStep']"
50
- [nzBorderless]="!!props['borderless']"
52
+ [nzBorderless]="props['borderless']!!"
53
+ [nzInputReadOnly]="props['inputReadOnly']!!"
51
54
  [nzMinuteStep]="props['minuteStep']"
52
55
  [nzSecondStep]="props['secondStep']"
53
56
  [nzOpen]="props['open']!!"
@@ -56,7 +59,7 @@ FormlyFieldTimepicker.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0",
56
59
  [nzSuffixIcon]="props['suffixIcon']"
57
60
  (ngModelChange)="props.change && props.change(field, $event)"
58
61
  (nzOpenChange)="props['openChange'] && props['openChange'](field, $event)"
59
- ></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"], outputs: ["nzOpenChange"], exportAs: ["nzTimePicker"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
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"] }, { kind: "directive", type: i4.ɵFormlyAttributes, selector: "[formlyAttributes]", inputs: ["formlyAttributes", "id"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
60
63
  i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImport: i0, type: FormlyFieldTimepicker, decorators: [{
61
64
  type: Component,
62
65
  args: [{
@@ -81,7 +84,8 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.1", ngImpor
81
84
  [nzFormat]="props['format']"
82
85
  [nzHideDisabledOptions]="props['hideDisabledOptions']!!"
83
86
  [nzHourStep]="props['hourStep']"
84
- [nzBorderless]="!!props['borderless']"
87
+ [nzBorderless]="props['borderless']!!"
88
+ [nzInputReadOnly]="props['inputReadOnly']!!"
85
89
  [nzMinuteStep]="props['minuteStep']"
86
90
  [nzSecondStep]="props['secondStep']"
87
91
  [nzOpen]="props['open']!!"
@@ -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, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\ninterface 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 * 自定义的后缀图标\n *\n */\n suffixIcon?: string | TemplateRef<void>;\n\n /**\n * 面板打开/关闭时的回调\n */\n openChange?: (field: FormlyFieldConfig, value: boolean) => void;\n}\n\nexport interface FormlyTimepickerFieldConfig extends FormlyFieldConfig<TimepickerProps> {\n type: 'timepicker' | Type<FormlyFieldTimepicker>;\n}\n\n@Component({\n selector: 'formly-field-timepicker',\n template: `<nz-time-picker\n #time\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['className']\"\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 [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 && props.change(field, $event)\"\n (nzOpenChange)=\"props['openChange'] && 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 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":";;;;;;;;;;;;AA6KM,MAAO,qBAAsB,SAAQ,SAA0B,CAAA;AAlCrE,IAAA,WAAA,GAAA;;QAmCW,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,IAAI,EAAE,KAAK;AACX,gBAAA,SAAS,EAAE,OAAO;gBAClB,gBAAgB,EAAE,IAAI,IAAI,EAAE;AAC5B,gBAAA,MAAM,EAAE,UAAuB;AAChC,aAAA;SACF,CAAC;KACH;;kHAZY,qBAAqB,EAAA,IAAA,EAAA,IAAA,EAAA,MAAA,EAAA,EAAA,CAAA,eAAA,CAAA,SAAA,EAAA,CAAA,CAAA;AAArB,qBAAA,CAAA,IAAA,GAAA,EAAA,CAAA,oBAAA,CAAA,EAAA,UAAA,EAAA,QAAA,EAAA,OAAA,EAAA,QAAA,EAAA,IAAA,EAAA,qBAAqB,EAhCtB,QAAA,EAAA,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A,EAAA,CAAA;oBACR,YAAY,EAAE,CAAC,qBAAqB,CAAC;AACrC,oBAAA,OAAO,EAAE;wBACP,YAAY;wBACZ,mBAAmB;wBACnB,uBAAuB;wBAEvB,kBAAkB;wBAElB,YAAY,CAAC,QAAQ,CAAC;AACpB,4BAAA,KAAK,EAAE;AACL,gCAAA;AACE,oCAAA,IAAI,EAAE,YAAY;AAClB,oCAAA,SAAS,EAAE,qBAAqB;oCAChC,QAAQ,EAAE,CAAC,YAAY,CAAC;AACzB,iCAAA;AACF,6BAAA;yBACF,CAAC;AACH,qBAAA;iBACF,CAAA;;;AC5BD;;AAEG;;;;"}
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, FormlyFieldConfig, FieldTypeConfig } from '@ngx-formly/core';\nimport type { FormlyFieldProps } from 'ngx-formly-zorro-antd/form-field';\n\nimport type { NzSafeAny } from 'ng-zorro-antd/core/types';\n\ninterface 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?: (field: FormlyFieldConfig, value: boolean) => void;\n}\n\nexport interface FormlyTimepickerFieldConfig extends FormlyFieldConfig<TimepickerProps> {\n type: 'timepicker' | Type<FormlyFieldTimepicker>;\n}\n\n@Component({\n selector: 'formly-field-timepicker',\n template: `<nz-time-picker\n #time\n [formControl]=\"formControl\"\n [formlyAttributes]=\"field\"\n [nzPlaceHolder]=\"props.placeholder ?? ''\"\n [ngClass]=\"props['className']\"\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 && props.change(field, $event)\"\n (nzOpenChange)=\"props['openChange'] && 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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