survey-creator-angular 1.9.81 → 1.9.83

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/angular-ui.d.ts CHANGED
@@ -50,3 +50,5 @@ export * from "./question-widget.component";
50
50
  export * from "./toolbox/toolbox.component";
51
51
  export * from "./adorners/question-rating.component";
52
52
  export * from "./header/logo-image.component";
53
+ export * from "./custom-questions/spin-editor.component";
54
+ export * from "./custom-questions/color.component";
@@ -49,11 +49,13 @@ import * as i47 from "./question-widget.component";
49
49
  import * as i48 from "./toolbox/toolbox.component";
50
50
  import * as i49 from "./header/logo-image.component";
51
51
  import * as i50 from "./adorners/question-rating.component";
52
- import * as i51 from "@angular/common";
53
- import * as i52 from "@angular/forms";
54
- import * as i53 from "survey-angular-ui";
52
+ import * as i51 from "./custom-questions/spin-editor.component";
53
+ import * as i52 from "./custom-questions/color.component";
54
+ import * as i53 from "@angular/common";
55
+ import * as i54 from "@angular/forms";
56
+ import * as i55 from "survey-angular-ui";
55
57
  export declare class SurveyCreatorModule {
56
58
  static ɵfac: i0.ɵɵFactoryDeclaration<SurveyCreatorModule, never>;
57
- static ɵmod: i0.ɵɵNgModuleDeclaration<SurveyCreatorModule, [typeof i1.CreatorComponent, typeof i2.DesignerTabComponent, typeof i3.PageDesignerComponent, typeof i4.QuestionDesignerComponent, typeof i5.PanelDesignerComponent, typeof i6.SvgBundleComponent, typeof i7.TabbledMenuComponent, typeof i8.TabbedMenuItemComponent, typeof i9.TabbedMenuItemWrapperComponent, typeof i10.SidebarComponent, typeof i11.SidebarTabComponent, typeof i12.ObjectSelectorComponent, typeof i13.PropertyGridComponent, typeof i14.TextareaJsonEditorComponent, typeof i15.AceJsonEditorComponent, typeof i16.LogicTabComponent, typeof i17.LogicAddButtonComponent, typeof i18.ActionButtonComponent, typeof i19.LinkValueQuestionComponent, typeof i20.EmbeddedSurveyQuestionComponent, typeof i21.TranslationTabComponent, typeof i22.TranslationSkeletonComponent, typeof i23.SimulatorComponent, typeof i24.TestTabComponent, typeof i25.TestAgainActionComponent, typeof i26.SurveyResultsComponent, typeof i27.SurveyResultsTableRowComponent, typeof i28.AdaptiveToolboxComponent, typeof i29.ToolboxToolComponent, typeof i30.ToolboxItemComponent, typeof i31.ToolboxCategoryComponent, typeof i32.StringEditorComponent, typeof i33.PageNavigatorComponent, typeof i34.PageNavigatorItemComponent, typeof i35.QuestionDropdownDesignerComponent, typeof i35.QuestionDropdownAdornerDesignerComponent, typeof i36.QuestionImageDesignerComponent, typeof i36.QuestionImageAdornerDesignerComponent, typeof i37.ItemValueDesignerComponent, typeof i38.ImageItemValueDesignerComponent, typeof i39.LogicOperatorComponent, typeof i40.MatrixCellComponent, typeof i41.QuestionEditorComponent, typeof i42.CellQuestionDropdownComponent, typeof i43.CreatorRowComponent, typeof i44.DesignerPagesComponent, typeof i45.DesignerSurveyComponent, typeof i46.CellQuestionComponent, typeof i47.QuestionWidgetDesignerComponent, typeof i48.ToolboxComponent, typeof i49.CreatorLogoImageComponent, typeof i50.QuestionRatingAdornerDesignerComponent, typeof i50.QuestionRatingDesignerComponent], [typeof i51.CommonModule, typeof i52.FormsModule, typeof i53.SurveyModule], [typeof i1.CreatorComponent, typeof i2.DesignerTabComponent, typeof i3.PageDesignerComponent, typeof i4.QuestionDesignerComponent, typeof i5.PanelDesignerComponent, typeof i6.SvgBundleComponent, typeof i7.TabbledMenuComponent, typeof i8.TabbedMenuItemComponent, typeof i9.TabbedMenuItemWrapperComponent, typeof i10.SidebarComponent, typeof i11.SidebarTabComponent, typeof i12.ObjectSelectorComponent, typeof i13.PropertyGridComponent, typeof i14.TextareaJsonEditorComponent, typeof i15.AceJsonEditorComponent, typeof i16.LogicTabComponent, typeof i17.LogicAddButtonComponent, typeof i18.ActionButtonComponent, typeof i19.LinkValueQuestionComponent, typeof i20.EmbeddedSurveyQuestionComponent, typeof i21.TranslationTabComponent, typeof i22.TranslationSkeletonComponent, typeof i23.SimulatorComponent, typeof i24.TestTabComponent, typeof i25.TestAgainActionComponent, typeof i26.SurveyResultsComponent, typeof i27.SurveyResultsTableRowComponent, typeof i28.AdaptiveToolboxComponent, typeof i29.ToolboxToolComponent, typeof i30.ToolboxItemComponent, typeof i31.ToolboxCategoryComponent, typeof i32.StringEditorComponent, typeof i33.PageNavigatorComponent, typeof i34.PageNavigatorItemComponent, typeof i35.QuestionDropdownDesignerComponent, typeof i35.QuestionDropdownAdornerDesignerComponent, typeof i36.QuestionImageDesignerComponent, typeof i36.QuestionImageAdornerDesignerComponent, typeof i37.ItemValueDesignerComponent, typeof i38.ImageItemValueDesignerComponent, typeof i39.LogicOperatorComponent, typeof i40.MatrixCellComponent, typeof i41.QuestionEditorComponent, typeof i42.CellQuestionDropdownComponent, typeof i43.CreatorRowComponent, typeof i44.DesignerPagesComponent, typeof i45.DesignerSurveyComponent, typeof i46.CellQuestionComponent, typeof i47.QuestionWidgetDesignerComponent, typeof i48.ToolboxComponent, typeof i49.CreatorLogoImageComponent, typeof i50.QuestionRatingAdornerDesignerComponent, typeof i50.QuestionRatingDesignerComponent]>;
59
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SurveyCreatorModule, [typeof i1.CreatorComponent, typeof i2.DesignerTabComponent, typeof i3.PageDesignerComponent, typeof i4.QuestionDesignerComponent, typeof i5.PanelDesignerComponent, typeof i6.SvgBundleComponent, typeof i7.TabbledMenuComponent, typeof i8.TabbedMenuItemComponent, typeof i9.TabbedMenuItemWrapperComponent, typeof i10.SidebarComponent, typeof i11.SidebarTabComponent, typeof i12.ObjectSelectorComponent, typeof i13.PropertyGridComponent, typeof i14.TextareaJsonEditorComponent, typeof i15.AceJsonEditorComponent, typeof i16.LogicTabComponent, typeof i17.LogicAddButtonComponent, typeof i18.ActionButtonComponent, typeof i19.LinkValueQuestionComponent, typeof i20.EmbeddedSurveyQuestionComponent, typeof i21.TranslationTabComponent, typeof i22.TranslationSkeletonComponent, typeof i23.SimulatorComponent, typeof i24.TestTabComponent, typeof i25.TestAgainActionComponent, typeof i26.SurveyResultsComponent, typeof i27.SurveyResultsTableRowComponent, typeof i28.AdaptiveToolboxComponent, typeof i29.ToolboxToolComponent, typeof i30.ToolboxItemComponent, typeof i31.ToolboxCategoryComponent, typeof i32.StringEditorComponent, typeof i33.PageNavigatorComponent, typeof i34.PageNavigatorItemComponent, typeof i35.QuestionDropdownDesignerComponent, typeof i35.QuestionDropdownAdornerDesignerComponent, typeof i36.QuestionImageDesignerComponent, typeof i36.QuestionImageAdornerDesignerComponent, typeof i37.ItemValueDesignerComponent, typeof i38.ImageItemValueDesignerComponent, typeof i39.LogicOperatorComponent, typeof i40.MatrixCellComponent, typeof i41.QuestionEditorComponent, typeof i42.CellQuestionDropdownComponent, typeof i43.CreatorRowComponent, typeof i44.DesignerPagesComponent, typeof i45.DesignerSurveyComponent, typeof i46.CellQuestionComponent, typeof i47.QuestionWidgetDesignerComponent, typeof i48.ToolboxComponent, typeof i49.CreatorLogoImageComponent, typeof i50.QuestionRatingAdornerDesignerComponent, typeof i50.QuestionRatingDesignerComponent, typeof i51.QuestionSpinEditorComponent, typeof i52.QuestionColorComponent], [typeof i53.CommonModule, typeof i54.FormsModule, typeof i55.SurveyModule], [typeof i1.CreatorComponent, typeof i2.DesignerTabComponent, typeof i3.PageDesignerComponent, typeof i4.QuestionDesignerComponent, typeof i5.PanelDesignerComponent, typeof i6.SvgBundleComponent, typeof i7.TabbledMenuComponent, typeof i8.TabbedMenuItemComponent, typeof i9.TabbedMenuItemWrapperComponent, typeof i10.SidebarComponent, typeof i11.SidebarTabComponent, typeof i12.ObjectSelectorComponent, typeof i13.PropertyGridComponent, typeof i14.TextareaJsonEditorComponent, typeof i15.AceJsonEditorComponent, typeof i16.LogicTabComponent, typeof i17.LogicAddButtonComponent, typeof i18.ActionButtonComponent, typeof i19.LinkValueQuestionComponent, typeof i20.EmbeddedSurveyQuestionComponent, typeof i21.TranslationTabComponent, typeof i22.TranslationSkeletonComponent, typeof i23.SimulatorComponent, typeof i24.TestTabComponent, typeof i25.TestAgainActionComponent, typeof i26.SurveyResultsComponent, typeof i27.SurveyResultsTableRowComponent, typeof i28.AdaptiveToolboxComponent, typeof i29.ToolboxToolComponent, typeof i30.ToolboxItemComponent, typeof i31.ToolboxCategoryComponent, typeof i32.StringEditorComponent, typeof i33.PageNavigatorComponent, typeof i34.PageNavigatorItemComponent, typeof i35.QuestionDropdownDesignerComponent, typeof i35.QuestionDropdownAdornerDesignerComponent, typeof i36.QuestionImageDesignerComponent, typeof i36.QuestionImageAdornerDesignerComponent, typeof i37.ItemValueDesignerComponent, typeof i38.ImageItemValueDesignerComponent, typeof i39.LogicOperatorComponent, typeof i40.MatrixCellComponent, typeof i41.QuestionEditorComponent, typeof i42.CellQuestionDropdownComponent, typeof i43.CreatorRowComponent, typeof i44.DesignerPagesComponent, typeof i45.DesignerSurveyComponent, typeof i46.CellQuestionComponent, typeof i47.QuestionWidgetDesignerComponent, typeof i48.ToolboxComponent, typeof i49.CreatorLogoImageComponent, typeof i50.QuestionRatingAdornerDesignerComponent, typeof i50.QuestionRatingDesignerComponent, typeof i51.QuestionSpinEditorComponent, typeof i52.QuestionColorComponent]>;
58
60
  static ɵinj: i0.ɵɵInjectorDeclaration<SurveyCreatorModule>;
59
61
  }
@@ -852,8 +852,9 @@
852
852
  configurable: true
853
853
  });
854
854
  PageNavigatorItemComponent.prototype.click = function (event) {
855
- event.stopPropagation();
856
855
  this.getModel().action();
856
+ event.stopPropagation();
857
+ event.preventDefault();
857
858
  };
858
859
  return PageNavigatorItemComponent;
859
860
  }(i1.BaseAngular));
@@ -890,9 +891,11 @@
890
891
  var el = this.container.nativeElement;
891
892
  if (!!el && !!((_b = (_a = el.parentElement) === null || _a === void 0 ? void 0 : _a.parentElement) === null || _b === void 0 ? void 0 : _b.parentElement)) {
892
893
  var self_1 = this;
893
- el.parentElement.parentElement.parentElement.onscroll = function (ev) {
894
+ var scrollableViewPort = el.parentElement.parentElement.parentElement;
895
+ scrollableViewPort.onscroll = function (ev) {
894
896
  return self_1.model.onContainerScroll(ev.currentTarget);
895
897
  };
898
+ self_1.model.setScrollableContainer(scrollableViewPort);
896
899
  self_1.model.setItemsContainer(el.parentElement);
897
900
  }
898
901
  }
@@ -1660,7 +1663,7 @@
1660
1663
  return ImageItemValueDesignerComponent;
1661
1664
  }(CreatorModelComponent));
1662
1665
  ImageItemValueDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageItemValueDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
1663
- ImageItemValueDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ImageItemValueDesignerComponent, selector: "svc-image-item-value", inputs: { componentName: "componentName", componentData: "componentData" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div (pointerdown)=\"adorner.onPointerDown($event)\" [class]=\"adorner.getRootCss()\" [attr.data-sv-drop-target-item-value]=\"adorner.isDraggable ? this.item.value : null\" #container>\n <div class=\"svc-image-item-value-wrapper__ghost\" [style]=\"getNewItemStyle()\"></div>\n\n <div class=\"svc-image-item-value-wrapper__content\">\n <input type=\"file\" aria-hidden=\"true\" tabindex=\"-1\" accept=\"image/*\" class=\"svc-choose-file-input\" />\n\n <ng-container *ngIf=\"!adorner.isNew\">\n <div *ngIf=\"!adorner.isNew\" class=\"svc-image-item-value__item\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n </div>\n <span class=\"svc-image-item-value-controls__button svc-image-item-value-controls__drag-area-indicator\" (pointerdown)=\"adorner.onPointerDown($event)\" [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg [iconName]=\"'icon-drag-area-indicator'\" [size]=\"24\" sv-ng-svg-icon></svg>\n </span>\n <div class=\"svc-image-item-value-controls\" data-bind=\"event: { pointerdown: blockEvent }\">\n <ng-container *ngIf=\"adorner.allowRemove\">\n <span class=\"svc-image-item-value-controls__button svc-image-item-value-controls__choose-file\" (click)=\"adorner.chooseFile(adorner)\" [key2click] [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg [iconName]=\"'icon-file'\" [size]=\"24\" sv-ng-svg-icon></svg>\n </span>\n <span class=\"svc-image-item-value-controls__button svc-image-item-value-controls__remove\" (click)=\"adorner.remove(adorner)\" [key2click] [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg [iconName]=\"'icon-delete'\" [size]=\"24\" sv-ng-svg-icon></svg>\n </span>\n </ng-container>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"adorner.isNew\">\n <div class=\"svc-image-item-value__item\"\n data-bind=\"event: { dragover: dragover, drop: drop, dragleave: dragleave }\">\n <div class=\"sd-imagepicker__item sd-imagepicker__item--inline\">\n <label class=\"sd-imagepicker__label\">\n <div [style]=\"getNewItemStyle()\" class=\"sd-imagepicker__image\"></div>\n </label>\n </div>\n </div>\n\n <div class=\"svc-image-item-value-controls\" data-bind=\"event: { pointerdown: blockEvent }\">\n <span class=\"svc-image-item-value-controls__button svc-image-item-value-controls__add\" [key2click] (click)=\"adorner.chooseNewFile(adorner)\" [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg *ngIf=\"adorner.allowAdd\" [iconName]=\"'icon-add-lg'\" [size]=\"24\" sv-ng-svg-icon></svg>\n </span>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
1666
+ ImageItemValueDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ImageItemValueDesignerComponent, selector: "svc-image-item-value", inputs: { componentName: "componentName", componentData: "componentData" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div (pointerdown)=\"adorner.onPointerDown($event)\" [class]=\"adorner.getRootCss()\" [attr.data-sv-drop-target-item-value]=\"adorner.isDraggable ? this.item.value : null\" #container>\n <div class=\"svc-image-item-value-wrapper__ghost\" [style]=\"getNewItemStyle()\"></div>\n\n <div class=\"svc-image-item-value-wrapper__content\">\n <input type=\"file\" aria-hidden=\"true\" tabindex=\"-1\" accept=\"image/*\" class=\"svc-choose-file-input\" />\n\n <ng-container *ngIf=\"!adorner.isNew\">\n <div *ngIf=\"!adorner.isNew\" class=\"svc-image-item-value__item\">\n <ng-template [component]=\"{ name: componentName, data: componentData }\"></ng-template>\n </div>\n <span class=\"svc-image-item-value-controls__button svc-image-item-value-controls__drag-area-indicator\" (pointerdown)=\"adorner.onPointerDown($event)\" [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg [iconName]=\"'icon-drag-area-indicator'\" [size]=\"24\" sv-ng-svg-icon></svg>\n </span>\n <div class=\"svc-image-item-value-controls\" data-bind=\"event: { pointerdown: blockEvent }\">\n <ng-container *ngIf=\"adorner.allowRemove && !adorner.isUploading\">\n <span class=\"svc-image-item-value-controls__button svc-image-item-value-controls__choose-file\" (click)=\"adorner.chooseFile(adorner)\" [key2click] [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg [iconName]=\"'icon-file'\" [size]=\"24\" sv-ng-svg-icon></svg>\n </span>\n <span class=\"svc-image-item-value-controls__button svc-image-item-value-controls__remove\" (click)=\"adorner.remove(adorner)\" [key2click] [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg [iconName]=\"'icon-delete'\" [size]=\"24\" sv-ng-svg-icon></svg>\n </span>\n </ng-container>\n </div>\n </ng-container>\n\n <ng-container *ngIf=\"adorner.isNew\">\n <div class=\"svc-image-item-value__item\"\n data-bind=\"event: { dragover: dragover, drop: drop, dragleave: dragleave }\">\n <div class=\"sd-imagepicker__item sd-imagepicker__item--inline\">\n <label class=\"sd-imagepicker__label\">\n <div [style]=\"getNewItemStyle()\" class=\"sd-imagepicker__image\"></div>\n </label>\n </div>\n </div>\n\n <div class=\"svc-image-item-value-controls\" data-bind=\"event: { pointerdown: blockEvent }\">\n <span class=\"svc-image-item-value-controls__button svc-image-item-value-controls__add\" [key2click] (click)=\"adorner.chooseNewFile(adorner)\" [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg *ngIf=\"adorner.allowAdd && !adorner.isUploading\" [iconName]=\"'icon-add-lg'\" [size]=\"24\" sv-ng-svg-icon></svg>\n </span>\n </div>\n </ng-container>\n </div>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.DynamicComponentDirective, selector: "[component]", inputs: ["component"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
1664
1667
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ImageItemValueDesignerComponent, decorators: [{
1665
1668
  type: i0.Component,
1666
1669
  args: [{
@@ -1780,7 +1783,7 @@
1780
1783
  return QuestionImageAdornerDesignerComponent;
1781
1784
  }(i1.EmbeddedViewContentComponent));
1782
1785
  QuestionImageAdornerDesignerComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionImageAdornerDesignerComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
1783
- QuestionImageAdornerDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionImageAdornerDesignerComponent, selector: "svc-image-question-adorner", inputs: { adorner: "adorner", question: "question" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-image-question-controls\">\n <ng-container *ngIf=\"adorner.allowEdit\">\n <input type=\"file\" aria-hidden=\"true\" tabindex=\"-1\" accept=\"image/*\" class=\"svc-choose-file-input\" />\n <span class=\"svc-image-question-controls__button\" [key2click] [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg [iconName]=\"'icon-file'\" [size]=\"24\" (click)=\"adorner.chooseFile(adorner)\" sv-ng-svg-icon></svg>\n </span>\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
1786
+ QuestionImageAdornerDesignerComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionImageAdornerDesignerComponent, selector: "svc-image-question-adorner", inputs: { adorner: "adorner", question: "question" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-image-question-controls\">\n <ng-container *ngIf=\"adorner.allowEdit && !adorner.isUploading\">\n <input type=\"file\" aria-hidden=\"true\" tabindex=\"-1\" accept=\"image/*\" class=\"svc-choose-file-input\" />\n <span class=\"svc-image-question-controls__button\" [key2click] [attr.title]=\"undefined\" [attr.aria-label]=\"undefined\">\n <svg [iconName]=\"'icon-file'\" [size]=\"24\" (click)=\"adorner.chooseFile(adorner)\" sv-ng-svg-icon></svg>\n </span>\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
1784
1787
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionImageAdornerDesignerComponent, decorators: [{
1785
1788
  type: i0.Component,
1786
1789
  args: [{
@@ -2436,7 +2439,7 @@
2436
2439
  return CreatorLogoImageComponent;
2437
2440
  }(CreatorModelComponent));
2438
2441
  CreatorLogoImageComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CreatorLogoImageComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
2439
- CreatorLogoImageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CreatorLogoImageComponent, selector: "svc-logo-image", inputs: { data: "data" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-logo-image\" #container>\n <input type=\"file\" aria-hidden=\"true\" tabindex=\"-1\" accept=\"image/*\" class=\"svc-choose-file-input\" />\n <ng-container *ngIf=\"!survey.locLogo.renderedHtml\">\n <ng-container *ngIf=\"model.allowEdit\">\n <div class=\"svc-logo-image-placeholder\" (click)=\"model.chooseFile(model)\" [key2click]>\n <svg>\n <use xlink:href=\"#icon-logo\"></use>\n </svg>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"survey.locLogo.renderedHtml\">\n <div [class]=\"model.containerCss\" (click)=\"model.chooseFile(model)\" [key2click]>\n <sv-logo-image [data]=\"survey\"></sv-logo-image>\n </div>\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.LogoImageComponent, selector: "sv-logo-image", inputs: ["data"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
2442
+ CreatorLogoImageComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: CreatorLogoImageComponent, selector: "svc-logo-image", inputs: { data: "data" }, viewQueries: [{ propertyName: "container", first: true, predicate: ["container"], descendants: true, read: i0.ElementRef }], usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"svc-logo-image\" #container>\n <input type=\"file\" aria-hidden=\"true\" tabindex=\"-1\" accept=\"image/*\" class=\"svc-choose-file-input\" />\n <ng-container *ngIf=\"!survey.locLogo.renderedHtml\">\n <ng-container *ngIf=\"model.allowEdit && !model.isUploading\">\n <div class=\"svc-logo-image-placeholder\" (click)=\"model.chooseFile(model)\" [key2click]>\n <svg>\n <use xlink:href=\"#icon-logo\"></use>\n </svg>\n </div>\n </ng-container>\n </ng-container>\n <ng-container *ngIf=\"survey.locLogo.renderedHtml\">\n <div [class]=\"model.containerCss\" (click)=\"model.chooseFile(model)\" [key2click]>\n <sv-logo-image [data]=\"survey\"></sv-logo-image>\n </div>\n </ng-container>\n </div>\n</ng-template>", styles: [":host { display: none; }"], components: [{ type: i1__namespace.LogoImageComponent, selector: "sv-logo-image", inputs: ["data"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
2440
2443
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: CreatorLogoImageComponent, decorators: [{
2441
2444
  type: i0.Component,
2442
2445
  args: [{
@@ -2452,6 +2455,41 @@
2452
2455
  }] } });
2453
2456
  i1.AngularComponentFactory.Instance.registerComponent("svc-logo-image", CreatorLogoImageComponent);
2454
2457
 
2458
+ var QuestionSpinEditorComponent = /** @class */ (function (_super) {
2459
+ __extends(QuestionSpinEditorComponent, _super);
2460
+ function QuestionSpinEditorComponent() {
2461
+ return _super !== null && _super.apply(this, arguments) || this;
2462
+ }
2463
+ return QuestionSpinEditorComponent;
2464
+ }(i1.QuestionAngular));
2465
+ QuestionSpinEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionSpinEditorComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
2466
+ QuestionSpinEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionSpinEditorComponent, selector: "ng-component", usesInheritance: true, ngImport: i0__namespace, template: "<div [class]=\"model.cssClasses.root\" (keydown)=\"model.onKeyDown($event)\">\n <input \n autocomplete=\"off\"\n [disabled]=\"model.isInputReadOnly\" \n [attr.id]=\"model.inputId\"\n [attr.placeholder]=\"model.renderedPlaceholder\" \n [attr.aria-required]=\"model.ariaRequired\"\n [attr.aria-label]=\"model.ariaLabel\" \n [attr.aria-invalid]=\"model.ariaInvalid\"\n [attr.aria-describedby]=\"model.ariaDescribedBy\" \n (change)=\"model.onChange($event)\" \n (keydown)=\"model.onInputKeyDown($event)\" \n (blur)=\"model.onBlur($event)\" \n (focus)=\"model.onFocus($event)\" \n (beforeinput)=\"model.onBeforeInput($event)\"\n [value]=\"model.renderedValue\"\n [class]=\"model.cssClasses.control\"/>\n <span [class]=\"model.cssClasses.buttonsContainer\">\n <button\n [class]=\"model.cssClasses.arrowButton\" (mousedown)=\"model.onDownButtonMouseDown()\" (mouseup)=\"model.onButtonMouseUp()\" (blur)=\"model.onBlur($event)\" (focus)=\"model.onFocus($event)\">\n <svg [iconName]=\"model.cssClasses.decreaseButtonIcon\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n </button>\n <button\n [class]=\"model.cssClasses.arrowButton\" (mousedown)=\"model.onUpButtonMouseDown()\" (mouseup)=\"model.onButtonMouseUp()\" (blur)=\"model.onBlur($event)\" (focus)=\"model.onFocus($event)\">\n <svg [iconName]=\"model.cssClasses.increaseButtonIcon\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n </button>\n </span>\n</div>", components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }] });
2467
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionSpinEditorComponent, decorators: [{
2468
+ type: i0.Component,
2469
+ args: [{
2470
+ templateUrl: "./spin-editor.component.html"
2471
+ }]
2472
+ }] });
2473
+ i1.AngularComponentFactory.Instance.registerComponent("spinedit-question", QuestionSpinEditorComponent);
2474
+
2475
+ var QuestionColorComponent = /** @class */ (function (_super) {
2476
+ __extends(QuestionColorComponent, _super);
2477
+ function QuestionColorComponent() {
2478
+ return _super !== null && _super.apply(this, arguments) || this;
2479
+ }
2480
+ return QuestionColorComponent;
2481
+ }(i1.QuestionAngular));
2482
+ QuestionColorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionColorComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
2483
+ QuestionColorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionColorComponent, selector: "svc-color", usesInheritance: true, ngImport: i0__namespace, template: "<div [class]=\"model.cssClasses.root\">\n <span [class]=\"model.cssClasses.swatch\" [style]=\"model.getSwatchStyle()\"></span>\n <input autocomplete=\"off\" \n [disabled]=\"model.isInputReadOnly\" \n [attr.id]=\"model.inputId\" \n [placeholder]=\"model.renderedPlaceholder\" \n [attr.aria-required]=\"model.ariaRequired\" \n [attr.aria-label]=\"model.ariaLabel\" \n [attr.aria-invalid]=\"model.ariaInvalid\" \n [attr.aria-describedby]=\"model.ariaDescribedBy\" \n (change)=\"model.onChange($event)\" \n (blur)=\"model.onBlur($event)\" \n (beforeinput)=\"model.onBeforeInput($event)\"\n [value]=\"model.renderedValue\"\n [class]=\"model.cssClasses.control\"/> \n <label [class]=\"model.cssClasses.colorDropdown\">\n <svg [iconName]=\"model.cssClasses.colorDrodownIcon\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n <input type=\"color\" [class]=\"model.cssClasses.colorInput\" [value]=\"model.renderedValue\" (change)=\"model.onColorInputChange($event)\"/>\n </label>\n</div>", components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }] });
2484
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionColorComponent, decorators: [{
2485
+ type: i0.Component,
2486
+ args: [{
2487
+ templateUrl: "color.component.html",
2488
+ selector: "svc-color"
2489
+ }]
2490
+ }] });
2491
+ i1.AngularComponentFactory.Instance.registerComponent("color-question", QuestionColorComponent);
2492
+
2455
2493
  var SurveyCreatorModule = /** @class */ (function () {
2456
2494
  function SurveyCreatorModule() {
2457
2495
  }
@@ -2462,11 +2500,11 @@
2462
2500
  AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
2463
2501
  QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
2464
2502
  ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, ToolboxComponent, CreatorLogoImageComponent,
2465
- QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent], imports: [i2.CommonModule, i1$1.FormsModule, i1.SurveyModule], exports: [CreatorComponent, DesignerTabComponent, PageDesignerComponent, QuestionDesignerComponent, PanelDesignerComponent, SvgBundleComponent, TabbledMenuComponent, TabbedMenuItemComponent, TabbedMenuItemWrapperComponent, SidebarComponent, SidebarTabComponent, ObjectSelectorComponent, PropertyGridComponent, TextareaJsonEditorComponent, AceJsonEditorComponent, LogicTabComponent, LogicAddButtonComponent, ActionButtonComponent, LinkValueQuestionComponent, EmbeddedSurveyQuestionComponent, TranslationTabComponent, TranslationSkeletonComponent, SimulatorComponent, TestTabComponent, TestAgainActionComponent, SurveyResultsComponent, SurveyResultsTableRowComponent,
2503
+ QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, QuestionColorComponent], imports: [i2.CommonModule, i1$1.FormsModule, i1.SurveyModule], exports: [CreatorComponent, DesignerTabComponent, PageDesignerComponent, QuestionDesignerComponent, PanelDesignerComponent, SvgBundleComponent, TabbledMenuComponent, TabbedMenuItemComponent, TabbedMenuItemWrapperComponent, SidebarComponent, SidebarTabComponent, ObjectSelectorComponent, PropertyGridComponent, TextareaJsonEditorComponent, AceJsonEditorComponent, LogicTabComponent, LogicAddButtonComponent, ActionButtonComponent, LinkValueQuestionComponent, EmbeddedSurveyQuestionComponent, TranslationTabComponent, TranslationSkeletonComponent, SimulatorComponent, TestTabComponent, TestAgainActionComponent, SurveyResultsComponent, SurveyResultsTableRowComponent,
2466
2504
  AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
2467
2505
  QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
2468
2506
  ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, ToolboxComponent, CreatorLogoImageComponent,
2469
- QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent] });
2507
+ QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, QuestionColorComponent] });
2470
2508
  SurveyCreatorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyCreatorModule, providers: [], imports: [[
2471
2509
  i2.CommonModule, i1$1.FormsModule, i1.SurveyModule
2472
2510
  ]] });
@@ -2477,7 +2515,7 @@
2477
2515
  AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
2478
2516
  QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
2479
2517
  ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, ToolboxComponent, CreatorLogoImageComponent,
2480
- QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent],
2518
+ QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, QuestionColorComponent],
2481
2519
  imports: [
2482
2520
  i2.CommonModule, i1$1.FormsModule, i1.SurveyModule
2483
2521
  ],
@@ -2486,7 +2524,7 @@
2486
2524
  AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
2487
2525
  QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
2488
2526
  ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, ToolboxComponent, CreatorLogoImageComponent,
2489
- QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent
2527
+ QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, QuestionColorComponent
2490
2528
  ],
2491
2529
  providers: [],
2492
2530
  }]
@@ -2521,6 +2559,7 @@
2521
2559
  exports.PageNavigatorItemComponent = PageNavigatorItemComponent;
2522
2560
  exports.PanelDesignerComponent = PanelDesignerComponent;
2523
2561
  exports.PropertyGridComponent = PropertyGridComponent;
2562
+ exports.QuestionColorComponent = QuestionColorComponent;
2524
2563
  exports.QuestionDesignerComponent = QuestionDesignerComponent;
2525
2564
  exports.QuestionDropdownAdornerDesignerComponent = QuestionDropdownAdornerDesignerComponent;
2526
2565
  exports.QuestionDropdownDesignerComponent = QuestionDropdownDesignerComponent;
@@ -2529,6 +2568,7 @@
2529
2568
  exports.QuestionImageDesignerComponent = QuestionImageDesignerComponent;
2530
2569
  exports.QuestionRatingAdornerDesignerComponent = QuestionRatingAdornerDesignerComponent;
2531
2570
  exports.QuestionRatingDesignerComponent = QuestionRatingDesignerComponent;
2571
+ exports.QuestionSpinEditorComponent = QuestionSpinEditorComponent;
2532
2572
  exports.QuestionWidgetDesignerComponent = QuestionWidgetDesignerComponent;
2533
2573
  exports.SidebarComponent = SidebarComponent;
2534
2574
  exports.SidebarTabComponent = SidebarTabComponent;