survey-angular-ui 2.5.46 → 2.5.48
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 +14 -6
- package/bundles/survey-angular-ui.umd.js.map +1 -1
- package/esm2015/components/progress/buttons/progress.component.js +2 -2
- package/esm2015/panel.component.js +2 -2
- package/esm2015/survey-content.component.js +3 -4
- package/fesm2015/survey-angular-ui.js +4 -5
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +2 -2
|
@@ -493,8 +493,17 @@
|
|
|
493
493
|
}
|
|
494
494
|
return next();
|
|
495
495
|
}
|
|
496
|
-
function __rewriteRelativeImportExtension(path, preserveJsx) {
|
|
496
|
+
function __rewriteRelativeImportExtension(path, preserveJsx, extraExtensions, ignoreCase) {
|
|
497
497
|
if (typeof path === "string" && /^\.\.?\//.test(path)) {
|
|
498
|
+
if (extraExtensions) {
|
|
499
|
+
for (var extension in extraExtensions) {
|
|
500
|
+
var suffix = path.slice(-extension.length);
|
|
501
|
+
if (suffix === extension || ignoreCase && suffix.toLowerCase() === extension.toLowerCase()) {
|
|
502
|
+
var output = extraExtensions[extension];
|
|
503
|
+
return output === extension ? path : path.slice(0, -extension.length) + output;
|
|
504
|
+
}
|
|
505
|
+
}
|
|
506
|
+
}
|
|
498
507
|
return path.replace(/\.(tsx)$|((?:\.d)?)((?:\.[^./]+?)?)\.([cm]?)ts$/i, function (m, tsx, d, ext, cm) {
|
|
499
508
|
return tsx ? preserveJsx ? ".jsx" : ".js" : d && (!ext || !cm) ? m : (d + ext + "." + cm.toLowerCase() + "js");
|
|
500
509
|
});
|
|
@@ -1438,7 +1447,7 @@
|
|
|
1438
1447
|
SurveyContentComponent.prototype.onModelChanged = function () {
|
|
1439
1448
|
var _this = this;
|
|
1440
1449
|
if (!!this.previousModel) {
|
|
1441
|
-
this.previousModel.
|
|
1450
|
+
this.previousModel.beforeDestroySurveyElement();
|
|
1442
1451
|
this.previousModel.renderCallback = undefined;
|
|
1443
1452
|
}
|
|
1444
1453
|
if (!!this.model) {
|
|
@@ -1451,8 +1460,7 @@
|
|
|
1451
1460
|
SurveyContentComponent.prototype.ngOnDestroy = function () {
|
|
1452
1461
|
_super.prototype.ngOnDestroy.call(this);
|
|
1453
1462
|
if (!!this.model) {
|
|
1454
|
-
this.model.
|
|
1455
|
-
this.model.destroyResizeObserver();
|
|
1463
|
+
this.model.beforeDestroySurveyElement();
|
|
1456
1464
|
this.model.renderCallback = undefined;
|
|
1457
1465
|
}
|
|
1458
1466
|
};
|
|
@@ -3432,7 +3440,7 @@
|
|
|
3432
3440
|
};
|
|
3433
3441
|
Object.defineProperty(PanelComponent.prototype, "canRender", {
|
|
3434
3442
|
get: function () {
|
|
3435
|
-
return this.model && this.model.survey && this.model.
|
|
3443
|
+
return this.model && this.model.survey && this.model.renderedIsContentVisible;
|
|
3436
3444
|
},
|
|
3437
3445
|
enumerable: false,
|
|
3438
3446
|
configurable: true
|
|
@@ -4109,7 +4117,7 @@
|
|
|
4109
4117
|
return ProgressButtonsComponent;
|
|
4110
4118
|
}(BaseAngular));
|
|
4111
4119
|
ProgressButtonsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProgressButtonsComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4112
|
-
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 }], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div [class]=\"model.getRootCss(container)\" [style.maxWidth]=\"model.progressWidth\" [style.--sd-progress-buttons-pages-count]=\"model.visiblePages.length\"\nrole=\"progressbar\" aria-valuemin=\"0\" aria-valuemax=\"100\" [attr.aria-label]=\"model.progressBarAriaLabel\"\n>\n <div *ngIf=\"canShowHeader\" [class]=\"survey.css.progressButtonsHeader\">\n <div [class]=\"survey.css.progressButtonsPageTitle\" [title]=\"model.
|
|
4120
|
+
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 }], usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div [class]=\"model.getRootCss(container)\" [style.maxWidth]=\"model.progressWidth\" [style.--sd-progress-buttons-pages-count]=\"model.visiblePages.length\"\nrole=\"progressbar\" aria-valuemin=\"0\" aria-valuemax=\"100\" [attr.aria-label]=\"model.progressBarAriaLabel\"\n>\n <div *ngIf=\"canShowHeader\" [class]=\"survey.css.progressButtonsHeader\">\n <div [class]=\"survey.css.progressButtonsPageTitle\" [title]=\"model.headerTitle\"><sv-ng-string *ngIf=\"survey.currentPage\" [model]=\"survey.currentPage.locNavigationTitle\"></sv-ng-string></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 model.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]=\"model.getItemTitle(page)\"\n >\n <sv-ng-string [model]=\"page.locNavigationTitle\"></sv-ng-string>\n </div>\n <div *ngIf=\"canShowItemTitles\"\n [class]=\"survey.css.progressButtonsPageDescription\"\n [title]=\"page.navigationDescription\"\n >\n {{ page.navigationDescription }}\n </div>\n <div [class]=\"survey.css.progressButtonsButton\"><div [class]=\"survey.css.progressButtonsButtonBackground\"></div><div [class]=\"survey.css.progressButtonsButtonContent\"></div><span>{{model.getItemNumber(page)}}</span></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>", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }] });
|
|
4113
4121
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ProgressButtonsComponent, decorators: [{
|
|
4114
4122
|
type: i0.Component,
|
|
4115
4123
|
args: [{
|