survey-angular-ui 2.3.8 → 2.3.10
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 +373 -366
- package/bundles/survey-angular-ui.umd.js.map +1 -1
- package/components/list/list-item.component.d.ts +2 -1
- package/components/slider/slider-label-item.component.d.ts +3 -3
- package/esm2015/components/list/list-item.component.js +10 -4
- package/esm2015/components/slider/slider-label-item.component.js +3 -2
- package/esm2015/page.component.js +5 -3
- package/esm2015/question.component.js +2 -2
- package/esm2015/questions/checkbox.component.js +2 -2
- package/esm2015/questions/matrixdynamic.component.js +2 -2
- package/esm2015/questions/matrixtable.component.js +2 -2
- package/esm2015/questions/radiogroup.component.js +2 -2
- package/esm2015/questions/selectbase-item.js +5 -4
- package/esm2015/questions/selectbase.component.js +2 -2
- package/esm2015/questions/signature.component.js +2 -2
- package/esm2015/survey-content.component.js +8 -9
- package/fesm2015/survey-angular-ui.js +263 -256
- package/fesm2015/survey-angular-ui.js.map +1 -1
- package/package.json +2 -2
- package/page.component.d.ts +1 -1
|
@@ -1355,253 +1355,6 @@
|
|
|
1355
1355
|
type: i0.Input
|
|
1356
1356
|
}] } });
|
|
1357
1357
|
|
|
1358
|
-
var ErrorsComponent = /** @class */ (function () {
|
|
1359
|
-
function ErrorsComponent() {
|
|
1360
|
-
}
|
|
1361
|
-
Object.defineProperty(ErrorsComponent.prototype, "id", {
|
|
1362
|
-
get: function () {
|
|
1363
|
-
return this.element.id + "_errors";
|
|
1364
|
-
},
|
|
1365
|
-
enumerable: false,
|
|
1366
|
-
configurable: true
|
|
1367
|
-
});
|
|
1368
|
-
Object.defineProperty(ErrorsComponent.prototype, "class", {
|
|
1369
|
-
get: function () {
|
|
1370
|
-
return this.element.cssError;
|
|
1371
|
-
},
|
|
1372
|
-
enumerable: false,
|
|
1373
|
-
configurable: true
|
|
1374
|
-
});
|
|
1375
|
-
return ErrorsComponent;
|
|
1376
|
-
}());
|
|
1377
|
-
ErrorsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ErrorsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1378
|
-
ErrorsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ErrorsComponent, selector: "'[sv-ng-errors]'", inputs: { element: "element", location: "location" }, host: { properties: { "id": "this.id", "class": "this.class" } }, ngImport: i0__namespace, template: "<ng-container *ngFor=\"let error of element.renderedErrors;\">\n <ng-template [component]=\"{ name: element.survey.questionErrorComponent, data: { element: element, cssClasses: element.cssClasses, error: error } }\"></ng-template>\n</ng-container>\n", directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1379
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ErrorsComponent, decorators: [{
|
|
1380
|
-
type: i0.Component,
|
|
1381
|
-
args: [{
|
|
1382
|
-
templateUrl: "./errors.component.html",
|
|
1383
|
-
selector: "'[sv-ng-errors]'"
|
|
1384
|
-
}]
|
|
1385
|
-
}], ctorParameters: function () { return []; }, propDecorators: { element: [{
|
|
1386
|
-
type: i0.Input
|
|
1387
|
-
}], location: [{
|
|
1388
|
-
type: i0.Input
|
|
1389
|
-
}], id: [{
|
|
1390
|
-
type: i0.HostBinding,
|
|
1391
|
-
args: ["id"]
|
|
1392
|
-
}], class: [{
|
|
1393
|
-
type: i0.HostBinding,
|
|
1394
|
-
args: ["class"]
|
|
1395
|
-
}] } });
|
|
1396
|
-
|
|
1397
|
-
var ElementComponent = /** @class */ (function (_super) {
|
|
1398
|
-
__extends(ElementComponent, _super);
|
|
1399
|
-
function ElementComponent() {
|
|
1400
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1401
|
-
}
|
|
1402
|
-
ElementComponent.prototype.getModel = function () {
|
|
1403
|
-
return this.model;
|
|
1404
|
-
};
|
|
1405
|
-
Object.defineProperty(ElementComponent.prototype, "elementComponentName", {
|
|
1406
|
-
get: function () {
|
|
1407
|
-
return this.model.isPanel ? "panel" : "question";
|
|
1408
|
-
},
|
|
1409
|
-
enumerable: false,
|
|
1410
|
-
configurable: true
|
|
1411
|
-
});
|
|
1412
|
-
ElementComponent.prototype.onModelChanged = function () {
|
|
1413
|
-
var _a;
|
|
1414
|
-
_super.prototype.onModelChanged.call(this);
|
|
1415
|
-
if (this.previousModel) {
|
|
1416
|
-
this.previousModel.setWrapperElement(undefined);
|
|
1417
|
-
}
|
|
1418
|
-
if (this.model && ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
1419
|
-
this.model.setWrapperElement(this.container.nativeElement);
|
|
1420
|
-
}
|
|
1421
|
-
};
|
|
1422
|
-
Object.defineProperty(ElementComponent.prototype, "componentName", {
|
|
1423
|
-
get: function () {
|
|
1424
|
-
var survey = this.surveyModel;
|
|
1425
|
-
if (!!survey) {
|
|
1426
|
-
var name = survey.getElementWrapperComponentName(this.model);
|
|
1427
|
-
if (!!name) {
|
|
1428
|
-
return name;
|
|
1429
|
-
}
|
|
1430
|
-
}
|
|
1431
|
-
return this.elementComponentName;
|
|
1432
|
-
},
|
|
1433
|
-
enumerable: false,
|
|
1434
|
-
configurable: true
|
|
1435
|
-
});
|
|
1436
|
-
Object.defineProperty(ElementComponent.prototype, "rootStyle", {
|
|
1437
|
-
get: function () {
|
|
1438
|
-
//use this if to check if cssClassses are calculated and allowRootStyle flag was set
|
|
1439
|
-
if (!!this.model.cssClasses) {
|
|
1440
|
-
return this.model.rootStyle;
|
|
1441
|
-
}
|
|
1442
|
-
else {
|
|
1443
|
-
return {};
|
|
1444
|
-
}
|
|
1445
|
-
},
|
|
1446
|
-
enumerable: false,
|
|
1447
|
-
configurable: true
|
|
1448
|
-
});
|
|
1449
|
-
Object.defineProperty(ElementComponent.prototype, "componentData", {
|
|
1450
|
-
get: function () {
|
|
1451
|
-
var survey = this.surveyModel;
|
|
1452
|
-
var data;
|
|
1453
|
-
if (!!survey) {
|
|
1454
|
-
data = survey.getElementWrapperComponentData(this.model);
|
|
1455
|
-
}
|
|
1456
|
-
return {
|
|
1457
|
-
componentName: this.elementComponentName,
|
|
1458
|
-
componentData: {
|
|
1459
|
-
model: this.model,
|
|
1460
|
-
data: data
|
|
1461
|
-
}
|
|
1462
|
-
};
|
|
1463
|
-
},
|
|
1464
|
-
enumerable: false,
|
|
1465
|
-
configurable: true
|
|
1466
|
-
});
|
|
1467
|
-
ElementComponent.prototype.ngAfterViewInit = function () {
|
|
1468
|
-
var _a;
|
|
1469
|
-
if (this.model && ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
1470
|
-
this.model.setWrapperElement(this.container.nativeElement);
|
|
1471
|
-
}
|
|
1472
|
-
};
|
|
1473
|
-
ElementComponent.prototype.ngOnDestroy = function () {
|
|
1474
|
-
_super.prototype.ngOnDestroy.call(this);
|
|
1475
|
-
this.model.setWrapperElement(undefined);
|
|
1476
|
-
};
|
|
1477
|
-
return ElementComponent;
|
|
1478
|
-
}(BaseAngular));
|
|
1479
|
-
ElementComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ElementComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1480
|
-
ElementComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ElementComponent, selector: "sv-ng-element", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"!!model\" [class]=\"model.cssClasses.questionWrapper\" [style]=\"rootStyle\" (focusin)=\"model.focusIn()\" #container>\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1481
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ElementComponent, decorators: [{
|
|
1482
|
-
type: i0.Component,
|
|
1483
|
-
args: [{
|
|
1484
|
-
selector: "sv-ng-element",
|
|
1485
|
-
templateUrl: "./element.component.html",
|
|
1486
|
-
styleUrls: ["./hide-host.scss"]
|
|
1487
|
-
}]
|
|
1488
|
-
}], propDecorators: { model: [{
|
|
1489
|
-
type: i0.Input
|
|
1490
|
-
}], container: [{
|
|
1491
|
-
type: i0.ViewChild,
|
|
1492
|
-
args: ["container", { static: false, read: i0.ElementRef }]
|
|
1493
|
-
}] } });
|
|
1494
|
-
|
|
1495
|
-
var RowComponent = /** @class */ (function (_super) {
|
|
1496
|
-
__extends(RowComponent, _super);
|
|
1497
|
-
function RowComponent(cdr, vcr, ngZone) {
|
|
1498
|
-
var _this = _super.call(this, cdr, vcr) || this;
|
|
1499
|
-
_this.ngZone = ngZone;
|
|
1500
|
-
return _this;
|
|
1501
|
-
}
|
|
1502
|
-
RowComponent.prototype.getModel = function () {
|
|
1503
|
-
return this.row;
|
|
1504
|
-
};
|
|
1505
|
-
RowComponent.prototype.trackElementBy = function (index, element) {
|
|
1506
|
-
return element.name + index;
|
|
1507
|
-
};
|
|
1508
|
-
RowComponent.prototype.ngAfterViewInit = function () {
|
|
1509
|
-
var _this = this;
|
|
1510
|
-
var _a;
|
|
1511
|
-
var el = (_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
1512
|
-
if (!!el) {
|
|
1513
|
-
this.row.setRootElement(el);
|
|
1514
|
-
if (!this.row.isNeedRender) {
|
|
1515
|
-
this.ngZone.runOutsideAngular(function () {
|
|
1516
|
-
_this.lazyRenderingTimeout = setTimeout(function () {
|
|
1517
|
-
_this.row.startLazyRendering(el);
|
|
1518
|
-
}, 10);
|
|
1519
|
-
});
|
|
1520
|
-
}
|
|
1521
|
-
}
|
|
1522
|
-
};
|
|
1523
|
-
RowComponent.prototype.onModelChanged = function () {
|
|
1524
|
-
var _a;
|
|
1525
|
-
_super.prototype.onModelChanged.call(this);
|
|
1526
|
-
if (!this.previousModel) {
|
|
1527
|
-
return;
|
|
1528
|
-
}
|
|
1529
|
-
else {
|
|
1530
|
-
this.previousModel.setRootElement(undefined);
|
|
1531
|
-
if ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement) {
|
|
1532
|
-
this.row.setRootElement(this.container.nativeElement);
|
|
1533
|
-
}
|
|
1534
|
-
this.row.isNeedRender = this.previousModel.isNeedRender;
|
|
1535
|
-
this.stopLazyRendering();
|
|
1536
|
-
}
|
|
1537
|
-
};
|
|
1538
|
-
RowComponent.prototype.stopLazyRendering = function () {
|
|
1539
|
-
clearTimeout(this.lazyRenderingTimeout);
|
|
1540
|
-
this.row.stopLazyRendering();
|
|
1541
|
-
this.row.isNeedRender = !this.row.isLazyRendering();
|
|
1542
|
-
};
|
|
1543
|
-
RowComponent.prototype.ngOnDestroy = function () {
|
|
1544
|
-
_super.prototype.ngOnDestroy.call(this);
|
|
1545
|
-
if (!this.isBaseElementSubsribed(this.row)) {
|
|
1546
|
-
this.row.setRootElement(undefined);
|
|
1547
|
-
this.stopLazyRendering();
|
|
1548
|
-
}
|
|
1549
|
-
};
|
|
1550
|
-
return RowComponent;
|
|
1551
|
-
}(BaseAngular));
|
|
1552
|
-
RowComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RowComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ViewContainerRef }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1553
|
-
RowComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: RowComponent, selector: "sv-ng-row", inputs: { row: "row" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"row.getRowCss()\" #container>\n <ng-container *ngFor=\"let element of row.visibleElements; trackBy: trackElementBy\">\n <sv-ng-element [model]=\"$any(element)\" *ngIf=\"row.isNeedRender\"></sv-ng-element>\n <ng-template *ngIf=\"!row.isNeedRender && element.skeletonComponentName\" [component]=\"{ name: element.skeletonComponentName, data: { element: element } }\"></ng-template>\n </ng-container>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: ElementComponent, selector: "sv-ng-element", inputs: ["model"] }], directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1554
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RowComponent, decorators: [{
|
|
1555
|
-
type: i0.Component,
|
|
1556
|
-
args: [{
|
|
1557
|
-
selector: "sv-ng-row",
|
|
1558
|
-
templateUrl: "./row.component.html",
|
|
1559
|
-
styleUrls: ["./hide-host.scss"]
|
|
1560
|
-
}]
|
|
1561
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ViewContainerRef }, { type: i0__namespace.NgZone }]; }, propDecorators: { row: [{
|
|
1562
|
-
type: i0.Input
|
|
1563
|
-
}], container: [{
|
|
1564
|
-
type: i0.ViewChild,
|
|
1565
|
-
args: ["container", { read: i0.ElementRef }]
|
|
1566
|
-
}] } });
|
|
1567
|
-
|
|
1568
|
-
var PageComponent = /** @class */ (function (_super) {
|
|
1569
|
-
__extends(PageComponent, _super);
|
|
1570
|
-
function PageComponent() {
|
|
1571
|
-
return _super !== null && _super.apply(this, arguments) || this;
|
|
1572
|
-
}
|
|
1573
|
-
PageComponent.prototype.getModel = function () {
|
|
1574
|
-
return this.model;
|
|
1575
|
-
};
|
|
1576
|
-
PageComponent.prototype.onModelChanged = function () {
|
|
1577
|
-
if (!!this.pageContainerRef && this.pageContainerRef.nativeElement) {
|
|
1578
|
-
this.model.survey.afterRenderPage(this.pageContainerRef.nativeElement);
|
|
1579
|
-
}
|
|
1580
|
-
};
|
|
1581
|
-
PageComponent.prototype.ngAfterViewInit = function () {
|
|
1582
|
-
var _a, _b;
|
|
1583
|
-
(_a = this.model.survey) === null || _a === void 0 ? void 0 : _a.afterRenderPage((_b = this.pageContainerRef) === null || _b === void 0 ? void 0 : _b.nativeElement);
|
|
1584
|
-
};
|
|
1585
|
-
return PageComponent;
|
|
1586
|
-
}(BaseAngular));
|
|
1587
|
-
PageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1588
|
-
PageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PageComponent, selector: "page, sv-ng-page", inputs: { model: "model", survey: "survey" }, viewQueries: [{ propertyName: "pageContainerRef", first: true, predicate: ["pageContainer"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <ng-container *ngIf=\"!!this.survey && !!this.model && this.model.isVisible && !!this.model.survey\">\n <div [class]=\"model.cssRoot\" #pageContainer>\n <sv-ng-element-title [element]=\"model\"></sv-ng-element-title>\n <div *ngIf=\"model._showDescription\" [class]=\"model.cssClasses.page?.description\">\n <sv-ng-string [model]=\"model.locDescription\"></sv-ng-string>\n </div>\n <div *ngIf=\"model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n <ng-container *ngFor=\"let row of model.visibleRows\">\n <ng-template [component]=\"{ name: $any(model.survey).getRowWrapperComponentName(row), data: { componentData: $any(model.survey).getRowWrapperComponentData(row) } }\">\n <sv-ng-row [row]=\"row\"></sv-ng-row>\n </ng-template>\n </ng-container>\n </div>\n </ng-container> \n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: ElementTitleComponent, selector: "sv-ng-element-title", inputs: ["element"] }, { type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: ErrorsComponent, selector: "'[sv-ng-errors]'", inputs: ["element", "location"] }, { type: RowComponent, selector: "sv-ng-row", inputs: ["row"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1589
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageComponent, decorators: [{
|
|
1590
|
-
type: i0.Component,
|
|
1591
|
-
args: [{
|
|
1592
|
-
selector: "page, sv-ng-page",
|
|
1593
|
-
templateUrl: "./page.component.html",
|
|
1594
|
-
styleUrls: ["./hide-host.scss"]
|
|
1595
|
-
}]
|
|
1596
|
-
}], propDecorators: { model: [{
|
|
1597
|
-
type: i0.Input
|
|
1598
|
-
}], survey: [{
|
|
1599
|
-
type: i0.Input
|
|
1600
|
-
}], pageContainerRef: [{
|
|
1601
|
-
type: i0.ViewChild,
|
|
1602
|
-
args: ["pageContainer", { static: false, read: i0.ElementRef }]
|
|
1603
|
-
}] } });
|
|
1604
|
-
|
|
1605
1358
|
var BrandInfoComponent = /** @class */ (function () {
|
|
1606
1359
|
function BrandInfoComponent() {
|
|
1607
1360
|
}
|
|
@@ -1705,7 +1458,7 @@
|
|
|
1705
1458
|
return SurveyContentComponent;
|
|
1706
1459
|
}(BaseAngular));
|
|
1707
1460
|
SurveyContentComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyContentComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1708
|
-
SurveyContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SurveyContentComponent, selector: "survey-content", inputs: { model: "model" }, viewQueries: [{ propertyName: "rootEl", first: true, predicate: ["surveyContainer"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div #surveyContainer *ngIf=\"!!model\" [class]=\"model.getRootCss()\" [style]=\"model.themeVariables\" [lang]=\"model.locale || 'en'\" [dir]=\"model.localeDir\">\n <sv-scroll [disabled]=\"model.rootScrollDisabled\">\n <sv-svg-bundle *ngIf=\"model.needRenderIcons\"></sv-svg-bundle>\n <div [class]=\"model.wrapperFormCss\">\n <div *ngIf=\"!!model.renderBackgroundImage\" [class]=\"model.css.rootBackgroundImage\" [style]=\"model.backgroundImageStyle\"></div>\n <form onsubmit=\"return false;\">\n <sv-scroll [disabled]=\"model.formScrollDisabled\">\n <div class=\"sv_custom_header\" [hidden]=\"model.hasLogo\"></div>\n <div [class]=\"model.css.container\">\n <div *ngIf=\"model.headerView === 'basic' && model.renderedHasHeader\" [class]=\"model.css.header\" [survey]=\"model\" sv-ng-survey-header></div>\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'header', needRenderWrapper: false } }\"></ng-template>\n <div *ngIf=\"model.isShowingPage\" [class]=\"model.bodyContainerCss\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'left' } }\"></ng-template>\n <div class=\"sv-components-column sv-components-column--expandable\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'center' } }\"></ng-template>\n <div [class]=\"model.bodyCss\" [style.maxWidth]=\"model.renderedWidth\" [id]=\"model.activePage ? model.activePage.id : ''\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'contentTop' } }\"></ng-template>\n
|
|
1461
|
+
SurveyContentComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SurveyContentComponent, selector: "survey-content", inputs: { model: "model" }, viewQueries: [{ propertyName: "rootEl", first: true, predicate: ["surveyContainer"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div #surveyContainer *ngIf=\"!!model\" [class]=\"model.getRootCss()\" [style]=\"model.themeVariables\" [lang]=\"model.locale || 'en'\" [dir]=\"model.localeDir\">\n <sv-scroll [disabled]=\"model.rootScrollDisabled\">\n <sv-svg-bundle *ngIf=\"model.needRenderIcons\"></sv-svg-bundle>\n <div [class]=\"model.wrapperFormCss\">\n <div *ngIf=\"!!model.renderBackgroundImage\" [class]=\"model.css.rootBackgroundImage\" [style]=\"model.backgroundImageStyle\"></div>\n <form onsubmit=\"return false;\">\n <sv-scroll [disabled]=\"model.formScrollDisabled\">\n <div class=\"sv_custom_header\" [hidden]=\"model.hasLogo\"></div>\n <div [class]=\"model.css.container\">\n <div *ngIf=\"model.headerView === 'basic' && model.renderedHasHeader\" [class]=\"model.css.header\" [survey]=\"model\" sv-ng-survey-header></div>\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'header', needRenderWrapper: false } }\"></ng-template>\n <div *ngIf=\"model.isShowingPage\" [class]=\"model.bodyContainerCss\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'left' } }\"></ng-template>\n <div class=\"sv-components-column sv-components-column--expandable\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'center' } }\"></ng-template>\n <div [class]=\"model.bodyCss\" [style.maxWidth]=\"model.renderedWidth\" [id]=\"model.activePage ? model.activePage.id : ''\">\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'contentTop' } }\"></ng-template>\n <ng-container *ngIf=\"model.activePage\">\n <!-- <sv-ng-page [model]=\"model.activePage\" [survey]=\"model\"></sv-ng-page> -->\n <ng-template [component]=\"{ name: model.pageComponent || 'sv-page', data: { model: model.activePage, survey: model } }\"></ng-template>\n </ng-container>\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'contentBottom' } }\"></ng-template>\n <sv-brand-info *ngIf=\"model.showBrandInfo\"></sv-brand-info>\n </div>\n </div>\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'right' } }\"></ng-template>\n </div>\n <ng-template [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'footer', needRenderWrapper: false } }\"></ng-template>\n <div *ngIf=\"model.state === 'completed' && model.showCompletedPage\" [class]=\"model.completedCss\"\n [innerHtml]=\"model.processedCompletedHtml | safeHtml\"></div>\n <ng-template *ngIf=\"model.state === 'completed' && model.showCompletedPage\" [component]=\"{ name: 'sv-components-container', data: { survey: model, container: 'completePage' } }\"></ng-template>\n <div *ngIf=\"model.state === 'completedbefore'\" [class]=\"model.completedBeforeCss\"\n [innerHtml]=\"model.processedCompletedBeforeHtml | safeHtml\"></div>\n <div *ngIf=\"model.state === 'loading'\" [class]=\"model.loadingBodyCss\" [innerHtml]=\"model.processedLoadingHtml\"></div>\n <div *ngIf=\"model.state === 'empty'\" [class]=\"model.css.bodyEmpty\">{{model.emptySurveyText}}</div>\n </div>\n </sv-scroll>\n </form>\n <sv-notifier [notifier]=\"model.notifier\"></sv-notifier>\n </div>\n </sv-scroll>\n </div>\n</ng-template>", components: [{ type: ScrollComponent, selector: "sv-scroll", inputs: ["disabled", "onInnerHeightChanged"] }, { type: SvgBundleComponent, selector: "sv-svg-bundle" }, { type: SurveyHeaderComponent, selector: "'[sv-ng-survey-header]'", inputs: ["survey"] }, { type: BrandInfoComponent, selector: "sv-brand-info" }, { type: NotifierComponent, selector: "sv-notifier", inputs: ["notifier"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i4__namespace.ɵNgNoValidate, selector: "form:not([ngNoForm]):not([ngNativeValidate])" }, { type: i4__namespace.NgControlStatusGroup, selector: "[formGroupName],[formArrayName],[ngModelGroup],[formGroup],form:not([ngNoForm]),[ngForm]" }, { type: i4__namespace.NgForm, selector: "form:not([ngNoForm]):not([formGroup]),ng-form,[ngForm]", inputs: ["ngFormOptions"], outputs: ["ngSubmit"], exportAs: ["ngForm"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }], pipes: { "safeHtml": SafeHtmlPipe } });
|
|
1709
1462
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyContentComponent, decorators: [{
|
|
1710
1463
|
type: i0.Component,
|
|
1711
1464
|
args: [{
|
|
@@ -1736,97 +1489,345 @@
|
|
|
1736
1489
|
SurveyComponent.prototype.getShouldReattachChangeDetector = function () {
|
|
1737
1490
|
return false;
|
|
1738
1491
|
};
|
|
1739
|
-
SurveyComponent.prototype.onModelChanged = function () {
|
|
1740
|
-
this.changeDetectorRef.detectChanges();
|
|
1492
|
+
SurveyComponent.prototype.onModelChanged = function () {
|
|
1493
|
+
this.changeDetectorRef.detectChanges();
|
|
1494
|
+
};
|
|
1495
|
+
return SurveyComponent;
|
|
1496
|
+
}(BaseAngular));
|
|
1497
|
+
SurveyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1498
|
+
SurveyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SurveyComponent, selector: "survey", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<sv-ng-modal-container></sv-ng-modal-container><survey-content [model]='model'></survey-content>", isInline: true, components: [{ type: ModalComponent, selector: "sv-ng-modal-container" }, { type: SurveyContentComponent, selector: "survey-content", inputs: ["model"] }] });
|
|
1499
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyComponent, decorators: [{
|
|
1500
|
+
type: i0.Component,
|
|
1501
|
+
args: [{
|
|
1502
|
+
selector: "survey",
|
|
1503
|
+
template: "<sv-ng-modal-container></sv-ng-modal-container><survey-content [model]='model'></survey-content>"
|
|
1504
|
+
}]
|
|
1505
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { model: [{
|
|
1506
|
+
type: i0.Input
|
|
1507
|
+
}] } });
|
|
1508
|
+
|
|
1509
|
+
var PopupSurveyComponent = /** @class */ (function (_super) {
|
|
1510
|
+
__extends(PopupSurveyComponent, _super);
|
|
1511
|
+
function PopupSurveyComponent(changeDetectorRef) {
|
|
1512
|
+
var _this = _super.call(this, changeDetectorRef) || this;
|
|
1513
|
+
changeDetectorRef.detach();
|
|
1514
|
+
return _this;
|
|
1515
|
+
}
|
|
1516
|
+
PopupSurveyComponent.prototype.getModel = function () {
|
|
1517
|
+
return this.popup;
|
|
1518
|
+
};
|
|
1519
|
+
PopupSurveyComponent.prototype.getShouldReattachChangeDetector = function () {
|
|
1520
|
+
return false;
|
|
1521
|
+
};
|
|
1522
|
+
PopupSurveyComponent.prototype.getHeaderCss = function () {
|
|
1523
|
+
var headerCss = this.popup.cssHeaderRoot;
|
|
1524
|
+
if (this.popup.isCollapsed) {
|
|
1525
|
+
headerCss += " " + this.popup.cssRootCollapsedMod;
|
|
1526
|
+
}
|
|
1527
|
+
return headerCss;
|
|
1528
|
+
};
|
|
1529
|
+
PopupSurveyComponent.prototype.closeHandler = function () {
|
|
1530
|
+
this.popup.hide();
|
|
1531
|
+
if (!!this.onClose) {
|
|
1532
|
+
this.onClose();
|
|
1533
|
+
}
|
|
1534
|
+
};
|
|
1535
|
+
PopupSurveyComponent.prototype.ngOnChanges = function (changes) {
|
|
1536
|
+
var _a, _b;
|
|
1537
|
+
if (((_a = changes["model"]) === null || _a === void 0 ? void 0 : _a.currentValue) !== ((_b = changes["model"]) === null || _b === void 0 ? void 0 : _b.previousValue)) {
|
|
1538
|
+
this.popup = new Survey.PopupSurveyModel(null, this.model);
|
|
1539
|
+
}
|
|
1540
|
+
if (this.isExpanded !== undefined) {
|
|
1541
|
+
this.popup.isExpanded = this.isExpanded;
|
|
1542
|
+
}
|
|
1543
|
+
if (this.allowClose !== undefined) {
|
|
1544
|
+
this.popup.allowClose = this.allowClose;
|
|
1545
|
+
}
|
|
1546
|
+
if (this.allowFullScreen !== undefined) {
|
|
1547
|
+
this.popup.allowFullScreen = this.allowFullScreen;
|
|
1548
|
+
}
|
|
1549
|
+
if (this.closeOnCompleteTimeout !== undefined) {
|
|
1550
|
+
this.popup.closeOnCompleteTimeout = this.closeOnCompleteTimeout;
|
|
1551
|
+
}
|
|
1552
|
+
this.popup.isShowing = true;
|
|
1553
|
+
this.changeDetectorRef.detectChanges();
|
|
1554
|
+
};
|
|
1555
|
+
PopupSurveyComponent.prototype.ngOnDestroy = function () {
|
|
1556
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
1557
|
+
this.popup.dispose();
|
|
1558
|
+
};
|
|
1559
|
+
return PopupSurveyComponent;
|
|
1560
|
+
}(BaseAngular));
|
|
1561
|
+
PopupSurveyComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PopupSurveyComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1562
|
+
PopupSurveyComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PopupSurveyComponent, selector: "popup-survey", inputs: { model: "model", isExpanded: "isExpanded", allowClose: "allowClose", closeOnCompleteTimeout: "closeOnCompleteTimeout", allowFullScreen: "allowFullScreen", onClose: "onClose" }, usesInheritance: true, usesOnChanges: true, ngImport: i0__namespace, template: "<div *ngIf=\"!!popup && popup.isShowing\" [class]=\"popup.cssRoot\" [style.width]=\"popup.renderedWidth\" [style.maxWidth]=\"popup.renderedWidth\" (scroll)=\"popup.onScroll()\">\n <div [class]=\"popup.cssRootContent\">\n <div [class]=\"getHeaderCss()\">\n <div *ngIf=\"popup.isCollapsed && !!popup.locTitle\" [class]=\"popup.cssHeaderTitleCollapsed\">\n {{popup.locTitle.renderedHtml}}\n </div>\n <div [class]=\"popup.cssHeaderButtonsContainer\">\n <div *ngIf=\"popup.allowFullScreen\" [class]=\"popup.cssHeaderFullScreenButton\" (click)=\"popup.toggleFullScreen()\">\n <svg *ngIf=\"popup.isFullScreen\" [iconName]=\"'icon-back-to-panel_16x16'\" [size]=\"16\" sv-ng-svg-icon></svg>\n <svg *ngIf=\"!popup.isFullScreen\" [iconName]=\"'icon-full-screen_16x16'\" [size]=\"16\" sv-ng-svg-icon></svg>\n </div>\n\n <div [class]=\"popup.cssHeaderCollapseButton\" (click)=\"popup.changeExpandCollapse()\">\n <svg *ngIf=\"popup.isExpanded\" [iconName]=\"'icon-minimize_16x16'\" [size]=\"16\" sv-ng-svg-icon></svg>\n <svg *ngIf=\"popup.isCollapsed\" [iconName]=\"'icon-restore_16x16'\" [size]=\"16\" sv-ng-svg-icon></svg>\n </div>\n\n <div *ngIf=\"popup.allowClose\" [class]=\"popup.cssHeaderCloseButton\" (click)=\"closeHandler()\">\n <svg [iconName]=\"'icon-close_16x16'\" [size]=\"16\" sv-ng-svg-icon></svg>\n </div>\n </div>\n </div>\n <div [class]=\"popup.cssBody\">\n <survey [model]=\"popup.survey\"></survey>\n </div>\n </div>\n</div>", styles: [""], components: [{ type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: SurveyComponent, selector: "survey", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
1563
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PopupSurveyComponent, decorators: [{
|
|
1564
|
+
type: i0.Component,
|
|
1565
|
+
args: [{
|
|
1566
|
+
selector: "popup-survey",
|
|
1567
|
+
templateUrl: "./popup.survey.component.html",
|
|
1568
|
+
styleUrls: ["./popup.survey.component.scss"]
|
|
1569
|
+
}]
|
|
1570
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: { model: [{
|
|
1571
|
+
type: i0.Input
|
|
1572
|
+
}], isExpanded: [{
|
|
1573
|
+
type: i0.Input
|
|
1574
|
+
}], allowClose: [{
|
|
1575
|
+
type: i0.Input
|
|
1576
|
+
}], closeOnCompleteTimeout: [{
|
|
1577
|
+
type: i0.Input
|
|
1578
|
+
}], allowFullScreen: [{
|
|
1579
|
+
type: i0.Input
|
|
1580
|
+
}], onClose: [{
|
|
1581
|
+
type: i0.Input
|
|
1582
|
+
}] } });
|
|
1583
|
+
|
|
1584
|
+
var ErrorsComponent = /** @class */ (function () {
|
|
1585
|
+
function ErrorsComponent() {
|
|
1586
|
+
}
|
|
1587
|
+
Object.defineProperty(ErrorsComponent.prototype, "id", {
|
|
1588
|
+
get: function () {
|
|
1589
|
+
return this.element.id + "_errors";
|
|
1590
|
+
},
|
|
1591
|
+
enumerable: false,
|
|
1592
|
+
configurable: true
|
|
1593
|
+
});
|
|
1594
|
+
Object.defineProperty(ErrorsComponent.prototype, "class", {
|
|
1595
|
+
get: function () {
|
|
1596
|
+
return this.element.cssError;
|
|
1597
|
+
},
|
|
1598
|
+
enumerable: false,
|
|
1599
|
+
configurable: true
|
|
1600
|
+
});
|
|
1601
|
+
return ErrorsComponent;
|
|
1602
|
+
}());
|
|
1603
|
+
ErrorsComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ErrorsComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1604
|
+
ErrorsComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ErrorsComponent, selector: "'[sv-ng-errors]'", inputs: { element: "element", location: "location" }, host: { properties: { "id": "this.id", "class": "this.class" } }, ngImport: i0__namespace, template: "<ng-container *ngFor=\"let error of element.renderedErrors;\">\n <ng-template [component]=\"{ name: element.survey.questionErrorComponent, data: { element: element, cssClasses: element.cssClasses, error: error } }\"></ng-template>\n</ng-container>\n", directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1605
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ErrorsComponent, decorators: [{
|
|
1606
|
+
type: i0.Component,
|
|
1607
|
+
args: [{
|
|
1608
|
+
templateUrl: "./errors.component.html",
|
|
1609
|
+
selector: "'[sv-ng-errors]'"
|
|
1610
|
+
}]
|
|
1611
|
+
}], ctorParameters: function () { return []; }, propDecorators: { element: [{
|
|
1612
|
+
type: i0.Input
|
|
1613
|
+
}], location: [{
|
|
1614
|
+
type: i0.Input
|
|
1615
|
+
}], id: [{
|
|
1616
|
+
type: i0.HostBinding,
|
|
1617
|
+
args: ["id"]
|
|
1618
|
+
}], class: [{
|
|
1619
|
+
type: i0.HostBinding,
|
|
1620
|
+
args: ["class"]
|
|
1621
|
+
}] } });
|
|
1622
|
+
|
|
1623
|
+
var ElementComponent = /** @class */ (function (_super) {
|
|
1624
|
+
__extends(ElementComponent, _super);
|
|
1625
|
+
function ElementComponent() {
|
|
1626
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1627
|
+
}
|
|
1628
|
+
ElementComponent.prototype.getModel = function () {
|
|
1629
|
+
return this.model;
|
|
1630
|
+
};
|
|
1631
|
+
Object.defineProperty(ElementComponent.prototype, "elementComponentName", {
|
|
1632
|
+
get: function () {
|
|
1633
|
+
return this.model.isPanel ? "panel" : "question";
|
|
1634
|
+
},
|
|
1635
|
+
enumerable: false,
|
|
1636
|
+
configurable: true
|
|
1637
|
+
});
|
|
1638
|
+
ElementComponent.prototype.onModelChanged = function () {
|
|
1639
|
+
var _a;
|
|
1640
|
+
_super.prototype.onModelChanged.call(this);
|
|
1641
|
+
if (this.previousModel) {
|
|
1642
|
+
this.previousModel.setWrapperElement(undefined);
|
|
1643
|
+
}
|
|
1644
|
+
if (this.model && ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
1645
|
+
this.model.setWrapperElement(this.container.nativeElement);
|
|
1646
|
+
}
|
|
1647
|
+
};
|
|
1648
|
+
Object.defineProperty(ElementComponent.prototype, "componentName", {
|
|
1649
|
+
get: function () {
|
|
1650
|
+
var survey = this.surveyModel;
|
|
1651
|
+
if (!!survey) {
|
|
1652
|
+
var name = survey.getElementWrapperComponentName(this.model);
|
|
1653
|
+
if (!!name) {
|
|
1654
|
+
return name;
|
|
1655
|
+
}
|
|
1656
|
+
}
|
|
1657
|
+
return this.elementComponentName;
|
|
1658
|
+
},
|
|
1659
|
+
enumerable: false,
|
|
1660
|
+
configurable: true
|
|
1661
|
+
});
|
|
1662
|
+
Object.defineProperty(ElementComponent.prototype, "rootStyle", {
|
|
1663
|
+
get: function () {
|
|
1664
|
+
//use this if to check if cssClassses are calculated and allowRootStyle flag was set
|
|
1665
|
+
if (!!this.model.cssClasses) {
|
|
1666
|
+
return this.model.rootStyle;
|
|
1667
|
+
}
|
|
1668
|
+
else {
|
|
1669
|
+
return {};
|
|
1670
|
+
}
|
|
1671
|
+
},
|
|
1672
|
+
enumerable: false,
|
|
1673
|
+
configurable: true
|
|
1674
|
+
});
|
|
1675
|
+
Object.defineProperty(ElementComponent.prototype, "componentData", {
|
|
1676
|
+
get: function () {
|
|
1677
|
+
var survey = this.surveyModel;
|
|
1678
|
+
var data;
|
|
1679
|
+
if (!!survey) {
|
|
1680
|
+
data = survey.getElementWrapperComponentData(this.model);
|
|
1681
|
+
}
|
|
1682
|
+
return {
|
|
1683
|
+
componentName: this.elementComponentName,
|
|
1684
|
+
componentData: {
|
|
1685
|
+
model: this.model,
|
|
1686
|
+
data: data
|
|
1687
|
+
}
|
|
1688
|
+
};
|
|
1689
|
+
},
|
|
1690
|
+
enumerable: false,
|
|
1691
|
+
configurable: true
|
|
1692
|
+
});
|
|
1693
|
+
ElementComponent.prototype.ngAfterViewInit = function () {
|
|
1694
|
+
var _a;
|
|
1695
|
+
if (this.model && ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
1696
|
+
this.model.setWrapperElement(this.container.nativeElement);
|
|
1697
|
+
}
|
|
1698
|
+
};
|
|
1699
|
+
ElementComponent.prototype.ngOnDestroy = function () {
|
|
1700
|
+
_super.prototype.ngOnDestroy.call(this);
|
|
1701
|
+
this.model.setWrapperElement(undefined);
|
|
1741
1702
|
};
|
|
1742
|
-
return
|
|
1703
|
+
return ElementComponent;
|
|
1743
1704
|
}(BaseAngular));
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type:
|
|
1705
|
+
ElementComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ElementComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1706
|
+
ElementComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ElementComponent, selector: "sv-ng-element", inputs: { model: "model" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"!!model\" [class]=\"model.cssClasses.questionWrapper\" [style]=\"rootStyle\" (focusin)=\"model.focusIn()\" #container>\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1707
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ElementComponent, decorators: [{
|
|
1747
1708
|
type: i0.Component,
|
|
1748
1709
|
args: [{
|
|
1749
|
-
selector: "
|
|
1750
|
-
|
|
1710
|
+
selector: "sv-ng-element",
|
|
1711
|
+
templateUrl: "./element.component.html",
|
|
1712
|
+
styleUrls: ["./hide-host.scss"]
|
|
1751
1713
|
}]
|
|
1752
|
-
}],
|
|
1714
|
+
}], propDecorators: { model: [{
|
|
1753
1715
|
type: i0.Input
|
|
1716
|
+
}], container: [{
|
|
1717
|
+
type: i0.ViewChild,
|
|
1718
|
+
args: ["container", { static: false, read: i0.ElementRef }]
|
|
1754
1719
|
}] } });
|
|
1755
1720
|
|
|
1756
|
-
var
|
|
1757
|
-
__extends(
|
|
1758
|
-
function
|
|
1759
|
-
var _this = _super.call(this,
|
|
1760
|
-
|
|
1721
|
+
var RowComponent = /** @class */ (function (_super) {
|
|
1722
|
+
__extends(RowComponent, _super);
|
|
1723
|
+
function RowComponent(cdr, vcr, ngZone) {
|
|
1724
|
+
var _this = _super.call(this, cdr, vcr) || this;
|
|
1725
|
+
_this.ngZone = ngZone;
|
|
1761
1726
|
return _this;
|
|
1762
1727
|
}
|
|
1763
|
-
|
|
1764
|
-
return this.
|
|
1765
|
-
};
|
|
1766
|
-
PopupSurveyComponent.prototype.getShouldReattachChangeDetector = function () {
|
|
1767
|
-
return false;
|
|
1728
|
+
RowComponent.prototype.getModel = function () {
|
|
1729
|
+
return this.row;
|
|
1768
1730
|
};
|
|
1769
|
-
|
|
1770
|
-
|
|
1771
|
-
if (this.popup.isCollapsed) {
|
|
1772
|
-
headerCss += " " + this.popup.cssRootCollapsedMod;
|
|
1773
|
-
}
|
|
1774
|
-
return headerCss;
|
|
1731
|
+
RowComponent.prototype.trackElementBy = function (index, element) {
|
|
1732
|
+
return element.name + index;
|
|
1775
1733
|
};
|
|
1776
|
-
|
|
1777
|
-
this
|
|
1778
|
-
|
|
1779
|
-
|
|
1734
|
+
RowComponent.prototype.ngAfterViewInit = function () {
|
|
1735
|
+
var _this = this;
|
|
1736
|
+
var _a;
|
|
1737
|
+
var el = (_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement;
|
|
1738
|
+
if (!!el) {
|
|
1739
|
+
this.row.setRootElement(el);
|
|
1740
|
+
if (!this.row.isNeedRender) {
|
|
1741
|
+
this.ngZone.runOutsideAngular(function () {
|
|
1742
|
+
_this.lazyRenderingTimeout = setTimeout(function () {
|
|
1743
|
+
_this.row.startLazyRendering(el);
|
|
1744
|
+
}, 10);
|
|
1745
|
+
});
|
|
1746
|
+
}
|
|
1780
1747
|
}
|
|
1781
1748
|
};
|
|
1782
|
-
|
|
1783
|
-
var _a
|
|
1784
|
-
|
|
1785
|
-
|
|
1786
|
-
|
|
1787
|
-
if (this.isExpanded !== undefined) {
|
|
1788
|
-
this.popup.isExpanded = this.isExpanded;
|
|
1789
|
-
}
|
|
1790
|
-
if (this.allowClose !== undefined) {
|
|
1791
|
-
this.popup.allowClose = this.allowClose;
|
|
1792
|
-
}
|
|
1793
|
-
if (this.allowFullScreen !== undefined) {
|
|
1794
|
-
this.popup.allowFullScreen = this.allowFullScreen;
|
|
1749
|
+
RowComponent.prototype.onModelChanged = function () {
|
|
1750
|
+
var _a;
|
|
1751
|
+
_super.prototype.onModelChanged.call(this);
|
|
1752
|
+
if (!this.previousModel) {
|
|
1753
|
+
return;
|
|
1795
1754
|
}
|
|
1796
|
-
|
|
1797
|
-
this.
|
|
1755
|
+
else {
|
|
1756
|
+
this.previousModel.setRootElement(undefined);
|
|
1757
|
+
if ((_a = this.container) === null || _a === void 0 ? void 0 : _a.nativeElement) {
|
|
1758
|
+
this.row.setRootElement(this.container.nativeElement);
|
|
1759
|
+
}
|
|
1760
|
+
this.row.isNeedRender = this.previousModel.isNeedRender;
|
|
1761
|
+
this.stopLazyRendering();
|
|
1798
1762
|
}
|
|
1799
|
-
this.popup.isShowing = true;
|
|
1800
|
-
this.changeDetectorRef.detectChanges();
|
|
1801
1763
|
};
|
|
1802
|
-
|
|
1764
|
+
RowComponent.prototype.stopLazyRendering = function () {
|
|
1765
|
+
clearTimeout(this.lazyRenderingTimeout);
|
|
1766
|
+
this.row.stopLazyRendering();
|
|
1767
|
+
this.row.isNeedRender = !this.row.isLazyRendering();
|
|
1768
|
+
};
|
|
1769
|
+
RowComponent.prototype.ngOnDestroy = function () {
|
|
1803
1770
|
_super.prototype.ngOnDestroy.call(this);
|
|
1804
|
-
this.
|
|
1771
|
+
if (!this.isBaseElementSubsribed(this.row)) {
|
|
1772
|
+
this.row.setRootElement(undefined);
|
|
1773
|
+
this.stopLazyRendering();
|
|
1774
|
+
}
|
|
1805
1775
|
};
|
|
1806
|
-
return
|
|
1776
|
+
return RowComponent;
|
|
1807
1777
|
}(BaseAngular));
|
|
1808
|
-
|
|
1809
|
-
|
|
1810
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type:
|
|
1778
|
+
RowComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RowComponent, deps: [{ token: i0__namespace.ChangeDetectorRef }, { token: i0__namespace.ViewContainerRef }, { token: i0__namespace.NgZone }], target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1779
|
+
RowComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: RowComponent, selector: "sv-ng-row", inputs: { row: "row" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"row.getRowCss()\" #container>\n <ng-container *ngFor=\"let element of row.visibleElements; trackBy: trackElementBy\">\n <sv-ng-element [model]=\"$any(element)\" *ngIf=\"row.isNeedRender\"></sv-ng-element>\n <ng-template *ngIf=\"!row.isNeedRender && element.skeletonComponentName\" [component]=\"{ name: element.skeletonComponentName, data: { element: element } }\"></ng-template>\n </ng-container>\n </div>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: ElementComponent, selector: "sv-ng-element", inputs: ["model"] }], directives: [{ type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1780
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RowComponent, decorators: [{
|
|
1811
1781
|
type: i0.Component,
|
|
1812
1782
|
args: [{
|
|
1813
|
-
selector: "
|
|
1814
|
-
templateUrl: "./
|
|
1815
|
-
styleUrls: ["./
|
|
1783
|
+
selector: "sv-ng-row",
|
|
1784
|
+
templateUrl: "./row.component.html",
|
|
1785
|
+
styleUrls: ["./hide-host.scss"]
|
|
1816
1786
|
}]
|
|
1817
|
-
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }]; }, propDecorators: {
|
|
1818
|
-
type: i0.Input
|
|
1819
|
-
}], isExpanded: [{
|
|
1820
|
-
type: i0.Input
|
|
1821
|
-
}], allowClose: [{
|
|
1822
|
-
type: i0.Input
|
|
1823
|
-
}], closeOnCompleteTimeout: [{
|
|
1787
|
+
}], ctorParameters: function () { return [{ type: i0__namespace.ChangeDetectorRef }, { type: i0__namespace.ViewContainerRef }, { type: i0__namespace.NgZone }]; }, propDecorators: { row: [{
|
|
1824
1788
|
type: i0.Input
|
|
1825
|
-
}],
|
|
1789
|
+
}], container: [{
|
|
1790
|
+
type: i0.ViewChild,
|
|
1791
|
+
args: ["container", { read: i0.ElementRef }]
|
|
1792
|
+
}] } });
|
|
1793
|
+
|
|
1794
|
+
var PageComponent = /** @class */ (function (_super) {
|
|
1795
|
+
__extends(PageComponent, _super);
|
|
1796
|
+
function PageComponent() {
|
|
1797
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
1798
|
+
}
|
|
1799
|
+
PageComponent.prototype.getModel = function () {
|
|
1800
|
+
return this.model;
|
|
1801
|
+
};
|
|
1802
|
+
PageComponent.prototype.onModelChanged = function () {
|
|
1803
|
+
if (!!this.pageContainerRef && this.pageContainerRef.nativeElement) {
|
|
1804
|
+
this.model.survey.afterRenderPage(this.pageContainerRef.nativeElement);
|
|
1805
|
+
}
|
|
1806
|
+
};
|
|
1807
|
+
PageComponent.prototype.ngAfterViewInit = function () {
|
|
1808
|
+
var _a, _b;
|
|
1809
|
+
(_a = this.model.survey) === null || _a === void 0 ? void 0 : _a.afterRenderPage((_b = this.pageContainerRef) === null || _b === void 0 ? void 0 : _b.nativeElement);
|
|
1810
|
+
};
|
|
1811
|
+
return PageComponent;
|
|
1812
|
+
}(BaseAngular));
|
|
1813
|
+
PageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
1814
|
+
PageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PageComponent, selector: "sv-page, page, sv-ng-page", inputs: { model: "model", survey: "survey" }, viewQueries: [{ propertyName: "pageContainerRef", first: true, predicate: ["pageContainer"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <ng-container *ngIf=\"!!this.survey && !!this.model && this.model.isVisible && !!this.model.survey\">\n <div [class]=\"model.cssRoot\" #pageContainer>\n <sv-ng-element-title [element]=\"model\"></sv-ng-element-title>\n <div *ngIf=\"model._showDescription\" [class]=\"model.cssClasses.page?.description\">\n <sv-ng-string [model]=\"model.locDescription\"></sv-ng-string>\n </div>\n <div *ngIf=\"model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n <ng-container *ngFor=\"let row of model.visibleRows\">\n <ng-template [component]=\"{ name: $any(model.survey).getRowWrapperComponentName(row), data: { componentData: $any(model.survey).getRowWrapperComponentData(row) } }\">\n <sv-ng-row [row]=\"row\"></sv-ng-row>\n </ng-template>\n </ng-container>\n </div>\n </ng-container> \n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: ElementTitleComponent, selector: "sv-ng-element-title", inputs: ["element"] }, { type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: ErrorsComponent, selector: "'[sv-ng-errors]'", inputs: ["element", "location"] }, { type: RowComponent, selector: "sv-ng-row", inputs: ["row"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
1815
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PageComponent, decorators: [{
|
|
1816
|
+
type: i0.Component,
|
|
1817
|
+
args: [{
|
|
1818
|
+
selector: "sv-page, page, sv-ng-page",
|
|
1819
|
+
templateUrl: "./page.component.html",
|
|
1820
|
+
styleUrls: ["./hide-host.scss"]
|
|
1821
|
+
}]
|
|
1822
|
+
}], propDecorators: { model: [{
|
|
1826
1823
|
type: i0.Input
|
|
1827
|
-
}],
|
|
1824
|
+
}], survey: [{
|
|
1828
1825
|
type: i0.Input
|
|
1826
|
+
}], pageContainerRef: [{
|
|
1827
|
+
type: i0.ViewChild,
|
|
1828
|
+
args: ["pageContainer", { static: false, read: i0.ElementRef }]
|
|
1829
1829
|
}] } });
|
|
1830
|
+
AngularComponentFactory.Instance.registerComponent("sv-page", PageComponent);
|
|
1830
1831
|
|
|
1831
1832
|
var QuestionAngular = /** @class */ (function (_super) {
|
|
1832
1833
|
__extends(QuestionAngular, _super);
|
|
@@ -2040,7 +2041,7 @@
|
|
|
2040
2041
|
return QuestionComponent;
|
|
2041
2042
|
}(EmbeddedViewContentComponent));
|
|
2042
2043
|
QuestionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2043
|
-
QuestionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionComponent, selector: "sv-ng-question", inputs: { model: "model", css: "css", survey: "survey" }, viewQueries: [{ propertyName: "rootEl", first: true, predicate: ["elementContainer"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"!!model\" #elementContainer [class]=\"model.getRootCss()\" [style]=\"model.getRootStyle()\" [id]=\"model.id\"\n [attr.data-name]=\"model.name\" [attr.role]=\"model.ariaRole\" [attr.aria-required]=\"model.ariaRequired\"\n [attr.aria-invalid]=\"model.ariaInvalid\" [attr.aria-label]=\"model.ariaLabel\"\n [attr.aria-labelledby]=\"model.ariaLabelledBy\" [attr.aria-describedby]=\"model.ariaDescribedBy\"\n [attr.aria-expanded]=\"model.ariaExpanded\">\n <sv-breadcrumbs\n *ngIf=\"model.singleInputHasActions\"\n [model]=\"model.singleInputActions\"\n [css]=\"model.cssClasses\"\n ></sv-breadcrumbs>\n <div *ngIf=\"model.showErrorsAboveQuestion && model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n <div [element]=\"model\" *ngIf=\"!model.singleInputHideHeader && model.hasTitleOnLeftTop\" sv-ng-element-header></div>\n <sv-single-input-summary\n *ngIf=\"!!model.singleInputSummary\"\n [model]=\"model.singleInputSummary\"\n [css]=\"model.cssClasses\"\n ></sv-single-input-summary>\n <sv-ng-element\n *ngIf=\"!model.singleInputSummary && !!singleQuestion\"\n [model]=\"singleQuestion\"\n ></sv-ng-element>\n <ng-template\n *ngIf=\"!model.singleInputSummary && !singleQuestion\"\n [component]=\"{ name: getQuestionContentWrapperComponentName(), data: getQuestionContentWrapperComponentData() }\">\n <div [class]=\"model.cssContent\" role=\"presentation\" [visible]=\"model.renderedIsExpanded\" [attr.aria-hidden]=\"model.contentAriaHidden\">\n <ng-template\n [component]=\"{ name: getComponentName(), data: { model: model }, default: 'skeleton-question' }\"></ng-template>\n <div *ngIf=\"model.hasComment\" [class]=\"model.getCommentAreaCss(false)\">\n <div [model]=\"model.locCommentText\" sv-ng-string></div>\n <sv-ng-comment [question]=\"model\"></sv-ng-comment>\n </div>\n <div *ngIf=\"model.hasDescriptionUnderInput\" [class]=\"model.cssDescription\" [attr.id]=\"model.ariaDescriptionId\"\n [model]=\"model.locDescription\" sv-ng-string></div>\n </div>\n </ng-template>\n <div [element]=\"model\" *ngIf=\"model.hasTitleOnBottom\" sv-ng-element-header></div>\n <div *ngIf=\"model.showErrorsBelowQuestion && model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n </div>\n</ng-template>", components: [{ type: BreadcrumbsComponent, selector: "sv-breadcrumbs", inputs: ["model", "css"] }, { type: ErrorsComponent, selector: "'[sv-ng-errors]'", inputs: ["element", "location"] }, { type: ElementHeaderComponent, selector: "'[sv-ng-element-header]'", inputs: ["element"] }, { type: SingleInputSummaryComponent, selector: "sv-single-input-summary", inputs: ["model", "css"] }, { type: ElementComponent, selector: "sv-ng-element", inputs: ["model"] }, { type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: SurveyCommentComponent, selector: "sv-ng-comment, '[sv-ng-comment]'", inputs: ["question"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }, { type: VisibleDirective, selector: "[visible]", inputs: ["visible"] }] });
|
|
2044
|
+
QuestionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionComponent, selector: "sv-ng-question", inputs: { model: "model", css: "css", survey: "survey" }, viewQueries: [{ propertyName: "rootEl", first: true, predicate: ["elementContainer"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"!!model\" #elementContainer [class]=\"model.getRootCss()\" [style]=\"model.getRootStyle()\" [id]=\"model.id\"\n [attr.data-name]=\"model.name\" [attr.role]=\"model.ariaRole\" [attr.aria-required]=\"model.ariaRequired\"\n [attr.aria-invalid]=\"model.ariaInvalid\" [attr.aria-label]=\"model.ariaLabel\"\n [attr.aria-labelledby]=\"model.ariaLabelledBy\" [attr.aria-describedby]=\"model.ariaDescribedBy\"\n [attr.aria-expanded]=\"model.ariaExpanded\">\n <sv-breadcrumbs\n *ngIf=\"model.singleInputHasActions\"\n [model]=\"model.singleInputActions\"\n [css]=\"model.cssClasses\"\n ></sv-breadcrumbs>\n <div *ngIf=\"model.showErrorsAboveQuestion && model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n <div [element]=\"model\" *ngIf=\"!model.singleInputHideHeader && model.hasTitleOnLeftTop\" sv-ng-element-header></div>\n <sv-single-input-summary\n *ngIf=\"!!model.singleInputSummary\"\n [model]=\"model.singleInputSummary\"\n [css]=\"model.cssClasses\"\n ></sv-single-input-summary>\n <sv-ng-element\n *ngIf=\"!model.singleInputSummary && !!singleQuestion\"\n [model]=\"singleQuestion\"\n ></sv-ng-element>\n <ng-template\n *ngIf=\"!model.singleInputSummary && !singleQuestion\"\n [component]=\"{ name: getQuestionContentWrapperComponentName(), data: getQuestionContentWrapperComponentData() }\">\n <div [class]=\"model.cssContent\" role=\"presentation\" [visible]=\"model.renderedIsExpanded\" [attr.aria-hidden]=\"model.contentAriaHidden\" [attr.data-sv-drop-target-matrix-row]=\"model.dragDropMatrixAttribute\" [attr.data-sv-drop-target-matrix]=\"model.dragDropMatrixAttribute\">\n <ng-template\n [component]=\"{ name: getComponentName(), data: { model: model }, default: 'skeleton-question' }\"></ng-template>\n <div *ngIf=\"model.hasComment\" [class]=\"model.getCommentAreaCss(false)\">\n <div [model]=\"model.locCommentText\" sv-ng-string></div>\n <sv-ng-comment [question]=\"model\"></sv-ng-comment>\n </div>\n <div *ngIf=\"model.hasDescriptionUnderInput\" [class]=\"model.cssDescription\" [attr.id]=\"model.ariaDescriptionId\"\n [model]=\"model.locDescription\" sv-ng-string></div>\n </div>\n </ng-template>\n <div [element]=\"model\" *ngIf=\"model.hasTitleOnBottom\" sv-ng-element-header></div>\n <div *ngIf=\"model.showErrorsBelowQuestion && model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n </div>\n</ng-template>", components: [{ type: BreadcrumbsComponent, selector: "sv-breadcrumbs", inputs: ["model", "css"] }, { type: ErrorsComponent, selector: "'[sv-ng-errors]'", inputs: ["element", "location"] }, { type: ElementHeaderComponent, selector: "'[sv-ng-element-header]'", inputs: ["element"] }, { type: SingleInputSummaryComponent, selector: "sv-single-input-summary", inputs: ["model", "css"] }, { type: ElementComponent, selector: "sv-ng-element", inputs: ["model"] }, { type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: SurveyCommentComponent, selector: "sv-ng-comment, '[sv-ng-comment]'", inputs: ["question"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }, { type: VisibleDirective, selector: "[visible]", inputs: ["visible"] }] });
|
|
2044
2045
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionComponent, decorators: [{
|
|
2045
2046
|
type: i0.Component,
|
|
2046
2047
|
args: [{
|
|
@@ -2725,7 +2726,7 @@
|
|
|
2725
2726
|
return SelectBaseComponent;
|
|
2726
2727
|
}(QuestionAngular));
|
|
2727
2728
|
SelectBaseComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SelectBaseComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2728
|
-
SelectBaseComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SelectBaseComponent, selector: "['sv-ng-selectbase']", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<fieldset [class]=\"model.getSelectBaseRootCss()\" #contentElement \n [attr.role]=\"model.a11y_input_ariaRole\"\n [attr.aria-required]=\"model.a11y_input_ariaRequired\"\n [attr.aria-label]=\"model.a11y_input_ariaLabel\"\n [attr.aria-labelledby]=\"model.a11y_input_ariaLabelledBy\"\n [attr.aria-describedby]=\"model.a11y_input_ariaDescribedBy\"\n [attr.aria-invalid]=\"model.a11y_input_ariaInvalid\"\n [attr.aria-errormessage]=\"model.a11y_input_ariaErrormessage\"\n>\n <legend *ngIf=\"showLegend\" class=\"sv-hidden\">{{model.locTitle.renderedHtml}}</legend>\n <ng-container *ngIf=\"model.hasHeadItems\">\n <ng-container *ngFor=\"let item of model.headItems; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!model.hasColumns && !model.blockedRow\">\n <ng-container *ngFor=\"let item of model.bodyItems; trackBy: trackItemBy\" >\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <div [class]=\"model.cssClasses.rootRow\" *ngIf=\"!model.hasColumns && model.blockedRow\">\n <ng-container *ngFor=\"let item of model.dataChoices; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </div>\n <ng-container *ngIf=\"model.hasColumns\">\n <div [class]=\"model.cssClasses.rootMultiColumn\">\n <div [class]=\"model.getColumnClass()\" *ngFor=\"let column of model.columns; trackBy: trackColumnBy\" role=\"presentation\">\n <ng-container *ngFor=\"let item of column; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"model.hasFootItems\">\n <ng-container *ngFor=\"let item of model.footItems; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <div *ngIf=\"model.showClearButtonInContent\">\n <input\n type=\"button\"\n (click)=\"model.
|
|
2729
|
+
SelectBaseComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SelectBaseComponent, selector: "['sv-ng-selectbase']", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<fieldset [class]=\"model.getSelectBaseRootCss()\" #contentElement \n [attr.role]=\"model.a11y_input_ariaRole\"\n [attr.aria-required]=\"model.a11y_input_ariaRequired\"\n [attr.aria-label]=\"model.a11y_input_ariaLabel\"\n [attr.aria-labelledby]=\"model.a11y_input_ariaLabelledBy\"\n [attr.aria-describedby]=\"model.a11y_input_ariaDescribedBy\"\n [attr.aria-invalid]=\"model.a11y_input_ariaInvalid\"\n [attr.aria-errormessage]=\"model.a11y_input_ariaErrormessage\"\n>\n <legend *ngIf=\"showLegend\" class=\"sv-hidden\">{{model.locTitle.renderedHtml}}</legend>\n <ng-container *ngIf=\"model.hasHeadItems\">\n <ng-container *ngFor=\"let item of model.headItems; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!model.hasColumns && !model.blockedRow\">\n <ng-container *ngFor=\"let item of model.bodyItems; trackBy: trackItemBy\" >\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <div [class]=\"model.cssClasses.rootRow\" *ngIf=\"!model.hasColumns && model.blockedRow\">\n <ng-container *ngFor=\"let item of model.dataChoices; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </div>\n <ng-container *ngIf=\"model.hasColumns\">\n <div [class]=\"model.cssClasses.rootMultiColumn\">\n <div [class]=\"model.getColumnClass()\" *ngFor=\"let column of model.columns; trackBy: trackColumnBy\" role=\"presentation\">\n <ng-container *ngFor=\"let item of column; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"model.hasFootItems\">\n <ng-container *ngFor=\"let item of model.footItems; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <div *ngIf=\"model.showClearButtonInContent\">\n <input\n type=\"button\"\n (click)=\"model.clearValueFromUI()\"\n [value]=\"model.clearButtonCaption\"\n [class]=\"model.cssClasses.clearButton\"\n />\n </div>\n</fieldset>", directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2729
2730
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SelectBaseComponent, decorators: [{
|
|
2730
2731
|
type: i0.Component,
|
|
2731
2732
|
args: [{
|
|
@@ -2750,7 +2751,7 @@
|
|
|
2750
2751
|
return RadiogroupComponent;
|
|
2751
2752
|
}(SelectBaseComponent));
|
|
2752
2753
|
RadiogroupComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RadiogroupComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2753
|
-
RadiogroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: RadiogroupComponent, selector: "sv-ng-radiogroup-question", usesInheritance: true, ngImport: i0__namespace, template: "<fieldset [class]=\"model.getSelectBaseRootCss()\" #contentElement \n [attr.role]=\"model.a11y_input_ariaRole\"\n [attr.aria-required]=\"model.a11y_input_ariaRequired\"\n [attr.aria-label]=\"model.a11y_input_ariaLabel\"\n [attr.aria-labelledby]=\"model.a11y_input_ariaLabelledBy\"\n [attr.aria-describedby]=\"model.a11y_input_ariaDescribedBy\"\n [attr.aria-invalid]=\"model.a11y_input_ariaInvalid\"\n [attr.aria-errormessage]=\"model.a11y_input_ariaErrormessage\"\n>\n <legend *ngIf=\"showLegend\" class=\"sv-hidden\">{{model.locTitle.renderedHtml}}</legend>\n <ng-container *ngIf=\"model.hasHeadItems\">\n <ng-container *ngFor=\"let item of model.headItems; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!model.hasColumns && !model.blockedRow\">\n <ng-container *ngFor=\"let item of model.bodyItems; trackBy: trackItemBy\" >\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <div [class]=\"model.cssClasses.rootRow\" *ngIf=\"!model.hasColumns && model.blockedRow\">\n <ng-container *ngFor=\"let item of model.dataChoices; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </div>\n <ng-container *ngIf=\"model.hasColumns\">\n <div [class]=\"model.cssClasses.rootMultiColumn\">\n <div [class]=\"model.getColumnClass()\" *ngFor=\"let column of model.columns; trackBy: trackColumnBy\" role=\"presentation\">\n <ng-container *ngFor=\"let item of column; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"model.hasFootItems\">\n <ng-container *ngFor=\"let item of model.footItems; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <div *ngIf=\"model.showClearButtonInContent\">\n <input\n type=\"button\"\n (click)=\"model.
|
|
2754
|
+
RadiogroupComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: RadiogroupComponent, selector: "sv-ng-radiogroup-question", usesInheritance: true, ngImport: i0__namespace, template: "<fieldset [class]=\"model.getSelectBaseRootCss()\" #contentElement \n [attr.role]=\"model.a11y_input_ariaRole\"\n [attr.aria-required]=\"model.a11y_input_ariaRequired\"\n [attr.aria-label]=\"model.a11y_input_ariaLabel\"\n [attr.aria-labelledby]=\"model.a11y_input_ariaLabelledBy\"\n [attr.aria-describedby]=\"model.a11y_input_ariaDescribedBy\"\n [attr.aria-invalid]=\"model.a11y_input_ariaInvalid\"\n [attr.aria-errormessage]=\"model.a11y_input_ariaErrormessage\"\n>\n <legend *ngIf=\"showLegend\" class=\"sv-hidden\">{{model.locTitle.renderedHtml}}</legend>\n <ng-container *ngIf=\"model.hasHeadItems\">\n <ng-container *ngFor=\"let item of model.headItems; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!model.hasColumns && !model.blockedRow\">\n <ng-container *ngFor=\"let item of model.bodyItems; trackBy: trackItemBy\" >\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <div [class]=\"model.cssClasses.rootRow\" *ngIf=\"!model.hasColumns && model.blockedRow\">\n <ng-container *ngFor=\"let item of model.dataChoices; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </div>\n <ng-container *ngIf=\"model.hasColumns\">\n <div [class]=\"model.cssClasses.rootMultiColumn\">\n <div [class]=\"model.getColumnClass()\" *ngFor=\"let column of model.columns; trackBy: trackColumnBy\" role=\"presentation\">\n <ng-container *ngFor=\"let item of column; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"model.hasFootItems\">\n <ng-container *ngFor=\"let item of model.footItems; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <div *ngIf=\"model.showClearButtonInContent\">\n <input\n type=\"button\"\n (click)=\"model.clearValueFromUI()\"\n [value]=\"model.clearButtonCaption\"\n [class]=\"model.cssClasses.clearButton\"\n />\n </div>\n</fieldset>", directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2754
2755
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: RadiogroupComponent, decorators: [{
|
|
2755
2756
|
type: i0.Component,
|
|
2756
2757
|
args: [{
|
|
@@ -2800,7 +2801,7 @@
|
|
|
2800
2801
|
return CheckboxComponent;
|
|
2801
2802
|
}(SelectBaseComponent));
|
|
2802
2803
|
CheckboxComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CheckboxComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
2803
|
-
CheckboxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CheckboxComponent, selector: "sv-ng-checkbox-question", usesInheritance: true, ngImport: i0__namespace, template: "<fieldset [class]=\"model.getSelectBaseRootCss()\" #contentElement \n [attr.role]=\"model.a11y_input_ariaRole\"\n [attr.aria-required]=\"model.a11y_input_ariaRequired\"\n [attr.aria-label]=\"model.a11y_input_ariaLabel\"\n [attr.aria-labelledby]=\"model.a11y_input_ariaLabelledBy\"\n [attr.aria-describedby]=\"model.a11y_input_ariaDescribedBy\"\n [attr.aria-invalid]=\"model.a11y_input_ariaInvalid\"\n [attr.aria-errormessage]=\"model.a11y_input_ariaErrormessage\"\n>\n <legend *ngIf=\"showLegend\" class=\"sv-hidden\">{{model.locTitle.renderedHtml}}</legend>\n <ng-container *ngIf=\"model.hasHeadItems\">\n <ng-container *ngFor=\"let item of model.headItems; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!model.hasColumns && !model.blockedRow\">\n <ng-container *ngFor=\"let item of model.bodyItems; trackBy: trackItemBy\" >\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <div [class]=\"model.cssClasses.rootRow\" *ngIf=\"!model.hasColumns && model.blockedRow\">\n <ng-container *ngFor=\"let item of model.dataChoices; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </div>\n <ng-container *ngIf=\"model.hasColumns\">\n <div [class]=\"model.cssClasses.rootMultiColumn\">\n <div [class]=\"model.getColumnClass()\" *ngFor=\"let column of model.columns; trackBy: trackColumnBy\" role=\"presentation\">\n <ng-container *ngFor=\"let item of column; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"model.hasFootItems\">\n <ng-container *ngFor=\"let item of model.footItems; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <div *ngIf=\"model.showClearButtonInContent\">\n <input\n type=\"button\"\n (click)=\"model.
|
|
2804
|
+
CheckboxComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CheckboxComponent, selector: "sv-ng-checkbox-question", usesInheritance: true, ngImport: i0__namespace, template: "<fieldset [class]=\"model.getSelectBaseRootCss()\" #contentElement \n [attr.role]=\"model.a11y_input_ariaRole\"\n [attr.aria-required]=\"model.a11y_input_ariaRequired\"\n [attr.aria-label]=\"model.a11y_input_ariaLabel\"\n [attr.aria-labelledby]=\"model.a11y_input_ariaLabelledBy\"\n [attr.aria-describedby]=\"model.a11y_input_ariaDescribedBy\"\n [attr.aria-invalid]=\"model.a11y_input_ariaInvalid\"\n [attr.aria-errormessage]=\"model.a11y_input_ariaErrormessage\"\n>\n <legend *ngIf=\"showLegend\" class=\"sv-hidden\">{{model.locTitle.renderedHtml}}</legend>\n <ng-container *ngIf=\"model.hasHeadItems\">\n <ng-container *ngFor=\"let item of model.headItems; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"!model.hasColumns && !model.blockedRow\">\n <ng-container *ngFor=\"let item of model.bodyItems; trackBy: trackItemBy\" >\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <div [class]=\"model.cssClasses.rootRow\" *ngIf=\"!model.hasColumns && model.blockedRow\">\n <ng-container *ngFor=\"let item of model.dataChoices; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </div>\n <ng-container *ngIf=\"model.hasColumns\">\n <div [class]=\"model.cssClasses.rootMultiColumn\">\n <div [class]=\"model.getColumnClass()\" *ngFor=\"let column of model.columns; trackBy: trackColumnBy\" role=\"presentation\">\n <ng-container *ngFor=\"let item of column; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </div>\n </div>\n </ng-container>\n <ng-container *ngIf=\"model.hasFootItems\">\n <ng-container *ngFor=\"let item of model.footItems; trackBy: trackItemBy\">\n <ng-template [component]=\"{ name: getItemValueComponentName(item), data: getItemValueComponentData(item) }\"></ng-template>\n </ng-container>\n </ng-container>\n <div *ngIf=\"model.showClearButtonInContent\">\n <input\n type=\"button\"\n (click)=\"model.clearValueFromUI()\"\n [value]=\"model.clearButtonCaption\"\n [class]=\"model.cssClasses.clearButton\"\n />\n </div>\n</fieldset>", directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
2804
2805
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CheckboxComponent, decorators: [{
|
|
2805
2806
|
type: i0.Component,
|
|
2806
2807
|
args: [{
|
|
@@ -3086,7 +3087,7 @@
|
|
|
3086
3087
|
return SliderLabelItemComponent;
|
|
3087
3088
|
}(BaseAngular));
|
|
3088
3089
|
SliderLabelItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SliderLabelItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3089
|
-
SliderLabelItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SliderLabelItemComponent, selector: "sv-ng-slider-label-item", inputs: { model: "model", item: "item" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"model.getLabelCss(item.locText)\"\n [style]=\"{ left: model.getPercent(item.value) + '%' }\"\n (pointerup)=\"model.handleLabelPointerUp($any($event), item.value)\">\n <div [class]=\"model.cssClasses.labelTick\"></div>\n <div [class]=\"model.cssClasses.labelText\" [model]=\"item.locText\" sv-ng-string></div>\n </div>\n</ng-template>", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }] });
|
|
3090
|
+
SliderLabelItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SliderLabelItemComponent, selector: "sv-ng-slider-label-item", inputs: { model: "model", item: "item" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div [class]=\"model.getLabelCss(item.locText)\"\n [style]=\"{ left: model.getPercent(item.value) + '%' }\"\n (pointerup)=\"model.handleLabelPointerUp($any($event), item.value)\">\n <div [class]=\"model.cssClasses.labelTick\"></div>\n <div [class]=\"model.cssClasses.labelTextContainer\">\n <div *ngIf=\"!item.showValue\" [class]=\"model.cssClasses.labelText\" [model]=\"item.locText\" sv-ng-string></div>\n <div *ngIf=\"item.showValue\" [class]=\"model.cssClasses.labelText\">{{ item.value }}</div>\n <div *ngIf=\"item.showValue\" [class]=\"model.cssClasses.labelTextSecondaryMode\" [model]=\"item.locText\" sv-ng-string></div>\n </div>\n </div>\n</ng-template>", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3090
3091
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SliderLabelItemComponent, decorators: [{
|
|
3091
3092
|
type: i0.Component,
|
|
3092
3093
|
args: [{
|
|
@@ -3315,6 +3316,49 @@
|
|
|
3315
3316
|
}] } });
|
|
3316
3317
|
AngularComponentFactory.Instance.registerComponent("sv-action-bar-item-dropdown", ActionBarItemDropdownComponent);
|
|
3317
3318
|
|
|
3319
|
+
var PanelComponent = /** @class */ (function (_super) {
|
|
3320
|
+
__extends(PanelComponent, _super);
|
|
3321
|
+
function PanelComponent() {
|
|
3322
|
+
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
3323
|
+
_this.trackRowBy = function (_, row) {
|
|
3324
|
+
return row.id;
|
|
3325
|
+
};
|
|
3326
|
+
return _this;
|
|
3327
|
+
}
|
|
3328
|
+
PanelComponent.prototype.getModel = function () {
|
|
3329
|
+
return this.model;
|
|
3330
|
+
};
|
|
3331
|
+
PanelComponent.prototype.ngAfterViewInit = function () {
|
|
3332
|
+
var _a;
|
|
3333
|
+
if (!!((_a = this.panelContainerRef) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
3334
|
+
this.model.afterRender(this.panelContainerRef.nativeElement);
|
|
3335
|
+
}
|
|
3336
|
+
};
|
|
3337
|
+
Object.defineProperty(PanelComponent.prototype, "canRender", {
|
|
3338
|
+
get: function () {
|
|
3339
|
+
return this.model && this.model.survey && this.model.getIsContentVisible();
|
|
3340
|
+
},
|
|
3341
|
+
enumerable: false,
|
|
3342
|
+
configurable: true
|
|
3343
|
+
});
|
|
3344
|
+
return PanelComponent;
|
|
3345
|
+
}(BaseAngular));
|
|
3346
|
+
PanelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PanelComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3347
|
+
PanelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PanelComponent, selector: "sv-ng-panel, '[sv-ng-panel]'", inputs: { model: "model" }, viewQueries: [{ propertyName: "panelContainerRef", first: true, predicate: ["panelContainer"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"canRender\" [attr.id]=\"model.id\" [class]=\"model.getContainerCss()\" (focusin)=\"model.focusIn()\" #panelContainer>\n <div *ngIf=\"model.showErrorsAbovePanel && model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n <div *ngIf=\"model.hasDescription || model.hasTitle\" [element]=\"model\" sv-ng-element-header></div>\n <div *ngIf=\"!model.showErrorsAbovePanel && model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n <div *ngIf=\"model.renderedIsExpanded\" [style.paddingLeft]=\"model.innerPaddingLeft\" [class]=\"model.cssClasses.panel.content\" \n [attr.id]=\"model.contentId\" [attr.role]=\"model.ariaRole\" [attr.aria-labelledby]=\"model.ariaLabelledBy\"[attr.aria-label]=\"model.ariaLabel\">\n <ng-container *ngFor=\"let row of model.visibleRows; trackBy: trackRowBy\">\n <ng-template [component]=\"{ name: $any(model.survey).getRowWrapperComponentName(row), data: { componentData: $any(model.survey).getRowWrapperComponentData(row) } }\">\n <sv-ng-row [row]=\"row\"></sv-ng-row>\n </ng-template>\n </ng-container>\n <sv-ng-action-bar [model]=\"model.getFooterToolbar()\"></sv-ng-action-bar>\n </div>\n </div>\n</ng-template>", components: [{ type: ErrorsComponent, selector: "'[sv-ng-errors]'", inputs: ["element", "location"] }, { type: ElementHeaderComponent, selector: "'[sv-ng-element-header]'", inputs: ["element"] }, { type: RowComponent, selector: "sv-ng-row", inputs: ["row"] }, { type: ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
3348
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PanelComponent, decorators: [{
|
|
3349
|
+
type: i0.Component,
|
|
3350
|
+
args: [{
|
|
3351
|
+
selector: "sv-ng-panel, '[sv-ng-panel]'",
|
|
3352
|
+
templateUrl: "./panel.component.html",
|
|
3353
|
+
}]
|
|
3354
|
+
}], propDecorators: { model: [{
|
|
3355
|
+
type: i0.Input
|
|
3356
|
+
}], panelContainerRef: [{
|
|
3357
|
+
type: i0.ViewChild,
|
|
3358
|
+
args: ["panelContainer", { static: false, read: i0.ElementRef }]
|
|
3359
|
+
}] } });
|
|
3360
|
+
AngularComponentFactory.Instance.registerComponent("panel", PanelComponent);
|
|
3361
|
+
|
|
3318
3362
|
var SelectBaseItemComponent = /** @class */ (function (_super) {
|
|
3319
3363
|
__extends(SelectBaseItemComponent, _super);
|
|
3320
3364
|
function SelectBaseItemComponent() {
|
|
@@ -3352,7 +3396,7 @@
|
|
|
3352
3396
|
return SelectBaseItemComponent;
|
|
3353
3397
|
}(BaseAngular));
|
|
3354
3398
|
SelectBaseItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SelectBaseItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3355
|
-
SelectBaseItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SelectBaseItemComponent, selector: "['sv-ng-selectbase-item'], sv-ng-selebase-item", inputs: { question: "question", model: "model", inputType: "inputType", showLabel: "showLabel", ariaLabel: "ariaLabel" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div role=\"presentation\" [class]=\"question.getItemClass(model)\" #container>\n <ng-container [ngSwitch]=\"inputType\">\n <label *ngSwitchCase=\"'checkbox'\" [class]=\"question.getLabelClass(model)\" [model]=\"model\" [question]=\"question\"\n sv-ng-checkbox-item [ariaLabel]=\"ariaLabel\">\n <ng-container *ngTemplateOutlet=\"itemDecorator\"></ng-container>\n </label>\n <label *ngSwitchCase=\"'radio'\" (mousedown)=\"question.onMouseDown()\" [class]=\"question.getLabelClass(model)\"\n [model]=\"model\" [question]=\"question\" sv-ng-radiogroup-item [ariaLabel]=\"ariaLabel\">\n <ng-container *ngTemplateOutlet=\"itemDecorator\"></ng-container>\n </label>\n </ng-container>\n <ng-template #itemDecorator>\n <span *ngIf=\"question.cssClasses.materialDecorator\" [class]=\"question.cssClasses.materialDecorator\">\n <svg *ngIf=\"question.itemSvgIcon\" [class]=\"question.cssClasses.itemDecorator\">\n <use [attr.xlink:href]=\"question.itemSvgIcon\"></use>\n </svg>\n </span>\n <span [class]=\"question.getControlLabelClass(model)\" *ngIf=\"!model.hideCaption\">\n <sv-ng-string [model]=\"model.locText\"></sv-ng-string>\n </span>\n </ng-template>\n </div>\n <div *ngIf=\"model.isCommentShowing\" [class]=\"question.getCommentAreaCss(true)\" [question]=\"question\" [item]=\"model\" sv-ng-comment-choice></div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: CheckboxItemComponent, selector: "sv-ng-checkbox-item, '[sv-ng-checkbox-item]'", inputs: ["question", "model", "ariaLabel"] }, { type: RadiogroupItemComponent, selector: "sv-ng-radiogroup-item, '[sv-ng-radiogroup-item]'", inputs: ["question", "model", "ariaLabel"] }, { type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: SurveyCommentChoiceComponent, selector: "sv-ng-comment-choice, '[sv-ng-comment-choice]'", inputs: ["question", "item"] }], directives: [{ type: i2__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3399
|
+
SelectBaseItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SelectBaseItemComponent, selector: "['sv-ng-selectbase-item'], sv-ng-selebase-item", inputs: { question: "question", model: "model", inputType: "inputType", showLabel: "showLabel", ariaLabel: "ariaLabel" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div role=\"presentation\" [class]=\"question.getItemClass(model)\" #container>\n <ng-container [ngSwitch]=\"inputType\">\n <label *ngSwitchCase=\"'checkbox'\" [class]=\"question.getLabelClass(model)\" [model]=\"model\" [question]=\"question\"\n sv-ng-checkbox-item [ariaLabel]=\"ariaLabel\">\n <ng-container *ngTemplateOutlet=\"itemDecorator\"></ng-container>\n </label>\n <label *ngSwitchCase=\"'radio'\" (mousedown)=\"question.onMouseDown()\" [class]=\"question.getLabelClass(model)\"\n [model]=\"model\" [question]=\"question\" sv-ng-radiogroup-item [ariaLabel]=\"ariaLabel\">\n <ng-container *ngTemplateOutlet=\"itemDecorator\"></ng-container>\n </label>\n </ng-container>\n <ng-template #itemDecorator>\n <span *ngIf=\"question.cssClasses.materialDecorator\" [class]=\"question.cssClasses.materialDecorator\">\n <svg *ngIf=\"question.itemSvgIcon\" [class]=\"question.cssClasses.itemDecorator\">\n <use [attr.xlink:href]=\"question.itemSvgIcon\"></use>\n </svg>\n </span>\n <span [class]=\"question.getControlLabelClass(model)\" *ngIf=\"!model.hideCaption\">\n <sv-ng-string [model]=\"model.locText\"></sv-ng-string>\n </span>\n </ng-template>\n </div>\n <sv-ng-panel *ngIf=\"model.isPanelShowing\" [model]='model.panel'></sv-ng-panel>\n <div *ngIf=\"model.isCommentShowing\" [class]=\"question.getCommentAreaCss(true)\" [question]=\"question\" [item]=\"model\" sv-ng-comment-choice></div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: CheckboxItemComponent, selector: "sv-ng-checkbox-item, '[sv-ng-checkbox-item]'", inputs: ["question", "model", "ariaLabel"] }, { type: RadiogroupItemComponent, selector: "sv-ng-radiogroup-item, '[sv-ng-radiogroup-item]'", inputs: ["question", "model", "ariaLabel"] }, { type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: PanelComponent, selector: "sv-ng-panel, '[sv-ng-panel]'", inputs: ["model"] }, { type: SurveyCommentChoiceComponent, selector: "sv-ng-comment-choice, '[sv-ng-comment-choice]'", inputs: ["question", "item"] }], directives: [{ type: i2__namespace.NgSwitch, selector: "[ngSwitch]", inputs: ["ngSwitch"] }, { type: i2__namespace.NgSwitchCase, selector: "[ngSwitchCase]", inputs: ["ngSwitchCase"] }, { type: i2__namespace.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
3356
3400
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SelectBaseItemComponent, decorators: [{
|
|
3357
3401
|
type: i0.Component,
|
|
3358
3402
|
args: [{
|
|
@@ -3498,12 +3542,15 @@
|
|
|
3498
3542
|
return this.model;
|
|
3499
3543
|
};
|
|
3500
3544
|
ListItemComponent.prototype.ngAfterViewInit = function () {
|
|
3501
|
-
|
|
3545
|
+
var _a;
|
|
3546
|
+
if (!!((_a = this.elementRef) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
3547
|
+
this.listModel.onItemRended(this.model, this.elementRef.nativeElement);
|
|
3548
|
+
}
|
|
3502
3549
|
};
|
|
3503
3550
|
return ListItemComponent;
|
|
3504
3551
|
}(BaseAngular));
|
|
3505
3552
|
ListItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ListItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3506
|
-
ListItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ListItemComponent, selector: "sv-ng-list-item, '[sv-ng-list-item]'", inputs: { element: "element", model: "model", listModel: "listModel" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <li [attr.role]=\"listModel.listItemRole\" [key2click]=\"{ processEsc: false, disableTabStop: model.disableTabStop }\" [visible]=\"listModel.isItemVisible(model)\" [class]=\"class\" \n [attr.id]=\"elementId\" [attr.aria-selected]=\"ariaSelected\" [attr.aria-checked]=\"ariaChecked\" (click)=\"click($event)\" (pointerdown)=\"pointerdown($event)\">\n <ng-container *ngIf=\"model.needSeparator\">\n <div [class]=\"listModel.cssClasses.itemSeparator\"></div>\n </ng-container>\n <div [class]=\"listModel.cssClasses.itemBody\" [style]=\"itemStyle\" [attr.title]=\"model.getTooltip()\"\n (mouseover)=\"listModel.onItemHover(model)\"\n (mouseleave)=\"listModel.onItemLeave(model)\">\n <ng-template [component]=\"{ name: itemComponent, data: { model: model, listModel: listModel } }\"></ng-template>\n </div>\n </li>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: VisibleDirective, selector: "[visible]", inputs: ["visible"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
3553
|
+
ListItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ListItemComponent, selector: "sv-ng-list-item, '[sv-ng-list-item]'", inputs: { element: "element", model: "model", listModel: "listModel" }, viewQueries: [{ propertyName: "elementRef", first: true, predicate: ["elementRef"], descendants: true }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <li #elementRef [attr.role]=\"listModel.listItemRole\" [key2click]=\"{ processEsc: false, disableTabStop: model.disableTabStop }\" [visible]=\"listModel.isItemVisible(model)\" [class]=\"class\" \n [attr.id]=\"elementId\" [attr.aria-selected]=\"ariaSelected\" [attr.aria-checked]=\"ariaChecked\" (click)=\"click($event)\" (pointerdown)=\"pointerdown($event)\">\n <ng-container *ngIf=\"model.needSeparator\">\n <div [class]=\"listModel.cssClasses.itemSeparator\"></div>\n </ng-container>\n <div [class]=\"listModel.cssClasses.itemBody\" [style]=\"itemStyle\" [attr.title]=\"model.getTooltip()\"\n (mouseover)=\"listModel.onItemHover(model)\"\n (mouseleave)=\"listModel.onItemLeave(model)\">\n <ng-template [component]=\"{ name: itemComponent, data: { model: model, listModel: listModel } }\"></ng-template>\n </div>\n </li>\n</ng-template>", styles: [":host{display:none}\n"], directives: [{ type: Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }, { type: VisibleDirective, selector: "[visible]", inputs: ["visible"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
3507
3554
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ListItemComponent, decorators: [{
|
|
3508
3555
|
type: i0.Component,
|
|
3509
3556
|
args: [{
|
|
@@ -3517,6 +3564,9 @@
|
|
|
3517
3564
|
type: i0.Input
|
|
3518
3565
|
}], listModel: [{
|
|
3519
3566
|
type: i0.Input
|
|
3567
|
+
}], elementRef: [{
|
|
3568
|
+
type: i0.ViewChild,
|
|
3569
|
+
args: ["elementRef"]
|
|
3520
3570
|
}] } });
|
|
3521
3571
|
AngularComponentFactory.Instance.registerComponent("sv-list-item", ListItemComponent);
|
|
3522
3572
|
|
|
@@ -3987,49 +4037,6 @@
|
|
|
3987
4037
|
}] } });
|
|
3988
4038
|
AngularComponentFactory.Instance.registerComponent("sv-navigation-toc", ProgressTocComponent);
|
|
3989
4039
|
|
|
3990
|
-
var PanelComponent = /** @class */ (function (_super) {
|
|
3991
|
-
__extends(PanelComponent, _super);
|
|
3992
|
-
function PanelComponent() {
|
|
3993
|
-
var _this = _super.apply(this, __spreadArray([], __read(arguments))) || this;
|
|
3994
|
-
_this.trackRowBy = function (_, row) {
|
|
3995
|
-
return row.id;
|
|
3996
|
-
};
|
|
3997
|
-
return _this;
|
|
3998
|
-
}
|
|
3999
|
-
PanelComponent.prototype.getModel = function () {
|
|
4000
|
-
return this.model;
|
|
4001
|
-
};
|
|
4002
|
-
PanelComponent.prototype.ngAfterViewInit = function () {
|
|
4003
|
-
var _a;
|
|
4004
|
-
if (!!((_a = this.panelContainerRef) === null || _a === void 0 ? void 0 : _a.nativeElement)) {
|
|
4005
|
-
this.model.afterRender(this.panelContainerRef.nativeElement);
|
|
4006
|
-
}
|
|
4007
|
-
};
|
|
4008
|
-
Object.defineProperty(PanelComponent.prototype, "canRender", {
|
|
4009
|
-
get: function () {
|
|
4010
|
-
return this.model && this.model.survey && this.model.getIsContentVisible();
|
|
4011
|
-
},
|
|
4012
|
-
enumerable: false,
|
|
4013
|
-
configurable: true
|
|
4014
|
-
});
|
|
4015
|
-
return PanelComponent;
|
|
4016
|
-
}(BaseAngular));
|
|
4017
|
-
PanelComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PanelComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4018
|
-
PanelComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: PanelComponent, selector: "sv-ng-panel, '[sv-ng-panel]'", inputs: { model: "model" }, viewQueries: [{ propertyName: "panelContainerRef", first: true, predicate: ["panelContainer"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div *ngIf=\"canRender\" [attr.id]=\"model.id\" [class]=\"model.getContainerCss()\" (focusin)=\"model.focusIn()\" #panelContainer>\n <div *ngIf=\"model.showErrorsAbovePanel && model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n <div *ngIf=\"model.hasDescription || model.hasTitle\" [element]=\"model\" sv-ng-element-header></div>\n <div *ngIf=\"!model.showErrorsAbovePanel && model.hasVisibleErrors\" [element]=\"model\" sv-ng-errors></div>\n <div *ngIf=\"model.renderedIsExpanded\" [style.paddingLeft]=\"model.innerPaddingLeft\" [class]=\"model.cssClasses.panel.content\" \n [attr.id]=\"model.contentId\" [attr.role]=\"model.ariaRole\" [attr.aria-labelledby]=\"model.ariaLabelledBy\"[attr.aria-label]=\"model.ariaLabel\">\n <ng-container *ngFor=\"let row of model.visibleRows; trackBy: trackRowBy\">\n <ng-template [component]=\"{ name: $any(model.survey).getRowWrapperComponentName(row), data: { componentData: $any(model.survey).getRowWrapperComponentData(row) } }\">\n <sv-ng-row [row]=\"row\"></sv-ng-row>\n </ng-template>\n </ng-container>\n <sv-ng-action-bar [model]=\"model.getFooterToolbar()\"></sv-ng-action-bar>\n </div>\n </div>\n</ng-template>", components: [{ type: ErrorsComponent, selector: "'[sv-ng-errors]'", inputs: ["element", "location"] }, { type: ElementHeaderComponent, selector: "'[sv-ng-element-header]'", inputs: ["element"] }, { type: RowComponent, selector: "sv-ng-row", inputs: ["row"] }, { type: ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
4019
|
-
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: PanelComponent, decorators: [{
|
|
4020
|
-
type: i0.Component,
|
|
4021
|
-
args: [{
|
|
4022
|
-
selector: "sv-ng-panel, '[sv-ng-panel]'",
|
|
4023
|
-
templateUrl: "./panel.component.html",
|
|
4024
|
-
}]
|
|
4025
|
-
}], propDecorators: { model: [{
|
|
4026
|
-
type: i0.Input
|
|
4027
|
-
}], panelContainerRef: [{
|
|
4028
|
-
type: i0.ViewChild,
|
|
4029
|
-
args: ["panelContainer", { static: false, read: i0.ElementRef }]
|
|
4030
|
-
}] } });
|
|
4031
|
-
AngularComponentFactory.Instance.registerComponent("panel", PanelComponent);
|
|
4032
|
-
|
|
4033
4040
|
var SurveyNavigationButton = /** @class */ (function () {
|
|
4034
4041
|
function SurveyNavigationButton() {
|
|
4035
4042
|
}
|
|
@@ -4232,7 +4239,7 @@
|
|
|
4232
4239
|
return SignaturePadQuestionComponent;
|
|
4233
4240
|
}(QuestionAngular));
|
|
4234
4241
|
SignaturePadQuestionComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SignaturePadQuestionComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
4235
|
-
SignaturePadQuestionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SignaturePadQuestionComponent, selector: "sv-ng-signature-component", usesInheritance: true, ngImport: i0__namespace, template: "<div\n[class]=\"model.cssClasses.root\"\n[style.width]=\"model.renderedCanvasWidth\" #contentElement>\n<div [class]=\"model.cssClasses.placeholder\" [visible]=\"model.needShowPlaceholder()\" [model]=\"$any(model).locRenderedPlaceholder\" sv-ng-string></div>\n<div>\n <img *ngIf=\"!!model.backgroundImage\" [src]=\"model.backgroundImage\" [style.width]=\"model.renderedCanvasWidth\" [class]=\"model.cssClasses.backgroundImage\" role=\"presentation\">\n <canvas tabindex=\"-1\" [class]=\"model.cssClasses.canvas\" (blur)=\"model.onBlur($event)\"></canvas>\n</div>\n<div [class]=\"model.cssClasses.controls\" *ngIf=\"model.canShowClearButton\">\n <button\n type=\"button\"\n [class]=\"model.cssClasses.clearButton\"\n [title]=\"model.clearButtonCaption\"\n (click)=\"model.
|
|
4242
|
+
SignaturePadQuestionComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SignaturePadQuestionComponent, selector: "sv-ng-signature-component", usesInheritance: true, ngImport: i0__namespace, template: "<div\n[class]=\"model.cssClasses.root\"\n[style.width]=\"model.renderedCanvasWidth\" #contentElement>\n<div [class]=\"model.cssClasses.placeholder\" [visible]=\"model.needShowPlaceholder()\" [model]=\"$any(model).locRenderedPlaceholder\" sv-ng-string></div>\n<div>\n <img *ngIf=\"!!model.backgroundImage\" [src]=\"model.backgroundImage\" [style.width]=\"model.renderedCanvasWidth\" [class]=\"model.cssClasses.backgroundImage\" role=\"presentation\">\n <canvas tabindex=\"-1\" [class]=\"model.cssClasses.canvas\" (blur)=\"model.onBlur($event)\"></canvas>\n</div>\n<div [class]=\"model.cssClasses.controls\" *ngIf=\"model.canShowClearButton\">\n <button\n type=\"button\"\n [class]=\"model.cssClasses.clearButton\"\n [title]=\"model.clearButtonCaption\"\n (click)=\"model.clearValueFromUI()\"\n >\n <span *ngIf=\"!model.cssClasses.clearButtonIconId\">\u2716</span>\n <svg\n *ngIf=\"model.cssClasses.clearButtonIconId\"\n [iconName]=\"model.cssClasses.clearButtonIconId\"\n [size]=\"'auto'\" sv-ng-svg-icon></svg>\n </button>\n</div>\n<ng-container *ngIf=\"model.showLoadingIndicator\">\n <div [class]=\"model.cssClasses.loadingIndicator\">\n <sv-ng-loading-indicator></sv-ng-loading-indicator>\n </div>\n</ng-container>\n</div>", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: LoadingIndicatorComponent, selector: "sv-ng-loading-indicator" }], directives: [{ type: VisibleDirective, selector: "[visible]", inputs: ["visible"] }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
4236
4243
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SignaturePadQuestionComponent, decorators: [{
|
|
4237
4244
|
type: i0.Component,
|
|
4238
4245
|
args: [{
|
|
@@ -5090,7 +5097,7 @@
|
|
|
5090
5097
|
return MatrixTableComponent;
|
|
5091
5098
|
}(BaseAngular));
|
|
5092
5099
|
MatrixTableComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MatrixTableComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5093
|
-
MatrixTableComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MatrixTableComponent, selector: "sv-ng-matrix-table", inputs: { question: "question", table: "table" }, usesInheritance: true, ngImport: i0__namespace, template: "<div #contentElement [class]=\"question.cssClasses.tableWrapper\"
|
|
5100
|
+
MatrixTableComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MatrixTableComponent, selector: "sv-ng-matrix-table", inputs: { question: "question", table: "table" }, usesInheritance: true, ngImport: i0__namespace, template: "<div #contentElement [class]=\"question.cssClasses.tableWrapper\">\n <table [class]=\"question.getTableCss()\">\n <thead *ngIf=\"table.showHeader\">\n <tr>\n <ng-container *ngFor=\"let cell of table.headerRow.cells; trackBy: trackCellBy\">\n <th *ngIf=\"cell.hasTitle\" [class]=\"cell.className\" [style]=\"{ minWidth: cell.minWidth, width: cell.width }\">\n <ng-template\n [component]=\"{ name: question.getColumnHeaderWrapperComponentName($any(cell)), data: { componentData: question.getColumnHeaderWrapperComponentData($any(cell)) } }\">\n <sv-ng-string [model]=\"cell.locTitle\"></sv-ng-string>\n <sv-ng-matrixheaderrequired *ngIf=\"!!cell.column\" [column]=\"cell.column\" [question]=\"question\">\n </sv-ng-matrixheaderrequired>\n </ng-template>\n </th>\n\n <td *ngIf=\"!cell.hasTitle\" [class]=\"cell.className\" [style]=\"{ minWidth: cell.minWidth, width: cell.width }\">\n </td>\n </ng-container>\n </tr>\n </thead>\n <tbody>\n <ng-container *ngFor=\"let row of table.renderedRows; trackBy: trackRowBy\">\n <sv-ng-matrix-row [model]=\"row\" [question]=\"question\"></sv-ng-matrix-row>\n </ng-container>\n </tbody>\n <tfoot *ngIf=\"table.showFooter\">\n <tr>\n <sv-ng-matrixdropdown-cell [cell]=\"cell\" [question]=\"question\"\n *ngFor=\"let cell of table.footerRow.cells; trackBy: trackCellBy\">\n </sv-ng-matrixdropdown-cell>\n </tr>\n </tfoot>\n </table>\n</div>", components: [{ type: SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: MatrixRequiredHeader, selector: "sv-ng-matrixheaderrequired", inputs: ["column", "question"] }, { type: MatrixRowComponent, selector: "sv-ng-matrix-row", inputs: ["model", "question"] }, { type: MatrixDropdownCellComponent, selector: "sv-ng-matrixdropdown-cell", inputs: ["question", "cell"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i2__namespace.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { type: DynamicComponentDirective, selector: "[component]", inputs: ["component"] }] });
|
|
5094
5101
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MatrixTableComponent, decorators: [{
|
|
5095
5102
|
type: i0.Component,
|
|
5096
5103
|
args: [{
|
|
@@ -5150,7 +5157,7 @@
|
|
|
5150
5157
|
return MatrixDynamicComponent;
|
|
5151
5158
|
}(QuestionAngular));
|
|
5152
5159
|
MatrixDynamicComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MatrixDynamicComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
5153
|
-
MatrixDynamicComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MatrixDynamicComponent, selector: "sv-ng-matrixdynamic-question", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div #contentElement>\n <div *ngIf=\"model.renderedTable.showAddRowOnTop\" [class]=\"model.cssClasses.footer\">\n <ng-container *ngTemplateOutlet=\"addRowButton\"></ng-container>\n </div>\n <sv-ng-matrix-table *ngIf=\"model.renderedTable?.showTable\" [question]=\"model\" [table]=\"model.renderedTable\"></sv-ng-matrix-table>\n <sv-ng-placeholder-matrixdynamic *ngIf=\"!model.renderedTable.showTable\" [question]=\"model\"></sv-ng-placeholder-matrixdynamic>\n \n <div *ngIf=\"model.renderedTable.showAddRowOnBottom\" [class]=\"model.cssClasses.footer\">\n <ng-container *ngTemplateOutlet=\"addRowButton\"></ng-container>\n </div>\n </div>\n <ng-template #addRowButton>\n <button type=\"button\" [class]=\"model.getAddRowButtonCss(true)\" (click)=\"model.addRowUI()\">\n <sv-ng-string [model]=\"model.locAddRowText\" ></sv-ng-string>\n <span [class]=\"model.cssClasses.iconAdd\"></span>\n </button>\n </ng-template>\n</ng-template>", components: [{ type: MatrixTableComponent, selector: "sv-ng-matrix-table", inputs: ["question", "table"] }, { type: MatrixDynamicPlaceholderComponent, selector: "sv-ng-placeholder-matrixdynamic", inputs: ["question"] }, { 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.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
5160
|
+
MatrixDynamicComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: MatrixDynamicComponent, selector: "sv-ng-matrixdynamic-question", usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div #contentElement>\n <div *ngIf=\"model.renderedTable.showAddRowOnTop\" [class]=\"model.cssClasses.footer\">\n <ng-container *ngTemplateOutlet=\"addRowButton\"></ng-container>\n </div>\n <sv-ng-matrix-table *ngIf=\"model.renderedTable?.showTable\" [question]=\"model\" [table]=\"model.renderedTable\"></sv-ng-matrix-table>\n <sv-ng-placeholder-matrixdynamic *ngIf=\"!model.renderedTable.showTable\" [question]=\"model\"></sv-ng-placeholder-matrixdynamic>\n \n <div *ngIf=\"model.renderedTable.showAddRowOnBottom\" [class]=\"model.cssClasses.footer\">\n <ng-container *ngTemplateOutlet=\"addRowButton\"></ng-container>\n </div>\n </div>\n <ng-template #addRowButton>\n <button type=\"button\" [class]=\"model.getAddRowButtonCss(true)\" (click)=\"model.addRowUI()\">\n <sv-ng-string [model]=\"model.locAddRowText\" ></sv-ng-string>\n <span [class]=\"model.cssClasses.iconAdd\">\n <svg *ngIf=\"model.cssClasses.iconAddId\">\n <use [attr.xlink:href]=\"model.cssClasses.iconAddId\"></use>\n </svg>\n </span>\n </button>\n </ng-template>\n</ng-template>", components: [{ type: MatrixTableComponent, selector: "sv-ng-matrix-table", inputs: ["question", "table"] }, { type: MatrixDynamicPlaceholderComponent, selector: "sv-ng-placeholder-matrixdynamic", inputs: ["question"] }, { 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.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet"] }] });
|
|
5154
5161
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: MatrixDynamicComponent, decorators: [{
|
|
5155
5162
|
type: i0.Component,
|
|
5156
5163
|
args: [{
|