import { Component } from '@angular/core';
import { BaseControl } from '../basecontrol';
import * as i0 from "@angular/core";
import * as i1 from "../../service/common.service";
import * as i2 from "../form-box/form-box.component";
import * as i3 from "ng-devui";
import * as i4 from "@angular/common";
import * as i5 from "@angular/forms";
export class FormSliderComponent extends BaseControl {
    constructor(commonService) {
        super(commonService);
        this.commonService = commonService;
    }
    ngOnInit() {
    }
}
FormSliderComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: FormSliderComponent, deps: [{ token: i1.CommonService }], target: i0.ɵɵFactoryTarget.Component });
FormSliderComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "13.3.6", type: FormSliderComponent, selector: "form-slider", usesInheritance: true, ngImport: i0, template: "<ng-container *ngIf=\"data.mode=='op'; else detail\">\r\n    <form-box #box [mainCarry]=\"detail\" [name]=\"data.name\" [controltype]=\"data.controltype\" (controlclick)=\"onClick($event)\"></form-box>\r\n</ng-container>\r\n<ng-template #detail>\r\n    <d-form-item>\r\n        <d-form-label [required]=\"data.required\" [hasHelp]=\"data.help\" [helpTips]=\"data.helptip||''\">{{data.label}}</d-form-label>\r\n        <d-form-control>\r\n            <div class=\"slider-wrapper\">\r\n                <d-slider \r\n                [attr.name]=\"data.controlname\" \r\n                [(ngModel)]=\"data.defaultvalue\" \r\n                [min]=\"data.min\" \r\n                [max]=\"data.max\" \r\n                [step]=\"data.step\" \r\n                [dValidateRules]=\"data.rules\" \r\n                [disabled]=\"data.disabled\"\r\n                class=\"slider\"></d-slider>\r\n                <span>{{ data.min }}</span>\r\n                <span>{{ data.max }}</span>\r\n            </div>\r\n        </d-form-control>\r\n    </d-form-item>\r\n</ng-template>", styles: [".slider-wrapper{position:relative}.slider-wrapper span{position:absolute;top:15px}.slider-wrapper span:last-child{right:0}\n"], components: [{ type: i2.FormBoxComponent, selector: "form-box", inputs: ["mainCarry", "name", "controltype", "additionalcss"], outputs: ["controlclick"] }, { type: i3.FormItemComponent, selector: "d-form-item", inputs: ["dFeedbackType", "dHasFeedback"] }, { type: i3.FormLabelComponent, selector: "d-form-label", inputs: ["required", "hasHelp", "helpTips"] }, { type: i3.FormControlComponent, selector: "d-form-control", inputs: ["extraInfo", "feedbackStatus", "suffixTemplate"] }, { type: i3.SliderComponent, selector: "d-slider", inputs: ["max", "min", "step", "disabled", "tipsRenderer"], outputs: ["afterChange"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i5.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { type: i5.NgModel, selector: "[ngModel]:not([formControlName]):not([formControl])", inputs: ["name", "disabled", "ngModel", "ngModelOptions"], outputs: ["ngModelChange"], exportAs: ["ngModel"] }, { type: i3.DFormControlRuleDirective, selector: "[dValidateRules][formControlName],[dValidateRules][ngModel],[dValidateRules][formControl]", inputs: ["dValidateRules", "dValidatePopConfig"], outputs: ["dRulesStatusChange"], exportAs: ["dValidateRules"] }] });
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "13.3.6", ngImport: i0, type: FormSliderComponent, decorators: [{
            type: Component,
            args: [{ selector: 'form-slider', template: "<ng-container *ngIf=\"data.mode=='op'; else detail\">\r\n    <form-box #box [mainCarry]=\"detail\" [name]=\"data.name\" [controltype]=\"data.controltype\" (controlclick)=\"onClick($event)\"></form-box>\r\n</ng-container>\r\n<ng-template #detail>\r\n    <d-form-item>\r\n        <d-form-label [required]=\"data.required\" [hasHelp]=\"data.help\" [helpTips]=\"data.helptip||''\">{{data.label}}</d-form-label>\r\n        <d-form-control>\r\n            <div class=\"slider-wrapper\">\r\n                <d-slider \r\n                [attr.name]=\"data.controlname\" \r\n                [(ngModel)]=\"data.defaultvalue\" \r\n                [min]=\"data.min\" \r\n                [max]=\"data.max\" \r\n                [step]=\"data.step\" \r\n                [dValidateRules]=\"data.rules\" \r\n                [disabled]=\"data.disabled\"\r\n                class=\"slider\"></d-slider>\r\n                <span>{{ data.min }}</span>\r\n                <span>{{ data.max }}</span>\r\n            </div>\r\n        </d-form-control>\r\n    </d-form-item>\r\n</ng-template>", styles: [".slider-wrapper{position:relative}.slider-wrapper span{position:absolute;top:15px}.slider-wrapper span:last-child{right:0}\n"] }]
        }], ctorParameters: function () { return [{ type: i1.CommonService }]; } });
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZm9ybS1zbGlkZXIuY29tcG9uZW50LmpzIiwic291cmNlUm9vdCI6IiIsInNvdXJjZXMiOlsiLi4vLi4vLi4vLi4vLi4vLi4vcHJvamVjdHMvZm9ybWJ1aWxkZXIvc3JjL2xpYi9jb250cm9sL2Zvcm0tc2xpZGVyL2Zvcm0tc2xpZGVyLmNvbXBvbmVudC50cyIsIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2Zvcm1idWlsZGVyL3NyYy9saWIvY29udHJvbC9mb3JtLXNsaWRlci9mb3JtLXNsaWRlci5jb21wb25lbnQuaHRtbCJdLCJuYW1lcyI6W10sIm1hcHBpbmdzIjoiQUFBQSxPQUFPLEVBQUUsU0FBUyxFQUFVLE1BQU0sZUFBZSxDQUFDO0FBRWxELE9BQU8sRUFBRSxXQUFXLEVBQUUsTUFBTSxnQkFBZ0IsQ0FBQzs7Ozs7OztBQU83QyxNQUFNLE9BQU8sbUJBQW9CLFNBQVEsV0FBVztJQUVsRCxZQUNVLGFBQTJCO1FBRW5DLEtBQUssQ0FBQyxhQUFhLENBQUMsQ0FBQztRQUZiLGtCQUFhLEdBQWIsYUFBYSxDQUFjO0lBR3JDLENBQUM7SUFFRCxRQUFRO0lBQ1IsQ0FBQzs7Z0hBVFUsbUJBQW1CO29HQUFuQixtQkFBbUIsMEVDVGhDLCtpQ0FzQmM7MkZEYkQsbUJBQW1CO2tCQUwvQixTQUFTOytCQUNFLGFBQWEiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBDb21wb25lbnQsIE9uSW5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