@datarailsshared/datarailsshared 1.4.71-rocket → 1.4.73
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bundles/datarailsshared-datarailsshared.umd.js +10 -77
- package/bundles/datarailsshared-datarailsshared.umd.js.map +1 -1
- package/datarailsshared-datarailsshared-1.4.73.tgz +0 -0
- package/datarailsshared-datarailsshared.d.ts +0 -1
- package/datarailsshared-datarailsshared.metadata.json +1 -1
- package/esm2015/datarailsshared-datarailsshared.js +1 -2
- package/esm2015/lib/dr-dropdown/dr-dropdown.component.js +1 -1
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.js +10 -5
- package/esm2015/lib/dr-inputs/date-pickers/dr-date-picker_custom-header/dr-date-picker_custom-header.component.js +3 -2
- package/esm2015/lib/dr-inputs/date-pickers/services/dr-date-picker.service.js +1 -1
- package/esm2015/public-api.js +1 -2
- package/fesm2015/datarailsshared-datarailsshared.js +11 -72
- package/fesm2015/datarailsshared-datarailsshared.js.map +1 -1
- package/lib/dr-inputs/date-pickers/dr-date-picker/dr-date-picker.component.d.ts +1 -1
- package/lib/dr-inputs/date-pickers/services/dr-date-picker.service.d.ts +3 -2
- package/package.json +1 -1
- package/public-api.d.ts +0 -2
- package/datarailsshared-datarailsshared-1.4.71-rocket.tgz +0 -0
- package/esm2015/lib/stepper/interfaces/stepper.js +0 -2
- package/esm2015/lib/stepper/stepper.component.js +0 -55
- package/esm2015/lib/stepper/stepper.module.js +0 -17
- package/lib/stepper/interfaces/stepper.d.ts +0 -9
- package/lib/stepper/stepper.component.d.ts +0 -19
- package/lib/stepper/stepper.module.d.ts +0 -2
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { AfterViewInit, ChangeDetectorRef, OnDestroy } from '@angular/core';
|
|
2
2
|
import { ControlValueAccessor } from '@angular/forms';
|
|
3
3
|
import { DatePickerPeriodPosition, TimeframeOption } from '../../../models/datePicker';
|
|
4
4
|
import { Moment } from 'moment';
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MatDatepicker } from
|
|
1
|
+
import { MatCalendar, MatDatepicker } from '@angular/material/datepicker';
|
|
2
2
|
import { Moment } from 'moment';
|
|
3
3
|
import { Subject, BehaviorSubject } from "rxjs";
|
|
4
4
|
import { IDatePickerFormatConfig, TTimeframeOption, TimeframeOption } from "../../../models/datePicker";
|
|
@@ -7,9 +7,10 @@ export declare class DrDatePickerService {
|
|
|
7
7
|
timeframe: TTimeframeOption;
|
|
8
8
|
format$: BehaviorSubject<string>;
|
|
9
9
|
updatedQuarter$: Subject<Moment>;
|
|
10
|
-
|
|
10
|
+
datePickerInstance: MatDatepicker<any>;
|
|
11
11
|
availableTimeframes: TimeframeOption[];
|
|
12
12
|
formatConfig: IDatePickerFormatConfig;
|
|
13
|
+
calendarInstance: MatCalendar<any>;
|
|
13
14
|
getDisplayPrefix(): "" | "Q" | "W";
|
|
14
15
|
getTimeframe(format: string): TimeframeOption;
|
|
15
16
|
getConfiguredFormat(timeframe: TTimeframeOption): string;
|
package/package.json
CHANGED
package/public-api.d.ts
CHANGED
|
@@ -41,7 +41,6 @@ export * from './lib/dr-layout/dr-layout-header.component';
|
|
|
41
41
|
export * from './lib/dr-layout/dr-layout-body.component';
|
|
42
42
|
export * from './lib/dr-error/dr-error.component';
|
|
43
43
|
export { TooltipPosition } from './lib/dr-tooltip/enums/tooltip-position.enum';
|
|
44
|
-
export { Step } from './lib/stepper/interfaces/stepper';
|
|
45
44
|
export { TooltipInfoContext } from './lib/dr-tooltip/interfaces/tooltip-component-context';
|
|
46
45
|
export * from './lib/dr-inputs/dr-model-debounce-change.directive';
|
|
47
46
|
export * from './lib/models/datePicker';
|
|
@@ -64,4 +63,3 @@ export { DrAccordionModule } from './lib/dr-accordion/accordion.module';
|
|
|
64
63
|
export { DrSharedUtils } from './lib/utils/dr-shared-utils';
|
|
65
64
|
export { DrLayoutModule } from './lib/dr-layout/dr-layout.module';
|
|
66
65
|
export { DrErrorModule } from './lib/dr-error/dr-error.module';
|
|
67
|
-
export { StepperModule } from './lib/stepper/stepper.module';
|
|
Binary file
|
|
@@ -1,2 +0,0 @@
|
|
|
1
|
-
export {};
|
|
2
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcHBlci5qcyIsInNvdXJjZVJvb3QiOiIiLCJzb3VyY2VzIjpbIi4uLy4uLy4uLy4uLy4uLy4uL3Byb2plY3RzL2RhdGFyYWlsc3NoYXJlZC9zcmMvbGliL3N0ZXBwZXIvaW50ZXJmYWNlcy9zdGVwcGVyLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiIiLCJzb3VyY2VzQ29udGVudCI6WyJleHBvcnQgdHlwZSBTdGVwID0ge1xuICBpbmRleDogbnVtYmVyO1xuICBuYW1lOiBzdHJpbmc7XG4gIGNvbXBsZXRlZDogYm9vbGVhbjtcbiAgZGVzY3JpcHRpb24/OiBzdHJpbmc7XG4gIHNob3dQcm9ncmVzcz86IGJvb2xlYW47XG4gIGNvbXBsZXRlZFRhc2tzPzogbnVtYmVyO1xuICByZXF1aXJlZFRhc2tzPzogbnVtYmVyO1xufTtcbiJdfQ==
|
|
@@ -1,55 +0,0 @@
|
|
|
1
|
-
import { ChangeDetectionStrategy, Component, ElementRef, EventEmitter, Input, Output, ViewChild } from '@angular/core';
|
|
2
|
-
export class StepperComponent {
|
|
3
|
-
constructor() {
|
|
4
|
-
this.withoutConnectors = false;
|
|
5
|
-
this.hiddenNames = false;
|
|
6
|
-
this.inlineLabels = false;
|
|
7
|
-
this.disabled = false;
|
|
8
|
-
this.hiddenIndex = false;
|
|
9
|
-
this.stepChange = new EventEmitter();
|
|
10
|
-
}
|
|
11
|
-
selectStep(step) {
|
|
12
|
-
if (step !== this.currentStep && !this.disabled) {
|
|
13
|
-
this.stepChange.emit(step);
|
|
14
|
-
}
|
|
15
|
-
}
|
|
16
|
-
getWidth(step) {
|
|
17
|
-
if (this.withoutConnectors)
|
|
18
|
-
return '0%';
|
|
19
|
-
if (step.completed)
|
|
20
|
-
return '100%';
|
|
21
|
-
if (step.index === 0 || this.steps[step.index - 1].completed)
|
|
22
|
-
return `${((step === null || step === void 0 ? void 0 : step.completedTasks) / (step === null || step === void 0 ? void 0 : step.requiredTasks) * 100) || 0}%`;
|
|
23
|
-
return '0%';
|
|
24
|
-
}
|
|
25
|
-
scrollLeft() {
|
|
26
|
-
this.stepper.nativeElement.scrollLeft -= 80;
|
|
27
|
-
}
|
|
28
|
-
scrollRight() {
|
|
29
|
-
this.stepper.nativeElement.scrollLeft += 80;
|
|
30
|
-
}
|
|
31
|
-
roundWidth(width) {
|
|
32
|
-
return Math.round(width);
|
|
33
|
-
}
|
|
34
|
-
}
|
|
35
|
-
StepperComponent.decorators = [
|
|
36
|
-
{ type: Component, args: [{
|
|
37
|
-
selector: 'dr-stepper',
|
|
38
|
-
template: "<div class=\"scroll-section\" *ngIf=\"stepper?.scrollLeft !== 0\" (click)=\"scrollLeft()\">\n <i class=\"dr-icon-arrow-right\"></i>\n</div>\n<div #stepper class=\"stepper\" [ngClass]=\"{'stepper--disabled': disabled}\">\n <ng-container *ngFor=\"let step of steps; let index = index; last as isLast; first as isFirst\">\n <div class=\"step\" (click)=\"selectStep(step)\"\n [class.step-setup]=\"inlineLabels\">\n <div class=\"step-wrapper\" [drTooltip]=\"step.description && tooltip\"\n [drTooltipContext]=\"{ step: step }\"\n [drTooltipPosition]=\"'bottom'\">\n <div data-test=\"step_point\" class=\"step-point\">\n <div *ngIf=\"step === currentStep;\" class=\"ellipse\"></div>\n <ng-container [ngSwitch]=\"step.completed\">\n <ng-template [ngSwitchCase]=\"true\">\n <div class=\"pointer blue\">\n <i class=\"dr-icon-approve\"></i>\n </div>\n </ng-template>\n <ng-template [ngSwitchCase]=\"false\">\n <div class=\"pointer\" [class.gray]=\"step !== currentStep\"\n [ngClass]=\"{'blue with-ellipse': step === currentStep}\">\n <div [hidden]=\"step === currentStep || hiddenIndex\" class=\"text\">{{index + 1}}</div>\n </div>\n </ng-template>\n </ng-container>\n </div>\n <div data-test=\"step_label_name\" class=\"step-label\" [class.active]=\"currentStep === step\"\n [ngClass]=\"step.completed ? 'completed' : 'uncompleted'\">\n <span [hidden]=\"hiddenNames\">{{step.name}}</span>\n </div>\n <ng-container *ngIf=\"inlineLabels\" [ngTemplateOutlet]=\"connector\"\n [ngTemplateOutletContext]=\"{ index, isLast, step }\">\n </ng-container>\n <span *ngIf=\"step.showProgress\"\n data-test=\"step_progress\"\n class=\"step-progress\">\n {{(step.requiredTasks ? step.completedTasks : step.requiredTasks) + '/' + step.requiredTasks}}\n </span>\n </div>\n <ng-container *ngIf=\"!inlineLabels\" [ngTemplateOutlet]=\"connector\"\n [ngTemplateOutletContext]=\"{ index, isLast, step }\">\n </ng-container>\n </div>\n </ng-container>\n</div>\n<div (click)=\"scrollRight()\" class=\"scroll-section\"\n *ngIf=\"stepper?.scrollWidth > stepper?.clientWidth && roundWidth(stepper?.scrollLeft + stepper?.clientWidth) < stepper?.scrollWidth\">\n <i class=\"dr-icon-arrow-right\"></i>\n</div>\n\n<ng-template #tooltip let-step=\"step\">\n <div class=\"step-tooltip\">\n <div class=\"step-tooltip_name\">{{step.name}}</div>\n <div class=\"step-tooltip_description\">{{step.description}}</div>\n </div>\n</ng-template>\n\n<ng-template #connector let-step=\"step\" let-isLast=\"isLast\" let-index=\"index\">\n <div class=\"step-connector\" [class.only-one-step]=\"steps.length === 1\"\n [class]=\"'step-connector--' + (!inlineLabels ? 'absolute' : 'inline')\"\n *ngIf=\"steps.length === 1 || !isLast\"\n [style.visibility]=\"withoutConnectors ? 'hidden' : 'unset'\"\n [class.connector-grand]=\"!inlineLabels && (index === 0 || index === steps.length - 2)\">\n <div class=\"progress\" [style.width]=\"getWidth(step)\"></div>\n </div>\n</ng-template>\n",
|
|
39
|
-
changeDetection: ChangeDetectionStrategy.Default,
|
|
40
|
-
styles: [":host{font-family:\"Poppins\",sans-serif;display:flex;justify-content:center;height:100%;position:relative}:host .scroll-section{position:absolute;top:0;height:100%;width:108px;display:flex;align-items:center;z-index:10}:host .scroll-section i{font-size:24px;color:#2969b0;background:#F3F7FF;border-radius:24px}:host .scroll-section i:hover{background:#CDE1FB;cursor:pointer}:host .scroll-section:first-child{left:0;padding-left:16px;background:linear-gradient(90deg,#FFFFFF 36.08%,rgba(255,255,255,0) 87.17%)}:host .scroll-section:first-child i{transform:rotate(180deg)}:host .scroll-section:last-child{right:0;padding-right:16px;background:linear-gradient(270deg,#FFFFFF 36.08%,rgba(255,255,255,0) 87.17%);justify-content:flex-end}:host .stepper{display:flex;align-items:center;height:100%;width:100%;overflow:auto;scroll-behavior:smooth}:host .stepper::-webkit-scrollbar{display:none}:host .stepper--disabled .step:hover{cursor:default}:host .stepper--disabled .step-point .ellipse{border-color:#bcbcbc}:host .stepper--disabled .step-point .pointer{color:#fff;background-color:#bcbcbc;cursor:default}:host .stepper--disabled .step-label{color:#bcbcbc}:host .stepper--disabled .step-connector{background-color:#bcbcbc}:host .stepper--disabled .step-connector .progress{background-color:#bcbcbc}:host .step{position:relative;display:flex;flex-direction:column;width:120px;align-items:center;flex-shrink:0;flex-grow:1}:host .step:hover{cursor:pointer}:host .step:not(.step-setup) .step-wrapper{width:100%}:host .step:not(.step-setup):first-child .step-wrapper,:host .step:not(.step-setup):first-child .step-point,:host .step:not(.step-setup):first-child .step-label,:host .step:not(.step-setup):first-child .step-progress{margin-left:8px}:host .step:not(.step-setup):first-child .only-one-step{left:0!important;margin-left:25px}:host .step-point{display:flex;justify-content:center;width:100%;height:38px;position:relative;align-items:center}:host .step-point .ellipse{width:38px;height:38px;position:absolute;border-radius:50px;border-color:#579bf2;border-style:solid;border-width:2px;background:white;display:flex;justify-content:center;align-items:center;z-index:2}:host .step-point .pointer{width:24px;height:24px;position:absolute;z-index:4;border-radius:20px;display:flex;align-items:center;justify-content:center;font-weight:bold;font-size:16px;line-height:1.4;color:#51566f}:host .step-point .pointer i{color:#fff;font-size:22px}:host .step-point .pointer.blue{background:#579BF2}:host .step-point .pointer.completed{background-color:#151b3f}:host .step-point .pointer.uncompleted{background-color:#e5e5e5}:host .step-point .pointer.active-uncompleted{background-color:#2969b0}:host .step-point .pointer.gray{background:#E5E6EA}:host .step-label{font-weight:normal;font-size:14px;line-height:1.5;color:#51566f;display:flex;justify-content:center;overflow:hidden;margin-top:3px;width:95%}:host .step-label span{white-space:nowrap;text-overflow:ellipsis;overflow:hidden}:host .step-label.active{font-weight:600}:host .step-label:last-child{margin-bottom:23px}:host .step-progress{margin-top:3px;font-style:normal;font-weight:normal;font-size:12px;line-height:1.4;display:flex;justify-content:center}:host .step-connector{background-color:#e5e5e5;height:2px}:host .step-connector.connector-grand{width:calc(100% - 25px)}:host .step-connector.connector-grand.only-one-step{width:calc(100% - 50px)}:host .step-connector .progress{background-color:#579bf2;height:2px;width:0}:host .step-connector--absolute{position:absolute;top:18px;width:100%;left:calc(100% / 2 + 12px)}:host .step-connector--inline{width:23px;margin-left:19px;margin-right:calc(19px - (38px - 24px) / 2)}:host .step-setup{width:auto}:host .step-setup .step-wrapper{display:flex;flex-direction:row;align-items:center;width:auto}:host .step-setup+.step-setup{margin-left:0}:host .step-setup .step-progress{display:none}:host .step-setup .step-label{position:relative;transform:none;align-items:center;justify-content:start;margin:0 0 0 5px;font-size:16px}:host .step-setup .step-point{width:38px;height:38px}:host .step-setup .step-point .ellipse{width:24px;height:24px}:host .step-setup .step-point .pointer{width:24px;height:24px}:host .step-setup .step-point .pointer.with-ellipse{width:14px;height:14px}:host .step-setup .step-point .pointer i{font-size:22px}:host .step-setup .step-point .pointer .text{font-size:16px}::ng-deep .step-tooltip{max-width:250px;font-size:14px;line-height:22px;padding:10px 12px}::ng-deep .step-tooltip_name{font-weight:700;overflow:hidden;text-overflow:ellipsis}@media screen and (min-width: 1367px){.stepper .step-label{font-size:14px}}\n"]
|
|
41
|
-
},] }
|
|
42
|
-
];
|
|
43
|
-
StepperComponent.ctorParameters = () => [];
|
|
44
|
-
StepperComponent.propDecorators = {
|
|
45
|
-
steps: [{ type: Input }],
|
|
46
|
-
currentStep: [{ type: Input }],
|
|
47
|
-
withoutConnectors: [{ type: Input }],
|
|
48
|
-
hiddenNames: [{ type: Input }],
|
|
49
|
-
inlineLabels: [{ type: Input }],
|
|
50
|
-
disabled: [{ type: Input }],
|
|
51
|
-
hiddenIndex: [{ type: Input }],
|
|
52
|
-
stepChange: [{ type: Output }],
|
|
53
|
-
stepper: [{ type: ViewChild, args: ['stepper', { read: ElementRef },] }]
|
|
54
|
-
};
|
|
55
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcHBlci5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kYXRhcmFpbHNzaGFyZWQvc3JjL2xpYi9zdGVwcGVyL3N0ZXBwZXIuY29tcG9uZW50LnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFDSCx1QkFBdUIsRUFDdkIsU0FBUyxFQUNULFVBQVUsRUFDVixZQUFZLEVBQ1osS0FBSyxFQUNMLE1BQU0sRUFDTixTQUFTLEVBQ1osTUFBTSxlQUFlLENBQUM7QUFTdkIsTUFBTSxPQUFPLGdCQUFnQjtJQVl6QjtRQVJTLHNCQUFpQixHQUFHLEtBQUssQ0FBQztRQUMxQixnQkFBVyxHQUFHLEtBQUssQ0FBQztRQUNwQixpQkFBWSxHQUFHLEtBQUssQ0FBQztRQUNyQixhQUFRLEdBQUcsS0FBSyxDQUFDO1FBQ2pCLGdCQUFXLEdBQUcsS0FBSyxDQUFDO1FBQ25CLGVBQVUsR0FBdUIsSUFBSSxZQUFZLEVBQVEsQ0FBQztJQUlwRSxDQUFDO0lBRUQsVUFBVSxDQUFDLElBQVU7UUFDakIsSUFBSSxJQUFJLEtBQUssSUF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2h0KCk6IHZvaWQge1xuICAgICAgICB0aGlzLnN0ZXBwZXIubmF0aXZlRWxlbWVudC5zY3JvbGxMZWZ0ICs9IDgwO1xuICAgIH1cblxuICAgIHB1YmxpYyByb3VuZFdpZHRoKHdpZHRoOiBudW1iZXIpOiBudW1iZXIge1xuICAgICAgICByZXR1cm4gTWF0aC5yb3VuZCh3aWR0aCk7XG4gICAgfVxufVxuIl19
|
|
@@ -1,17 +0,0 @@
|
|
|
1
|
-
import { NgModule } from '@angular/core';
|
|
2
|
-
import { CommonModule } from '@angular/common';
|
|
3
|
-
import { StepperComponent } from './stepper.component';
|
|
4
|
-
import { DrTooltipModule } from '../dr-tooltip/dr-tooltip.module';
|
|
5
|
-
export class StepperModule {
|
|
6
|
-
}
|
|
7
|
-
StepperModule.decorators = [
|
|
8
|
-
{ type: NgModule, args: [{
|
|
9
|
-
declarations: [StepperComponent],
|
|
10
|
-
imports: [
|
|
11
|
-
CommonModule,
|
|
12
|
-
DrTooltipModule
|
|
13
|
-
],
|
|
14
|
-
exports: [StepperComponent]
|
|
15
|
-
},] }
|
|
16
|
-
];
|
|
17
|
-
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoic3RlcHBlci5tb2R1bGUuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi8uLi9wcm9qZWN0cy9kYXRhcmFpbHNzaGFyZWQvc3JjL2xpYi9zdGVwcGVyL3N0ZXBwZXIubW9kdWxlLnRzIl0sIm5hbWVzIjpbXSwibWFwcGluZ3MiOiJBQUFBLE9BQU8sRUFBRSxRQUFRLEVBQUUsTUFBTSxlQUFlLENBQUM7QUFDekMsT0FBTyxFQUFFLFlBQVksRUFBRSxNQUFNLGlCQUFpQixDQUFDO0FBQy9DLE9BQU8sRUFBRSxnQkFBZ0IsRUFBRSxNQUFNLHFCQUFxQixDQUFDO0FBQ3ZELE9BQU8sRUFBRSxlQUFlLEVBQUUsTUFBTSxpQ0FBaUMsQ0FBQztBQVVsRSxNQUFNLE9BQU8sYUFBYTs7O1lBUnpCLFFBQVEsU0FBQztnQkFDUixZQUFZLEVBQUUsQ0FBQyxnQkFBZ0IsQ0FBQztnQkFDaEMsT0FBTyxFQUFFO29CQUNQLFlBQVk7b0JBQ1osZUFBZTtpQkFDaEI7Z0JBQ0QsT0FBTyxFQUFFLENBQUMsZ0JBQWdCLENBQUM7YUFDNUIiLCJzb3VyY2VzQ29udGVudCI6WyJpbXBvcnQgeyBOZ01vZHVsZSB9IGZyb20gJ0Bhbmd1bGFyL2NvcmUnO1xuaW1wb3J0IHsgQ29tbW9uTW9kdWxlIH0gZnJvbSAnQGFuZ3VsYXIvY29tbW9uJztcbmltcG9ydCB7IFN0ZXBwZXJDb21wb25lbnQgfSBmcm9tICcuL3N0ZXBwZXIuY29tcG9uZW50JztcbmltcG9ydCB7IERyVG9vbHRpcE1vZHVsZSB9IGZyb20gJy4uL2RyLXRvb2x0aXAvZHItdG9vbHRpcC5tb2R1bGUnO1xuXG5ATmdNb2R1bGUoe1xuICBkZWNsYXJhdGlvbnM6IFtTdGVwcGVyQ29tcG9uZW50XSxcbiAgaW1wb3J0czogW1xuICAgIENvbW1vbk1vZHVsZSxcbiAgICBEclRvb2x0aXBNb2R1bGVcbiAgXSxcbiAgZXhwb3J0czogW1N0ZXBwZXJDb21wb25lbnRdXG59KVxuZXhwb3J0IGNsYXNzIFN0ZXBwZXJNb2R1bGUgeyB9XG4iXX0=
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
import { ElementRef, EventEmitter } from '@angular/core';
|
|
2
|
-
import { Step } from './interfaces/stepper';
|
|
3
|
-
export declare class StepperComponent {
|
|
4
|
-
steps: Step[];
|
|
5
|
-
currentStep: Step;
|
|
6
|
-
withoutConnectors: boolean;
|
|
7
|
-
hiddenNames: boolean;
|
|
8
|
-
inlineLabels: boolean;
|
|
9
|
-
disabled: boolean;
|
|
10
|
-
hiddenIndex: boolean;
|
|
11
|
-
stepChange: EventEmitter<Step>;
|
|
12
|
-
stepper: ElementRef<any>;
|
|
13
|
-
constructor();
|
|
14
|
-
selectStep(step: Step): void;
|
|
15
|
-
getWidth(step: Step): string;
|
|
16
|
-
scrollLeft(): void;
|
|
17
|
-
scrollRight(): void;
|
|
18
|
-
roundWidth(width: number): number;
|
|
19
|
-
}
|