Browse Source
Merge pull request #19737 from abpframework/auto-merge/prerel-8-2/2689
Merge branch dev with prerel-8.2
pull/19745/head
maliming
2 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with
1 additions and
10 deletions
-
npm/ng-packs/packages/components/extensible/src/lib/components/extensible-form/extensible-form-prop.component.html
-
npm/ng-packs/packages/theme-shared/src/lib/adapters/time.adapter.ts
|
|
|
@ -21,11 +21,9 @@ |
|
|
|
class="form-control" |
|
|
|
/> |
|
|
|
} |
|
|
|
|
|
|
|
@case ('hidden') { |
|
|
|
<input [formControlName]="prop.name" type="hidden" /> |
|
|
|
} |
|
|
|
|
|
|
|
@case ('checkbox') { |
|
|
|
<div class="form-check" validationTarget> |
|
|
|
<input |
|
|
|
@ -42,7 +40,6 @@ |
|
|
|
></ng-template> |
|
|
|
</div> |
|
|
|
} |
|
|
|
|
|
|
|
@case ('select') { |
|
|
|
<ng-template [ngTemplateOutlet]="label"></ng-template> |
|
|
|
<select |
|
|
|
@ -59,7 +56,6 @@ |
|
|
|
} |
|
|
|
</select> |
|
|
|
} |
|
|
|
|
|
|
|
@case ('multiselect') { |
|
|
|
<ng-template [ngTemplateOutlet]="label"></ng-template> |
|
|
|
<select |
|
|
|
@ -77,7 +73,6 @@ |
|
|
|
} |
|
|
|
</select> |
|
|
|
} |
|
|
|
|
|
|
|
@case ('typeahead') { |
|
|
|
<ng-template [ngTemplateOutlet]="label"></ng-template> |
|
|
|
<div #typeahead class="position-relative" validationStyle validationTarget> |
|
|
|
@ -100,7 +95,6 @@ |
|
|
|
<input [formControlName]="prop.name" type="hidden" /> |
|
|
|
</div> |
|
|
|
} |
|
|
|
|
|
|
|
@case ('date') { |
|
|
|
<ng-template [ngTemplateOutlet]="label"></ng-template> |
|
|
|
<input |
|
|
|
@ -118,12 +112,10 @@ |
|
|
|
<ng-template [ngTemplateOutlet]="label"></ng-template> |
|
|
|
<ngb-timepicker [formControlName]="prop.name"></ngb-timepicker> |
|
|
|
} |
|
|
|
|
|
|
|
@case ('dateTime') { |
|
|
|
<ng-template [ngTemplateOutlet]="label"></ng-template> |
|
|
|
<abp-extensible-date-time-picker [prop]="prop" [meridian]="meridian$ | async" /> |
|
|
|
} |
|
|
|
|
|
|
|
@case ('textarea') { |
|
|
|
<ng-template [ngTemplateOutlet]="label"></ng-template> |
|
|
|
<textarea |
|
|
|
@ -135,7 +127,6 @@ |
|
|
|
class="form-control" |
|
|
|
></textarea> |
|
|
|
} |
|
|
|
|
|
|
|
@case ('passwordinputgroup') { |
|
|
|
<ng-template [ngTemplateOutlet]="label"></ng-template> |
|
|
|
<div class="input-group form-group" validationTarget> |
|
|
|
|
|
|
|
@ -24,7 +24,7 @@ export class TimeAdapter extends NgbTimeAdapter<string | Date> { |
|
|
|
if (!value) return ''; |
|
|
|
|
|
|
|
const date = new Date(0, 0, 1, value.hour, value.minute, value.second); |
|
|
|
const formattedDate = formatDate(date, 'HH:mm', 'en'); |
|
|
|
const formattedDate = formatDate(date, 'HH:mm:ss', 'en'); |
|
|
|
|
|
|
|
return formattedDate; |
|
|
|
} |
|
|
|
|