survey-creator-angular 3.0.0-beta.5 → 3.0.0-beta.7

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
@@ -70,6 +70,7 @@ export * from "./header/logo-image.component";
70
70
  export * from "./tabs/json/json-error-item.component";
71
71
  export * from "./custom-questions/spin-editor.component";
72
72
  export * from "./custom-questions/spin-editor-button.component";
73
+ export * from "./custom-questions/swatch.component";
73
74
  export * from "./custom-questions/color-item.component";
74
75
  export * from "./custom-questions/color.component";
75
76
  export * from "./custom-questions/file.component";
@@ -63,26 +63,27 @@ import * as i61 from "./custom-questions/spin-editor.component";
63
63
  import * as i62 from "./custom-questions/spin-editor-button.component";
64
64
  import * as i63 from "./custom-questions/color-item.component";
65
65
  import * as i64 from "./custom-questions/color.component";
66
- import * as i65 from "./custom-questions/file.component";
67
- import * as i66 from "./custom-questions/file-editor-button.component";
68
- import * as i67 from "./add-question.component";
69
- import * as i68 from "./question-banner.component";
70
- import * as i69 from "./tabs/json/json-error-item.component";
71
- import * as i70 from "./custom-questions/boolean-switch.component";
72
- import * as i71 from "./tabs/translation/translate-from-action.component";
73
- import * as i72 from "./question-element-content.component";
74
- import * as i73 from "./page-element-content.component";
75
- import * as i74 from "./page-wrapper.component";
76
- import * as i75 from "./components/component-container.component";
77
- import * as i76 from "./components/icon-item.component";
78
- import * as i77 from "./side-bar/side-bar-launch-card.component";
79
- import * as i78 from "./tabs/container/container-tab.component";
80
- import * as i79 from "./adorners/image-item-drag-action.component";
81
- import * as i80 from "@angular/common";
82
- import * as i81 from "@angular/forms";
83
- import * as i82 from "survey-angular-ui";
66
+ import * as i65 from "./custom-questions/swatch.component";
67
+ import * as i66 from "./custom-questions/file.component";
68
+ import * as i67 from "./custom-questions/file-editor-button.component";
69
+ import * as i68 from "./add-question.component";
70
+ import * as i69 from "./question-banner.component";
71
+ import * as i70 from "./tabs/json/json-error-item.component";
72
+ import * as i71 from "./custom-questions/boolean-switch.component";
73
+ import * as i72 from "./tabs/translation/translate-from-action.component";
74
+ import * as i73 from "./question-element-content.component";
75
+ import * as i74 from "./page-element-content.component";
76
+ import * as i75 from "./page-wrapper.component";
77
+ import * as i76 from "./components/component-container.component";
78
+ import * as i77 from "./components/icon-item.component";
79
+ import * as i78 from "./side-bar/side-bar-launch-card.component";
80
+ import * as i79 from "./tabs/container/container-tab.component";
81
+ import * as i80 from "./adorners/image-item-drag-action.component";
82
+ import * as i81 from "@angular/common";
83
+ import * as i82 from "@angular/forms";
84
+ import * as i83 from "survey-angular-ui";
84
85
  export declare class SurveyCreatorModule {
85
86
  static ɵfac: i0.ɵɵFactoryDeclaration<SurveyCreatorModule, never>;
86
- static ɵmod: i0.ɵɵNgModuleDeclaration<SurveyCreatorModule, [typeof i1.CreatorComponent, typeof i2.DesignerTabComponent, typeof i3.PageDesignerComponent, typeof i4.QuestionDesignerComponent, typeof i5.PanelDesignerComponent, typeof i6.TabbledMenuComponent, typeof i7.TabbedMenuItemComponent, typeof i8.TabbedMenuItemWrapperComponent, typeof i9.SidebarComponent, typeof i10.SidebarPageComponent, typeof i11.SidebarDefaultHeaderComponent, typeof i12.ObjectSelectorComponent, typeof i13.SidebarPropertyGridHeaderComponent, typeof i14.PropertyGridPlaceholderComponent, typeof i15.SidebarHeaderComponent, typeof i16.TabControlComponent, typeof i17.TabsComponent, typeof i18.TabButtonComponent, typeof i19.PropertyGridComponent, typeof i20.SearchComponent, typeof i21.TextareaJsonEditorComponent, typeof i22.AceJsonEditorComponent, typeof i23.LogicTabComponent, typeof i24.ActionButtonComponent, typeof i25.QuestionPgErrorComponent, typeof i26.SurfacePlaceholderComponent, typeof i27.SwitcherComponent, typeof i28.LinkValueQuestionComponent, typeof i29.EmbeddedSurveyQuestionComponent, typeof i30.TranslationTabComponent, typeof i31.TranslationSkeletonComponent, typeof i32.SimulatorComponent, typeof i33.TestTabComponent, typeof i34.SurveyResultsComponent, typeof i35.SurveyResultsTableRowComponent, typeof i36.ThemeTabComponent, typeof i37.AdaptiveToolboxComponent, typeof i38.ToolboxToolComponent, typeof i39.ToolboxItemComponent, typeof i40.ToolboxItemGroupComponent, typeof i41.ToolboxListComponent, typeof i42.ToolboxCategoryComponent, typeof i43.StringEditorComponent, typeof i44.PageNavigatorComponent, typeof i45.PageNavigatorItemComponent, typeof i46.QuestionDropdownDesignerComponent, typeof i46.QuestionDropdownAdornerDesignerComponent, typeof i47.QuestionImageDesignerComponent, typeof i47.QuestionImageAdornerDesignerComponent, typeof i48.ItemValueDesignerComponent, typeof i49.ImageItemValueDesignerComponent, typeof i50.LogicOperatorComponent, typeof i51.MatrixCellComponent, typeof i52.QuestionEditorComponent, typeof i53.CellQuestionDropdownComponent, typeof i54.CreatorRowComponent, typeof i55.DesignerPagesComponent, typeof i56.DesignerSurveyComponent, typeof i57.CellQuestionComponent, typeof i58.QuestionWidgetDesignerComponent, typeof i59.CreatorLogoImageComponent, typeof i60.QuestionRatingAdornerDesignerComponent, typeof i60.QuestionRatingDesignerComponent, typeof i61.QuestionSpinEditorComponent, typeof i62.SpinEditorButtonComponent, typeof i63.ColorItemComponent, typeof i64.QuestionColorComponent, typeof i65.QuestionFileEditorComponent, typeof i66.FileEditorButtonComponent, typeof i67.AddQuestionButtonComponent, typeof i68.QuestionBannerComponent, typeof i69.JsonErrorItemComponent, typeof i70.BooleanSwitchComponent, typeof i71.TranslateFromAction, typeof i72.QuestionElementContentComponent, typeof i73.PageElementContentComponent, typeof i74.PageWrapperComponent, typeof i75.ComponentContainerComponent, typeof i76.IconItemComponent, typeof i77.SideBarLaunchCardComponent, typeof i78.ContainerTabComponent, typeof i79.ImageItemDragActionComponent], [typeof i80.CommonModule, typeof i81.FormsModule, typeof i82.SurveyModule], [typeof i1.CreatorComponent, typeof i2.DesignerTabComponent, typeof i3.PageDesignerComponent, typeof i4.QuestionDesignerComponent, typeof i5.PanelDesignerComponent, typeof i6.TabbledMenuComponent, typeof i7.TabbedMenuItemComponent, typeof i8.TabbedMenuItemWrapperComponent, typeof i9.SidebarComponent, typeof i10.SidebarPageComponent, typeof i11.SidebarDefaultHeaderComponent, typeof i13.SidebarPropertyGridHeaderComponent, typeof i14.PropertyGridPlaceholderComponent, typeof i15.SidebarHeaderComponent, typeof i16.TabControlComponent, typeof i17.TabsComponent, typeof i18.TabButtonComponent, typeof i12.ObjectSelectorComponent, typeof i19.PropertyGridComponent, typeof i20.SearchComponent, typeof i21.TextareaJsonEditorComponent, typeof i22.AceJsonEditorComponent, typeof i23.LogicTabComponent, typeof i24.ActionButtonComponent, typeof i25.QuestionPgErrorComponent, typeof i26.SurfacePlaceholderComponent, typeof i27.SwitcherComponent, typeof i28.LinkValueQuestionComponent, typeof i29.EmbeddedSurveyQuestionComponent, typeof i30.TranslationTabComponent, typeof i31.TranslationSkeletonComponent, typeof i32.SimulatorComponent, typeof i33.TestTabComponent, typeof i34.SurveyResultsComponent, typeof i35.SurveyResultsTableRowComponent, typeof i36.ThemeTabComponent, typeof i37.AdaptiveToolboxComponent, typeof i38.ToolboxToolComponent, typeof i39.ToolboxItemComponent, typeof i40.ToolboxItemGroupComponent, typeof i41.ToolboxListComponent, typeof i42.ToolboxCategoryComponent, typeof i43.StringEditorComponent, typeof i44.PageNavigatorComponent, typeof i45.PageNavigatorItemComponent, typeof i46.QuestionDropdownDesignerComponent, typeof i46.QuestionDropdownAdornerDesignerComponent, typeof i47.QuestionImageDesignerComponent, typeof i47.QuestionImageAdornerDesignerComponent, typeof i48.ItemValueDesignerComponent, typeof i49.ImageItemValueDesignerComponent, typeof i50.LogicOperatorComponent, typeof i51.MatrixCellComponent, typeof i52.QuestionEditorComponent, typeof i53.CellQuestionDropdownComponent, typeof i54.CreatorRowComponent, typeof i55.DesignerPagesComponent, typeof i56.DesignerSurveyComponent, typeof i57.CellQuestionComponent, typeof i58.QuestionWidgetDesignerComponent, typeof i59.CreatorLogoImageComponent, typeof i60.QuestionRatingAdornerDesignerComponent, typeof i60.QuestionRatingDesignerComponent, typeof i61.QuestionSpinEditorComponent, typeof i62.SpinEditorButtonComponent, typeof i63.ColorItemComponent, typeof i64.QuestionColorComponent, typeof i65.QuestionFileEditorComponent, typeof i66.FileEditorButtonComponent, typeof i67.AddQuestionButtonComponent, typeof i68.QuestionBannerComponent, typeof i69.JsonErrorItemComponent, typeof i70.BooleanSwitchComponent, typeof i71.TranslateFromAction, typeof i72.QuestionElementContentComponent, typeof i73.PageElementContentComponent, typeof i75.ComponentContainerComponent, typeof i76.IconItemComponent, typeof i77.SideBarLaunchCardComponent, typeof i78.ContainerTabComponent, typeof i79.ImageItemDragActionComponent]>;
87
+ static ɵmod: i0.ɵɵNgModuleDeclaration<SurveyCreatorModule, [typeof i1.CreatorComponent, typeof i2.DesignerTabComponent, typeof i3.PageDesignerComponent, typeof i4.QuestionDesignerComponent, typeof i5.PanelDesignerComponent, typeof i6.TabbledMenuComponent, typeof i7.TabbedMenuItemComponent, typeof i8.TabbedMenuItemWrapperComponent, typeof i9.SidebarComponent, typeof i10.SidebarPageComponent, typeof i11.SidebarDefaultHeaderComponent, typeof i12.ObjectSelectorComponent, typeof i13.SidebarPropertyGridHeaderComponent, typeof i14.PropertyGridPlaceholderComponent, typeof i15.SidebarHeaderComponent, typeof i16.TabControlComponent, typeof i17.TabsComponent, typeof i18.TabButtonComponent, typeof i19.PropertyGridComponent, typeof i20.SearchComponent, typeof i21.TextareaJsonEditorComponent, typeof i22.AceJsonEditorComponent, typeof i23.LogicTabComponent, typeof i24.ActionButtonComponent, typeof i25.QuestionPgErrorComponent, typeof i26.SurfacePlaceholderComponent, typeof i27.SwitcherComponent, typeof i28.LinkValueQuestionComponent, typeof i29.EmbeddedSurveyQuestionComponent, typeof i30.TranslationTabComponent, typeof i31.TranslationSkeletonComponent, typeof i32.SimulatorComponent, typeof i33.TestTabComponent, typeof i34.SurveyResultsComponent, typeof i35.SurveyResultsTableRowComponent, typeof i36.ThemeTabComponent, typeof i37.AdaptiveToolboxComponent, typeof i38.ToolboxToolComponent, typeof i39.ToolboxItemComponent, typeof i40.ToolboxItemGroupComponent, typeof i41.ToolboxListComponent, typeof i42.ToolboxCategoryComponent, typeof i43.StringEditorComponent, typeof i44.PageNavigatorComponent, typeof i45.PageNavigatorItemComponent, typeof i46.QuestionDropdownDesignerComponent, typeof i46.QuestionDropdownAdornerDesignerComponent, typeof i47.QuestionImageDesignerComponent, typeof i47.QuestionImageAdornerDesignerComponent, typeof i48.ItemValueDesignerComponent, typeof i49.ImageItemValueDesignerComponent, typeof i50.LogicOperatorComponent, typeof i51.MatrixCellComponent, typeof i52.QuestionEditorComponent, typeof i53.CellQuestionDropdownComponent, typeof i54.CreatorRowComponent, typeof i55.DesignerPagesComponent, typeof i56.DesignerSurveyComponent, typeof i57.CellQuestionComponent, typeof i58.QuestionWidgetDesignerComponent, typeof i59.CreatorLogoImageComponent, typeof i60.QuestionRatingAdornerDesignerComponent, typeof i60.QuestionRatingDesignerComponent, typeof i61.QuestionSpinEditorComponent, typeof i62.SpinEditorButtonComponent, typeof i63.ColorItemComponent, typeof i64.QuestionColorComponent, typeof i65.SwatchComponent, typeof i66.QuestionFileEditorComponent, typeof i67.FileEditorButtonComponent, typeof i68.AddQuestionButtonComponent, typeof i69.QuestionBannerComponent, typeof i70.JsonErrorItemComponent, typeof i71.BooleanSwitchComponent, typeof i72.TranslateFromAction, typeof i73.QuestionElementContentComponent, typeof i74.PageElementContentComponent, typeof i75.PageWrapperComponent, typeof i76.ComponentContainerComponent, typeof i77.IconItemComponent, typeof i78.SideBarLaunchCardComponent, typeof i79.ContainerTabComponent, typeof i80.ImageItemDragActionComponent], [typeof i81.CommonModule, typeof i82.FormsModule, typeof i83.SurveyModule], [typeof i1.CreatorComponent, typeof i2.DesignerTabComponent, typeof i3.PageDesignerComponent, typeof i4.QuestionDesignerComponent, typeof i5.PanelDesignerComponent, typeof i6.TabbledMenuComponent, typeof i7.TabbedMenuItemComponent, typeof i8.TabbedMenuItemWrapperComponent, typeof i9.SidebarComponent, typeof i10.SidebarPageComponent, typeof i11.SidebarDefaultHeaderComponent, typeof i13.SidebarPropertyGridHeaderComponent, typeof i14.PropertyGridPlaceholderComponent, typeof i15.SidebarHeaderComponent, typeof i16.TabControlComponent, typeof i17.TabsComponent, typeof i18.TabButtonComponent, typeof i12.ObjectSelectorComponent, typeof i19.PropertyGridComponent, typeof i20.SearchComponent, typeof i21.TextareaJsonEditorComponent, typeof i22.AceJsonEditorComponent, typeof i23.LogicTabComponent, typeof i24.ActionButtonComponent, typeof i25.QuestionPgErrorComponent, typeof i26.SurfacePlaceholderComponent, typeof i27.SwitcherComponent, typeof i28.LinkValueQuestionComponent, typeof i29.EmbeddedSurveyQuestionComponent, typeof i30.TranslationTabComponent, typeof i31.TranslationSkeletonComponent, typeof i32.SimulatorComponent, typeof i33.TestTabComponent, typeof i34.SurveyResultsComponent, typeof i35.SurveyResultsTableRowComponent, typeof i36.ThemeTabComponent, typeof i37.AdaptiveToolboxComponent, typeof i38.ToolboxToolComponent, typeof i39.ToolboxItemComponent, typeof i40.ToolboxItemGroupComponent, typeof i41.ToolboxListComponent, typeof i42.ToolboxCategoryComponent, typeof i43.StringEditorComponent, typeof i44.PageNavigatorComponent, typeof i45.PageNavigatorItemComponent, typeof i46.QuestionDropdownDesignerComponent, typeof i46.QuestionDropdownAdornerDesignerComponent, typeof i47.QuestionImageDesignerComponent, typeof i47.QuestionImageAdornerDesignerComponent, typeof i48.ItemValueDesignerComponent, typeof i49.ImageItemValueDesignerComponent, typeof i50.LogicOperatorComponent, typeof i51.MatrixCellComponent, typeof i52.QuestionEditorComponent, typeof i53.CellQuestionDropdownComponent, typeof i54.CreatorRowComponent, typeof i55.DesignerPagesComponent, typeof i56.DesignerSurveyComponent, typeof i57.CellQuestionComponent, typeof i58.QuestionWidgetDesignerComponent, typeof i59.CreatorLogoImageComponent, typeof i60.QuestionRatingAdornerDesignerComponent, typeof i60.QuestionRatingDesignerComponent, typeof i61.QuestionSpinEditorComponent, typeof i62.SpinEditorButtonComponent, typeof i63.ColorItemComponent, typeof i64.QuestionColorComponent, typeof i65.SwatchComponent, typeof i66.QuestionFileEditorComponent, typeof i67.FileEditorButtonComponent, typeof i68.AddQuestionButtonComponent, typeof i69.QuestionBannerComponent, typeof i70.JsonErrorItemComponent, typeof i71.BooleanSwitchComponent, typeof i72.TranslateFromAction, typeof i73.QuestionElementContentComponent, typeof i74.PageElementContentComponent, typeof i76.ComponentContainerComponent, typeof i77.IconItemComponent, typeof i78.SideBarLaunchCardComponent, typeof i79.ContainerTabComponent, typeof i80.ImageItemDragActionComponent]>;
87
88
  static ɵinj: i0.ɵɵInjectorDeclaration<SurveyCreatorModule>;
88
89
  }
@@ -3408,7 +3408,7 @@
3408
3408
  return SpinEditorButtonComponent;
3409
3409
  }(i1.BaseAngular));
3410
3410
  SpinEditorButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SpinEditorButtonComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
3411
- SpinEditorButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SpinEditorButtonComponent, selector: "sv-ng-spin-edit-button", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <button [disabled]=\"modelAction.disabled\" [attr.aria-hidden]=\"'true'\" [class]=\"modelAction.getActionBarItemCss()\"\n (click)=\"question.onDownButtonClick()\" (mousedown)=\"model.data.onMouseDown()\"\n (mouseup)=\"question.onButtonMouseUp()\" (mouseleave)=\"question.onButtonMouseLeave()\" (blur)=\"question.onBlur($event)\"\n (focus)=\"question.onFocus($event)\" tabindex=\"-1\">\n <svg [class]=\"modelAction.cssClasses.itemIcon\" [iconName]=\"modelAction.iconName\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n </button>\n</ng-template>\n", styles: ["{ :host { display: none; } }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }] });
3411
+ SpinEditorButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SpinEditorButtonComponent, selector: "sv-ng-spin-edit-button", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <button [disabled]=\"modelAction.disabled\" [attr.aria-hidden]=\"'true'\" [class]=\"modelAction.getActionBarItemCss()\"\n (click)=\"modelAction.action()\" (mousedown)=\"model.data.onMouseDown()\"\n (mouseup)=\"question.onButtonMouseUp()\" (mouseleave)=\"question.onButtonMouseLeave()\" (blur)=\"question.onBlur($event)\"\n (focus)=\"question.onFocus($event)\" tabindex=\"-1\">\n <svg [class]=\"modelAction.cssClasses.itemIcon\" [iconName]=\"modelAction.iconName\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n </button>\n</ng-template>\n", styles: ["{ :host { display: none; } }"], components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }] });
3412
3412
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SpinEditorButtonComponent, decorators: [{
3413
3413
  type: i0.Component,
3414
3414
  args: [{
@@ -3421,6 +3421,79 @@
3421
3421
  }] } });
3422
3422
  i1.AngularComponentFactory.Instance.registerComponent("sv-spinedit-button", SpinEditorButtonComponent);
3423
3423
 
3424
+ var SwatchComponent = /** @class */ (function () {
3425
+ function SwatchComponent() {
3426
+ }
3427
+ Object.defineProperty(SwatchComponent.prototype, "rootClassName", {
3428
+ get: function () {
3429
+ var _a;
3430
+ return (_a = this.className) !== null && _a !== void 0 ? _a : "sd-color-swatch";
3431
+ },
3432
+ enumerable: false,
3433
+ configurable: true
3434
+ });
3435
+ Object.defineProperty(SwatchComponent.prototype, "rootStyle", {
3436
+ get: function () {
3437
+ return { backgroundColor: this.color };
3438
+ },
3439
+ enumerable: false,
3440
+ configurable: true
3441
+ });
3442
+ Object.defineProperty(SwatchComponent.prototype, "isPicker", {
3443
+ get: function () {
3444
+ return !!this.colorInputChange;
3445
+ },
3446
+ enumerable: false,
3447
+ configurable: true
3448
+ });
3449
+ Object.defineProperty(SwatchComponent.prototype, "iconName", {
3450
+ get: function () {
3451
+ var _a;
3452
+ return (_a = this.swatchIcon) !== null && _a !== void 0 ? _a : "icon-dropper-16x16";
3453
+ },
3454
+ enumerable: false,
3455
+ configurable: true
3456
+ });
3457
+ Object.defineProperty(SwatchComponent.prototype, "iconClass", {
3458
+ get: function () {
3459
+ var _a;
3460
+ return (_a = this.iconClassName) !== null && _a !== void 0 ? _a : "sd-color-swatch__icon";
3461
+ },
3462
+ enumerable: false,
3463
+ configurable: true
3464
+ });
3465
+ return SwatchComponent;
3466
+ }());
3467
+ SwatchComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SwatchComponent, deps: [], target: i0__namespace.ɵɵFactoryTarget.Component });
3468
+ SwatchComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: SwatchComponent, selector: "svc-swatch", inputs: { color: "color", showIcon: "showIcon", className: "className", swatchIcon: "swatchIcon", iconClassName: "iconClassName", colorInputClassName: "colorInputClassName", colorInputValue: "colorInputValue", inputDisabled: "inputDisabled", colorInputChange: "colorInputChange", arias: "arias" }, ngImport: i0__namespace, template: "<ng-container [ngSwitch]=\"isPicker\">\n <label *ngSwitchCase=\"true\" [class]=\"rootClassName\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </label>\n <div *ngSwitchDefault [class]=\"rootClassName\">\n <ng-container *ngTemplateOutlet=\"content\"></ng-container>\n </div>\n</ng-container>\n\n<ng-template #content>\n <div class=\"sd-color-swatch__content\" [style]=\"rootStyle\">\n <svg *ngIf=\"showIcon\" [iconName]=\"iconName\" [class]=\"iconClass\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n <input *ngIf=\"isPicker\"\n type=\"color\"\n [disabled]=\"inputDisabled\"\n [value]=\"colorInputValue\"\n [class]=\"colorInputClassName\"\n tabindex=\"-1\"\n [attr.aria-required]=\"arias?.['aria-required']\"\n [attr.aria-labelledby]=\"arias?.['aria-labelledby']\"\n [attr.aria-label]=\"arias?.['aria-label']\"\n [attr.aria-invalid]=\"arias?.['aria-invalid']\"\n [attr.aria-describedby]=\"arias?.['aria-describedby']\"\n (change)=\"colorInputChange!($event)\" />\n </div>\n</ng-template>\n", components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }], 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.NgSwitchDefault, selector: "[ngSwitchDefault]" }, { type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
3469
+ i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SwatchComponent, decorators: [{
3470
+ type: i0.Component,
3471
+ args: [{
3472
+ selector: "svc-swatch",
3473
+ templateUrl: "./swatch.component.html",
3474
+ }]
3475
+ }], propDecorators: { color: [{
3476
+ type: i0.Input
3477
+ }], showIcon: [{
3478
+ type: i0.Input
3479
+ }], className: [{
3480
+ type: i0.Input
3481
+ }], swatchIcon: [{
3482
+ type: i0.Input
3483
+ }], iconClassName: [{
3484
+ type: i0.Input
3485
+ }], colorInputClassName: [{
3486
+ type: i0.Input
3487
+ }], colorInputValue: [{
3488
+ type: i0.Input
3489
+ }], inputDisabled: [{
3490
+ type: i0.Input
3491
+ }], colorInputChange: [{
3492
+ type: i0.Input
3493
+ }], arias: [{
3494
+ type: i0.Input
3495
+ }] } });
3496
+
3424
3497
  var ColorItemComponent = /** @class */ (function (_super) {
3425
3498
  __extends(ColorItemComponent, _super);
3426
3499
  function ColorItemComponent() {
@@ -3429,13 +3502,10 @@
3429
3502
  ColorItemComponent.prototype.getModel = function () {
3430
3503
  return this.model;
3431
3504
  };
3432
- ColorItemComponent.prototype.getStyle = function () {
3433
- return { backgroundColor: this.model.value };
3434
- };
3435
3505
  return ColorItemComponent;
3436
3506
  }(i1.BaseAngular));
3437
3507
  ColorItemComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ColorItemComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
3438
- ColorItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ColorItemComponent, selector: "svc-color-item", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <span class=\"spg-color-editor__color-swatch\" [style]=\"getStyle()\"></span>\n <sv-ng-string [model]=\"model.locTitle\"></sv-ng-string>\n</ng-template>", styles: [":host { display: none }"], components: [{ type: i1__namespace.SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }] });
3508
+ ColorItemComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: ColorItemComponent, selector: "svc-color-item", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div class=\"sd-color-swatch-item\">\n <div class=\"sd-color-swatch-item__label\">\n <sv-ng-string [model]=\"model.locTitle\"></sv-ng-string>\n </div>\n <svc-swatch [color]=\"model.value\"></svc-swatch>\n </div>\n</ng-template>\n", styles: [":host { display: none }"], components: [{ type: i1__namespace.SurveyStringComponent, selector: "sv-ng-string, '[sv-ng-string]'", inputs: ["model"] }, { type: SwatchComponent, selector: "svc-swatch", inputs: ["color", "showIcon", "className", "swatchIcon", "iconClassName", "colorInputClassName", "colorInputValue", "inputDisabled", "colorInputChange", "arias"] }] });
3439
3509
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: ColorItemComponent, decorators: [{
3440
3510
  type: i0.Component,
3441
3511
  args: [{
@@ -3453,10 +3523,23 @@
3453
3523
  function QuestionColorComponent() {
3454
3524
  return _super !== null && _super.apply(this, arguments) || this;
3455
3525
  }
3526
+ Object.defineProperty(QuestionColorComponent.prototype, "swatchArias", {
3527
+ get: function () {
3528
+ return {
3529
+ "aria-required": this.model.a11y_input_ariaRequired,
3530
+ "aria-labelledby": this.model.a11y_input_ariaLabelledBy,
3531
+ "aria-label": this.model.a11y_input_ariaLabel,
3532
+ "aria-invalid": this.model.a11y_input_ariaInvalid,
3533
+ "aria-describedby": this.model.a11y_input_ariaDescribedBy,
3534
+ };
3535
+ },
3536
+ enumerable: false,
3537
+ configurable: true
3538
+ });
3456
3539
  return QuestionColorComponent;
3457
3540
  }(i1.QuestionAngular));
3458
3541
  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 });
3459
- 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\" (keydown)=\"model.onKeyDown($event)\" #contentElement>\n <label [class]=\"model.getSwatchCss()\" [style]=\"model.getSwatchStyle()\">\n <svg [iconName]=\"model.cssClasses.swatchIcon\" [size]=\"'auto'\" sv-ng-svg-icon></svg>\n <input type=\"color\" [disabled]=\"model.isInputReadOnly\" [class]=\"model.cssClasses.colorInput\"\n [value]=\"model.renderedColorValue\" (change)=\"model.onColorInputChange($event)\" tabindex=\"-1\"\n [attr.aria-required]=\"model.a11y_input_ariaRequired\" [attr.aria-labelledby]=\"model.a11y_input_ariaLabelledBy\"\n [attr.aria-label]=\"model.a11y_input_ariaLabel\" [attr.aria-invalid]=\"model.a11y_input_ariaInvalid\"\n [attr.aria-describedby]=\"model.a11y_input_ariaDescribedBy\" />\n </label>\n <input autocomplete=\"off\" [disabled]=\"model.isInputReadOnly\" [attr.id]=\"model.inputId\"\n [attr.aria-required]=\"model.a11y_input_ariaRequired\" [attr.aria-labelledby]=\"model.a11y_input_ariaLabelledBy\"\n [attr.aria-label]=\"model.a11y_input_ariaLabel\" [attr.aria-invalid]=\"model.a11y_input_ariaInvalid\"\n [attr.aria-describedby]=\"model.a11y_input_ariaDescribedBy\" (change)=\"model.onChange($event)\"\n (keyup)=\"model.onKeyUp($event)\" (blur)=\"model.onBlur($event)\" (beforeinput)=\"model.onBeforeInput($event)\"\n [value]=\"model.renderedValue\" [class]=\"model.cssClasses.control\" />\n <sv-ng-action-bar *ngIf=\"model.hasVisibleInputActions\" [model]=\"model.inputActionsContainer\"></sv-ng-action-bar>\n</div>", components: [{ type: i1__namespace.SvgIconComponent, selector: "'[sv-ng-svg-icon]'", inputs: ["size", "width", "height", "iconName", "partCss", "css", "title"] }, { type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
3542
+ 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\" (keydown)=\"model.onKeyDown($event)\" #contentElement>\n <div [class]=\"model.cssClasses.colorSwatch\">\n <svc-swatch\n [className]=\"model.getSwatchCss()\"\n [swatchIcon]=\"model.cssClasses.swatchIcon\"\n [iconClassName]=\"model.cssClasses.iconClassName\"\n [color]=\"model.renderedValue\"\n [showIcon]=\"true\"\n [colorInputValue]=\"model.renderedColorValue\"\n [colorInputClassName]=\"model.cssClasses.colorInput\"\n [inputDisabled]=\"model.isInputReadOnly\"\n [colorInputChange]=\"model.onColorInputChange.bind(model)\"\n [arias]=\"swatchArias\">\n </svc-swatch>\n </div>\n <input autocomplete=\"off\" [disabled]=\"model.isInputReadOnly\" [attr.id]=\"model.inputId\"\n [attr.aria-required]=\"model.a11y_input_ariaRequired\" [attr.aria-labelledby]=\"model.a11y_input_ariaLabelledBy\"\n [attr.aria-label]=\"model.a11y_input_ariaLabel\" [attr.aria-invalid]=\"model.a11y_input_ariaInvalid\"\n [attr.aria-describedby]=\"model.a11y_input_ariaDescribedBy\" (change)=\"model.onChange($event)\"\n (keyup)=\"model.onKeyUp($event)\" (blur)=\"model.onBlur($event)\" (beforeinput)=\"model.onBeforeInput($event)\"\n [value]=\"model.renderedValue\" [class]=\"model.cssClasses.control\" />\n <sv-ng-action-bar *ngIf=\"model.hasVisibleInputActions\" [model]=\"model.inputActionsContainer\"></sv-ng-action-bar>\n</div>", components: [{ type: SwatchComponent, selector: "svc-swatch", inputs: ["color", "showIcon", "className", "swatchIcon", "iconClassName", "colorInputClassName", "colorInputValue", "inputDisabled", "colorInputChange", "arias"] }, { type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }], directives: [{ type: i2__namespace.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }] });
3460
3543
  i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionColorComponent, decorators: [{
3461
3544
  type: i0.Component,
3462
3545
  args: [{
@@ -3644,13 +3727,13 @@
3644
3727
  AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxItemGroupComponent, ToolboxListComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
3645
3728
  QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
3646
3729
  ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
3647
- QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, SpinEditorButtonComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, FileEditorButtonComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent,
3730
+ QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, SpinEditorButtonComponent, ColorItemComponent, QuestionColorComponent, SwatchComponent, QuestionFileEditorComponent, FileEditorButtonComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent,
3648
3731
  BooleanSwitchComponent, TranslateFromAction, QuestionElementContentComponent, PageElementContentComponent, PageWrapperComponent, ComponentContainerComponent,
3649
3732
  IconItemComponent, SideBarLaunchCardComponent, ContainerTabComponent, ImageItemDragActionComponent], imports: [i2.CommonModule, i3.FormsModule, i1.SurveyModule], exports: [CreatorComponent, DesignerTabComponent, PageDesignerComponent, QuestionDesignerComponent, PanelDesignerComponent, TabbledMenuComponent, TabbedMenuItemComponent, TabbedMenuItemWrapperComponent, SidebarComponent, SidebarPageComponent, SidebarDefaultHeaderComponent, SidebarPropertyGridHeaderComponent, PropertyGridPlaceholderComponent, SidebarHeaderComponent, TabControlComponent, TabsComponent, TabButtonComponent, ObjectSelectorComponent, PropertyGridComponent, SearchComponent, TextareaJsonEditorComponent, AceJsonEditorComponent, LogicTabComponent, ActionButtonComponent, QuestionPgErrorComponent, SurfacePlaceholderComponent, SwitcherComponent, LinkValueQuestionComponent, EmbeddedSurveyQuestionComponent, TranslationTabComponent, TranslationSkeletonComponent, SimulatorComponent, TestTabComponent, SurveyResultsComponent, SurveyResultsTableRowComponent, ThemeTabComponent,
3650
3733
  AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxItemGroupComponent, ToolboxListComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
3651
3734
  QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
3652
3735
  ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
3653
- QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, SpinEditorButtonComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, FileEditorButtonComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent, BooleanSwitchComponent, TranslateFromAction, QuestionElementContentComponent, PageElementContentComponent, ComponentContainerComponent,
3736
+ QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, SpinEditorButtonComponent, ColorItemComponent, QuestionColorComponent, SwatchComponent, QuestionFileEditorComponent, FileEditorButtonComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent, BooleanSwitchComponent, TranslateFromAction, QuestionElementContentComponent, PageElementContentComponent, ComponentContainerComponent,
3654
3737
  IconItemComponent, SideBarLaunchCardComponent, ContainerTabComponent, ImageItemDragActionComponent] });
3655
3738
  SurveyCreatorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyCreatorModule, providers: [], imports: [[
3656
3739
  i2.CommonModule, i3.FormsModule, i1.SurveyModule
@@ -3662,7 +3745,7 @@
3662
3745
  AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxItemGroupComponent, ToolboxListComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
3663
3746
  QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
3664
3747
  ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
3665
- QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, SpinEditorButtonComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, FileEditorButtonComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent,
3748
+ QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, SpinEditorButtonComponent, ColorItemComponent, QuestionColorComponent, SwatchComponent, QuestionFileEditorComponent, FileEditorButtonComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent,
3666
3749
  BooleanSwitchComponent, TranslateFromAction, QuestionElementContentComponent, PageElementContentComponent, PageWrapperComponent, ComponentContainerComponent,
3667
3750
  IconItemComponent, SideBarLaunchCardComponent, ContainerTabComponent, ImageItemDragActionComponent],
3668
3751
  imports: [
@@ -3673,7 +3756,7 @@
3673
3756
  AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxItemGroupComponent, ToolboxListComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
3674
3757
  QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
3675
3758
  ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
3676
- QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, SpinEditorButtonComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, FileEditorButtonComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent, BooleanSwitchComponent, TranslateFromAction, QuestionElementContentComponent, PageElementContentComponent, ComponentContainerComponent,
3759
+ QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, SpinEditorButtonComponent, ColorItemComponent, QuestionColorComponent, SwatchComponent, QuestionFileEditorComponent, FileEditorButtonComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent, BooleanSwitchComponent, TranslateFromAction, QuestionElementContentComponent, PageElementContentComponent, ComponentContainerComponent,
3677
3760
  IconItemComponent, SideBarLaunchCardComponent, ContainerTabComponent, ImageItemDragActionComponent
3678
3761
  ],
3679
3762
  providers: [],
@@ -3748,6 +3831,7 @@
3748
3831
  exports.SurveyCreatorModule = SurveyCreatorModule;
3749
3832
  exports.SurveyResultsComponent = SurveyResultsComponent;
3750
3833
  exports.SurveyResultsTableRowComponent = SurveyResultsTableRowComponent;
3834
+ exports.SwatchComponent = SwatchComponent;
3751
3835
  exports.SwitcherComponent = SwitcherComponent;
3752
3836
  exports.TabButtonComponent = TabButtonComponent;
3753
3837
  exports.TabControlComponent = TabControlComponent;