ddata-ui-input
Version:
DData UI Input module, components, models & services
60 lines (59 loc) • 2.92 kB
TypeScript
import { ChangeDetectorRef, ElementRef, EventEmitter, OnInit } from '@angular/core';
import { NgbDate } from '@ng-bootstrap/ng-bootstrap';
import { BaseModelInterface, FieldsInterface } from 'ddata-core';
import * as moment from 'moment';
import { InputHelperServiceInterface } from '../../services/input/helper/input-helper-service.interface';
import * as i0 from "@angular/core";
export declare class DdataInputDateComponent implements OnInit {
private changeDetector;
helperService: InputHelperServiceInterface;
_field: string;
_title: string;
_label: string;
_placeholder: string;
_prepend: string;
_append: string;
_isRequired: boolean;
_model: BaseModelInterface<any> & FieldsInterface<any>;
_moment: typeof moment;
set moment(value: any);
set model(value: BaseModelInterface<any> & FieldsInterface<any> | null);
get model(): BaseModelInterface<any> & FieldsInterface<any>;
set field(value: string);
set append(value: string);
set prepend(value: string);
set labelText(value: string);
disabled: boolean;
inputClass: string;
labelClass: string;
inputBlockClass: string;
inputBlockExtraClass: string;
showLabel: boolean;
autoFocus: boolean;
isViewOnly: boolean;
viewOnlyClass: string;
buttonClass: string;
wrapperClass: string;
format: string;
separator: string;
labelApply: string;
labelCancel: string;
position: 'left' | 'center' | 'right';
direction: 'up' | 'down';
showIcon: boolean;
autoApply: boolean;
singleDatePicker: boolean;
changed: EventEmitter<BaseModelInterface<any> & FieldsInterface<any>>;
inputBox: ElementRef;
icon: {
calendar: import("@fortawesome/fontawesome-common-types").IconDefinition;
};
random: string;
selectedValue: any;
constructor(changeDetector: ChangeDetectorRef);
ngOnInit(): void;
change(value: NgbDate): void;
typeChange(event: any): void;
static ɵfac: i0.ɵɵFactoryDeclaration<DdataInputDateComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DdataInputDateComponent, "dd-input-date", never, { "moment": "moment"; "model": "model"; "field": "field"; "append": "append"; "prepend": "prepend"; "labelText": "labelText"; "disabled": "disabled"; "inputClass": "inputClass"; "labelClass": "labelClass"; "inputBlockClass": "inputBlockClass"; "inputBlockExtraClass": "inputBlockExtraClass"; "showLabel": "showLabel"; "autoFocus": "autoFocus"; "isViewOnly": "isViewOnly"; "viewOnlyClass": "viewOnlyClass"; "buttonClass": "buttonClass"; "wrapperClass": "wrapperClass"; "format": "format"; "separator": "separator"; "labelApply": "labelApply"; "labelCancel": "labelCancel"; "position": "position"; "direction": "direction"; "showIcon": "showIcon"; "autoApply": "autoApply"; "singleDatePicker": "singleDatePicker"; }, { "changed": "changed"; }, never, never, false, never>;
}