survey-angular-ui 1.9.127 → 1.9.128
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/survey-angular-ui.umd.js +28 -32
- package/bundles/survey-angular-ui.umd.js.map +1 -1
- package/components/progress/buttons/progress.component.d.ts +14 -12
- package/esm2015/components/progress/buttons/progress.component.js +30 -33
- package/fesm2015/survey-angular-ui.js +29 -32
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +1 -1
|
@@ -3336,28 +3336,27 @@
|
|
|
3336
3336
|
function ProgressButtonsComponent(changeDetectorRef) {
|
|
3337
3337
|
this.changeDetectorRef = changeDetectorRef;
|
|
3338
3338
|
this.hasScroller = false;
|
|
3339
|
-
this.
|
|
3339
|
+
this.canShowHeader = false;
|
|
3340
|
+
this.canShowFooter = false;
|
|
3341
|
+
this.canShowItemTitles = true;
|
|
3340
3342
|
}
|
|
3341
|
-
ProgressButtonsComponent.prototype.
|
|
3342
|
-
this.
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
this.createProgressButtonsModel();
|
|
3346
|
-
};
|
|
3347
|
-
ProgressButtonsComponent.prototype.ngOnChanges = function (changes) {
|
|
3348
|
-
this.createProgressButtonsModel();
|
|
3343
|
+
ProgressButtonsComponent.prototype.onResize = function (canShowItemTitles) {
|
|
3344
|
+
this.canShowItemTitles = canShowItemTitles;
|
|
3345
|
+
this.canShowHeader = !this.canShowItemTitles;
|
|
3346
|
+
this.changeDetectorRef.detectChanges();
|
|
3349
3347
|
};
|
|
3350
|
-
ProgressButtonsComponent.prototype.
|
|
3351
|
-
|
|
3348
|
+
ProgressButtonsComponent.prototype.onUpdateScroller = function (hasScroller) {
|
|
3349
|
+
this.hasScroller = hasScroller;
|
|
3350
|
+
this.changeDetectorRef.detectChanges();
|
|
3352
3351
|
};
|
|
3353
|
-
ProgressButtonsComponent.prototype.
|
|
3354
|
-
|
|
3352
|
+
ProgressButtonsComponent.prototype.onUpdateSettings = function () {
|
|
3353
|
+
this.canShowItemTitles = this.model.showItemTitles;
|
|
3354
|
+
this.canShowFooter = !this.model.showItemTitles;
|
|
3355
|
+
this.changeDetectorRef.detectChanges();
|
|
3355
3356
|
};
|
|
3356
|
-
ProgressButtonsComponent.prototype.
|
|
3357
|
-
this.progressButtonsModel.clickListElement(index);
|
|
3357
|
+
ProgressButtonsComponent.prototype.ngOnInit = function () {
|
|
3358
3358
|
};
|
|
3359
|
-
ProgressButtonsComponent.prototype.
|
|
3360
|
-
return this.progressButtonsModel.getScrollButtonCss(this.hasScroller, isLeftScroll);
|
|
3359
|
+
ProgressButtonsComponent.prototype.ngOnChanges = function (changes) {
|
|
3361
3360
|
};
|
|
3362
3361
|
ProgressButtonsComponent.prototype.clickScrollButton = function (isLeftScroll) {
|
|
3363
3362
|
if (this.progressButtonsListContainer) {
|
|
@@ -3365,27 +3364,20 @@
|
|
|
3365
3364
|
}
|
|
3366
3365
|
};
|
|
3367
3366
|
ProgressButtonsComponent.prototype.ngAfterViewInit = function () {
|
|
3368
|
-
var
|
|
3369
|
-
this.
|
|
3370
|
-
|
|
3371
|
-
|
|
3372
|
-
|
|
3373
|
-
var listContainerElement = _this.progressButtonsListContainer.nativeElement;
|
|
3374
|
-
_this.hasScroller = listContainerElement.scrollWidth > listContainerElement.offsetWidth;
|
|
3375
|
-
_this.changeDetectorRef.detectChanges();
|
|
3376
|
-
}
|
|
3377
|
-
}, 100);
|
|
3367
|
+
var _a;
|
|
3368
|
+
if (!!((_a = this.progressButtonsListContainer) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
3369
|
+
var element = this.progressButtonsListContainer.nativeElement;
|
|
3370
|
+
this.respManager = new Survey.ProgressButtonsResponsivityManager(this.model, element, this);
|
|
3371
|
+
}
|
|
3378
3372
|
};
|
|
3379
3373
|
ProgressButtonsComponent.prototype.ngOnDestroy = function () {
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
this.updateScroller = undefined;
|
|
3383
|
-
}
|
|
3374
|
+
var _a;
|
|
3375
|
+
(_a = this.respManager) === null || _a === void 0 ? void 0 : _a.dispose();
|
|
3384
3376
|
};
|
|
3385
3377
|
return ProgressButtonsComponent;
|
|
3386
3378
|
}());
|
|
3387
3379
|
ProgressButtonsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProgressButtonsComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3388
|
-
ProgressButtonsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ProgressButtonsComponent, selector: "sv-ng-progress-buttons", inputs: { model: "model" }, viewQueries: [{ propertyName: "progressButtonsListContainer", first: true, predicate: ["progressButtonsListContainer"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div [class]=\"model.css.
|
|
3380
|
+
ProgressButtonsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ProgressButtonsComponent, selector: "sv-ng-progress-buttons", inputs: { model: "model", survey: "survey", container: "container" }, viewQueries: [{ propertyName: "progressButtonsListContainer", first: true, predicate: ["progressButtonsListContainer"], descendants: true }], usesOnChanges: true, ngImport: i0__namespace, template: "<div [class]=\"model.getRootCss(container)\" role=\"progressbar\" aria-valuemin=\"0\" aria-valuemax=\"100\" aria-label=\"progress\">\n <div *ngIf=\"canShowHeader\" [class]=\"survey.css.progressButtonsHeader\">\n <div [class]=\"survey.css.progressButtonsPageTitle\" [title]=\"model.headerText\">{{ model.headerText }}</div>\n </div>\n <div [class]=\"survey.css.progressButtonsContainer\">\n <div\n [class]=\"model.getScrollButtonCss(hasScroller, true)\"\n (click)=\"clickScrollButton(true)\"\n role=\"button\"\n ></div>\n <div\n [class]=\"survey.css.progressButtonsListContainer\" #progressButtonsListContainer>\n <ul [class]=\"survey.css.progressButtonsList\">\n <li\n *ngFor=\"let page of survey.visiblePages; index as index\"\n [class]=\"model.getListElementCss(index)\"\n (click)=\"model.isListElementClickable(index) ? model.clickListElement(page) : null\"\n [attr.data-page-number]=\"model.getItemNumber(page)\">\n <div [class]=\"survey.css.progressButtonsConnector\"></div>\n <div *ngIf=\"canShowItemTitles\"\n [class]=\"survey.css.progressButtonsPageTitle\"\n [title]=\"page.renderedNavigationTitle\"\n >\n {{ page.renderedNavigationTitle }}\n </div>\n <div *ngIf=\"canShowItemTitles\"\n [class]=\"survey.css.progressButtonsPageDescription\"\n [title]=\"page.locNavigationDescription.renderedHtml\"\n >\n {{ page.locNavigationDescription.renderedHtml }}\n </div>\n </li>\n </ul>\n </div>\n <div\n [class]=\"model.getScrollButtonCss(hasScroller, false)\"\n (click)=\"clickScrollButton(false)\"\n role=\"button\"\n ></div>\n </div>\n <div *ngIf=\"canShowFooter\" [class]=\"survey.css.progressButtonsFooter\">\n <div [class]=\"survey.css.progressButtonsPageTitle\" [title]=\"model.footerText\">{{ model.footerText }}</div>\n </div>\n</div>", directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
3389
3381
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProgressButtonsComponent, decorators: [{
|
|
3390
3382
|
type: i0.Component,
|
|
3391
3383
|
args: [{
|
|
@@ -3394,6 +3386,10 @@
|
|
|
3394
3386
|
}]
|
|
3395
3387
|
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { model: [{
|
|
3396
3388
|
type: i0.Input
|
|
3389
|
+
}], survey: [{
|
|
3390
|
+
type: i0.Input
|
|
3391
|
+
}], container: [{
|
|
3392
|
+
type: i0.Input
|
|
3397
3393
|
}], progressButtonsListContainer: [{
|
|
3398
3394
|
type: i0.ViewChild,
|
|
3399
3395
|
args: ["progressButtonsListContainer"]
|