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.
|
@@ -2,12 +2,13 @@ import { Component, Input } from "@angular/core";
|
|
|
2
2
|
import { EmbeddedViewContentComponent } from "../../embedded-view-content.component";
|
|
3
3
|
import * as i0 from "@angular/core";
|
|
4
4
|
import * as i1 from "./dynamic-head.component";
|
|
5
|
-
import * as i2 from "
|
|
6
|
-
import * as i3 from "
|
|
5
|
+
import * as i2 from "../svg-icon/svg-icon.component";
|
|
6
|
+
import * as i3 from "./title-actions.component";
|
|
7
|
+
import * as i4 from "@angular/common";
|
|
7
8
|
export class ElementTitleComponent extends EmbeddedViewContentComponent {
|
|
8
9
|
}
|
|
9
10
|
ElementTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ElementTitleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
10
|
-
ElementTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ElementTitleComponent, selector: "sv-ng-element-title", inputs: { element: "element" }, usesInheritance: true, ngImport: i0, 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: i1.DynamicHeadComponent, selector: "sv-ng-dynamic-head", inputs: ["tagName", "element"] }, { type: i2.ElementTitleActionsComponent, selector: "sv-ng-element-title-actions", inputs: ["element"] }], directives: [{ type:
|
|
11
|
+
ElementTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ElementTitleComponent, selector: "sv-ng-element-title", inputs: { element: "element" }, usesInheritance: true, ngImport: i0, 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: i1.DynamicHeadComponent, selector: "sv-ng-dynamic-head", inputs: ["tagName", "element"] }, { type: i2.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: i3.ElementTitleActionsComponent, selector: "sv-ng-element-title-actions", inputs: ["element"] }], directives: [{ type: i4.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
11
12
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ElementTitleComponent, decorators: [{
|
|
12
13
|
type: Component,
|
|
13
14
|
args: [{
|
|
@@ -18,4 +19,4 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
18
19
|
}], propDecorators: { element: [{
|
|
19
20
|
type: Input
|
|
20
21
|
}] } });
|
|
21
|
-
//# sourceMappingURL=data:application/json;base64,
|
|
22
|
+
//# sourceMappingURL=data:application/json;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiZWxlbWVudC10aXRsZS5jb21wb25lbnQuanMiLCJzb3VyY2VSb290IjoiIiwic291cmNlcyI6WyIuLi8uLi8uLi8uLi9zcmMvY29tcG9uZW50cy9lbGVtZW50LXRpdGx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
|
}] } });
|
|
503
503
|
|
|
504
|
+
class SvgIconComponent {
|
|
505
|
+
constructor(viewContaierRef) {
|
|
506
|
+
this.viewContaierRef = viewContaierRef;
|
|
507
|
+
}
|
|
508
|
+
createSvg() {
|
|
509
|
+
if (!!this.iconName) {
|
|
510
|
+
Survey.createSvg(this.size, this.width, this.height, this.iconName, this.viewContaierRef.element.nativeElement, this.title);
|
|
511
|
+
}
|
|
512
|
+
}
|
|
513
|
+
get rootClass() {
|
|
514
|
+
let className = "sv-svg-icon";
|
|
515
|
+
if (!this.css && !!this.partCss) {
|
|
516
|
+
className += " " + this.partCss;
|
|
517
|
+
}
|
|
518
|
+
else if (!!this.css) {
|
|
519
|
+
className = this.css;
|
|
520
|
+
}
|
|
521
|
+
return className;
|
|
522
|
+
}
|
|
523
|
+
get rootRole() {
|
|
524
|
+
return "img";
|
|
525
|
+
}
|
|
526
|
+
ngOnChanges() {
|
|
527
|
+
const el = this.viewContaierRef.element.nativeElement;
|
|
528
|
+
el.innerHTML = "";
|
|
529
|
+
el.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "use"));
|
|
530
|
+
this.createSvg();
|
|
531
|
+
}
|
|
532
|
+
}
|
|
533
|
+
SvgIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SvgIconComponent, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
534
|
+
SvgIconComponent.ɵcmp = i0.ɵɵ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, template: "", isInline: true });
|
|
535
|
+
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SvgIconComponent, decorators: [{
|
|
536
|
+
type: Component,
|
|
537
|
+
args: [{
|
|
538
|
+
selector: "'[sv-ng-svg-icon]'",
|
|
539
|
+
template: ""
|
|
540
|
+
}]
|
|
541
|
+
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { size: [{
|
|
542
|
+
type: Input
|
|
543
|
+
}], width: [{
|
|
544
|
+
type: Input
|
|
545
|
+
}], height: [{
|
|
546
|
+
type: Input
|
|
547
|
+
}], iconName: [{
|
|
548
|
+
type: Input
|
|
549
|
+
}], partCss: [{
|
|
550
|
+
type: Input
|
|
551
|
+
}], css: [{
|
|
552
|
+
type: Input
|
|
553
|
+
}], title: [{
|
|
554
|
+
type: Input
|
|
555
|
+
}], rootClass: [{
|
|
556
|
+
type: HostBinding,
|
|
557
|
+
args: ["class"]
|
|
558
|
+
}], rootRole: [{
|
|
559
|
+
type: HostBinding,
|
|
560
|
+
args: ["[attr.role]"]
|
|
561
|
+
}] } });
|
|
562
|
+
|
|
504
563
|
class SurveyStringComponent {
|
|
505
564
|
}
|
|
506
565
|
SurveyStringComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SurveyStringComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
|
|
@@ -536,7 +595,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
536
595
|
class ElementTitleComponent extends EmbeddedViewContentComponent {
|
|
537
596
|
}
|
|
538
597
|
ElementTitleComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ElementTitleComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
|
|
539
|
-
ElementTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ElementTitleComponent, selector: "sv-ng-element-title", inputs: { element: "element" }, usesInheritance: true, ngImport: i0, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
598
|
+
ElementTitleComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ElementTitleComponent, selector: "sv-ng-element-title", inputs: { element: "element" }, usesInheritance: true, ngImport: i0, 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.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
|
|
540
599
|
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: ElementTitleComponent, decorators: [{
|
|
541
600
|
type: Component,
|
|
542
601
|
args: [{
|
|
@@ -922,65 +981,6 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImpo
|
|
|
922
981
|
type: Input
|
|
923
982
|
}] } });
|
|
924
983
|
|
|
925
|
-
class SvgIconComponent {
|
|
926
|
-
constructor(viewContaierRef) {
|
|
927
|
-
this.viewContaierRef = viewContaierRef;
|
|
928
|
-
}
|
|
929
|
-
createSvg() {
|
|
930
|
-
if (!!this.iconName) {
|
|
931
|
-
Survey.createSvg(this.size, this.width, this.height, this.iconName, this.viewContaierRef.element.nativeElement, this.title);
|
|
932
|
-
}
|
|
933
|
-
}
|
|
934
|
-
get rootClass() {
|
|
935
|
-
let className = "sv-svg-icon";
|
|
936
|
-
if (!this.css && !!this.partCss) {
|
|
937
|
-
className += " " + this.partCss;
|
|
938
|
-
}
|
|
939
|
-
else if (!!this.css) {
|
|
940
|
-
className = this.css;
|
|
941
|
-
}
|
|
942
|
-
return className;
|
|
943
|
-
}
|
|
944
|
-
get rootRole() {
|
|
945
|
-
return "img";
|
|
946
|
-
}
|
|
947
|
-
ngOnChanges() {
|
|
948
|
-
const el = this.viewContaierRef.element.nativeElement;
|
|
949
|
-
el.innerHTML = "";
|
|
950
|
-
el.appendChild(document.createElementNS("http://www.w3.org/2000/svg", "use"));
|
|
951
|
-
this.createSvg();
|
|
952
|
-
}
|
|
953
|
-
}
|
|
954
|
-
SvgIconComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SvgIconComponent, deps: [{ token: i0.ViewContainerRef }], target: i0.ɵɵFactoryTarget.Component });
|
|
955
|
-
SvgIconComponent.ɵcmp = i0.ɵɵ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, template: "", isInline: true });
|
|
956
|
-
i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0, type: SvgIconComponent, decorators: [{
|
|
957
|
-
type: Component,
|
|
958
|
-
args: [{
|
|
959
|
-
selector: "'[sv-ng-svg-icon]'",
|
|
960
|
-
template: ""
|
|
961
|
-
}]
|
|
962
|
-
}], ctorParameters: function () { return [{ type: i0.ViewContainerRef }]; }, propDecorators: { size: [{
|
|
963
|
-
type: Input
|
|
964
|
-
}], width: [{
|
|
965
|
-
type: Input
|
|
966
|
-
}], height: [{
|
|
967
|
-
type: Input
|
|
968
|
-
}], iconName: [{
|
|
969
|
-
type: Input
|
|
970
|
-
}], partCss: [{
|
|
971
|
-
type: Input
|
|
972
|
-
}], css: [{
|
|
973
|
-
type: Input
|
|
974
|
-
}], title: [{
|
|
975
|
-
type: Input
|
|
976
|
-
}], rootClass: [{
|
|
977
|
-
type: HostBinding,
|
|
978
|
-
args: ["class"]
|
|
979
|
-
}], rootRole: [{
|
|
980
|
-
type: HostBinding,
|
|
981
|
-
args: ["[attr.role]"]
|
|
982
|
-
}] } });
|
|
983
|
-
|
|
984
984
|
class PopupSurveyComponent extends BaseAngular {
|
|
985
985
|
constructor(changeDetectorRef) {
|
|
986
986
|
super(changeDetectorRef);
|