survey-angular-ui 1.12.7 → 1.12.9

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.
@@ -381,14 +381,24 @@
381
381
  }) : function (o, v) {
382
382
  o["default"] = v;
383
383
  };
384
+ var ownKeys = function (o) {
385
+ ownKeys = Object.getOwnPropertyNames || function (o) {
386
+ var ar = [];
387
+ for (var k in o)
388
+ if (Object.prototype.hasOwnProperty.call(o, k))
389
+ ar[ar.length] = k;
390
+ return ar;
391
+ };
392
+ return ownKeys(o);
393
+ };
384
394
  function __importStar(mod) {
385
395
  if (mod && mod.__esModule)
386
396
  return mod;
387
397
  var result = {};
388
398
  if (mod != null)
389
- for (var k in mod)
390
- if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k))
391
- __createBinding(result, mod, k);
399
+ for (var k = ownKeys(mod), i = 0; i < k.length; i++)
400
+ if (k[i] !== "default")
401
+ __createBinding(result, mod, k[i]);
392
402
  __setModuleDefault(result, mod);
393
403
  return result;
394
404
  }
@@ -1076,6 +1086,74 @@
1076
1086
  type: i0.Input
1077
1087
  }] } });
1078
1088
 
1089
+ var SvgIconComponent = /** @class */ (function () {
1090
+ function SvgIconComponent(viewContaierRef) {
1091
+ this.viewContaierRef = viewContaierRef;
1092
+ }
1093
+ SvgIconComponent.prototype.createSvg = function () {
1094
+ if (!!this.iconName) {
1095
+ Survey__namespace.createSvg(this.size, this.width, this.height, this.iconName, this.viewContaierRef.element.nativeElement, this.title);
1096
+ }
1097
+ };
1098
+ Object.defineProperty(SvgIconComponent.prototype, "rootClass", {
1099
+ get: function () {
1100
+ var className = "sv-svg-icon";
1101
+ if (!this.css && !!this.partCss) {
1102
+ className += " " + this.partCss;
1103
+ }
1104
+ else if (!!this.css) {
1105
+ className = this.css;
1106
+ }
1107
+ return className;
1108
+ },
1109
+ enumerable: false,
1110
+ configurable: true
1111
+ });
1112
+ Object.defineProperty(SvgIconComponent.prototype, "rootRole", {
1113
+ get: function () {
1114
+ return "img";
1115
+ },
1116
+ enumerable: false,
1117
+ configurable: true
1118
+ });
1119
+ SvgIconComponent.prototype.ngOnChanges = function () {
1120
+ var el = this.viewContaierRef.element.nativeElement;
1121
+ el.innerHTML = "";
1122
+ el.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "use"));
1123
+ this.createSvg();
1124
+ };
1125
+ return SvgIconComponent;
1126
+ }());
1127
+ SvgIconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SvgIconComponent, deps: [{ token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
1128
+ SvgIconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: { size: "size", width: "width", height: "height", iconName: "iconName", partCss: "partCss", css: "css", title: "title" }, host: { properties: { "class": "this.rootClass", "[attr.role]": "this.rootRole" } }, usesOnChanges: true, ngImport: i0__namespace, template: "", isInline: true });
1129
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SvgIconComponent, decorators: [{
1130
+ type: i0.Component,
1131
+ args: [{
1132
+ selector: "'[sv-ng-svg-icon]'",
1133
+ template: ""
1134
+ }]
1135
+ }], ctorParameters: function () { return [{ type: i0__namespace.ViewContainerRef }]; }, propDecorators: { size: [{
1136
+ type: i0.Input
1137
+ }], width: [{
1138
+ type: i0.Input
1139
+ }], height: [{
1140
+ type: i0.Input
1141
+ }], iconName: [{
1142
+ type: i0.Input
1143
+ }], partCss: [{
1144
+ type: i0.Input
1145
+ }], css: [{
1146
+ type: i0.Input
1147
+ }], title: [{
1148
+ type: i0.Input
1149
+ }], rootClass: [{
1150
+ type: i0.HostBinding,
1151
+ args: ["class"]
1152
+ }], rootRole: [{
1153
+ type: i0.HostBinding,
1154
+ args: ["[attr.role]"]
1155
+ }] } });
1156
+
1079
1157
  var SurveyStringComponent = /** @class */ (function () {
1080
1158
  function SurveyStringComponent() {
1081
1159
  }
@@ -1128,7 +1206,7 @@
1128
1206
  return ElementTitleComponent;
1129
1207
  }(EmbeddedViewContentComponent));
1130
1208
  ElementTitleComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ElementTitleComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
1131
- ElementTitleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ElementTitleComponent, selector: "sv-ng-element-title", inputs: { element: "element" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <sv-ng-dynamic-head [tagName]=\"element.titleTagName\" [element]=\"element\" *ngIf=\"element.hasTitle\">\n <sv-ng-element-title-actions [element]=\"element\"></sv-ng-element-title-actions>\n </sv-ng-dynamic-head>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: DynamicHeadComponent, selector: "sv-ng-dynamic-head", inputs: ["tagName", "element"] }, { type: ElementTitleActionsComponent, selector: "sv-ng-element-title-actions", inputs: ["element"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1209
+ ElementTitleComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ElementTitleComponent, selector: "sv-ng-element-title", inputs: { element: "element" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <sv-ng-dynamic-head [tagName]=\"element.titleTagName\" [element]=\"element\" *ngIf=\"element.hasTitle\">\n <svg *ngIf=\"!element.isExpanded && element.getCssTitleExpandableSvg()\" [iconName]=\"'icon-expand-16x16'\" [partCss]=\"element.getCssTitleExpandableSvg()\" [size]=\"'16'\" sv-ng-svg-icon></svg>\n <svg *ngIf=\"element.isExpanded && element.getCssTitleExpandableSvg()\" [iconName]=\"'icon-collapse-16x16'\" [partCss]=\"element.getCssTitleExpandableSvg()\" [size]=\"'16'\" sv-ng-svg-icon></svg>\n <sv-ng-element-title-actions [element]=\"element\"></sv-ng-element-title-actions>\n </sv-ng-dynamic-head>\n</ng-template>", styles: [":host{display:none}\n"], components: [{ type: DynamicHeadComponent, selector: "sv-ng-dynamic-head", inputs: ["tagName", "element"] }, { type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: ElementTitleActionsComponent, selector: "sv-ng-element-title-actions", inputs: ["element"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
1132
1210
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ElementTitleComponent, decorators: [{
1133
1211
  type: i0.Component,
1134
1212
  args: [{
@@ -1580,74 +1658,6 @@
1580
1658
  type: i0.Input
1581
1659
  }] } });
1582
1660
 
1583
- var SvgIconComponent = /** @class */ (function () {
1584
- function SvgIconComponent(viewContaierRef) {
1585
- this.viewContaierRef = viewContaierRef;
1586
- }
1587
- SvgIconComponent.prototype.createSvg = function () {
1588
- if (!!this.iconName) {
1589
- Survey__namespace.createSvg(this.size, this.width, this.height, this.iconName, this.viewContaierRef.element.nativeElement, this.title);
1590
- }
1591
- };
1592
- Object.defineProperty(SvgIconComponent.prototype, "rootClass", {
1593
- get: function () {
1594
- var className = "sv-svg-icon";
1595
- if (!this.css && !!this.partCss) {
1596
- className += " " + this.partCss;
1597
- }
1598
- else if (!!this.css) {
1599
- className = this.css;
1600
- }
1601
- return className;
1602
- },
1603
- enumerable: false,
1604
- configurable: true
1605
- });
1606
- Object.defineProperty(SvgIconComponent.prototype, "rootRole", {
1607
- get: function () {
1608
- return "img";
1609
- },
1610
- enumerable: false,
1611
- configurable: true
1612
- });
1613
- SvgIconComponent.prototype.ngOnChanges = function () {
1614
- var el = this.viewContaierRef.element.nativeElement;
1615
- el.innerHTML = "";
1616
- el.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "use"));
1617
- this.createSvg();
1618
- };
1619
- return SvgIconComponent;
1620
- }());
1621
- SvgIconComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SvgIconComponent, deps: [{ token: i0__namespace.ViewContainerRef }], target: i0__namespace.ɵɵFactoryTarget.Component });
1622
- SvgIconComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: { size: "size", width: "width", height: "height", iconName: "iconName", partCss: "partCss", css: "css", title: "title" }, host: { properties: { "class": "this.rootClass", "[attr.role]": "this.rootRole" } }, usesOnChanges: true, ngImport: i0__namespace, template: "", isInline: true });
1623
- i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SvgIconComponent, decorators: [{
1624
- type: i0.Component,
1625
- args: [{
1626
- selector: "'[sv-ng-svg-icon]'",
1627
- template: ""
1628
- }]
1629
- }], ctorParameters: function () { return [{ type: i0__namespace.ViewContainerRef }]; }, propDecorators: { size: [{
1630
- type: i0.Input
1631
- }], width: [{
1632
- type: i0.Input
1633
- }], height: [{
1634
- type: i0.Input
1635
- }], iconName: [{
1636
- type: i0.Input
1637
- }], partCss: [{
1638
- type: i0.Input
1639
- }], css: [{
1640
- type: i0.Input
1641
- }], title: [{
1642
- type: i0.Input
1643
- }], rootClass: [{
1644
- type: i0.HostBinding,
1645
- args: ["class"]
1646
- }], rootRole: [{
1647
- type: i0.HostBinding,
1648
- args: ["[attr.role]"]
1649
- }] } });
1650
-
1651
1661
  var PopupSurveyComponent = /** @class */ (function (_super) {
1652
1662
  __extends(PopupSurveyComponent, _super);
1653
1663
  function PopupSurveyComponent(changeDetectorRef) {