survey-creator-angular 3.0.0-beta.1 → 3.0.0-beta.3
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 +2 -0
- package/angular-ui.module.d.ts +19 -17
- package/bundles/survey-creator-angular.umd.js +78 -7
- package/bundles/survey-creator-angular.umd.js.map +1 -1
- package/custom-questions/file-editor-button.component.d.ts +11 -0
- package/custom-questions/spin-editor-button.component.d.ts +12 -0
- package/esm2015/angular-ui.js +3 -1
- package/esm2015/angular-ui.module.js +7 -5
- package/esm2015/custom-questions/color.component.js +2 -2
- package/esm2015/custom-questions/file-editor-button.component.js +26 -0
- package/esm2015/custom-questions/file.component.js +3 -2
- package/esm2015/custom-questions/spin-editor-button.component.js +29 -0
- package/esm2015/custom-questions/spin-editor.component.js +2 -2
- package/fesm2015/survey-creator-angular.js +55 -8
- package/fesm2015/survey-creator-angular.js.map +1 -1
- package/package.json +4 -4
package/angular-ui.d.ts
CHANGED
|
@@ -68,9 +68,11 @@ export * from "./adorners/question-rating.component";
|
|
|
68
68
|
export * from "./header/logo-image.component";
|
|
69
69
|
export * from "./tabs/json/json-error-item.component";
|
|
70
70
|
export * from "./custom-questions/spin-editor.component";
|
|
71
|
+
export * from "./custom-questions/spin-editor-button.component";
|
|
71
72
|
export * from "./custom-questions/color-item.component";
|
|
72
73
|
export * from "./custom-questions/color.component";
|
|
73
74
|
export * from "./custom-questions/file.component";
|
|
75
|
+
export * from "./custom-questions/file-editor-button.component";
|
|
74
76
|
export * from "./custom-questions/boolean-switch.component";
|
|
75
77
|
export * from "./question-banner.component";
|
|
76
78
|
export * from "./question-element-content.component";
|
package/angular-ui.module.d.ts
CHANGED
|
@@ -62,24 +62,26 @@ import * as i60 from "./question-widget.component";
|
|
|
62
62
|
import * as i61 from "./header/logo-image.component";
|
|
63
63
|
import * as i62 from "./adorners/question-rating.component";
|
|
64
64
|
import * as i63 from "./custom-questions/spin-editor.component";
|
|
65
|
-
import * as i64 from "./custom-questions/
|
|
66
|
-
import * as i65 from "./custom-questions/color.component";
|
|
67
|
-
import * as i66 from "./custom-questions/
|
|
68
|
-
import * as i67 from "./
|
|
69
|
-
import * as i68 from "./
|
|
70
|
-
import * as i69 from "./
|
|
71
|
-
import * as i70 from "./
|
|
72
|
-
import * as i71 from "./tabs/
|
|
73
|
-
import * as i72 from "./
|
|
74
|
-
import * as i73 from "./
|
|
75
|
-
import * as i74 from "./
|
|
76
|
-
import * as i75 from "./
|
|
77
|
-
import * as i76 from "./
|
|
78
|
-
import * as i77 from "
|
|
79
|
-
import * as i78 from "
|
|
80
|
-
import * as i79 from "
|
|
65
|
+
import * as i64 from "./custom-questions/spin-editor-button.component";
|
|
66
|
+
import * as i65 from "./custom-questions/color-item.component";
|
|
67
|
+
import * as i66 from "./custom-questions/color.component";
|
|
68
|
+
import * as i67 from "./custom-questions/file.component";
|
|
69
|
+
import * as i68 from "./custom-questions/file-editor-button.component";
|
|
70
|
+
import * as i69 from "./add-question.component";
|
|
71
|
+
import * as i70 from "./question-banner.component";
|
|
72
|
+
import * as i71 from "./tabs/json/json-error-item.component";
|
|
73
|
+
import * as i72 from "./custom-questions/boolean-switch.component";
|
|
74
|
+
import * as i73 from "./tabs/translation/translate-from-action.component";
|
|
75
|
+
import * as i74 from "./add-question-type-selector.component";
|
|
76
|
+
import * as i75 from "./question-element-content.component";
|
|
77
|
+
import * as i76 from "./page-element-content.component";
|
|
78
|
+
import * as i77 from "./page-wrapper.component";
|
|
79
|
+
import * as i78 from "./components/component-container.component";
|
|
80
|
+
import * as i79 from "@angular/common";
|
|
81
|
+
import * as i80 from "@angular/forms";
|
|
82
|
+
import * as i81 from "survey-angular-ui";
|
|
81
83
|
export declare class SurveyCreatorModule {
|
|
82
84
|
static ɵfac: i0.ɵɵFactoryDeclaration<SurveyCreatorModule, never>;
|
|
83
|
-
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.LogicAddButtonComponent, typeof i25.ActionButtonComponent, typeof i26.QuestionPgErrorComponent, typeof i27.SurfacePlaceholderComponent, typeof i28.SwitcherComponent, typeof i29.LinkValueQuestionComponent, typeof i30.EmbeddedSurveyQuestionComponent, typeof i31.TranslationTabComponent, typeof i32.TranslationSkeletonComponent, typeof i33.SimulatorComponent, typeof i34.TestTabComponent, typeof i35.TestAgainActionComponent, typeof i36.SurveyResultsComponent, typeof i37.SurveyResultsTableRowComponent, typeof i38.ThemeTabComponent, typeof i39.AdaptiveToolboxComponent, typeof i40.ToolboxToolComponent, typeof i41.ToolboxItemComponent, typeof i42.ToolboxItemGroupComponent, typeof i43.ToolboxListComponent, typeof i44.ToolboxCategoryComponent, typeof i45.StringEditorComponent, typeof i46.PageNavigatorComponent, typeof i47.PageNavigatorItemComponent, typeof i48.QuestionDropdownDesignerComponent, typeof i48.QuestionDropdownAdornerDesignerComponent, typeof i49.QuestionImageDesignerComponent, typeof i49.QuestionImageAdornerDesignerComponent, typeof i50.ItemValueDesignerComponent, typeof i51.ImageItemValueDesignerComponent, typeof i52.LogicOperatorComponent, typeof i53.MatrixCellComponent, typeof i54.QuestionEditorComponent, typeof i55.CellQuestionDropdownComponent, typeof i56.CreatorRowComponent, typeof i57.DesignerPagesComponent, typeof i58.DesignerSurveyComponent, typeof i59.CellQuestionComponent, typeof i60.QuestionWidgetDesignerComponent, typeof i61.CreatorLogoImageComponent, typeof i62.QuestionRatingAdornerDesignerComponent, typeof i62.QuestionRatingDesignerComponent, typeof i63.QuestionSpinEditorComponent, typeof i64.
|
|
85
|
+
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.LogicAddButtonComponent, typeof i25.ActionButtonComponent, typeof i26.QuestionPgErrorComponent, typeof i27.SurfacePlaceholderComponent, typeof i28.SwitcherComponent, typeof i29.LinkValueQuestionComponent, typeof i30.EmbeddedSurveyQuestionComponent, typeof i31.TranslationTabComponent, typeof i32.TranslationSkeletonComponent, typeof i33.SimulatorComponent, typeof i34.TestTabComponent, typeof i35.TestAgainActionComponent, typeof i36.SurveyResultsComponent, typeof i37.SurveyResultsTableRowComponent, typeof i38.ThemeTabComponent, typeof i39.AdaptiveToolboxComponent, typeof i40.ToolboxToolComponent, typeof i41.ToolboxItemComponent, typeof i42.ToolboxItemGroupComponent, typeof i43.ToolboxListComponent, typeof i44.ToolboxCategoryComponent, typeof i45.StringEditorComponent, typeof i46.PageNavigatorComponent, typeof i47.PageNavigatorItemComponent, typeof i48.QuestionDropdownDesignerComponent, typeof i48.QuestionDropdownAdornerDesignerComponent, typeof i49.QuestionImageDesignerComponent, typeof i49.QuestionImageAdornerDesignerComponent, typeof i50.ItemValueDesignerComponent, typeof i51.ImageItemValueDesignerComponent, typeof i52.LogicOperatorComponent, typeof i53.MatrixCellComponent, typeof i54.QuestionEditorComponent, typeof i55.CellQuestionDropdownComponent, typeof i56.CreatorRowComponent, typeof i57.DesignerPagesComponent, typeof i58.DesignerSurveyComponent, typeof i59.CellQuestionComponent, typeof i60.QuestionWidgetDesignerComponent, typeof i61.CreatorLogoImageComponent, typeof i62.QuestionRatingAdornerDesignerComponent, typeof i62.QuestionRatingDesignerComponent, typeof i63.QuestionSpinEditorComponent, typeof i64.SpinEditorButtonComponent, typeof i65.ColorItemComponent, typeof i66.QuestionColorComponent, typeof i67.QuestionFileEditorComponent, typeof i68.FileEditorButtonComponent, typeof i69.AddQuestionButtonComponent, typeof i70.QuestionBannerComponent, typeof i71.JsonErrorItemComponent, typeof i72.BooleanSwitchComponent, typeof i73.TranslateFromAction, typeof i74.AddQuestionTypeSelectorComponent, typeof i75.QuestionElementContentComponent, typeof i76.PageElementContentComponent, typeof i77.PageWrapperComponent, typeof i78.ComponentContainerComponent], [typeof i79.CommonModule, typeof i80.FormsModule, typeof i81.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.LogicAddButtonComponent, typeof i25.ActionButtonComponent, typeof i26.QuestionPgErrorComponent, typeof i27.SurfacePlaceholderComponent, typeof i28.SwitcherComponent, typeof i29.LinkValueQuestionComponent, typeof i30.EmbeddedSurveyQuestionComponent, typeof i31.TranslationTabComponent, typeof i32.TranslationSkeletonComponent, typeof i33.SimulatorComponent, typeof i34.TestTabComponent, typeof i35.TestAgainActionComponent, typeof i36.SurveyResultsComponent, typeof i37.SurveyResultsTableRowComponent, typeof i38.ThemeTabComponent, typeof i39.AdaptiveToolboxComponent, typeof i40.ToolboxToolComponent, typeof i41.ToolboxItemComponent, typeof i42.ToolboxItemGroupComponent, typeof i43.ToolboxListComponent, typeof i44.ToolboxCategoryComponent, typeof i45.StringEditorComponent, typeof i46.PageNavigatorComponent, typeof i47.PageNavigatorItemComponent, typeof i48.QuestionDropdownDesignerComponent, typeof i48.QuestionDropdownAdornerDesignerComponent, typeof i49.QuestionImageDesignerComponent, typeof i49.QuestionImageAdornerDesignerComponent, typeof i50.ItemValueDesignerComponent, typeof i51.ImageItemValueDesignerComponent, typeof i52.LogicOperatorComponent, typeof i53.MatrixCellComponent, typeof i54.QuestionEditorComponent, typeof i55.CellQuestionDropdownComponent, typeof i56.CreatorRowComponent, typeof i57.DesignerPagesComponent, typeof i58.DesignerSurveyComponent, typeof i59.CellQuestionComponent, typeof i60.QuestionWidgetDesignerComponent, typeof i61.CreatorLogoImageComponent, typeof i62.QuestionRatingAdornerDesignerComponent, typeof i62.QuestionRatingDesignerComponent, typeof i63.QuestionSpinEditorComponent, typeof i64.SpinEditorButtonComponent, typeof i65.ColorItemComponent, typeof i66.QuestionColorComponent, typeof i67.QuestionFileEditorComponent, typeof i68.FileEditorButtonComponent, typeof i69.AddQuestionButtonComponent, typeof i70.QuestionBannerComponent, typeof i71.JsonErrorItemComponent, typeof i72.BooleanSwitchComponent, typeof i73.TranslateFromAction, typeof i74.AddQuestionTypeSelectorComponent, typeof i75.QuestionElementContentComponent, typeof i76.PageElementContentComponent, typeof i78.ComponentContainerComponent]>;
|
|
84
86
|
static ɵinj: i0.ɵɵInjectorDeclaration<SurveyCreatorModule>;
|
|
85
87
|
}
|
|
@@ -3407,7 +3407,7 @@
|
|
|
3407
3407
|
return QuestionSpinEditorComponent;
|
|
3408
3408
|
}(i1.QuestionAngular));
|
|
3409
3409
|
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 });
|
|
3410
|
-
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 autocomplete=\"off\" role=\"spinbutton\" [disabled]=\"model.isInputReadOnly\" [attr.id]=\"model.inputId\"\n [attr.aria-required]=\"model.a11y_input_ariaRequired\" [attr.aria-label]=\"model.a11y_input_ariaLabel\"\n [attr.aria-labelledby]=\"model.a11y_input_ariaLabelledBy\" [attr.aria-describedby]=\"model.a11y_input_ariaDescribedBy\"\n [attr.aria-invalid]=\"model.a11y_input_ariaInvalid\" [attr.aria-errormessage]=\"model.a11y_input_ariaErrormessage\"\n (change)=\"model.onChange($event)\" (keydown)=\"model.onInputKeyDown($event)\" (keyup)=\"model.onKeyUp($event)\"\n (blur)=\"model.onBlur($event)\" (focus)=\"model.onFocus($event)\" (beforeinput)=\"model.onBeforeInput($event)\"\n [value]=\"model.renderedValue\" [class]=\"model.cssClasses.control\" />\n <
|
|
3410
|
+
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 autocomplete=\"off\" role=\"spinbutton\" [disabled]=\"model.isInputReadOnly\" [attr.id]=\"model.inputId\"\n [attr.aria-required]=\"model.a11y_input_ariaRequired\" [attr.aria-label]=\"model.a11y_input_ariaLabel\"\n [attr.aria-labelledby]=\"model.a11y_input_ariaLabelledBy\" [attr.aria-describedby]=\"model.a11y_input_ariaDescribedBy\"\n [attr.aria-invalid]=\"model.a11y_input_ariaInvalid\" [attr.aria-errormessage]=\"model.a11y_input_ariaErrormessage\"\n (change)=\"model.onChange($event)\" (keydown)=\"model.onInputKeyDown($event)\" (keyup)=\"model.onKeyUp($event)\"\n (blur)=\"model.onBlur($event)\" (focus)=\"model.onFocus($event)\" (beforeinput)=\"model.onBeforeInput($event)\"\n [value]=\"model.renderedValue\" [class]=\"model.cssClasses.control\" />\n <sv-ng-action-bar [model]=\"model.inputActionsContainer\"></sv-ng-action-bar>\n</div>", components: [{ type: i1__namespace.ActionBarComponent, selector: "sv-action-bar, sv-ng-action-bar", inputs: ["model", "handleClick"] }] });
|
|
3411
3411
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionSpinEditorComponent, decorators: [{
|
|
3412
3412
|
type: i0.Component,
|
|
3413
3413
|
args: [{
|
|
@@ -3416,6 +3416,44 @@
|
|
|
3416
3416
|
}] });
|
|
3417
3417
|
i1.AngularComponentFactory.Instance.registerComponent("spinedit-question", QuestionSpinEditorComponent);
|
|
3418
3418
|
|
|
3419
|
+
var SpinEditorButtonComponent = /** @class */ (function (_super) {
|
|
3420
|
+
__extends(SpinEditorButtonComponent, _super);
|
|
3421
|
+
function SpinEditorButtonComponent() {
|
|
3422
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3423
|
+
}
|
|
3424
|
+
Object.defineProperty(SpinEditorButtonComponent.prototype, "modelAction", {
|
|
3425
|
+
get: function () {
|
|
3426
|
+
return this.model;
|
|
3427
|
+
},
|
|
3428
|
+
enumerable: false,
|
|
3429
|
+
configurable: true
|
|
3430
|
+
});
|
|
3431
|
+
Object.defineProperty(SpinEditorButtonComponent.prototype, "question", {
|
|
3432
|
+
get: function () {
|
|
3433
|
+
return this.model.data.question;
|
|
3434
|
+
},
|
|
3435
|
+
enumerable: false,
|
|
3436
|
+
configurable: true
|
|
3437
|
+
});
|
|
3438
|
+
SpinEditorButtonComponent.prototype.getModel = function () {
|
|
3439
|
+
return this.modelAction;
|
|
3440
|
+
};
|
|
3441
|
+
return SpinEditorButtonComponent;
|
|
3442
|
+
}(i1.BaseAngular));
|
|
3443
|
+
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 });
|
|
3444
|
+
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"] }] });
|
|
3445
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SpinEditorButtonComponent, decorators: [{
|
|
3446
|
+
type: i0.Component,
|
|
3447
|
+
args: [{
|
|
3448
|
+
selector: "sv-ng-spin-edit-button",
|
|
3449
|
+
templateUrl: "./spin-editor-button.component.html",
|
|
3450
|
+
styles: ["{ :host { display: none; } }"]
|
|
3451
|
+
}]
|
|
3452
|
+
}], propDecorators: { model: [{
|
|
3453
|
+
type: i0.Input
|
|
3454
|
+
}] } });
|
|
3455
|
+
i1.AngularComponentFactory.Instance.registerComponent("sv-spinedit-button", SpinEditorButtonComponent);
|
|
3456
|
+
|
|
3419
3457
|
var ColorItemComponent = /** @class */ (function (_super) {
|
|
3420
3458
|
__extends(ColorItemComponent, _super);
|
|
3421
3459
|
function ColorItemComponent() {
|
|
@@ -3451,7 +3489,7 @@
|
|
|
3451
3489
|
return QuestionColorComponent;
|
|
3452
3490
|
}(i1.QuestionAngular));
|
|
3453
3491
|
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 });
|
|
3454
|
-
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)\">\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 <ng-
|
|
3492
|
+
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"] }] });
|
|
3455
3493
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionColorComponent, decorators: [{
|
|
3456
3494
|
type: i0.Component,
|
|
3457
3495
|
args: [{
|
|
@@ -3469,7 +3507,7 @@
|
|
|
3469
3507
|
return QuestionFileEditorComponent;
|
|
3470
3508
|
}(i1.QuestionAngular));
|
|
3471
3509
|
QuestionFileEditorComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionFileEditorComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3472
|
-
QuestionFileEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionFileEditorComponent, selector: "svc-file-editor", usesInheritance: true, ngImport: i0__namespace, template: "<div [class]=\"model.cssClasses.root\" (dragenter)=\"model.onDragEnter($event)\" (dragover)=\"model.onDragOver($event)\"\n (drop)=\"model.onDrop($event)\" (dragleave)=\"model.onDragLeave($event)\" (keydown)=\"model.onKeyDown($event)\"\n #contentElement>\n <input type=\"text\" [disabled]=\"model.isTextInputReadOnly\" [class]=\"model.cssClasses.control\"\n [value]=\"model.renderedValue ||''\" (change)=\"model.onInputChange($event)\" (blur)=\"model.onInputBlur($event)\"\n [attr.placeholder]=\"model.renderedPlaceholder\" />\n <
|
|
3510
|
+
QuestionFileEditorComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: QuestionFileEditorComponent, selector: "svc-file-editor", usesInheritance: true, ngImport: i0__namespace, template: "<div [class]=\"model.cssClasses.root\" (dragenter)=\"model.onDragEnter($event)\" (dragover)=\"model.onDragOver($event)\"\n (drop)=\"model.onDrop($event)\" (dragleave)=\"model.onDragLeave($event)\" (keydown)=\"model.onKeyDown($event)\"\n #contentElement>\n <input type=\"text\" [disabled]=\"model.isTextInputReadOnly\" [class]=\"model.cssClasses.control\"\n [value]=\"model.renderedValue ||''\" (change)=\"model.onInputChange($event)\" (blur)=\"model.onInputBlur($event)\"\n [attr.placeholder]=\"model.renderedPlaceholder\" />\n <sv-ng-action-bar [model]=\"model.inputActionsContainer\" *ngIf=\"model.hasVisibleInputActions\"></sv-ng-action-bar>\n</div>", components: [{ 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"] }] });
|
|
3473
3511
|
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: QuestionFileEditorComponent, decorators: [{
|
|
3474
3512
|
type: i0.Component,
|
|
3475
3513
|
args: [{
|
|
@@ -3479,6 +3517,37 @@
|
|
|
3479
3517
|
}] });
|
|
3480
3518
|
i1.AngularComponentFactory.Instance.registerComponent("fileedit-question", QuestionFileEditorComponent);
|
|
3481
3519
|
|
|
3520
|
+
var FileEditorButtonComponent = /** @class */ (function (_super) {
|
|
3521
|
+
__extends(FileEditorButtonComponent, _super);
|
|
3522
|
+
function FileEditorButtonComponent() {
|
|
3523
|
+
return _super !== null && _super.apply(this, arguments) || this;
|
|
3524
|
+
}
|
|
3525
|
+
Object.defineProperty(FileEditorButtonComponent.prototype, "question", {
|
|
3526
|
+
get: function () {
|
|
3527
|
+
return this.model.data.question;
|
|
3528
|
+
},
|
|
3529
|
+
enumerable: false,
|
|
3530
|
+
configurable: true
|
|
3531
|
+
});
|
|
3532
|
+
FileEditorButtonComponent.prototype.getModel = function () {
|
|
3533
|
+
return this.model;
|
|
3534
|
+
};
|
|
3535
|
+
return FileEditorButtonComponent;
|
|
3536
|
+
}(i1.BaseAngular));
|
|
3537
|
+
FileEditorButtonComponent.ɵfac = i0__namespace.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FileEditorButtonComponent, deps: null, target: i0__namespace.ɵɵFactoryTarget.Component });
|
|
3538
|
+
FileEditorButtonComponent.ɵcmp = i0__namespace.ɵɵngDeclareComponent({ minVersion: "12.0.0", version: "12.2.17", type: FileEditorButtonComponent, selector: "sv-ng-file-editor-button", inputs: { model: "model" }, usesInheritance: true, ngImport: i0__namespace, template: "<ng-template #template>\n <div>\n <label [class]=\"model.getActionBarItemCss()\" [attr.for]=\"question.inputId\" [attr.aria-label]=\"question.chooseButtonCaption\"\n (click)=\"question.chooseFiles($event)\" [key2click]>\n <svg [iconName]=\"model.iconName\" size=\"'auto'\" [title]=\"model.title\" [class]=\"model.cssClasses.itemIcon\" sv-ng-svg-icon></svg>\n </label>\n <input type=\"file\" [disabled]=\"model.disabled\" [class]=\"question.cssClasses.fileInput\" [attr.id]=\"question.inputId\"\n [attr.aria-required]=\"question.ariaRequired\" [attr.aria-label]=\"question.ariaLabel\"\n [attr.aria-invalid]=\"question.ariaInvalid\" [attr.aria-describedby]=\"question.ariaDescribedBy\" [attr.multiple]=\"false\"\n [title]=\"question.inputTitle\" [accept]=\"question.acceptedTypes\" (change)=\"question.onFileInputChange($event)\" tabindex=\"-1\">\n </div>\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"] }], directives: [{ type: i1__namespace.Key2ClickDirective, selector: "[key2click]", inputs: ["key2click"] }] });
|
|
3539
|
+
i0__namespace.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: FileEditorButtonComponent, decorators: [{
|
|
3540
|
+
type: i0.Component,
|
|
3541
|
+
args: [{
|
|
3542
|
+
selector: "sv-ng-file-editor-button",
|
|
3543
|
+
templateUrl: "./file-editor-button.component.html",
|
|
3544
|
+
styles: ["{ :host { display: none; } }"]
|
|
3545
|
+
}]
|
|
3546
|
+
}], propDecorators: { model: [{
|
|
3547
|
+
type: i0.Input
|
|
3548
|
+
}] } });
|
|
3549
|
+
i1.AngularComponentFactory.Instance.registerComponent("sv-fileedit-button", FileEditorButtonComponent);
|
|
3550
|
+
|
|
3482
3551
|
var BooleanSwitchComponent = /** @class */ (function (_super) {
|
|
3483
3552
|
__extends(BooleanSwitchComponent, _super);
|
|
3484
3553
|
function BooleanSwitchComponent() {
|
|
@@ -3560,12 +3629,12 @@
|
|
|
3560
3629
|
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxItemGroupComponent, ToolboxListComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
3561
3630
|
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
3562
3631
|
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
|
|
3563
|
-
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent,
|
|
3632
|
+
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, SpinEditorButtonComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, FileEditorButtonComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent,
|
|
3564
3633
|
BooleanSwitchComponent, TranslateFromAction, AddQuestionTypeSelectorComponent, QuestionElementContentComponent, PageElementContentComponent, PageWrapperComponent, ComponentContainerComponent], 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, LogicAddButtonComponent, ActionButtonComponent, QuestionPgErrorComponent, SurfacePlaceholderComponent, SwitcherComponent, LinkValueQuestionComponent, EmbeddedSurveyQuestionComponent, TranslationTabComponent, TranslationSkeletonComponent, SimulatorComponent, TestTabComponent, TestAgainActionComponent, SurveyResultsComponent, SurveyResultsTableRowComponent, ThemeTabComponent,
|
|
3565
3634
|
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxItemGroupComponent, ToolboxListComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
3566
3635
|
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
3567
3636
|
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
|
|
3568
|
-
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent, BooleanSwitchComponent, TranslateFromAction,
|
|
3637
|
+
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, SpinEditorButtonComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, FileEditorButtonComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent, BooleanSwitchComponent, TranslateFromAction,
|
|
3569
3638
|
AddQuestionTypeSelectorComponent, QuestionElementContentComponent, PageElementContentComponent, ComponentContainerComponent] });
|
|
3570
3639
|
SurveyCreatorModule.ɵinj = i0__namespace.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "12.2.17", ngImport: i0__namespace, type: SurveyCreatorModule, providers: [], imports: [[
|
|
3571
3640
|
i2.CommonModule, i3.FormsModule, i1.SurveyModule
|
|
@@ -3577,7 +3646,7 @@
|
|
|
3577
3646
|
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxItemGroupComponent, ToolboxListComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
3578
3647
|
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
3579
3648
|
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
|
|
3580
|
-
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent,
|
|
3649
|
+
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, SpinEditorButtonComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, FileEditorButtonComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent,
|
|
3581
3650
|
BooleanSwitchComponent, TranslateFromAction, AddQuestionTypeSelectorComponent, QuestionElementContentComponent, PageElementContentComponent, PageWrapperComponent, ComponentContainerComponent],
|
|
3582
3651
|
imports: [
|
|
3583
3652
|
i2.CommonModule, i3.FormsModule, i1.SurveyModule
|
|
@@ -3587,7 +3656,7 @@
|
|
|
3587
3656
|
AdaptiveToolboxComponent, ToolboxToolComponent, ToolboxItemComponent, ToolboxItemGroupComponent, ToolboxListComponent, ToolboxCategoryComponent, StringEditorComponent, PageNavigatorComponent, PageNavigatorItemComponent,
|
|
3588
3657
|
QuestionDropdownDesignerComponent, QuestionDropdownAdornerDesignerComponent, QuestionImageDesignerComponent, QuestionImageAdornerDesignerComponent,
|
|
3589
3658
|
ItemValueDesignerComponent, ImageItemValueDesignerComponent, LogicOperatorComponent, MatrixCellComponent, QuestionEditorComponent, CellQuestionDropdownComponent, CreatorRowComponent, DesignerPagesComponent, DesignerSurveyComponent, CellQuestionComponent, QuestionWidgetDesignerComponent, CreatorLogoImageComponent,
|
|
3590
|
-
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent, BooleanSwitchComponent, TranslateFromAction,
|
|
3659
|
+
QuestionRatingAdornerDesignerComponent, QuestionRatingDesignerComponent, QuestionSpinEditorComponent, SpinEditorButtonComponent, ColorItemComponent, QuestionColorComponent, QuestionFileEditorComponent, FileEditorButtonComponent, AddQuestionButtonComponent, QuestionBannerComponent, JsonErrorItemComponent, BooleanSwitchComponent, TranslateFromAction,
|
|
3591
3660
|
AddQuestionTypeSelectorComponent, QuestionElementContentComponent, PageElementContentComponent, ComponentContainerComponent
|
|
3592
3661
|
],
|
|
3593
3662
|
providers: [],
|
|
@@ -3615,6 +3684,7 @@
|
|
|
3615
3684
|
exports.DesignerSurveyComponent = DesignerSurveyComponent;
|
|
3616
3685
|
exports.DesignerTabComponent = DesignerTabComponent;
|
|
3617
3686
|
exports.EmbeddedSurveyQuestionComponent = EmbeddedSurveyQuestionComponent;
|
|
3687
|
+
exports.FileEditorButtonComponent = FileEditorButtonComponent;
|
|
3618
3688
|
exports.ImageItemValueDesignerComponent = ImageItemValueDesignerComponent;
|
|
3619
3689
|
exports.ItemValueDesignerComponent = ItemValueDesignerComponent;
|
|
3620
3690
|
exports.JsonErrorItemComponent = JsonErrorItemComponent;
|
|
@@ -3653,6 +3723,7 @@
|
|
|
3653
3723
|
exports.SidebarPageComponent = SidebarPageComponent;
|
|
3654
3724
|
exports.SidebarPropertyGridHeaderComponent = SidebarPropertyGridHeaderComponent;
|
|
3655
3725
|
exports.SimulatorComponent = SimulatorComponent;
|
|
3726
|
+
exports.SpinEditorButtonComponent = SpinEditorButtonComponent;
|
|
3656
3727
|
exports.StringEditorComponent = StringEditorComponent;
|
|
3657
3728
|
exports.SurfacePlaceholderComponent = SurfacePlaceholderComponent;
|
|
3658
3729
|
exports.SurveyCreatorModule = SurveyCreatorModule;
|