UNPKG

@ngx-formly/ionic

Version:

Formly is a dynamic (JSON powered) form library for Angular that bring unmatched maintainability to your application's forms.

88 lines (82 loc) 4.88 kB
import * as i0 from '@angular/core'; import { ChangeDetectionStrategy, Component, NO_ERRORS_SCHEMA, NgModule } from '@angular/core'; import * as i1$1 from '@ngx-formly/core'; import { FieldType, FormlyModule } from '@ngx-formly/core'; import * as i1 from '@angular/forms'; import { ReactiveFormsModule } from '@angular/forms'; import * as i2 from '@ionic/angular'; import { IonicModule } from '@ionic/angular'; import * as i3 from '@ngx-formly/ionic/form-field'; import { FormlyFormFieldModule } from '@ngx-formly/ionic/form-field'; import { CommonModule } from '@angular/common'; class FormlyFieldSlider extends FieldType { static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldSlider, deps: null, target: i0.ɵɵFactoryTarget.Component }); } static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "18.2.13", type: FormlyFieldSlider, selector: "formly-field-ion-range", usesInheritance: true, ngImport: i0, template: ` <ion-range [min]="props.min" [max]="props.max" [formControl]="formControl" [ionFormlyAttributes]="field" [label]="props.label" [labelPlacement]="props.labelPosition" > <ion-label slot="start">{{ props.min }}</ion-label> <ion-label slot="end">{{ props.max }}</ion-label> </ion-range> `, isInline: true, styles: [":host{display:inherit}\n"], dependencies: [{ kind: "directive", type: i1.NgControlStatus, selector: "[formControlName],[ngModel],[formControl]" }, { kind: "directive", type: i1.FormControlDirective, selector: "[formControl]", inputs: ["formControl", "disabled", "ngModel"], outputs: ["ngModelChange"], exportAs: ["ngForm"] }, { kind: "component", type: i2.IonLabel, selector: "ion-label", inputs: ["color", "mode", "position"] }, { kind: "component", type: i2.IonRange, selector: "ion-range", inputs: ["activeBarStart", "color", "debounce", "disabled", "dualKnobs", "label", "labelPlacement", "max", "min", "mode", "name", "pin", "pinFormatter", "snaps", "step", "ticks", "value"] }, { kind: "directive", type: i2.NumericValueAccessor, selector: "ion-input[type=number],ion-range" }, { kind: "directive", type: i3.ɵIonFormlyAttributes, selector: "[ionFormlyAttributes]", inputs: ["ionFormlyAttributes"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlyFieldSlider, decorators: [{ type: Component, args: [{ selector: 'formly-field-ion-range', template: ` <ion-range [min]="props.min" [max]="props.max" [formControl]="formControl" [ionFormlyAttributes]="field" [label]="props.label" [labelPlacement]="props.labelPosition" > <ion-label slot="start">{{ props.min }}</ion-label> <ion-label slot="end">{{ props.max }}</ion-label> </ion-range> `, changeDetection: ChangeDetectionStrategy.OnPush, styles: [":host{display:inherit}\n"] }] }] }); function withFormlyFieldSlider() { return { types: [ { name: 'slider', component: FormlyFieldSlider, wrappers: ['form-field'] }, { name: 'range', extends: 'slider' }, ], }; } class FormlySliderModule { static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlySliderModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "18.2.13", ngImport: i0, type: FormlySliderModule, declarations: [FormlyFieldSlider], imports: [CommonModule, ReactiveFormsModule, IonicModule, FormlyFormFieldModule, i1$1.FormlyModule] }); } static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlySliderModule, imports: [CommonModule, ReactiveFormsModule, IonicModule, FormlyFormFieldModule, FormlyModule.forChild(withFormlyFieldSlider())] }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "18.2.13", ngImport: i0, type: FormlySliderModule, decorators: [{ type: NgModule, args: [{ declarations: [FormlyFieldSlider], imports: [ CommonModule, ReactiveFormsModule, IonicModule, FormlyFormFieldModule, FormlyModule.forChild(withFormlyFieldSlider()), ], schemas: [NO_ERRORS_SCHEMA], }] }] }); /** * Generated bundle index. Do not edit. */ export { FormlySliderModule, withFormlyFieldSlider }; //# sourceMappingURL=ngx-formly-ionic-slider.mjs.map