UNPKG

devextreme-angular

Version:

DevExtreme UI and Visualization Components for Angular

175 lines (170 loc) 7.11 kB
import * as i0 from '@angular/core'; import { Input, SkipSelf, Host, Inject, Component, NgModule } from '@angular/core'; import { DOCUMENT } from '@angular/common'; import * as i1 from 'devextreme-angular/core'; import { CollectionNestedOption, extractTemplate, DxIntegrationModule, NestedOptionHost, DxTemplateHost } from 'devextreme-angular/core'; import { PROPERTY_TOKEN_items } from 'devextreme-angular/core/tokens'; /*! * devextreme-angular * Version: 26.1.3 * Build date: Wed Jun 10 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/DevExtreme */ /* tslint:disable:max-line-length */ class DxiStepperItemComponent extends CollectionNestedOption { get disabled() { return this._getOption('disabled'); } set disabled(value) { this._setOption('disabled', value); } get hint() { return this._getOption('hint'); } set hint(value) { this._setOption('hint', value); } get icon() { return this._getOption('icon'); } set icon(value) { this._setOption('icon', value); } get isValid() { return this._getOption('isValid'); } set isValid(value) { this._setOption('isValid', value); } get label() { return this._getOption('label'); } set label(value) { this._setOption('label', value); } get optional() { return this._getOption('optional'); } set optional(value) { this._setOption('optional', value); } get template() { return this._getOption('template'); } set template(value) { this._setOption('template', value); } get text() { return this._getOption('text'); } set text(value) { this._setOption('text', value); } get _optionPath() { return 'items'; } constructor(parentOptionHost, optionHost, renderer, document, templateHost, element) { super(); this.renderer = renderer; this.document = document; this.element = element; parentOptionHost.setNestedOption(this); optionHost.setHost(this, this._fullOptionPath.bind(this)); templateHost.setHost(this); } setTemplate(template) { this.template = template; } ngAfterViewInit() { extractTemplate(this, this.element, this.renderer, this.document); } ngOnDestroy() { this._deleteRemovedOptions(this._fullOptionPath()); } /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DxiStepperItemComponent, deps: [{ token: i1.NestedOptionHost, host: true, skipSelf: true }, { token: i1.NestedOptionHost, host: true }, { token: i0.Renderer2 }, { token: DOCUMENT }, { token: i1.DxTemplateHost, host: true }, { token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Component }); } /** @nocollapse */ static { this.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "20.3.21", type: DxiStepperItemComponent, isStandalone: true, selector: "dxi-stepper-item", inputs: { disabled: "disabled", hint: "hint", icon: "icon", isValid: "isValid", label: "label", optional: "optional", template: "template", text: "text" }, providers: [ NestedOptionHost, DxTemplateHost, { provide: PROPERTY_TOKEN_items, useExisting: DxiStepperItemComponent, } ], usesInheritance: true, ngImport: i0, template: '<ng-content></ng-content>', isInline: true, styles: [":host{display:block}\n"], dependencies: [{ kind: "ngmodule", type: DxIntegrationModule }] }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DxiStepperItemComponent, decorators: [{ type: Component, args: [{ selector: 'dxi-stepper-item', template: '<ng-content></ng-content>', imports: [DxIntegrationModule], providers: [ NestedOptionHost, DxTemplateHost, { provide: PROPERTY_TOKEN_items, useExisting: DxiStepperItemComponent, } ], styles: [":host{display:block}\n"] }] }], ctorParameters: () => [{ type: i1.NestedOptionHost, decorators: [{ type: SkipSelf }, { type: Host }] }, { type: i1.NestedOptionHost, decorators: [{ type: Host }] }, { type: i0.Renderer2 }, { type: undefined, decorators: [{ type: Inject, args: [DOCUMENT] }] }, { type: i1.DxTemplateHost, decorators: [{ type: Host }] }, { type: i0.ElementRef }], propDecorators: { disabled: [{ type: Input }], hint: [{ type: Input }], icon: [{ type: Input }], isValid: [{ type: Input }], label: [{ type: Input }], optional: [{ type: Input }], template: [{ type: Input }], text: [{ type: Input }] } }); class DxiStepperItemModule { /** @nocollapse */ static { this.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DxiStepperItemModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule }); } /** @nocollapse */ static { this.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "20.3.21", ngImport: i0, type: DxiStepperItemModule, imports: [DxiStepperItemComponent], exports: [DxiStepperItemComponent] }); } /** @nocollapse */ static { this.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DxiStepperItemModule, imports: [DxiStepperItemComponent] }); } } i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "20.3.21", ngImport: i0, type: DxiStepperItemModule, decorators: [{ type: NgModule, args: [{ imports: [ DxiStepperItemComponent ], exports: [ DxiStepperItemComponent ], }] }] }); /*! * devextreme-angular * Version: 26.1.3 * Build date: Wed Jun 10 2026 * * Copyright (c) 2012 - 2026 Developer Express Inc. ALL RIGHTS RESERVED * * This software may be modified and distributed under the terms * of the MIT license. See the LICENSE file in the root of the project for details. * * https://github.com/DevExpress/DevExtreme */ /** * Generated bundle index. Do not edit. */ export { DxiStepperItemComponent, DxiStepperItemModule }; //# sourceMappingURL=devextreme-angular-ui-stepper-nested.mjs.map